absidue
75d39e7afb
chore(parser): Simplify d0d48bf525 ( #888 )
2025-02-08 06:00:03 -03:00
absidue
0e869020db
refactor: Remove internal uses of the .first() and .matchCondition() helpers ( #889 )
2025-02-08 05:55:39 -03:00
Luan
d0d48bf525
feat(CommentView): Parse prepareAccountCommand
2025-02-05 15:02:48 -03:00
Luan
3f960effa2
fix(Parser): Add UpdateEngagementPanelContentCommand
...
This command is sometimes used to open the Transcript panel.
2025-02-05 06:55:13 -03:00
Luan
424c65356c
fix(LockupView): Add overlay nodes used by VIDEO views
2025-01-25 11:59:17 -03:00
Luan
3ffdee9554
fix(LockupMetadataView): Parse menuButton
2025-01-25 11:41:01 -03:00
Luan
083aec1c80
fix(LockupView): Fix content_image parsing
2025-01-25 11:33:38 -03:00
Luan
6d57353a80
feat(CompactLink): Parse subtitle, iconType, and iconType
2025-01-24 11:22:29 -03:00
Luan
32125c7045
feat(CommentView): Parse some extra tooltips
2025-01-21 07:51:55 -03:00
jonz94
a035b71696
fix(LiveChatTextMessage): Make some fields optional ( #877 )
...
- Mark `menu_endpoint` property as optional
- Mark `context_menu_accessibility_label` property as optional
2025-01-20 15:46:34 -03:00
Luan
50539bca9c
chore(ShortsLockupView): Use a shorter import
2025-01-11 17:47:24 -03:00
jonz94
732a30c09f
fix(Text#fromAttributed): Fix StyleRun assuming that the startIndex and length always exist ( #862 )
...
In AttributedText, styleRuns may not always include the `startIndex` or `length` properties
- If `startIndex` is missing, we assume the style applies from the beginning of the text
- If `length` is missing, we assume the style applies to the entire text
2025-01-11 17:27:16 -03:00
jonz94
0a3104bafc
feat(ContentMetadataView): Parse enableTruncation ( #863 )
2025-01-11 17:25:13 -03:00
jonz94
9025122484
feat(parser): Update LiveChatTextMessage ( #864 )
...
Update `LiveChatTextMessage` to extend `YTNode` rather than
`LiveChatMessageBase` to better align with the latest data
provided by Innertube.
- Add `timestamp_usec` property
- Add `timestamp_text` property
- Add `context_menu_accessibility_label` property
- Add `before_content_buttons` property
2025-01-11 17:23:22 -03:00
Luan
f3c777b316
fix(Text#toHTML): Return empty string if the text is undefined
2024-12-31 19:08:55 -03:00
Luan
f76a8e5d75
refactor(Parser): Update view models to use RendererContext.ts
...
May or may not be a breaking change for some.
2024-12-31 06:41:17 -03:00
jonz94
3c28c0d2c2
feat(parser): Update LiveChatPaidSticker ( #849 )
...
* Add `sticker_accessibility_label` property
* Add `sticker_display_width` property
* Add `sticker_display_height` property
* Add `context_menu_accessibility_label` property
* Add `timestamp_usec` property
* Add `is_v2_style` property
2024-12-31 06:24:12 -03:00
jonz94
6536801ec2
fix(ButtonCardView): Correct typo ( #855 )
2024-12-31 06:18:56 -03:00
jonz94
b4a947a9eb
feat(parser): Update LiveChatViewerEngagementMessage ( #856 )
...
Update `LiveChatViewerEngagementMessage` to extend `YTNode` rather than
`LiveChatMessageBase` to better align with the latest data provided by
Innertube.
2024-12-31 06:14:49 -03:00
jonz94
5f899fcdb3
feat(parser): Update Button ( #857 )
...
* Add `style` property
* Add `size` property
* Add `target_id` property
* Parse `data.accessibilityData.accessibilityData.label` if `data.accessibility.label` is unavailable
2024-12-31 06:11:31 -03:00
Luan
c6310228fe
feat(Parser): Add AvatarStackView
2024-12-31 06:05:49 -03:00
Luan
3a11b99429
feat(Parser): Implement utility class to parse rendererContext
...
This field is found in most of the newer view model nodes. It can contain accessibility labels, text, commands or nothing but logging info.
2024-12-31 06:04:53 -03:00
Luan
a602a317aa
feat(PageHeaderView): Parse heroImage
2024-12-31 05:23:35 -03:00
Luan
c2dd803eea
fix(DescriptionPreviewView): Parsing errors when certain fields are missing
2024-12-31 05:16:36 -03:00
Luan
88af6d89a5
feat(ToggleButtonView): Add is_toggled
2024-12-30 15:04:18 -03:00
Luan
913dcc74ea
fix(TextRun): Add img element only if an URL is available
2024-12-25 00:19:26 -03:00
Luan
75b8964180
feat(SubscribeButton): Add unsubscribe_text
2024-12-23 21:33:42 -03:00
jonz94
5f83a7416d
feat(parser): Update LiveChatTickerPaidStickerItem ( #848 )
...
The `LiveChatTickerPaidStickerItem` class has been updated to extend
`YTNode` instead of `LiveChatTickerPaidMessageItem` to better align with
the latest data provided by InnerTube
2024-12-22 16:09:34 -03:00
jonz94
ef37aa0a5a
feat(LiveChatPaidMessage): Parse headerOverlayImage and lowerBumper ( #851 )
...
* feat(LiveChatPaidMessage): Parse `headerOverlayImage` and `lowerBumper`
When a viewer donates for the 1st, 3rd, 5th, 10th, or 20th time,
there will be a special type of `LiveChatPaidMessage` that includes an
animated image in the header, followed by a bumper text message.
* chore: npm run build:parser-map
2024-12-22 16:08:37 -03:00
absidue
5050f4866b
chore(parser): Hoist API_PATH constants in endpoint nodes ( #852 )
2024-12-21 00:14:18 -03:00
Luan
78e79519e6
refactor(MultiPageMenuNotificationSection): Parse items as an array
2024-12-18 12:25:19 -03:00
Luan
e571ee2426
feat(RichGrid): Parse targetId
2024-12-17 17:34:16 -03:00
jonz94
342fdd1db3
feat(parser): Add ReplaceLiveChatAction ( #847 )
2024-12-15 01:09:18 -03:00
jonz94
73362c68fb
feat(parser): Update LiveChatPaidMessage ( #846 )
...
* Add `author_name_text_color` property
* Add `context_menu_accessibility_label` property
* Add `timestamp_usec` property
* Mark `timestamp_text` property as optional
* Add `timestamp_color` property
* Add `text_input_background_color` property
* Add `creator_heart_button` property
* Add `is_v2_style` property
* Add `reply_button` property
2024-12-15 01:09:02 -03:00
jonz94
29e8d3015a
feat(parser): Update LiveChatTickerPaidMessageItem ( #845 )
...
* Change `duration_sec` property type from `string` to `number`
* Change `full_duration_sec` property type from `string` to `number`
* Handle the scenario where the author's name is represented as `authUsername`
* Mark `amount` property as optional
* Add `start_background_color` property
* Add `amount_text_color` property
* Add `end_background_color` property
* Add `animation_origin` property
* Add `open_engagement_panel_command` property
2024-12-15 01:04:05 -03:00
Luan
0b73702bdd
chore(HowThisWasMadeSectionView): Make some fields optional
...
Just in case.
2024-12-14 12:41:24 -03:00
Luan
e95402731e
chore: lint
2024-12-14 12:35:55 -03:00
Luan
5da8a66551
feat(Parser): Add HowThisWasMadeSectionView node
2024-12-14 12:32:29 -03:00
jonz94
0c319aacde
feat(parser): Update LiveChatMembershipItem ( #836 )
2024-12-12 09:39:25 -03:00
jonz94
69d42b291c
feat(parser): Update LiveChatBanner ( #840 )
...
* Mark `viewerIsCreator` property as optional
* Mark `background_type` property as optional
* Add `banner_type` property
* Add `banner_properties_is_ephemeral` property
* Add `banner_properties_auto_collapse_delay_seconds` property
2024-12-12 09:38:44 -03:00
jonz94
9a9bb76a92
feat: add VideoMetadataCarouselView ( #839 )
2024-12-12 09:34:07 -03:00
jonz94
0b2b0da957
feat(parser): Add ClientSideToggleMenuItem ( #835 )
...
* feat(parser): Add `ClientSideToggleMenuItem`
* feat: parse the command
* feat: handle different type of `ClientSideToggleMenuItem`
2024-12-12 09:31:59 -03:00
jonz94
eeaae6209f
feat(parser): Add ButtonCardView ( #834 )
2024-12-12 09:31:14 -03:00
Luan
5f233ae34e
feat(parser): Add ActiveAccountHeader
...
Found on the 'You' (a.k.a, 'Library') page.
2024-12-10 18:32:31 -03:00
Luan
c1de097ce1
chore(Parser): Don't ignore BackgroundPromo
...
It turns out this is not an ad at all.
2024-12-10 16:30:23 -03:00
Luan
c8173c88e0
feat(parser): Add PlaylistThumbnailOverlay
2024-12-10 13:50:20 -03:00
Luan
ad2ae51b97
feat(parser): Add mobile guide nodes
2024-12-08 17:11:57 -03:00
Luan
d10fe6834a
feat(VideoViewCount): Add extra_short_view_count field
2024-12-04 14:32:15 -03:00
Luan
ec85b0f942
feat(parser): Add ShowEngagementPanelEndpoint
2024-11-28 18:14:25 -03:00
Patrick Kan
a7bb981731
refactor: Cookie-based session fixes and minor additions ( #821 )
...
* (fix) `on_behalf_of_user` arg not applied
* (feat) `AccountManager#getInfo()`: Add option to fetch full accounts list
2024-11-28 17:44:30 -03:00