@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,15 +1,20 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
type BlankErrorBoundaryProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
errorTitle?: string;
|
|
5
|
+
errorMessage?: string;
|
|
6
|
+
};
|
|
7
|
+
type BlankErrorBoundaryState = {
|
|
8
|
+
hasError: boolean;
|
|
9
|
+
errorTitle: string;
|
|
10
|
+
errorMessage: string;
|
|
11
|
+
};
|
|
12
|
+
export declare class BlankErrorBoundary extends React.Component<BlankErrorBoundaryProps, BlankErrorBoundaryState> {
|
|
3
13
|
static getDerivedStateFromError(): {
|
|
4
14
|
hasError: boolean;
|
|
5
15
|
};
|
|
6
|
-
constructor(props:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
errorTitle: any;
|
|
10
|
-
errorMessage: any;
|
|
11
|
-
};
|
|
12
|
-
componentDidCatch(error: any, errorInfo: any): void;
|
|
13
|
-
render(): any;
|
|
16
|
+
constructor(props: BlankErrorBoundaryProps);
|
|
17
|
+
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
18
|
+
render(): null | React.ReactNode;
|
|
14
19
|
}
|
|
15
20
|
export default BlankErrorBoundary;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
class s extends t.Component {
|
|
3
|
+
static getDerivedStateFromError() {
|
|
4
|
+
return {
|
|
5
|
+
hasError: !0
|
|
6
|
+
};
|
|
7
|
+
}
|
|
3
8
|
constructor(r) {
|
|
4
9
|
super(r), this.state = {
|
|
5
10
|
hasError: !1,
|
|
@@ -7,11 +12,6 @@ class s extends t.Component {
|
|
|
7
12
|
errorMessage: r.errorMessage ? r.errorMessage : 'Please try again later. If the problem persists please contact us at <a href="#contact-us">our support page</a>.'
|
|
8
13
|
};
|
|
9
14
|
}
|
|
10
|
-
static getDerivedStateFromError() {
|
|
11
|
-
return {
|
|
12
|
-
hasError: !0
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
15
|
componentDidCatch(r, e) {
|
|
16
16
|
console.error("Caught error: ", r), console.error("Error info: ", e);
|
|
17
17
|
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
type GeneralErrorBoundaryProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
errorTitle?: string;
|
|
5
|
+
errorMessage?: string;
|
|
6
|
+
};
|
|
7
|
+
type GeneralErrorBoundaryState = {
|
|
8
|
+
hasError: boolean;
|
|
9
|
+
errorTitle: string;
|
|
10
|
+
errorMessage: string;
|
|
11
|
+
};
|
|
12
|
+
export declare class GeneralErrorBoundary extends Component<GeneralErrorBoundaryProps, GeneralErrorBoundaryState> {
|
|
3
13
|
static getDerivedStateFromError(): {
|
|
4
14
|
hasError: boolean;
|
|
5
15
|
};
|
|
6
|
-
constructor(props:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
errorTitle: any;
|
|
10
|
-
errorMessage: any;
|
|
11
|
-
};
|
|
12
|
-
componentDidCatch(error: any, errorInfo: any): void;
|
|
13
|
-
render(): any;
|
|
16
|
+
constructor(props: GeneralErrorBoundaryProps);
|
|
17
|
+
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
18
|
+
render(): React.ReactNode;
|
|
14
19
|
}
|
|
15
20
|
export default GeneralErrorBoundary;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import o from "react";
|
|
2
|
+
import { Component as o } from "react";
|
|
3
3
|
import { ErrorHandler as s } from "../components/ErrorHandler/ErrorHandler.js";
|
|
4
|
-
class
|
|
4
|
+
class h extends o {
|
|
5
|
+
static getDerivedStateFromError() {
|
|
6
|
+
return {
|
|
7
|
+
hasError: !0
|
|
8
|
+
};
|
|
9
|
+
}
|
|
5
10
|
constructor(r) {
|
|
6
11
|
super(r), this.state = {
|
|
7
12
|
hasError: !1,
|
|
@@ -9,19 +14,14 @@ class u extends o.Component {
|
|
|
9
14
|
errorMessage: r.errorMessage ? r.errorMessage : 'Please try again later. If the problem persists please contact us at <a href="#contact-us">our support page</a>.'
|
|
10
15
|
};
|
|
11
16
|
}
|
|
12
|
-
static getDerivedStateFromError() {
|
|
13
|
-
return {
|
|
14
|
-
hasError: !0
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
17
|
componentDidCatch(r, e) {
|
|
18
18
|
console.error("Caught error: ", r), console.error("Error info: ", e);
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return this.state.hasError ? /* @__PURE__ */ t(s, {
|
|
21
|
+
return this.state.hasError ? /* @__PURE__ */ t(s, { message: this.state.errorMessage, title: this.state.errorTitle }) : this.props.children;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
h as GeneralErrorBoundary,
|
|
26
|
+
h as default
|
|
27
27
|
};
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { ScheduleItem } from '../types';
|
|
2
|
+
type UseGetScheduleParams = {
|
|
3
|
+
dateStr: string;
|
|
4
|
+
schedEndpoint: string;
|
|
5
|
+
network?: string | null;
|
|
6
|
+
showEpisodeNumber?: boolean;
|
|
7
|
+
showUpcoming?: boolean;
|
|
8
|
+
};
|
|
2
9
|
/**
|
|
3
10
|
*
|
|
4
11
|
* @param {*} param0
|
|
@@ -9,6 +16,7 @@ export default useGetSchedule;
|
|
|
9
16
|
*
|
|
10
17
|
* @returns {Object[]|{ queryStatus: 'no-results' }} - Array of objects or an object with a queryStatus of 'no-results'
|
|
11
18
|
*/
|
|
12
|
-
declare
|
|
13
|
-
queryStatus:
|
|
14
|
-
}
|
|
19
|
+
declare const useGetSchedule: ({ dateStr, schedEndpoint, network, showEpisodeNumber, showUpcoming, }: UseGetScheduleParams) => Promise<ScheduleItem[] | [{
|
|
20
|
+
queryStatus: string;
|
|
21
|
+
}]>;
|
|
22
|
+
export default useGetSchedule;
|
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as p } from "../add-UWUc_nrO.mjs";
|
|
2
2
|
import { f as d } from "../format-YhWt2D8M.mjs";
|
|
3
|
-
import { determineSeasonNumber as S, determineEpisodeNumber as
|
|
4
|
-
import { convert12to24 as
|
|
5
|
-
import { determineIfShowIsOnNow as
|
|
6
|
-
import { g as
|
|
7
|
-
const
|
|
8
|
-
dateStr:
|
|
3
|
+
import { determineSeasonNumber as S, determineEpisodeNumber as _, determineSeasonNumberFromSeriesPrefix as b } from "../utils/series-helpers.js";
|
|
4
|
+
import { convert12to24 as O } from "../utils/helpers.js";
|
|
5
|
+
import { determineIfShowIsOnNow as v } from "../utils/date-helpers.js";
|
|
6
|
+
import { g as x } from "../index-0wieGV50.mjs";
|
|
7
|
+
const P = async ({
|
|
8
|
+
dateStr: o,
|
|
9
9
|
schedEndpoint: h,
|
|
10
|
-
network:
|
|
10
|
+
network: $ = null,
|
|
11
11
|
showEpisodeNumber: u = !1,
|
|
12
|
-
showUpcoming:
|
|
12
|
+
showUpcoming: w = !1
|
|
13
13
|
}) => {
|
|
14
|
-
const c =
|
|
15
|
-
const e = /* @__PURE__ */ new Date(`${
|
|
16
|
-
return s.filter((
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
const c = x("America/New_York", new Date(o)) / 36e5, T = d(/* @__PURE__ */ new Date(`${o}T00:00:00`), "yyyy-MM-dd"), i = d(new Date(p(/* @__PURE__ */ new Date(`${o}T00:00:00`), { days: 1 })), "yyyy-MM-dd"), m = (s) => {
|
|
15
|
+
const e = /* @__PURE__ */ new Date(`${o}T06:00:00-0${c * -1}:00`), r = /* @__PURE__ */ new Date(`${i}T06:00:00-0${c * -1}:00`);
|
|
16
|
+
return s.filter((n) => {
|
|
17
|
+
if (!(n != null && n.start_ts_parse)) return !1;
|
|
18
|
+
const l = (n == null ? void 0 : n.start_ts_parse) * 1e3;
|
|
19
|
+
return l >= e.valueOf() && l < r.valueOf();
|
|
19
20
|
});
|
|
20
|
-
},
|
|
21
|
-
let s = [], e = {
|
|
22
|
-
|
|
21
|
+
}, y = async () => {
|
|
22
|
+
let s = [], e = {
|
|
23
|
+
next: null,
|
|
24
|
+
results: []
|
|
25
|
+
}, r = 0, f = "";
|
|
26
|
+
const n = T, l = i;
|
|
23
27
|
do {
|
|
24
|
-
|
|
28
|
+
f = `${h}/${$}?ordering=start_ts_parse&start_date__range=${n},${l}&limit=100&offset=${r}`;
|
|
25
29
|
try {
|
|
26
|
-
const t = await fetch(
|
|
30
|
+
const t = await fetch(f);
|
|
27
31
|
if (t != null && t.ok)
|
|
28
32
|
e = await t.json(), s = [...s, ...e.results];
|
|
29
33
|
else {
|
|
@@ -36,23 +40,23 @@ const I = async ({
|
|
|
36
40
|
}
|
|
37
41
|
r += 100;
|
|
38
42
|
} while (e.next !== null);
|
|
39
|
-
return s.length === 0 ? void 0 :
|
|
43
|
+
return s.length === 0 ? void 0 : m(s).map((t) => ({
|
|
40
44
|
...t,
|
|
41
|
-
showUpcoming:
|
|
45
|
+
showUpcoming: w
|
|
42
46
|
}));
|
|
43
|
-
},
|
|
47
|
+
}, D = (s) => s.filter((e) => {
|
|
44
48
|
if (e.series_prefix === null && e.title_code === null) return !1;
|
|
45
49
|
const r = /* @__PURE__ */ new Date();
|
|
46
|
-
return !!(e.start_ts_parse * 1e3 > r.valueOf() ||
|
|
50
|
+
return e.start_ts_parse ? !!(e.start_ts_parse * 1e3 > r.valueOf() || v(`${e.start_date_parse}T${O(e.start_time)}`, e.element_length)) : !1;
|
|
47
51
|
}).map((e) => {
|
|
48
52
|
let r = "";
|
|
49
|
-
return e.series_prefix === null ? r = u ? `${S(e)}${
|
|
53
|
+
return e.series_prefix === null ? r = u ? `${S(e)}${_(e)}` : "" : r = u ? `${b(e)}${_(e)}` : "", {
|
|
50
54
|
...e,
|
|
51
55
|
episode_number: r
|
|
52
56
|
};
|
|
53
|
-
}), a = await
|
|
54
|
-
return a === void 0 || a.length === 0 ? [{ queryStatus: "no-results" }] :
|
|
57
|
+
}), a = await y();
|
|
58
|
+
return a === void 0 || a.length === 0 ? [{ queryStatus: "no-results" }] : D(a);
|
|
55
59
|
};
|
|
56
60
|
export {
|
|
57
|
-
|
|
61
|
+
P as default
|
|
58
62
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { ScheduleItem } from '../types';
|
|
2
|
+
type UseGetUpcomingParams = {
|
|
3
|
+
programId: string;
|
|
4
|
+
programType?: 'series' | 'film';
|
|
5
|
+
SCHEDULE_ENDPOINT: string;
|
|
6
|
+
NETWORK: string;
|
|
7
|
+
};
|
|
8
|
+
declare const useGetUpcoming: ({ programId, programType, SCHEDULE_ENDPOINT, NETWORK, }: UseGetUpcomingParams) => Promise<ScheduleItem[]>;
|
|
1
9
|
export default useGetUpcoming;
|
|
2
|
-
declare function useGetUpcoming({ programId, programType, SCHEDULE_ENDPOINT, NETWORK, }: {
|
|
3
|
-
programId: any;
|
|
4
|
-
programType?: string | undefined;
|
|
5
|
-
SCHEDULE_ENDPOINT: any;
|
|
6
|
-
NETWORK: any;
|
|
7
|
-
}): Promise<any>;
|
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
programId: r,
|
|
1
|
+
import { a as l } from "../add-UWUc_nrO.mjs";
|
|
2
|
+
import { f as s } from "../format-YhWt2D8M.mjs";
|
|
3
|
+
const r = /* @__PURE__ */ new Date(), w = async ({
|
|
4
|
+
programId: a,
|
|
6
5
|
programType: o = "series",
|
|
7
|
-
SCHEDULE_ENDPOINT:
|
|
8
|
-
NETWORK:
|
|
9
|
-
}) => {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return await u(async () => await (await c(r, o, i, n)).results.filter((s) => s.start_ts_parse * 1e3 > a.valueOf()), [c, r, o, i, n]);
|
|
25
|
-
};
|
|
6
|
+
SCHEDULE_ENDPOINT: n,
|
|
7
|
+
NETWORK: i
|
|
8
|
+
}) => (await (async (e, c, d, f) => {
|
|
9
|
+
const y = /* @__PURE__ */ new Map([
|
|
10
|
+
["series", `series_prefix__icontains=${e}`],
|
|
11
|
+
["film", `title_code__iexact=${e}`]
|
|
12
|
+
]), _ = `${d}/${f}?ordering=start_ts_parse&${y.get(c)}&start_date__range=${s(r, "yyyy-MM-dd")},${s(l(r, { days: 14 }), "yyyy-MM-dd")}&limit=20`;
|
|
13
|
+
try {
|
|
14
|
+
const t = await fetch(_);
|
|
15
|
+
if (t != null && t.ok)
|
|
16
|
+
return await t.json();
|
|
17
|
+
console.error(`An error was returned from fetch. HTTP Response Code: ', ${t == null ? void 0 : t.status}`);
|
|
18
|
+
} catch (t) {
|
|
19
|
+
console.error("Fetch failed with error:", t);
|
|
20
|
+
}
|
|
21
|
+
return { results: [] };
|
|
22
|
+
})(a, o, n, i)).results.filter((e) => (e == null ? void 0 : e.start_ts_parse) * 1e3 > r.valueOf());
|
|
26
23
|
export {
|
|
27
|
-
|
|
24
|
+
w as default
|
|
28
25
|
};
|
package/dist/icons/Facebook.js
CHANGED
|
@@ -13,17 +13,17 @@ const p = w(({
|
|
|
13
13
|
}, v) => /* @__PURE__ */ o(
|
|
14
14
|
"svg",
|
|
15
15
|
{
|
|
16
|
-
ref: v,
|
|
17
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
-
width: r,
|
|
19
|
-
height: r,
|
|
20
|
-
viewBox: d,
|
|
21
16
|
fill: a,
|
|
17
|
+
height: r,
|
|
18
|
+
ref: v,
|
|
22
19
|
stroke: h,
|
|
23
|
-
strokeWidth: t,
|
|
24
20
|
strokeLinecap: n,
|
|
25
21
|
strokeLinejoin: e,
|
|
22
|
+
strokeWidth: t,
|
|
26
23
|
style: l,
|
|
24
|
+
viewBox: d,
|
|
25
|
+
width: r,
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27
27
|
...u,
|
|
28
28
|
children: /* @__PURE__ */ o("path", { d: "M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z" })
|
|
29
29
|
}
|
package/dist/icons/Tiktok.js
CHANGED
|
@@ -15,19 +15,27 @@ const v = i(({
|
|
|
15
15
|
}, m) => /* @__PURE__ */ r(
|
|
16
16
|
"svg",
|
|
17
17
|
{
|
|
18
|
-
ref: m,
|
|
19
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
20
|
-
width: t,
|
|
21
|
-
height: t,
|
|
22
|
-
viewBox: s,
|
|
23
18
|
fill: d,
|
|
19
|
+
height: t,
|
|
20
|
+
ref: m,
|
|
24
21
|
stroke: a,
|
|
25
|
-
strokeWidth: o,
|
|
26
22
|
strokeLinecap: n,
|
|
27
23
|
strokeLinejoin: e,
|
|
24
|
+
strokeWidth: o,
|
|
28
25
|
style: f,
|
|
26
|
+
viewBox: s,
|
|
27
|
+
width: t,
|
|
28
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
29
29
|
...h,
|
|
30
|
-
children: /* @__PURE__ */ r("g", { id: "off", transform: "translate(-5.031 -32)", children: /* @__PURE__ */ r(
|
|
30
|
+
children: /* @__PURE__ */ r("g", { id: "off", transform: "translate(-5.031 -32)", children: /* @__PURE__ */ r(
|
|
31
|
+
"path",
|
|
32
|
+
{
|
|
33
|
+
d: "M122.882-21.652a3.856,3.856,0,0,0,3.808,3.775v2.553a5.968,5.968,0,0,1-3.766-1.084v4.777c0,6.067-6.748,7.961-9.464,3.61-1.75-2.786-.686-7.7,4.914-7.906v2.69a8.982,8.982,0,0,0-1.3.316,2.168,2.168,0,0,0-1.75,2.553c.378,2.608,5.264,3.39,4.858-1.716v-9.567Z",
|
|
34
|
+
"data-name": "Path 17",
|
|
35
|
+
id: "Path_17",
|
|
36
|
+
transform: "translate(-99.658 60.651)"
|
|
37
|
+
}
|
|
38
|
+
) })
|
|
31
39
|
}
|
|
32
40
|
));
|
|
33
41
|
export {
|
package/dist/icons/Twitter.js
CHANGED
|
@@ -15,19 +15,19 @@ const c = m(({
|
|
|
15
15
|
}, f) => /* @__PURE__ */ r(
|
|
16
16
|
"svg",
|
|
17
17
|
{
|
|
18
|
-
ref: f,
|
|
19
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
20
|
-
width: t,
|
|
21
|
-
height: t,
|
|
22
|
-
viewBox: l,
|
|
23
18
|
fill: s,
|
|
19
|
+
height: t,
|
|
20
|
+
ref: f,
|
|
24
21
|
stroke: o,
|
|
25
|
-
strokeWidth: n,
|
|
26
22
|
strokeLinecap: a,
|
|
27
23
|
strokeLinejoin: e,
|
|
24
|
+
strokeWidth: n,
|
|
28
25
|
style: d,
|
|
26
|
+
viewBox: l,
|
|
27
|
+
width: t,
|
|
28
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
29
29
|
...h,
|
|
30
|
-
children: /* @__PURE__ */ r("g", { transform: "translate(-5.031 -32)", children: /* @__PURE__ */ r("path", { d: "M6.166,7.852h0l-.514-.775L1.56.909H3.321l3.3,4.977.514.775,4.293,6.47H9.669ZM11.43,0l-4.2,5.147L3.871,0H0L5.075,7.784,0,14H1.147L5.585,8.565,9.129,14H13L7.736,5.927,12.577,0Z", transform: "translate(14.031 40)"
|
|
30
|
+
children: /* @__PURE__ */ r("g", { transform: "translate(-5.031 -32)", children: /* @__PURE__ */ r("path", { d: "M6.166,7.852h0l-.514-.775L1.56.909H3.321l3.3,4.977.514.775,4.293,6.47H9.669ZM11.43,0l-4.2,5.147L3.871,0H0L5.075,7.784,0,14H1.147L5.585,8.565,9.129,14H13L7.736,5.927,12.577,0Z", strokeWidth: "0", transform: "translate(14.031 40)" }) })
|
|
31
31
|
}
|
|
32
32
|
));
|
|
33
33
|
export {
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import { ImageCardSlide as P } from "./components/CarouselSlide/slide-layouts/Im
|
|
|
15
15
|
import { ShowSlide as k } from "./components/CarouselSlide/slide-layouts/Show/ShowSlide.js";
|
|
16
16
|
import { TextSlide as G } from "./components/CarouselSlide/slide-layouts/Text/TextSlide.js";
|
|
17
17
|
import { VideoSlide as N } from "./components/CarouselSlide/slide-layouts/Video/VideoSlide.js";
|
|
18
|
-
import { C as E } from "./ChoicesItem-
|
|
18
|
+
import { C as E } from "./ChoicesItem-CT9fXB0I.mjs";
|
|
19
19
|
import { ChoicesList as H } from "./components/ChoicesList/ChoicesList.js";
|
|
20
20
|
import { CreateChoiceList as z } from "./components/CreateChoiceList/CreateChoiceList.js";
|
|
21
21
|
import { CustomDataList as V } from "./components/CustomDataList/CustomDataList.js";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
class a {
|
|
2
|
+
constructor(r = "") {
|
|
3
|
+
this.namespace = "", this.component = "", this.shouldLog = !0, this.backgroundColor = "transparent", this.logLevel = "log", this.LevelColors = {
|
|
4
|
+
log: "#a9a9a9",
|
|
5
|
+
info: "#0061ff",
|
|
6
|
+
warn: "#ff9d00",
|
|
7
|
+
error: "#ff5252"
|
|
8
|
+
}, this.logger = (o, ...t) => {
|
|
9
|
+
if (!this.shouldLog && this.logLevel !== "error" && this.logLevel !== "warn")
|
|
10
|
+
return;
|
|
11
|
+
const n = `color: ${this.LevelColors[this.logLevel]}; background-color: ${this.backgroundColor};`;
|
|
12
|
+
console[this.logLevel](o, "color: #00d68b; font-weight: bold;", n, ...t);
|
|
13
|
+
}, this.log = (o, ...t) => {
|
|
14
|
+
this.logLevel = "log", this.logger(this.formatMessage(o), ...t);
|
|
15
|
+
}, this.info = (o, ...t) => {
|
|
16
|
+
this.logLevel = "info", this.logger(this.formatMessage(o), ...t);
|
|
17
|
+
}, this.error = (o, ...t) => {
|
|
18
|
+
this.logLevel = "error", this.logger(this.formatMessage(o), ...t);
|
|
19
|
+
}, this.warn = (o, ...t) => {
|
|
20
|
+
this.logLevel = "warn", this.logger(this.formatMessage(o), ...t);
|
|
21
|
+
}, this.setNamespace = (o) => {
|
|
22
|
+
this.namespace = o;
|
|
23
|
+
}, this.getNamespace = () => this.namespace, this.clearNamespace = () => {
|
|
24
|
+
this.namespace = "";
|
|
25
|
+
}, this.setComponent = (o) => {
|
|
26
|
+
this.component = o;
|
|
27
|
+
}, this.getComponent = () => this.component, this.clearComponent = () => {
|
|
28
|
+
this.component = "";
|
|
29
|
+
}, this.setShouldLog = (o) => {
|
|
30
|
+
this.shouldLog = o;
|
|
31
|
+
}, this.getShouldLog = () => this.shouldLog, this.setBackgroundColor = (o) => {
|
|
32
|
+
this.backgroundColor = o;
|
|
33
|
+
}, this.getBackgroundColor = () => this.backgroundColor, this.clearBackgroundColor = () => {
|
|
34
|
+
this.backgroundColor = "transparent";
|
|
35
|
+
}, this.formatMessage = (o) => {
|
|
36
|
+
let t = o;
|
|
37
|
+
return this.namespace ? t = `%c[${this.namespace}]${this.component ? ": " + this.component + " : " : " "}%c${o}` : t = `%c${this.component ? ": " + this.component + " : " : ""}%c${o}`, t;
|
|
38
|
+
}, this.namespace = r;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
class s {
|
|
42
|
+
constructor() {
|
|
43
|
+
}
|
|
44
|
+
static getInstance() {
|
|
45
|
+
return s.instance || (s.instance = new a()), s.instance;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const e = s.getInstance(), g = {
|
|
49
|
+
log: e.log,
|
|
50
|
+
info: e.info,
|
|
51
|
+
warn: e.warn,
|
|
52
|
+
error: e.error,
|
|
53
|
+
setBackgroundColor: e.setBackgroundColor,
|
|
54
|
+
getBackgroundColor: e.getBackgroundColor,
|
|
55
|
+
clearBackgroundColor: e.clearBackgroundColor,
|
|
56
|
+
setComponent: e.setComponent,
|
|
57
|
+
getComponent: e.getComponent,
|
|
58
|
+
clearComponent: e.clearComponent,
|
|
59
|
+
setNamespace: e.setNamespace,
|
|
60
|
+
getNamespace: e.getNamespace,
|
|
61
|
+
clearNamespace: e.clearNamespace,
|
|
62
|
+
setShouldLog: e.setShouldLog,
|
|
63
|
+
getShouldLog: e.getShouldLog
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
g as l
|
|
67
|
+
};
|
package/dist/settings.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { lazy as o } from "react";
|
|
2
|
-
const
|
|
2
|
+
const i = /* @__PURE__ */ new Map([
|
|
3
3
|
["Figure", o(() => import("./components/CarouselSlide/slide-layouts/Figure/index.js"))],
|
|
4
4
|
["ImageCard", o(() => import("./components/CarouselSlide/slide-layouts/ImageCard/index.js"))],
|
|
5
5
|
["NetworkCalloutSlide", o(() => import("./components/CarouselSlide/slide-layouts/NetworkCallout/index.js"))],
|
|
6
6
|
["ShowSlide", o(() => import("./components/CarouselSlide/slide-layouts/Show/index.js"))],
|
|
7
7
|
["TextSlide", o(() => import("./components/CarouselSlide/slide-layouts/Text/index.js"))],
|
|
8
|
-
["TwoColumnSlide", o(() => import("./components/CarouselSlide/slide-layouts/TwoColumn/index.js"))]
|
|
9
|
-
|
|
8
|
+
["TwoColumnSlide", o(() => import("./components/CarouselSlide/slide-layouts/TwoColumn/index.js"))],
|
|
9
|
+
["VideoSlide", o(() => import("./components/CarouselSlide/slide-layouts/Video/index.js"))]
|
|
10
|
+
]), r = /* @__PURE__ */ new Map([
|
|
10
11
|
["ImageOnlyHero", o(() => import("./components/PageHero/page-hero-layouts/ImageOnly/index.js"))],
|
|
11
12
|
["IONShowHero", o(() => import("./components/PageHero/page-hero-layouts/IONShow/index.js"))],
|
|
12
13
|
["ContentHero", o(() => import("./components/PageHero/page-hero-layouts/ContentHero/index.js"))]
|
|
@@ -25,6 +26,6 @@ const r = /* @__PURE__ */ new Map([
|
|
|
25
26
|
]);
|
|
26
27
|
export {
|
|
27
28
|
e as blockLayoutsMap,
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
r as pageHeroLayoutsMap,
|
|
30
|
+
i as slideLayoutsMap
|
|
30
31
|
};
|
package/dist/utils/Redirect.d.ts
CHANGED
package/dist/utils/analytics.js
CHANGED
|
@@ -462,7 +462,7 @@ const ie = /* @__PURE__ */ $(ae), ue = (g, h = "local", y) => {
|
|
|
462
462
|
scripps_brand: g,
|
|
463
463
|
scripps_platform: "Web"
|
|
464
464
|
}
|
|
465
|
-
}) : console.
|
|
465
|
+
}) : console.warn("** Note: Google Analytics is only initialized in staging and production environments. **");
|
|
466
466
|
};
|
|
467
467
|
export {
|
|
468
468
|
ue as initializeAnalytics
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* creates an array containing dates for 2 weeks
|
|
3
|
-
* starting from todays date
|
|
3
|
+
* starting from todays date or a provided startDate
|
|
4
4
|
*
|
|
5
5
|
* dates have five attributes:
|
|
6
6
|
* dayStr (string format EEE)
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
* fullDateStr (string format yyyy-MM-dd)
|
|
10
10
|
* date (a date object)
|
|
11
11
|
*
|
|
12
|
+
* @param {Date} [startDate] - Optional start date. If not provided, uses current Eastern Programming Date
|
|
12
13
|
* @returns {Array} weeks
|
|
13
14
|
*/
|
|
14
|
-
export function create2WeeksList(): any[];
|
|
15
|
+
export function create2WeeksList(startDate?: Date): any[];
|
|
15
16
|
/**
|
|
16
17
|
* Checks the current time against the airdate and length of a show
|
|
17
18
|
* to determine if the show is currently on the air
|
|
@@ -4,42 +4,42 @@ import { s as w } from "../sub-CoUmnfhv.mjs";
|
|
|
4
4
|
import { convert12to24 as h } from "./helpers.js";
|
|
5
5
|
import { g } from "../index-0wieGV50.mjs";
|
|
6
6
|
const S = () => {
|
|
7
|
-
const
|
|
8
|
-
let e =
|
|
7
|
+
const r = /* @__PURE__ */ new Date();
|
|
8
|
+
let e = r.toLocaleString("en-US", { timeZone: "America/New_York" }), [n, t] = e.split(",");
|
|
9
9
|
const o = Number.parseInt(t.split(":")[0], 10);
|
|
10
10
|
if (t.includes("AM") && (o < 6 || o === 12)) {
|
|
11
|
-
e = new Date(w(
|
|
11
|
+
e = new Date(w(r, { days: 1 })).toLocaleString("en-US", { timeZone: "America/New_York" });
|
|
12
12
|
const c = e.split(",");
|
|
13
|
-
|
|
13
|
+
n = c[0], t = c[1];
|
|
14
14
|
}
|
|
15
|
-
const [s, a, m] =
|
|
15
|
+
const [s, a, m] = n.split("/"), [l, p] = t.trim().split(" "), [y, d] = l.split(":"), f = h(`${y}:${d} ${p}`);
|
|
16
16
|
return i(/* @__PURE__ */ new Date(`${m}-${s.length < 2 ? "0" + s : s}-${a.length < 2 ? "0" + a : a}T${f}:00`), "yyyy-MM-dd");
|
|
17
|
-
}, N = () => {
|
|
18
|
-
const
|
|
19
|
-
let
|
|
20
|
-
for (let
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
dayStr:
|
|
24
|
-
monthStr: i(
|
|
25
|
-
dateStr: i(
|
|
26
|
-
fullDateStr: i(
|
|
27
|
-
date:
|
|
17
|
+
}, N = (r) => {
|
|
18
|
+
const e = r || /* @__PURE__ */ new Date(`${S()}T00:00:00`);
|
|
19
|
+
let n = [];
|
|
20
|
+
for (let t = 0; t <= 13; ++t) {
|
|
21
|
+
const o = u(e, { days: t });
|
|
22
|
+
n.push({
|
|
23
|
+
dayStr: t === 0 ? "Today" : i(o, "EEE"),
|
|
24
|
+
monthStr: i(o, "MMM"),
|
|
25
|
+
dateStr: i(o, "d"),
|
|
26
|
+
fullDateStr: i(o, "yyyy-MM-dd"),
|
|
27
|
+
date: o
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
return
|
|
31
|
-
}, E = (
|
|
32
|
-
if (!Array.isArray(
|
|
30
|
+
return n;
|
|
31
|
+
}, E = (r, e) => {
|
|
32
|
+
if (!Array.isArray(r))
|
|
33
33
|
throw new TypeError("First argument must be an array");
|
|
34
34
|
if (typeof e != "number" || e <= 0)
|
|
35
35
|
throw new TypeError("Second argument must be a positive number");
|
|
36
|
-
const
|
|
37
|
-
for (let t = 0; t <
|
|
38
|
-
|
|
39
|
-
return
|
|
40
|
-
}, T = (
|
|
41
|
-
const
|
|
42
|
-
return
|
|
36
|
+
const n = [];
|
|
37
|
+
for (let t = 0; t < r.length; t += e)
|
|
38
|
+
n.push(r.slice(t, t + e));
|
|
39
|
+
return n;
|
|
40
|
+
}, T = (r, e) => {
|
|
41
|
+
const n = /* @__PURE__ */ new Date(), t = g("America/New_York", new Date(r)) / 36e5, o = /* @__PURE__ */ new Date(`${r}:00-0${t * -1}:00`), [s, a] = e.split(":"), m = Number.parseInt(s, 10) * 60 + Number.parseInt(a, 10);
|
|
42
|
+
return n >= o && n <= u(o, { minutes: m });
|
|
43
43
|
};
|
|
44
44
|
export {
|
|
45
45
|
E as chunkArray,
|
package/dist/utils/events.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
function u(e, n) {
|
|
2
|
-
document.addEventListener(e, n);
|
|
2
|
+
typeof document < "u" && document.addEventListener(e, n);
|
|
3
3
|
}
|
|
4
|
-
function
|
|
5
|
-
document.removeEventListener(e, n);
|
|
4
|
+
function d(e, n) {
|
|
5
|
+
typeof document < "u" && document.removeEventListener(e, n);
|
|
6
6
|
}
|
|
7
7
|
function i(e, n) {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
if (typeof document < "u") {
|
|
9
|
+
const t = new CustomEvent(e, { detail: n });
|
|
10
|
+
document.dispatchEvent(t);
|
|
11
|
+
}
|
|
10
12
|
}
|
|
11
13
|
export {
|
|
12
14
|
i as publish,
|
|
13
15
|
u as subscribe,
|
|
14
|
-
|
|
16
|
+
d as unsubscribe
|
|
15
17
|
};
|