@maestro_io/maestro-web-sdk 5.0.0 → 5.1.1
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/1.maestro-web-sdk.esm.js +2 -0
- package/dist/1.maestro-web-sdk.esm.js.map +1 -0
- package/dist/10.maestro-web-sdk.esm.js +2 -0
- package/dist/10.maestro-web-sdk.esm.js.map +1 -0
- package/dist/11.maestro-web-sdk.esm.js +2 -0
- package/dist/11.maestro-web-sdk.esm.js.map +1 -0
- package/dist/12.maestro-web-sdk.esm.js +2 -0
- package/dist/12.maestro-web-sdk.esm.js.map +1 -0
- package/dist/13.maestro-web-sdk.esm.js +2 -0
- package/dist/13.maestro-web-sdk.esm.js.map +1 -0
- package/dist/14.maestro-web-sdk.esm.js +2 -0
- package/dist/14.maestro-web-sdk.esm.js.map +1 -0
- package/dist/15.maestro-web-sdk.esm.js +2 -0
- package/dist/15.maestro-web-sdk.esm.js.map +1 -0
- package/dist/16.maestro-web-sdk.esm.js +2 -0
- package/dist/16.maestro-web-sdk.esm.js.map +1 -0
- package/dist/17.maestro-web-sdk.esm.js +2 -0
- package/dist/17.maestro-web-sdk.esm.js.map +1 -0
- package/dist/18.maestro-web-sdk.esm.js +2 -0
- package/dist/18.maestro-web-sdk.esm.js.map +1 -0
- package/dist/19.maestro-web-sdk.esm.js +2 -0
- package/dist/19.maestro-web-sdk.esm.js.map +1 -0
- package/dist/2.maestro-web-sdk.esm.js +2 -0
- package/dist/2.maestro-web-sdk.esm.js.map +1 -0
- package/dist/20.maestro-web-sdk.esm.js +2 -0
- package/dist/20.maestro-web-sdk.esm.js.map +1 -0
- package/dist/21.maestro-web-sdk.esm.js +2 -0
- package/dist/21.maestro-web-sdk.esm.js.map +1 -0
- package/dist/22.maestro-web-sdk.esm.js +2 -0
- package/dist/22.maestro-web-sdk.esm.js.map +1 -0
- package/dist/23.maestro-web-sdk.esm.js +2 -0
- package/dist/23.maestro-web-sdk.esm.js.map +1 -0
- package/dist/24.maestro-web-sdk.esm.js +2 -0
- package/dist/24.maestro-web-sdk.esm.js.map +1 -0
- package/dist/25.maestro-web-sdk.esm.js +2 -0
- package/dist/25.maestro-web-sdk.esm.js.map +1 -0
- package/dist/26.maestro-web-sdk.esm.js +2 -0
- package/dist/26.maestro-web-sdk.esm.js.map +1 -0
- package/dist/27.maestro-web-sdk.esm.js +2 -0
- package/dist/27.maestro-web-sdk.esm.js.map +1 -0
- package/dist/28.maestro-web-sdk.esm.js +2 -0
- package/dist/28.maestro-web-sdk.esm.js.map +1 -0
- package/dist/29.maestro-web-sdk.esm.js +2 -0
- package/dist/29.maestro-web-sdk.esm.js.map +1 -0
- package/dist/3.maestro-web-sdk.esm.js +2 -0
- package/dist/3.maestro-web-sdk.esm.js.map +1 -0
- package/dist/30.maestro-web-sdk.esm.js +2 -0
- package/dist/30.maestro-web-sdk.esm.js.map +1 -0
- package/dist/31.maestro-web-sdk.esm.js +2 -0
- package/dist/31.maestro-web-sdk.esm.js.map +1 -0
- package/dist/32.maestro-web-sdk.esm.js +2 -0
- package/dist/32.maestro-web-sdk.esm.js.map +1 -0
- package/dist/33.maestro-web-sdk.esm.js +2 -0
- package/dist/33.maestro-web-sdk.esm.js.map +1 -0
- package/dist/34.maestro-web-sdk.esm.js +2 -0
- package/dist/34.maestro-web-sdk.esm.js.map +1 -0
- package/dist/35.maestro-web-sdk.esm.js +2 -0
- package/dist/35.maestro-web-sdk.esm.js.map +1 -0
- package/dist/36.maestro-web-sdk.esm.js +2 -0
- package/dist/36.maestro-web-sdk.esm.js.map +1 -0
- package/dist/37.maestro-web-sdk.esm.js +2 -0
- package/dist/37.maestro-web-sdk.esm.js.map +1 -0
- package/dist/38.maestro-web-sdk.esm.js +2 -0
- package/dist/38.maestro-web-sdk.esm.js.map +1 -0
- package/dist/4.maestro-web-sdk.esm.js +2 -0
- package/dist/4.maestro-web-sdk.esm.js.map +1 -0
- package/dist/5.maestro-web-sdk.esm.js +2 -0
- package/dist/5.maestro-web-sdk.esm.js.map +1 -0
- package/dist/6.maestro-web-sdk.esm.js +2 -0
- package/dist/6.maestro-web-sdk.esm.js.map +1 -0
- package/dist/7.maestro-web-sdk.esm.js +2 -0
- package/dist/7.maestro-web-sdk.esm.js.map +1 -0
- package/dist/8.maestro-web-sdk.esm.js +2 -0
- package/dist/8.maestro-web-sdk.esm.js.map +1 -0
- package/dist/9.maestro-web-sdk.esm.js +2 -0
- package/dist/9.maestro-web-sdk.esm.js.map +1 -0
- package/dist/index.d.ts +135 -1087
- package/dist/maestro-web-sdk.esm.js +3 -32
- package/dist/maestro-web-sdk.esm.js.map +1 -1
- package/dist/maestro-web-sdk.umd.js +3 -32
- package/dist/maestro-web-sdk.umd.js.map +1 -1
- package/dist/package.json +94 -0
- package/dist/src/components/atoms/BaseButton/BaseButton.d.ts +7 -0
- package/dist/src/components/atoms/BaseButton/BaseButton.js +11 -0
- package/dist/src/components/atoms/BaseButton/index.d.ts +2 -0
- package/dist/src/components/atoms/BaseButton/index.js +2 -0
- package/dist/src/components/atoms/Image/index.d.ts +13 -0
- package/dist/src/components/atoms/Image/index.js +34 -0
- package/dist/src/components/atoms/Rive/index.d.ts +221 -0
- package/dist/src/components/atoms/Rive/index.js +53 -0
- package/dist/src/components/atoms/SvgIcon/BetGeneralIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/BetGeneralIcon.js +9 -0
- package/dist/src/components/atoms/SvgIcon/BetsIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/BetsIcon.js +8 -0
- package/dist/src/components/atoms/SvgIcon/BetsWarningIcon.d.ts +7 -0
- package/dist/src/components/atoms/SvgIcon/BetsWarningIcon.js +11 -0
- package/dist/src/components/atoms/SvgIcon/BuilderIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/BuilderIcon.js +8 -0
- package/dist/src/components/atoms/SvgIcon/ChatIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/ChatIcon.js +6 -0
- package/dist/src/components/atoms/SvgIcon/CheckmarkIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/CheckmarkIcon.js +6 -0
- package/dist/src/components/atoms/SvgIcon/CollapseIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/CollapseIcon.js +6 -0
- package/dist/src/components/atoms/SvgIcon/ExpandIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/ExpandIcon.js +6 -0
- package/dist/src/components/atoms/SvgIcon/FantasyIcon.d.ts +7 -0
- package/dist/src/components/atoms/SvgIcon/FantasyIcon.js +15 -0
- package/dist/src/components/atoms/SvgIcon/FlameIcon.d.ts +7 -0
- package/dist/src/components/atoms/SvgIcon/FlameIcon.js +11 -0
- package/dist/src/components/atoms/SvgIcon/FoxKeyPlaysIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/FoxKeyPlaysIcon.js +7 -0
- package/dist/src/components/atoms/SvgIcon/FoxMultiViewIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/FoxMultiViewIcon.js +10 -0
- package/dist/src/components/atoms/SvgIcon/FoxStatsIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/FoxStatsIcon.js +7 -0
- package/dist/src/components/atoms/SvgIcon/HelloWorldIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/HelloWorldIcon.js +6 -0
- package/dist/src/components/atoms/SvgIcon/Icon.d.ts +15 -0
- package/dist/src/components/atoms/SvgIcon/Icon.js +68 -0
- package/dist/src/components/atoms/SvgIcon/KeyPlaysIcon.d.ts +6 -0
- package/dist/src/components/atoms/SvgIcon/KeyPlaysIcon.js +10 -0
- package/dist/src/components/atoms/SvgIcon/MobilePhoneIcon.d.ts +7 -0
- package/dist/src/components/atoms/SvgIcon/MobilePhoneIcon.js +11 -0
- package/dist/src/components/atoms/SvgIcon/PlayIcon.d.ts +6 -0
- package/dist/src/components/atoms/SvgIcon/PlayIcon.js +8 -0
- package/dist/src/components/atoms/SvgIcon/ShopIcon.d.ts +5 -0
- package/dist/src/components/atoms/SvgIcon/ShopIcon.js +7 -0
- package/dist/src/components/atoms/SvgIcon/ShopifyIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/ShopifyIcon.js +6 -0
- package/dist/src/components/atoms/SvgIcon/StatsIcon.d.ts +6 -0
- package/dist/src/components/atoms/SvgIcon/StatsIcon.js +12 -0
- package/dist/src/components/atoms/SvgIcon/TimesIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/TimesIcon.js +6 -0
- package/dist/src/components/atoms/SvgIcon/WarningIcon.d.ts +6 -0
- package/dist/src/components/atoms/SvgIcon/WarningIcon.js +8 -0
- package/dist/src/components/atoms/SvgIcon/index.d.ts +2 -0
- package/dist/src/components/atoms/SvgIcon/index.js +2 -0
- package/dist/src/components/core/App/App.d.ts +11 -0
- package/dist/src/components/core/App/App.js +35 -0
- package/dist/src/components/core/App/index.d.ts +2 -0
- package/dist/src/components/core/App/index.js +2 -0
- package/dist/src/components/core/PanelManager/PanelManager.d.ts +21 -0
- package/dist/src/components/core/PanelManager/PanelManager.js +102 -0
- package/dist/src/components/core/PanelManager/index.d.ts +2 -0
- package/dist/src/components/core/PanelManager/index.js +2 -0
- package/dist/src/components/core/ScrollableContainer/FocusableItem.d.ts +11 -0
- package/dist/src/components/core/ScrollableContainer/FocusableItem.js +24 -0
- package/dist/src/components/core/ScrollableContainer/ScrollableContainer.d.ts +54 -0
- package/dist/src/components/core/ScrollableContainer/ScrollableContainer.js +111 -0
- package/dist/src/components/core/ScrollableContainer/index.d.ts +6 -0
- package/dist/src/components/core/ScrollableContainer/index.js +5 -0
- package/dist/src/components/core/ScrollableContainer/useScrollableContainer.d.ts +14 -0
- package/dist/src/components/core/ScrollableContainer/useScrollableContainer.js +22 -0
- package/dist/src/components/molecules/ActionButton/ActionButton.d.ts +96 -0
- package/dist/src/components/molecules/ActionButton/ActionButton.js +15 -0
- package/dist/src/components/molecules/ActionButton/index.d.ts +2 -0
- package/dist/src/components/molecules/ActionButton/index.js +2 -0
- package/dist/src/components/molecules/HeadshotImage/HeadshotImage.d.ts +16 -0
- package/dist/src/components/molecules/HeadshotImage/HeadshotImage.js +50 -0
- package/dist/src/components/molecules/HeadshotImage/index.d.ts +2 -0
- package/dist/src/components/molecules/HeadshotImage/index.js +2 -0
- package/dist/src/components/molecules/PanelNavButton/PanelNavButton.d.ts +106 -0
- package/dist/src/components/molecules/PanelNavButton/PanelNavButton.js +27 -0
- package/dist/src/components/molecules/PanelNavButton/index.d.ts +2 -0
- package/dist/src/components/molecules/PanelNavButton/index.js +2 -0
- package/dist/src/components/molecules/SegmentButton/SegmentButton.d.ts +9 -0
- package/dist/src/components/molecules/SegmentButton/SegmentButton.js +10 -0
- package/dist/src/components/molecules/SegmentButton/index.d.ts +2 -0
- package/dist/src/components/molecules/SegmentButton/index.js +2 -0
- package/dist/src/components/molecules/TabLoadError/TabLoadError.d.ts +96 -0
- package/dist/src/components/molecules/TabLoadError/TabLoadError.js +14 -0
- package/dist/src/components/molecules/TabLoadError/index.d.ts +2 -0
- package/dist/src/components/molecules/TabLoadError/index.js +2 -0
- package/dist/src/components/molecules/WatchButton/WatchButton.d.ts +10 -0
- package/dist/src/components/molecules/WatchButton/WatchButton.js +15 -0
- package/dist/src/components/molecules/WatchButton/index.d.ts +2 -0
- package/dist/src/components/molecules/WatchButton/index.js +2 -0
- package/dist/src/components/organisms/PanelNavigation/PanelNavigation.d.ts +16 -0
- package/dist/src/components/organisms/PanelNavigation/PanelNavigation.js +60 -0
- package/dist/src/components/organisms/PanelNavigation/index.d.ts +2 -0
- package/dist/src/components/organisms/PanelNavigation/index.js +2 -0
- package/dist/src/components/organisms/SegmentController/SegmentController.d.ts +12 -0
- package/dist/src/components/organisms/SegmentController/SegmentController.js +35 -0
- package/dist/src/components/organisms/SegmentController/index.d.ts +3 -0
- package/dist/src/components/organisms/SegmentController/index.js +2 -0
- package/dist/src/development/MaestroEventDelegate.d.ts +27 -0
- package/dist/src/development/MaestroEventDelegate.js +109 -0
- package/dist/src/development/TimeSeek.d.ts +22 -0
- package/dist/src/development/TimeSeek.js +218 -0
- package/dist/src/development/development.d.ts +1 -0
- package/dist/src/development/development.js +39 -0
- package/dist/src/external/AxiosNetworkClient.d.ts +28 -0
- package/dist/src/external/AxiosNetworkClient.js +110 -0
- package/dist/src/external/LocalStorageCacheManager.d.ts +65 -0
- package/dist/src/external/LocalStorageCacheManager.js +213 -0
- package/dist/src/external/ReactRenderer.d.ts +17 -0
- package/dist/src/external/ReactRenderer.js +66 -0
- package/dist/src/external/mocks/MockExternalNetworkClient.d.ts +104 -0
- package/dist/src/external/mocks/MockExternalNetworkClient.js +187 -0
- package/dist/src/external/ports/cacheManager.d.ts +17 -0
- package/dist/src/external/ports/cacheManager.js +1 -0
- package/dist/src/external/ports/networkClient.d.ts +19 -0
- package/dist/src/external/ports/networkClient.js +1 -0
- package/dist/src/external/ports/renderer.d.ts +4 -0
- package/dist/src/external/ports/renderer.js +1 -0
- package/dist/src/external/spatial-navigation/__mocks__/withFocusable.d.ts +8 -0
- package/dist/src/external/spatial-navigation/__mocks__/withFocusable.js +7 -0
- package/dist/src/external/spatial-navigation/index.d.ts +4 -0
- package/dist/src/external/spatial-navigation/index.js +3 -0
- package/dist/src/external/spatial-navigation/measureLayout.d.ts +2 -0
- package/dist/src/external/spatial-navigation/measureLayout.js +30 -0
- package/dist/src/external/spatial-navigation/spatialNavigation.d.ts +160 -0
- package/dist/src/external/spatial-navigation/spatialNavigation.js +944 -0
- package/dist/src/external/spatial-navigation/utils.d.ts +22 -0
- package/dist/src/external/spatial-navigation/utils.js +6 -0
- package/dist/src/external/spatial-navigation/visualDebugger.d.ts +17 -0
- package/dist/src/external/spatial-navigation/visualDebugger.js +76 -0
- package/dist/src/external/spatial-navigation/withFocusable.d.ts +131 -0
- package/dist/src/external/spatial-navigation/withFocusable.js +254 -0
- package/dist/src/helpers/Observable.d.ts +12 -0
- package/dist/src/helpers/Observable.js +37 -0
- package/dist/src/helpers/strings.d.ts +2 -0
- package/dist/src/helpers/strings.js +14 -0
- package/dist/src/helpers/url.d.ts +1 -0
- package/dist/src/helpers/url.js +12 -0
- package/dist/src/hooks/useMaxHeightToBottom.d.ts +11 -0
- package/dist/src/hooks/useMaxHeightToBottom.js +48 -0
- package/dist/src/index.d.ts +53 -0
- package/dist/src/index.js +197 -0
- package/dist/src/interfaces/IMaestroEvent.d.ts +108 -0
- package/dist/src/interfaces/IMaestroEvent.js +1 -0
- package/dist/src/interfaces/IMaestroEventDelegate.d.ts +74 -0
- package/dist/src/interfaces/IMaestroEventDelegate.js +1 -0
- package/dist/src/interfaces/IMaestroManager.d.ts +81 -0
- package/dist/src/interfaces/IMaestroManager.js +1 -0
- package/dist/src/interfaces/IUserSettings.d.ts +44 -0
- package/dist/src/interfaces/IUserSettings.js +20 -0
- package/dist/src/models/IModel.d.ts +7 -0
- package/dist/src/models/IModel.js +1 -0
- package/dist/src/models/IPanel.d.ts +19 -0
- package/dist/src/models/IPanel.js +12 -0
- package/dist/src/models/ITheme.d.ts +77 -0
- package/dist/src/models/ITheme.js +20 -0
- package/dist/src/modules/espn/bets/interfaces/IBets.d.ts +192 -0
- package/dist/src/modules/espn/bets/interfaces/IBets.js +1 -0
- package/dist/src/modules/espn/bets/interfaces/IBetsViewModel.d.ts +5 -0
- package/dist/src/modules/espn/bets/interfaces/IBetsViewModel.js +1 -0
- package/dist/src/modules/espn/bets/mocks.d.ts +2 -0
- package/dist/src/modules/espn/bets/mocks.js +573 -0
- package/dist/src/modules/espn/bets/services/BetsService.d.ts +81 -0
- package/dist/src/modules/espn/bets/services/BetsService.js +123 -0
- package/dist/src/modules/espn/bets/types/BetsAnalyticsTypes.d.ts +8 -0
- package/dist/src/modules/espn/bets/types/BetsAnalyticsTypes.js +1 -0
- package/dist/src/modules/espn/bets/view/BetsView.d.ts +30 -0
- package/dist/src/modules/espn/bets/view/BetsView.js +169 -0
- package/dist/src/modules/espn/bets/view/HotProps/HotPropsView.d.ts +103 -0
- package/dist/src/modules/espn/bets/view/HotProps/HotPropsView.js +133 -0
- package/dist/src/modules/espn/bets/view/SixPack/SixPackView.d.ts +9 -0
- package/dist/src/modules/espn/bets/view/SixPack/SixPackView.js +77 -0
- package/dist/src/modules/espn/bets/view/UserBets/BetResult/BetResult.d.ts +6 -0
- package/dist/src/modules/espn/bets/view/UserBets/BetResult/BetResult.js +6 -0
- package/dist/src/modules/espn/bets/view/UserBets/BetsCard/BetsCard.d.ts +104 -0
- package/dist/src/modules/espn/bets/view/UserBets/BetsCard/BetsCard.js +140 -0
- package/dist/src/modules/espn/bets/view/UserBets/BetsCard/BetsCardEvent.d.ts +16 -0
- package/dist/src/modules/espn/bets/view/UserBets/BetsCard/BetsCardEvent.js +8 -0
- package/dist/src/modules/espn/bets/view/UserBets/BetsCard/BetsCardFooter.d.ts +7 -0
- package/dist/src/modules/espn/bets/view/UserBets/BetsCard/BetsCardFooter.js +18 -0
- package/dist/src/modules/espn/bets/view/UserBets/Boost/Boost.d.ts +7 -0
- package/dist/src/modules/espn/bets/view/UserBets/Boost/Boost.js +6 -0
- package/dist/src/modules/espn/bets/view/UserBets/OutcomeBadge/OutcomeBadge.d.ts +6 -0
- package/dist/src/modules/espn/bets/view/UserBets/OutcomeBadge/OutcomeBadge.js +9 -0
- package/dist/src/modules/espn/bets/view/UserBets/Parlay/Parlay.d.ts +8 -0
- package/dist/src/modules/espn/bets/view/UserBets/Parlay/Parlay.js +13 -0
- package/dist/src/modules/espn/bets/view/UserBets/Straight/Straight.d.ts +7 -0
- package/dist/src/modules/espn/bets/view/UserBets/Straight/Straight.js +6 -0
- package/dist/src/modules/espn/bets/view/UserBets/Teaser/Teaser.d.ts +7 -0
- package/dist/src/modules/espn/bets/view/UserBets/Teaser/Teaser.js +13 -0
- package/dist/src/modules/espn/bets/view/UserBets/UserBetsView.d.ts +25 -0
- package/dist/src/modules/espn/bets/view/UserBets/UserBetsView.js +107 -0
- package/dist/src/modules/espn/bets/view/components/Bet/Bet.d.ts +10 -0
- package/dist/src/modules/espn/bets/view/components/Bet/Bet.js +41 -0
- package/dist/src/modules/espn/bets/view/components/BetPill/BetPill.d.ts +6 -0
- package/dist/src/modules/espn/bets/view/components/BetPill/BetPill.js +6 -0
- package/dist/src/modules/espn/bets/view/components/BetsCard/BetsCard.d.ts +10 -0
- package/dist/src/modules/espn/bets/view/components/BetsCard/BetsCard.js +24 -0
- package/dist/src/modules/espn/bets/view/components/BetsCard/BetsCardHeader.d.ts +16 -0
- package/dist/src/modules/espn/bets/view/components/BetsCard/BetsCardHeader.js +20 -0
- package/dist/src/modules/espn/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.d.ts +7 -0
- package/dist/src/modules/espn/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.js +31 -0
- package/dist/src/modules/espn/bets/view/components/GamblingDisclaimer/index.d.ts +1 -0
- package/dist/src/modules/espn/bets/view/components/GamblingDisclaimer/index.js +1 -0
- package/dist/src/modules/espn/bets/view/components/LocationWarning/LocationWarning.d.ts +10 -0
- package/dist/src/modules/espn/bets/view/components/LocationWarning/LocationWarning.js +16 -0
- package/dist/src/modules/espn/bets/view/components/PromoCodeBanner/PromoCodeBanner.d.ts +5 -0
- package/dist/src/modules/espn/bets/view/components/PromoCodeBanner/PromoCodeBanner.js +45 -0
- package/dist/src/modules/espn/bets/view/components/PromoCodeBanner/index.d.ts +1 -0
- package/dist/src/modules/espn/bets/view/components/PromoCodeBanner/index.js +1 -0
- package/dist/src/modules/espn/bets/view-model/BetsViewModel.d.ts +218 -0
- package/dist/src/modules/espn/bets/view-model/BetsViewModel.js +947 -0
- package/dist/src/modules/espn/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.d.ts +28 -0
- package/dist/src/modules/espn/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.js +107 -0
- package/dist/src/modules/espn/fantasy/components/ExpandedAthleteList/index.d.ts +1 -0
- package/dist/src/modules/espn/fantasy/components/ExpandedAthleteList/index.js +1 -0
- package/dist/src/modules/espn/fantasy/components/LeagueCard/LeagueCard.d.ts +104 -0
- package/dist/src/modules/espn/fantasy/components/LeagueCard/LeagueCard.js +20 -0
- package/dist/src/modules/espn/fantasy/components/LeagueCard/index.d.ts +2 -0
- package/dist/src/modules/espn/fantasy/components/LeagueCard/index.js +2 -0
- package/dist/src/modules/espn/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +101 -0
- package/dist/src/modules/espn/fantasy/components/TopPlayerCard/TopPlayerCard.js +29 -0
- package/dist/src/modules/espn/fantasy/components/TopPlayerCard/index.d.ts +2 -0
- package/dist/src/modules/espn/fantasy/components/TopPlayerCard/index.js +2 -0
- package/dist/src/modules/espn/fantasy/components/TournamentOverflowQR/TournamentOverflowQR.d.ts +103 -0
- package/dist/src/modules/espn/fantasy/components/TournamentOverflowQR/TournamentOverflowQR.js +94 -0
- package/dist/src/modules/espn/fantasy/components/TournamentOverflowQR/index.d.ts +1 -0
- package/dist/src/modules/espn/fantasy/components/TournamentOverflowQR/index.js +1 -0
- package/dist/src/modules/espn/fantasy/mocks.d.ts +7620 -0
- package/dist/src/modules/espn/fantasy/mocks.js +3682 -0
- package/dist/src/modules/espn/fantasy/services/FantasyService.d.ts +76 -0
- package/dist/src/modules/espn/fantasy/services/FantasyService.js +124 -0
- package/dist/src/modules/espn/fantasy/types.d.ts +294 -0
- package/dist/src/modules/espn/fantasy/types.js +9 -0
- package/dist/src/modules/espn/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.d.ts +21 -0
- package/dist/src/modules/espn/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.js +74 -0
- package/dist/src/modules/espn/fantasy/view/ActiveAthletesMarquee/index.d.ts +2 -0
- package/dist/src/modules/espn/fantasy/view/ActiveAthletesMarquee/index.js +2 -0
- package/dist/src/modules/espn/fantasy/view/FantasyHeaderView.d.ts +8 -0
- package/dist/src/modules/espn/fantasy/view/FantasyHeaderView.js +8 -0
- package/dist/src/modules/espn/fantasy/view/FantasyItemView.d.ts +8 -0
- package/dist/src/modules/espn/fantasy/view/FantasyItemView.js +48 -0
- package/dist/src/modules/espn/fantasy/view/FantasyView.d.ts +34 -0
- package/dist/src/modules/espn/fantasy/view/FantasyView.js +212 -0
- package/dist/src/modules/espn/fantasy/view/InactiveLeague/DraftDateCountdown.d.ts +23 -0
- package/dist/src/modules/espn/fantasy/view/InactiveLeague/DraftDateCountdown.js +95 -0
- package/dist/src/modules/espn/fantasy/view/InactiveLeague/InactiveLeague.d.ts +100 -0
- package/dist/src/modules/espn/fantasy/view/InactiveLeague/InactiveLeague.js +13 -0
- package/dist/src/modules/espn/fantasy/view/InactiveLeague/index.d.ts +2 -0
- package/dist/src/modules/espn/fantasy/view/InactiveLeague/index.js +2 -0
- package/dist/src/modules/espn/fantasy/view/LoginView/LoginView.d.ts +96 -0
- package/dist/src/modules/espn/fantasy/view/LoginView/LoginView.js +27 -0
- package/dist/src/modules/espn/fantasy/view/LoginView/index.d.ts +2 -0
- package/dist/src/modules/espn/fantasy/view/LoginView/index.js +2 -0
- package/dist/src/modules/espn/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts +97 -0
- package/dist/src/modules/espn/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.js +25 -0
- package/dist/src/modules/espn/fantasy/view/MatchupPair/DoubleAthleteCard/index.d.ts +2 -0
- package/dist/src/modules/espn/fantasy/view/MatchupPair/DoubleAthleteCard/index.js +2 -0
- package/dist/src/modules/espn/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.d.ts +14 -0
- package/dist/src/modules/espn/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.js +9 -0
- package/dist/src/modules/espn/fantasy/view/MatchupPair/MatchupPair.d.ts +102 -0
- package/dist/src/modules/espn/fantasy/view/MatchupPair/MatchupPair.js +118 -0
- package/dist/src/modules/espn/fantasy/view/MatchupPair/index.d.ts +2 -0
- package/dist/src/modules/espn/fantasy/view/MatchupPair/index.js +2 -0
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.d.ts +14 -0
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.js +9 -0
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/MatchupSingle.d.ts +102 -0
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/MatchupSingle.js +108 -0
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts +97 -0
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.js +18 -0
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/SingleAthleteCard/index.d.ts +2 -0
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/SingleAthleteCard/index.js +2 -0
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/index.d.ts +2 -0
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/index.js +2 -0
- package/dist/src/modules/espn/fantasy/view/PromoView/PromoView.d.ts +100 -0
- package/dist/src/modules/espn/fantasy/view/PromoView/PromoView.js +12 -0
- package/dist/src/modules/espn/fantasy/view/PromoView/index.d.ts +2 -0
- package/dist/src/modules/espn/fantasy/view/PromoView/index.js +2 -0
- package/dist/src/modules/espn/fantasy/view/TournamentBracketCard/TournamentBracketCard.d.ts +101 -0
- package/dist/src/modules/espn/fantasy/view/TournamentBracketCard/TournamentBracketCard.js +37 -0
- package/dist/src/modules/espn/fantasy/view/TournamentBracketCard/index.d.ts +2 -0
- package/dist/src/modules/espn/fantasy/view/TournamentBracketCard/index.js +2 -0
- package/dist/src/modules/espn/fantasy/view/index.d.ts +2 -0
- package/dist/src/modules/espn/fantasy/view/index.js +2 -0
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.FantasyPolling.d.ts +32 -0
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.FantasyPolling.js +132 -0
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.LeagueManagerPolling.d.ts +32 -0
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.LeagueManagerPolling.js +141 -0
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.TournamentPolling.d.ts +32 -0
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.TournamentPolling.js +140 -0
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.d.ts +167 -0
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.js +798 -0
- package/dist/src/modules/espn/key-plays/constants.d.ts +3 -0
- package/dist/src/modules/espn/key-plays/constants.js +292 -0
- package/dist/src/modules/espn/key-plays/interfaces/IKeyPlays.d.ts +32 -0
- package/dist/src/modules/espn/key-plays/interfaces/IKeyPlays.js +14 -0
- package/dist/src/modules/espn/key-plays/interfaces/IKeyPlaysResponse.d.ts +44 -0
- package/dist/src/modules/espn/key-plays/interfaces/IKeyPlaysResponse.js +1 -0
- package/dist/src/modules/espn/key-plays/interfaces/IKeyPlaysViewModel.d.ts +17 -0
- package/dist/src/modules/espn/key-plays/interfaces/IKeyPlaysViewModel.js +1 -0
- package/dist/src/modules/espn/key-plays/view/KeyPlayCardScoreTagView.d.ts +9 -0
- package/dist/src/modules/espn/key-plays/view/KeyPlayCardScoreTagView.js +16 -0
- package/dist/src/modules/espn/key-plays/view/KeyPlayCardView.d.ts +27 -0
- package/dist/src/modules/espn/key-plays/view/KeyPlayCardView.js +115 -0
- package/dist/src/modules/espn/key-plays/view/KeyPlayErrorStateView.d.ts +13 -0
- package/dist/src/modules/espn/key-plays/view/KeyPlayErrorStateView.js +65 -0
- package/dist/src/modules/espn/key-plays/view/KeyPlaysView.d.ts +39 -0
- package/dist/src/modules/espn/key-plays/view/KeyPlaysView.js +179 -0
- package/dist/src/modules/espn/key-plays/view-model/KeyPlaysViewModel.d.ts +37 -0
- package/dist/src/modules/espn/key-plays/view-model/KeyPlaysViewModel.js +245 -0
- package/dist/src/modules/espn/shop/mocks.d.ts +22 -0
- package/dist/src/modules/espn/shop/mocks.js +391 -0
- package/dist/src/modules/espn/shop/services/ShopService.d.ts +23 -0
- package/dist/src/modules/espn/shop/services/ShopService.js +44 -0
- package/dist/src/modules/espn/shop/types.d.ts +164 -0
- package/dist/src/modules/espn/shop/types.js +7 -0
- package/dist/src/modules/espn/shop/view/ProductDetailView/ProductDetailView.d.ts +10 -0
- package/dist/src/modules/espn/shop/view/ProductDetailView/ProductDetailView.js +60 -0
- package/dist/src/modules/espn/shop/view/ProductDetailView/index.d.ts +2 -0
- package/dist/src/modules/espn/shop/view/ProductDetailView/index.js +2 -0
- package/dist/src/modules/espn/shop/view/ShopView.d.ts +38 -0
- package/dist/src/modules/espn/shop/view/ShopView.js +223 -0
- package/dist/src/modules/espn/shop/view/components/BrowseCard/BrowseCard.d.ts +103 -0
- package/dist/src/modules/espn/shop/view/components/BrowseCard/BrowseCard.js +23 -0
- package/dist/src/modules/espn/shop/view/components/BrowseCard/index.d.ts +2 -0
- package/dist/src/modules/espn/shop/view/components/BrowseCard/index.js +2 -0
- package/dist/src/modules/espn/shop/view/components/ProductSummaryCard/ProductSummaryCard.d.ts +104 -0
- package/dist/src/modules/espn/shop/view/components/ProductSummaryCard/ProductSummaryCard.js +26 -0
- package/dist/src/modules/espn/shop/view/components/ProductSummaryCard/index.d.ts +2 -0
- package/dist/src/modules/espn/shop/view/components/ProductSummaryCard/index.js +1 -0
- package/dist/src/modules/espn/shop/view/components/ShopPromoView/ShopPromoView.d.ts +8 -0
- package/dist/src/modules/espn/shop/view/components/ShopPromoView/ShopPromoView.js +19 -0
- package/dist/src/modules/espn/shop/view/components/ShopPromoView/index.d.ts +1 -0
- package/dist/src/modules/espn/shop/view/components/ShopPromoView/index.js +1 -0
- package/dist/src/modules/espn/shop/view/components/ShopSection/ShopSection.d.ts +12 -0
- package/dist/src/modules/espn/shop/view/components/ShopSection/ShopSection.js +34 -0
- package/dist/src/modules/espn/shop/view/components/ShopSection/index.d.ts +1 -0
- package/dist/src/modules/espn/shop/view/components/ShopSection/index.js +1 -0
- package/dist/src/modules/espn/shop/view/index.d.ts +2 -0
- package/dist/src/modules/espn/shop/view/index.js +2 -0
- package/dist/src/modules/espn/shop/view-model/ShopViewModel.ShopPolling.d.ts +31 -0
- package/dist/src/modules/espn/shop/view-model/ShopViewModel.ShopPolling.js +111 -0
- package/dist/src/modules/espn/shop/view-model/ShopViewModel.d.ts +73 -0
- package/dist/src/modules/espn/shop/view-model/ShopViewModel.js +323 -0
- package/dist/src/modules/espn/stats/components/TeamStatistic.d.ts +16 -0
- package/dist/src/modules/espn/stats/components/TeamStatistic.js +13 -0
- package/dist/src/modules/espn/stats/interfaces/IStats.d.ts +330 -0
- package/dist/src/modules/espn/stats/interfaces/IStats.js +46 -0
- package/dist/src/modules/espn/stats/interfaces/IStatsViewModel.d.ts +7 -0
- package/dist/src/modules/espn/stats/interfaces/IStatsViewModel.js +1 -0
- package/dist/src/modules/espn/stats/mocks.d.ts +2 -0
- package/dist/src/modules/espn/stats/mocks.js +746 -0
- package/dist/src/modules/espn/stats/services/StatsService.d.ts +54 -0
- package/dist/src/modules/espn/stats/services/StatsService.js +155 -0
- package/dist/src/modules/espn/stats/utils/driveSummaryUtils.d.ts +18 -0
- package/dist/src/modules/espn/stats/utils/driveSummaryUtils.js +48 -0
- package/dist/src/modules/espn/stats/utils/playerStatusUtils.d.ts +4 -0
- package/dist/src/modules/espn/stats/utils/playerStatusUtils.js +17 -0
- package/dist/src/modules/espn/stats/utils.d.ts +39 -0
- package/dist/src/modules/espn/stats/utils.js +62 -0
- package/dist/src/modules/espn/stats/view/ActiveAthletes/ActiveAthletes.d.ts +22 -0
- package/dist/src/modules/espn/stats/view/ActiveAthletes/ActiveAthletes.js +98 -0
- package/dist/src/modules/espn/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.d.ts +4 -0
- package/dist/src/modules/espn/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.js +27 -0
- package/dist/src/modules/espn/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.d.ts +22 -0
- package/dist/src/modules/espn/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.js +89 -0
- package/dist/src/modules/espn/stats/view/ActiveAthletes/index.d.ts +2 -0
- package/dist/src/modules/espn/stats/view/ActiveAthletes/index.js +2 -0
- package/dist/src/modules/espn/stats/view/CareerMatchup/CareerMatchup.d.ts +101 -0
- package/dist/src/modules/espn/stats/view/CareerMatchup/CareerMatchup.js +59 -0
- package/dist/src/modules/espn/stats/view/CareerMatchup/index.d.ts +1 -0
- package/dist/src/modules/espn/stats/view/CareerMatchup/index.js +1 -0
- package/dist/src/modules/espn/stats/view/DriveSummary/DrivePlayCard.d.ts +105 -0
- package/dist/src/modules/espn/stats/view/DriveSummary/DrivePlayCard.js +32 -0
- package/dist/src/modules/espn/stats/view/DriveSummary/DriveSummary.d.ts +10 -0
- package/dist/src/modules/espn/stats/view/DriveSummary/DriveSummary.js +40 -0
- package/dist/src/modules/espn/stats/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.d.ts +27 -0
- package/dist/src/modules/espn/stats/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.js +129 -0
- package/dist/src/modules/espn/stats/view/DriveSummary/Header/DriveSummaryHeader.d.ts +12 -0
- package/dist/src/modules/espn/stats/view/DriveSummary/Header/DriveSummaryHeader.js +26 -0
- package/dist/src/modules/espn/stats/view/DriveSummary/MainStat/MainStat.d.ts +10 -0
- package/dist/src/modules/espn/stats/view/DriveSummary/MainStat/MainStat.js +24 -0
- package/dist/src/modules/espn/stats/view/DriveSummary/index.d.ts +2 -0
- package/dist/src/modules/espn/stats/view/DriveSummary/index.js +2 -0
- package/dist/src/modules/espn/stats/view/GameLeaders/GameLeaders.d.ts +9 -0
- package/dist/src/modules/espn/stats/view/GameLeaders/GameLeaders.js +22 -0
- package/dist/src/modules/espn/stats/view/GameLeaders/index.d.ts +2 -0
- package/dist/src/modules/espn/stats/view/GameLeaders/index.js +2 -0
- package/dist/src/modules/espn/stats/view/MatchPredictor/DonutChart/DonutChart.d.ts +17 -0
- package/dist/src/modules/espn/stats/view/MatchPredictor/DonutChart/DonutChart.js +55 -0
- package/dist/src/modules/espn/stats/view/MatchPredictor/DonutChart/index.d.ts +2 -0
- package/dist/src/modules/espn/stats/view/MatchPredictor/DonutChart/index.js +1 -0
- package/dist/src/modules/espn/stats/view/MatchPredictor/MatchPredictorView.d.ts +100 -0
- package/dist/src/modules/espn/stats/view/MatchPredictor/MatchPredictorView.js +60 -0
- package/dist/src/modules/espn/stats/view/MatchPredictor/index.d.ts +3 -0
- package/dist/src/modules/espn/stats/view/MatchPredictor/index.js +2 -0
- package/dist/src/modules/espn/stats/view/Penalties/Penalties.d.ts +9 -0
- package/dist/src/modules/espn/stats/view/Penalties/Penalties.js +6 -0
- package/dist/src/modules/espn/stats/view/Penalties/index.d.ts +2 -0
- package/dist/src/modules/espn/stats/view/Penalties/index.js +2 -0
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/ExpandedPlayerStats.d.ts +16 -0
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/ExpandedPlayerStats.js +66 -0
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/PlayerSeasonStatsCard.d.ts +99 -0
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/PlayerSeasonStatsCard.js +26 -0
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/PlayerSeasonStatsMinified.d.ts +6 -0
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/PlayerSeasonStatsMinified.js +17 -0
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/PlayerSeasonStatsView.d.ts +8 -0
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/PlayerSeasonStatsView.js +165 -0
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/index.d.ts +1 -0
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/index.js +1 -0
- package/dist/src/modules/espn/stats/view/RecentGames/RecentGames.d.ts +100 -0
- package/dist/src/modules/espn/stats/view/RecentGames/RecentGames.js +23 -0
- package/dist/src/modules/espn/stats/view/RecentGames/index.d.ts +2 -0
- package/dist/src/modules/espn/stats/view/RecentGames/index.js +2 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.d.ts +30 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.js +123 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/ExpandedSummary.d.ts +100 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/ExpandedSummary.js +24 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/index.d.ts +2 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/index.js +2 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoreItem/ScoreItem.d.ts +100 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoreItem/ScoreItem.js +62 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoreItem/index.d.ts +2 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoreItem/index.js +2 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoresSection/ScoresSection.d.ts +6 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoresSection/ScoresSection.js +23 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoresSection/index.d.ts +2 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoresSection/index.js +2 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoringSummary.d.ts +12 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoringSummary.js +167 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/index.d.ts +1 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/index.js +1 -0
- package/dist/src/modules/espn/stats/view/StatsItemView.d.ts +8 -0
- package/dist/src/modules/espn/stats/view/StatsItemView.js +66 -0
- package/dist/src/modules/espn/stats/view/StatsQRCode/StatsQRCodeView.d.ts +100 -0
- package/dist/src/modules/espn/stats/view/StatsQRCode/StatsQRCodeView.js +36 -0
- package/dist/src/modules/espn/stats/view/StatsQRCode/index.d.ts +2 -0
- package/dist/src/modules/espn/stats/view/StatsQRCode/index.js +1 -0
- package/dist/src/modules/espn/stats/view/StatsView.d.ts +29 -0
- package/dist/src/modules/espn/stats/view/StatsView.js +164 -0
- package/dist/src/modules/espn/stats/view/TeamStats/TeamStatsView.d.ts +101 -0
- package/dist/src/modules/espn/stats/view/TeamStats/TeamStatsView.js +77 -0
- package/dist/src/modules/espn/stats/view/TeamStats/index.d.ts +2 -0
- package/dist/src/modules/espn/stats/view/TeamStats/index.js +1 -0
- package/dist/src/modules/espn/stats/view/Teams/StatsCarousel.d.ts +25 -0
- package/dist/src/modules/espn/stats/view/Teams/StatsCarousel.js +83 -0
- package/dist/src/modules/espn/stats/view/Teams/StatsProgressBar.d.ts +6 -0
- package/dist/src/modules/espn/stats/view/Teams/StatsProgressBar.js +19 -0
- package/dist/src/modules/espn/stats/view/Teams/Teams.d.ts +100 -0
- package/dist/src/modules/espn/stats/view/Teams/Teams.js +39 -0
- package/dist/src/modules/espn/stats/view/Teams/index.d.ts +2 -0
- package/dist/src/modules/espn/stats/view/Teams/index.js +2 -0
- package/dist/src/modules/espn/stats/view/WinProbability/WinProbability.d.ts +100 -0
- package/dist/src/modules/espn/stats/view/WinProbability/WinProbability.js +28 -0
- package/dist/src/modules/espn/stats/view/WinProbability/index.d.ts +2 -0
- package/dist/src/modules/espn/stats/view/WinProbability/index.js +2 -0
- package/dist/src/modules/espn/stats/view/components/AthletesStatistics/AthletesStatistics.d.ts +115 -0
- package/dist/src/modules/espn/stats/view/components/AthletesStatistics/AthletesStatistics.js +89 -0
- package/dist/src/modules/espn/stats/view/components/AthletesStatistics/StatisticTable.d.ts +3 -0
- package/dist/src/modules/espn/stats/view/components/AthletesStatistics/StatisticTable.js +12 -0
- package/dist/src/modules/espn/stats/view/components/AthletesStatistics/index.d.ts +2 -0
- package/dist/src/modules/espn/stats/view/components/AthletesStatistics/index.js +2 -0
- package/dist/src/modules/espn/stats/view/index.d.ts +2 -0
- package/dist/src/modules/espn/stats/view/index.js +2 -0
- package/dist/src/modules/espn/stats/view-model/StatsViewModel.d.ts +322 -0
- package/dist/src/modules/espn/stats/view-model/StatsViewModel.js +1416 -0
- package/dist/src/modules/fox/key-plays/view/FoxKeyPlays.d.ts +2 -0
- package/dist/src/modules/fox/key-plays/view/FoxKeyPlays.js +5 -0
- package/dist/src/modules/fox/multi-view/view/FoxMultiView.d.ts +2 -0
- package/dist/src/modules/fox/multi-view/view/FoxMultiView.js +5 -0
- package/dist/src/modules/fox/stats/view/FoxStatsView.d.ts +2 -0
- package/dist/src/modules/fox/stats/view/FoxStatsView.js +5 -0
- package/dist/src/modules/maestro/builder/components/BuilderSection/BuilderSection.d.ts +11 -0
- package/dist/src/modules/maestro/builder/components/BuilderSection/BuilderSection.js +52 -0
- package/dist/src/modules/maestro/builder/components/BuilderSection/index.d.ts +2 -0
- package/dist/src/modules/maestro/builder/components/BuilderSection/index.js +2 -0
- package/dist/src/modules/maestro/builder/components/ExpandableCard/ExpandableCard.d.ts +110 -0
- package/dist/src/modules/maestro/builder/components/ExpandableCard/ExpandableCard.js +37 -0
- package/dist/src/modules/maestro/builder/components/ExpandableCard/index.d.ts +2 -0
- package/dist/src/modules/maestro/builder/components/ExpandableCard/index.js +2 -0
- package/dist/src/modules/maestro/builder/components/SimpleCard/SimpleCard.d.ts +104 -0
- package/dist/src/modules/maestro/builder/components/SimpleCard/SimpleCard.js +12 -0
- package/dist/src/modules/maestro/builder/components/SimpleCard/index.d.ts +2 -0
- package/dist/src/modules/maestro/builder/components/SimpleCard/index.js +2 -0
- package/dist/src/modules/maestro/builder/index.d.ts +7 -0
- package/dist/src/modules/maestro/builder/index.js +7 -0
- package/dist/src/modules/maestro/builder/mocks/mockBuilderPanel.d.ts +149 -0
- package/dist/src/modules/maestro/builder/mocks/mockBuilderPanel.js +240 -0
- package/dist/src/modules/maestro/builder/types.d.ts +52 -0
- package/dist/src/modules/maestro/builder/types.js +1 -0
- package/dist/src/modules/maestro/builder/view/BuilderPanelView.d.ts +4 -0
- package/dist/src/modules/maestro/builder/view/BuilderPanelView.js +52 -0
- package/dist/src/modules/maestro/builder/view-model/BuilderPanelViewModel.d.ts +40 -0
- package/dist/src/modules/maestro/builder/view-model/BuilderPanelViewModel.js +229 -0
- package/dist/src/modules/maestro/builder/view-model/index.d.ts +1 -0
- package/dist/src/modules/maestro/builder/view-model/index.js +1 -0
- package/dist/src/modules/maestro/hello-world/HelloWorldImage.d.ts +2 -0
- package/dist/src/modules/maestro/hello-world/HelloWorldImage.js +32 -0
- package/dist/src/modules/maestro/hello-world/HelloWorldView.d.ts +11 -0
- package/dist/src/modules/maestro/hello-world/HelloWorldView.js +40 -0
- package/dist/src/modules/maestro/hello-world/index.d.ts +2 -0
- package/dist/src/modules/maestro/hello-world/index.js +2 -0
- package/dist/src/sentry.d.ts +3 -0
- package/dist/src/sentry.js +51 -0
- package/dist/src/services/AnalyticsService/AnalyticsService.d.ts +85 -0
- package/dist/src/services/AnalyticsService/AnalyticsService.js +406 -0
- package/dist/src/services/AnalyticsService/types.d.ts +65 -0
- package/dist/src/services/AnalyticsService/types.js +1 -0
- package/dist/src/services/InsightsService/InsightsPayloadBuilder.d.ts +279 -0
- package/dist/src/services/InsightsService/InsightsPayloadBuilder.js +385 -0
- package/dist/src/services/InsightsService/InsightsService.d.ts +11 -0
- package/dist/src/services/InsightsService/InsightsService.js +74 -0
- package/dist/src/services/NetworkManager/NetworkManager.d.ts +153 -0
- package/dist/src/services/NetworkManager/NetworkManager.js +434 -0
- package/dist/src/services/NetworkManager/errors.d.ts +17 -0
- package/dist/src/services/NetworkManager/errors.js +45 -0
- package/dist/src/services/NetworkManager/types.d.ts +7 -0
- package/dist/src/services/NetworkManager/types.js +1 -0
- package/dist/src/services/StaticService/StaticService.d.ts +20 -0
- package/dist/src/services/StaticService/StaticService.js +85 -0
- package/dist/src/services/StaticService/index.d.ts +2 -0
- package/dist/src/services/StaticService/index.js +2 -0
- package/dist/src/services/StaticService/mocks.d.ts +3 -0
- package/dist/src/services/StaticService/mocks.js +119 -0
- package/dist/src/services/StaticService/types.d.ts +78 -0
- package/dist/src/services/StaticService/types.js +1 -0
- package/dist/src/services/ThemeManager/constants.d.ts +2 -0
- package/dist/src/services/ThemeManager/constants.js +47 -0
- package/dist/src/services/UserSettingsManager.d.ts +63 -0
- package/dist/src/services/UserSettingsManager.js +158 -0
- package/dist/src/test-polyfills.d.ts +1 -0
- package/dist/src/test-polyfills.js +15 -0
- package/dist/src/view-models/MaestroEventViewModel.d.ts +94 -0
- package/dist/src/view-models/MaestroEventViewModel.js +370 -0
- package/dist/src/view-models/PanelManagerViewModel.d.ts +49 -0
- package/dist/src/view-models/PanelManagerViewModel.js +195 -0
- package/dist/src/view-models/ViewModel.d.ts +12 -0
- package/dist/src/view-models/ViewModel.js +32 -0
- package/package.json +7 -5
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import IMaestroEventDelegate, { PanelEvent } from './interfaces/IMaestroEventDelegate';
|
|
2
|
+
import IMaestroManager, { SDKConfigParams, SDKEventConfigParams, SDKStopEventParams } from './interfaces/IMaestroManager';
|
|
3
|
+
import IMaestroEvent from './interfaces/IMaestroEvent';
|
|
4
|
+
import { MaestroEventViewModel } from './view-models/MaestroEventViewModel';
|
|
5
|
+
import IMaestroKeyPlaysResponse from './modules/espn/key-plays/interfaces/IKeyPlaysResponse';
|
|
6
|
+
import { GlobalConfig, PageConfig } from './services/StaticService/types';
|
|
7
|
+
import { MaestroPanelType } from './models/IPanel';
|
|
8
|
+
export { ActionTrackEvent, ImpressionTrackEvent, Metadata, PanelClickAction, PanelViewAction, } from './services/AnalyticsService/types';
|
|
9
|
+
export { PanelEvent, IMaestroEventDelegate, IMaestroEvent, IMaestroKeyPlaysResponse, MaestroPanelType, SDKEventConfigParams, SDKStopEventParams, };
|
|
10
|
+
export { IUserSettings, DEFAULT_USER_SETTINGS, } from './interfaces/IUserSettings';
|
|
11
|
+
/**
|
|
12
|
+
* Main SDK class that serves as the entry point for the Maestro TV SDK
|
|
13
|
+
* Follows a singleton pattern similar to the Swift implementation
|
|
14
|
+
*/
|
|
15
|
+
declare class MaestroWebSDK implements IMaestroManager {
|
|
16
|
+
private static instance;
|
|
17
|
+
private renderer;
|
|
18
|
+
private siteID;
|
|
19
|
+
private maestroEventViewModel;
|
|
20
|
+
private pageConfig;
|
|
21
|
+
private globalConfig;
|
|
22
|
+
private globalConfigPoller;
|
|
23
|
+
private _analyticsService;
|
|
24
|
+
private isProdEnv;
|
|
25
|
+
private activePanelUnmountFn;
|
|
26
|
+
private constructor();
|
|
27
|
+
private get analyticsService();
|
|
28
|
+
/**
|
|
29
|
+
* @description Returns the MaestroWebSDK instance
|
|
30
|
+
* @returns {MaestroWebSDK} - The MaestroWebSDK instance
|
|
31
|
+
*/
|
|
32
|
+
static getInstance(): MaestroWebSDK;
|
|
33
|
+
userDidStartWatchingEvent({ eventId, pageId, userSettings, delegate, useProdEnv, }: SDKEventConfigParams): Promise<IMaestroEvent>;
|
|
34
|
+
userDidStopWatchingEvent(_config: SDKStopEventParams): Promise<void>;
|
|
35
|
+
configure(configParams: SDKConfigParams): void;
|
|
36
|
+
/**
|
|
37
|
+
* Sets the site ID for the SDK
|
|
38
|
+
* @param siteID The site ID to set
|
|
39
|
+
*/
|
|
40
|
+
setSiteID(siteID: string): void;
|
|
41
|
+
getSiteID(): string;
|
|
42
|
+
getIsProdEnv(): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Gets the event view model
|
|
45
|
+
* @returns The current event view model
|
|
46
|
+
*/
|
|
47
|
+
getMaestroEventViewModel(): MaestroEventViewModel;
|
|
48
|
+
renderPanel(id: string): Promise<() => Promise<void>>;
|
|
49
|
+
getPageConfig(): PageConfig | null;
|
|
50
|
+
getGlobalConfig(): GlobalConfig | null;
|
|
51
|
+
}
|
|
52
|
+
declare const SDK: MaestroWebSDK;
|
|
53
|
+
export default SDK;
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import ReactRenderer from './external/ReactRenderer';
|
|
2
|
+
import { MaestroEventViewModel } from './view-models/MaestroEventViewModel';
|
|
3
|
+
import { UserSettingsManager } from './services/UserSettingsManager';
|
|
4
|
+
import StaticService from './services/StaticService';
|
|
5
|
+
import { MaestroPanelType } from './models/IPanel';
|
|
6
|
+
import AnalyticsService from './services/AnalyticsService/AnalyticsService';
|
|
7
|
+
export { MaestroPanelType, };
|
|
8
|
+
export { DEFAULT_USER_SETTINGS, } from './interfaces/IUserSettings';
|
|
9
|
+
/**
|
|
10
|
+
* Main SDK class that serves as the entry point for the Maestro TV SDK
|
|
11
|
+
* Follows a singleton pattern similar to the Swift implementation
|
|
12
|
+
*/
|
|
13
|
+
class MaestroWebSDK {
|
|
14
|
+
constructor(renderer) {
|
|
15
|
+
Object.defineProperty(this, "renderer", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true,
|
|
19
|
+
value: void 0
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(this, "siteID", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
configurable: true,
|
|
24
|
+
writable: true,
|
|
25
|
+
value: ''
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(this, "maestroEventViewModel", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true,
|
|
30
|
+
writable: true,
|
|
31
|
+
value: null
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(this, "pageConfig", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true,
|
|
37
|
+
value: null
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(this, "globalConfig", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
configurable: true,
|
|
42
|
+
writable: true,
|
|
43
|
+
value: null
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(this, "globalConfigPoller", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
configurable: true,
|
|
48
|
+
writable: true,
|
|
49
|
+
value: null
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(this, "_analyticsService", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
configurable: true,
|
|
54
|
+
writable: true,
|
|
55
|
+
value: null
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(this, "isProdEnv", {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
configurable: true,
|
|
60
|
+
writable: true,
|
|
61
|
+
value: true
|
|
62
|
+
});
|
|
63
|
+
Object.defineProperty(this, "activePanelUnmountFn", {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
configurable: true,
|
|
66
|
+
writable: true,
|
|
67
|
+
value: null
|
|
68
|
+
});
|
|
69
|
+
this.renderer = renderer;
|
|
70
|
+
}
|
|
71
|
+
get analyticsService() {
|
|
72
|
+
if (!this._analyticsService) {
|
|
73
|
+
this._analyticsService = new AnalyticsService();
|
|
74
|
+
}
|
|
75
|
+
return this._analyticsService;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* @description Returns the MaestroWebSDK instance
|
|
79
|
+
* @returns {MaestroWebSDK} - The MaestroWebSDK instance
|
|
80
|
+
*/
|
|
81
|
+
static getInstance() {
|
|
82
|
+
if (!MaestroWebSDK.instance) {
|
|
83
|
+
const renderer = new ReactRenderer();
|
|
84
|
+
MaestroWebSDK.instance = new MaestroWebSDK(renderer);
|
|
85
|
+
}
|
|
86
|
+
return MaestroWebSDK.instance;
|
|
87
|
+
}
|
|
88
|
+
async userDidStartWatchingEvent({ eventId, pageId, userSettings, delegate, useProdEnv = true, }) {
|
|
89
|
+
this.isProdEnv = useProdEnv;
|
|
90
|
+
// Fetch page config before initializing view models
|
|
91
|
+
const siteId = this.getSiteID();
|
|
92
|
+
if (!siteId || siteId.trim() === '') {
|
|
93
|
+
throw new Error('siteID must be set before calling userDidStartWatchingEvent.');
|
|
94
|
+
}
|
|
95
|
+
if (!eventId && !pageId) {
|
|
96
|
+
throw new Error('Either eventId or pageId must be provided to load the page configuration.');
|
|
97
|
+
}
|
|
98
|
+
const staticService = new StaticService(siteId);
|
|
99
|
+
this.pageConfig = await staticService.fetchPageConfig({
|
|
100
|
+
siteId,
|
|
101
|
+
metadataValue: eventId,
|
|
102
|
+
pageId,
|
|
103
|
+
});
|
|
104
|
+
if (!this.pageConfig) {
|
|
105
|
+
throw new Error(`Could not determine page configuration for siteId: ${siteId}, pageId: ${pageId} and eventId: ${eventId}.`);
|
|
106
|
+
}
|
|
107
|
+
this.globalConfigPoller = staticService.pollGlobalConfig((data) => {
|
|
108
|
+
this.globalConfig = data;
|
|
109
|
+
});
|
|
110
|
+
// Initialize user settings if provided
|
|
111
|
+
if (userSettings) {
|
|
112
|
+
UserSettingsManager.getInstance().updateSettings(userSettings);
|
|
113
|
+
}
|
|
114
|
+
await this.analyticsService.SDKSessionStart();
|
|
115
|
+
this.maestroEventViewModel = new MaestroEventViewModel(eventId, pageId, delegate, this.analyticsService);
|
|
116
|
+
await this.maestroEventViewModel.initViewModels();
|
|
117
|
+
await this.analyticsService.pageSessionStart();
|
|
118
|
+
return this.maestroEventViewModel;
|
|
119
|
+
}
|
|
120
|
+
async userDidStopWatchingEvent(_config) {
|
|
121
|
+
if (this.activePanelUnmountFn) {
|
|
122
|
+
await this.activePanelUnmountFn();
|
|
123
|
+
}
|
|
124
|
+
await this.analyticsService.pageSessionEnd();
|
|
125
|
+
if (this.maestroEventViewModel) {
|
|
126
|
+
await this.maestroEventViewModel.deinit();
|
|
127
|
+
this.maestroEventViewModel = null;
|
|
128
|
+
}
|
|
129
|
+
await this.analyticsService.SDKSessionEnd();
|
|
130
|
+
if (this.globalConfigPoller) {
|
|
131
|
+
this.globalConfigPoller.stop();
|
|
132
|
+
this.globalConfigPoller = null;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
configure(configParams) {
|
|
136
|
+
this.setSiteID(configParams.siteID);
|
|
137
|
+
// Configure user settings if provided
|
|
138
|
+
if (configParams.userSettings) {
|
|
139
|
+
UserSettingsManager.getInstance().updateSettings(configParams.userSettings);
|
|
140
|
+
}
|
|
141
|
+
console.info('MaestroWebSDK configured', configParams);
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Sets the site ID for the SDK
|
|
145
|
+
* @param siteID The site ID to set
|
|
146
|
+
*/
|
|
147
|
+
setSiteID(siteID) {
|
|
148
|
+
if (!siteID || siteID.trim() === '') {
|
|
149
|
+
throw new Error('Site ID must be provided');
|
|
150
|
+
}
|
|
151
|
+
this.siteID = siteID;
|
|
152
|
+
}
|
|
153
|
+
getSiteID() {
|
|
154
|
+
return this.siteID;
|
|
155
|
+
}
|
|
156
|
+
getIsProdEnv() {
|
|
157
|
+
return this.isProdEnv;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Gets the event view model
|
|
161
|
+
* @returns The current event view model
|
|
162
|
+
*/
|
|
163
|
+
getMaestroEventViewModel() {
|
|
164
|
+
if (!this.maestroEventViewModel) {
|
|
165
|
+
throw new Error('No Maestro Event View Model set');
|
|
166
|
+
}
|
|
167
|
+
return this.maestroEventViewModel;
|
|
168
|
+
}
|
|
169
|
+
async renderPanel(id) {
|
|
170
|
+
await this.analyticsService.pinchBackSessionStart();
|
|
171
|
+
const panelUnmountFn = await this.renderer.renderPanel(id);
|
|
172
|
+
let isCleanedUp = false;
|
|
173
|
+
const cleanupFn = async () => {
|
|
174
|
+
if (isCleanedUp) {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
isCleanedUp = true;
|
|
178
|
+
// Unmount first so the UI is torn down immediately and any portals/handlers
|
|
179
|
+
// are cleaned up even if the caller doesn't await this async function.
|
|
180
|
+
panelUnmountFn();
|
|
181
|
+
await this.analyticsService.pinchBackSessionEnd();
|
|
182
|
+
if (this.activePanelUnmountFn === cleanupFn) {
|
|
183
|
+
this.activePanelUnmountFn = null;
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
this.activePanelUnmountFn = cleanupFn;
|
|
187
|
+
return cleanupFn;
|
|
188
|
+
}
|
|
189
|
+
getPageConfig() {
|
|
190
|
+
return this.pageConfig;
|
|
191
|
+
}
|
|
192
|
+
getGlobalConfig() {
|
|
193
|
+
return this.globalConfig;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
const SDK = MaestroWebSDK.getInstance();
|
|
197
|
+
export default SDK;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { MaestroPanelType } from '@/models/IPanel';
|
|
2
|
+
import IMaestroKeyPlaysResponse from '../modules/espn/key-plays/interfaces/IKeyPlaysResponse';
|
|
3
|
+
import { IUserSettings } from './IUserSettings';
|
|
4
|
+
/**
|
|
5
|
+
* This is the public API that the app can use to make calls to the SDK related to the currently-loaded event.
|
|
6
|
+
*/
|
|
7
|
+
export default interface IMaestroEvent {
|
|
8
|
+
/**
|
|
9
|
+
* @description Tells the SDK that the user just started playing a new key play clip at the given index.
|
|
10
|
+
* https://developers.maestro.io/sdk/web/maestro-event-interface/playback-controls/didStartPlayingClip
|
|
11
|
+
*/
|
|
12
|
+
didStartPlayingClip(index: number): void;
|
|
13
|
+
/**
|
|
14
|
+
* @description Tells the SDK that the user just stopped playing a key play clip at the given index.
|
|
15
|
+
* https://developers.maestro.io/sdk/web/maestro-event-interface/playback-controls/didStopPlayingClip
|
|
16
|
+
*/
|
|
17
|
+
didStopPlayingClip(index: number): void;
|
|
18
|
+
/**
|
|
19
|
+
* @description Tells the SDK that the user tried to play the clip but it failed to play back.
|
|
20
|
+
* https://developers.maestro.io/sdk/web/maestro-event-interface/playback-controls/didFailToPlayClip
|
|
21
|
+
*/
|
|
22
|
+
didFailToPlayClip(index: number): void;
|
|
23
|
+
/**
|
|
24
|
+
* @description Updates the SDK with the latest progress in the playback of the currently-played key play clip, from 0 to 1.
|
|
25
|
+
* https://developers.maestro.io/sdk/web/maestro-event-interface/playback-controls/didUpdatePlaybackProgressOfClip
|
|
26
|
+
*/
|
|
27
|
+
didUpdatePlaybackProgressOfClip(index: number, to: number): void;
|
|
28
|
+
/**
|
|
29
|
+
* @description Tells the SDK that the app displayed the MaestroPanel.
|
|
30
|
+
* https://developers.maestro.io/sdk/web/maestro-event-interface/panel-management/didShowPanel
|
|
31
|
+
*/
|
|
32
|
+
didShowPanel(): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* @description Tells the SDK that the app hid the MaestroPanel.
|
|
35
|
+
* https://developers.maestro.io/sdk/web/maestro-event-interface/panel-management/didHidePanel
|
|
36
|
+
*/
|
|
37
|
+
didHidePanel(): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* @description Alerts the SDK that the current event does not support key plays.
|
|
40
|
+
* https://developers.maestro.io/sdk/web/maestro-event-interface/panel-management/currentEventDoesNotSupportKeyPlays
|
|
41
|
+
*/
|
|
42
|
+
currentEventDoesNotSupportKeyPlays(): void;
|
|
43
|
+
/**
|
|
44
|
+
* @description Retrieves the event ID for the currently loaded event.
|
|
45
|
+
* https://developers.maestro.io/sdk/web/maestro-event-interface/state/getCurrentEventID
|
|
46
|
+
*/
|
|
47
|
+
getCurrentEventID(): string | null;
|
|
48
|
+
/**
|
|
49
|
+
* @description Retrieves the array index of the key play clip that is currently being played.
|
|
50
|
+
* https://developers.maestro.io/sdk/web/maestro-event-interface/state/getCurrentlyPlayingClipIndex
|
|
51
|
+
*/
|
|
52
|
+
getCurrentlyPlayingClipIndex(): number | null;
|
|
53
|
+
/**
|
|
54
|
+
* @description Retrieves the array index of the key plays clip that was most recently played.
|
|
55
|
+
* https://developers.maestro.io/sdk/web/maestro-event-interface/state/getLastPlayedClipIndex
|
|
56
|
+
*/
|
|
57
|
+
getLastPlayedClipIndex(): number | null;
|
|
58
|
+
/**
|
|
59
|
+
* @description Retrieves the progress (between 0 and 1) of the currently-played key play clip.
|
|
60
|
+
* https://developers.maestro.io/sdk/web/maestro-event-interface/state/getCurrentClipPlaybackProgress
|
|
61
|
+
*/
|
|
62
|
+
getCurrentClipPlaybackProgress(): number | null;
|
|
63
|
+
/**
|
|
64
|
+
* @description Retrieves the number of key plays.
|
|
65
|
+
* https://developers.maestro.io/sdk/web/maestro-event-interface/state/getKeyPlaysCount
|
|
66
|
+
*/
|
|
67
|
+
getKeyPlaysCount(): number | null;
|
|
68
|
+
/**
|
|
69
|
+
* @description Tells the SDK to start managing focus.
|
|
70
|
+
* https://developers.maestro.io/sdk/web/focus-management/parent-app-focus
|
|
71
|
+
*/
|
|
72
|
+
startFocusManagement(): Promise<void>;
|
|
73
|
+
/**
|
|
74
|
+
* @description Feeds the SDK new key plays data. A null value indicates a failure to retrieve the data.
|
|
75
|
+
* https://developers.maestro.io/sdk/web/maestro-event-interface/state/updateKeyPlaysData
|
|
76
|
+
*/
|
|
77
|
+
updateKeyPlaysData(data: IMaestroKeyPlaysResponse | null): Promise<void>;
|
|
78
|
+
updateUserSettings(settings: IUserSettings): Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* @description Updates the SDK with the current time code of the player.
|
|
81
|
+
* This is used to synchronize the SDK with the player's current time code.
|
|
82
|
+
* https://developers.maestro.io/sdk/web/maestro-event-interface/state/updatePlayerTimeCode
|
|
83
|
+
*/
|
|
84
|
+
updatePlayerTimeCode(timestamp: number): void;
|
|
85
|
+
/**
|
|
86
|
+
* @description Retrieves the current player time code stored in the SDK.
|
|
87
|
+
* https://developers.maestro.io/sdk/web/maestro-event-interface/state/getPlayerTimeCode
|
|
88
|
+
*/
|
|
89
|
+
getPlayerTimeCode(): number | null;
|
|
90
|
+
/**
|
|
91
|
+
* @description Sets data on panel view models. Interface to pass any data to any panel.
|
|
92
|
+
* @param {Record<string, any>} panelData - Object with panel names as keys and their data as values
|
|
93
|
+
* @example
|
|
94
|
+
* setDataToPanel({
|
|
95
|
+
* [panelType]: {
|
|
96
|
+
* overrideUrl: 'https://...',
|
|
97
|
+
* customProperty: 'value'
|
|
98
|
+
* },
|
|
99
|
+
* })
|
|
100
|
+
*/
|
|
101
|
+
setDataToPanel(panelData: Record<string, any>): void;
|
|
102
|
+
/**
|
|
103
|
+
* @description Sets the active panel in the Maestro SDK, if the panel is available and not hidden.
|
|
104
|
+
* @param {MaestroPanelType} panelType - The type of the panel to set as active
|
|
105
|
+
* https://developers.maestro.io/sdk/web/maestro-event-interface/state/setActivePanel
|
|
106
|
+
*/
|
|
107
|
+
setActivePanel(panelType: MaestroPanelType): void;
|
|
108
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ActionTrackEvent, ImpressionTrackEvent } from '@/services/AnalyticsService/types';
|
|
2
|
+
export type RequestLoginPanelEvent = {
|
|
3
|
+
type: 'fantasy:request:login';
|
|
4
|
+
payload: {
|
|
5
|
+
/**
|
|
6
|
+
* @description Callback to be called by the client app once the login process is completed, so the SDK can refresh its state accordingly.
|
|
7
|
+
*/
|
|
8
|
+
onLoginSuccess: () => void;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export type PanelEvent = RequestLoginPanelEvent;
|
|
12
|
+
/**
|
|
13
|
+
* @description Interface for the client app to implement in order to handle Maestro TV SDK events.
|
|
14
|
+
*/
|
|
15
|
+
export default interface IMaestroEventDelegate {
|
|
16
|
+
/**
|
|
17
|
+
* @description Allows the SDK to tell the client app that the user has encountered an error screen for lack of valid key
|
|
18
|
+
plays data, indicating the client app should call `updateKeyPlaysData` as soon as possible.
|
|
19
|
+
https://developers.maestro.io/sdk/web/event-delegate/userRequestedNewKeyPlaysData
|
|
20
|
+
*/
|
|
21
|
+
userRequestedNewKeyPlaysData(): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Allows the SDK to request the client app play a particular key plays clip, given its array index in the key plays list. Note that the `MaestroKeyPlaysResponse` subdivides the key plays by section, so the `index` referenced here assumes the client app has access to a flattened list of the key plays, disregarding the sectional subdivisions.
|
|
24
|
+
* https://developers.maestro.io/sdk/web/event-delegate/playClip
|
|
25
|
+
*/
|
|
26
|
+
playClip(atIndex: number): void;
|
|
27
|
+
/**
|
|
28
|
+
* @description SDK can notify the client app when its time to handle the focus management.
|
|
29
|
+
* https://developers.maestro.io/sdk/web/event-delegate/startFocusManagement
|
|
30
|
+
*/
|
|
31
|
+
startFocusManagement(): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* @description Check if the user is authenticated for betting.
|
|
34
|
+
* https://developers.maestro.io/sdk/web/event-delegate/userIsAuthenticated
|
|
35
|
+
*/
|
|
36
|
+
userIsAuthenticated(): Promise<boolean>;
|
|
37
|
+
/**
|
|
38
|
+
* @description Get the user's SWID for authenticated betting requests.
|
|
39
|
+
* https://developers.maestro.io/sdk/web/event-delegate/getUserSWID
|
|
40
|
+
*/
|
|
41
|
+
getUserSWID(): Promise<string | null>;
|
|
42
|
+
/**
|
|
43
|
+
* @description Get the user's Cookie token for authenticated betting requests.
|
|
44
|
+
* https://developers.maestro.io/sdk/web/event-delegate/getUserToken
|
|
45
|
+
*/
|
|
46
|
+
getUserToken(): Promise<string | null>;
|
|
47
|
+
/**
|
|
48
|
+
* @description Get the API base URL for betting-related requests.
|
|
49
|
+
* This baseURL is used to fetch betting data, such as odds and betting lines.
|
|
50
|
+
* https://developers.maestro.io/sdk/web/event-delegate/getBettingAPIBaseURL
|
|
51
|
+
*/
|
|
52
|
+
getBettingAPIBaseURL(): string;
|
|
53
|
+
/**
|
|
54
|
+
* @description Get the API base URL for stats-related requests.
|
|
55
|
+
* This baseURL is used to fetch stats data for the event.
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
getStatsAPIBaseURL(): string;
|
|
59
|
+
/**
|
|
60
|
+
* @description Track an user's action event for analytics. (i.e. key play clicked)
|
|
61
|
+
* https://developers.maestro.io/sdk/web/event-delegate/trackAction
|
|
62
|
+
*/
|
|
63
|
+
trackAction(action: ActionTrackEvent): void;
|
|
64
|
+
/**
|
|
65
|
+
* @description Track an impression event for analytics. (i.e. panel view)
|
|
66
|
+
* https://developers.maestro.io/sdk/web/event-delegate/trackImpression
|
|
67
|
+
*/
|
|
68
|
+
trackImpression(impression: ImpressionTrackEvent): void;
|
|
69
|
+
/**
|
|
70
|
+
* @description Notify the client app of a panel event within the SDK that may require handling by the client app. (i.e. request login)
|
|
71
|
+
* https://developers.maestro.io/sdk/web/event-delegate/onPanelEvent
|
|
72
|
+
*/
|
|
73
|
+
onPanelEvent(event: PanelEvent): void;
|
|
74
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import IMaestroEventDelegate from './IMaestroEventDelegate';
|
|
2
|
+
import IMaestroEvent from './IMaestroEvent';
|
|
3
|
+
import { IUserSettings } from './IUserSettings';
|
|
4
|
+
export type SDKConfigParams = {
|
|
5
|
+
/**
|
|
6
|
+
* The site ID to use for the SDK.
|
|
7
|
+
*/
|
|
8
|
+
siteID: string;
|
|
9
|
+
/**
|
|
10
|
+
* User settings for customizing SDK behavior (panel visibility, feature toggles, etc.)
|
|
11
|
+
*/
|
|
12
|
+
userSettings?: IUserSettings;
|
|
13
|
+
};
|
|
14
|
+
export type SDKStopEventParams = {
|
|
15
|
+
/**
|
|
16
|
+
* Event ID for the event being stopped.
|
|
17
|
+
*/
|
|
18
|
+
eventId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Page ID for the event being stopped.
|
|
21
|
+
*/
|
|
22
|
+
pageId?: string;
|
|
23
|
+
};
|
|
24
|
+
export type SDKEventConfigParams = {
|
|
25
|
+
/**
|
|
26
|
+
* The page ID to use to load the page configuration.
|
|
27
|
+
*/
|
|
28
|
+
pageId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* User settings for customizing SDK behavior (panel visibility, feature toggles, etc.)
|
|
31
|
+
*/
|
|
32
|
+
userSettings?: IUserSettings;
|
|
33
|
+
/**
|
|
34
|
+
* Event ID as metadata value to use to load the page configuration.
|
|
35
|
+
* This is typically used when the page ID is not known, but a metadata value is available.
|
|
36
|
+
*/
|
|
37
|
+
eventId?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The instance of the app's implementation of IMaestroEventDelegate
|
|
40
|
+
*/
|
|
41
|
+
delegate: IMaestroEventDelegate;
|
|
42
|
+
/**
|
|
43
|
+
* @description - Indicates whether to use the production environment for this event.
|
|
44
|
+
* @default true
|
|
45
|
+
*/
|
|
46
|
+
useProdEnv?: boolean;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
This is the MaestroKit top-level API for initializing and configuring the framework. It encompasses all functionality that is not specific to an event.
|
|
50
|
+
*/
|
|
51
|
+
export default interface IMaestroManager {
|
|
52
|
+
/**
|
|
53
|
+
* @description Configure the MaestroWebSDK.
|
|
54
|
+
* @param {SDKConfigParams} configParams - Configuration parameters
|
|
55
|
+
* @param {SDKConfigParams['siteID']} configParams.siteID - The site ID to use for the SDK.
|
|
56
|
+
* @param {SDKConfigParams['userSettings']} configParams.userSettings - User settings for customizing SDK behavior.
|
|
57
|
+
*/
|
|
58
|
+
configure(configParams: SDKConfigParams): void;
|
|
59
|
+
/**
|
|
60
|
+
Tells the SDK the user has opened an event in the app's player.
|
|
61
|
+
Arguments:
|
|
62
|
+
- eventID: The Event ID for the event opened in the player.
|
|
63
|
+
- delegate: an instance of the app's implementation of IMaestroEventDelegate
|
|
64
|
+
- userSettings: Optional user settings to override the configured settings for this event
|
|
65
|
+
The function returns an instance of MaestroEventViewModel, which includes an implementation of IMaestroEvent. IMaestroEvent represents the app-facing portion of the MaestroKit API related to the currently-loaded event. So after `userDidStartWatchingEvent` is called, the SDK has access to the API detailed in `MaestroEventDelegate` for making calls to the app, and the app has access to the API detailed in `IMaestroEvent` for making calls to the SDK.
|
|
66
|
+
*/
|
|
67
|
+
userDidStartWatchingEvent(config: SDKEventConfigParams): Promise<IMaestroEvent>;
|
|
68
|
+
/**
|
|
69
|
+
* @description Tells the SDK the user has closed an event that was open in the app's player.
|
|
70
|
+
* @param params - Parameters including eventId or pageId to identify the event being stopped.
|
|
71
|
+
* @param params.eventId - The Event ID for the event being stopped.
|
|
72
|
+
* @param params.pageId - The Page ID for the event being stopped.
|
|
73
|
+
*/
|
|
74
|
+
userDidStopWatchingEvent(params: SDKStopEventParams): Promise<void>;
|
|
75
|
+
/**
|
|
76
|
+
* Render the PanelManager with the available panels for the current event in the specified HTML id element.
|
|
77
|
+
* @param id - The ID of the HTML element where the panel will be rendered.
|
|
78
|
+
* @return A Promise that resolves to an async function to remove the panel when no longer needed.
|
|
79
|
+
*/
|
|
80
|
+
renderPanel(id: string): Promise<() => Promise<void>>;
|
|
81
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User settings interface for customizing Maestro Web SDK behavior
|
|
3
|
+
* Supports panel-level and feature-level customizations
|
|
4
|
+
*/
|
|
5
|
+
export interface IUserSettings {
|
|
6
|
+
panels?: {
|
|
7
|
+
bets?: {
|
|
8
|
+
/** Hide the entire bets panel from panel selection */
|
|
9
|
+
hidePanel?: boolean;
|
|
10
|
+
/** Hide wager values (dollar amounts) in betting cards */
|
|
11
|
+
hideWagers?: boolean;
|
|
12
|
+
};
|
|
13
|
+
stats?: {
|
|
14
|
+
/** Hide the entire stats panel from panel selection */
|
|
15
|
+
hidePanel?: boolean;
|
|
16
|
+
};
|
|
17
|
+
keyPlays?: {
|
|
18
|
+
/** Hide the entire key plays panel from panel selection */
|
|
19
|
+
hidePanel?: boolean;
|
|
20
|
+
};
|
|
21
|
+
fantasy?: {
|
|
22
|
+
/** Hide the entire fantasy panel from panel selection */
|
|
23
|
+
hidePanel?: boolean;
|
|
24
|
+
};
|
|
25
|
+
shop?: {
|
|
26
|
+
/** Hide the entire shop panel from panel selection */
|
|
27
|
+
hidePanel?: boolean;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Default user settings - all features enabled by default
|
|
33
|
+
*/
|
|
34
|
+
export declare const DEFAULT_USER_SETTINGS: IUserSettings;
|
|
35
|
+
/**
|
|
36
|
+
* Panel-specific settings type helpers
|
|
37
|
+
*/
|
|
38
|
+
export type BetsSettings = NonNullable<IUserSettings['panels']>['bets'];
|
|
39
|
+
export type StatsSettings = NonNullable<IUserSettings['panels']>['stats'];
|
|
40
|
+
export type KeyPlaysSettings = NonNullable<IUserSettings['panels']>['keyPlays'];
|
|
41
|
+
/**
|
|
42
|
+
* Utility type for getting panel settings by panel type
|
|
43
|
+
*/
|
|
44
|
+
export type PanelSettings<T extends keyof NonNullable<IUserSettings['panels']>> = NonNullable<IUserSettings['panels']>[T];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default user settings - all features enabled by default
|
|
3
|
+
*/
|
|
4
|
+
export const DEFAULT_USER_SETTINGS = {
|
|
5
|
+
panels: {
|
|
6
|
+
bets: {
|
|
7
|
+
hidePanel: false,
|
|
8
|
+
hideWagers: false,
|
|
9
|
+
},
|
|
10
|
+
stats: {
|
|
11
|
+
hidePanel: false,
|
|
12
|
+
},
|
|
13
|
+
keyPlays: {
|
|
14
|
+
hidePanel: false,
|
|
15
|
+
},
|
|
16
|
+
fantasy: {
|
|
17
|
+
hidePanel: false,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const MaestroPanelType: {
|
|
2
|
+
readonly ESPN_KEY_PLAYS: "espnKeyPlays";
|
|
3
|
+
readonly ESPN_STATS: "espnStats";
|
|
4
|
+
readonly ESPN_BETS: "espnBet";
|
|
5
|
+
readonly ESPN_FANTASY: "espnFantasy";
|
|
6
|
+
readonly ESPN_SHOP: "espnShop";
|
|
7
|
+
readonly HELLO_WORLD: "helloWorld";
|
|
8
|
+
readonly FOX_KEY_PLAYS: "foxKeyPlays";
|
|
9
|
+
readonly FOX_MULTI_VIEW: "foxMultiview";
|
|
10
|
+
readonly FOX_STATS: "foxStats";
|
|
11
|
+
readonly BUILDER_BLOCK_PANEL: "builderBlockPanel";
|
|
12
|
+
};
|
|
13
|
+
export type MaestroPanelType = typeof MaestroPanelType[keyof typeof MaestroPanelType];
|
|
14
|
+
export interface PanelTypeInfo {
|
|
15
|
+
id: MaestroPanelType;
|
|
16
|
+
name: string;
|
|
17
|
+
imageNamePrefix: string;
|
|
18
|
+
iconName: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const MaestroPanelType = {
|
|
2
|
+
ESPN_KEY_PLAYS: 'espnKeyPlays',
|
|
3
|
+
ESPN_STATS: 'espnStats',
|
|
4
|
+
ESPN_BETS: 'espnBet',
|
|
5
|
+
ESPN_FANTASY: 'espnFantasy',
|
|
6
|
+
ESPN_SHOP: 'espnShop',
|
|
7
|
+
HELLO_WORLD: 'helloWorld',
|
|
8
|
+
FOX_KEY_PLAYS: 'foxKeyPlays',
|
|
9
|
+
FOX_MULTI_VIEW: 'foxMultiview',
|
|
10
|
+
FOX_STATS: 'foxStats',
|
|
11
|
+
BUILDER_BLOCK_PANEL: 'builderBlockPanel',
|
|
12
|
+
};
|