diff --git a/src/parser/classes/ChipBarView.ts b/src/parser/classes/ChipBarView.ts index a862c126..61ec5e74 100644 --- a/src/parser/classes/ChipBarView.ts +++ b/src/parser/classes/ChipBarView.ts @@ -1,14 +1,22 @@ import { YTNode, type ObservedArray } from '../helpers.js'; import { Parser, type RawNode } from '../index.js'; +import { RendererContext } from '../misc.js'; import ChipView from './ChipView.js'; export default class ChipBarView extends YTNode { static type = 'ChipBarView'; - chips: ObservedArray; + public chips: ObservedArray; + public chip_bar_state_entity_key?: string; + public renderer_context?: RendererContext; constructor(data: RawNode) { super(); this.chips = Parser.parseArray(data.chips, ChipView); + this.chip_bar_state_entity_key = data.chipBarStateEntityKey; + + if ('rendererContext' in data) { + this.renderer_context = new RendererContext(data.rendererContext); + } } } \ No newline at end of file