From af3a91645d84798e744519ec8f24e565cc1ecdb1 Mon Sep 17 00:00:00 2001 From: Luan Date: Wed, 27 Nov 2024 07:30:10 -0300 Subject: [PATCH] feat(EngagementPanelTitleHeader): Add `contextual_info` and `menu` Both con contain info about the comments section. --- src/parser/classes/EngagementPanelTitleHeader.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/parser/classes/EngagementPanelTitleHeader.ts b/src/parser/classes/EngagementPanelTitleHeader.ts index 6c6b0d7ea..e8a0cf65f 100644 --- a/src/parser/classes/EngagementPanelTitleHeader.ts +++ b/src/parser/classes/EngagementPanelTitleHeader.ts @@ -6,12 +6,16 @@ import Button from './Button.js'; export default class EngagementPanelTitleHeader extends YTNode { static type = 'EngagementPanelTitleHeader'; - title: Text; - visibility_button: Button | null; + public title: Text; + public visibility_button: Button | null; + public contextual_info?: Text; + public menu: YTNode | null; constructor(data: RawNode) { super(); this.title = new Text(data.title); + this.contextual_info = data.contextualInfo ? new Text(data.contextualInfo) : undefined; this.visibility_button = Parser.parseItem(data.visibilityButton, Button); + this.menu = Parser.parseItem(data.menu); } } \ No newline at end of file