From a0f5468ef38c7550408b5362929871a3face09a6 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Thu, 2 Nov 2023 18:10:27 +0100 Subject: [PATCH] perf: Use named Parser import, to allow bundlers to create direct function references --- docs/updating-the-parser.md | 2 +- src/core/Actions.ts | 2 +- src/core/clients/Kids.ts | 2 +- src/core/mixins/Feed.ts | 2 +- src/core/mixins/MediaInfo.ts | 2 +- src/parser/classes/AccountItemSection.ts | 2 +- src/parser/classes/AccountSectionList.ts | 2 +- src/parser/classes/BackstagePost.ts | 2 +- src/parser/classes/BackstagePostThread.ts | 2 +- src/parser/classes/BrowseFeedActions.ts | 2 +- src/parser/classes/C4TabbedHeader.ts | 2 +- src/parser/classes/Card.ts | 2 +- src/parser/classes/CardCollection.ts | 2 +- src/parser/classes/CarouselHeader.ts | 2 +- src/parser/classes/CarouselItem.ts | 2 +- src/parser/classes/CarouselLockup.ts | 2 +- src/parser/classes/Channel.ts | 2 +- src/parser/classes/ChannelAboutFullMetadata.ts | 2 +- src/parser/classes/ChannelFeaturedContent.ts | 2 +- src/parser/classes/ChannelSubMenu.ts | 2 +- src/parser/classes/ChipCloud.ts | 2 +- src/parser/classes/CompactChannel.ts | 2 +- src/parser/classes/CompactMovie.ts | 2 +- src/parser/classes/CompactVideo.ts | 2 +- src/parser/classes/ConfirmDialog.ts | 2 +- src/parser/classes/ContinuationItem.ts | 2 +- src/parser/classes/ConversationBar.ts | 2 +- src/parser/classes/CopyLink.ts | 2 +- src/parser/classes/CreatePlaylistDialog.ts | 2 +- src/parser/classes/DecoratedPlayerBar.ts | 2 +- src/parser/classes/DefaultPromoPanel.ts | 2 +- src/parser/classes/Dropdown.ts | 2 +- src/parser/classes/Element.ts | 2 +- src/parser/classes/EmergencyOnebox.ts | 2 +- src/parser/classes/EndScreenVideo.ts | 2 +- src/parser/classes/Endscreen.ts | 2 +- src/parser/classes/EndscreenElement.ts | 2 +- src/parser/classes/EngagementPanelSectionList.ts | 2 +- src/parser/classes/ExpandableMetadata.ts | 2 +- src/parser/classes/ExpandableTab.ts | 2 +- src/parser/classes/ExpandedShelfContents.ts | 2 +- src/parser/classes/FeedFilterChipBar.ts | 2 +- src/parser/classes/GameCard.ts | 2 +- src/parser/classes/Grid.ts | 2 +- src/parser/classes/GridChannel.ts | 2 +- src/parser/classes/GridMix.ts | 2 +- src/parser/classes/GridMovie.ts | 2 +- src/parser/classes/GridPlaylist.ts | 2 +- src/parser/classes/GridVideo.ts | 2 +- src/parser/classes/Heatmap.ts | 2 +- src/parser/classes/HorizontalCardList.ts | 2 +- src/parser/classes/HorizontalList.ts | 2 +- src/parser/classes/HorizontalMovieList.ts | 2 +- src/parser/classes/InfoPanelContainer.ts | 2 +- src/parser/classes/InteractiveTabbedHeader.ts | 2 +- src/parser/classes/ItemSection.ts | 2 +- src/parser/classes/ItemSectionTabbedHeader.ts | 2 +- src/parser/classes/LiveChat.ts | 2 +- src/parser/classes/LiveChatDialog.ts | 2 +- src/parser/classes/LiveChatHeader.ts | 2 +- src/parser/classes/LiveChatItemList.ts | 2 +- src/parser/classes/LiveChatMessageInput.ts | 2 +- src/parser/classes/LiveChatParticipant.ts | 2 +- src/parser/classes/LiveChatParticipantsList.ts | 2 +- src/parser/classes/MerchandiseShelf.ts | 2 +- src/parser/classes/MetadataRowContainer.ts | 2 +- src/parser/classes/MetadataScreen.ts | 2 +- src/parser/classes/Movie.ts | 2 +- src/parser/classes/MultiMarkersPlayerBar.ts | 2 +- src/parser/classes/MusicCardShelf.ts | 2 +- src/parser/classes/MusicCarouselShelf.ts | 2 +- src/parser/classes/MusicCarouselShelfBasicHeader.ts | 2 +- src/parser/classes/MusicDetailHeader.ts | 2 +- src/parser/classes/MusicEditablePlaylistDetailHeader.ts | 2 +- src/parser/classes/MusicElementHeader.ts | 2 +- src/parser/classes/MusicHeader.ts | 2 +- src/parser/classes/MusicImmersiveHeader.ts | 2 +- src/parser/classes/MusicItemThumbnailOverlay.ts | 2 +- src/parser/classes/MusicPlaylistShelf.ts | 2 +- src/parser/classes/MusicQueue.ts | 2 +- src/parser/classes/MusicResponsiveListItem.ts | 2 +- src/parser/classes/MusicShelf.ts | 2 +- src/parser/classes/MusicSideAlignedItem.ts | 2 +- src/parser/classes/MusicSortFilterButton.ts | 2 +- src/parser/classes/MusicTastebuilderShelf.ts | 2 +- src/parser/classes/MusicTwoRowItem.ts | 2 +- src/parser/classes/MusicVisualHeader.ts | 2 +- src/parser/classes/NavigationEndpoint.ts | 2 +- src/parser/classes/Notification.ts | 2 +- src/parser/classes/PageHeader.ts | 2 +- src/parser/classes/PageHeaderView.ts | 2 +- src/parser/classes/PlayerAnnotationsExpanded.ts | 2 +- src/parser/classes/PlayerErrorMessage.ts | 2 +- src/parser/classes/PlayerOverlay.ts | 2 +- src/parser/classes/PlayerOverlayAutoplay.ts | 2 +- src/parser/classes/Playlist.ts | 2 +- src/parser/classes/PlaylistHeader.ts | 2 +- src/parser/classes/PlaylistPanel.ts | 2 +- src/parser/classes/PlaylistPanelVideo.ts | 2 +- src/parser/classes/PlaylistPanelVideoWrapper.ts | 2 +- src/parser/classes/PlaylistSidebar.ts | 2 +- src/parser/classes/PlaylistSidebarPrimaryInfo.ts | 2 +- src/parser/classes/PlaylistSidebarSecondaryInfo.ts | 2 +- src/parser/classes/PlaylistVideo.ts | 2 +- src/parser/classes/PlaylistVideoList.ts | 2 +- src/parser/classes/PostMultiImage.ts | 2 +- src/parser/classes/ProductList.ts | 2 +- src/parser/classes/ProductListItem.ts | 2 +- src/parser/classes/ProfileColumn.ts | 2 +- src/parser/classes/ProfileColumnStats.ts | 2 +- src/parser/classes/RecognitionShelf.ts | 2 +- src/parser/classes/ReelShelf.ts | 2 +- src/parser/classes/RelatedChipCloud.ts | 2 +- src/parser/classes/RichGrid.ts | 2 +- src/parser/classes/RichItem.ts | 2 +- src/parser/classes/RichMetadataRow.ts | 2 +- src/parser/classes/RichSection.ts | 2 +- src/parser/classes/RichShelf.ts | 2 +- src/parser/classes/SearchBox.ts | 2 +- src/parser/classes/SearchSubMenu.ts | 2 +- src/parser/classes/SearchSuggestionsSection.ts | 2 +- src/parser/classes/SecondarySearchContainer.ts | 2 +- src/parser/classes/SectionList.ts | 2 +- src/parser/classes/SegmentedLikeDislikeButton.ts | 2 +- src/parser/classes/SettingsOptions.ts | 2 +- src/parser/classes/SettingsSidebar.ts | 2 +- src/parser/classes/Shelf.ts | 2 +- src/parser/classes/SingleColumnBrowseResults.ts | 2 +- src/parser/classes/SingleColumnMusicWatchNextResults.ts | 2 +- src/parser/classes/SlimOwner.ts | 2 +- src/parser/classes/SlimVideoMetadata.ts | 2 +- src/parser/classes/StructuredDescriptionContent.ts | 2 +- src/parser/classes/SubFeedSelector.ts | 2 +- src/parser/classes/SubscribeButton.ts | 2 +- src/parser/classes/SubscriptionNotificationToggleButton.ts | 2 +- src/parser/classes/Tab.ts | 2 +- src/parser/classes/Tabbed.ts | 2 +- src/parser/classes/TabbedSearchResults.ts | 2 +- src/parser/classes/TopicChannelDetails.ts | 2 +- src/parser/classes/Transcript.ts | 2 +- src/parser/classes/TranscriptFooter.ts | 2 +- src/parser/classes/TranscriptSearchBox.ts | 2 +- src/parser/classes/TranscriptSearchPanel.ts | 2 +- src/parser/classes/TranscriptSegmentList.ts | 2 +- src/parser/classes/TwoColumnBrowseResults.ts | 2 +- src/parser/classes/TwoColumnSearchResults.ts | 2 +- src/parser/classes/TwoColumnWatchNextResults.ts | 2 +- src/parser/classes/UniversalWatchCard.ts | 2 +- src/parser/classes/UploadTimeFactoid.ts | 2 +- src/parser/classes/UpsellDialog.ts | 2 +- src/parser/classes/VerticalList.ts | 2 +- src/parser/classes/VerticalWatchCardList.ts | 2 +- src/parser/classes/Video.ts | 2 +- src/parser/classes/VideoDescriptionCourseSection.ts | 2 +- src/parser/classes/VideoDescriptionHeader.ts | 2 +- src/parser/classes/VideoDescriptionInfocardsSection.ts | 2 +- src/parser/classes/VideoDescriptionMusicSection.ts | 2 +- src/parser/classes/VideoDescriptionTranscriptSection.ts | 2 +- src/parser/classes/VideoPrimaryInfo.ts | 2 +- src/parser/classes/VideoSecondaryInfo.ts | 2 +- src/parser/classes/ViewCountFactoid.ts | 2 +- src/parser/classes/WatchCardHeroVideo.ts | 2 +- src/parser/classes/WatchCardSectionSequence.ts | 2 +- src/parser/classes/WatchNextEndScreen.ts | 2 +- src/parser/classes/actions/AppendContinuationItemsAction.ts | 2 +- src/parser/classes/actions/OpenPopupAction.ts | 2 +- src/parser/classes/actions/UpdateEngagementPanelAction.ts | 2 +- src/parser/classes/comments/Comment.ts | 2 +- src/parser/classes/comments/CommentActionButtons.ts | 2 +- src/parser/classes/comments/CommentDialog.ts | 2 +- src/parser/classes/comments/CommentReplies.ts | 2 +- src/parser/classes/comments/CommentReplyDialog.ts | 2 +- src/parser/classes/comments/CommentSimplebox.ts | 2 +- src/parser/classes/comments/CommentThread.ts | 2 +- src/parser/classes/comments/CommentsHeader.ts | 2 +- src/parser/classes/comments/EmojiPicker.ts | 2 +- src/parser/classes/livechat/AddBannerToLiveChatCommand.ts | 2 +- src/parser/classes/livechat/AddChatItemAction.ts | 2 +- src/parser/classes/livechat/AddLiveChatTickerItemAction.ts | 2 +- src/parser/classes/livechat/LiveChatActionPanel.ts | 2 +- src/parser/classes/livechat/ReplaceChatItemAction.ts | 2 +- src/parser/classes/livechat/ReplayChatItemAction.ts | 2 +- src/parser/classes/livechat/ShowLiveChatActionPanelAction.ts | 2 +- src/parser/classes/livechat/ShowLiveChatDialogAction.ts | 2 +- src/parser/classes/livechat/ShowLiveChatTooltipCommand.ts | 2 +- src/parser/classes/livechat/UpdateLiveChatPollAction.ts | 2 +- src/parser/classes/livechat/items/LiveChatAutoModMessage.ts | 2 +- src/parser/classes/livechat/items/LiveChatBanner.ts | 2 +- src/parser/classes/livechat/items/LiveChatBannerHeader.ts | 2 +- src/parser/classes/livechat/items/LiveChatBannerPoll.ts | 2 +- src/parser/classes/livechat/items/LiveChatProductItem.ts | 2 +- src/parser/classes/livechat/items/LiveChatTextMessage.ts | 2 +- .../classes/livechat/items/LiveChatTickerPaidMessageItem.ts | 2 +- .../classes/livechat/items/LiveChatViewerEngagementMessage.ts | 2 +- src/parser/classes/livechat/items/PollHeader.ts | 2 +- src/parser/classes/menus/Menu.ts | 2 +- src/parser/classes/menus/MenuPopup.ts | 2 +- src/parser/classes/menus/MultiPageMenu.ts | 2 +- src/parser/classes/menus/MultiPageMenuNotificationSection.ts | 2 +- src/parser/classes/menus/MusicMultiSelectMenu.ts | 2 +- src/parser/classes/menus/SimpleMenuHeader.ts | 2 +- src/parser/classes/misc/Author.ts | 2 +- src/parser/classes/ytkids/AnchoredSection.ts | 2 +- src/parser/classes/ytkids/KidsBlocklistPicker.ts | 2 +- src/parser/classes/ytkids/KidsBlocklistPickerItem.ts | 2 +- src/parser/classes/ytkids/KidsCategoriesHeader.ts | 2 +- src/parser/classes/ytkids/KidsHomeScreen.ts | 2 +- src/parser/index.ts | 4 +--- src/parser/youtube/AccountInfo.ts | 2 +- src/parser/youtube/Analytics.ts | 2 +- src/parser/youtube/Comments.ts | 2 +- src/parser/youtube/LiveChat.ts | 2 +- src/parser/youtube/NotificationsMenu.ts | 2 +- src/parser/youtube/Settings.ts | 2 +- src/parser/youtube/TimeWatched.ts | 2 +- src/parser/youtube/TranscriptInfo.ts | 2 +- src/parser/ytmusic/Album.ts | 2 +- src/parser/ytmusic/Artist.ts | 2 +- src/parser/ytmusic/Explore.ts | 2 +- src/parser/ytmusic/HomeFeed.ts | 2 +- src/parser/ytmusic/Library.ts | 2 +- src/parser/ytmusic/Playlist.ts | 2 +- src/parser/ytmusic/Recap.ts | 2 +- src/parser/ytmusic/Search.ts | 2 +- src/platform/lib.ts | 1 - 225 files changed, 224 insertions(+), 227 deletions(-) diff --git a/docs/updating-the-parser.md b/docs/updating-the-parser.md index 37ad6cf8c..9e630cae0 100644 --- a/docs/updating-the-parser.md +++ b/docs/updating-the-parser.md @@ -31,7 +31,7 @@ For example, suppose we have found a new renderer named `verticalListRenderer`. > `../classes/VerticalList.ts` ```ts -import Parser, { RawNode } from '../index.js'; +import { Parser, RawNode } from '../index.js'; import { YTNode } from '../helpers.js'; export default class VerticalList extends YTNode { diff --git a/src/core/Actions.ts b/src/core/Actions.ts index 6d741918c..3f43d9806 100644 --- a/src/core/Actions.ts +++ b/src/core/Actions.ts @@ -1,4 +1,4 @@ -import Parser, { NavigateAction } from '../parser/index.js'; +import { Parser, NavigateAction } from '../parser/index.js'; import { InnertubeError } from '../utils/Utils.js'; import type Session from './Session.js'; diff --git a/src/core/clients/Kids.ts b/src/core/clients/Kids.ts index 5981f3ef3..ab9d53cb9 100644 --- a/src/core/clients/Kids.ts +++ b/src/core/clients/Kids.ts @@ -1,4 +1,4 @@ -import Parser from '../../parser/index.js'; +import { Parser } from '../../parser/index.js'; import Channel from '../../parser/ytkids/Channel.js'; import HomeFeed from '../../parser/ytkids/HomeFeed.js'; import Search from '../../parser/ytkids/Search.js'; diff --git a/src/core/mixins/Feed.ts b/src/core/mixins/Feed.ts index 26daa3c7c..d3112a54d 100644 --- a/src/core/mixins/Feed.ts +++ b/src/core/mixins/Feed.ts @@ -1,5 +1,5 @@ import type { Memo, ObservedArray, SuperParsedResult, YTNode } from '../../parser/helpers.js'; -import Parser, { ReloadContinuationItemsCommand } from '../../parser/index.js'; +import { Parser, ReloadContinuationItemsCommand } from '../../parser/index.js'; import { concatMemos, InnertubeError } from '../../utils/Utils.js'; import type Actions from '../Actions.js'; diff --git a/src/core/mixins/MediaInfo.ts b/src/core/mixins/MediaInfo.ts index 33de027f2..19a8158f8 100644 --- a/src/core/mixins/MediaInfo.ts +++ b/src/core/mixins/MediaInfo.ts @@ -6,7 +6,7 @@ import * as FormatUtils from '../../utils/FormatUtils.js'; import { InnertubeError } from '../../utils/Utils.js'; import type Format from '../../parser/classes/misc/Format.js'; import type { INextResponse, IPlayerResponse } from '../../parser/index.js'; -import Parser from '../../parser/index.js'; +import { Parser } from '../../parser/index.js'; import type { DashOptions } from '../../types/DashOptions.js'; import PlayerStoryboardSpec from '../../parser/classes/PlayerStoryboardSpec.js'; import { getStreamingInfo } from '../../utils/StreamingInfo.js'; diff --git a/src/parser/classes/AccountItemSection.ts b/src/parser/classes/AccountItemSection.ts index c614df6cc..75a25027c 100644 --- a/src/parser/classes/AccountItemSection.ts +++ b/src/parser/classes/AccountItemSection.ts @@ -1,4 +1,4 @@ -import Parser from '../index.js'; +import { Parser } from '../index.js'; import AccountItemSectionHeader from './AccountItemSectionHeader.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/AccountSectionList.ts b/src/parser/classes/AccountSectionList.ts index b42c82117..28faa9985 100644 --- a/src/parser/classes/AccountSectionList.ts +++ b/src/parser/classes/AccountSectionList.ts @@ -1,4 +1,4 @@ -import Parser from '../index.js'; +import { Parser } from '../index.js'; import AccountChannel from './AccountChannel.js'; import AccountItemSection from './AccountItemSection.js'; diff --git a/src/parser/classes/BackstagePost.ts b/src/parser/classes/BackstagePost.ts index e71fb327c..d5fb4ece2 100644 --- a/src/parser/classes/BackstagePost.ts +++ b/src/parser/classes/BackstagePost.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import CommentActionButtons from './comments/CommentActionButtons.js'; diff --git a/src/parser/classes/BackstagePostThread.ts b/src/parser/classes/BackstagePostThread.ts index 189ceb1c5..f9879919a 100644 --- a/src/parser/classes/BackstagePostThread.ts +++ b/src/parser/classes/BackstagePostThread.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { YTNode } from '../helpers.js'; export default class BackstagePostThread extends YTNode { diff --git a/src/parser/classes/BrowseFeedActions.ts b/src/parser/classes/BrowseFeedActions.ts index 432222e9b..d449662f3 100644 --- a/src/parser/classes/BrowseFeedActions.ts +++ b/src/parser/classes/BrowseFeedActions.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type ObservedArray, YTNode } from '../helpers.js'; export default class BrowseFeedActions extends YTNode { diff --git a/src/parser/classes/C4TabbedHeader.ts b/src/parser/classes/C4TabbedHeader.ts index e6417d11c..72c1d67d3 100644 --- a/src/parser/classes/C4TabbedHeader.ts +++ b/src/parser/classes/C4TabbedHeader.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import ChannelHeaderLinks from './ChannelHeaderLinks.js'; import ChannelHeaderLinksView from './ChannelHeaderLinksView.js'; diff --git a/src/parser/classes/Card.ts b/src/parser/classes/Card.ts index f49dc03c3..0ade60452 100644 --- a/src/parser/classes/Card.ts +++ b/src/parser/classes/Card.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { YTNode } from '../helpers.js'; export default class Card extends YTNode { diff --git a/src/parser/classes/CardCollection.ts b/src/parser/classes/CardCollection.ts index ba57812a8..e27ba7783 100644 --- a/src/parser/classes/CardCollection.ts +++ b/src/parser/classes/CardCollection.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Text from './misc/Text.js'; export default class CardCollection extends YTNode { diff --git a/src/parser/classes/CarouselHeader.ts b/src/parser/classes/CarouselHeader.ts index d3e617b18..ec816e6df 100644 --- a/src/parser/classes/CarouselHeader.ts +++ b/src/parser/classes/CarouselHeader.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type ObservedArray, YTNode } from '../helpers.js'; export default class CarouselHeader extends YTNode { diff --git a/src/parser/classes/CarouselItem.ts b/src/parser/classes/CarouselItem.ts index 871711a18..f8cae18b6 100644 --- a/src/parser/classes/CarouselItem.ts +++ b/src/parser/classes/CarouselItem.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type ObservedArray, YTNode } from '../helpers.js'; import Thumbnail from './misc/Thumbnail.js'; diff --git a/src/parser/classes/CarouselLockup.ts b/src/parser/classes/CarouselLockup.ts index c1a794ef2..cbf2387a0 100644 --- a/src/parser/classes/CarouselLockup.ts +++ b/src/parser/classes/CarouselLockup.ts @@ -1,6 +1,6 @@ import { type ObservedArray, YTNode } from '../helpers.js'; import InfoRow from './InfoRow.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import CompactVideo from './CompactVideo.js'; export default class CarouselLockup extends YTNode { diff --git a/src/parser/classes/Channel.ts b/src/parser/classes/Channel.ts index 1c08d869c..a9db9430f 100644 --- a/src/parser/classes/Channel.ts +++ b/src/parser/classes/Channel.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import SubscribeButton from './SubscribeButton.js'; diff --git a/src/parser/classes/ChannelAboutFullMetadata.ts b/src/parser/classes/ChannelAboutFullMetadata.ts index c6de75234..699996cb6 100644 --- a/src/parser/classes/ChannelAboutFullMetadata.ts +++ b/src/parser/classes/ChannelAboutFullMetadata.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/ChannelFeaturedContent.ts b/src/parser/classes/ChannelFeaturedContent.ts index e14448b0b..908342557 100644 --- a/src/parser/classes/ChannelFeaturedContent.ts +++ b/src/parser/classes/ChannelFeaturedContent.ts @@ -1,5 +1,5 @@ import { type ObservedArray, YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Text from './misc/Text.js'; export default class ChannelFeaturedContent extends YTNode { diff --git a/src/parser/classes/ChannelSubMenu.ts b/src/parser/classes/ChannelSubMenu.ts index d17b5e9ba..b346496f2 100644 --- a/src/parser/classes/ChannelSubMenu.ts +++ b/src/parser/classes/ChannelSubMenu.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; export default class ChannelSubMenu extends YTNode { diff --git a/src/parser/classes/ChipCloud.ts b/src/parser/classes/ChipCloud.ts index dd4e22bdf..4e0953375 100644 --- a/src/parser/classes/ChipCloud.ts +++ b/src/parser/classes/ChipCloud.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import ChipCloudChip from './ChipCloudChip.js'; diff --git a/src/parser/classes/CompactChannel.ts b/src/parser/classes/CompactChannel.ts index 9f1b36041..e7d9c4512 100644 --- a/src/parser/classes/CompactChannel.ts +++ b/src/parser/classes/CompactChannel.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Menu from './menus/Menu.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/CompactMovie.ts b/src/parser/classes/CompactMovie.ts index 542bf5574..199c2cedf 100644 --- a/src/parser/classes/CompactMovie.ts +++ b/src/parser/classes/CompactMovie.ts @@ -1,6 +1,6 @@ import { YTNode, type ObservedArray } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import Author from './misc/Author.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/CompactVideo.ts b/src/parser/classes/CompactVideo.ts index 39c16db7d..22ad2c8f7 100644 --- a/src/parser/classes/CompactVideo.ts +++ b/src/parser/classes/CompactVideo.ts @@ -1,6 +1,6 @@ import { timeToSeconds } from '../../utils/Utils.js'; import { YTNode, type ObservedArray, type SuperParsedResult } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Menu from './menus/Menu.js'; import MetadataBadge from './MetadataBadge.js'; import Author from './misc/Author.js'; diff --git a/src/parser/classes/ConfirmDialog.ts b/src/parser/classes/ConfirmDialog.ts index d33265de4..7d12d9879 100644 --- a/src/parser/classes/ConfirmDialog.ts +++ b/src/parser/classes/ConfirmDialog.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Text from './misc/Text.js'; import Button from './Button.js'; import { YTNode } from '../helpers.js'; diff --git a/src/parser/classes/ContinuationItem.ts b/src/parser/classes/ContinuationItem.ts index 1f6593b8c..c7c40fb5e 100644 --- a/src/parser/classes/ContinuationItem.ts +++ b/src/parser/classes/ContinuationItem.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import NavigationEndpoint from './NavigationEndpoint.js'; diff --git a/src/parser/classes/ConversationBar.ts b/src/parser/classes/ConversationBar.ts index 2ebfff782..c03ae7aea 100644 --- a/src/parser/classes/ConversationBar.ts +++ b/src/parser/classes/ConversationBar.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Message from './Message.js'; export default class ConversationBar extends YTNode { diff --git a/src/parser/classes/CopyLink.ts b/src/parser/classes/CopyLink.ts index 89bc8d655..f09c471cf 100644 --- a/src/parser/classes/CopyLink.ts +++ b/src/parser/classes/CopyLink.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; export default class CopyLink extends YTNode { diff --git a/src/parser/classes/CreatePlaylistDialog.ts b/src/parser/classes/CreatePlaylistDialog.ts index 4332b3802..b4085b871 100644 --- a/src/parser/classes/CreatePlaylistDialog.ts +++ b/src/parser/classes/CreatePlaylistDialog.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import Dropdown from './Dropdown.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/DecoratedPlayerBar.ts b/src/parser/classes/DecoratedPlayerBar.ts index 5a2781cfe..0ad7bd734 100644 --- a/src/parser/classes/DecoratedPlayerBar.ts +++ b/src/parser/classes/DecoratedPlayerBar.ts @@ -1,6 +1,6 @@ import { YTNode } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import Button from './Button.js'; import MultiMarkersPlayerBar from './MultiMarkersPlayerBar.js'; diff --git a/src/parser/classes/DefaultPromoPanel.ts b/src/parser/classes/DefaultPromoPanel.ts index db85431c6..b3cff7723 100644 --- a/src/parser/classes/DefaultPromoPanel.ts +++ b/src/parser/classes/DefaultPromoPanel.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/Dropdown.ts b/src/parser/classes/Dropdown.ts index 325b6e322..8654b03f1 100644 --- a/src/parser/classes/Dropdown.ts +++ b/src/parser/classes/Dropdown.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import DropdownItem from './DropdownItem.js'; export default class Dropdown extends YTNode { diff --git a/src/parser/classes/Element.ts b/src/parser/classes/Element.ts index 16274a00f..161e630bb 100644 --- a/src/parser/classes/Element.ts +++ b/src/parser/classes/Element.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import ChildElement from './misc/ChildElement.js'; import { type ObservedArray, YTNode, observe } from '../helpers.js'; diff --git a/src/parser/classes/EmergencyOnebox.ts b/src/parser/classes/EmergencyOnebox.ts index f9244f9c6..7162f777e 100644 --- a/src/parser/classes/EmergencyOnebox.ts +++ b/src/parser/classes/EmergencyOnebox.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Menu from './menus/Menu.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/EndScreenVideo.ts b/src/parser/classes/EndScreenVideo.ts index bd7da24af..35a5523d6 100644 --- a/src/parser/classes/EndScreenVideo.ts +++ b/src/parser/classes/EndScreenVideo.ts @@ -1,5 +1,5 @@ import { type ObservedArray, YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Author from './misc/Author.js'; import Text from './misc/Text.js'; import Thumbnail from './misc/Thumbnail.js'; diff --git a/src/parser/classes/Endscreen.ts b/src/parser/classes/Endscreen.ts index 03267ece2..6cfb970b7 100644 --- a/src/parser/classes/Endscreen.ts +++ b/src/parser/classes/Endscreen.ts @@ -1,4 +1,4 @@ -import Parser from '../index.js'; +import { Parser } from '../index.js'; import { type ObservedArray, YTNode } from '../helpers.js'; export default class Endscreen extends YTNode { diff --git a/src/parser/classes/EndscreenElement.ts b/src/parser/classes/EndscreenElement.ts index 3bf96ad77..61b30678c 100644 --- a/src/parser/classes/EndscreenElement.ts +++ b/src/parser/classes/EndscreenElement.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Thumbnail from './misc/Thumbnail.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/EngagementPanelSectionList.ts b/src/parser/classes/EngagementPanelSectionList.ts index 506fcf6ff..8312d8292 100644 --- a/src/parser/classes/EngagementPanelSectionList.ts +++ b/src/parser/classes/EngagementPanelSectionList.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import ContinuationItem from './ContinuationItem.js'; import EngagementPanelTitleHeader from './EngagementPanelTitleHeader.js'; import MacroMarkersList from './MacroMarkersList.js'; diff --git a/src/parser/classes/ExpandableMetadata.ts b/src/parser/classes/ExpandableMetadata.ts index e7096b3be..90dbe8c12 100644 --- a/src/parser/classes/ExpandableMetadata.ts +++ b/src/parser/classes/ExpandableMetadata.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import HorizontalCardList from './HorizontalCardList.js'; import HorizontalList from './HorizontalList.js'; diff --git a/src/parser/classes/ExpandableTab.ts b/src/parser/classes/ExpandableTab.ts index c20a5a713..a325a4ac9 100644 --- a/src/parser/classes/ExpandableTab.ts +++ b/src/parser/classes/ExpandableTab.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; export default class ExpandableTab extends YTNode { diff --git a/src/parser/classes/ExpandedShelfContents.ts b/src/parser/classes/ExpandedShelfContents.ts index 02ba55487..088c32f0c 100644 --- a/src/parser/classes/ExpandedShelfContents.ts +++ b/src/parser/classes/ExpandedShelfContents.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type ObservedArray, YTNode } from '../helpers.js'; export default class ExpandedShelfContents extends YTNode { diff --git a/src/parser/classes/FeedFilterChipBar.ts b/src/parser/classes/FeedFilterChipBar.ts index 570d8d8b2..c36b24a38 100644 --- a/src/parser/classes/FeedFilterChipBar.ts +++ b/src/parser/classes/FeedFilterChipBar.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import ChipCloudChip from './ChipCloudChip.js'; export default class FeedFilterChipBar extends YTNode { diff --git a/src/parser/classes/GameCard.ts b/src/parser/classes/GameCard.ts index e35ede275..ec08bc777 100644 --- a/src/parser/classes/GameCard.ts +++ b/src/parser/classes/GameCard.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; export default class GameCard extends YTNode { static type = 'GameCard'; diff --git a/src/parser/classes/Grid.ts b/src/parser/classes/Grid.ts index 4e440dc87..a52be6ca1 100644 --- a/src/parser/classes/Grid.ts +++ b/src/parser/classes/Grid.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; export default class Grid extends YTNode { static type = 'Grid'; diff --git a/src/parser/classes/GridChannel.ts b/src/parser/classes/GridChannel.ts index f5c6ba45c..cbb91ec3e 100644 --- a/src/parser/classes/GridChannel.ts +++ b/src/parser/classes/GridChannel.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Author from './misc/Author.js'; import Text from './misc/Text.js'; import NavigationEndpoint from './NavigationEndpoint.js'; diff --git a/src/parser/classes/GridMix.ts b/src/parser/classes/GridMix.ts index f906687ce..bffbc3827 100644 --- a/src/parser/classes/GridMix.ts +++ b/src/parser/classes/GridMix.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; import Thumbnail from './misc/Thumbnail.js'; diff --git a/src/parser/classes/GridMovie.ts b/src/parser/classes/GridMovie.ts index 12881a1f1..77de0426a 100644 --- a/src/parser/classes/GridMovie.ts +++ b/src/parser/classes/GridMovie.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import MetadataBadge from './MetadataBadge.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/GridPlaylist.ts b/src/parser/classes/GridPlaylist.ts index 1a7f0bd68..1dc81591a 100644 --- a/src/parser/classes/GridPlaylist.ts +++ b/src/parser/classes/GridPlaylist.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Author from './misc/Author.js'; import Text from './misc/Text.js'; import Thumbnail from './misc/Thumbnail.js'; diff --git a/src/parser/classes/GridVideo.ts b/src/parser/classes/GridVideo.ts index 862562015..fc90812ee 100644 --- a/src/parser/classes/GridVideo.ts +++ b/src/parser/classes/GridVideo.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Menu from './menus/Menu.js'; import Author from './misc/Author.js'; diff --git a/src/parser/classes/Heatmap.ts b/src/parser/classes/Heatmap.ts index adb432e08..2a85ca09b 100644 --- a/src/parser/classes/Heatmap.ts +++ b/src/parser/classes/Heatmap.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import HeatMarker from './HeatMarker.js'; import { type ObservedArray, YTNode } from '../helpers.js'; diff --git a/src/parser/classes/HorizontalCardList.ts b/src/parser/classes/HorizontalCardList.ts index cee9dce04..4f469fc99 100644 --- a/src/parser/classes/HorizontalCardList.ts +++ b/src/parser/classes/HorizontalCardList.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type ObservedArray, YTNode } from '../helpers.js'; import SearchRefinementCard from './SearchRefinementCard.js'; import Button from './Button.js'; diff --git a/src/parser/classes/HorizontalList.ts b/src/parser/classes/HorizontalList.ts index 4d2a6a7cb..729a89b3d 100644 --- a/src/parser/classes/HorizontalList.ts +++ b/src/parser/classes/HorizontalList.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type ObservedArray, YTNode } from '../helpers.js'; export default class HorizontalList extends YTNode { diff --git a/src/parser/classes/HorizontalMovieList.ts b/src/parser/classes/HorizontalMovieList.ts index eaa6f3be6..f790e6501 100644 --- a/src/parser/classes/HorizontalMovieList.ts +++ b/src/parser/classes/HorizontalMovieList.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type ObservedArray, YTNode } from '../helpers.js'; import Button from './Button.js'; diff --git a/src/parser/classes/InfoPanelContainer.ts b/src/parser/classes/InfoPanelContainer.ts index c1a6174f6..7b0b7f497 100644 --- a/src/parser/classes/InfoPanelContainer.ts +++ b/src/parser/classes/InfoPanelContainer.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import InfoPanelContent from './InfoPanelContent.js'; import Menu from './menus/Menu.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/InteractiveTabbedHeader.ts b/src/parser/classes/InteractiveTabbedHeader.ts index d72fa98d3..318f359e0 100644 --- a/src/parser/classes/InteractiveTabbedHeader.ts +++ b/src/parser/classes/InteractiveTabbedHeader.ts @@ -5,7 +5,7 @@ import Text from './misc/Text.js'; import Thumbnail from './misc/Thumbnail.js'; import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; export default class InteractiveTabbedHeader extends YTNode { static type = 'InteractiveTabbedHeader'; diff --git a/src/parser/classes/ItemSection.ts b/src/parser/classes/ItemSection.ts index 855c6284c..f27d41db0 100644 --- a/src/parser/classes/ItemSection.ts +++ b/src/parser/classes/ItemSection.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import ItemSectionHeader from './ItemSectionHeader.js'; import ItemSectionTabbedHeader from './ItemSectionTabbedHeader.js'; import CommentsHeader from './comments/CommentsHeader.js'; diff --git a/src/parser/classes/ItemSectionTabbedHeader.ts b/src/parser/classes/ItemSectionTabbedHeader.ts index 3cd27d2c5..145261b8d 100644 --- a/src/parser/classes/ItemSectionTabbedHeader.ts +++ b/src/parser/classes/ItemSectionTabbedHeader.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import ItemSectionTab from './ItemSectionTab.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/LiveChat.ts b/src/parser/classes/LiveChat.ts index 83eb35c01..53ecf7f83 100644 --- a/src/parser/classes/LiveChat.ts +++ b/src/parser/classes/LiveChat.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Text from './misc/Text.js'; export default class LiveChat extends YTNode { diff --git a/src/parser/classes/LiveChatDialog.ts b/src/parser/classes/LiveChatDialog.ts index ee374b5a7..57f281a6d 100644 --- a/src/parser/classes/LiveChatDialog.ts +++ b/src/parser/classes/LiveChatDialog.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/LiveChatHeader.ts b/src/parser/classes/LiveChatHeader.ts index 19f0e96ee..8cd6ab3dc 100644 --- a/src/parser/classes/LiveChatHeader.ts +++ b/src/parser/classes/LiveChatHeader.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import SortFilterSubMenu from './SortFilterSubMenu.js'; import Menu from './menus/Menu.js'; diff --git a/src/parser/classes/LiveChatItemList.ts b/src/parser/classes/LiveChatItemList.ts index a38bebee7..954080f3d 100644 --- a/src/parser/classes/LiveChatItemList.ts +++ b/src/parser/classes/LiveChatItemList.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; export default class LiveChatItemList extends YTNode { diff --git a/src/parser/classes/LiveChatMessageInput.ts b/src/parser/classes/LiveChatMessageInput.ts index bf7bfef96..a4540f5f1 100644 --- a/src/parser/classes/LiveChatMessageInput.ts +++ b/src/parser/classes/LiveChatMessageInput.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import Text from './misc/Text.js'; import Thumbnail from './misc/Thumbnail.js'; diff --git a/src/parser/classes/LiveChatParticipant.ts b/src/parser/classes/LiveChatParticipant.ts index 93cf71703..9e83b81df 100644 --- a/src/parser/classes/LiveChatParticipant.ts +++ b/src/parser/classes/LiveChatParticipant.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Text from './misc/Text.js'; import Thumbnail from './misc/Thumbnail.js'; diff --git a/src/parser/classes/LiveChatParticipantsList.ts b/src/parser/classes/LiveChatParticipantsList.ts index f82289b7b..e96c61f38 100644 --- a/src/parser/classes/LiveChatParticipantsList.ts +++ b/src/parser/classes/LiveChatParticipantsList.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import LiveChatParticipant from './LiveChatParticipant.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/MerchandiseShelf.ts b/src/parser/classes/MerchandiseShelf.ts index bc371d3c2..c7515dacd 100644 --- a/src/parser/classes/MerchandiseShelf.ts +++ b/src/parser/classes/MerchandiseShelf.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; export default class MerchandiseShelf extends YTNode { static type = 'MerchandiseShelf'; diff --git a/src/parser/classes/MetadataRowContainer.ts b/src/parser/classes/MetadataRowContainer.ts index e22a68482..62fda62d3 100644 --- a/src/parser/classes/MetadataRowContainer.ts +++ b/src/parser/classes/MetadataRowContainer.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type ObservedArray, YTNode } from '../helpers.js'; export default class MetadataRowContainer extends YTNode { diff --git a/src/parser/classes/MetadataScreen.ts b/src/parser/classes/MetadataScreen.ts index 79ddb6cb6..7eda49dbb 100644 --- a/src/parser/classes/MetadataScreen.ts +++ b/src/parser/classes/MetadataScreen.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { YTNode } from '../helpers.js'; export default class MetadataScreen extends YTNode { diff --git a/src/parser/classes/Movie.ts b/src/parser/classes/Movie.ts index 357544745..e1f9d413e 100644 --- a/src/parser/classes/Movie.ts +++ b/src/parser/classes/Movie.ts @@ -1,6 +1,6 @@ import { timeToSeconds } from '../../utils/Utils.js'; import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Menu from './menus/Menu.js'; import Author from './misc/Author.js'; diff --git a/src/parser/classes/MultiMarkersPlayerBar.ts b/src/parser/classes/MultiMarkersPlayerBar.ts index 5d0d6416d..0008c8463 100644 --- a/src/parser/classes/MultiMarkersPlayerBar.ts +++ b/src/parser/classes/MultiMarkersPlayerBar.ts @@ -1,6 +1,6 @@ import { YTNode, observe, type ObservedArray } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import Chapter from './Chapter.js'; import Heatmap from './Heatmap.js'; diff --git a/src/parser/classes/MusicCardShelf.ts b/src/parser/classes/MusicCardShelf.ts index eeaf33f21..2c6adc666 100644 --- a/src/parser/classes/MusicCardShelf.ts +++ b/src/parser/classes/MusicCardShelf.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import Menu from './menus/Menu.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/MusicCarouselShelf.ts b/src/parser/classes/MusicCarouselShelf.ts index 1c4ed0c47..accb02023 100644 --- a/src/parser/classes/MusicCarouselShelf.ts +++ b/src/parser/classes/MusicCarouselShelf.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import MusicCarouselShelfBasicHeader from './MusicCarouselShelfBasicHeader.js'; import MusicMultiRowListItem from './MusicMultiRowListItem.js'; diff --git a/src/parser/classes/MusicCarouselShelfBasicHeader.ts b/src/parser/classes/MusicCarouselShelfBasicHeader.ts index 03de9222d..623425bb8 100644 --- a/src/parser/classes/MusicCarouselShelfBasicHeader.ts +++ b/src/parser/classes/MusicCarouselShelfBasicHeader.ts @@ -1,5 +1,5 @@ import { type ObservedArray, YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import IconLink from './IconLink.js'; import MusicThumbnail from './MusicThumbnail.js'; diff --git a/src/parser/classes/MusicDetailHeader.ts b/src/parser/classes/MusicDetailHeader.ts index 02f763c7d..eb511fedf 100644 --- a/src/parser/classes/MusicDetailHeader.ts +++ b/src/parser/classes/MusicDetailHeader.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import type NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; import type TextRun from './misc/TextRun.js'; diff --git a/src/parser/classes/MusicEditablePlaylistDetailHeader.ts b/src/parser/classes/MusicEditablePlaylistDetailHeader.ts index a7071ecf9..7658c032f 100644 --- a/src/parser/classes/MusicEditablePlaylistDetailHeader.ts +++ b/src/parser/classes/MusicEditablePlaylistDetailHeader.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { YTNode } from '../helpers.js'; export default class MusicEditablePlaylistDetailHeader extends YTNode { diff --git a/src/parser/classes/MusicElementHeader.ts b/src/parser/classes/MusicElementHeader.ts index 19e9e158b..80ec8bc36 100644 --- a/src/parser/classes/MusicElementHeader.ts +++ b/src/parser/classes/MusicElementHeader.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Element from './Element.js'; import { YTNode } from '../helpers.js'; diff --git a/src/parser/classes/MusicHeader.ts b/src/parser/classes/MusicHeader.ts index 4b75d2556..5a5c290ee 100644 --- a/src/parser/classes/MusicHeader.ts +++ b/src/parser/classes/MusicHeader.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { YTNode } from '../helpers.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/MusicImmersiveHeader.ts b/src/parser/classes/MusicImmersiveHeader.ts index e0213eee0..8b1676256 100644 --- a/src/parser/classes/MusicImmersiveHeader.ts +++ b/src/parser/classes/MusicImmersiveHeader.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import MusicThumbnail from './MusicThumbnail.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/MusicItemThumbnailOverlay.ts b/src/parser/classes/MusicItemThumbnailOverlay.ts index 097e8de14..7937c3bb9 100644 --- a/src/parser/classes/MusicItemThumbnailOverlay.ts +++ b/src/parser/classes/MusicItemThumbnailOverlay.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import MusicPlayButton from './MusicPlayButton.js'; import { YTNode } from '../helpers.js'; diff --git a/src/parser/classes/MusicPlaylistShelf.ts b/src/parser/classes/MusicPlaylistShelf.ts index 84fb5cff0..a4b1444ed 100644 --- a/src/parser/classes/MusicPlaylistShelf.ts +++ b/src/parser/classes/MusicPlaylistShelf.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import MusicResponsiveListItem from './MusicResponsiveListItem.js'; export default class MusicPlaylistShelf extends YTNode { diff --git a/src/parser/classes/MusicQueue.ts b/src/parser/classes/MusicQueue.ts index 55ef83214..3fad09e9b 100644 --- a/src/parser/classes/MusicQueue.ts +++ b/src/parser/classes/MusicQueue.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import PlaylistPanel from './PlaylistPanel.js'; import { YTNode } from '../helpers.js'; diff --git a/src/parser/classes/MusicResponsiveListItem.ts b/src/parser/classes/MusicResponsiveListItem.ts index 1bafc093f..4548049bd 100644 --- a/src/parser/classes/MusicResponsiveListItem.ts +++ b/src/parser/classes/MusicResponsiveListItem.ts @@ -5,7 +5,7 @@ import { isTextRun, timeToSeconds } from '../../utils/Utils.js'; import type { ObservedArray } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import MusicItemThumbnailOverlay from './MusicItemThumbnailOverlay.js'; import MusicResponsiveListItemFixedColumn from './MusicResponsiveListItemFixedColumn.js'; import MusicResponsiveListItemFlexColumn from './MusicResponsiveListItemFlexColumn.js'; diff --git a/src/parser/classes/MusicShelf.ts b/src/parser/classes/MusicShelf.ts index 81ce69a3a..2964d759f 100644 --- a/src/parser/classes/MusicShelf.ts +++ b/src/parser/classes/MusicShelf.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import MusicResponsiveListItem from './MusicResponsiveListItem.js'; import NavigationEndpoint from './NavigationEndpoint.js'; diff --git a/src/parser/classes/MusicSideAlignedItem.ts b/src/parser/classes/MusicSideAlignedItem.ts index 319b7a618..876a54f9b 100644 --- a/src/parser/classes/MusicSideAlignedItem.ts +++ b/src/parser/classes/MusicSideAlignedItem.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; export default class MusicSideAlignedItem extends YTNode { static type = 'MusicSideAlignedItem'; diff --git a/src/parser/classes/MusicSortFilterButton.ts b/src/parser/classes/MusicSortFilterButton.ts index a75ba662a..d2ba19f53 100644 --- a/src/parser/classes/MusicSortFilterButton.ts +++ b/src/parser/classes/MusicSortFilterButton.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import MusicMultiSelectMenu from './menus/MusicMultiSelectMenu.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/MusicTastebuilderShelf.ts b/src/parser/classes/MusicTastebuilderShelf.ts index 741ee9d30..1fba354d5 100644 --- a/src/parser/classes/MusicTastebuilderShelf.ts +++ b/src/parser/classes/MusicTastebuilderShelf.ts @@ -1,4 +1,4 @@ -import Parser from '../index.js'; +import { Parser } from '../index.js'; import Button from './Button.js'; import Text from './misc/Text.js'; import MusicTastebuilderShelfThumbnail from './MusicTastebuilderShelfThumbnail.js'; diff --git a/src/parser/classes/MusicTwoRowItem.ts b/src/parser/classes/MusicTwoRowItem.ts index cf0177f00..405a18e83 100644 --- a/src/parser/classes/MusicTwoRowItem.ts +++ b/src/parser/classes/MusicTwoRowItem.ts @@ -1,7 +1,7 @@ // TODO: Refactor this. import { YTNode, type SuperParsedResult } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import MusicItemThumbnailOverlay from './MusicItemThumbnailOverlay.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Menu from './menus/Menu.js'; diff --git a/src/parser/classes/MusicVisualHeader.ts b/src/parser/classes/MusicVisualHeader.ts index b9f4b19dc..19c1ba1ff 100644 --- a/src/parser/classes/MusicVisualHeader.ts +++ b/src/parser/classes/MusicVisualHeader.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Menu from './menus/Menu.js'; import Text from './misc/Text.js'; import Thumbnail from './misc/Thumbnail.js'; diff --git a/src/parser/classes/NavigationEndpoint.ts b/src/parser/classes/NavigationEndpoint.ts index 793f28826..c25d9cdcb 100644 --- a/src/parser/classes/NavigationEndpoint.ts +++ b/src/parser/classes/NavigationEndpoint.ts @@ -1,7 +1,7 @@ import type Actions from '../../core/Actions.js'; import type { ApiResponse } from '../../core/Actions.js'; import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import type { IParsedResponse } from '../types/ParsedResponse.js'; import CreatePlaylistDialog from './CreatePlaylistDialog.js'; import OpenPopupAction from './actions/OpenPopupAction.js'; diff --git a/src/parser/classes/Notification.ts b/src/parser/classes/Notification.ts index d94269759..8c27ce0ff 100644 --- a/src/parser/classes/Notification.ts +++ b/src/parser/classes/Notification.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Text from './misc/Text.js'; import Thumbnail from './misc/Thumbnail.js'; import NavigationEndpoint from './NavigationEndpoint.js'; diff --git a/src/parser/classes/PageHeader.ts b/src/parser/classes/PageHeader.ts index 73c8a0cce..2468eed94 100644 --- a/src/parser/classes/PageHeader.ts +++ b/src/parser/classes/PageHeader.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import PageHeaderView from './PageHeaderView.js'; export default class PageHeader extends YTNode { diff --git a/src/parser/classes/PageHeaderView.ts b/src/parser/classes/PageHeaderView.ts index ac8beeaf1..83c6af59f 100644 --- a/src/parser/classes/PageHeaderView.ts +++ b/src/parser/classes/PageHeaderView.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import ContentPreviewImageView from './ContentPreviewImageView.js'; import DynamicTextView from './DynamicTextView.js'; diff --git a/src/parser/classes/PlayerAnnotationsExpanded.ts b/src/parser/classes/PlayerAnnotationsExpanded.ts index fc5d909fa..257964918 100644 --- a/src/parser/classes/PlayerAnnotationsExpanded.ts +++ b/src/parser/classes/PlayerAnnotationsExpanded.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Thumbnail from './misc/Thumbnail.js'; import NavigationEndpoint from './NavigationEndpoint.js'; diff --git a/src/parser/classes/PlayerErrorMessage.ts b/src/parser/classes/PlayerErrorMessage.ts index 8cecb16f4..07050ef99 100644 --- a/src/parser/classes/PlayerErrorMessage.ts +++ b/src/parser/classes/PlayerErrorMessage.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import Text from './misc/Text.js'; import Thumbnail from './misc/Thumbnail.js'; diff --git a/src/parser/classes/PlayerOverlay.ts b/src/parser/classes/PlayerOverlay.ts index 7a91224cf..8aa58159e 100644 --- a/src/parser/classes/PlayerOverlay.ts +++ b/src/parser/classes/PlayerOverlay.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import DecoratedPlayerBar from './DecoratedPlayerBar.js'; import PlayerOverlayAutoplay from './PlayerOverlayAutoplay.js'; diff --git a/src/parser/classes/PlayerOverlayAutoplay.ts b/src/parser/classes/PlayerOverlayAutoplay.ts index 4b5fc97a5..f47df906a 100644 --- a/src/parser/classes/PlayerOverlayAutoplay.ts +++ b/src/parser/classes/PlayerOverlayAutoplay.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import Author from './misc/Author.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/Playlist.ts b/src/parser/classes/Playlist.ts index 1a4c23d21..f6f963563 100644 --- a/src/parser/classes/Playlist.ts +++ b/src/parser/classes/Playlist.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import PlaylistCustomThumbnail from './PlaylistCustomThumbnail.js'; import PlaylistVideoThumbnail from './PlaylistVideoThumbnail.js'; diff --git a/src/parser/classes/PlaylistHeader.ts b/src/parser/classes/PlaylistHeader.ts index b228d38a8..11af93bb1 100644 --- a/src/parser/classes/PlaylistHeader.ts +++ b/src/parser/classes/PlaylistHeader.ts @@ -1,6 +1,6 @@ import Text from './misc/Text.js'; import Author from './misc/Author.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { YTNode } from '../helpers.js'; export default class PlaylistHeader extends YTNode { diff --git a/src/parser/classes/PlaylistPanel.ts b/src/parser/classes/PlaylistPanel.ts index 5868b0a72..cff115a63 100644 --- a/src/parser/classes/PlaylistPanel.ts +++ b/src/parser/classes/PlaylistPanel.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import AutomixPreviewVideo from './AutomixPreviewVideo.js'; import PlaylistPanelVideo from './PlaylistPanelVideo.js'; import PlaylistPanelVideoWrapper from './PlaylistPanelVideoWrapper.js'; diff --git a/src/parser/classes/PlaylistPanelVideo.ts b/src/parser/classes/PlaylistPanelVideo.ts index 31afbb8b3..d89c08dc3 100644 --- a/src/parser/classes/PlaylistPanelVideo.ts +++ b/src/parser/classes/PlaylistPanelVideo.ts @@ -1,6 +1,6 @@ import { timeToSeconds } from '../../utils/Utils.js'; import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; import type TextRun from './misc/TextRun.js'; diff --git a/src/parser/classes/PlaylistPanelVideoWrapper.ts b/src/parser/classes/PlaylistPanelVideoWrapper.ts index 739da0340..84a64b3bd 100644 --- a/src/parser/classes/PlaylistPanelVideoWrapper.ts +++ b/src/parser/classes/PlaylistPanelVideoWrapper.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type ObservedArray, YTNode, observe } from '../helpers.js'; import PlaylistPanelVideo from './PlaylistPanelVideo.js'; diff --git a/src/parser/classes/PlaylistSidebar.ts b/src/parser/classes/PlaylistSidebar.ts index 72054702c..29d5c2d31 100644 --- a/src/parser/classes/PlaylistSidebar.ts +++ b/src/parser/classes/PlaylistSidebar.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type ObservedArray, YTNode } from '../helpers.js'; export default class PlaylistSidebar extends YTNode { diff --git a/src/parser/classes/PlaylistSidebarPrimaryInfo.ts b/src/parser/classes/PlaylistSidebarPrimaryInfo.ts index 38653404e..2623bab76 100644 --- a/src/parser/classes/PlaylistSidebarPrimaryInfo.ts +++ b/src/parser/classes/PlaylistSidebarPrimaryInfo.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/PlaylistSidebarSecondaryInfo.ts b/src/parser/classes/PlaylistSidebarSecondaryInfo.ts index a0997a854..431db2ab4 100644 --- a/src/parser/classes/PlaylistSidebarSecondaryInfo.ts +++ b/src/parser/classes/PlaylistSidebarSecondaryInfo.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; export default class PlaylistSidebarSecondaryInfo extends YTNode { static type = 'PlaylistSidebarSecondaryInfo'; diff --git a/src/parser/classes/PlaylistVideo.ts b/src/parser/classes/PlaylistVideo.ts index 7919f1b2c..6fd7cd4c1 100644 --- a/src/parser/classes/PlaylistVideo.ts +++ b/src/parser/classes/PlaylistVideo.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import ThumbnailOverlayTimeStatus from './ThumbnailOverlayTimeStatus.js'; import Menu from './menus/Menu.js'; diff --git a/src/parser/classes/PlaylistVideoList.ts b/src/parser/classes/PlaylistVideoList.ts index d67905635..fb3e34a56 100644 --- a/src/parser/classes/PlaylistVideoList.ts +++ b/src/parser/classes/PlaylistVideoList.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type ObservedArray, YTNode } from '../helpers.js'; export default class PlaylistVideoList extends YTNode { diff --git a/src/parser/classes/PostMultiImage.ts b/src/parser/classes/PostMultiImage.ts index 6c1d29e49..1246dea10 100644 --- a/src/parser/classes/PostMultiImage.ts +++ b/src/parser/classes/PostMultiImage.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import BackstageImage from './BackstageImage.js'; import { YTNode } from '../helpers.js'; diff --git a/src/parser/classes/ProductList.ts b/src/parser/classes/ProductList.ts index d3a3bc212..ba0cea8d5 100644 --- a/src/parser/classes/ProductList.ts +++ b/src/parser/classes/ProductList.ts @@ -1,7 +1,7 @@ import type { ObservedArray} from '../helpers.js'; import { YTNode } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; export default class ProductList extends YTNode { static type = 'ProductList'; diff --git a/src/parser/classes/ProductListItem.ts b/src/parser/classes/ProductListItem.ts index 6a2f273db..1ed35c3e8 100644 --- a/src/parser/classes/ProductListItem.ts +++ b/src/parser/classes/ProductListItem.ts @@ -1,6 +1,6 @@ import { YTNode } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import { Text, Thumbnail } from '../misc.js'; import Button from './Button.js'; import NavigationEndpoint from './NavigationEndpoint.js'; diff --git a/src/parser/classes/ProfileColumn.ts b/src/parser/classes/ProfileColumn.ts index b76b94287..16a5de540 100644 --- a/src/parser/classes/ProfileColumn.ts +++ b/src/parser/classes/ProfileColumn.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; export default class ProfileColumn extends YTNode { static type = 'ProfileColumn'; diff --git a/src/parser/classes/ProfileColumnStats.ts b/src/parser/classes/ProfileColumnStats.ts index fb45fb879..1749b4180 100644 --- a/src/parser/classes/ProfileColumnStats.ts +++ b/src/parser/classes/ProfileColumnStats.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type ObservedArray, YTNode } from '../helpers.js'; export default class ProfileColumnStats extends YTNode { diff --git a/src/parser/classes/RecognitionShelf.ts b/src/parser/classes/RecognitionShelf.ts index f70fda66e..016d5a9ca 100644 --- a/src/parser/classes/RecognitionShelf.ts +++ b/src/parser/classes/RecognitionShelf.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { YTNode } from '../helpers.js'; import Button from './Button.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/ReelShelf.ts b/src/parser/classes/ReelShelf.ts index 7567c9e4e..eb3468905 100644 --- a/src/parser/classes/ReelShelf.ts +++ b/src/parser/classes/ReelShelf.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/RelatedChipCloud.ts b/src/parser/classes/RelatedChipCloud.ts index af1589836..51c6c2616 100644 --- a/src/parser/classes/RelatedChipCloud.ts +++ b/src/parser/classes/RelatedChipCloud.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { YTNode } from '../helpers.js'; export default class RelatedChipCloud extends YTNode { diff --git a/src/parser/classes/RichGrid.ts b/src/parser/classes/RichGrid.ts index 82637f537..e021ae298 100644 --- a/src/parser/classes/RichGrid.ts +++ b/src/parser/classes/RichGrid.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type ObservedArray, YTNode } from '../helpers.js'; export default class RichGrid extends YTNode { diff --git a/src/parser/classes/RichItem.ts b/src/parser/classes/RichItem.ts index 8bbad98e1..e827cc45e 100644 --- a/src/parser/classes/RichItem.ts +++ b/src/parser/classes/RichItem.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { YTNode } from '../helpers.js'; export default class RichItem extends YTNode { diff --git a/src/parser/classes/RichMetadataRow.ts b/src/parser/classes/RichMetadataRow.ts index 2f0ca4c8e..37047e328 100644 --- a/src/parser/classes/RichMetadataRow.ts +++ b/src/parser/classes/RichMetadataRow.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type ObservedArray, YTNode } from '../helpers.js'; export default class RichMetadataRow extends YTNode { diff --git a/src/parser/classes/RichSection.ts b/src/parser/classes/RichSection.ts index f1b57e765..1c12964c4 100644 --- a/src/parser/classes/RichSection.ts +++ b/src/parser/classes/RichSection.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; export default class RichSection extends YTNode { static type = 'RichSection'; diff --git a/src/parser/classes/RichShelf.ts b/src/parser/classes/RichShelf.ts index e48a7a4b5..b34591b2a 100644 --- a/src/parser/classes/RichShelf.ts +++ b/src/parser/classes/RichShelf.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/SearchBox.ts b/src/parser/classes/SearchBox.ts index b24a0c8e1..4d5d96756 100644 --- a/src/parser/classes/SearchBox.ts +++ b/src/parser/classes/SearchBox.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/SearchSubMenu.ts b/src/parser/classes/SearchSubMenu.ts index b1a3c8646..db430d8dc 100644 --- a/src/parser/classes/SearchSubMenu.ts +++ b/src/parser/classes/SearchSubMenu.ts @@ -1,6 +1,6 @@ import { type ObservedArray, YTNode } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import Text from './misc/Text.js'; import SearchFilterGroup from './SearchFilterGroup.js'; import ToggleButton from './ToggleButton.js'; diff --git a/src/parser/classes/SearchSuggestionsSection.ts b/src/parser/classes/SearchSuggestionsSection.ts index 1b7bb245a..038da4e5d 100644 --- a/src/parser/classes/SearchSuggestionsSection.ts +++ b/src/parser/classes/SearchSuggestionsSection.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type ObservedArray, YTNode } from '../helpers.js'; export default class SearchSuggestionsSection extends YTNode { diff --git a/src/parser/classes/SecondarySearchContainer.ts b/src/parser/classes/SecondarySearchContainer.ts index b6f3eab57..b6505c6ac 100644 --- a/src/parser/classes/SecondarySearchContainer.ts +++ b/src/parser/classes/SecondarySearchContainer.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type ObservedArray, YTNode } from '../helpers.js'; export default class SecondarySearchContainer extends YTNode { diff --git a/src/parser/classes/SectionList.ts b/src/parser/classes/SectionList.ts index 10f318fec..0788daea0 100644 --- a/src/parser/classes/SectionList.ts +++ b/src/parser/classes/SectionList.ts @@ -1,5 +1,5 @@ import { type ObservedArray, YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; export default class SectionList extends YTNode { static type = 'SectionList'; diff --git a/src/parser/classes/SegmentedLikeDislikeButton.ts b/src/parser/classes/SegmentedLikeDislikeButton.ts index 3c4bbf1b9..31ae19fca 100644 --- a/src/parser/classes/SegmentedLikeDislikeButton.ts +++ b/src/parser/classes/SegmentedLikeDislikeButton.ts @@ -1,6 +1,6 @@ import { YTNode } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import Button from './Button.js'; import ToggleButton from './ToggleButton.js'; diff --git a/src/parser/classes/SettingsOptions.ts b/src/parser/classes/SettingsOptions.ts index 48c1f1a5e..8e78b81ac 100644 --- a/src/parser/classes/SettingsOptions.ts +++ b/src/parser/classes/SettingsOptions.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import ChannelOptions from './ChannelOptions.js'; import CopyLink from './CopyLink.js'; import Dropdown from './Dropdown.js'; diff --git a/src/parser/classes/SettingsSidebar.ts b/src/parser/classes/SettingsSidebar.ts index 608bdef71..dc6a47f06 100644 --- a/src/parser/classes/SettingsSidebar.ts +++ b/src/parser/classes/SettingsSidebar.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import CompactLink from './CompactLink.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/Shelf.ts b/src/parser/classes/Shelf.ts index 383837b16..849fe7e48 100644 --- a/src/parser/classes/Shelf.ts +++ b/src/parser/classes/Shelf.ts @@ -1,5 +1,5 @@ import Text from './misc/Text.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import { YTNode } from '../helpers.js'; import Button from './Button.js'; diff --git a/src/parser/classes/SingleColumnBrowseResults.ts b/src/parser/classes/SingleColumnBrowseResults.ts index 68bb0cd68..898d611ea 100644 --- a/src/parser/classes/SingleColumnBrowseResults.ts +++ b/src/parser/classes/SingleColumnBrowseResults.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Tab from './Tab.js'; export default class SingleColumnBrowseResults extends YTNode { diff --git a/src/parser/classes/SingleColumnMusicWatchNextResults.ts b/src/parser/classes/SingleColumnMusicWatchNextResults.ts index 78ed50969..6e7c540f2 100644 --- a/src/parser/classes/SingleColumnMusicWatchNextResults.ts +++ b/src/parser/classes/SingleColumnMusicWatchNextResults.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; export default class SingleColumnMusicWatchNextResults extends YTNode { static type = 'SingleColumnMusicWatchNextResults'; diff --git a/src/parser/classes/SlimOwner.ts b/src/parser/classes/SlimOwner.ts index 51ba2a574..75914d2fb 100644 --- a/src/parser/classes/SlimOwner.ts +++ b/src/parser/classes/SlimOwner.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import SubscribeButton from './SubscribeButton.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/SlimVideoMetadata.ts b/src/parser/classes/SlimVideoMetadata.ts index 3d1b9840c..8f5727b36 100644 --- a/src/parser/classes/SlimVideoMetadata.ts +++ b/src/parser/classes/SlimVideoMetadata.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Text from './misc/Text.js'; export default class SlimVideoMetadata extends YTNode { diff --git a/src/parser/classes/StructuredDescriptionContent.ts b/src/parser/classes/StructuredDescriptionContent.ts index 382d6b83b..84b84ffc0 100644 --- a/src/parser/classes/StructuredDescriptionContent.ts +++ b/src/parser/classes/StructuredDescriptionContent.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import ExpandableVideoDescriptionBody from './ExpandableVideoDescriptionBody.js'; import HorizontalCardList from './HorizontalCardList.js'; import VideoDescriptionHeader from './VideoDescriptionHeader.js'; diff --git a/src/parser/classes/SubFeedSelector.ts b/src/parser/classes/SubFeedSelector.ts index d349f7179..bacf55ae0 100644 --- a/src/parser/classes/SubFeedSelector.ts +++ b/src/parser/classes/SubFeedSelector.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Text from './misc/Text.js'; import { type ObservedArray, YTNode } from '../helpers.js'; import SubFeedOption from './SubFeedOption.js'; diff --git a/src/parser/classes/SubscribeButton.ts b/src/parser/classes/SubscribeButton.ts index cc515b69b..2f45ea544 100644 --- a/src/parser/classes/SubscribeButton.ts +++ b/src/parser/classes/SubscribeButton.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import SubscriptionNotificationToggleButton from './SubscriptionNotificationToggleButton.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/SubscriptionNotificationToggleButton.ts b/src/parser/classes/SubscriptionNotificationToggleButton.ts index 47bb4db3a..78989ef6d 100644 --- a/src/parser/classes/SubscriptionNotificationToggleButton.ts +++ b/src/parser/classes/SubscriptionNotificationToggleButton.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type SuperParsedResult, YTNode } from '../helpers.js'; export default class SubscriptionNotificationToggleButton extends YTNode { diff --git a/src/parser/classes/Tab.ts b/src/parser/classes/Tab.ts index c06d219c4..1e813260f 100644 --- a/src/parser/classes/Tab.ts +++ b/src/parser/classes/Tab.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import SectionList from './SectionList.js'; import MusicQueue from './MusicQueue.js'; diff --git a/src/parser/classes/Tabbed.ts b/src/parser/classes/Tabbed.ts index cd2d0b0db..5691a26fc 100644 --- a/src/parser/classes/Tabbed.ts +++ b/src/parser/classes/Tabbed.ts @@ -1,5 +1,5 @@ import { YTNode, type SuperParsedResult } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; export default class Tabbed extends YTNode { static type = 'Tabbed'; diff --git a/src/parser/classes/TabbedSearchResults.ts b/src/parser/classes/TabbedSearchResults.ts index 7f540d2b6..a4ac646cd 100644 --- a/src/parser/classes/TabbedSearchResults.ts +++ b/src/parser/classes/TabbedSearchResults.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { type ObservedArray, YTNode } from '../helpers.js'; import Tab from './Tab.js'; diff --git a/src/parser/classes/TopicChannelDetails.ts b/src/parser/classes/TopicChannelDetails.ts index ecacbcfa2..7d0b01522 100644 --- a/src/parser/classes/TopicChannelDetails.ts +++ b/src/parser/classes/TopicChannelDetails.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import SubscribeButton from './SubscribeButton.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/Transcript.ts b/src/parser/classes/Transcript.ts index cba9456ca..804f4972e 100644 --- a/src/parser/classes/Transcript.ts +++ b/src/parser/classes/Transcript.ts @@ -1,6 +1,6 @@ import { YTNode } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import TranscriptSearchPanel from './TranscriptSearchPanel.js'; export default class Transcript extends YTNode { diff --git a/src/parser/classes/TranscriptFooter.ts b/src/parser/classes/TranscriptFooter.ts index 2394b3705..3a1baaad0 100644 --- a/src/parser/classes/TranscriptFooter.ts +++ b/src/parser/classes/TranscriptFooter.ts @@ -1,6 +1,6 @@ import { YTNode } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import SortFilterSubMenu from './SortFilterSubMenu.js'; export default class TranscriptFooter extends YTNode { diff --git a/src/parser/classes/TranscriptSearchBox.ts b/src/parser/classes/TranscriptSearchBox.ts index 6e64edb62..8100b1b2f 100644 --- a/src/parser/classes/TranscriptSearchBox.ts +++ b/src/parser/classes/TranscriptSearchBox.ts @@ -1,6 +1,6 @@ import { YTNode } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import Button from './Button.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import { Text } from '../misc.js'; diff --git a/src/parser/classes/TranscriptSearchPanel.ts b/src/parser/classes/TranscriptSearchPanel.ts index bf99235d1..2d362d2ee 100644 --- a/src/parser/classes/TranscriptSearchPanel.ts +++ b/src/parser/classes/TranscriptSearchPanel.ts @@ -1,6 +1,6 @@ import { YTNode } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import TranscriptFooter from './TranscriptFooter.js'; import TranscriptSearchBox from './TranscriptSearchBox.js'; import TranscriptSegmentList from './TranscriptSegmentList.js'; diff --git a/src/parser/classes/TranscriptSegmentList.ts b/src/parser/classes/TranscriptSegmentList.ts index cb200a36d..3759db13d 100644 --- a/src/parser/classes/TranscriptSegmentList.ts +++ b/src/parser/classes/TranscriptSegmentList.ts @@ -1,7 +1,7 @@ import type { ObservedArray } from '../helpers.js'; import { YTNode } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import { Text } from '../misc.js'; import TranscriptSectionHeader from './TranscriptSectionHeader.js'; import TranscriptSegment from './TranscriptSegment.js'; diff --git a/src/parser/classes/TwoColumnBrowseResults.ts b/src/parser/classes/TwoColumnBrowseResults.ts index 07be0ead7..3eef95bb8 100644 --- a/src/parser/classes/TwoColumnBrowseResults.ts +++ b/src/parser/classes/TwoColumnBrowseResults.ts @@ -1,5 +1,5 @@ import { YTNode, type SuperParsedResult } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; export default class TwoColumnBrowseResults extends YTNode { static type = 'TwoColumnBrowseResults'; diff --git a/src/parser/classes/TwoColumnSearchResults.ts b/src/parser/classes/TwoColumnSearchResults.ts index cc2c552bb..eb97f24e7 100644 --- a/src/parser/classes/TwoColumnSearchResults.ts +++ b/src/parser/classes/TwoColumnSearchResults.ts @@ -1,5 +1,5 @@ import { YTNode, type SuperParsedResult } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; export default class TwoColumnSearchResults extends YTNode { static type = 'TwoColumnSearchResults'; diff --git a/src/parser/classes/TwoColumnWatchNextResults.ts b/src/parser/classes/TwoColumnWatchNextResults.ts index 868faf1f4..7f612d242 100644 --- a/src/parser/classes/TwoColumnWatchNextResults.ts +++ b/src/parser/classes/TwoColumnWatchNextResults.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Menu from './menus/Menu.js'; import Author from './misc/Author.js'; diff --git a/src/parser/classes/UniversalWatchCard.ts b/src/parser/classes/UniversalWatchCard.ts index f46ec20d7..25a9b97de 100644 --- a/src/parser/classes/UniversalWatchCard.ts +++ b/src/parser/classes/UniversalWatchCard.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Text from './misc/Text.js'; export default class UniversalWatchCard extends YTNode { diff --git a/src/parser/classes/UploadTimeFactoid.ts b/src/parser/classes/UploadTimeFactoid.ts index 6714b0073..5ba5c124f 100644 --- a/src/parser/classes/UploadTimeFactoid.ts +++ b/src/parser/classes/UploadTimeFactoid.ts @@ -1,6 +1,6 @@ import { YTNode } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import Factoid from './Factoid.js'; export default class UploadTimeFactoid extends YTNode { diff --git a/src/parser/classes/UpsellDialog.ts b/src/parser/classes/UpsellDialog.ts index ae65ebc27..be133bc6c 100644 --- a/src/parser/classes/UpsellDialog.ts +++ b/src/parser/classes/UpsellDialog.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Button from './Button.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/VerticalList.ts b/src/parser/classes/VerticalList.ts index 1a4b5d9a4..a7c8e4e2e 100644 --- a/src/parser/classes/VerticalList.ts +++ b/src/parser/classes/VerticalList.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Text from './misc/Text.js'; export default class VerticalList extends YTNode { diff --git a/src/parser/classes/VerticalWatchCardList.ts b/src/parser/classes/VerticalWatchCardList.ts index 417dd0e56..4bbd8cc15 100644 --- a/src/parser/classes/VerticalWatchCardList.ts +++ b/src/parser/classes/VerticalWatchCardList.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/Video.ts b/src/parser/classes/Video.ts index 70edaefcc..70022ef98 100644 --- a/src/parser/classes/Video.ts +++ b/src/parser/classes/Video.ts @@ -1,6 +1,6 @@ import { timeToSeconds } from '../../utils/Utils.js'; import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import ExpandableMetadata from './ExpandableMetadata.js'; import MetadataBadge from './MetadataBadge.js'; import NavigationEndpoint from './NavigationEndpoint.js'; diff --git a/src/parser/classes/VideoDescriptionCourseSection.ts b/src/parser/classes/VideoDescriptionCourseSection.ts index 4b6b1db12..a4e9c66c1 100644 --- a/src/parser/classes/VideoDescriptionCourseSection.ts +++ b/src/parser/classes/VideoDescriptionCourseSection.ts @@ -1,7 +1,7 @@ import type { ObservedArray} from '../helpers.js'; import { YTNode } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import StructuredDescriptionPlaylistLockup from './StructuredDescriptionPlaylistLockup.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/VideoDescriptionHeader.ts b/src/parser/classes/VideoDescriptionHeader.ts index fb9cd8f13..52037d371 100644 --- a/src/parser/classes/VideoDescriptionHeader.ts +++ b/src/parser/classes/VideoDescriptionHeader.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { Text, Thumbnail } from '../misc.js'; import Factoid from './Factoid.js'; import NavigationEndpoint from './NavigationEndpoint.js'; diff --git a/src/parser/classes/VideoDescriptionInfocardsSection.ts b/src/parser/classes/VideoDescriptionInfocardsSection.ts index 88aaaed3b..4d216829e 100644 --- a/src/parser/classes/VideoDescriptionInfocardsSection.ts +++ b/src/parser/classes/VideoDescriptionInfocardsSection.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { YTNode } from '../helpers.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/VideoDescriptionMusicSection.ts b/src/parser/classes/VideoDescriptionMusicSection.ts index 10af8657c..f13d3a196 100644 --- a/src/parser/classes/VideoDescriptionMusicSection.ts +++ b/src/parser/classes/VideoDescriptionMusicSection.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import { Text } from '../misc.js'; import CarouselLockup from './CarouselLockup.js'; diff --git a/src/parser/classes/VideoDescriptionTranscriptSection.ts b/src/parser/classes/VideoDescriptionTranscriptSection.ts index 282196876..bf1a10d0f 100644 --- a/src/parser/classes/VideoDescriptionTranscriptSection.ts +++ b/src/parser/classes/VideoDescriptionTranscriptSection.ts @@ -1,6 +1,6 @@ import { YTNode } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import { Text } from '../misc.js'; import Button from './Button.js'; diff --git a/src/parser/classes/VideoPrimaryInfo.ts b/src/parser/classes/VideoPrimaryInfo.ts index d92ef805b..534047aba 100644 --- a/src/parser/classes/VideoPrimaryInfo.ts +++ b/src/parser/classes/VideoPrimaryInfo.ts @@ -1,7 +1,7 @@ import type { ObservedArray } from '../helpers.js'; import { YTNode } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import MetadataBadge from './MetadataBadge.js'; import Menu from './menus/Menu.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/VideoSecondaryInfo.ts b/src/parser/classes/VideoSecondaryInfo.ts index be35ed39f..bfdcf1a28 100644 --- a/src/parser/classes/VideoSecondaryInfo.ts +++ b/src/parser/classes/VideoSecondaryInfo.ts @@ -1,4 +1,4 @@ -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import Text from './misc/Text.js'; import Button from './Button.js'; import VideoOwner from './VideoOwner.js'; diff --git a/src/parser/classes/ViewCountFactoid.ts b/src/parser/classes/ViewCountFactoid.ts index 0feaa64df..09ba73c8c 100644 --- a/src/parser/classes/ViewCountFactoid.ts +++ b/src/parser/classes/ViewCountFactoid.ts @@ -1,6 +1,6 @@ import { YTNode } from '../helpers.js'; import type { RawNode } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import Factoid from './Factoid.js'; export default class ViewCountFactoid extends YTNode { diff --git a/src/parser/classes/WatchCardHeroVideo.ts b/src/parser/classes/WatchCardHeroVideo.ts index f3c98464d..739db8eaa 100644 --- a/src/parser/classes/WatchCardHeroVideo.ts +++ b/src/parser/classes/WatchCardHeroVideo.ts @@ -1,5 +1,5 @@ import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import NavigationEndpoint from './NavigationEndpoint.js'; export default class WatchCardHeroVideo extends YTNode { diff --git a/src/parser/classes/WatchCardSectionSequence.ts b/src/parser/classes/WatchCardSectionSequence.ts index 3ce16991b..34b55369d 100644 --- a/src/parser/classes/WatchCardSectionSequence.ts +++ b/src/parser/classes/WatchCardSectionSequence.ts @@ -1,6 +1,6 @@ import type { ObservedArray} from '../helpers.js'; import { YTNode } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; export default class WatchCardSectionSequence extends YTNode { static type = 'WatchCardSectionSequence'; diff --git a/src/parser/classes/WatchNextEndScreen.ts b/src/parser/classes/WatchNextEndScreen.ts index 99bb2be97..67007fb44 100644 --- a/src/parser/classes/WatchNextEndScreen.ts +++ b/src/parser/classes/WatchNextEndScreen.ts @@ -1,5 +1,5 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import EndScreenPlaylist from './EndScreenPlaylist.js'; import EndScreenVideo from './EndScreenVideo.js'; import Text from './misc/Text.js'; diff --git a/src/parser/classes/actions/AppendContinuationItemsAction.ts b/src/parser/classes/actions/AppendContinuationItemsAction.ts index 78aa78722..24b992bde 100644 --- a/src/parser/classes/actions/AppendContinuationItemsAction.ts +++ b/src/parser/classes/actions/AppendContinuationItemsAction.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import type { RawNode } from '../../index.js'; import type { ObservedArray } from '../../helpers.js'; import { YTNode } from '../../helpers.js'; diff --git a/src/parser/classes/actions/OpenPopupAction.ts b/src/parser/classes/actions/OpenPopupAction.ts index 8dfb91d2f..7471e8936 100644 --- a/src/parser/classes/actions/OpenPopupAction.ts +++ b/src/parser/classes/actions/OpenPopupAction.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import { YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; diff --git a/src/parser/classes/actions/UpdateEngagementPanelAction.ts b/src/parser/classes/actions/UpdateEngagementPanelAction.ts index 60cad408a..bcc5b15f7 100644 --- a/src/parser/classes/actions/UpdateEngagementPanelAction.ts +++ b/src/parser/classes/actions/UpdateEngagementPanelAction.ts @@ -1,6 +1,6 @@ import { YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import Transcript from '../Transcript.js'; export default class UpdateEngagementPanelAction extends YTNode { diff --git a/src/parser/classes/comments/Comment.ts b/src/parser/classes/comments/Comment.ts index 0fc0e2e1a..fb3d44bf9 100644 --- a/src/parser/classes/comments/Comment.ts +++ b/src/parser/classes/comments/Comment.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import Author from '../misc/Author.js'; import Text from '../misc/Text.js'; diff --git a/src/parser/classes/comments/CommentActionButtons.ts b/src/parser/classes/comments/CommentActionButtons.ts index 615ea76ce..ec4c13178 100644 --- a/src/parser/classes/comments/CommentActionButtons.ts +++ b/src/parser/classes/comments/CommentActionButtons.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import Button from '../Button.js'; import ToggleButton from '../ToggleButton.js'; import CreatorHeart from './CreatorHeart.js'; diff --git a/src/parser/classes/comments/CommentDialog.ts b/src/parser/classes/comments/CommentDialog.ts index c83e3a7e7..ee79534ae 100644 --- a/src/parser/classes/comments/CommentDialog.ts +++ b/src/parser/classes/comments/CommentDialog.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import Button from '../Button.js'; import Text from '../misc/Text.js'; import Thumbnail from '../misc/Thumbnail.js'; diff --git a/src/parser/classes/comments/CommentReplies.ts b/src/parser/classes/comments/CommentReplies.ts index af20f834c..b88a1e0ca 100644 --- a/src/parser/classes/comments/CommentReplies.ts +++ b/src/parser/classes/comments/CommentReplies.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import Button from '../Button.js'; import Thumbnail from '../misc/Thumbnail.js'; diff --git a/src/parser/classes/comments/CommentReplyDialog.ts b/src/parser/classes/comments/CommentReplyDialog.ts index 1faee6526..69471cee6 100644 --- a/src/parser/classes/comments/CommentReplyDialog.ts +++ b/src/parser/classes/comments/CommentReplyDialog.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import Button from '../Button.js'; import Text from '../misc/Text.js'; import Thumbnail from '../misc/Thumbnail.js'; diff --git a/src/parser/classes/comments/CommentSimplebox.ts b/src/parser/classes/comments/CommentSimplebox.ts index 0409d53ff..d28dd2e1f 100644 --- a/src/parser/classes/comments/CommentSimplebox.ts +++ b/src/parser/classes/comments/CommentSimplebox.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import Button from '../Button.js'; import Text from '../misc/Text.js'; import Thumbnail from '../misc/Thumbnail.js'; diff --git a/src/parser/classes/comments/CommentThread.ts b/src/parser/classes/comments/CommentThread.ts index 24f6196e4..af3b9ec9c 100644 --- a/src/parser/classes/comments/CommentThread.ts +++ b/src/parser/classes/comments/CommentThread.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import Button from '../Button.js'; import ContinuationItem from '../ContinuationItem.js'; import Comment from './Comment.js'; diff --git a/src/parser/classes/comments/CommentsHeader.ts b/src/parser/classes/comments/CommentsHeader.ts index e3f7ccd8f..d34ca24e5 100644 --- a/src/parser/classes/comments/CommentsHeader.ts +++ b/src/parser/classes/comments/CommentsHeader.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import SortFilterSubMenu from '../SortFilterSubMenu.js'; import Text from '../misc/Text.js'; import Thumbnail from '../misc/Thumbnail.js'; diff --git a/src/parser/classes/comments/EmojiPicker.ts b/src/parser/classes/comments/EmojiPicker.ts index 784a43741..aa12248ee 100644 --- a/src/parser/classes/comments/EmojiPicker.ts +++ b/src/parser/classes/comments/EmojiPicker.ts @@ -1,6 +1,6 @@ import { type ObservedArray, YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import Text from '../misc/Text.js'; export default class EmojiPicker extends YTNode { diff --git a/src/parser/classes/livechat/AddBannerToLiveChatCommand.ts b/src/parser/classes/livechat/AddBannerToLiveChatCommand.ts index bb0a0d063..8cb530030 100644 --- a/src/parser/classes/livechat/AddBannerToLiveChatCommand.ts +++ b/src/parser/classes/livechat/AddBannerToLiveChatCommand.ts @@ -1,6 +1,6 @@ import { YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import LiveChatBanner from './items/LiveChatBanner.js'; export default class AddBannerToLiveChatCommand extends YTNode { diff --git a/src/parser/classes/livechat/AddChatItemAction.ts b/src/parser/classes/livechat/AddChatItemAction.ts index 5b7168bc5..3c8dd9085 100644 --- a/src/parser/classes/livechat/AddChatItemAction.ts +++ b/src/parser/classes/livechat/AddChatItemAction.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import { YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; diff --git a/src/parser/classes/livechat/AddLiveChatTickerItemAction.ts b/src/parser/classes/livechat/AddLiveChatTickerItemAction.ts index 9cd674f7c..c2e292d16 100644 --- a/src/parser/classes/livechat/AddLiveChatTickerItemAction.ts +++ b/src/parser/classes/livechat/AddLiveChatTickerItemAction.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import { YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; diff --git a/src/parser/classes/livechat/LiveChatActionPanel.ts b/src/parser/classes/livechat/LiveChatActionPanel.ts index b738315a6..86eb24213 100644 --- a/src/parser/classes/livechat/LiveChatActionPanel.ts +++ b/src/parser/classes/livechat/LiveChatActionPanel.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import { type SuperParsedResult, YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; diff --git a/src/parser/classes/livechat/ReplaceChatItemAction.ts b/src/parser/classes/livechat/ReplaceChatItemAction.ts index ffde78560..67a98cb55 100644 --- a/src/parser/classes/livechat/ReplaceChatItemAction.ts +++ b/src/parser/classes/livechat/ReplaceChatItemAction.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import { YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; diff --git a/src/parser/classes/livechat/ReplayChatItemAction.ts b/src/parser/classes/livechat/ReplayChatItemAction.ts index 9be828ce0..5925cfae4 100644 --- a/src/parser/classes/livechat/ReplayChatItemAction.ts +++ b/src/parser/classes/livechat/ReplayChatItemAction.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import { type ObservedArray, YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; diff --git a/src/parser/classes/livechat/ShowLiveChatActionPanelAction.ts b/src/parser/classes/livechat/ShowLiveChatActionPanelAction.ts index a2a13b98e..5e8c6be62 100644 --- a/src/parser/classes/livechat/ShowLiveChatActionPanelAction.ts +++ b/src/parser/classes/livechat/ShowLiveChatActionPanelAction.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import LiveChatActionPanel from './LiveChatActionPanel.js'; import { YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; diff --git a/src/parser/classes/livechat/ShowLiveChatDialogAction.ts b/src/parser/classes/livechat/ShowLiveChatDialogAction.ts index 341c851a8..ff9766737 100644 --- a/src/parser/classes/livechat/ShowLiveChatDialogAction.ts +++ b/src/parser/classes/livechat/ShowLiveChatDialogAction.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import { YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; diff --git a/src/parser/classes/livechat/ShowLiveChatTooltipCommand.ts b/src/parser/classes/livechat/ShowLiveChatTooltipCommand.ts index c53ca4630..779956de4 100644 --- a/src/parser/classes/livechat/ShowLiveChatTooltipCommand.ts +++ b/src/parser/classes/livechat/ShowLiveChatTooltipCommand.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import { YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; diff --git a/src/parser/classes/livechat/UpdateLiveChatPollAction.ts b/src/parser/classes/livechat/UpdateLiveChatPollAction.ts index 4cac8e5f2..77c0fedc8 100644 --- a/src/parser/classes/livechat/UpdateLiveChatPollAction.ts +++ b/src/parser/classes/livechat/UpdateLiveChatPollAction.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import { YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; diff --git a/src/parser/classes/livechat/items/LiveChatAutoModMessage.ts b/src/parser/classes/livechat/items/LiveChatAutoModMessage.ts index f29d333d9..a619f9067 100644 --- a/src/parser/classes/livechat/items/LiveChatAutoModMessage.ts +++ b/src/parser/classes/livechat/items/LiveChatAutoModMessage.ts @@ -1,4 +1,4 @@ -import Parser from '../../../index.js'; +import { Parser } from '../../../index.js'; import Button from '../../Button.js'; import NavigationEndpoint from '../../NavigationEndpoint.js'; import Text from '../../misc/Text.js'; diff --git a/src/parser/classes/livechat/items/LiveChatBanner.ts b/src/parser/classes/livechat/items/LiveChatBanner.ts index fb35a7ee8..9243920ed 100644 --- a/src/parser/classes/livechat/items/LiveChatBanner.ts +++ b/src/parser/classes/livechat/items/LiveChatBanner.ts @@ -1,6 +1,6 @@ import { YTNode } from '../../../helpers.js'; import type { RawNode } from '../../../index.js'; -import Parser from '../../../index.js'; +import { Parser } from '../../../index.js'; import LiveChatBannerHeader from './LiveChatBannerHeader.js'; export default class LiveChatBanner extends YTNode { diff --git a/src/parser/classes/livechat/items/LiveChatBannerHeader.ts b/src/parser/classes/livechat/items/LiveChatBannerHeader.ts index 439afb0f9..7e19714f7 100644 --- a/src/parser/classes/livechat/items/LiveChatBannerHeader.ts +++ b/src/parser/classes/livechat/items/LiveChatBannerHeader.ts @@ -1,6 +1,6 @@ import { YTNode } from '../../../helpers.js'; import type { RawNode } from '../../../index.js'; -import Parser from '../../../index.js'; +import { Parser } from '../../../index.js'; import Button from '../../Button.js'; import Text from '../../misc/Text.js'; diff --git a/src/parser/classes/livechat/items/LiveChatBannerPoll.ts b/src/parser/classes/livechat/items/LiveChatBannerPoll.ts index ea0bf8d00..4a19c35c0 100644 --- a/src/parser/classes/livechat/items/LiveChatBannerPoll.ts +++ b/src/parser/classes/livechat/items/LiveChatBannerPoll.ts @@ -1,6 +1,6 @@ import { YTNode } from '../../../helpers.js'; import type { RawNode } from '../../../index.js'; -import Parser from '../../../index.js'; +import { Parser } from '../../../index.js'; import Button from '../../Button.js'; import Text from '../../misc/Text.js'; import Thumbnail from '../../misc/Thumbnail.js'; diff --git a/src/parser/classes/livechat/items/LiveChatProductItem.ts b/src/parser/classes/livechat/items/LiveChatProductItem.ts index 1092d892c..5f0d737f0 100644 --- a/src/parser/classes/livechat/items/LiveChatProductItem.ts +++ b/src/parser/classes/livechat/items/LiveChatProductItem.ts @@ -1,4 +1,4 @@ -import Parser from '../../../index.js'; +import { Parser } from '../../../index.js'; import { YTNode } from '../../../helpers.js'; import type { RawNode } from '../../../index.js'; diff --git a/src/parser/classes/livechat/items/LiveChatTextMessage.ts b/src/parser/classes/livechat/items/LiveChatTextMessage.ts index b326a4cf2..962fd7d8b 100644 --- a/src/parser/classes/livechat/items/LiveChatTextMessage.ts +++ b/src/parser/classes/livechat/items/LiveChatTextMessage.ts @@ -1,6 +1,6 @@ import { type ObservedArray, YTNode } from '../../../helpers.js'; import type { RawNode } from '../../../index.js'; -import Parser from '../../../index.js'; +import { Parser } from '../../../index.js'; import Button from '../../Button.js'; import NavigationEndpoint from '../../NavigationEndpoint.js'; import Author from '../../misc/Author.js'; diff --git a/src/parser/classes/livechat/items/LiveChatTickerPaidMessageItem.ts b/src/parser/classes/livechat/items/LiveChatTickerPaidMessageItem.ts index 6801744b3..3d588a86c 100644 --- a/src/parser/classes/livechat/items/LiveChatTickerPaidMessageItem.ts +++ b/src/parser/classes/livechat/items/LiveChatTickerPaidMessageItem.ts @@ -1,5 +1,5 @@ import Author from '../../misc/Author.js'; -import Parser from '../../../index.js'; +import { Parser } from '../../../index.js'; import NavigationEndpoint from '../../NavigationEndpoint.js'; import Text from '../../misc/Text.js'; diff --git a/src/parser/classes/livechat/items/LiveChatViewerEngagementMessage.ts b/src/parser/classes/livechat/items/LiveChatViewerEngagementMessage.ts index c2e2e0308..c58416c8a 100644 --- a/src/parser/classes/livechat/items/LiveChatViewerEngagementMessage.ts +++ b/src/parser/classes/livechat/items/LiveChatViewerEngagementMessage.ts @@ -1,4 +1,4 @@ -import Parser from '../../../index.js'; +import { Parser } from '../../../index.js'; import { LiveChatMessageBase } from './LiveChatTextMessage.js'; import type { RawNode } from '../../../index.js'; import type { YTNode } from '../../../helpers.js'; diff --git a/src/parser/classes/livechat/items/PollHeader.ts b/src/parser/classes/livechat/items/PollHeader.ts index 9c7b86418..eccf25bf6 100644 --- a/src/parser/classes/livechat/items/PollHeader.ts +++ b/src/parser/classes/livechat/items/PollHeader.ts @@ -1,6 +1,6 @@ import { YTNode } from '../../../helpers.js'; import type { RawNode } from '../../../index.js'; -import Parser from '../../../index.js'; +import { Parser } from '../../../index.js'; import Button from '../../Button.js'; import Text from '../../misc/Text.js'; import Thumbnail from '../../misc/Thumbnail.js'; diff --git a/src/parser/classes/menus/Menu.ts b/src/parser/classes/menus/Menu.ts index b338fb730..18b5e2a5f 100644 --- a/src/parser/classes/menus/Menu.ts +++ b/src/parser/classes/menus/Menu.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import type { ObservedArray} from '../../helpers.js'; import { YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; diff --git a/src/parser/classes/menus/MenuPopup.ts b/src/parser/classes/menus/MenuPopup.ts index dbfdaa1c2..212e30f75 100644 --- a/src/parser/classes/menus/MenuPopup.ts +++ b/src/parser/classes/menus/MenuPopup.ts @@ -1,7 +1,7 @@ import type { ObservedArray} from '../../helpers.js'; import { YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import MenuNavigationItem from './MenuNavigationItem.js'; import MenuServiceItem from './MenuServiceItem.js'; diff --git a/src/parser/classes/menus/MultiPageMenu.ts b/src/parser/classes/menus/MultiPageMenu.ts index e00389212..f8a191070 100644 --- a/src/parser/classes/menus/MultiPageMenu.ts +++ b/src/parser/classes/menus/MultiPageMenu.ts @@ -1,6 +1,6 @@ import { YTNode, type SuperParsedResult } from '../../helpers.js'; import type { RawNode } from '../../index.js'; -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; export default class MultiPageMenu extends YTNode { static type = 'MultiPageMenu'; diff --git a/src/parser/classes/menus/MultiPageMenuNotificationSection.ts b/src/parser/classes/menus/MultiPageMenuNotificationSection.ts index 95b7b5bd7..8cfd1022b 100644 --- a/src/parser/classes/menus/MultiPageMenuNotificationSection.ts +++ b/src/parser/classes/menus/MultiPageMenuNotificationSection.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import { type SuperParsedResult, YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; diff --git a/src/parser/classes/menus/MusicMultiSelectMenu.ts b/src/parser/classes/menus/MusicMultiSelectMenu.ts index 3d34d1965..9a13be54d 100644 --- a/src/parser/classes/menus/MusicMultiSelectMenu.ts +++ b/src/parser/classes/menus/MusicMultiSelectMenu.ts @@ -1,7 +1,7 @@ import type { ObservedArray} from '../../helpers.js'; import { YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import Text from '../misc/Text.js'; import MusicMenuItemDivider from './MusicMenuItemDivider.js'; import MusicMultiSelectMenuItem from './MusicMultiSelectMenuItem.js'; diff --git a/src/parser/classes/menus/SimpleMenuHeader.ts b/src/parser/classes/menus/SimpleMenuHeader.ts index 0c5ce8793..070bf19a0 100644 --- a/src/parser/classes/menus/SimpleMenuHeader.ts +++ b/src/parser/classes/menus/SimpleMenuHeader.ts @@ -1,7 +1,7 @@ import type { SuperParsedResult} from '../../helpers.js'; import { YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import Text from '../misc/Text.js'; export default class SimpleMenuHeader extends YTNode { diff --git a/src/parser/classes/misc/Author.ts b/src/parser/classes/misc/Author.ts index 8fcb65f04..4ba292102 100644 --- a/src/parser/classes/misc/Author.ts +++ b/src/parser/classes/misc/Author.ts @@ -1,7 +1,7 @@ import * as Constants from '../../../utils/Constants.js'; import type { YTNode} from '../../helpers.js'; import { observe, type ObservedArray } from '../../helpers.js'; -import Parser, { type RawNode } from '../../index.js'; +import { Parser, type RawNode } from '../../index.js'; import type NavigationEndpoint from '../NavigationEndpoint.js'; import Text from './Text.js'; import type TextRun from './TextRun.js'; diff --git a/src/parser/classes/ytkids/AnchoredSection.ts b/src/parser/classes/ytkids/AnchoredSection.ts index 27a9cec18..8becea98f 100644 --- a/src/parser/classes/ytkids/AnchoredSection.ts +++ b/src/parser/classes/ytkids/AnchoredSection.ts @@ -1,6 +1,6 @@ import { YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import NavigationEndpoint from '../NavigationEndpoint.js'; import SectionList from '../SectionList.js'; diff --git a/src/parser/classes/ytkids/KidsBlocklistPicker.ts b/src/parser/classes/ytkids/KidsBlocklistPicker.ts index 51e29c661..95b5f83eb 100644 --- a/src/parser/classes/ytkids/KidsBlocklistPicker.ts +++ b/src/parser/classes/ytkids/KidsBlocklistPicker.ts @@ -1,7 +1,7 @@ import Text from '../misc/Text.js'; import { YTNode } from '../../helpers.js'; import Button from '../Button.js'; -import Parser, { type RawNode } from '../../index.js'; +import { Parser, type RawNode } from '../../index.js'; import KidsBlocklistPickerItem from './KidsBlocklistPickerItem.js'; export default class KidsBlocklistPicker extends YTNode { diff --git a/src/parser/classes/ytkids/KidsBlocklistPickerItem.ts b/src/parser/classes/ytkids/KidsBlocklistPickerItem.ts index 0933bfe07..e3eaf602a 100644 --- a/src/parser/classes/ytkids/KidsBlocklistPickerItem.ts +++ b/src/parser/classes/ytkids/KidsBlocklistPickerItem.ts @@ -1,6 +1,6 @@ import Text from '../misc/Text.js'; import { YTNode } from '../../helpers.js'; -import Parser, { type RawNode } from '../../index.js'; +import { Parser, type RawNode } from '../../index.js'; import ToggleButton from '../ToggleButton.js'; import Thumbnail from '../misc/Thumbnail.js'; import type Actions from '../../../core/Actions.js'; diff --git a/src/parser/classes/ytkids/KidsCategoriesHeader.ts b/src/parser/classes/ytkids/KidsCategoriesHeader.ts index 774934ee0..1ad731882 100644 --- a/src/parser/classes/ytkids/KidsCategoriesHeader.ts +++ b/src/parser/classes/ytkids/KidsCategoriesHeader.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import Button from '../Button.js'; import KidsCategoryTab from './KidsCategoryTab.js'; import { type ObservedArray, YTNode } from '../../helpers.js'; diff --git a/src/parser/classes/ytkids/KidsHomeScreen.ts b/src/parser/classes/ytkids/KidsHomeScreen.ts index 81f595795..0378acca7 100644 --- a/src/parser/classes/ytkids/KidsHomeScreen.ts +++ b/src/parser/classes/ytkids/KidsHomeScreen.ts @@ -1,4 +1,4 @@ -import Parser from '../../index.js'; +import { Parser } from '../../index.js'; import AnchoredSection from './AnchoredSection.js'; import { type ObservedArray, YTNode } from '../../helpers.js'; import type { RawNode } from '../../index.js'; diff --git a/src/parser/index.ts b/src/parser/index.ts index 6c14a3b15..1a038206e 100644 --- a/src/parser/index.ts +++ b/src/parser/index.ts @@ -7,6 +7,4 @@ export * as YT from './youtube/index.js'; export * as YTMusic from './ytmusic/index.js'; export * as YTKids from './ytkids/index.js'; export * as Helpers from './helpers.js'; -export * as Generator from './generator.js'; -import * as Parser from './parser.js'; -export default Parser; \ No newline at end of file +export * as Generator from './generator.js'; \ No newline at end of file diff --git a/src/parser/youtube/AccountInfo.ts b/src/parser/youtube/AccountInfo.ts index a3ef9323f..2da2b2574 100644 --- a/src/parser/youtube/AccountInfo.ts +++ b/src/parser/youtube/AccountInfo.ts @@ -1,4 +1,4 @@ -import Parser from '../index.js'; +import { Parser } from '../index.js'; import type { ApiResponse } from '../../core/Actions.js'; import type { IParsedResponse } from '../types/ParsedResponse.js'; diff --git a/src/parser/youtube/Analytics.ts b/src/parser/youtube/Analytics.ts index 2d1fe5b89..95c512a10 100644 --- a/src/parser/youtube/Analytics.ts +++ b/src/parser/youtube/Analytics.ts @@ -1,4 +1,4 @@ -import Parser from '../index.js'; +import { Parser } from '../index.js'; import Element from '../classes/Element.js'; import type { ApiResponse } from '../../core/Actions.js'; import type { IBrowseResponse } from '../types/ParsedResponse.js'; diff --git a/src/parser/youtube/Comments.ts b/src/parser/youtube/Comments.ts index aa67f5af7..6e771847d 100644 --- a/src/parser/youtube/Comments.ts +++ b/src/parser/youtube/Comments.ts @@ -1,4 +1,4 @@ -import Parser from '../index.js'; +import { Parser } from '../index.js'; import type Actions from '../../core/Actions.js'; import type { ApiResponse } from '../../core/Actions.js'; import { InnertubeError } from '../../utils/Utils.js'; diff --git a/src/parser/youtube/LiveChat.ts b/src/parser/youtube/LiveChat.ts index 242cd8842..bf8e2612b 100644 --- a/src/parser/youtube/LiveChat.ts +++ b/src/parser/youtube/LiveChat.ts @@ -1,5 +1,5 @@ import EventEmitter from '../../utils/EventEmitterLike.js'; -import Parser, { LiveChatContinuation } from '../index.js'; +import { Parser, LiveChatContinuation } from '../index.js'; import type VideoInfo from './VideoInfo.js'; import SmoothedQueue from './SmoothedQueue.js'; diff --git a/src/parser/youtube/NotificationsMenu.ts b/src/parser/youtube/NotificationsMenu.ts index 9341497b8..c1344cdef 100644 --- a/src/parser/youtube/NotificationsMenu.ts +++ b/src/parser/youtube/NotificationsMenu.ts @@ -1,4 +1,4 @@ -import Parser from '../index.js'; +import { Parser } from '../index.js'; import ContinuationItem from '../classes/ContinuationItem.js'; import SimpleMenuHeader from '../classes/menus/SimpleMenuHeader.js'; diff --git a/src/parser/youtube/Settings.ts b/src/parser/youtube/Settings.ts index 03131f5a3..5a9e3d33e 100644 --- a/src/parser/youtube/Settings.ts +++ b/src/parser/youtube/Settings.ts @@ -1,4 +1,4 @@ -import Parser from '../index.js'; +import { Parser } from '../index.js'; import { InnertubeError } from '../../utils/Utils.js'; import CompactLink from '../classes/CompactLink.js'; diff --git a/src/parser/youtube/TimeWatched.ts b/src/parser/youtube/TimeWatched.ts index 4e24ef13e..39c7c417f 100644 --- a/src/parser/youtube/TimeWatched.ts +++ b/src/parser/youtube/TimeWatched.ts @@ -1,4 +1,4 @@ -import Parser from '../index.js'; +import { Parser } from '../index.js'; import ItemSection from '../classes/ItemSection.js'; import SectionList from '../classes/SectionList.js'; import SingleColumnBrowseResults from '../classes/SingleColumnBrowseResults.js'; diff --git a/src/parser/youtube/TranscriptInfo.ts b/src/parser/youtube/TranscriptInfo.ts index ec7657f45..c2f73180b 100644 --- a/src/parser/youtube/TranscriptInfo.ts +++ b/src/parser/youtube/TranscriptInfo.ts @@ -1,7 +1,7 @@ import type Actions from '../../core/Actions.js'; import { type ApiResponse } from '../../core/Actions.js'; import type { IGetTranscriptResponse } from '../index.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import Transcript from '../classes/Transcript.js'; export default class TranscriptInfo { diff --git a/src/parser/ytmusic/Album.ts b/src/parser/ytmusic/Album.ts index 5456ac937..92775ed2e 100644 --- a/src/parser/ytmusic/Album.ts +++ b/src/parser/ytmusic/Album.ts @@ -1,6 +1,6 @@ import type { ApiResponse } from '../../core/Actions.js'; import type { ObservedArray } from '../helpers.js'; -import Parser from '../index.js'; +import { Parser } from '../index.js'; import MicroformatData from '../classes/MicroformatData.js'; import MusicCarouselShelf from '../classes/MusicCarouselShelf.js'; diff --git a/src/parser/ytmusic/Artist.ts b/src/parser/ytmusic/Artist.ts index cacb923e2..0625dd3f3 100644 --- a/src/parser/ytmusic/Artist.ts +++ b/src/parser/ytmusic/Artist.ts @@ -1,4 +1,4 @@ -import Parser from '../index.js'; +import { Parser } from '../index.js'; import type Actions from '../../core/Actions.js'; import type { ApiResponse } from '../../core/Actions.js'; import { InnertubeError } from '../../utils/Utils.js'; diff --git a/src/parser/ytmusic/Explore.ts b/src/parser/ytmusic/Explore.ts index 6b3f95604..6d8466cd3 100644 --- a/src/parser/ytmusic/Explore.ts +++ b/src/parser/ytmusic/Explore.ts @@ -1,4 +1,4 @@ -import Parser from '../index.js'; +import { Parser } from '../index.js'; import Grid from '../classes/Grid.js'; import MusicCarouselShelf from '../classes/MusicCarouselShelf.js'; diff --git a/src/parser/ytmusic/HomeFeed.ts b/src/parser/ytmusic/HomeFeed.ts index 239588607..a7f0201d2 100644 --- a/src/parser/ytmusic/HomeFeed.ts +++ b/src/parser/ytmusic/HomeFeed.ts @@ -1,4 +1,4 @@ -import Parser, { SectionListContinuation } from '../index.js'; +import { Parser, SectionListContinuation } from '../index.js'; import MusicCarouselShelf from '../classes/MusicCarouselShelf.js'; import SectionList from '../classes/SectionList.js'; import SingleColumnBrowseResults from '../classes/SingleColumnBrowseResults.js'; diff --git a/src/parser/ytmusic/Library.ts b/src/parser/ytmusic/Library.ts index 4d2b8b190..a0d148ea8 100644 --- a/src/parser/ytmusic/Library.ts +++ b/src/parser/ytmusic/Library.ts @@ -1,4 +1,4 @@ -import Parser, { GridContinuation, MusicShelfContinuation, SectionListContinuation } from '../index.js'; +import { Parser, GridContinuation, MusicShelfContinuation, SectionListContinuation } from '../index.js'; import type Actions from '../../core/Actions.js'; import type { ApiResponse } from '../../core/Actions.js'; diff --git a/src/parser/ytmusic/Playlist.ts b/src/parser/ytmusic/Playlist.ts index f7a934b71..cf2d76756 100644 --- a/src/parser/ytmusic/Playlist.ts +++ b/src/parser/ytmusic/Playlist.ts @@ -1,4 +1,4 @@ -import Parser, { MusicPlaylistShelfContinuation, SectionListContinuation } from '../index.js'; +import { Parser, MusicPlaylistShelfContinuation, SectionListContinuation } from '../index.js'; import MusicCarouselShelf from '../classes/MusicCarouselShelf.js'; import MusicDetailHeader from '../classes/MusicDetailHeader.js'; diff --git a/src/parser/ytmusic/Recap.ts b/src/parser/ytmusic/Recap.ts index f3fdc5fe8..c4b33013f 100644 --- a/src/parser/ytmusic/Recap.ts +++ b/src/parser/ytmusic/Recap.ts @@ -1,4 +1,4 @@ -import Parser from '../index.js'; +import { Parser } from '../index.js'; import type Actions from '../../core/Actions.js'; import type { ApiResponse } from '../../core/Actions.js'; diff --git a/src/parser/ytmusic/Search.ts b/src/parser/ytmusic/Search.ts index 0c9119776..9950ff556 100644 --- a/src/parser/ytmusic/Search.ts +++ b/src/parser/ytmusic/Search.ts @@ -1,6 +1,6 @@ import type Actions from '../../core/Actions.js'; import { InnertubeError } from '../../utils/Utils.js'; -import Parser, { MusicShelfContinuation } from '../index.js'; +import { Parser, MusicShelfContinuation } from '../index.js'; import ChipCloud from '../classes/ChipCloud.js'; import ChipCloudChip from '../classes/ChipCloudChip.js'; diff --git a/src/platform/lib.ts b/src/platform/lib.ts index 8219b3ac2..ec2f985f9 100644 --- a/src/platform/lib.ts +++ b/src/platform/lib.ts @@ -2,7 +2,6 @@ import Innertube from '../Innertube.js'; export * from '../core/index.js'; export * from '../parser/index.js'; -export { default as Parser } from '../parser/index.js'; export * as Proto from '../proto/index.js'; export * as Types from '../types/index.js'; export * from '../utils/index.js';