@scrippsproduct/networks-ui-library 1.1.0-alpha.0 → 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.
Files changed (361) hide show
  1. package/dist/Carousel.module-CNJzZW2-.mjs +14 -0
  2. package/dist/{ChoicesItem-CGIr6Qga.mjs → ChoicesItem-CT9fXB0I.mjs} +22 -23
  3. package/dist/PageHero.module-BM0IV1P5.mjs +8 -0
  4. package/dist/ResultsTable.module-1zxhXaem.mjs +14 -0
  5. package/dist/{SocialShareButton-BXGVUD-z.mjs → SocialShareButton-BMhRS9Qr.mjs} +12 -7
  6. package/dist/assets/ActionButton.css +1 -1
  7. package/dist/assets/AdBlock.css +1 -1
  8. package/dist/assets/AirDateFormatter.css +1 -1
  9. package/dist/assets/AnchorTag.css +1 -1
  10. package/dist/assets/BasicGridModule.css +1 -1
  11. package/dist/assets/Button.css +1 -1
  12. package/dist/assets/Carousel.css +1 -1
  13. package/dist/assets/CarouselSlide.css +1 -1
  14. package/dist/assets/ChannelSearch.css +1 -1
  15. package/dist/assets/ChoicesItem.css +1 -1
  16. package/dist/assets/ContentHero.css +1 -1
  17. package/dist/assets/CtaBlock.css +1 -1
  18. package/dist/assets/CustomDataList.css +1 -1
  19. package/dist/assets/DateNavigation.css +1 -1
  20. package/dist/assets/DeviceAndPlatformLists.css +1 -1
  21. package/dist/assets/Figure.css +1 -1
  22. package/dist/assets/Figure2.css +1 -1
  23. package/dist/assets/FindUs.css +1 -1
  24. package/dist/assets/GradientButton.css +1 -1
  25. package/dist/assets/ImageCard.css +1 -1
  26. package/dist/assets/InlineNavigation.css +1 -1
  27. package/dist/assets/LogoListItem.css +1 -1
  28. package/dist/assets/ModalContainer.css +1 -1
  29. package/dist/assets/PageHero.css +1 -1
  30. package/dist/assets/ProgramAirdate.css +1 -1
  31. package/dist/assets/PromotionBlock.css +1 -1
  32. package/dist/assets/ResultsTable.css +1 -1
  33. package/dist/assets/ScheduleLayout.css +1 -0
  34. package/dist/assets/ScheduleList.css +1 -1
  35. package/dist/assets/ShowAboutLayout.css +1 -1
  36. package/dist/assets/ShowSlide.css +1 -1
  37. package/dist/assets/SocialLinks.css +1 -1
  38. package/dist/assets/TextSlide.css +1 -1
  39. package/dist/assets/TwoColumnSlide.css +1 -1
  40. package/dist/assets/UpcomingList.css +1 -1
  41. package/dist/components/ActionButton/ActionButton.d.ts +20 -1
  42. package/dist/components/ActionButton/ActionButton.js +36 -36
  43. package/dist/components/ActionButton/index.d.ts +2 -1
  44. package/dist/components/AdBlock/AdBlock.d.ts +20 -1
  45. package/dist/components/AdBlock/AdBlock.js +118 -83
  46. package/dist/components/AdBlock/index.d.ts +2 -1
  47. package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.d.ts +7 -1
  48. package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.js +17 -12
  49. package/dist/components/AdjustableTwoColumnGrid/index.d.ts +2 -1
  50. package/dist/components/AirDateFormatter/AirDateFormatter.d.ts +5 -4
  51. package/dist/components/AirDateFormatter/AirDateFormatter.js +21 -22
  52. package/dist/components/AirDateFormatter/index.d.ts +2 -1
  53. package/dist/components/AnchorTag/AnchorTag.d.ts +10 -1
  54. package/dist/components/AnchorTag/AnchorTag.js +22 -23
  55. package/dist/components/AnchorTag/index.d.ts +2 -1
  56. package/dist/components/BCVideoPlayer/BCVideoPlayer.d.ts +19 -12
  57. package/dist/components/BCVideoPlayer/BCVideoPlayer.js +39 -37
  58. package/dist/components/BCVideoPlayer/index.d.ts +2 -1
  59. package/dist/components/BasicGridModule/BasicGridModule.d.ts +19 -17
  60. package/dist/components/BasicGridModule/BasicGridModule.js +57 -51
  61. package/dist/components/BasicGridModule/index.d.ts +2 -1
  62. package/dist/components/Button/Button.d.ts +18 -17
  63. package/dist/components/Button/Button.js +31 -32
  64. package/dist/components/Button/index.d.ts +2 -1
  65. package/dist/components/ButtonAnchor/ButtonAnchor.d.ts +5 -5
  66. package/dist/components/ButtonAnchor/ButtonAnchor.js +7 -5
  67. package/dist/components/ButtonAnchor/index.d.ts +2 -1
  68. package/dist/components/Carousel/Carousel.d.ts +7 -24
  69. package/dist/components/Carousel/Carousel.js +113 -113
  70. package/dist/components/Carousel/CarouselUtils.class.d.ts +16 -28
  71. package/dist/components/Carousel/CarouselUtils.class.js +85 -55
  72. package/dist/components/Carousel/index.d.ts +2 -1
  73. package/dist/components/Carousel/navigations/Pagination.js +12 -10
  74. package/dist/components/CarouselSlide/CarouselSlide.d.ts +8 -6
  75. package/dist/components/CarouselSlide/CarouselSlide.js +25 -23
  76. package/dist/components/CarouselSlide/index.d.ts +2 -1
  77. package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.d.ts +1 -1
  78. package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.js +3 -4
  79. package/dist/components/CarouselSlide/slide-layouts/Empty/index.d.ts +2 -1
  80. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.d.ts +2 -2
  81. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.js +10 -11
  82. package/dist/components/CarouselSlide/slide-layouts/Figure/index.d.ts +2 -1
  83. package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.d.ts +1 -1
  84. package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.js +3 -4
  85. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.d.ts +18 -16
  86. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.js +49 -34
  87. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.d.ts +2 -2
  88. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.js +11 -12
  89. package/dist/components/CarouselSlide/slide-layouts/Text/index.d.ts +2 -1
  90. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.d.ts +5 -4
  91. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +10 -11
  92. package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.d.ts +8 -1
  93. package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.js +19 -15
  94. package/dist/components/CastInfoLayout/CastInfoLayout.d.ts +16 -1
  95. package/dist/components/CastInfoLayout/CastInfoLayout.js +31 -21
  96. package/dist/components/ChannelSearch/ChannelSearch.d.ts +18 -16
  97. package/dist/components/ChannelSearch/ChannelSearch.js +80 -63
  98. package/dist/components/ChannelSearch/index.d.ts +2 -1
  99. package/dist/components/ChoicesItem/ChoicesItem.d.ts +7 -4
  100. package/dist/components/ChoicesItem/ChoicesItem.js +3 -4
  101. package/dist/components/ChoicesItem/index.d.ts +2 -1
  102. package/dist/components/ChoicesItem/index.js +1 -1
  103. package/dist/components/ChoicesList/ChoicesList.d.ts +4 -3
  104. package/dist/components/ChoicesList/ChoicesList.js +3 -4
  105. package/dist/components/ChoicesList/index.d.ts +2 -1
  106. package/dist/components/Concat/Concat.d.ts +4 -3
  107. package/dist/components/Concat/Concat.js +5 -5
  108. package/dist/components/Concat/index.d.ts +2 -1
  109. package/dist/components/CreateChoiceList/CreateChoiceList.d.ts +7 -5
  110. package/dist/components/CreateChoiceList/CreateChoiceList.js +38 -9
  111. package/dist/components/CreateChoiceList/index.d.ts +2 -1
  112. package/dist/components/CtaBlock/CtaBlock.d.ts +13 -15
  113. package/dist/components/CtaBlock/CtaBlock.js +23 -22
  114. package/dist/components/CtaBlock/index.d.ts +2 -1
  115. package/dist/components/CustomDataList/CustomDataList.d.ts +12 -10
  116. package/dist/components/CustomDataList/CustomDataList.js +200 -174
  117. package/dist/components/CustomDataList/index.d.ts +2 -1
  118. package/dist/components/CustomSelect/CustomSelect.d.ts +16 -13
  119. package/dist/components/CustomSelect/CustomSelect.js +224 -154
  120. package/dist/components/CustomSelect/index.d.ts +2 -1
  121. package/dist/components/DateNavigation/DateNavigation.d.ts +1 -4
  122. package/dist/components/DateNavigation/DateNavigation.js +125 -82
  123. package/dist/components/DateNavigation/index.d.ts +2 -1
  124. package/dist/components/DatePicker/index.d.ts +2 -1
  125. package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.d.ts +14 -4
  126. package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.js +40 -33
  127. package/dist/components/DeviceAndPlatformLists/index.d.ts +2 -1
  128. package/dist/components/DrawerNavigation/DrawerNavigation.d.ts +21 -1
  129. package/dist/components/DrawerNavigation/DrawerNavigation.js +75 -56
  130. package/dist/components/DrawerNavigation/index.d.ts +2 -1
  131. package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.d.ts +6 -5
  132. package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.js +18 -14
  133. package/dist/components/EqualSizeFlexRow/index.d.ts +2 -1
  134. package/dist/components/EqualSizeGrid/EqualSizeGrid.d.ts +7 -6
  135. package/dist/components/EqualSizeGrid/EqualSizeGrid.js +17 -12
  136. package/dist/components/EqualSizeGrid/index.d.ts +2 -1
  137. package/dist/components/ErrorHandler/ErrorHandler.d.ts +5 -4
  138. package/dist/components/ErrorHandler/ErrorHandler.js +3 -4
  139. package/dist/components/ErrorHandler/index.d.ts +2 -1
  140. package/dist/components/FeaturedList/FeaturedList.d.ts +8 -6
  141. package/dist/components/FeaturedList/FeaturedList.js +44 -36
  142. package/dist/components/FeaturedList/index.d.ts +2 -1
  143. package/dist/components/Figure/Figure.d.ts +5 -4
  144. package/dist/components/Figure/Figure.js +8 -9
  145. package/dist/components/Figure/index.d.ts +2 -1
  146. package/dist/components/FindUs/FindUs.d.ts +24 -1
  147. package/dist/components/FindUs/FindUs.js +70 -63
  148. package/dist/components/FindUs/index.d.ts +2 -1
  149. package/dist/components/FooterNavigation/FooterNavigation.d.ts +9 -3
  150. package/dist/components/FooterNavigation/FooterNavigation.js +10 -11
  151. package/dist/components/FooterNavigation/index.d.ts +2 -1
  152. package/dist/components/GenericList/GenericList.d.ts +6 -5
  153. package/dist/components/GenericList/GenericList.js +13 -14
  154. package/dist/components/GenericList/index.d.ts +2 -1
  155. package/dist/components/GetAirdateWrapper/GetAirdateWrapper.d.ts +9 -8
  156. package/dist/components/GetAirdateWrapper/GetAirdateWrapper.js +46 -30
  157. package/dist/components/GetAirdateWrapper/index.d.ts +2 -1
  158. package/dist/components/GradientButton/GradientButton.d.ts +15 -14
  159. package/dist/components/GradientButton/GradientButton.js +37 -40
  160. package/dist/components/GradientButton/index.d.ts +2 -1
  161. package/dist/components/GridList/GridList.d.ts +6 -5
  162. package/dist/components/GridList/GridList.js +14 -10
  163. package/dist/components/GridList/index.d.ts +2 -1
  164. package/dist/components/ImageCard/ImageCard.d.ts +27 -1
  165. package/dist/components/ImageCard/ImageCard.js +59 -58
  166. package/dist/components/ImageCard/ImageCardCore.d.ts +6 -2
  167. package/dist/components/ImageCard/ImageCardCore.js +114 -89
  168. package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.d.ts +11 -14
  169. package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.js +25 -18
  170. package/dist/components/InfoPanel/InfoPanel.d.ts +10 -8
  171. package/dist/components/InfoPanel/InfoPanel.js +2 -2
  172. package/dist/components/InfoPanel/index.d.ts +2 -1
  173. package/dist/components/InlineNavigation/InlineNavigation.d.ts +7 -5
  174. package/dist/components/InlineNavigation/InlineNavigation.js +13 -10
  175. package/dist/components/Input/Input.d.ts +10 -9
  176. package/dist/components/Input/Input.js +47 -40
  177. package/dist/components/Input/index.d.ts +2 -1
  178. package/dist/components/InstructionsList/InstructionsList.d.ts +5 -4
  179. package/dist/components/InstructionsList/InstructionsList.js +20 -10
  180. package/dist/components/InstructionsList/index.d.ts +2 -1
  181. package/dist/components/Loading/Loading.d.ts +8 -7
  182. package/dist/components/Loading/Loading.js +25 -20
  183. package/dist/components/Loading/index.d.ts +2 -1
  184. package/dist/components/LoadingV2/LoadingV2.d.ts +7 -6
  185. package/dist/components/LoadingV2/LoadingV2.js +31 -21
  186. package/dist/components/LoadingV2/index.d.ts +2 -1
  187. package/dist/components/LogoListItem/LogoListItem.d.ts +7 -6
  188. package/dist/components/LogoListItem/LogoListItem.js +34 -17
  189. package/dist/components/LogoListItem/index.d.ts +2 -1
  190. package/dist/components/LogoNavigation/LogoNavigation.d.ts +13 -4
  191. package/dist/components/LogoNavigation/LogoNavigation.js +23 -18
  192. package/dist/components/LogoNavigation/index.d.ts +2 -1
  193. package/dist/components/ModalContainer/ModalContainer.d.ts +8 -8
  194. package/dist/components/ModalContainer/ModalContainer.js +84 -72
  195. package/dist/components/ModalContainer/index.d.ts +2 -1
  196. package/dist/components/MultiLayeredFigure/MultiLayeredFigure.d.ts +6 -5
  197. package/dist/components/MultiLayeredFigure/MultiLayeredFigure.js +13 -10
  198. package/dist/components/MultiLayeredFigure/index.d.ts +2 -1
  199. package/dist/components/NavList/NavList.d.ts +9 -7
  200. package/dist/components/NavList/NavList.js +56 -20
  201. package/dist/components/NavList/index.d.ts +2 -1
  202. package/dist/components/Overlay/Overlay.d.ts +5 -5
  203. package/dist/components/Overlay/Overlay.js +8 -5
  204. package/dist/components/PageHero/PageHero.d.ts +6 -5
  205. package/dist/components/PageHero/PageHero.js +29 -16
  206. package/dist/components/PageHero/index.d.ts +2 -1
  207. package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.d.ts +2 -13
  208. package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.js +17 -10
  209. package/dist/components/PageHero/page-hero-layouts/ContentHero/index.d.ts +2 -1
  210. package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.d.ts +7 -5
  211. package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +108 -42
  212. package/dist/components/PageHero/page-hero-layouts/IONShow/index.d.ts +2 -1
  213. package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.d.ts +2 -12
  214. package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.js +13 -7
  215. package/dist/components/PageHero/page-hero-layouts/ImageOnly/index.d.ts +2 -1
  216. package/dist/components/PageHero/page-hero-layouts/page-hero.d.js +1 -0
  217. package/dist/components/ProgramAirdate/ProgramAirdate.d.ts +14 -10
  218. package/dist/components/ProgramAirdate/ProgramAirdate.js +72 -67
  219. package/dist/components/ProgramAirdate/index.d.ts +2 -1
  220. package/dist/components/PromotionBlock/PromotionBlock.d.ts +11 -4
  221. package/dist/components/PromotionBlock/PromotionBlock.js +36 -26
  222. package/dist/components/PromotionBlock/index.d.ts +2 -1
  223. package/dist/components/PromotionsRowBlock/PromotionsRowBlock.d.ts +5 -4
  224. package/dist/components/PromotionsRowBlock/PromotionsRowBlock.js +8 -6
  225. package/dist/components/PromotionsRowBlock/index.d.ts +2 -1
  226. package/dist/components/PromotionsRowModule/PromotionsRowModule.d.ts +25 -5
  227. package/dist/components/PromotionsRowModule/PromotionsRowModule.js +48 -48
  228. package/dist/components/PromotionsRowModule/index.d.ts +2 -1
  229. package/dist/components/RescanInstructions/RescanInstructions.d.ts +3 -3
  230. package/dist/components/RescanInstructions/RescanInstructions.js +29 -18
  231. package/dist/components/RescanInstructions/index.d.ts +2 -1
  232. package/dist/components/ResponsiveImage/ResponsiveImage.d.ts +13 -12
  233. package/dist/components/ResponsiveImage/ResponsiveImage.js +16 -20
  234. package/dist/components/ResponsiveImage/index.d.ts +2 -1
  235. package/dist/components/ResultsTable/ResultsTable.d.ts +10 -6
  236. package/dist/components/ResultsTable/ResultsTable.js +21 -16
  237. package/dist/components/ResultsTable/index.d.ts +2 -1
  238. package/dist/components/ResultsTableBody/ResultsTableBody.d.ts +9 -5
  239. package/dist/components/ResultsTableBody/ResultsTableBody.js +21 -16
  240. package/dist/components/ResultsTableBody/index.d.ts +2 -1
  241. package/dist/components/ResultsTableHeader/ResultsTableHeader.d.ts +7 -3
  242. package/dist/components/ResultsTableHeader/ResultsTableHeader.js +4 -5
  243. package/dist/components/ResultsTableHeader/index.d.ts +2 -1
  244. package/dist/components/ScheduleLayout/ScheduleContext.d.ts +25 -0
  245. package/dist/components/ScheduleLayout/ScheduleContext.js +33 -0
  246. package/dist/components/ScheduleLayout/ScheduleLayout.d.ts +15 -5
  247. package/dist/components/ScheduleLayout/ScheduleLayout.js +76 -24
  248. package/dist/components/ScheduleLayout/index.d.ts +2 -1
  249. package/dist/components/ScheduleLayout/useScheduleContext.d.ts +14 -0
  250. package/dist/components/ScheduleLayout/useScheduleContext.js +12 -0
  251. package/dist/components/ScheduleList/ScheduleList.d.ts +5 -5
  252. package/dist/components/ScheduleList/ScheduleList.js +153 -60
  253. package/dist/components/ScheduleList/index.d.ts +2 -1
  254. package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.d.ts +6 -4
  255. package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.js +27 -16
  256. package/dist/components/ScheduleList/schedule-list-items/MovieItem.d.ts +9 -7
  257. package/dist/components/ScheduleList/schedule-list-items/MovieItem.js +46 -34
  258. package/dist/components/ScheduleList/schedule-list-items/SeriesItem.d.ts +9 -7
  259. package/dist/components/ScheduleList/schedule-list-items/SeriesItem.js +53 -37
  260. package/dist/components/ScheduleList/schedule-list-items/SportsItem.d.ts +9 -7
  261. package/dist/components/ScheduleList/schedule-list-items/SportsItem.js +46 -34
  262. package/dist/components/SectionedContent/SectionedContent.d.ts +11 -3
  263. package/dist/components/SectionedContent/SectionedContent.js +14 -15
  264. package/dist/components/SectionedContent/index.d.ts +2 -1
  265. package/dist/components/Select/Select.d.ts +15 -11
  266. package/dist/components/Select/Select.js +21 -21
  267. package/dist/components/Select/index.d.ts +2 -1
  268. package/dist/components/ShowAboutContent/ShowAboutContent.d.ts +10 -8
  269. package/dist/components/ShowAboutContent/ShowAboutContent.js +27 -28
  270. package/dist/components/ShowAboutContent/index.d.ts +2 -1
  271. package/dist/components/ShowAboutLayout/ShowAboutLayout.d.ts +10 -8
  272. package/dist/components/ShowAboutLayout/ShowAboutLayout.js +91 -42
  273. package/dist/components/ShowAboutLayout/index.d.ts +2 -1
  274. package/dist/components/SocialLinks/SocialLinks.d.ts +15 -9
  275. package/dist/components/SocialLinks/SocialLinks.js +192 -138
  276. package/dist/components/SocialShareBlock/SocialShareBlock.d.ts +9 -8
  277. package/dist/components/SocialShareBlock/SocialShareBlock.js +20 -22
  278. package/dist/components/SocialShareBlock/index.d.ts +2 -1
  279. package/dist/components/SocialShareButton/SocialShareButton.d.ts +8 -7
  280. package/dist/components/SocialShareButton/SocialShareButton.js +3 -4
  281. package/dist/components/SocialShareButton/index.d.ts +2 -1
  282. package/dist/components/SocialShareButton/index.js +1 -1
  283. package/dist/components/StringList/StringList.d.ts +6 -5
  284. package/dist/components/StringList/StringList.js +16 -12
  285. package/dist/components/StringList/index.d.ts +2 -1
  286. package/dist/components/TabContent/TabContent.d.ts +5 -4
  287. package/dist/components/TabContent/TabContent.js +9 -7
  288. package/dist/components/TabContent/index.d.ts +2 -1
  289. package/dist/components/TabNavigation/TabNavigation.d.ts +7 -5
  290. package/dist/components/TabNavigation/TabNavigation.js +58 -53
  291. package/dist/components/TabNavigation/index.d.ts +2 -1
  292. package/dist/components/TabbedContent/TabbedContent.d.ts +20 -4
  293. package/dist/components/TabbedContent/TabbedContent.js +24 -8
  294. package/dist/components/TabbedContent/index.d.ts +2 -1
  295. package/dist/components/TextArea/TextArea.d.ts +9 -1
  296. package/dist/components/TextArea/TextArea.js +13 -13
  297. package/dist/components/TextArea/index.d.ts +2 -1
  298. package/dist/components/UpcomingList/UpcomingList.d.ts +5 -4
  299. package/dist/components/UpcomingList/UpcomingList.js +55 -41
  300. package/dist/containers/GetFeatruedListContainer.d.ts +22 -15
  301. package/dist/containers/GetFeatruedListContainer.js +16 -16
  302. package/dist/containers/NowPlayingContainer.d.ts +17 -15
  303. package/dist/containers/NowPlayingContainer.js +18 -16
  304. package/dist/custom-elements.d.js +1 -0
  305. package/dist/data-resources/FakeDataResource.d.ts +77 -68
  306. package/dist/data-resources/FakeDataResource.js +244 -142
  307. package/dist/error-boundries/BlankErrorBoundry.d.ts +14 -9
  308. package/dist/error-boundries/BlankErrorBoundry.js +5 -5
  309. package/dist/error-boundries/GeneralErrorBoundry.d.ts +15 -10
  310. package/dist/error-boundries/GeneralErrorBoundry.js +10 -10
  311. package/dist/hooks/useGetSchedule.d.ts +12 -4
  312. package/dist/hooks/useGetSchedule.js +31 -27
  313. package/dist/hooks/useGetUpcoming.d.ts +8 -6
  314. package/dist/hooks/useGetUpcoming.js +22 -25
  315. package/dist/icons/Facebook.js +6 -6
  316. package/dist/icons/Tiktok.js +15 -7
  317. package/dist/icons/Twitter.js +7 -7
  318. package/dist/index.js +1 -1
  319. package/dist/logger-C0N7U0YY.mjs +67 -0
  320. package/dist/settings.d.ts +4 -3
  321. package/dist/settings.js +6 -5
  322. package/dist/types.d.js +27 -0
  323. package/dist/utils/Redirect.d.ts +2 -2
  324. package/dist/utils/analytics.js +1 -1
  325. package/dist/utils/date-helpers.d.ts +3 -2
  326. package/dist/utils/date-helpers.js +26 -26
  327. package/dist/utils/events.js +8 -6
  328. package/dist/utils/getFeaturedList.d.ts +28 -8
  329. package/dist/utils/getFeaturedList.js +58 -45
  330. package/dist/utils/getFeaturedListImages.d.ts +15 -5
  331. package/dist/utils/getFeaturedListImages.js +27 -16
  332. package/dist/utils/getOnNowProgram.d.ts +17 -3
  333. package/dist/utils/getOnNowProgram.js +106 -68
  334. package/dist/utils/getSchedule.d.ts +8 -6
  335. package/dist/utils/getSchedule.js +6 -1
  336. package/dist/utils/getUpcomingPrograms.d.ts +10 -7
  337. package/dist/utils/getUpcomingPrograms.js +5 -4
  338. package/dist/utils/getViewingPlatforms.d.ts +6 -16
  339. package/dist/utils/getViewingPlatforms.js +14 -11
  340. package/dist/utils/gtm.js +1 -1
  341. package/dist/utils/helpers.d.ts +9 -9
  342. package/dist/utils/helpers.js +69 -65
  343. package/dist/utils/program-helpers.d.ts +14 -20
  344. package/dist/utils/program-helpers.js +9 -8
  345. package/dist/utils/series-helpers.d.ts +14 -20
  346. package/dist/utils/series-helpers.js +9 -8
  347. package/package.json +16 -8
  348. package/dist/Carousel.module-DOrBKQEQ.mjs +0 -14
  349. package/dist/PageHero.module-BdV8z_Xv.mjs +0 -8
  350. package/dist/ResultsTable.module-B7M9y7hd.mjs +0 -14
  351. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.d.ts +0 -34
  352. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.js +0 -105
  353. package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.d.ts +0 -28
  354. package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.js +0 -42
  355. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.d.ts +0 -170
  356. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.js +0 -193
  357. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.d.ts +0 -19
  358. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.js +0 -35
  359. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.d.ts +0 -17
  360. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.js +0 -49
  361. package/dist/facebook-HCcA1M1m.mjs +0 -54
