@scrippsproduct/networks-ui-library 1.1.0-alpha.1 → 1.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Carousel.module-CNJzZW2-.mjs +14 -0
- package/dist/{ChoicesItem-CGIr6Qga.mjs → ChoicesItem-CT9fXB0I.mjs} +22 -23
- package/dist/PageHero.module-BM0IV1P5.mjs +8 -0
- package/dist/ResultsTable.module-1zxhXaem.mjs +14 -0
- package/dist/{SocialShareButton-BXGVUD-z.mjs → SocialShareButton-BMhRS9Qr.mjs} +12 -7
- package/dist/assets/AdBlock.css +1 -1
- package/dist/assets/AirDateFormatter.css +1 -1
- package/dist/assets/AnchorTag.css +1 -1
- package/dist/assets/BasicGridModule.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Carousel.css +1 -1
- package/dist/assets/ChannelSearch.css +1 -1
- package/dist/assets/ChoicesItem.css +1 -1
- package/dist/assets/ContentHero.css +1 -1
- package/dist/assets/CtaBlock.css +1 -1
- package/dist/assets/CustomDataList.css +1 -1
- package/dist/assets/DateNavigation.css +1 -1
- package/dist/assets/DeviceAndPlatformLists.css +1 -1
- package/dist/assets/Figure2.css +1 -1
- package/dist/assets/FindUs.css +1 -1
- package/dist/assets/GradientButton.css +1 -1
- package/dist/assets/ImageCard.css +1 -1
- package/dist/assets/InlineNavigation.css +1 -1
- package/dist/assets/LogoListItem.css +1 -1
- package/dist/assets/ModalContainer.css +1 -1
- package/dist/assets/PageHero.css +1 -1
- package/dist/assets/ProgramAirdate.css +1 -1
- package/dist/assets/PromotionBlock.css +1 -1
- package/dist/assets/ResultsTable.css +1 -1
- package/dist/assets/ScheduleLayout.css +1 -0
- package/dist/assets/ScheduleList.css +1 -1
- package/dist/assets/ShowAboutLayout.css +1 -1
- package/dist/assets/ShowSlide.css +1 -1
- package/dist/assets/SocialLinks.css +1 -1
- package/dist/assets/TextSlide.css +1 -1
- package/dist/assets/TwoColumnSlide.css +1 -1
- package/dist/assets/UpcomingList.css +1 -1
- package/dist/components/AdBlock/AdBlock.d.ts +20 -1
- package/dist/components/AdBlock/AdBlock.js +118 -83
- package/dist/components/AdBlock/index.d.ts +2 -1
- package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.d.ts +7 -1
- package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.js +17 -12
- package/dist/components/AdjustableTwoColumnGrid/index.d.ts +2 -1
- package/dist/components/AirDateFormatter/AirDateFormatter.d.ts +5 -4
- package/dist/components/AirDateFormatter/AirDateFormatter.js +21 -22
- package/dist/components/AirDateFormatter/index.d.ts +2 -1
- package/dist/components/AnchorTag/AnchorTag.d.ts +10 -1
- package/dist/components/AnchorTag/AnchorTag.js +22 -23
- package/dist/components/AnchorTag/index.d.ts +2 -1
- package/dist/components/BCVideoPlayer/BCVideoPlayer.d.ts +19 -12
- package/dist/components/BCVideoPlayer/BCVideoPlayer.js +39 -37
- package/dist/components/BCVideoPlayer/index.d.ts +2 -1
- package/dist/components/BasicGridModule/BasicGridModule.d.ts +19 -17
- package/dist/components/BasicGridModule/BasicGridModule.js +57 -51
- package/dist/components/BasicGridModule/index.d.ts +2 -1
- package/dist/components/Button/Button.d.ts +18 -17
- package/dist/components/Button/Button.js +31 -32
- package/dist/components/Button/index.d.ts +2 -1
- package/dist/components/ButtonAnchor/ButtonAnchor.d.ts +5 -5
- package/dist/components/ButtonAnchor/ButtonAnchor.js +7 -5
- package/dist/components/ButtonAnchor/index.d.ts +2 -1
- package/dist/components/Carousel/Carousel.js +1 -1
- package/dist/components/Carousel/index.d.ts +2 -1
- package/dist/components/Carousel/navigations/Pagination.js +12 -10
- package/dist/components/CarouselSlide/CarouselSlide.js +25 -87
- package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.d.ts +1 -1
- package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.js +3 -4
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.d.ts +18 -16
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.js +49 -34
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.js +5 -5
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.d.ts +5 -4
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +10 -11
- package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.d.ts +8 -1
- package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.js +19 -15
- package/dist/components/CastInfoLayout/CastInfoLayout.d.ts +16 -1
- package/dist/components/CastInfoLayout/CastInfoLayout.js +31 -21
- package/dist/components/ChannelSearch/ChannelSearch.d.ts +18 -16
- package/dist/components/ChannelSearch/ChannelSearch.js +80 -63
- package/dist/components/ChannelSearch/index.d.ts +2 -1
- package/dist/components/ChoicesItem/ChoicesItem.d.ts +7 -4
- package/dist/components/ChoicesItem/ChoicesItem.js +3 -4
- package/dist/components/ChoicesItem/index.d.ts +2 -1
- package/dist/components/ChoicesItem/index.js +1 -1
- package/dist/components/ChoicesList/ChoicesList.d.ts +4 -3
- package/dist/components/ChoicesList/ChoicesList.js +3 -4
- package/dist/components/ChoicesList/index.d.ts +2 -1
- package/dist/components/Concat/Concat.d.ts +4 -3
- package/dist/components/Concat/Concat.js +5 -5
- package/dist/components/Concat/index.d.ts +2 -1
- package/dist/components/CreateChoiceList/CreateChoiceList.d.ts +7 -5
- package/dist/components/CreateChoiceList/CreateChoiceList.js +38 -9
- package/dist/components/CreateChoiceList/index.d.ts +2 -1
- package/dist/components/CtaBlock/CtaBlock.d.ts +13 -15
- package/dist/components/CtaBlock/CtaBlock.js +23 -22
- package/dist/components/CtaBlock/index.d.ts +2 -1
- package/dist/components/CustomDataList/CustomDataList.d.ts +12 -10
- package/dist/components/CustomDataList/CustomDataList.js +200 -174
- package/dist/components/CustomDataList/index.d.ts +2 -1
- package/dist/components/CustomSelect/CustomSelect.d.ts +16 -13
- package/dist/components/CustomSelect/CustomSelect.js +224 -154
- package/dist/components/CustomSelect/index.d.ts +2 -1
- package/dist/components/DateNavigation/DateNavigation.d.ts +1 -4
- package/dist/components/DateNavigation/DateNavigation.js +125 -82
- package/dist/components/DateNavigation/index.d.ts +2 -1
- package/dist/components/DatePicker/index.d.ts +2 -1
- package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.d.ts +14 -4
- package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.js +40 -33
- package/dist/components/DeviceAndPlatformLists/index.d.ts +2 -1
- package/dist/components/DrawerNavigation/DrawerNavigation.d.ts +21 -1
- package/dist/components/DrawerNavigation/DrawerNavigation.js +75 -56
- package/dist/components/DrawerNavigation/index.d.ts +2 -1
- package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.d.ts +6 -5
- package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.js +18 -14
- package/dist/components/EqualSizeFlexRow/index.d.ts +2 -1
- package/dist/components/EqualSizeGrid/EqualSizeGrid.d.ts +7 -6
- package/dist/components/EqualSizeGrid/EqualSizeGrid.js +17 -12
- package/dist/components/EqualSizeGrid/index.d.ts +2 -1
- package/dist/components/ErrorHandler/ErrorHandler.d.ts +5 -4
- package/dist/components/ErrorHandler/ErrorHandler.js +3 -4
- package/dist/components/ErrorHandler/index.d.ts +2 -1
- package/dist/components/FeaturedList/FeaturedList.d.ts +8 -6
- package/dist/components/FeaturedList/FeaturedList.js +44 -36
- package/dist/components/FeaturedList/index.d.ts +2 -1
- package/dist/components/Figure/Figure.d.ts +5 -4
- package/dist/components/Figure/Figure.js +8 -9
- package/dist/components/Figure/index.d.ts +2 -1
- package/dist/components/FindUs/FindUs.d.ts +24 -1
- package/dist/components/FindUs/FindUs.js +70 -63
- package/dist/components/FindUs/index.d.ts +2 -1
- package/dist/components/FooterNavigation/FooterNavigation.d.ts +9 -3
- package/dist/components/FooterNavigation/FooterNavigation.js +10 -11
- package/dist/components/FooterNavigation/index.d.ts +2 -1
- package/dist/components/GenericList/GenericList.d.ts +6 -5
- package/dist/components/GenericList/GenericList.js +13 -14
- package/dist/components/GenericList/index.d.ts +2 -1
- package/dist/components/GetAirdateWrapper/GetAirdateWrapper.d.ts +9 -8
- package/dist/components/GetAirdateWrapper/GetAirdateWrapper.js +46 -30
- package/dist/components/GetAirdateWrapper/index.d.ts +2 -1
- package/dist/components/GradientButton/GradientButton.d.ts +15 -14
- package/dist/components/GradientButton/GradientButton.js +37 -40
- package/dist/components/GradientButton/index.d.ts +2 -1
- package/dist/components/GridList/GridList.d.ts +6 -5
- package/dist/components/GridList/GridList.js +14 -10
- package/dist/components/GridList/index.d.ts +2 -1
- package/dist/components/ImageCard/ImageCard.d.ts +27 -1
- package/dist/components/ImageCard/ImageCard.js +59 -58
- package/dist/components/ImageCard/ImageCardCore.d.ts +6 -2
- package/dist/components/ImageCard/ImageCardCore.js +114 -89
- package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.d.ts +11 -14
- package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.js +25 -18
- package/dist/components/InfoPanel/InfoPanel.d.ts +10 -8
- package/dist/components/InfoPanel/InfoPanel.js +2 -2
- package/dist/components/InfoPanel/index.d.ts +2 -1
- package/dist/components/InlineNavigation/InlineNavigation.d.ts +7 -5
- package/dist/components/InlineNavigation/InlineNavigation.js +13 -10
- package/dist/components/Input/Input.d.ts +10 -9
- package/dist/components/Input/Input.js +47 -40
- package/dist/components/Input/index.d.ts +2 -1
- package/dist/components/InstructionsList/InstructionsList.d.ts +5 -4
- package/dist/components/InstructionsList/InstructionsList.js +20 -10
- package/dist/components/InstructionsList/index.d.ts +2 -1
- package/dist/components/Loading/Loading.d.ts +8 -7
- package/dist/components/Loading/Loading.js +25 -20
- package/dist/components/Loading/index.d.ts +2 -1
- package/dist/components/LoadingV2/LoadingV2.d.ts +7 -6
- package/dist/components/LoadingV2/LoadingV2.js +31 -21
- package/dist/components/LoadingV2/index.d.ts +2 -1
- package/dist/components/LogoListItem/LogoListItem.d.ts +7 -6
- package/dist/components/LogoListItem/LogoListItem.js +34 -17
- package/dist/components/LogoListItem/index.d.ts +2 -1
- package/dist/components/LogoNavigation/LogoNavigation.d.ts +13 -4
- package/dist/components/LogoNavigation/LogoNavigation.js +23 -18
- package/dist/components/LogoNavigation/index.d.ts +2 -1
- package/dist/components/ModalContainer/ModalContainer.d.ts +8 -8
- package/dist/components/ModalContainer/ModalContainer.js +84 -72
- package/dist/components/ModalContainer/index.d.ts +2 -1
- package/dist/components/MultiLayeredFigure/MultiLayeredFigure.d.ts +6 -5
- package/dist/components/MultiLayeredFigure/MultiLayeredFigure.js +13 -10
- package/dist/components/MultiLayeredFigure/index.d.ts +2 -1
- package/dist/components/NavList/NavList.d.ts +9 -7
- package/dist/components/NavList/NavList.js +56 -20
- package/dist/components/NavList/index.d.ts +2 -1
- package/dist/components/Overlay/Overlay.d.ts +5 -5
- package/dist/components/Overlay/Overlay.js +8 -5
- package/dist/components/PageHero/PageHero.d.ts +6 -5
- package/dist/components/PageHero/PageHero.js +29 -16
- package/dist/components/PageHero/index.d.ts +2 -1
- package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.d.ts +2 -13
- package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.js +17 -10
- package/dist/components/PageHero/page-hero-layouts/ContentHero/index.d.ts +2 -1
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.d.ts +7 -5
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +108 -42
- package/dist/components/PageHero/page-hero-layouts/IONShow/index.d.ts +2 -1
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.d.ts +2 -12
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.js +13 -7
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/index.d.ts +2 -1
- package/dist/components/PageHero/page-hero-layouts/page-hero.d.js +1 -0
- package/dist/components/ProgramAirdate/ProgramAirdate.d.ts +14 -10
- package/dist/components/ProgramAirdate/ProgramAirdate.js +72 -67
- package/dist/components/ProgramAirdate/index.d.ts +2 -1
- package/dist/components/PromotionBlock/PromotionBlock.d.ts +11 -4
- package/dist/components/PromotionBlock/PromotionBlock.js +36 -26
- package/dist/components/PromotionBlock/index.d.ts +2 -1
- package/dist/components/PromotionsRowBlock/PromotionsRowBlock.d.ts +5 -4
- package/dist/components/PromotionsRowBlock/PromotionsRowBlock.js +8 -6
- package/dist/components/PromotionsRowBlock/index.d.ts +2 -1
- package/dist/components/PromotionsRowModule/PromotionsRowModule.d.ts +25 -5
- package/dist/components/PromotionsRowModule/PromotionsRowModule.js +48 -48
- package/dist/components/PromotionsRowModule/index.d.ts +2 -1
- package/dist/components/RescanInstructions/RescanInstructions.d.ts +3 -3
- package/dist/components/RescanInstructions/RescanInstructions.js +29 -18
- package/dist/components/RescanInstructions/index.d.ts +2 -1
- package/dist/components/ResponsiveImage/ResponsiveImage.d.ts +13 -12
- package/dist/components/ResponsiveImage/ResponsiveImage.js +16 -20
- package/dist/components/ResponsiveImage/index.d.ts +2 -1
- package/dist/components/ResultsTable/ResultsTable.d.ts +10 -6
- package/dist/components/ResultsTable/ResultsTable.js +21 -16
- package/dist/components/ResultsTable/index.d.ts +2 -1
- package/dist/components/ResultsTableBody/ResultsTableBody.d.ts +9 -5
- package/dist/components/ResultsTableBody/ResultsTableBody.js +21 -16
- package/dist/components/ResultsTableBody/index.d.ts +2 -1
- package/dist/components/ResultsTableHeader/ResultsTableHeader.d.ts +7 -3
- package/dist/components/ResultsTableHeader/ResultsTableHeader.js +4 -5
- package/dist/components/ResultsTableHeader/index.d.ts +2 -1
- package/dist/components/ScheduleLayout/ScheduleContext.d.ts +25 -0
- package/dist/components/ScheduleLayout/ScheduleContext.js +33 -0
- package/dist/components/ScheduleLayout/ScheduleLayout.d.ts +15 -5
- package/dist/components/ScheduleLayout/ScheduleLayout.js +76 -24
- package/dist/components/ScheduleLayout/index.d.ts +2 -1
- package/dist/components/ScheduleLayout/useScheduleContext.d.ts +14 -0
- package/dist/components/ScheduleLayout/useScheduleContext.js +12 -0
- package/dist/components/ScheduleList/ScheduleList.d.ts +5 -5
- package/dist/components/ScheduleList/ScheduleList.js +153 -60
- package/dist/components/ScheduleList/index.d.ts +2 -1
- package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.d.ts +6 -4
- package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.js +27 -16
- package/dist/components/ScheduleList/schedule-list-items/MovieItem.d.ts +9 -7
- package/dist/components/ScheduleList/schedule-list-items/MovieItem.js +46 -34
- package/dist/components/ScheduleList/schedule-list-items/SeriesItem.d.ts +9 -7
- package/dist/components/ScheduleList/schedule-list-items/SeriesItem.js +53 -37
- package/dist/components/ScheduleList/schedule-list-items/SportsItem.d.ts +9 -7
- package/dist/components/ScheduleList/schedule-list-items/SportsItem.js +46 -34
- package/dist/components/SectionedContent/SectionedContent.d.ts +11 -3
- package/dist/components/SectionedContent/SectionedContent.js +14 -15
- package/dist/components/SectionedContent/index.d.ts +2 -1
- package/dist/components/Select/Select.d.ts +15 -11
- package/dist/components/Select/Select.js +21 -21
- package/dist/components/Select/index.d.ts +2 -1
- package/dist/components/ShowAboutContent/ShowAboutContent.d.ts +10 -8
- package/dist/components/ShowAboutContent/ShowAboutContent.js +27 -28
- package/dist/components/ShowAboutContent/index.d.ts +2 -1
- package/dist/components/ShowAboutLayout/ShowAboutLayout.d.ts +10 -8
- package/dist/components/ShowAboutLayout/ShowAboutLayout.js +91 -42
- package/dist/components/ShowAboutLayout/index.d.ts +2 -1
- package/dist/components/SocialLinks/SocialLinks.d.ts +15 -9
- package/dist/components/SocialLinks/SocialLinks.js +192 -138
- package/dist/components/SocialShareBlock/SocialShareBlock.d.ts +9 -8
- package/dist/components/SocialShareBlock/SocialShareBlock.js +20 -22
- package/dist/components/SocialShareBlock/index.d.ts +2 -1
- package/dist/components/SocialShareButton/SocialShareButton.d.ts +8 -7
- package/dist/components/SocialShareButton/SocialShareButton.js +3 -4
- package/dist/components/SocialShareButton/index.d.ts +2 -1
- package/dist/components/SocialShareButton/index.js +1 -1
- package/dist/components/StringList/StringList.d.ts +6 -5
- package/dist/components/StringList/StringList.js +16 -12
- package/dist/components/StringList/index.d.ts +2 -1
- package/dist/components/TabContent/TabContent.d.ts +5 -4
- package/dist/components/TabContent/TabContent.js +9 -7
- package/dist/components/TabContent/index.d.ts +2 -1
- package/dist/components/TabNavigation/TabNavigation.d.ts +7 -5
- package/dist/components/TabNavigation/TabNavigation.js +58 -53
- package/dist/components/TabNavigation/index.d.ts +2 -1
- package/dist/components/TabbedContent/TabbedContent.d.ts +20 -4
- package/dist/components/TabbedContent/TabbedContent.js +24 -8
- package/dist/components/TabbedContent/index.d.ts +2 -1
- package/dist/components/TextArea/TextArea.d.ts +9 -1
- package/dist/components/TextArea/TextArea.js +13 -13
- package/dist/components/TextArea/index.d.ts +2 -1
- package/dist/components/UpcomingList/UpcomingList.d.ts +5 -4
- package/dist/components/UpcomingList/UpcomingList.js +55 -41
- package/dist/containers/GetFeatruedListContainer.d.ts +22 -15
- package/dist/containers/GetFeatruedListContainer.js +16 -16
- package/dist/containers/NowPlayingContainer.d.ts +17 -15
- package/dist/containers/NowPlayingContainer.js +18 -16
- package/dist/custom-elements.d.js +1 -0
- package/dist/data-resources/FakeDataResource.d.ts +77 -68
- package/dist/data-resources/FakeDataResource.js +244 -142
- package/dist/error-boundries/BlankErrorBoundry.d.ts +14 -9
- package/dist/error-boundries/BlankErrorBoundry.js +5 -5
- package/dist/error-boundries/GeneralErrorBoundry.d.ts +15 -10
- package/dist/error-boundries/GeneralErrorBoundry.js +10 -10
- package/dist/hooks/useGetSchedule.d.ts +12 -4
- package/dist/hooks/useGetSchedule.js +31 -27
- package/dist/hooks/useGetUpcoming.d.ts +8 -6
- package/dist/hooks/useGetUpcoming.js +22 -25
- package/dist/icons/Facebook.js +6 -6
- package/dist/icons/Tiktok.js +15 -7
- package/dist/icons/Twitter.js +7 -7
- package/dist/index.js +1 -1
- package/dist/logger-C0N7U0YY.mjs +67 -0
- package/dist/settings.js +6 -5
- package/dist/utils/Redirect.d.ts +2 -2
- package/dist/utils/analytics.js +1 -1
- package/dist/utils/date-helpers.d.ts +3 -2
- package/dist/utils/date-helpers.js +26 -26
- package/dist/utils/events.js +8 -6
- package/dist/utils/getFeaturedList.d.ts +28 -8
- package/dist/utils/getFeaturedList.js +58 -45
- package/dist/utils/getFeaturedListImages.d.ts +15 -5
- package/dist/utils/getFeaturedListImages.js +27 -16
- package/dist/utils/getOnNowProgram.d.ts +17 -3
- package/dist/utils/getOnNowProgram.js +106 -68
- package/dist/utils/getSchedule.d.ts +8 -6
- package/dist/utils/getSchedule.js +6 -1
- package/dist/utils/getUpcomingPrograms.d.ts +10 -7
- package/dist/utils/getUpcomingPrograms.js +5 -4
- package/dist/utils/getViewingPlatforms.d.ts +6 -16
- package/dist/utils/getViewingPlatforms.js +14 -11
- package/dist/utils/gtm.js +1 -1
- package/dist/utils/helpers.d.ts +9 -9
- package/dist/utils/helpers.js +69 -65
- package/dist/utils/program-helpers.d.ts +14 -20
- package/dist/utils/program-helpers.js +9 -8
- package/dist/utils/series-helpers.d.ts +14 -20
- package/dist/utils/series-helpers.js +9 -8
- package/package.json +12 -9
- package/dist/Carousel.module-DOrBKQEQ.mjs +0 -14
- package/dist/PageHero.module-BdV8z_Xv.mjs +0 -8
- package/dist/ResultsTable.module-B7M9y7hd.mjs +0 -14
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.d.ts +0 -28
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.js +0 -42
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.d.ts +0 -170
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.js +0 -193
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.d.ts +0 -17
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.js +0 -49
- package/dist/facebook-HCcA1M1m.mjs +0 -54
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
const
|
|
1
|
+
const c = async ({
|
|
2
|
+
network: l,
|
|
3
|
+
platformsApiUrl: s
|
|
4
|
+
}) => {
|
|
2
5
|
try {
|
|
3
6
|
const r = await fetch(`${s}/${l}`);
|
|
4
7
|
if (r != null && r.ok) {
|
|
5
8
|
const a = await r.json();
|
|
6
9
|
let o = /* @__PURE__ */ new Map();
|
|
7
|
-
for (let
|
|
8
|
-
o.set(a[
|
|
9
|
-
id: `${a[
|
|
10
|
-
image_url:
|
|
11
|
-
alt_text:
|
|
12
|
-
link:
|
|
13
|
-
target: (
|
|
10
|
+
for (let t = 0; t < a.length; t++)
|
|
11
|
+
o.set(a[t].category, a[t].viewing_platforms.map((e, n) => ({
|
|
12
|
+
id: `${a[t].category.slug}-${n}`,
|
|
13
|
+
image_url: e != null && e.override_image ? e.image_override : e.platform.image,
|
|
14
|
+
alt_text: e.platform.name,
|
|
15
|
+
link: e.link_url,
|
|
16
|
+
target: (e == null ? void 0 : e.target) ?? "_blank"
|
|
14
17
|
})));
|
|
15
18
|
return o;
|
|
16
19
|
} else
|
|
17
|
-
return console.
|
|
20
|
+
return console.error(`An error was returned from fetch. HTTP Response Code: ', ${r == null ? void 0 : r.status}`), {
|
|
18
21
|
error: {
|
|
19
22
|
type: "Fetch Response Error",
|
|
20
23
|
statusCode: r == null ? void 0 : r.status
|
|
21
24
|
}
|
|
22
25
|
};
|
|
23
26
|
} catch (r) {
|
|
24
|
-
return console.
|
|
27
|
+
return console.error("Fetch failed with error:", r), {
|
|
25
28
|
error: {
|
|
26
29
|
type: "Fetch Failed",
|
|
27
30
|
message: r
|
|
@@ -30,5 +33,5 @@ const g = async ({ network: l, platformsApiUrl: s }) => {
|
|
|
30
33
|
}
|
|
31
34
|
};
|
|
32
35
|
export {
|
|
33
|
-
|
|
36
|
+
c as getViewingPlatforms
|
|
34
37
|
};
|
package/dist/utils/gtm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect as a } from "react";
|
|
2
2
|
const r = ({ gtmId: e = null }) => (a(() => {
|
|
3
|
-
if (e !== null) {
|
|
3
|
+
if (e !== null && typeof document < "u") {
|
|
4
4
|
const t = document.createElement("script");
|
|
5
5
|
t.innerHTML = `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
|
6
6
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
package/dist/utils/helpers.d.ts
CHANGED
|
@@ -24,15 +24,15 @@ export function getMinutesFromStr(timeLenghtStr: any): string;
|
|
|
24
24
|
*/
|
|
25
25
|
export function getHoursMinsStr(timeLenghtInMins: number): string;
|
|
26
26
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
* Converts a string to a slug
|
|
28
|
+
*
|
|
29
|
+
* convert all characters to lowercase, trim whitespace
|
|
30
|
+
* replace spaces, dashes and underscores with a dash (-)
|
|
31
|
+
* remove special characters
|
|
32
|
+
*
|
|
33
|
+
* @param {string} str
|
|
34
|
+
* @returns {string} - the slugified string
|
|
35
|
+
*/
|
|
36
36
|
export function slugify(str: string): string;
|
|
37
37
|
/**
|
|
38
38
|
* Formats a phone number input to the format
|
package/dist/utils/helpers.js
CHANGED
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { l as f } from "../logger-C0N7U0YY.mjs";
|
|
2
|
+
f.setComponent("utils/helpers");
|
|
3
|
+
const w = (e, t) => {
|
|
4
|
+
let r = [];
|
|
5
|
+
for (let n = 0; n <= Math.floor(t.length / e); n++)
|
|
6
|
+
t.slice(n * e, e * (n + 1)).length && r.push(t.slice(n * e, e * (n + 1)));
|
|
7
|
+
return r;
|
|
8
|
+
}, $ = (e) => {
|
|
7
9
|
if (e === "" || e === void 0 || e === null) return "";
|
|
8
|
-
const [t,
|
|
9
|
-
return `${Number.parseInt(t, 10) * 60 + Number.parseInt(
|
|
10
|
-
},
|
|
10
|
+
const [t, r] = e.split(":");
|
|
11
|
+
return `${Number.parseInt(t, 10) * 60 + Number.parseInt(r, 10)} MIN`;
|
|
12
|
+
}, v = (e) => {
|
|
11
13
|
if (e == null) return "";
|
|
12
|
-
const t = Math.floor(e / 60),
|
|
13
|
-
return `${
|
|
14
|
-
},
|
|
15
|
-
const [t,
|
|
16
|
-
let [
|
|
17
|
-
return
|
|
18
|
-
},
|
|
14
|
+
const t = Math.floor(e / 60), r = e % 60, n = t > 0 ? `${t} HR${t > 1 ? "S" : ""}` : "", s = r > 0 ? `${r} MIN${r > 1 ? "S" : ""}` : "";
|
|
15
|
+
return `${n} ${s}`;
|
|
16
|
+
}, y = (e) => {
|
|
17
|
+
const [t, r] = e.split(" ");
|
|
18
|
+
let [n, s] = t.split(":");
|
|
19
|
+
return n === "12" && (n = "00"), r === "PM" && (n = parseInt(n, 10) + 12), n.length === 1 && (n = `0${n}`), `${n}:${s}`;
|
|
20
|
+
}, b = (e) => e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, ""), T = (e = "") => {
|
|
19
21
|
const t = e.replace(/\D/ig, "");
|
|
20
|
-
let
|
|
21
|
-
return t.length > 0 && t.length < 3 && (
|
|
22
|
-
},
|
|
23
|
-
const t = Object.keys(e).filter((
|
|
24
|
-
return t.length ? "?" + t.map((
|
|
22
|
+
let r = "";
|
|
23
|
+
return t.length > 0 && t.length < 3 && (r = `(${t}`), t.length >= 3 && t.length < 6 && (r = `(${t.slice(0, 3)}) ${t.slice(3, 6)}`), t.length >= 6 && (r = `(${t.slice(0, 3)}) ${t.slice(3, 6)}-${t.slice(6)}`), r;
|
|
24
|
+
}, C = (e = []) => e.flat().filter((t) => t && typeof t == "string").join(" "), A = (e) => {
|
|
25
|
+
const t = Object.keys(e).filter((r) => !!e[r]);
|
|
26
|
+
return t.length ? "?" + t.map((r) => `${r}=${encodeURIComponent(e[r])}`).join("&") : "";
|
|
25
27
|
};
|
|
26
|
-
function
|
|
27
|
-
const l = window.outerWidth / 2 + (window.screenX || window.screenLeft || 0) - t / 2, c = window.outerHeight / 2 + (window.screenY || window.screenTop || 0) -
|
|
28
|
-
height:
|
|
28
|
+
function P(e, t = 650, r = 450, n = "no", s = "no", o = "no") {
|
|
29
|
+
const l = window.outerWidth / 2 + (window.screenX || window.screenLeft || 0) - t / 2, c = window.outerHeight / 2 + (window.screenY || window.screenTop || 0) - r / 2, u = {
|
|
30
|
+
height: r,
|
|
29
31
|
width: t,
|
|
30
32
|
left: l,
|
|
31
33
|
top: c,
|
|
32
|
-
location:
|
|
34
|
+
location: n,
|
|
33
35
|
toolbar: "no",
|
|
34
36
|
status: "no",
|
|
35
37
|
directories: "no",
|
|
@@ -45,14 +47,14 @@ function A(e, t = 650, n = 450, r = "no", s = "no", o = "no") {
|
|
|
45
47
|
Object.keys(u).map((a) => `${a}=${u[a]}`).join(",")
|
|
46
48
|
);
|
|
47
49
|
}
|
|
48
|
-
const
|
|
49
|
-
function
|
|
50
|
-
const t = e.split(" "),
|
|
51
|
-
for (let
|
|
52
|
-
|
|
53
|
-
return
|
|
50
|
+
const S = (e) => e.split("_").map((t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()).join("");
|
|
51
|
+
function E(e) {
|
|
52
|
+
const t = e.split(" "), r = [t[0].toLowerCase()];
|
|
53
|
+
for (let n = 1; n < t.length; n++)
|
|
54
|
+
r.push(t[n].charAt(0).toUpperCase() + t[n].slice(1).toLowerCase());
|
|
55
|
+
return r.join("");
|
|
54
56
|
}
|
|
55
|
-
const
|
|
57
|
+
const M = (e) => {
|
|
56
58
|
if (e && (e.__typename === "SeriesItem" || e.__typename === "MovieItem") && e.slug && !e.preventDetailPage) {
|
|
57
59
|
let t = "";
|
|
58
60
|
switch (e.__typename) {
|
|
@@ -66,52 +68,54 @@ const S = (e) => {
|
|
|
66
68
|
return t;
|
|
67
69
|
}
|
|
68
70
|
return "";
|
|
69
|
-
},
|
|
70
|
-
var t,
|
|
71
|
-
return e != null && e.altTextOverride ? e.altTextOverride : (
|
|
72
|
-
},
|
|
71
|
+
}, _ = (e) => {
|
|
72
|
+
var t, r;
|
|
73
|
+
return e != null && e.altTextOverride ? e.altTextOverride : (r = (t = e == null ? void 0 : e.image) == null ? void 0 : t[0]) != null && r.alt ? e.image[0].alt : "";
|
|
74
|
+
}, D = () => "ontouchstart" in window || // eslint-disable-next-line no-undef
|
|
75
|
+
navigator.maxTouchPoints > 0 || // eslint-disable-next-line no-undef
|
|
76
|
+
navigator.msMaxTouchPoints > 0, H = (e = []) => {
|
|
73
77
|
const t = setInterval(() => {
|
|
74
78
|
document.body && (clearInterval(t), e.forEach((s) => {
|
|
75
79
|
const { id: o } = s;
|
|
76
|
-
document.getElementById(o) ||
|
|
77
|
-
|
|
80
|
+
document.getElementById(o) || n({ ...s }).then(() => {
|
|
81
|
+
f.log("Script tag added successfully");
|
|
78
82
|
}).catch((c) => {
|
|
79
|
-
|
|
83
|
+
r("Error adding script tag", c);
|
|
80
84
|
});
|
|
81
85
|
}));
|
|
82
|
-
}, 100),
|
|
83
|
-
|
|
84
|
-
},
|
|
86
|
+
}, 100), r = (s, o) => {
|
|
87
|
+
f.warn(s), f.error(o);
|
|
88
|
+
}, n = ({
|
|
85
89
|
id: s,
|
|
86
90
|
src: o = null,
|
|
87
91
|
textContent: l = null,
|
|
88
92
|
async: c = !1,
|
|
89
93
|
defer: u = !1,
|
|
90
|
-
insertInHead:
|
|
91
|
-
}) => new Promise((a,
|
|
92
|
-
!o && !l &&
|
|
93
|
-
const i = document.createElement("script"),
|
|
94
|
-
i.removeEventListener("load",
|
|
95
|
-
},
|
|
96
|
-
i.removeEventListener("error",
|
|
94
|
+
insertInHead: d = !1
|
|
95
|
+
}) => new Promise((a, p) => {
|
|
96
|
+
!o && !l && p(), o && l && p();
|
|
97
|
+
const i = document.createElement("script"), g = () => {
|
|
98
|
+
i.removeEventListener("load", g), a();
|
|
99
|
+
}, h = () => {
|
|
100
|
+
i.removeEventListener("error", h), p();
|
|
97
101
|
};
|
|
98
|
-
o !== null && typeof o == "string" && i.setAttribute("src", o), i.textContent = l !== null && typeof l == "string" ? l : null, s !== null && typeof s == "string" && i.setAttribute("id", s), c && i.setAttribute("async", c), u && i.setAttribute("defer", u), i.addEventListener("load",
|
|
102
|
+
o !== null && typeof o == "string" && i.setAttribute("src", o), i.textContent = l !== null && typeof l == "string" ? l : null, s !== null && typeof s == "string" && i.setAttribute("id", s), c && i.setAttribute("async", c), u && i.setAttribute("defer", u), i.addEventListener("load", g), i.addEventListener("error", h), d ? document.head.appendChild(i) : document.body.appendChild(i);
|
|
99
103
|
});
|
|
100
104
|
};
|
|
101
105
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
106
|
+
T as areaCodePhoneNumberMask,
|
|
107
|
+
w as chunkArray,
|
|
108
|
+
C as classes,
|
|
109
|
+
y as convert12to24,
|
|
110
|
+
H as createScriptTags,
|
|
111
|
+
M as generateHrefFromProgramSlug,
|
|
112
|
+
v as getHoursMinsStr,
|
|
113
|
+
$ as getMinutesFromStr,
|
|
114
|
+
D as isTouchDevice,
|
|
115
|
+
A as objectToGetParams,
|
|
116
|
+
_ as setAltText,
|
|
117
|
+
b as slugify,
|
|
118
|
+
S as snakeToPascal,
|
|
119
|
+
E as stringToCamelCase,
|
|
120
|
+
P as windowOpen
|
|
117
121
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
+
import { ScheduleItem } from '../types.d.ts';
|
|
1
2
|
/**
|
|
2
|
-
* Derives
|
|
3
|
-
*
|
|
4
|
-
* @param {
|
|
5
|
-
* @param {string} program.title_code
|
|
3
|
+
* Derives a searchable seriesPrefix from the
|
|
4
|
+
* given seriesPrefix of format [prefix]_[addtional info]
|
|
5
|
+
* @param {string} seriesPrefix
|
|
6
6
|
*
|
|
7
7
|
* @returns {string}
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
title_code: string;
|
|
11
|
-
}): string;
|
|
9
|
+
declare const determineSeriesPrefix: (seriesPrefix: string) => string;
|
|
12
10
|
/**
|
|
13
11
|
* Derives the season number from the title_code of
|
|
14
12
|
* the program
|
|
@@ -17,9 +15,7 @@ export function determineEpisodeNumber(program: {
|
|
|
17
15
|
*
|
|
18
16
|
* @returns {string}
|
|
19
17
|
*/
|
|
20
|
-
|
|
21
|
-
title_code: string;
|
|
22
|
-
}): string;
|
|
18
|
+
declare const determineSeasonNumber: (program: ScheduleItem) => string;
|
|
23
19
|
/**
|
|
24
20
|
*
|
|
25
21
|
* @param {object} program
|
|
@@ -27,17 +23,16 @@ export function determineSeasonNumber(program: {
|
|
|
27
23
|
*
|
|
28
24
|
* @returns {string}
|
|
29
25
|
*/
|
|
30
|
-
|
|
31
|
-
series_prefix: string;
|
|
32
|
-
}): string;
|
|
26
|
+
declare const determineSeasonNumberFromSeriesPrefix: (program: ScheduleItem) => string;
|
|
33
27
|
/**
|
|
34
|
-
* Derives
|
|
35
|
-
*
|
|
36
|
-
* @param {
|
|
28
|
+
* Derives the episode number from the title_code of
|
|
29
|
+
* the program
|
|
30
|
+
* @param {object} program
|
|
31
|
+
* @param {string} program.title_code
|
|
37
32
|
*
|
|
38
33
|
* @returns {string}
|
|
39
34
|
*/
|
|
40
|
-
|
|
35
|
+
declare const determineEpisodeNumber: (program: ScheduleItem) => string;
|
|
41
36
|
/**
|
|
42
37
|
*
|
|
43
38
|
* @param {object} program
|
|
@@ -45,6 +40,5 @@ export function determineSeriesPrefix(seriesPrefix: string): string;
|
|
|
45
40
|
*
|
|
46
41
|
* @returns {string}
|
|
47
42
|
*/
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}): string;
|
|
43
|
+
declare const determineProgramTitle: (program: ScheduleItem) => string;
|
|
44
|
+
export { determineEpisodeNumber, determineSeasonNumber, determineSeasonNumberFromSeriesPrefix, determineSeriesPrefix, determineProgramTitle, };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
const
|
|
1
|
+
const s = (e) => {
|
|
2
2
|
const t = e.indexOf("_");
|
|
3
3
|
return t === -1 ? e : e.slice(0, t);
|
|
4
4
|
}, u = (e) => {
|
|
5
|
+
if (!(e != null && e.title_code)) return "";
|
|
5
6
|
if (e != null && e.season_number) return e.season_number;
|
|
6
7
|
let t;
|
|
7
|
-
for (let
|
|
8
|
-
if (!isNaN(Number.parseInt(e.title_code.charAt(
|
|
9
|
-
t =
|
|
8
|
+
for (let i = 0; i < e.title_code.length; i++)
|
|
9
|
+
if (!isNaN(Number.parseInt(e.title_code.charAt(i), 10))) {
|
|
10
|
+
t = i;
|
|
10
11
|
break;
|
|
11
12
|
}
|
|
12
13
|
let n = e.title_code.slice(t);
|
|
@@ -15,7 +16,7 @@ const i = (e) => {
|
|
|
15
16
|
if (e != null && e.season_number) return e.season_number;
|
|
16
17
|
const t = e.series_prefix.indexOf("_");
|
|
17
18
|
return e.series_prefix.slice(t + 2 - e.series_prefix.length);
|
|
18
|
-
},
|
|
19
|
+
}, c = (e) => e != null && e.episode_number ? e.episode_number : e != null && e.title_code ? e.title_code.slice(-4).substring(2) : "", d = (e) => {
|
|
19
20
|
let t = e.program.length;
|
|
20
21
|
for (let n = e.program.length - 1; n >= e.program.length - 4; n--)
|
|
21
22
|
if (e.program.charAt(n) === "S") {
|
|
@@ -25,9 +26,9 @@ const i = (e) => {
|
|
|
25
26
|
return e.program.slice(0, t).trim();
|
|
26
27
|
};
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
c as determineEpisodeNumber,
|
|
30
|
+
d as determineProgramTitle,
|
|
30
31
|
u as determineSeasonNumber,
|
|
31
32
|
l as determineSeasonNumberFromSeriesPrefix,
|
|
32
|
-
|
|
33
|
+
s as determineSeriesPrefix
|
|
33
34
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
+
import { ScheduleItem } from '../types';
|
|
1
2
|
/**
|
|
2
|
-
* Derives
|
|
3
|
-
*
|
|
4
|
-
* @param {
|
|
5
|
-
* @param {string} program.title_code
|
|
3
|
+
* Derives a searchable seriesPrefix from the
|
|
4
|
+
* given seriesPrefix of format [prefix]_[addtional info]
|
|
5
|
+
* @param {string} seriesPrefix
|
|
6
6
|
*
|
|
7
7
|
* @returns {string}
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
title_code: string;
|
|
11
|
-
}): string;
|
|
9
|
+
declare const determineSeriesPrefix: (seriesPrefix: string) => string;
|
|
12
10
|
/**
|
|
13
11
|
* Derives the season number from the title_code of
|
|
14
12
|
* the program
|
|
@@ -17,9 +15,7 @@ export function determineEpisodeNumber(program: {
|
|
|
17
15
|
*
|
|
18
16
|
* @returns {string}
|
|
19
17
|
*/
|
|
20
|
-
|
|
21
|
-
title_code: string;
|
|
22
|
-
}): string;
|
|
18
|
+
declare const determineSeasonNumber: (program: ScheduleItem) => string;
|
|
23
19
|
/**
|
|
24
20
|
*
|
|
25
21
|
* @param {object} program
|
|
@@ -27,17 +23,16 @@ export function determineSeasonNumber(program: {
|
|
|
27
23
|
*
|
|
28
24
|
* @returns {string}
|
|
29
25
|
*/
|
|
30
|
-
|
|
31
|
-
series_prefix: string;
|
|
32
|
-
}): string;
|
|
26
|
+
declare const determineSeasonNumberFromSeriesPrefix: (program: ScheduleItem) => string;
|
|
33
27
|
/**
|
|
34
|
-
* Derives
|
|
35
|
-
*
|
|
36
|
-
* @param {
|
|
28
|
+
* Derives the episode number from the title_code of
|
|
29
|
+
* the program
|
|
30
|
+
* @param {object} program
|
|
31
|
+
* @param {string} program.title_code
|
|
37
32
|
*
|
|
38
33
|
* @returns {string}
|
|
39
34
|
*/
|
|
40
|
-
|
|
35
|
+
declare const determineEpisodeNumber: (program: ScheduleItem) => string;
|
|
41
36
|
/**
|
|
42
37
|
*
|
|
43
38
|
* @param {object} program
|
|
@@ -45,6 +40,5 @@ export function determineSeriesPrefix(seriesPrefix: string): string;
|
|
|
45
40
|
*
|
|
46
41
|
* @returns {string}
|
|
47
42
|
*/
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}): string;
|
|
43
|
+
declare const determineProgramTitle: (program: ScheduleItem) => string;
|
|
44
|
+
export { determineEpisodeNumber, determineSeasonNumber, determineSeasonNumberFromSeriesPrefix, determineSeriesPrefix, determineProgramTitle, };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
const
|
|
1
|
+
const s = (e) => {
|
|
2
2
|
const t = e.indexOf("_");
|
|
3
3
|
return t === -1 ? e : e.slice(0, t);
|
|
4
4
|
}, u = (e) => {
|
|
5
|
+
if (!(e != null && e.title_code)) return "";
|
|
5
6
|
if (e != null && e.season_number) return e.season_number;
|
|
6
7
|
let t;
|
|
7
|
-
for (let
|
|
8
|
-
if (!isNaN(Number.parseInt(e.title_code.charAt(
|
|
9
|
-
t =
|
|
8
|
+
for (let i = 0; i < e.title_code.length; i++)
|
|
9
|
+
if (!isNaN(Number.parseInt(e.title_code.charAt(i), 10))) {
|
|
10
|
+
t = i;
|
|
10
11
|
break;
|
|
11
12
|
}
|
|
12
13
|
let n = e.title_code.slice(t);
|
|
@@ -15,7 +16,7 @@ const i = (e) => {
|
|
|
15
16
|
if (e != null && e.season_number) return e.season_number;
|
|
16
17
|
const t = e.series_prefix.indexOf("_");
|
|
17
18
|
return e.series_prefix.slice(t + 2 - e.series_prefix.length);
|
|
18
|
-
},
|
|
19
|
+
}, c = (e) => e != null && e.episode_number ? e.episode_number : e != null && e.title_code ? e.title_code.slice(-4).substring(2) : "", d = (e) => {
|
|
19
20
|
let t = e.program.length;
|
|
20
21
|
for (let n = e.program.length - 1; n >= e.program.length - 4; n--)
|
|
21
22
|
if (e.program.charAt(n) === "S") {
|
|
@@ -25,9 +26,9 @@ const i = (e) => {
|
|
|
25
26
|
return e.program.slice(0, t).trim();
|
|
26
27
|
};
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
c as determineEpisodeNumber,
|
|
30
|
+
d as determineProgramTitle,
|
|
30
31
|
u as determineSeasonNumber,
|
|
31
32
|
l as determineSeasonNumberFromSeriesPrefix,
|
|
32
|
-
|
|
33
|
+
s as determineSeriesPrefix
|
|
33
34
|
};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.1.0-alpha.
|
|
2
|
+
"version": "1.1.0-alpha.2",
|
|
3
3
|
"name": "@scrippsproduct/networks-ui-library",
|
|
4
4
|
"description": "React Component Library for use in Scripps Networks external applications",
|
|
5
5
|
"author": {
|
|
@@ -26,7 +26,9 @@
|
|
|
26
26
|
"build-storybook": "storybook build",
|
|
27
27
|
"chromatic": "npx chromatic --project-token=f011f556f41a",
|
|
28
28
|
"create-component": "node scripts/componentFolderBuilder.js",
|
|
29
|
-
"reinstall-deps": "node ./reinstall-deps.js"
|
|
29
|
+
"reinstall-deps": "node ./reinstall-deps.js",
|
|
30
|
+
"login": "npm login",
|
|
31
|
+
"publish": "node scripts/publish-with-otp.mjs"
|
|
30
32
|
},
|
|
31
33
|
"dependencies": {
|
|
32
34
|
"date-fns": "^3.6.0",
|
|
@@ -48,29 +50,30 @@
|
|
|
48
50
|
"@chromatic-com/storybook": "^4.1.1",
|
|
49
51
|
"@scrippsproduct/console-logger": "1.0.11",
|
|
50
52
|
"@scrippsproduct/linter-configs": "0.0.7",
|
|
51
|
-
"@storybook/addon-docs": "^9.1.
|
|
52
|
-
"@storybook/addon-links": "^9.1.
|
|
53
|
-
"@storybook/react-vite": "^9.1.
|
|
53
|
+
"@storybook/addon-docs": "^9.1.17",
|
|
54
|
+
"@storybook/addon-links": "^9.1.17",
|
|
55
|
+
"@storybook/react-vite": "^9.1.17",
|
|
54
56
|
"@types/glob": "^8.1.0",
|
|
55
57
|
"@types/react": "^18.3.3",
|
|
56
58
|
"@types/react-dom": "^18.3.0",
|
|
59
|
+
"@types/video.js": "^7.3.58",
|
|
57
60
|
"@typescript-eslint/eslint-plugin": "^8.46.3",
|
|
58
61
|
"@typescript-eslint/parser": "^8.46.3",
|
|
59
62
|
"@vitejs/plugin-react": "^4.3.1",
|
|
63
|
+
"@vitest/ui": "3.2.4",
|
|
60
64
|
"babel-preset-react-app": "^10.0.1",
|
|
61
65
|
"cross-env": "^7.0.3",
|
|
62
66
|
"eslint": "^9.32.0",
|
|
63
67
|
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
|
|
64
68
|
"eslint-plugin-react-refresh": "^0.4.9",
|
|
65
|
-
"eslint-plugin-storybook": "^9.1.
|
|
66
|
-
"
|
|
69
|
+
"eslint-plugin-storybook": "^9.1.17",
|
|
70
|
+
"jsdom": "^26.1.0",
|
|
71
|
+
"storybook": "^9.1.17",
|
|
67
72
|
"typescript": "^5.8.2",
|
|
68
73
|
"vite": "^6.4.1",
|
|
69
74
|
"vite-plugin-dts": "^4.5.4",
|
|
70
75
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
71
76
|
"vite-tsconfig-paths": "^5.1.4",
|
|
72
|
-
"@vitest/ui": "3.2.4",
|
|
73
|
-
"jsdom": "^26.1.0",
|
|
74
77
|
"vitest": "^3.0.5"
|
|
75
78
|
},
|
|
76
79
|
"eslintConfig": {
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import './assets/Carousel.css';const _ = "_carousel_60lzn_1", l = "_carousel__scroller_60lzn_11", o = {
|
|
2
|
-
carousel: _,
|
|
3
|
-
carousel__scroller: l,
|
|
4
|
-
"carousel-controls": "_carousel-controls_60lzn_38",
|
|
5
|
-
"carousel-controls__btn": "_carousel-controls__btn_60lzn_42",
|
|
6
|
-
"carousel-controls__previous": "_carousel-controls__previous_60lzn_67",
|
|
7
|
-
"carousel-controls__next": "_carousel-controls__next_60lzn_74",
|
|
8
|
-
"carousel-nav": "_carousel-nav_60lzn_86",
|
|
9
|
-
"carousel-nav__list": "_carousel-nav__list_60lzn_90",
|
|
10
|
-
"carousel-nav__item": "_carousel-nav__item_60lzn_99"
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
o as c
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import './assets/ResultsTable.css';const _ = {
|
|
2
|
-
"results-table": "_results-table_azyuq_1",
|
|
3
|
-
"results-table__row": "_results-table__row_azyuq_4",
|
|
4
|
-
"results-table__item": "_results-table__item_azyuq_9",
|
|
5
|
-
"results-table__header": "_results-table__header_azyuq_9",
|
|
6
|
-
"results-table__mobile-label": "_results-table__mobile-label_azyuq_24",
|
|
7
|
-
"results-table__no-results": "_results-table__no-results_azyuq_34",
|
|
8
|
-
"results-table--compact": "_results-table--compact_azyuq_40",
|
|
9
|
-
"results-table__header-row": "_results-table__header-row_azyuq_50",
|
|
10
|
-
"fade-in__wrapper": "_fade-in__wrapper_azyuq_113"
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
_ as s
|
|
14
|
-
};
|
package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { default as NetworkCalloutSlide } from './NetworkCalloutSlide';
|
|
2
|
-
declare namespace _default {
|
|
3
|
-
export let title: string;
|
|
4
|
-
export { NetworkCalloutSlide as component };
|
|
5
|
-
export let tags: string[];
|
|
6
|
-
export let args: {};
|
|
7
|
-
}
|
|
8
|
-
export default _default;
|
|
9
|
-
export function Generic(args: any): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export namespace Generic {
|
|
11
|
-
export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
|
|
12
|
-
export namespace args_1 {
|
|
13
|
-
namespace network {
|
|
14
|
-
let name: string;
|
|
15
|
-
let tagline: string;
|
|
16
|
-
namespace images {
|
|
17
|
-
namespace logo {
|
|
18
|
-
let url: string;
|
|
19
|
-
}
|
|
20
|
-
namespace callout {
|
|
21
|
-
let url_1: string;
|
|
22
|
-
export { url_1 as url };
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export { args_1 as args };
|
|
28
|
-
}
|
package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import { NetworkCalloutSlide as e } from "./NetworkCalloutSlide.js";
|
|
4
|
-
const n = {
|
|
5
|
-
title: "Slide Layouts/Network Callout Slide",
|
|
6
|
-
component: e,
|
|
7
|
-
tags: ["autodocs"],
|
|
8
|
-
args: {}
|
|
9
|
-
}, s = (o) => /* @__PURE__ */ t(e, { ...o }), l = s.bind({});
|
|
10
|
-
l.decorators = [
|
|
11
|
-
(o) => /* @__PURE__ */ t(
|
|
12
|
-
"div",
|
|
13
|
-
{
|
|
14
|
-
style: {
|
|
15
|
-
width: "90%",
|
|
16
|
-
aspectRatio: 1710 / 850,
|
|
17
|
-
backgroundColor: "#F49019"
|
|
18
|
-
},
|
|
19
|
-
className: "slide",
|
|
20
|
-
inert: null,
|
|
21
|
-
children: /* @__PURE__ */ t(o, {})
|
|
22
|
-
}
|
|
23
|
-
)
|
|
24
|
-
];
|
|
25
|
-
l.args = {
|
|
26
|
-
network: {
|
|
27
|
-
name: "ION Mystery",
|
|
28
|
-
tagline: "Television's most Binge-worthy thrillers, docuseries and originals",
|
|
29
|
-
images: {
|
|
30
|
-
logo: {
|
|
31
|
-
url: "https://iontelevision.com/static/global/ION-Mystery_Logo-White.svg"
|
|
32
|
-
},
|
|
33
|
-
callout: {
|
|
34
|
-
url: "https://placehold.co/547x303"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
export {
|
|
40
|
-
l as Generic,
|
|
41
|
-
n as default
|
|
42
|
-
};
|