feat(Channel): Support new about popup (#537)

* feat(Channel): Support new about popup

* chore: Minor cleanup

* fix(concatMemos): Merge duplicate nodes instead of overwriting

* fix(Feed): `has_continuation` and `getContinuation()` avoid header continuations

* chore(Channel): Remove unused import

---------

Co-authored-by: LuanRT <luan.lrt4@gmail.com>
This commit is contained in:
absidue
2023-12-01 02:06:25 +01:00
committed by GitHub
parent 6a5a579e39
commit c66eb1fecf
12 changed files with 253 additions and 8 deletions

View File

@@ -16,6 +16,10 @@ export default class EngagementPanelSectionList extends YTNode {
content: VideoAttributeView | SectionList | ContinuationItem | ClipSection | StructuredDescriptionContent | MacroMarkersList | ProductList | null;
target_id?: string;
panel_identifier?: string;
identifier?: {
surface: string,
tag: string
};
visibility?: string;
constructor(data: RawNode) {
@@ -23,6 +27,10 @@ export default class EngagementPanelSectionList extends YTNode {
this.header = Parser.parseItem(data.header, EngagementPanelTitleHeader);
this.content = Parser.parseItem(data.content, [ VideoAttributeView, SectionList, ContinuationItem, ClipSection, StructuredDescriptionContent, MacroMarkersList, ProductList ]);
this.panel_identifier = data.panelIdentifier;
this.identifier = data.identifier ? {
surface: data.identifier.surface,
tag: data.identifier.tag
} : undefined;
this.target_id = data.targetId;
this.visibility = data.visibility;
}