@@ -1,15 +1,20 @@
1
1
  import { default as React } from 'react';
2
- export class BlankErrorBoundary extends React.Component<any, any, any> {
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: any);
7
- state: {
8
- hasError: boolean;
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 { default as React } from 'react';
2
- export class GeneralErrorBoundary extends React.Component<any, any, any> {
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: any);
7
- state: {
8
- hasError: boolean;
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 u extends o.Component {
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, { title: this.state.errorTitle, message: this.state.errorMessage }) : this.props.children;
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
- u as GeneralErrorBoundary,
26
- u as default
25
+ h as GeneralErrorBoundary,
26
+ h as default
27
27
  };
@@ -1,4 +1,11 @@
1
- export default useGetSchedule;
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 function useGetSchedule({ dateStr, schedEndpoint, network, showEpisodeNumber, showUpcoming, }: any): Object[] | {
13
- queryStatus: "no-results";
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 D } from "../add-UWUc_nrO.mjs";
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 m, determineSeasonNumberFromSeriesPrefix as g } from "../utils/series-helpers.js";
4
- import { convert12to24 as b } from "../utils/helpers.js";
5
- import { determineIfShowIsOnNow as O } from "../utils/date-helpers.js";
6
- import { g as v } from "../index-0wieGV50.mjs";
7
- const I = async ({
8
- dateStr: n,
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: _ = null,
10
+ network: $ = null,
11
11
  showEpisodeNumber: u = !1,
12
- showUpcoming: $ = !1
12
+ showUpcoming: w = !1
13
13
  }) => {
14
- const c = v("America/New_York", new Date(n)) / 36e5, p = d(/* @__PURE__ */ new Date(`${n}T00:00:00`), "yyyy-MM-dd"), i = d(new Date(D(/* @__PURE__ */ new Date(`${n}T00:00:00`), { days: 1 })), "yyyy-MM-dd"), w = (s) => {
15
- const e = /* @__PURE__ */ new Date(`${n}T06:00:00-0${c * -1}:00`), r = /* @__PURE__ */ new Date(`${i}T06:00:00-0${c * -1}:00`);
16
- return s.filter((f) => {
17
- const o = f.start_ts_parse * 1e3;
18
- return o >= e.valueOf() && o < r.valueOf();
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
- }, T = async () => {
21
- let s = [], e = {}, r = 0, l = "";
22
- const f = p, o = i;
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
- l = `${h}/${_}?ordering=start_ts_parse&start_date__range=${f},${o}&limit=100&offset=${r}`;
28
+ f = `${h}/${$}?ordering=start_ts_parse&start_date__range=${n},${l}&limit=100&offset=${r}`;
25
29
  try {
26
- const t = await fetch(l);
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 : w(s).map((t) => ({
43
+ return s.length === 0 ? void 0 : m(s).map((t) => ({
40
44
  ...t,
41
- showUpcoming: $
45
+ showUpcoming: w
42
46
  }));
43
- }, y = (s) => s.filter((e) => {
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() || O(`${e.start_date_parse}T${b(e.start_time)}`, e.element_length));
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)}${m(e)}` : "" : r = u ? `${g(e)}${m(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 T();
54
- return a === void 0 || a.length === 0 ? [{ queryStatus: "no-results" }] : y(a);
57
+ }), a = await y();
58
+ return a === void 0 || a.length === 0 ? [{ queryStatus: "no-results" }] : D(a);
55
59
  };
56
60
  export {
57
- I as default
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 { useCallback as m, useMemo as u } from "react";
2
- import { a as w } from "../add-UWUc_nrO.mjs";
3
- import { f } from "../format-YhWt2D8M.mjs";
4
- const a = /* @__PURE__ */ new Date(), g = async ({
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: i,
8
- NETWORK: n
9
- }) => {
10
- const c = m(async (e, d, s, l) => {
11
- const y = /* @__PURE__ */ new Map([
12
- ["series", `series_prefix__icontains=${e}`],
13
- ["film", `title_code__iexact=${e}`]
14
- ]), _ = `${s}/${l}?ordering=start_ts_parse&${y.get(d)}&start_date__range=${f(a, "yyyy-MM-dd")},${f(w(a, { days: 14 }), "yyyy-MM-dd")}&limit=20`;
15
- try {
16
- const t = await fetch(_);
17
- if (t != null && t.ok)
18
- return await t.json();
19
- console.log(`An error was returned from fetch. HTTP Response Code: ', ${t == null ? void 0 : t.status}`);
20
- } catch (t) {
21
- console.log("Fetch failed with error:", t);
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
- g as default
24
+ w as default
28
25
  };
@@ -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
  }
@@ -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("path", { id: "Path_17", "data-name": "Path 17", 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", transform: "translate(-99.658 60.651)" }) })
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 {
@@ -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)", strokeWidth: "0" }) })
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-CGIr6Qga.mjs";
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
+ };
@@ -1,3 +1,4 @@
1
- export const slideLayoutsMap: Map<string, import('react').LazyExoticComponent<typeof import('.').FigureSlide>>;
2
- export const pageHeroLayoutsMap: Map<string, import('react').LazyExoticComponent<typeof import('./components/PageHero/page-hero-layouts').IONShowHero>>;
3
- export const blockLayoutsMap: Map<string, import('react').LazyExoticComponent<typeof import('.').CtaBlock>>;
1
+ declare const slideLayoutsMap: Map<string, import('react').LazyExoticComponent<import('react').ComponentType<any>>>;
2
+ declare const pageHeroLayoutsMap: Map<string, import('react').LazyExoticComponent<import('react').ComponentType<any>>>;
3
+ declare const blockLayoutsMap: Map<string, import('react').LazyExoticComponent<import('react').ComponentType<any>>>;
4
+ export { slideLayoutsMap, pageHeroLayoutsMap, blockLayoutsMap, };
package/dist/settings.js CHANGED
@@ -1,12 +1,13 @@
1
1
  import { lazy as o } from "react";
2
- const r = /* @__PURE__ */ new Map([
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
- ]), i = /* @__PURE__ */ new Map([
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
- i as pageHeroLayoutsMap,
29
- r as slideLayoutsMap
29
+ r as pageHeroLayoutsMap,
30
+ i as slideLayoutsMap
30
31
  };
@@ -0,0 +1,27 @@
1
+ var r = Object.defineProperty;
2
+ var i = (t, e, s) => e in t ? r(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
+ var l = (t, e, s) => i(t, typeof e != "symbol" ? e + "" : e, s);
4
+ class n {
5
+ constructor() {
6
+ l(this, "carouselEl");
7
+ l(this, "scrollerEl");
8
+ l(this, "paginationEl");
9
+ l(this, "cells");
10
+ l(this, "currentIndex");
11
+ l(this, "cellEls");
12
+ l(this, "navBtnEls");
13
+ l(this, "currentIntersecting");
14
+ l(this, "options");
15
+ l(this, "timer");
16
+ l(this, "timerInterval");
17
+ l(this, "slideGutterSize");
18
+ l(this, "showPagination");
19
+ l(this, "isInitialScroll");
20
+ l(this, "totalSlideEls");
21
+ l(this, "totalSlides");
22
+ l(this, "carouselObserver");
23
+ }
24
+ }
25
+ export {
26
+ n as default
27
+ };
@@ -1,4 +1,4 @@
1
- export default Redirect;
2
1
  declare function Redirect({ to }: {
3
- to: any;
2
+ to: string;
4
3
  }): null;
4
+ export default Redirect;
@@ -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.info("** Note: Google Analytics is only initialized in staging and production environments. **");
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 n = /* @__PURE__ */ new Date();
8
- let e = n.toLocaleString("en-US", { timeZone: "America/New_York" }), [r, t] = e.split(",");
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(n, { days: 1 })).toLocaleString("en-US", { timeZone: "America/New_York" });
11
+ e = new Date(w(r, { days: 1 })).toLocaleString("en-US", { timeZone: "America/New_York" });
12
12
  const c = e.split(",");
13
- r = c[0], t = c[1];
13
+ n = c[0], t = c[1];
14
14
  }
15
- const [s, a, m] = r.split("/"), [l, p] = t.trim().split(" "), [y, d] = l.split(":"), f = h(`${y}:${d} ${p}`);
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 n = /* @__PURE__ */ new Date(`${S()}T00:00:00`);
19
- let e = [];
20
- for (let r = 0; r <= 13; ++r) {
21
- const t = u(n, { days: r });
22
- e.push({
23
- dayStr: r === 0 ? "Today" : i(t, "EEE"),
24
- monthStr: i(t, "MMM"),
25
- dateStr: i(t, "d"),
26
- fullDateStr: i(t, "yyyy-MM-dd"),
27
- date: t
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 e;
31
- }, E = (n, e) => {
32
- if (!Array.isArray(n))
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 r = [];
37
- for (let t = 0; t < n.length; t += e)
38
- r.push(n.slice(t, t + e));
39
- return r;
40
- }, T = (n, e) => {
41
- const r = /* @__PURE__ */ new Date(), t = g("America/New_York", new Date(n)) / 36e5, o = /* @__PURE__ */ new Date(`${n}:00-0${t * -1}:00`), [s, a] = e.split(":"), m = Number.parseInt(s, 10) * 60 + Number.parseInt(a, 10);
42
- return r >= o && r <= u(o, { minutes: m });
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,