Skip to content

Commit 3f960ef

Browse files
committed
fix(Parser): Add UpdateEngagementPanelContentCommand
This command is sometimes used to open the Transcript panel.
1 parent 1c1577e commit 3f960ef

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { YTNode } from '../../helpers.js';
2+
import { type RawNode } from '../../index.js';
3+
4+
type Identifier = {
5+
surface: string,
6+
tag: string;
7+
}
8+
9+
export default class UpdateEngagementPanelContentCommand extends YTNode {
10+
static type = 'UpdateEngagementPanelContentCommand';
11+
12+
public content_source_panel_identifier?: Identifier;
13+
public target_panel_identifier?: Identifier;
14+
15+
constructor(data: RawNode) {
16+
super();
17+
this.content_source_panel_identifier = data.contentSourcePanelIdentifier;
18+
this.target_panel_identifier = data.targetPanelIdentifier;
19+
}
20+
}

src/parser/nodes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export { default as ContinuationCommand } from './classes/commands/ContinuationC
8383
export { default as GetKidsBlocklistPickerCommand } from './classes/commands/GetKidsBlocklistPickerCommand.js';
8484
export { default as RunAttestationCommand } from './classes/commands/RunAttestationCommand.js';
8585
export { default as ShowDialogCommand } from './classes/commands/ShowDialogCommand.js';
86+
export { default as UpdateEngagementPanelContentCommand } from './classes/commands/UpdateEngagementPanelContentCommand.js';
8687
export { default as AuthorCommentBadge } from './classes/comments/AuthorCommentBadge.js';
8788
export { default as CommentActionButtons } from './classes/comments/CommentActionButtons.js';
8889
export { default as CommentDialog } from './classes/comments/CommentDialog.js';

0 commit comments

Comments
 (0)