Skip to content

Commit

Permalink
fix(Parser): Add UpdateEngagementPanelContentCommand
Browse files Browse the repository at this point in the history
This command is sometimes used to open the Transcript panel.
  • Loading branch information
LuanRT committed Feb 5, 2025
1 parent 1c1577e commit 3f960ef
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/parser/classes/commands/UpdateEngagementPanelContentCommand.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { YTNode } from '../../helpers.js';
import { type RawNode } from '../../index.js';

type Identifier = {
surface: string,
tag: string;
}

export default class UpdateEngagementPanelContentCommand extends YTNode {
static type = 'UpdateEngagementPanelContentCommand';

public content_source_panel_identifier?: Identifier;
public target_panel_identifier?: Identifier;

constructor(data: RawNode) {
super();
this.content_source_panel_identifier = data.contentSourcePanelIdentifier;
this.target_panel_identifier = data.targetPanelIdentifier;
}
}
1 change: 1 addition & 0 deletions src/parser/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export { default as ContinuationCommand } from './classes/commands/ContinuationC
export { default as GetKidsBlocklistPickerCommand } from './classes/commands/GetKidsBlocklistPickerCommand.js';
export { default as RunAttestationCommand } from './classes/commands/RunAttestationCommand.js';
export { default as ShowDialogCommand } from './classes/commands/ShowDialogCommand.js';
export { default as UpdateEngagementPanelContentCommand } from './classes/commands/UpdateEngagementPanelContentCommand.js';
export { default as AuthorCommentBadge } from './classes/comments/AuthorCommentBadge.js';
export { default as CommentActionButtons } from './classes/comments/CommentActionButtons.js';
export { default as CommentDialog } from './classes/comments/CommentDialog.js';
Expand Down

0 comments on commit 3f960ef

Please sign in to comment.