@maestro_io/maestro-web-sdk 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/1.maestro-web-sdk.esm.js +2 -0
- package/dist/1.maestro-web-sdk.esm.js.map +1 -0
- package/dist/1.maestro-web-sdk.umd.js +2 -0
- package/dist/1.maestro-web-sdk.umd.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/10.maestro-web-sdk.umd.js +2 -0
- package/dist/10.maestro-web-sdk.umd.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/11.maestro-web-sdk.umd.js +2 -0
- package/dist/11.maestro-web-sdk.umd.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/12.maestro-web-sdk.umd.js +2 -0
- package/dist/12.maestro-web-sdk.umd.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/13.maestro-web-sdk.umd.js +2 -0
- package/dist/13.maestro-web-sdk.umd.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/14.maestro-web-sdk.umd.js +2 -0
- package/dist/14.maestro-web-sdk.umd.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/15.maestro-web-sdk.umd.js +2 -0
- package/dist/15.maestro-web-sdk.umd.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/16.maestro-web-sdk.umd.js +2 -0
- package/dist/16.maestro-web-sdk.umd.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/17.maestro-web-sdk.umd.js +2 -0
- package/dist/17.maestro-web-sdk.umd.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/18.maestro-web-sdk.umd.js +2 -0
- package/dist/18.maestro-web-sdk.umd.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/19.maestro-web-sdk.umd.js +2 -0
- package/dist/19.maestro-web-sdk.umd.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/2.maestro-web-sdk.umd.js +2 -0
- package/dist/2.maestro-web-sdk.umd.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/20.maestro-web-sdk.umd.js +2 -0
- package/dist/20.maestro-web-sdk.umd.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/21.maestro-web-sdk.umd.js +2 -0
- package/dist/21.maestro-web-sdk.umd.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/22.maestro-web-sdk.umd.js +2 -0
- package/dist/22.maestro-web-sdk.umd.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/23.maestro-web-sdk.umd.js +2 -0
- package/dist/23.maestro-web-sdk.umd.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/24.maestro-web-sdk.umd.js +2 -0
- package/dist/24.maestro-web-sdk.umd.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/3.maestro-web-sdk.umd.js +2 -0
- package/dist/3.maestro-web-sdk.umd.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/4.maestro-web-sdk.umd.js +2 -0
- package/dist/4.maestro-web-sdk.umd.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/5.maestro-web-sdk.umd.js +2 -0
- package/dist/5.maestro-web-sdk.umd.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/6.maestro-web-sdk.umd.js +2 -0
- package/dist/6.maestro-web-sdk.umd.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/7.maestro-web-sdk.umd.js +2 -0
- package/dist/7.maestro-web-sdk.umd.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/8.maestro-web-sdk.umd.js +2 -0
- package/dist/8.maestro-web-sdk.umd.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/9.maestro-web-sdk.umd.js +2 -0
- package/dist/9.maestro-web-sdk.umd.js.map +1 -0
- package/dist/bundle-report.html +53 -0
- package/dist/maestro-web-sdk.esm.js +2 -2
- package/dist/maestro-web-sdk.esm.js.map +1 -1
- package/dist/maestro-web-sdk.umd.js +2 -2
- package/dist/maestro-web-sdk.umd.js.map +1 -1
- package/dist/package.json +92 -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 +219 -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/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/HelloWorldIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/HelloWorldIcon.js +6 -0
- package/dist/src/components/atoms/SvgIcon/Icon.d.ts +39 -0
- package/dist/src/components/atoms/SvgIcon/Icon.js +44 -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 +86 -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 +6 -0
- package/dist/src/components/core/ScrollableContainer/FocusableItem.js +38 -0
- package/dist/src/components/core/ScrollableContainer/ScrollableContainer.d.ts +78 -0
- package/dist/src/components/core/ScrollableContainer/ScrollableContainer.js +169 -0
- package/dist/src/components/core/ScrollableContainer/index.d.ts +2 -0
- package/dist/src/components/core/ScrollableContainer/index.js +2 -0
- package/dist/src/components/molecules/ActionButton/ActionButton.d.ts +94 -0
- package/dist/src/components/molecules/ActionButton/ActionButton.js +10 -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/Overlay/Overlay.d.ts +34 -0
- package/dist/src/components/molecules/Overlay/Overlay.js +139 -0
- package/dist/src/components/molecules/Overlay/index.d.ts +2 -0
- package/dist/src/components/molecules/Overlay/index.js +2 -0
- package/dist/src/components/molecules/PanelNavButton/PanelNavButton.d.ts +104 -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 +94 -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 +30 -0
- package/dist/src/components/organisms/SegmentController/SegmentController.js +76 -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 +36 -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 +65 -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 +155 -0
- package/dist/src/external/spatial-navigation/spatialNavigation.js +876 -0
- package/dist/src/external/spatial-navigation/utils.d.ts +20 -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 +123 -0
- package/dist/src/external/spatial-navigation/withFocusable.js +245 -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/index.d.ts +54 -0
- package/dist/src/index.js +165 -0
- package/dist/src/interfaces/IMaestroEvent.d.ts +126 -0
- package/dist/src/interfaces/IMaestroEvent.js +18 -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 +45 -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 +15 -0
- package/dist/src/models/IPanel.js +40 -0
- package/dist/src/models/ITheme.d.ts +77 -0
- package/dist/src/models/ITheme.js +20 -0
- package/dist/src/models/IWinningBet.d.ts +7 -0
- package/dist/src/models/IWinningBet.js +1 -0
- package/dist/src/modules/bets/interfaces/IBets.d.ts +192 -0
- package/dist/src/modules/bets/interfaces/IBets.js +1 -0
- package/dist/src/modules/bets/mocks.d.ts +2 -0
- package/dist/src/modules/bets/mocks.js +573 -0
- package/dist/src/modules/bets/types/BetsAnalyticsTypes.d.ts +8 -0
- package/dist/src/modules/bets/types/BetsAnalyticsTypes.js +1 -0
- package/dist/src/modules/bets/view/BetsView.d.ts +28 -0
- package/dist/src/modules/bets/view/BetsView.js +143 -0
- package/dist/src/modules/bets/view/HotProps/HotPropsView.d.ts +100 -0
- package/dist/src/modules/bets/view/HotProps/HotPropsView.js +150 -0
- package/dist/src/modules/bets/view/SixPack/SixPackView.d.ts +23 -0
- package/dist/src/modules/bets/view/SixPack/SixPackView.js +110 -0
- package/dist/src/modules/bets/view/UserBets/BetResult/BetResult.d.ts +6 -0
- package/dist/src/modules/bets/view/UserBets/BetResult/BetResult.js +6 -0
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCard.d.ts +101 -0
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCard.js +149 -0
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardEvent.d.ts +26 -0
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardEvent.js +34 -0
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardFooter.d.ts +7 -0
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardFooter.js +18 -0
- package/dist/src/modules/bets/view/UserBets/Boost/Boost.d.ts +7 -0
- package/dist/src/modules/bets/view/UserBets/Boost/Boost.js +6 -0
- package/dist/src/modules/bets/view/UserBets/OutcomeBadge/OutcomeBadge.d.ts +6 -0
- package/dist/src/modules/bets/view/UserBets/OutcomeBadge/OutcomeBadge.js +9 -0
- package/dist/src/modules/bets/view/UserBets/Parlay/Parlay.d.ts +8 -0
- package/dist/src/modules/bets/view/UserBets/Parlay/Parlay.js +13 -0
- package/dist/src/modules/bets/view/UserBets/Straight/Straight.d.ts +7 -0
- package/dist/src/modules/bets/view/UserBets/Straight/Straight.js +6 -0
- package/dist/src/modules/bets/view/UserBets/Teaser/Teaser.d.ts +7 -0
- package/dist/src/modules/bets/view/UserBets/Teaser/Teaser.js +13 -0
- package/dist/src/modules/bets/view/UserBets/UserBetsView.d.ts +25 -0
- package/dist/src/modules/bets/view/UserBets/UserBetsView.js +107 -0
- package/dist/src/modules/bets/view/components/Bet/Bet.d.ts +158 -0
- package/dist/src/modules/bets/view/components/Bet/Bet.js +32 -0
- package/dist/src/modules/bets/view/components/BetPill/BetPill.d.ts +6 -0
- package/dist/src/modules/bets/view/components/BetPill/BetPill.js +6 -0
- package/dist/src/modules/bets/view/components/BetsCard/BetsCard.d.ts +10 -0
- package/dist/src/modules/bets/view/components/BetsCard/BetsCard.js +15 -0
- package/dist/src/modules/bets/view/components/BetsCard/BetsCardHeader.d.ts +16 -0
- package/dist/src/modules/bets/view/components/BetsCard/BetsCardHeader.js +20 -0
- package/dist/src/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.d.ts +8 -0
- package/dist/src/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.js +14 -0
- package/dist/src/modules/bets/view/components/LocationWarning/LocationWarning.d.ts +10 -0
- package/dist/src/modules/bets/view/components/LocationWarning/LocationWarning.js +16 -0
- package/dist/src/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.d.ts +18 -0
- package/dist/src/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.js +78 -0
- package/dist/src/modules/bets/view/components/PromoCodeBanner/index.d.ts +1 -0
- package/dist/src/modules/bets/view/components/PromoCodeBanner/index.js +1 -0
- package/dist/src/modules/bets/view-model/BetsViewModel.d.ts +219 -0
- package/dist/src/modules/bets/view-model/BetsViewModel.js +974 -0
- package/dist/src/modules/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.d.ts +28 -0
- package/dist/src/modules/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.js +107 -0
- package/dist/src/modules/fantasy/components/ExpandedAthleteList/index.d.ts +1 -0
- package/dist/src/modules/fantasy/components/ExpandedAthleteList/index.js +1 -0
- package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.d.ts +102 -0
- package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.js +20 -0
- package/dist/src/modules/fantasy/components/LeagueCard/index.d.ts +2 -0
- package/dist/src/modules/fantasy/components/LeagueCard/index.js +2 -0
- package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +99 -0
- package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.js +29 -0
- package/dist/src/modules/fantasy/components/TopPlayerCard/index.d.ts +2 -0
- package/dist/src/modules/fantasy/components/TopPlayerCard/index.js +2 -0
- package/dist/src/modules/fantasy/mocks.d.ts +7620 -0
- package/dist/src/modules/fantasy/mocks.js +3682 -0
- package/dist/src/modules/fantasy/types.d.ts +176 -0
- package/dist/src/modules/fantasy/types.js +6 -0
- package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.d.ts +21 -0
- package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.js +74 -0
- package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/index.js +2 -0
- package/dist/src/modules/fantasy/view/FantasyItemView.d.ts +22 -0
- package/dist/src/modules/fantasy/view/FantasyItemView.js +74 -0
- package/dist/src/modules/fantasy/view/FantasyView.d.ts +27 -0
- package/dist/src/modules/fantasy/view/FantasyView.js +133 -0
- package/dist/src/modules/fantasy/view/InactiveLeague/DraftDateCountdown.d.ts +23 -0
- package/dist/src/modules/fantasy/view/InactiveLeague/DraftDateCountdown.js +95 -0
- package/dist/src/modules/fantasy/view/InactiveLeague/InactiveLeague.d.ts +98 -0
- package/dist/src/modules/fantasy/view/InactiveLeague/InactiveLeague.js +13 -0
- package/dist/src/modules/fantasy/view/InactiveLeague/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/InactiveLeague/index.js +2 -0
- package/dist/src/modules/fantasy/view/LoginView/LoginView.d.ts +94 -0
- package/dist/src/modules/fantasy/view/LoginView/LoginView.js +27 -0
- package/dist/src/modules/fantasy/view/LoginView/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/LoginView/index.js +2 -0
- package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts +95 -0
- package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.js +25 -0
- package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/index.js +2 -0
- package/dist/src/modules/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.d.ts +14 -0
- package/dist/src/modules/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.js +9 -0
- package/dist/src/modules/fantasy/view/MatchupPair/MatchupPair.d.ts +100 -0
- package/dist/src/modules/fantasy/view/MatchupPair/MatchupPair.js +118 -0
- package/dist/src/modules/fantasy/view/MatchupPair/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/MatchupPair/index.js +2 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.d.ts +14 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.js +9 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/MatchupSingle.d.ts +100 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/MatchupSingle.js +108 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts +95 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.js +18 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/index.js +2 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/index.js +2 -0
- package/dist/src/modules/fantasy/view/PromoView/PromoView.d.ts +98 -0
- package/dist/src/modules/fantasy/view/PromoView/PromoView.js +12 -0
- package/dist/src/modules/fantasy/view/PromoView/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/PromoView/index.js +2 -0
- package/dist/src/modules/fantasy/view/TournamentBracketCard/TournamentBracketCard.d.ts +99 -0
- package/dist/src/modules/fantasy/view/TournamentBracketCard/TournamentBracketCard.js +33 -0
- package/dist/src/modules/fantasy/view/TournamentBracketCard/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/TournamentBracketCard/index.js +2 -0
- package/dist/src/modules/fantasy/view/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/index.js +2 -0
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.FantasyPolling.d.ts +32 -0
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.FantasyPolling.js +132 -0
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.LeagueManagerPolling.d.ts +32 -0
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.LeagueManagerPolling.js +141 -0
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.d.ts +148 -0
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.js +534 -0
- package/dist/src/modules/hello-world/HelloWorldImage.d.ts +2 -0
- package/dist/src/modules/hello-world/HelloWorldImage.js +32 -0
- package/dist/src/modules/hello-world/HelloWorldView.d.ts +11 -0
- package/dist/src/modules/hello-world/HelloWorldView.js +40 -0
- package/dist/src/modules/hello-world/index.d.ts +2 -0
- package/dist/src/modules/hello-world/index.js +2 -0
- package/dist/src/modules/key-plays/constants.d.ts +3 -0
- package/dist/src/modules/key-plays/constants.js +292 -0
- package/dist/src/modules/key-plays/interfaces/IKeyPlays.d.ts +32 -0
- package/dist/src/modules/key-plays/interfaces/IKeyPlays.js +14 -0
- package/dist/src/modules/key-plays/interfaces/IKeyPlaysResponse.d.ts +44 -0
- package/dist/src/modules/key-plays/interfaces/IKeyPlaysResponse.js +1 -0
- package/dist/src/modules/key-plays/view/KeyPlayCardScoreTagView.d.ts +9 -0
- package/dist/src/modules/key-plays/view/KeyPlayCardScoreTagView.js +16 -0
- package/dist/src/modules/key-plays/view/KeyPlayCardView.d.ts +39 -0
- package/dist/src/modules/key-plays/view/KeyPlayCardView.js +139 -0
- package/dist/src/modules/key-plays/view/KeyPlayErrorStateView.d.ts +13 -0
- package/dist/src/modules/key-plays/view/KeyPlayErrorStateView.js +65 -0
- package/dist/src/modules/key-plays/view/KeyPlaysView.d.ts +37 -0
- package/dist/src/modules/key-plays/view/KeyPlaysView.js +151 -0
- package/dist/src/modules/key-plays/view-model/KeyPlaysViewModel.d.ts +37 -0
- package/dist/src/modules/key-plays/view-model/KeyPlaysViewModel.js +246 -0
- package/dist/src/modules/shop/mocks.d.ts +22 -0
- package/dist/src/modules/shop/mocks.js +391 -0
- package/dist/src/modules/shop/types.d.ts +161 -0
- package/dist/src/modules/shop/types.js +7 -0
- package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.d.ts +9 -0
- package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.js +60 -0
- package/dist/src/modules/shop/view/ProductDetailView/index.d.ts +2 -0
- package/dist/src/modules/shop/view/ProductDetailView/index.js +2 -0
- package/dist/src/modules/shop/view/ShopView.d.ts +35 -0
- package/dist/src/modules/shop/view/ShopView.js +182 -0
- package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.d.ts +101 -0
- package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.js +23 -0
- package/dist/src/modules/shop/view/components/BrowseCard/index.d.ts +2 -0
- package/dist/src/modules/shop/view/components/BrowseCard/index.js +2 -0
- package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.d.ts +102 -0
- package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.js +26 -0
- package/dist/src/modules/shop/view/components/ProductSummaryCard/index.d.ts +2 -0
- package/dist/src/modules/shop/view/components/ProductSummaryCard/index.js +1 -0
- package/dist/src/modules/shop/view/components/ShopPromoView/ShopPromoView.d.ts +8 -0
- package/dist/src/modules/shop/view/components/ShopPromoView/ShopPromoView.js +19 -0
- package/dist/src/modules/shop/view/components/ShopPromoView/index.d.ts +1 -0
- package/dist/src/modules/shop/view/components/ShopPromoView/index.js +1 -0
- package/dist/src/modules/shop/view/components/ShopSection/ShopSection.d.ts +23 -0
- package/dist/src/modules/shop/view/components/ShopSection/ShopSection.js +61 -0
- package/dist/src/modules/shop/view/components/ShopSection/index.d.ts +1 -0
- package/dist/src/modules/shop/view/components/ShopSection/index.js +1 -0
- package/dist/src/modules/shop/view/index.d.ts +2 -0
- package/dist/src/modules/shop/view/index.js +2 -0
- package/dist/src/modules/shop/view-model/ShopViewModel.ShopPolling.d.ts +31 -0
- package/dist/src/modules/shop/view-model/ShopViewModel.ShopPolling.js +111 -0
- package/dist/src/modules/shop/view-model/ShopViewModel.d.ts +77 -0
- package/dist/src/modules/shop/view-model/ShopViewModel.js +357 -0
- package/dist/src/modules/stats/interfaces/IStats.d.ts +226 -0
- package/dist/src/modules/stats/interfaces/IStats.js +1 -0
- package/dist/src/modules/stats/mocks.d.ts +2 -0
- package/dist/src/modules/stats/mocks.js +746 -0
- package/dist/src/modules/stats/utils/driveSummaryUtils.d.ts +18 -0
- package/dist/src/modules/stats/utils/driveSummaryUtils.js +48 -0
- package/dist/src/modules/stats/utils/playerStatusUtils.d.ts +4 -0
- package/dist/src/modules/stats/utils/playerStatusUtils.js +16 -0
- package/dist/src/modules/stats/utils/renderTeamStatistic.d.ts +20 -0
- package/dist/src/modules/stats/utils/renderTeamStatistic.js +16 -0
- package/dist/src/modules/stats/utils.d.ts +39 -0
- package/dist/src/modules/stats/utils.js +62 -0
- package/dist/src/modules/stats/view/ActiveAthletes/ActiveAthletes.d.ts +22 -0
- package/dist/src/modules/stats/view/ActiveAthletes/ActiveAthletes.js +98 -0
- package/dist/src/modules/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.d.ts +4 -0
- package/dist/src/modules/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.js +27 -0
- package/dist/src/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.d.ts +22 -0
- package/dist/src/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.js +89 -0
- package/dist/src/modules/stats/view/ActiveAthletes/index.d.ts +2 -0
- package/dist/src/modules/stats/view/ActiveAthletes/index.js +2 -0
- package/dist/src/modules/stats/view/CareerMatchup/CareerMatchup.d.ts +100 -0
- package/dist/src/modules/stats/view/CareerMatchup/CareerMatchup.js +59 -0
- package/dist/src/modules/stats/view/CareerMatchup/index.d.ts +1 -0
- package/dist/src/modules/stats/view/CareerMatchup/index.js +1 -0
- package/dist/src/modules/stats/view/DriveSummary/DrivePlayCard.d.ts +106 -0
- package/dist/src/modules/stats/view/DriveSummary/DrivePlayCard.js +70 -0
- package/dist/src/modules/stats/view/DriveSummary/DriveSummary.d.ts +17 -0
- package/dist/src/modules/stats/view/DriveSummary/DriveSummary.js +87 -0
- package/dist/src/modules/stats/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.d.ts +27 -0
- package/dist/src/modules/stats/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.js +129 -0
- package/dist/src/modules/stats/view/DriveSummary/Header/DriveSummaryHeader.d.ts +12 -0
- package/dist/src/modules/stats/view/DriveSummary/Header/DriveSummaryHeader.js +26 -0
- package/dist/src/modules/stats/view/DriveSummary/MainStat/MainStat.d.ts +10 -0
- package/dist/src/modules/stats/view/DriveSummary/MainStat/MainStat.js +24 -0
- package/dist/src/modules/stats/view/DriveSummary/index.d.ts +2 -0
- package/dist/src/modules/stats/view/DriveSummary/index.js +2 -0
- package/dist/src/modules/stats/view/GameLeaders/GameLeaders.d.ts +21 -0
- package/dist/src/modules/stats/view/GameLeaders/GameLeaders.js +48 -0
- package/dist/src/modules/stats/view/GameLeaders/index.d.ts +2 -0
- package/dist/src/modules/stats/view/GameLeaders/index.js +2 -0
- package/dist/src/modules/stats/view/MatchPredictor/DonutChart/DonutChart.d.ts +17 -0
- package/dist/src/modules/stats/view/MatchPredictor/DonutChart/DonutChart.js +55 -0
- package/dist/src/modules/stats/view/MatchPredictor/DonutChart/index.d.ts +2 -0
- package/dist/src/modules/stats/view/MatchPredictor/DonutChart/index.js +1 -0
- package/dist/src/modules/stats/view/MatchPredictor/MatchPredictorView.d.ts +98 -0
- package/dist/src/modules/stats/view/MatchPredictor/MatchPredictorView.js +60 -0
- package/dist/src/modules/stats/view/MatchPredictor/index.d.ts +3 -0
- package/dist/src/modules/stats/view/MatchPredictor/index.js +2 -0
- package/dist/src/modules/stats/view/Penalties/Penalties.d.ts +9 -0
- package/dist/src/modules/stats/view/Penalties/Penalties.js +6 -0
- package/dist/src/modules/stats/view/Penalties/index.d.ts +2 -0
- package/dist/src/modules/stats/view/Penalties/index.js +2 -0
- package/dist/src/modules/stats/view/PlayerSeasonStats/ExpandedPlayerStats.d.ts +16 -0
- package/dist/src/modules/stats/view/PlayerSeasonStats/ExpandedPlayerStats.js +63 -0
- package/dist/src/modules/stats/view/PlayerSeasonStats/PlayerSeasonStatsCard.d.ts +97 -0
- package/dist/src/modules/stats/view/PlayerSeasonStats/PlayerSeasonStatsCard.js +26 -0
- package/dist/src/modules/stats/view/PlayerSeasonStats/PlayerSeasonStatsMinified.d.ts +6 -0
- package/dist/src/modules/stats/view/PlayerSeasonStats/PlayerSeasonStatsMinified.js +17 -0
- package/dist/src/modules/stats/view/PlayerSeasonStats/PlayerSeasonStatsView.d.ts +8 -0
- package/dist/src/modules/stats/view/PlayerSeasonStats/PlayerSeasonStatsView.js +165 -0
- package/dist/src/modules/stats/view/PlayerSeasonStats/index.d.ts +1 -0
- package/dist/src/modules/stats/view/PlayerSeasonStats/index.js +1 -0
- package/dist/src/modules/stats/view/RecentGames/RecentGames.d.ts +98 -0
- package/dist/src/modules/stats/view/RecentGames/RecentGames.js +23 -0
- package/dist/src/modules/stats/view/RecentGames/index.d.ts +2 -0
- package/dist/src/modules/stats/view/RecentGames/index.js +2 -0
- package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.d.ts +30 -0
- package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.js +123 -0
- package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/index.d.ts +2 -0
- package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/index.js +2 -0
- package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/ScoreItem.d.ts +98 -0
- package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/ScoreItem.js +62 -0
- package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/index.d.ts +2 -0
- package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/index.js +2 -0
- package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/ScoresSection.d.ts +6 -0
- package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/ScoresSection.js +23 -0
- package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/index.d.ts +2 -0
- package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/index.js +2 -0
- package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.d.ts +29 -0
- package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.js +125 -0
- package/dist/src/modules/stats/view/ScoringSummary/index.d.ts +2 -0
- package/dist/src/modules/stats/view/ScoringSummary/index.js +2 -0
- package/dist/src/modules/stats/view/StatsItemView.d.ts +22 -0
- package/dist/src/modules/stats/view/StatsItemView.js +92 -0
- package/dist/src/modules/stats/view/StatsQRCode/StatsQRCodeView.d.ts +98 -0
- package/dist/src/modules/stats/view/StatsQRCode/StatsQRCodeView.js +36 -0
- package/dist/src/modules/stats/view/StatsQRCode/index.d.ts +2 -0
- package/dist/src/modules/stats/view/StatsQRCode/index.js +1 -0
- package/dist/src/modules/stats/view/StatsView.d.ts +27 -0
- package/dist/src/modules/stats/view/StatsView.js +137 -0
- package/dist/src/modules/stats/view/TeamStats/TeamStatsView.d.ts +98 -0
- package/dist/src/modules/stats/view/TeamStats/TeamStatsView.js +43 -0
- package/dist/src/modules/stats/view/TeamStats/index.d.ts +2 -0
- package/dist/src/modules/stats/view/TeamStats/index.js +1 -0
- package/dist/src/modules/stats/view/Teams/StatsCarousel.d.ts +25 -0
- package/dist/src/modules/stats/view/Teams/StatsCarousel.js +83 -0
- package/dist/src/modules/stats/view/Teams/StatsProgressBar.d.ts +6 -0
- package/dist/src/modules/stats/view/Teams/StatsProgressBar.js +19 -0
- package/dist/src/modules/stats/view/Teams/Teams.d.ts +98 -0
- package/dist/src/modules/stats/view/Teams/Teams.js +43 -0
- package/dist/src/modules/stats/view/Teams/index.d.ts +2 -0
- package/dist/src/modules/stats/view/Teams/index.js +2 -0
- package/dist/src/modules/stats/view/WinProbability/WinProbability.d.ts +98 -0
- package/dist/src/modules/stats/view/WinProbability/WinProbability.js +28 -0
- package/dist/src/modules/stats/view/WinProbability/index.d.ts +2 -0
- package/dist/src/modules/stats/view/WinProbability/index.js +2 -0
- package/dist/src/modules/stats/view/components/AthletesStatistics/AthletesStatistics.d.ts +113 -0
- package/dist/src/modules/stats/view/components/AthletesStatistics/AthletesStatistics.js +89 -0
- package/dist/src/modules/stats/view/components/AthletesStatistics/StatisticTable.d.ts +3 -0
- package/dist/src/modules/stats/view/components/AthletesStatistics/StatisticTable.js +12 -0
- package/dist/src/modules/stats/view/components/AthletesStatistics/index.d.ts +2 -0
- package/dist/src/modules/stats/view/components/AthletesStatistics/index.js +2 -0
- package/dist/src/modules/stats/view/index.d.ts +2 -0
- package/dist/src/modules/stats/view/index.js +2 -0
- package/dist/src/modules/stats/view-model/StatsViewModel.d.ts +241 -0
- package/dist/src/modules/stats/view-model/StatsViewModel.js +989 -0
- package/dist/src/sentry.d.ts +3 -0
- package/dist/src/sentry.js +31 -0
- package/dist/src/services/AnalyticsService/AnalyticsService.d.ts +84 -0
- package/dist/src/services/AnalyticsService/AnalyticsService.js +404 -0
- package/dist/src/services/AnalyticsService/types.d.ts +65 -0
- package/dist/src/services/AnalyticsService/types.js +1 -0
- package/dist/src/services/BetsService.d.ts +81 -0
- package/dist/src/services/BetsService.js +122 -0
- package/dist/src/services/FantasyService.d.ts +53 -0
- package/dist/src/services/FantasyService.js +92 -0
- package/dist/src/services/InsightsService/InsightsPayloadBuilder.d.ts +279 -0
- package/dist/src/services/InsightsService/InsightsPayloadBuilder.js +386 -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 +147 -0
- package/dist/src/services/NetworkManager/NetworkManager.js +457 -0
- package/dist/src/services/NetworkManager/NetworkManagerFactory.d.ts +42 -0
- package/dist/src/services/NetworkManager/NetworkManagerFactory.js +101 -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 +103 -0
- package/dist/src/services/NetworkManager/types.js +10 -0
- package/dist/src/services/ShopService.d.ts +23 -0
- package/dist/src/services/ShopService.js +46 -0
- package/dist/src/services/StaticService/StaticService.d.ts +12 -0
- package/dist/src/services/StaticService/StaticService.js +59 -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 +2 -0
- package/dist/src/services/StaticService/mocks.js +104 -0
- package/dist/src/services/StaticService/types.d.ts +76 -0
- package/dist/src/services/StaticService/types.js +1 -0
- package/dist/src/services/StatsService.d.ts +54 -0
- package/dist/src/services/StatsService.js +154 -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 +155 -0
- package/dist/src/test-polyfills.d.ts +1 -0
- package/dist/src/test-polyfills.js +15 -0
- package/dist/src/types/OverlayTypes.d.ts +43 -0
- package/dist/src/types/OverlayTypes.js +4 -0
- package/dist/src/view-models/MaestroEventViewModel.d.ts +63 -0
- package/dist/src/view-models/MaestroEventViewModel.js +304 -0
- package/dist/src/view-models/OverlayViewModel.d.ts +33 -0
- package/dist/src/view-models/OverlayViewModel.js +222 -0
- package/dist/src/view-models/PanelManagerViewModel.d.ts +46 -0
- package/dist/src/view-models/PanelManagerViewModel.js +212 -0
- package/dist/src/view-models/ViewModel.d.ts +12 -0
- package/dist/src/view-models/ViewModel.js +32 -0
- package/package.json +1 -1
|
@@ -0,0 +1,165 @@
|
|
|
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 initSentry from './sentry';
|
|
7
|
+
import AnalyticsService from './services/AnalyticsService/AnalyticsService';
|
|
8
|
+
// Export overlay components and types for client apps
|
|
9
|
+
export { default as Overlay } from './components/molecules/Overlay/Overlay';
|
|
10
|
+
export { OverlayType, } from './types/OverlayTypes';
|
|
11
|
+
export { MaestroPanelType, };
|
|
12
|
+
export { DEFAULT_USER_SETTINGS, } from './interfaces/IUserSettings';
|
|
13
|
+
/**
|
|
14
|
+
* Main SDK class that serves as the entry point for the Maestro TV SDK
|
|
15
|
+
* Follows a singleton pattern similar to the Swift implementation
|
|
16
|
+
*/
|
|
17
|
+
class MaestroWebSDK {
|
|
18
|
+
constructor(renderer) {
|
|
19
|
+
Object.defineProperty(this, "renderer", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true,
|
|
23
|
+
value: void 0
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(this, "siteID", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
configurable: true,
|
|
28
|
+
writable: true,
|
|
29
|
+
value: ''
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(this, "maestroEventViewModel", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
configurable: true,
|
|
34
|
+
writable: true,
|
|
35
|
+
value: null
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(this, "pageConfig", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
configurable: true,
|
|
40
|
+
writable: true,
|
|
41
|
+
value: null
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(this, "globalConfig", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
configurable: true,
|
|
46
|
+
writable: true,
|
|
47
|
+
value: null
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(this, "globalConfigPoller", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
configurable: true,
|
|
52
|
+
writable: true,
|
|
53
|
+
value: null
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(this, "analyticsService", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
configurable: true,
|
|
58
|
+
writable: true,
|
|
59
|
+
value: new AnalyticsService()
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(this, "staticService", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
configurable: true,
|
|
64
|
+
writable: true,
|
|
65
|
+
value: new StaticService()
|
|
66
|
+
});
|
|
67
|
+
this.renderer = renderer;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @description Returns the MaestroWebSDK instance
|
|
71
|
+
* @returns {MaestroWebSDK} - The MaestroWebSDK instance
|
|
72
|
+
*/
|
|
73
|
+
static getInstance() {
|
|
74
|
+
if (!MaestroWebSDK.instance) {
|
|
75
|
+
const renderer = new ReactRenderer();
|
|
76
|
+
MaestroWebSDK.instance = new MaestroWebSDK(renderer);
|
|
77
|
+
}
|
|
78
|
+
return MaestroWebSDK.instance;
|
|
79
|
+
}
|
|
80
|
+
async userDidStartWatchingEvent(eventID, delegate, userSettings) {
|
|
81
|
+
// Fetch page config before initializing view models
|
|
82
|
+
const siteId = this.getSiteID();
|
|
83
|
+
if (!siteId || siteId.trim() === '') {
|
|
84
|
+
throw new Error('siteID must be set before calling userDidStartWatchingEvent.');
|
|
85
|
+
}
|
|
86
|
+
if (!eventID || eventID.trim() === '') {
|
|
87
|
+
throw new Error('eventID must be provided to watch an event.');
|
|
88
|
+
}
|
|
89
|
+
this.pageConfig = await this.staticService.fetchPageConfig(siteId, eventID);
|
|
90
|
+
if (!this.pageConfig) {
|
|
91
|
+
throw new Error(`Could not determine page configuration for siteId: ${siteId} and eventID: ${eventID}.`);
|
|
92
|
+
}
|
|
93
|
+
this.globalConfigPoller = this.staticService.pollGlobalConfig((data) => {
|
|
94
|
+
this.globalConfig = data;
|
|
95
|
+
});
|
|
96
|
+
// Initialize user settings if provided
|
|
97
|
+
if (userSettings) {
|
|
98
|
+
UserSettingsManager.getInstance().updateSettings(userSettings);
|
|
99
|
+
}
|
|
100
|
+
initSentry();
|
|
101
|
+
await this.analyticsService.SDKSessionStart();
|
|
102
|
+
this.maestroEventViewModel = new MaestroEventViewModel(eventID, delegate);
|
|
103
|
+
await this.analyticsService.pageSessionStart();
|
|
104
|
+
return this.maestroEventViewModel;
|
|
105
|
+
}
|
|
106
|
+
async userDidStopWatchingEvent(_) {
|
|
107
|
+
await this.analyticsService.pageSessionEnd();
|
|
108
|
+
if (this.maestroEventViewModel) {
|
|
109
|
+
await this.maestroEventViewModel.deinit();
|
|
110
|
+
this.maestroEventViewModel = null;
|
|
111
|
+
}
|
|
112
|
+
await this.analyticsService.SDKSessionEnd();
|
|
113
|
+
if (this.globalConfigPoller) {
|
|
114
|
+
this.globalConfigPoller.stop();
|
|
115
|
+
this.globalConfigPoller = null;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
configure(configParams) {
|
|
119
|
+
this.setSiteID(configParams.siteID);
|
|
120
|
+
// Configure user settings if provided
|
|
121
|
+
if (configParams.userSettings) {
|
|
122
|
+
UserSettingsManager.getInstance().updateSettings(configParams.userSettings);
|
|
123
|
+
}
|
|
124
|
+
console.info('MaestroWebSDK configured', configParams);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Sets the site ID for the SDK
|
|
128
|
+
* @param siteID The site ID to set
|
|
129
|
+
*/
|
|
130
|
+
setSiteID(siteID) {
|
|
131
|
+
if (!siteID || siteID.trim() === '') {
|
|
132
|
+
throw new Error('Site ID must be provided');
|
|
133
|
+
}
|
|
134
|
+
this.siteID = siteID;
|
|
135
|
+
}
|
|
136
|
+
getSiteID() {
|
|
137
|
+
return this.siteID;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Gets the event view model
|
|
141
|
+
* @returns The current event view model
|
|
142
|
+
*/
|
|
143
|
+
getMaestroEventViewModel() {
|
|
144
|
+
if (!this.maestroEventViewModel) {
|
|
145
|
+
throw new Error('No Maestro Event View Model set');
|
|
146
|
+
}
|
|
147
|
+
return this.maestroEventViewModel;
|
|
148
|
+
}
|
|
149
|
+
async renderPanel(id) {
|
|
150
|
+
await this.analyticsService.pinchBackSessionStart();
|
|
151
|
+
const panelUnmountFn = await this.renderer.renderPanel(id);
|
|
152
|
+
return async () => {
|
|
153
|
+
await this.analyticsService.pinchBackSessionEnd();
|
|
154
|
+
panelUnmountFn();
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
getPageConfig() {
|
|
158
|
+
return this.pageConfig;
|
|
159
|
+
}
|
|
160
|
+
getGlobalConfig() {
|
|
161
|
+
return this.globalConfig;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
const SDK = MaestroWebSDK.getInstance();
|
|
165
|
+
export default SDK;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { MaestroPanelType } from '@/models/IPanel';
|
|
2
|
+
import IMaestroKeyPlaysResponse from '../modules/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
|
+
simulateUseCase<T = any>(useCase: TestUseCase, panelType: MaestroPanelType, testData?: T): void;
|
|
103
|
+
/**
|
|
104
|
+
* @description Sets the active panel in the Maestro SDK, if the panel is available and not hidden.
|
|
105
|
+
* @param {MaestroPanelType} panelType - The type of the panel to set as active
|
|
106
|
+
* https://developers.maestro.io/sdk/web/maestro-event-interface/state/setActivePanel
|
|
107
|
+
*/
|
|
108
|
+
setActivePanel(panelType: MaestroPanelType): void;
|
|
109
|
+
}
|
|
110
|
+
declare const TEST_USE_CASES: {
|
|
111
|
+
readonly betsTabLoadFailure: "betsTabLoadFailure";
|
|
112
|
+
readonly betsMockData: "betsMockData";
|
|
113
|
+
readonly betsLiveData: "betsLiveData";
|
|
114
|
+
readonly showBasketballPreGameStatsMockData: "showBasketballPreGameStatsMockData";
|
|
115
|
+
readonly showBasketballInGameStatsMockData: "showBasketballInGameStatsMockData";
|
|
116
|
+
readonly showFootballPreGameStatsMockData: "showFootballPreGameStatsMockData";
|
|
117
|
+
readonly showFootballInGameStatsMockData: "showFootballInGameStatsMockData";
|
|
118
|
+
readonly showHockeyPreGameStatsMockData: "showHockeyPreGameStatsMockData";
|
|
119
|
+
readonly showHockeyInGameStatsMockData: "showHockeyInGameStatsMockData";
|
|
120
|
+
readonly shopTabLoadFailure: "shopTabLoadFailure";
|
|
121
|
+
readonly shopEmptyState: "shopEmptyState";
|
|
122
|
+
readonly shopMockData: "shopMockData";
|
|
123
|
+
readonly shopLiveData: "shopLiveData";
|
|
124
|
+
};
|
|
125
|
+
export type TestUseCase = typeof TEST_USE_CASES[keyof typeof TEST_USE_CASES];
|
|
126
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const TEST_USE_CASES = {
|
|
2
|
+
betsTabLoadFailure: 'betsTabLoadFailure',
|
|
3
|
+
betsMockData: 'betsMockData',
|
|
4
|
+
betsLiveData: 'betsLiveData',
|
|
5
|
+
// Stats use cases
|
|
6
|
+
showBasketballPreGameStatsMockData: 'showBasketballPreGameStatsMockData',
|
|
7
|
+
showBasketballInGameStatsMockData: 'showBasketballInGameStatsMockData',
|
|
8
|
+
showFootballPreGameStatsMockData: 'showFootballPreGameStatsMockData',
|
|
9
|
+
showFootballInGameStatsMockData: 'showFootballInGameStatsMockData',
|
|
10
|
+
showHockeyPreGameStatsMockData: 'showHockeyPreGameStatsMockData',
|
|
11
|
+
showHockeyInGameStatsMockData: 'showHockeyInGameStatsMockData',
|
|
12
|
+
// Shop use cases
|
|
13
|
+
shopTabLoadFailure: 'shopTabLoadFailure',
|
|
14
|
+
shopEmptyState: 'shopEmptyState',
|
|
15
|
+
shopMockData: 'shopMockData',
|
|
16
|
+
shopLiveData: 'shopLiveData',
|
|
17
|
+
};
|
|
18
|
+
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,45 @@
|
|
|
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
|
+
/**
|
|
15
|
+
This is the MaestroKit top-level API for initializing and configuring the framework. It encompasses all functionality that is not specific to an event.
|
|
16
|
+
*/
|
|
17
|
+
export default interface IMaestroManager {
|
|
18
|
+
/**
|
|
19
|
+
* @description Configure the MaestroWebSDK.
|
|
20
|
+
* @param {SDKConfigParams} configParams - Configuration parameters
|
|
21
|
+
* @param {SDKConfigParams['siteID']} configParams.siteID - The site ID to use for the SDK.
|
|
22
|
+
* @param {SDKConfigParams['userSettings']} configParams.userSettings - User settings for customizing SDK behavior.
|
|
23
|
+
*/
|
|
24
|
+
configure(configParams: SDKConfigParams): void;
|
|
25
|
+
/**
|
|
26
|
+
Tells the SDK the user has opened an event in the app's player.
|
|
27
|
+
Arguments:
|
|
28
|
+
- eventID: The Event ID for the event opened in the player.
|
|
29
|
+
- delegate: an instance of the app's implementation of IMaestroEventDelegate
|
|
30
|
+
- userSettings: Optional user settings to override the configured settings for this event
|
|
31
|
+
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.
|
|
32
|
+
*/
|
|
33
|
+
userDidStartWatchingEvent(eventID: string, delegate: IMaestroEventDelegate, userSettings?: IUserSettings): Promise<IMaestroEvent>;
|
|
34
|
+
/**
|
|
35
|
+
* @description Tells the SDK the user has closed an event that was open in the app's player.
|
|
36
|
+
* @param eventID
|
|
37
|
+
*/
|
|
38
|
+
userDidStopWatchingEvent(eventID: string): void;
|
|
39
|
+
/**
|
|
40
|
+
* Render the PanelManager with the available panels for the current event in the specified HTML id element.
|
|
41
|
+
* @param id - The ID of the HTML element where the panel will be rendered.
|
|
42
|
+
* @return A Promise that resolves to an async function to remove the panel when no longer needed.
|
|
43
|
+
*/
|
|
44
|
+
renderPanel(id: string): Promise<() => Promise<void>>;
|
|
45
|
+
}
|
|
@@ -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,15 @@
|
|
|
1
|
+
export declare const MaestroPanelType: {
|
|
2
|
+
readonly KEY_PLAYS: "keyPlays";
|
|
3
|
+
readonly STATS: "stats";
|
|
4
|
+
readonly BETS: "bets";
|
|
5
|
+
readonly FANTASY: "fantasy";
|
|
6
|
+
readonly SHOP: "shop";
|
|
7
|
+
};
|
|
8
|
+
export type MaestroPanelType = typeof MaestroPanelType[keyof typeof MaestroPanelType];
|
|
9
|
+
export interface PanelTypeInfo {
|
|
10
|
+
id: MaestroPanelType;
|
|
11
|
+
name: string;
|
|
12
|
+
imageNamePrefix: string;
|
|
13
|
+
iconName: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const PANEL_TYPE_INFO: Record<MaestroPanelType, PanelTypeInfo>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export const MaestroPanelType = {
|
|
2
|
+
KEY_PLAYS: 'keyPlays',
|
|
3
|
+
STATS: 'stats',
|
|
4
|
+
BETS: 'bets',
|
|
5
|
+
FANTASY: 'fantasy',
|
|
6
|
+
SHOP: 'shop',
|
|
7
|
+
};
|
|
8
|
+
// The mapping information for each panel type
|
|
9
|
+
export const PANEL_TYPE_INFO = {
|
|
10
|
+
[MaestroPanelType.KEY_PLAYS]: {
|
|
11
|
+
id: MaestroPanelType.KEY_PLAYS,
|
|
12
|
+
name: 'Key Plays',
|
|
13
|
+
imageNamePrefix: 'Key-Plays',
|
|
14
|
+
iconName: 'keyPlays',
|
|
15
|
+
},
|
|
16
|
+
[MaestroPanelType.STATS]: {
|
|
17
|
+
id: MaestroPanelType.STATS,
|
|
18
|
+
name: 'Stats',
|
|
19
|
+
imageNamePrefix: 'Stats',
|
|
20
|
+
iconName: 'stats',
|
|
21
|
+
},
|
|
22
|
+
[MaestroPanelType.BETS]: {
|
|
23
|
+
id: MaestroPanelType.BETS,
|
|
24
|
+
name: 'Bets',
|
|
25
|
+
imageNamePrefix: 'Bets',
|
|
26
|
+
iconName: 'bets',
|
|
27
|
+
},
|
|
28
|
+
[MaestroPanelType.FANTASY]: {
|
|
29
|
+
iconName: 'fantasy',
|
|
30
|
+
id: MaestroPanelType.FANTASY,
|
|
31
|
+
imageNamePrefix: 'Fantasy',
|
|
32
|
+
name: 'Fantasy',
|
|
33
|
+
},
|
|
34
|
+
[MaestroPanelType.SHOP]: {
|
|
35
|
+
iconName: 'shop',
|
|
36
|
+
id: MaestroPanelType.SHOP,
|
|
37
|
+
imageNamePrefix: 'Shop',
|
|
38
|
+
name: 'Shop',
|
|
39
|
+
},
|
|
40
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import IModel from './IModel';
|
|
2
|
+
type ObjectValues<T> = T[keyof T];
|
|
3
|
+
export default interface ITheme extends IModel {
|
|
4
|
+
button: IThemeButton;
|
|
5
|
+
channelOfflineThumbnail?: string;
|
|
6
|
+
colors: IThemeColors;
|
|
7
|
+
creator: string;
|
|
8
|
+
desktopBackground?: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
logo?: string;
|
|
11
|
+
mobileBackground?: string;
|
|
12
|
+
mode?: ThemeModes;
|
|
13
|
+
name: string;
|
|
14
|
+
owner: string;
|
|
15
|
+
siteId?: string;
|
|
16
|
+
type: ThemeTypes;
|
|
17
|
+
typography: IThemeTypography;
|
|
18
|
+
}
|
|
19
|
+
export interface IThemeColors {
|
|
20
|
+
accentPrimary: string;
|
|
21
|
+
accentSecondary: string;
|
|
22
|
+
accentTertiary: string;
|
|
23
|
+
alertConfirmation: string;
|
|
24
|
+
alertError: string;
|
|
25
|
+
alertWarning: string;
|
|
26
|
+
highlightPrimary: string;
|
|
27
|
+
highlightSecondary: string;
|
|
28
|
+
highlightTertiary: string;
|
|
29
|
+
surface1: string;
|
|
30
|
+
surface2: string;
|
|
31
|
+
surface3: string;
|
|
32
|
+
surface4: string;
|
|
33
|
+
surface5: string;
|
|
34
|
+
surface6: string;
|
|
35
|
+
text100: string;
|
|
36
|
+
text200: string;
|
|
37
|
+
text300: string;
|
|
38
|
+
text400: string;
|
|
39
|
+
text500: string;
|
|
40
|
+
}
|
|
41
|
+
export interface IThemeButton {
|
|
42
|
+
borderRadius: BorderRadius;
|
|
43
|
+
textCapitalization: TextCapitalization;
|
|
44
|
+
}
|
|
45
|
+
export interface IThemeTypography {
|
|
46
|
+
body: string;
|
|
47
|
+
headline: string;
|
|
48
|
+
}
|
|
49
|
+
export interface IClassicThemeOptions {
|
|
50
|
+
accentPrimary: string;
|
|
51
|
+
accentSecondary: string;
|
|
52
|
+
}
|
|
53
|
+
export declare const BORDER_RADIUS: {
|
|
54
|
+
readonly rounded: "rounded";
|
|
55
|
+
readonly square: "square";
|
|
56
|
+
readonly pill: "pill";
|
|
57
|
+
};
|
|
58
|
+
export type BorderRadius = ObjectValues<typeof BORDER_RADIUS>;
|
|
59
|
+
export declare const TEXT_CAPITALIZATION: {
|
|
60
|
+
readonly lowercase: "lowercase";
|
|
61
|
+
readonly original: "original";
|
|
62
|
+
readonly uppercase: "uppercase";
|
|
63
|
+
};
|
|
64
|
+
export type TextCapitalization = ObjectValues<typeof TEXT_CAPITALIZATION>;
|
|
65
|
+
export declare const THEME_TYPES: {
|
|
66
|
+
readonly ADMIN: "admin";
|
|
67
|
+
readonly ADVANCED: "advanced";
|
|
68
|
+
readonly CLASSIC: "classic";
|
|
69
|
+
readonly CUSTOM: "custom";
|
|
70
|
+
};
|
|
71
|
+
export type ThemeTypes = ObjectValues<typeof THEME_TYPES>;
|
|
72
|
+
export declare const THEME_MODES: {
|
|
73
|
+
readonly DARK: "dark";
|
|
74
|
+
readonly LIGHT: "light";
|
|
75
|
+
};
|
|
76
|
+
export type ThemeModes = ObjectValues<typeof THEME_MODES>;
|
|
77
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const BORDER_RADIUS = {
|
|
2
|
+
rounded: 'rounded',
|
|
3
|
+
square: 'square',
|
|
4
|
+
pill: 'pill',
|
|
5
|
+
};
|
|
6
|
+
export const TEXT_CAPITALIZATION = {
|
|
7
|
+
lowercase: 'lowercase',
|
|
8
|
+
original: 'original',
|
|
9
|
+
uppercase: 'uppercase',
|
|
10
|
+
};
|
|
11
|
+
export const THEME_TYPES = {
|
|
12
|
+
ADMIN: 'admin',
|
|
13
|
+
ADVANCED: 'advanced',
|
|
14
|
+
CLASSIC: 'classic',
|
|
15
|
+
CUSTOM: 'custom',
|
|
16
|
+
};
|
|
17
|
+
export const THEME_MODES = {
|
|
18
|
+
DARK: 'dark',
|
|
19
|
+
LIGHT: 'light',
|
|
20
|
+
};
|