@maestro_io/maestro-web-sdk 5.2.1 → 5.3.0
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/README.md +25 -0
- package/dist/index.d.ts +7 -6
- package/dist/maestro-web-sdk.esm.js +1 -10
- package/dist/maestro-web-sdk.esm.js.map +1 -1
- package/dist/maestro-web-sdk.umd.js +1 -10
- package/dist/maestro-web-sdk.umd.js.map +1 -1
- package/package.json +32 -33
- package/dist/1.maestro-web-sdk.esm.js +0 -2
- package/dist/1.maestro-web-sdk.esm.js.map +0 -1
- package/dist/10.maestro-web-sdk.esm.js +0 -2
- package/dist/10.maestro-web-sdk.esm.js.map +0 -1
- package/dist/11.maestro-web-sdk.esm.js +0 -2
- package/dist/11.maestro-web-sdk.esm.js.map +0 -1
- package/dist/12.maestro-web-sdk.esm.js +0 -2
- package/dist/12.maestro-web-sdk.esm.js.map +0 -1
- package/dist/13.maestro-web-sdk.esm.js +0 -2
- package/dist/13.maestro-web-sdk.esm.js.map +0 -1
- package/dist/14.maestro-web-sdk.esm.js +0 -2
- package/dist/14.maestro-web-sdk.esm.js.map +0 -1
- package/dist/15.maestro-web-sdk.esm.js +0 -2
- package/dist/15.maestro-web-sdk.esm.js.map +0 -1
- package/dist/16.maestro-web-sdk.esm.js +0 -2
- package/dist/16.maestro-web-sdk.esm.js.map +0 -1
- package/dist/17.maestro-web-sdk.esm.js +0 -2
- package/dist/17.maestro-web-sdk.esm.js.map +0 -1
- package/dist/18.maestro-web-sdk.esm.js +0 -2
- package/dist/18.maestro-web-sdk.esm.js.map +0 -1
- package/dist/19.maestro-web-sdk.esm.js +0 -2
- package/dist/19.maestro-web-sdk.esm.js.map +0 -1
- package/dist/2.maestro-web-sdk.esm.js +0 -2
- package/dist/2.maestro-web-sdk.esm.js.map +0 -1
- package/dist/20.maestro-web-sdk.esm.js +0 -2
- package/dist/20.maestro-web-sdk.esm.js.map +0 -1
- package/dist/21.maestro-web-sdk.esm.js +0 -2
- package/dist/21.maestro-web-sdk.esm.js.map +0 -1
- package/dist/22.maestro-web-sdk.esm.js +0 -2
- package/dist/22.maestro-web-sdk.esm.js.map +0 -1
- package/dist/23.maestro-web-sdk.esm.js +0 -2
- package/dist/23.maestro-web-sdk.esm.js.map +0 -1
- package/dist/24.maestro-web-sdk.esm.js +0 -2
- package/dist/24.maestro-web-sdk.esm.js.map +0 -1
- package/dist/25.maestro-web-sdk.esm.js +0 -2
- package/dist/25.maestro-web-sdk.esm.js.map +0 -1
- package/dist/26.maestro-web-sdk.esm.js +0 -2
- package/dist/26.maestro-web-sdk.esm.js.map +0 -1
- package/dist/27.maestro-web-sdk.esm.js +0 -2
- package/dist/27.maestro-web-sdk.esm.js.map +0 -1
- package/dist/28.maestro-web-sdk.esm.js +0 -2
- package/dist/28.maestro-web-sdk.esm.js.map +0 -1
- package/dist/29.maestro-web-sdk.esm.js +0 -2
- package/dist/29.maestro-web-sdk.esm.js.map +0 -1
- package/dist/3.maestro-web-sdk.esm.js +0 -2
- package/dist/3.maestro-web-sdk.esm.js.map +0 -1
- package/dist/30.maestro-web-sdk.esm.js +0 -2
- package/dist/30.maestro-web-sdk.esm.js.map +0 -1
- package/dist/31.maestro-web-sdk.esm.js +0 -2
- package/dist/31.maestro-web-sdk.esm.js.map +0 -1
- package/dist/32.maestro-web-sdk.esm.js +0 -2
- package/dist/32.maestro-web-sdk.esm.js.map +0 -1
- package/dist/33.maestro-web-sdk.esm.js +0 -2
- package/dist/33.maestro-web-sdk.esm.js.map +0 -1
- package/dist/34.maestro-web-sdk.esm.js +0 -2
- package/dist/34.maestro-web-sdk.esm.js.map +0 -1
- package/dist/35.maestro-web-sdk.esm.js +0 -2
- package/dist/35.maestro-web-sdk.esm.js.map +0 -1
- package/dist/36.maestro-web-sdk.esm.js +0 -2
- package/dist/36.maestro-web-sdk.esm.js.map +0 -1
- package/dist/37.maestro-web-sdk.esm.js +0 -2
- package/dist/37.maestro-web-sdk.esm.js.map +0 -1
- package/dist/38.maestro-web-sdk.esm.js +0 -2
- package/dist/38.maestro-web-sdk.esm.js.map +0 -1
- package/dist/39.maestro-web-sdk.esm.js +0 -2
- package/dist/39.maestro-web-sdk.esm.js.map +0 -1
- package/dist/4.maestro-web-sdk.esm.js +0 -2
- package/dist/4.maestro-web-sdk.esm.js.map +0 -1
- package/dist/40.maestro-web-sdk.esm.js +0 -2
- package/dist/40.maestro-web-sdk.esm.js.map +0 -1
- package/dist/5.maestro-web-sdk.esm.js +0 -2
- package/dist/5.maestro-web-sdk.esm.js.map +0 -1
- package/dist/6.maestro-web-sdk.esm.js +0 -2
- package/dist/6.maestro-web-sdk.esm.js.map +0 -1
- package/dist/7.maestro-web-sdk.esm.js +0 -2
- package/dist/7.maestro-web-sdk.esm.js.map +0 -1
- package/dist/8.maestro-web-sdk.esm.js +0 -2
- package/dist/8.maestro-web-sdk.esm.js.map +0 -1
- package/dist/9.maestro-web-sdk.esm.js +0 -2
- package/dist/9.maestro-web-sdk.esm.js.map +0 -1
- package/dist/package.json +0 -94
- package/dist/src/components/atoms/BaseButton/BaseButton.d.ts +0 -7
- package/dist/src/components/atoms/BaseButton/BaseButton.js +0 -11
- package/dist/src/components/atoms/BaseButton/index.d.ts +0 -2
- package/dist/src/components/atoms/BaseButton/index.js +0 -2
- package/dist/src/components/atoms/Image/index.d.ts +0 -13
- package/dist/src/components/atoms/Image/index.js +0 -34
- package/dist/src/components/atoms/Rive/index.d.ts +0 -221
- package/dist/src/components/atoms/Rive/index.js +0 -53
- package/dist/src/components/atoms/SvgIcon/AddIcon.d.ts +0 -3
- package/dist/src/components/atoms/SvgIcon/AddIcon.js +0 -6
- package/dist/src/components/atoms/SvgIcon/BetGeneralIcon.d.ts +0 -3
- package/dist/src/components/atoms/SvgIcon/BetGeneralIcon.js +0 -9
- package/dist/src/components/atoms/SvgIcon/BetsIcon.d.ts +0 -3
- package/dist/src/components/atoms/SvgIcon/BetsIcon.js +0 -8
- package/dist/src/components/atoms/SvgIcon/BetsWarningIcon.d.ts +0 -7
- package/dist/src/components/atoms/SvgIcon/BetsWarningIcon.js +0 -11
- package/dist/src/components/atoms/SvgIcon/BuilderIcon.d.ts +0 -3
- package/dist/src/components/atoms/SvgIcon/BuilderIcon.js +0 -8
- package/dist/src/components/atoms/SvgIcon/ChatIcon.d.ts +0 -3
- package/dist/src/components/atoms/SvgIcon/ChatIcon.js +0 -6
- package/dist/src/components/atoms/SvgIcon/CheckmarkIcon.d.ts +0 -3
- package/dist/src/components/atoms/SvgIcon/CheckmarkIcon.js +0 -6
- package/dist/src/components/atoms/SvgIcon/CollapseIcon.d.ts +0 -3
- package/dist/src/components/atoms/SvgIcon/CollapseIcon.js +0 -6
- package/dist/src/components/atoms/SvgIcon/ExpandIcon.d.ts +0 -3
- package/dist/src/components/atoms/SvgIcon/ExpandIcon.js +0 -6
- package/dist/src/components/atoms/SvgIcon/FantasyIcon.d.ts +0 -7
- package/dist/src/components/atoms/SvgIcon/FantasyIcon.js +0 -15
- package/dist/src/components/atoms/SvgIcon/FlameIcon.d.ts +0 -7
- package/dist/src/components/atoms/SvgIcon/FlameIcon.js +0 -11
- package/dist/src/components/atoms/SvgIcon/FoxKeyPlaysIcon.d.ts +0 -3
- package/dist/src/components/atoms/SvgIcon/FoxKeyPlaysIcon.js +0 -7
- package/dist/src/components/atoms/SvgIcon/FoxMultiViewIcon.d.ts +0 -3
- package/dist/src/components/atoms/SvgIcon/FoxMultiViewIcon.js +0 -10
- package/dist/src/components/atoms/SvgIcon/FoxStatsIcon.d.ts +0 -3
- package/dist/src/components/atoms/SvgIcon/FoxStatsIcon.js +0 -7
- package/dist/src/components/atoms/SvgIcon/HelloWorldIcon.d.ts +0 -3
- package/dist/src/components/atoms/SvgIcon/HelloWorldIcon.js +0 -6
- package/dist/src/components/atoms/SvgIcon/Icon.d.ts +0 -15
- package/dist/src/components/atoms/SvgIcon/Icon.js +0 -70
- package/dist/src/components/atoms/SvgIcon/KeyPlaysIcon.d.ts +0 -6
- package/dist/src/components/atoms/SvgIcon/KeyPlaysIcon.js +0 -10
- package/dist/src/components/atoms/SvgIcon/MobilePhoneIcon.d.ts +0 -7
- package/dist/src/components/atoms/SvgIcon/MobilePhoneIcon.js +0 -11
- package/dist/src/components/atoms/SvgIcon/PlayIcon.d.ts +0 -6
- package/dist/src/components/atoms/SvgIcon/PlayIcon.js +0 -8
- package/dist/src/components/atoms/SvgIcon/ShopIcon.d.ts +0 -5
- package/dist/src/components/atoms/SvgIcon/ShopIcon.js +0 -7
- package/dist/src/components/atoms/SvgIcon/ShopifyIcon.d.ts +0 -3
- package/dist/src/components/atoms/SvgIcon/ShopifyIcon.js +0 -6
- package/dist/src/components/atoms/SvgIcon/StatsIcon.d.ts +0 -6
- package/dist/src/components/atoms/SvgIcon/StatsIcon.js +0 -12
- package/dist/src/components/atoms/SvgIcon/TimesIcon.d.ts +0 -3
- package/dist/src/components/atoms/SvgIcon/TimesIcon.js +0 -6
- package/dist/src/components/atoms/SvgIcon/WarningIcon.d.ts +0 -6
- package/dist/src/components/atoms/SvgIcon/WarningIcon.js +0 -8
- package/dist/src/components/atoms/SvgIcon/index.d.ts +0 -2
- package/dist/src/components/atoms/SvgIcon/index.js +0 -2
- package/dist/src/components/core/App/App.d.ts +0 -11
- package/dist/src/components/core/App/App.js +0 -35
- package/dist/src/components/core/App/index.d.ts +0 -2
- package/dist/src/components/core/App/index.js +0 -2
- package/dist/src/components/core/PanelManager/PanelManager.d.ts +0 -21
- package/dist/src/components/core/PanelManager/PanelManager.js +0 -104
- package/dist/src/components/core/PanelManager/index.d.ts +0 -2
- package/dist/src/components/core/PanelManager/index.js +0 -2
- package/dist/src/components/core/ScrollableContainer/FocusableItem.d.ts +0 -11
- package/dist/src/components/core/ScrollableContainer/FocusableItem.js +0 -24
- package/dist/src/components/core/ScrollableContainer/ScrollableContainer.d.ts +0 -54
- package/dist/src/components/core/ScrollableContainer/ScrollableContainer.js +0 -111
- package/dist/src/components/core/ScrollableContainer/index.d.ts +0 -6
- package/dist/src/components/core/ScrollableContainer/index.js +0 -5
- package/dist/src/components/core/ScrollableContainer/useScrollableContainer.d.ts +0 -14
- package/dist/src/components/core/ScrollableContainer/useScrollableContainer.js +0 -22
- package/dist/src/components/molecules/ActionButton/ActionButton.d.ts +0 -96
- package/dist/src/components/molecules/ActionButton/ActionButton.js +0 -15
- package/dist/src/components/molecules/ActionButton/index.d.ts +0 -2
- package/dist/src/components/molecules/ActionButton/index.js +0 -2
- package/dist/src/components/molecules/HeadshotImage/HeadshotImage.d.ts +0 -16
- package/dist/src/components/molecules/HeadshotImage/HeadshotImage.js +0 -50
- package/dist/src/components/molecules/HeadshotImage/index.d.ts +0 -2
- package/dist/src/components/molecules/HeadshotImage/index.js +0 -2
- package/dist/src/components/molecules/NetworkDialog/NetworkDialog.d.ts +0 -11
- package/dist/src/components/molecules/NetworkDialog/NetworkDialog.js +0 -34
- package/dist/src/components/molecules/NetworkDialog/index.d.ts +0 -2
- package/dist/src/components/molecules/NetworkDialog/index.js +0 -2
- package/dist/src/components/molecules/NetworkError/NetworkError.d.ts +0 -104
- package/dist/src/components/molecules/NetworkError/NetworkError.js +0 -26
- package/dist/src/components/molecules/NetworkError/index.d.ts +0 -2
- package/dist/src/components/molecules/NetworkError/index.js +0 -2
- package/dist/src/components/molecules/PanelNavButton/PanelNavButton.d.ts +0 -107
- package/dist/src/components/molecules/PanelNavButton/PanelNavButton.js +0 -36
- package/dist/src/components/molecules/PanelNavButton/index.d.ts +0 -2
- package/dist/src/components/molecules/PanelNavButton/index.js +0 -2
- package/dist/src/components/molecules/SegmentButton/SegmentButton.d.ts +0 -9
- package/dist/src/components/molecules/SegmentButton/SegmentButton.js +0 -10
- package/dist/src/components/molecules/SegmentButton/index.d.ts +0 -2
- package/dist/src/components/molecules/SegmentButton/index.js +0 -2
- package/dist/src/components/molecules/TabLoadError/TabLoadError.d.ts +0 -96
- package/dist/src/components/molecules/TabLoadError/TabLoadError.js +0 -14
- package/dist/src/components/molecules/TabLoadError/index.d.ts +0 -2
- package/dist/src/components/molecules/TabLoadError/index.js +0 -2
- package/dist/src/components/molecules/WatchButton/WatchButton.d.ts +0 -10
- package/dist/src/components/molecules/WatchButton/WatchButton.js +0 -15
- package/dist/src/components/molecules/WatchButton/index.d.ts +0 -2
- package/dist/src/components/molecules/WatchButton/index.js +0 -2
- package/dist/src/components/organisms/PanelNavigation/PanelNavigation.d.ts +0 -17
- package/dist/src/components/organisms/PanelNavigation/PanelNavigation.js +0 -64
- package/dist/src/components/organisms/PanelNavigation/index.d.ts +0 -2
- package/dist/src/components/organisms/PanelNavigation/index.js +0 -2
- package/dist/src/components/organisms/SegmentController/SegmentController.d.ts +0 -12
- package/dist/src/components/organisms/SegmentController/SegmentController.js +0 -35
- package/dist/src/components/organisms/SegmentController/index.d.ts +0 -3
- package/dist/src/components/organisms/SegmentController/index.js +0 -2
- package/dist/src/development/MaestroEventDelegate.d.ts +0 -27
- package/dist/src/development/MaestroEventDelegate.js +0 -110
- package/dist/src/development/TimeSeek.d.ts +0 -22
- package/dist/src/development/TimeSeek.js +0 -218
- package/dist/src/development/development.d.ts +0 -1
- package/dist/src/development/development.js +0 -39
- package/dist/src/external/AxiosNetworkClient.d.ts +0 -28
- package/dist/src/external/AxiosNetworkClient.js +0 -110
- package/dist/src/external/LocalStorageCacheManager.d.ts +0 -65
- package/dist/src/external/LocalStorageCacheManager.js +0 -213
- package/dist/src/external/ReactRenderer.d.ts +0 -17
- package/dist/src/external/ReactRenderer.js +0 -66
- package/dist/src/external/mocks/MockExternalNetworkClient.d.ts +0 -104
- package/dist/src/external/mocks/MockExternalNetworkClient.js +0 -187
- package/dist/src/external/ports/cacheManager.d.ts +0 -17
- package/dist/src/external/ports/cacheManager.js +0 -1
- package/dist/src/external/ports/networkClient.d.ts +0 -19
- package/dist/src/external/ports/networkClient.js +0 -1
- package/dist/src/external/ports/renderer.d.ts +0 -4
- package/dist/src/external/ports/renderer.js +0 -1
- package/dist/src/external/spatial-navigation/__mocks__/withFocusable.d.ts +0 -8
- package/dist/src/external/spatial-navigation/__mocks__/withFocusable.js +0 -7
- package/dist/src/external/spatial-navigation/index.d.ts +0 -4
- package/dist/src/external/spatial-navigation/index.js +0 -3
- package/dist/src/external/spatial-navigation/measureLayout.d.ts +0 -2
- package/dist/src/external/spatial-navigation/measureLayout.js +0 -30
- package/dist/src/external/spatial-navigation/spatialNavigation.d.ts +0 -160
- package/dist/src/external/spatial-navigation/spatialNavigation.js +0 -944
- package/dist/src/external/spatial-navigation/utils.d.ts +0 -22
- package/dist/src/external/spatial-navigation/utils.js +0 -6
- package/dist/src/external/spatial-navigation/visualDebugger.d.ts +0 -17
- package/dist/src/external/spatial-navigation/visualDebugger.js +0 -76
- package/dist/src/external/spatial-navigation/withFocusable.d.ts +0 -131
- package/dist/src/external/spatial-navigation/withFocusable.js +0 -254
- package/dist/src/helpers/Observable.d.ts +0 -12
- package/dist/src/helpers/Observable.js +0 -37
- package/dist/src/helpers/site.d.ts +0 -1
- package/dist/src/helpers/site.js +0 -6
- package/dist/src/helpers/siteConfig.d.ts +0 -1
- package/dist/src/helpers/siteConfig.js +0 -5
- package/dist/src/helpers/strings.d.ts +0 -2
- package/dist/src/helpers/strings.js +0 -14
- package/dist/src/helpers/url.d.ts +0 -1
- package/dist/src/helpers/url.js +0 -12
- package/dist/src/hooks/useMaxHeightToBottom.d.ts +0 -11
- package/dist/src/hooks/useMaxHeightToBottom.js +0 -48
- package/dist/src/index.d.ts +0 -53
- package/dist/src/index.js +0 -197
- package/dist/src/interfaces/IMaestroEvent.d.ts +0 -108
- package/dist/src/interfaces/IMaestroEvent.js +0 -1
- package/dist/src/interfaces/IMaestroEventDelegate.d.ts +0 -81
- package/dist/src/interfaces/IMaestroEventDelegate.js +0 -1
- package/dist/src/interfaces/IMaestroManager.d.ts +0 -81
- package/dist/src/interfaces/IMaestroManager.js +0 -1
- package/dist/src/interfaces/IUserSettings.d.ts +0 -44
- package/dist/src/interfaces/IUserSettings.js +0 -20
- package/dist/src/models/IModel.d.ts +0 -7
- package/dist/src/models/IModel.js +0 -1
- package/dist/src/models/IPanel.d.ts +0 -19
- package/dist/src/models/IPanel.js +0 -12
- package/dist/src/models/ITheme.d.ts +0 -77
- package/dist/src/models/ITheme.js +0 -20
- package/dist/src/modules/espn/bets/interfaces/IBets.d.ts +0 -192
- package/dist/src/modules/espn/bets/interfaces/IBets.js +0 -1
- package/dist/src/modules/espn/bets/interfaces/IBetsViewModel.d.ts +0 -5
- package/dist/src/modules/espn/bets/interfaces/IBetsViewModel.js +0 -1
- package/dist/src/modules/espn/bets/mocks.d.ts +0 -2
- package/dist/src/modules/espn/bets/mocks.js +0 -573
- package/dist/src/modules/espn/bets/services/BetsService.d.ts +0 -81
- package/dist/src/modules/espn/bets/services/BetsService.js +0 -123
- package/dist/src/modules/espn/bets/types/BetsAnalyticsTypes.d.ts +0 -8
- package/dist/src/modules/espn/bets/types/BetsAnalyticsTypes.js +0 -1
- package/dist/src/modules/espn/bets/view/BetsView.d.ts +0 -30
- package/dist/src/modules/espn/bets/view/BetsView.js +0 -169
- package/dist/src/modules/espn/bets/view/HotProps/HotPropsView.d.ts +0 -103
- package/dist/src/modules/espn/bets/view/HotProps/HotPropsView.js +0 -133
- package/dist/src/modules/espn/bets/view/SixPack/SixPackView.d.ts +0 -9
- package/dist/src/modules/espn/bets/view/SixPack/SixPackView.js +0 -77
- package/dist/src/modules/espn/bets/view/UserBets/BetResult/BetResult.d.ts +0 -6
- package/dist/src/modules/espn/bets/view/UserBets/BetResult/BetResult.js +0 -6
- package/dist/src/modules/espn/bets/view/UserBets/BetsCard/BetsCard.d.ts +0 -104
- package/dist/src/modules/espn/bets/view/UserBets/BetsCard/BetsCard.js +0 -140
- package/dist/src/modules/espn/bets/view/UserBets/BetsCard/BetsCardEvent.d.ts +0 -16
- package/dist/src/modules/espn/bets/view/UserBets/BetsCard/BetsCardEvent.js +0 -8
- package/dist/src/modules/espn/bets/view/UserBets/BetsCard/BetsCardFooter.d.ts +0 -7
- package/dist/src/modules/espn/bets/view/UserBets/BetsCard/BetsCardFooter.js +0 -18
- package/dist/src/modules/espn/bets/view/UserBets/Boost/Boost.d.ts +0 -7
- package/dist/src/modules/espn/bets/view/UserBets/Boost/Boost.js +0 -6
- package/dist/src/modules/espn/bets/view/UserBets/OutcomeBadge/OutcomeBadge.d.ts +0 -6
- package/dist/src/modules/espn/bets/view/UserBets/OutcomeBadge/OutcomeBadge.js +0 -9
- package/dist/src/modules/espn/bets/view/UserBets/Parlay/Parlay.d.ts +0 -8
- package/dist/src/modules/espn/bets/view/UserBets/Parlay/Parlay.js +0 -13
- package/dist/src/modules/espn/bets/view/UserBets/Straight/Straight.d.ts +0 -7
- package/dist/src/modules/espn/bets/view/UserBets/Straight/Straight.js +0 -6
- package/dist/src/modules/espn/bets/view/UserBets/Teaser/Teaser.d.ts +0 -7
- package/dist/src/modules/espn/bets/view/UserBets/Teaser/Teaser.js +0 -13
- package/dist/src/modules/espn/bets/view/UserBets/UserBetsView.d.ts +0 -25
- package/dist/src/modules/espn/bets/view/UserBets/UserBetsView.js +0 -107
- package/dist/src/modules/espn/bets/view/components/Bet/Bet.d.ts +0 -10
- package/dist/src/modules/espn/bets/view/components/Bet/Bet.js +0 -41
- package/dist/src/modules/espn/bets/view/components/BetPill/BetPill.d.ts +0 -6
- package/dist/src/modules/espn/bets/view/components/BetPill/BetPill.js +0 -6
- package/dist/src/modules/espn/bets/view/components/BetsCard/BetsCard.d.ts +0 -10
- package/dist/src/modules/espn/bets/view/components/BetsCard/BetsCard.js +0 -24
- package/dist/src/modules/espn/bets/view/components/BetsCard/BetsCardHeader.d.ts +0 -16
- package/dist/src/modules/espn/bets/view/components/BetsCard/BetsCardHeader.js +0 -20
- package/dist/src/modules/espn/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.d.ts +0 -7
- package/dist/src/modules/espn/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.js +0 -31
- package/dist/src/modules/espn/bets/view/components/GamblingDisclaimer/index.d.ts +0 -1
- package/dist/src/modules/espn/bets/view/components/GamblingDisclaimer/index.js +0 -1
- package/dist/src/modules/espn/bets/view/components/LocationWarning/LocationWarning.d.ts +0 -10
- package/dist/src/modules/espn/bets/view/components/LocationWarning/LocationWarning.js +0 -16
- package/dist/src/modules/espn/bets/view/components/PromoCodeBanner/PromoCodeBanner.d.ts +0 -5
- package/dist/src/modules/espn/bets/view/components/PromoCodeBanner/PromoCodeBanner.js +0 -45
- package/dist/src/modules/espn/bets/view/components/PromoCodeBanner/index.d.ts +0 -1
- package/dist/src/modules/espn/bets/view/components/PromoCodeBanner/index.js +0 -1
- package/dist/src/modules/espn/bets/view-model/BetsViewModel.d.ts +0 -218
- package/dist/src/modules/espn/bets/view-model/BetsViewModel.js +0 -947
- package/dist/src/modules/espn/components/TabLoadError/TabLoadError.d.ts +0 -96
- package/dist/src/modules/espn/components/TabLoadError/TabLoadError.js +0 -14
- package/dist/src/modules/espn/components/TabLoadError/index.d.ts +0 -2
- package/dist/src/modules/espn/components/TabLoadError/index.js +0 -2
- package/dist/src/modules/espn/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.d.ts +0 -28
- package/dist/src/modules/espn/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.js +0 -107
- package/dist/src/modules/espn/fantasy/components/ExpandedAthleteList/index.d.ts +0 -1
- package/dist/src/modules/espn/fantasy/components/ExpandedAthleteList/index.js +0 -1
- package/dist/src/modules/espn/fantasy/components/LeagueCard/LeagueCard.d.ts +0 -104
- package/dist/src/modules/espn/fantasy/components/LeagueCard/LeagueCard.js +0 -20
- package/dist/src/modules/espn/fantasy/components/LeagueCard/index.d.ts +0 -2
- package/dist/src/modules/espn/fantasy/components/LeagueCard/index.js +0 -2
- package/dist/src/modules/espn/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +0 -101
- package/dist/src/modules/espn/fantasy/components/TopPlayerCard/TopPlayerCard.js +0 -29
- package/dist/src/modules/espn/fantasy/components/TopPlayerCard/index.d.ts +0 -2
- package/dist/src/modules/espn/fantasy/components/TopPlayerCard/index.js +0 -2
- package/dist/src/modules/espn/fantasy/components/TournamentOverflowQR/TournamentOverflowQR.d.ts +0 -103
- package/dist/src/modules/espn/fantasy/components/TournamentOverflowQR/TournamentOverflowQR.js +0 -28
- package/dist/src/modules/espn/fantasy/components/TournamentOverflowQR/index.d.ts +0 -1
- package/dist/src/modules/espn/fantasy/components/TournamentOverflowQR/index.js +0 -1
- package/dist/src/modules/espn/fantasy/mocks.d.ts +0 -7620
- package/dist/src/modules/espn/fantasy/mocks.js +0 -3682
- package/dist/src/modules/espn/fantasy/services/FantasyService.d.ts +0 -76
- package/dist/src/modules/espn/fantasy/services/FantasyService.js +0 -127
- package/dist/src/modules/espn/fantasy/types.d.ts +0 -294
- package/dist/src/modules/espn/fantasy/types.js +0 -9
- package/dist/src/modules/espn/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.d.ts +0 -21
- package/dist/src/modules/espn/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.js +0 -74
- package/dist/src/modules/espn/fantasy/view/ActiveAthletesMarquee/index.d.ts +0 -2
- package/dist/src/modules/espn/fantasy/view/ActiveAthletesMarquee/index.js +0 -2
- package/dist/src/modules/espn/fantasy/view/FantasyHeaderView.d.ts +0 -8
- package/dist/src/modules/espn/fantasy/view/FantasyHeaderView.js +0 -8
- package/dist/src/modules/espn/fantasy/view/FantasyItemView.d.ts +0 -8
- package/dist/src/modules/espn/fantasy/view/FantasyItemView.js +0 -48
- package/dist/src/modules/espn/fantasy/view/FantasyView.d.ts +0 -34
- package/dist/src/modules/espn/fantasy/view/FantasyView.js +0 -213
- package/dist/src/modules/espn/fantasy/view/InactiveLeague/DraftDateCountdown.d.ts +0 -23
- package/dist/src/modules/espn/fantasy/view/InactiveLeague/DraftDateCountdown.js +0 -95
- package/dist/src/modules/espn/fantasy/view/InactiveLeague/InactiveLeague.d.ts +0 -100
- package/dist/src/modules/espn/fantasy/view/InactiveLeague/InactiveLeague.js +0 -13
- package/dist/src/modules/espn/fantasy/view/InactiveLeague/index.d.ts +0 -2
- package/dist/src/modules/espn/fantasy/view/InactiveLeague/index.js +0 -2
- package/dist/src/modules/espn/fantasy/view/LoginView/LoginView.d.ts +0 -96
- package/dist/src/modules/espn/fantasy/view/LoginView/LoginView.js +0 -27
- package/dist/src/modules/espn/fantasy/view/LoginView/index.d.ts +0 -2
- package/dist/src/modules/espn/fantasy/view/LoginView/index.js +0 -2
- package/dist/src/modules/espn/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts +0 -97
- package/dist/src/modules/espn/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.js +0 -25
- package/dist/src/modules/espn/fantasy/view/MatchupPair/DoubleAthleteCard/index.d.ts +0 -2
- package/dist/src/modules/espn/fantasy/view/MatchupPair/DoubleAthleteCard/index.js +0 -2
- package/dist/src/modules/espn/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.d.ts +0 -14
- package/dist/src/modules/espn/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.js +0 -9
- package/dist/src/modules/espn/fantasy/view/MatchupPair/MatchupPair.d.ts +0 -102
- package/dist/src/modules/espn/fantasy/view/MatchupPair/MatchupPair.js +0 -118
- package/dist/src/modules/espn/fantasy/view/MatchupPair/index.d.ts +0 -2
- package/dist/src/modules/espn/fantasy/view/MatchupPair/index.js +0 -2
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.d.ts +0 -14
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.js +0 -9
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/MatchupSingle.d.ts +0 -102
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/MatchupSingle.js +0 -108
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts +0 -97
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.js +0 -18
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/SingleAthleteCard/index.d.ts +0 -2
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/SingleAthleteCard/index.js +0 -2
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/index.d.ts +0 -2
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/index.js +0 -2
- package/dist/src/modules/espn/fantasy/view/PromoView/PromoView.d.ts +0 -100
- package/dist/src/modules/espn/fantasy/view/PromoView/PromoView.js +0 -12
- package/dist/src/modules/espn/fantasy/view/PromoView/index.d.ts +0 -2
- package/dist/src/modules/espn/fantasy/view/PromoView/index.js +0 -2
- package/dist/src/modules/espn/fantasy/view/TournamentBracketCard/TournamentBracketCard.d.ts +0 -101
- package/dist/src/modules/espn/fantasy/view/TournamentBracketCard/TournamentBracketCard.js +0 -37
- package/dist/src/modules/espn/fantasy/view/TournamentBracketCard/index.d.ts +0 -2
- package/dist/src/modules/espn/fantasy/view/TournamentBracketCard/index.js +0 -2
- package/dist/src/modules/espn/fantasy/view/index.d.ts +0 -2
- package/dist/src/modules/espn/fantasy/view/index.js +0 -2
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.FantasyPolling.d.ts +0 -32
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.FantasyPolling.js +0 -135
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.LeagueManagerPolling.d.ts +0 -32
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.LeagueManagerPolling.js +0 -144
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.TournamentPolling.d.ts +0 -32
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.TournamentPolling.js +0 -143
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.d.ts +0 -168
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.js +0 -815
- package/dist/src/modules/espn/key-plays/constants.d.ts +0 -3
- package/dist/src/modules/espn/key-plays/constants.js +0 -292
- package/dist/src/modules/espn/key-plays/interfaces/IKeyPlays.d.ts +0 -32
- package/dist/src/modules/espn/key-plays/interfaces/IKeyPlays.js +0 -14
- package/dist/src/modules/espn/key-plays/interfaces/IKeyPlaysResponse.d.ts +0 -44
- package/dist/src/modules/espn/key-plays/interfaces/IKeyPlaysResponse.js +0 -1
- package/dist/src/modules/espn/key-plays/interfaces/IKeyPlaysViewModel.d.ts +0 -17
- package/dist/src/modules/espn/key-plays/interfaces/IKeyPlaysViewModel.js +0 -1
- package/dist/src/modules/espn/key-plays/view/KeyPlayCardScoreTagView.d.ts +0 -9
- package/dist/src/modules/espn/key-plays/view/KeyPlayCardScoreTagView.js +0 -16
- package/dist/src/modules/espn/key-plays/view/KeyPlayCardView.d.ts +0 -27
- package/dist/src/modules/espn/key-plays/view/KeyPlayCardView.js +0 -115
- package/dist/src/modules/espn/key-plays/view/KeyPlayErrorStateView.d.ts +0 -13
- package/dist/src/modules/espn/key-plays/view/KeyPlayErrorStateView.js +0 -65
- package/dist/src/modules/espn/key-plays/view/KeyPlaysView.d.ts +0 -39
- package/dist/src/modules/espn/key-plays/view/KeyPlaysView.js +0 -179
- package/dist/src/modules/espn/key-plays/view-model/KeyPlaysViewModel.d.ts +0 -37
- package/dist/src/modules/espn/key-plays/view-model/KeyPlaysViewModel.js +0 -245
- package/dist/src/modules/espn/shop/mocks.d.ts +0 -22
- package/dist/src/modules/espn/shop/mocks.js +0 -391
- package/dist/src/modules/espn/shop/services/ShopService.d.ts +0 -23
- package/dist/src/modules/espn/shop/services/ShopService.js +0 -44
- package/dist/src/modules/espn/shop/types.d.ts +0 -164
- package/dist/src/modules/espn/shop/types.js +0 -7
- package/dist/src/modules/espn/shop/view/ProductDetailView/ProductDetailView.d.ts +0 -10
- package/dist/src/modules/espn/shop/view/ProductDetailView/ProductDetailView.js +0 -60
- package/dist/src/modules/espn/shop/view/ProductDetailView/index.d.ts +0 -2
- package/dist/src/modules/espn/shop/view/ProductDetailView/index.js +0 -2
- package/dist/src/modules/espn/shop/view/ShopView.d.ts +0 -38
- package/dist/src/modules/espn/shop/view/ShopView.js +0 -223
- package/dist/src/modules/espn/shop/view/components/BrowseCard/BrowseCard.d.ts +0 -103
- package/dist/src/modules/espn/shop/view/components/BrowseCard/BrowseCard.js +0 -23
- package/dist/src/modules/espn/shop/view/components/BrowseCard/index.d.ts +0 -2
- package/dist/src/modules/espn/shop/view/components/BrowseCard/index.js +0 -2
- package/dist/src/modules/espn/shop/view/components/ProductSummaryCard/ProductSummaryCard.d.ts +0 -104
- package/dist/src/modules/espn/shop/view/components/ProductSummaryCard/ProductSummaryCard.js +0 -26
- package/dist/src/modules/espn/shop/view/components/ProductSummaryCard/index.d.ts +0 -2
- package/dist/src/modules/espn/shop/view/components/ProductSummaryCard/index.js +0 -1
- package/dist/src/modules/espn/shop/view/components/ShopPromoView/ShopPromoView.d.ts +0 -8
- package/dist/src/modules/espn/shop/view/components/ShopPromoView/ShopPromoView.js +0 -19
- package/dist/src/modules/espn/shop/view/components/ShopPromoView/index.d.ts +0 -1
- package/dist/src/modules/espn/shop/view/components/ShopPromoView/index.js +0 -1
- package/dist/src/modules/espn/shop/view/components/ShopSection/ShopSection.d.ts +0 -12
- package/dist/src/modules/espn/shop/view/components/ShopSection/ShopSection.js +0 -34
- package/dist/src/modules/espn/shop/view/components/ShopSection/index.d.ts +0 -1
- package/dist/src/modules/espn/shop/view/components/ShopSection/index.js +0 -1
- package/dist/src/modules/espn/shop/view/index.d.ts +0 -2
- package/dist/src/modules/espn/shop/view/index.js +0 -2
- package/dist/src/modules/espn/shop/view-model/ShopViewModel.ShopPolling.d.ts +0 -31
- package/dist/src/modules/espn/shop/view-model/ShopViewModel.ShopPolling.js +0 -111
- package/dist/src/modules/espn/shop/view-model/ShopViewModel.d.ts +0 -73
- package/dist/src/modules/espn/shop/view-model/ShopViewModel.js +0 -323
- package/dist/src/modules/espn/stats/components/TeamStatistic.d.ts +0 -16
- package/dist/src/modules/espn/stats/components/TeamStatistic.js +0 -13
- package/dist/src/modules/espn/stats/interfaces/IStats.d.ts +0 -330
- package/dist/src/modules/espn/stats/interfaces/IStats.js +0 -46
- package/dist/src/modules/espn/stats/interfaces/IStatsViewModel.d.ts +0 -7
- package/dist/src/modules/espn/stats/interfaces/IStatsViewModel.js +0 -1
- package/dist/src/modules/espn/stats/mocks.d.ts +0 -2
- package/dist/src/modules/espn/stats/mocks.js +0 -746
- package/dist/src/modules/espn/stats/services/StatsService.d.ts +0 -54
- package/dist/src/modules/espn/stats/services/StatsService.js +0 -155
- package/dist/src/modules/espn/stats/utils/driveSummaryUtils.d.ts +0 -18
- package/dist/src/modules/espn/stats/utils/driveSummaryUtils.js +0 -48
- package/dist/src/modules/espn/stats/utils/playerStatusUtils.d.ts +0 -4
- package/dist/src/modules/espn/stats/utils/playerStatusUtils.js +0 -17
- package/dist/src/modules/espn/stats/utils.d.ts +0 -39
- package/dist/src/modules/espn/stats/utils.js +0 -62
- package/dist/src/modules/espn/stats/view/ActiveAthletes/ActiveAthletes.d.ts +0 -22
- package/dist/src/modules/espn/stats/view/ActiveAthletes/ActiveAthletes.js +0 -98
- package/dist/src/modules/espn/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.d.ts +0 -4
- package/dist/src/modules/espn/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.js +0 -27
- package/dist/src/modules/espn/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.d.ts +0 -22
- package/dist/src/modules/espn/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.js +0 -89
- package/dist/src/modules/espn/stats/view/ActiveAthletes/index.d.ts +0 -2
- package/dist/src/modules/espn/stats/view/ActiveAthletes/index.js +0 -2
- package/dist/src/modules/espn/stats/view/CareerMatchup/CareerMatchup.d.ts +0 -101
- package/dist/src/modules/espn/stats/view/CareerMatchup/CareerMatchup.js +0 -59
- package/dist/src/modules/espn/stats/view/CareerMatchup/index.d.ts +0 -1
- package/dist/src/modules/espn/stats/view/CareerMatchup/index.js +0 -1
- package/dist/src/modules/espn/stats/view/DriveSummary/DrivePlayCard.d.ts +0 -105
- package/dist/src/modules/espn/stats/view/DriveSummary/DrivePlayCard.js +0 -32
- package/dist/src/modules/espn/stats/view/DriveSummary/DriveSummary.d.ts +0 -10
- package/dist/src/modules/espn/stats/view/DriveSummary/DriveSummary.js +0 -40
- package/dist/src/modules/espn/stats/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.d.ts +0 -27
- package/dist/src/modules/espn/stats/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.js +0 -129
- package/dist/src/modules/espn/stats/view/DriveSummary/Header/DriveSummaryHeader.d.ts +0 -12
- package/dist/src/modules/espn/stats/view/DriveSummary/Header/DriveSummaryHeader.js +0 -26
- package/dist/src/modules/espn/stats/view/DriveSummary/MainStat/MainStat.d.ts +0 -10
- package/dist/src/modules/espn/stats/view/DriveSummary/MainStat/MainStat.js +0 -24
- package/dist/src/modules/espn/stats/view/DriveSummary/index.d.ts +0 -2
- package/dist/src/modules/espn/stats/view/DriveSummary/index.js +0 -2
- package/dist/src/modules/espn/stats/view/GameLeaders/GameLeaders.d.ts +0 -9
- package/dist/src/modules/espn/stats/view/GameLeaders/GameLeaders.js +0 -22
- package/dist/src/modules/espn/stats/view/GameLeaders/index.d.ts +0 -2
- package/dist/src/modules/espn/stats/view/GameLeaders/index.js +0 -2
- package/dist/src/modules/espn/stats/view/MatchPredictor/DonutChart/DonutChart.d.ts +0 -17
- package/dist/src/modules/espn/stats/view/MatchPredictor/DonutChart/DonutChart.js +0 -55
- package/dist/src/modules/espn/stats/view/MatchPredictor/DonutChart/index.d.ts +0 -2
- package/dist/src/modules/espn/stats/view/MatchPredictor/DonutChart/index.js +0 -1
- package/dist/src/modules/espn/stats/view/MatchPredictor/MatchPredictorView.d.ts +0 -100
- package/dist/src/modules/espn/stats/view/MatchPredictor/MatchPredictorView.js +0 -60
- package/dist/src/modules/espn/stats/view/MatchPredictor/index.d.ts +0 -3
- package/dist/src/modules/espn/stats/view/MatchPredictor/index.js +0 -2
- package/dist/src/modules/espn/stats/view/Penalties/Penalties.d.ts +0 -9
- package/dist/src/modules/espn/stats/view/Penalties/Penalties.js +0 -6
- package/dist/src/modules/espn/stats/view/Penalties/index.d.ts +0 -2
- package/dist/src/modules/espn/stats/view/Penalties/index.js +0 -2
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/ExpandedPlayerStats.d.ts +0 -16
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/ExpandedPlayerStats.js +0 -66
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/PlayerSeasonStatsCard.d.ts +0 -99
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/PlayerSeasonStatsCard.js +0 -26
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/PlayerSeasonStatsMinified.d.ts +0 -6
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/PlayerSeasonStatsMinified.js +0 -17
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/PlayerSeasonStatsView.d.ts +0 -8
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/PlayerSeasonStatsView.js +0 -165
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/index.d.ts +0 -1
- package/dist/src/modules/espn/stats/view/PlayerSeasonStats/index.js +0 -1
- package/dist/src/modules/espn/stats/view/RecentGames/RecentGames.d.ts +0 -100
- package/dist/src/modules/espn/stats/view/RecentGames/RecentGames.js +0 -23
- package/dist/src/modules/espn/stats/view/RecentGames/index.d.ts +0 -2
- package/dist/src/modules/espn/stats/view/RecentGames/index.js +0 -2
- package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.d.ts +0 -30
- package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.js +0 -123
- package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/ExpandedSummary.d.ts +0 -100
- package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/ExpandedSummary.js +0 -24
- package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/index.d.ts +0 -2
- package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/index.js +0 -2
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoreItem/ScoreItem.d.ts +0 -100
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoreItem/ScoreItem.js +0 -62
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoreItem/index.d.ts +0 -2
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoreItem/index.js +0 -2
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoresSection/ScoresSection.d.ts +0 -6
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoresSection/ScoresSection.js +0 -23
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoresSection/index.d.ts +0 -2
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoresSection/index.js +0 -2
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoringSummary.d.ts +0 -12
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoringSummary.js +0 -167
- package/dist/src/modules/espn/stats/view/ScoringSummary/index.d.ts +0 -1
- package/dist/src/modules/espn/stats/view/ScoringSummary/index.js +0 -1
- package/dist/src/modules/espn/stats/view/StatsItemView.d.ts +0 -8
- package/dist/src/modules/espn/stats/view/StatsItemView.js +0 -66
- package/dist/src/modules/espn/stats/view/StatsQRCode/StatsQRCodeView.d.ts +0 -100
- package/dist/src/modules/espn/stats/view/StatsQRCode/StatsQRCodeView.js +0 -36
- package/dist/src/modules/espn/stats/view/StatsQRCode/index.d.ts +0 -2
- package/dist/src/modules/espn/stats/view/StatsQRCode/index.js +0 -1
- package/dist/src/modules/espn/stats/view/StatsView.d.ts +0 -29
- package/dist/src/modules/espn/stats/view/StatsView.js +0 -164
- package/dist/src/modules/espn/stats/view/TeamStats/TeamStatsView.d.ts +0 -101
- package/dist/src/modules/espn/stats/view/TeamStats/TeamStatsView.js +0 -77
- package/dist/src/modules/espn/stats/view/TeamStats/index.d.ts +0 -2
- package/dist/src/modules/espn/stats/view/TeamStats/index.js +0 -1
- package/dist/src/modules/espn/stats/view/Teams/StatsCarousel.d.ts +0 -25
- package/dist/src/modules/espn/stats/view/Teams/StatsCarousel.js +0 -83
- package/dist/src/modules/espn/stats/view/Teams/StatsProgressBar.d.ts +0 -6
- package/dist/src/modules/espn/stats/view/Teams/StatsProgressBar.js +0 -19
- package/dist/src/modules/espn/stats/view/Teams/Teams.d.ts +0 -100
- package/dist/src/modules/espn/stats/view/Teams/Teams.js +0 -39
- package/dist/src/modules/espn/stats/view/Teams/index.d.ts +0 -2
- package/dist/src/modules/espn/stats/view/Teams/index.js +0 -2
- package/dist/src/modules/espn/stats/view/WinProbability/WinProbability.d.ts +0 -100
- package/dist/src/modules/espn/stats/view/WinProbability/WinProbability.js +0 -28
- package/dist/src/modules/espn/stats/view/WinProbability/index.d.ts +0 -2
- package/dist/src/modules/espn/stats/view/WinProbability/index.js +0 -2
- package/dist/src/modules/espn/stats/view/components/AthletesStatistics/AthletesStatistics.d.ts +0 -115
- package/dist/src/modules/espn/stats/view/components/AthletesStatistics/AthletesStatistics.js +0 -89
- package/dist/src/modules/espn/stats/view/components/AthletesStatistics/StatisticTable.d.ts +0 -3
- package/dist/src/modules/espn/stats/view/components/AthletesStatistics/StatisticTable.js +0 -12
- package/dist/src/modules/espn/stats/view/components/AthletesStatistics/index.d.ts +0 -2
- package/dist/src/modules/espn/stats/view/components/AthletesStatistics/index.js +0 -2
- package/dist/src/modules/espn/stats/view/index.d.ts +0 -2
- package/dist/src/modules/espn/stats/view/index.js +0 -2
- package/dist/src/modules/espn/stats/view-model/StatsViewModel.d.ts +0 -322
- package/dist/src/modules/espn/stats/view-model/StatsViewModel.js +0 -1416
- package/dist/src/modules/fox/components/TabLoadError/TabLoadError.d.ts +0 -96
- package/dist/src/modules/fox/components/TabLoadError/TabLoadError.js +0 -19
- package/dist/src/modules/fox/components/TabLoadError/index.d.ts +0 -2
- package/dist/src/modules/fox/components/TabLoadError/index.js +0 -2
- package/dist/src/modules/fox/key-plays/view/FoxKeyPlays.d.ts +0 -2
- package/dist/src/modules/fox/key-plays/view/FoxKeyPlays.js +0 -5
- package/dist/src/modules/fox/multi-view/interfaces/IMultiViewViewModel.d.ts +0 -3
- package/dist/src/modules/fox/multi-view/interfaces/IMultiViewViewModel.js +0 -1
- package/dist/src/modules/fox/multi-view/services/MultiViewService.d.ts +0 -104
- package/dist/src/modules/fox/multi-view/services/MultiViewService.js +0 -97
- package/dist/src/modules/fox/multi-view/types.d.ts +0 -68
- package/dist/src/modules/fox/multi-view/types.js +0 -86
- package/dist/src/modules/fox/multi-view/view/BuildYourOwn/BuildYourOwn.d.ts +0 -7
- package/dist/src/modules/fox/multi-view/view/BuildYourOwn/BuildYourOwn.js +0 -99
- package/dist/src/modules/fox/multi-view/view/BuildYourOwn/index.d.ts +0 -2
- package/dist/src/modules/fox/multi-view/view/BuildYourOwn/index.js +0 -2
- package/dist/src/modules/fox/multi-view/view/CuratedMultiview/CuratedMultiviews.d.ts +0 -8
- package/dist/src/modules/fox/multi-view/view/CuratedMultiview/CuratedMultiviews.js +0 -92
- package/dist/src/modules/fox/multi-view/view/CuratedMultiview/index.d.ts +0 -2
- package/dist/src/modules/fox/multi-view/view/CuratedMultiview/index.js +0 -2
- package/dist/src/modules/fox/multi-view/view/FoxMultiView.d.ts +0 -3
- package/dist/src/modules/fox/multi-view/view/FoxMultiView.js +0 -68
- package/dist/src/modules/fox/multi-view/view/components/BuildYourOwnTabs/BuildYourOwnTabs.d.ts +0 -8
- package/dist/src/modules/fox/multi-view/view/components/BuildYourOwnTabs/BuildYourOwnTabs.js +0 -30
- package/dist/src/modules/fox/multi-view/view/components/BuildYourOwnTabs/index.d.ts +0 -2
- package/dist/src/modules/fox/multi-view/view/components/BuildYourOwnTabs/index.js +0 -2
- package/dist/src/modules/fox/multi-view/view/components/CustomMultiviewStreamsCard/CustomMultiviewStreamsCard.d.ts +0 -118
- package/dist/src/modules/fox/multi-view/view/components/CustomMultiviewStreamsCard/CustomMultiviewStreamsCard.js +0 -51
- package/dist/src/modules/fox/multi-view/view/components/CustomMultiviewStreamsCard/index.d.ts +0 -2
- package/dist/src/modules/fox/multi-view/view/components/CustomMultiviewStreamsCard/index.js +0 -2
- package/dist/src/modules/fox/multi-view/view/components/LayoutSelector/LayoutSelector.d.ts +0 -13
- package/dist/src/modules/fox/multi-view/view/components/LayoutSelector/LayoutSelector.js +0 -40
- package/dist/src/modules/fox/multi-view/view/components/LayoutSelector/index.d.ts +0 -2
- package/dist/src/modules/fox/multi-view/view/components/LayoutSelector/index.js +0 -2
- package/dist/src/modules/fox/multi-view/view/components/curated-multiview-card/CuratedMultiviewCard.d.ts +0 -101
- package/dist/src/modules/fox/multi-view/view/components/curated-multiview-card/CuratedMultiviewCard.js +0 -41
- package/dist/src/modules/fox/multi-view/view/components/curated-multiview-card/index.d.ts +0 -2
- package/dist/src/modules/fox/multi-view/view/components/curated-multiview-card/index.js +0 -2
- package/dist/src/modules/fox/multi-view/view-model/MultiViewViewModel.d.ts +0 -84
- package/dist/src/modules/fox/multi-view/view-model/MultiViewViewModel.js +0 -509
- package/dist/src/modules/fox/multi-view/view-model/index.d.ts +0 -1
- package/dist/src/modules/fox/multi-view/view-model/index.js +0 -1
- package/dist/src/modules/fox/stats/view/FoxStatsView.d.ts +0 -2
- package/dist/src/modules/fox/stats/view/FoxStatsView.js +0 -5
- package/dist/src/modules/maestro/builder/components/BuilderSection/BuilderSection.d.ts +0 -11
- package/dist/src/modules/maestro/builder/components/BuilderSection/BuilderSection.js +0 -52
- package/dist/src/modules/maestro/builder/components/BuilderSection/index.d.ts +0 -2
- package/dist/src/modules/maestro/builder/components/BuilderSection/index.js +0 -2
- package/dist/src/modules/maestro/builder/components/ExpandableCard/ExpandableCard.d.ts +0 -110
- package/dist/src/modules/maestro/builder/components/ExpandableCard/ExpandableCard.js +0 -37
- package/dist/src/modules/maestro/builder/components/ExpandableCard/index.d.ts +0 -2
- package/dist/src/modules/maestro/builder/components/ExpandableCard/index.js +0 -2
- package/dist/src/modules/maestro/builder/components/SimpleCard/SimpleCard.d.ts +0 -104
- package/dist/src/modules/maestro/builder/components/SimpleCard/SimpleCard.js +0 -12
- package/dist/src/modules/maestro/builder/components/SimpleCard/index.d.ts +0 -2
- package/dist/src/modules/maestro/builder/components/SimpleCard/index.js +0 -2
- package/dist/src/modules/maestro/builder/index.d.ts +0 -7
- package/dist/src/modules/maestro/builder/index.js +0 -7
- package/dist/src/modules/maestro/builder/mocks/mockBuilderPanel.d.ts +0 -149
- package/dist/src/modules/maestro/builder/mocks/mockBuilderPanel.js +0 -240
- package/dist/src/modules/maestro/builder/types.d.ts +0 -52
- package/dist/src/modules/maestro/builder/types.js +0 -1
- package/dist/src/modules/maestro/builder/view/BuilderPanelView.d.ts +0 -4
- package/dist/src/modules/maestro/builder/view/BuilderPanelView.js +0 -52
- package/dist/src/modules/maestro/builder/view-model/BuilderPanelViewModel.d.ts +0 -40
- package/dist/src/modules/maestro/builder/view-model/BuilderPanelViewModel.js +0 -229
- package/dist/src/modules/maestro/builder/view-model/index.d.ts +0 -1
- package/dist/src/modules/maestro/builder/view-model/index.js +0 -1
- package/dist/src/modules/maestro/hello-world/HelloWorldImage.d.ts +0 -2
- package/dist/src/modules/maestro/hello-world/HelloWorldImage.js +0 -32
- package/dist/src/modules/maestro/hello-world/HelloWorldView.d.ts +0 -11
- package/dist/src/modules/maestro/hello-world/HelloWorldView.js +0 -40
- package/dist/src/modules/maestro/hello-world/index.d.ts +0 -2
- package/dist/src/modules/maestro/hello-world/index.js +0 -2
- package/dist/src/sentry.d.ts +0 -3
- package/dist/src/sentry.js +0 -51
- package/dist/src/services/AnalyticsService/AnalyticsService.d.ts +0 -85
- package/dist/src/services/AnalyticsService/AnalyticsService.js +0 -406
- package/dist/src/services/AnalyticsService/types.d.ts +0 -65
- package/dist/src/services/AnalyticsService/types.js +0 -1
- package/dist/src/services/InsightsService/InsightsPayloadBuilder.d.ts +0 -279
- package/dist/src/services/InsightsService/InsightsPayloadBuilder.js +0 -385
- package/dist/src/services/InsightsService/InsightsService.d.ts +0 -11
- package/dist/src/services/InsightsService/InsightsService.js +0 -74
- package/dist/src/services/NetworkManager/NetworkManager.d.ts +0 -153
- package/dist/src/services/NetworkManager/NetworkManager.js +0 -434
- package/dist/src/services/NetworkManager/errors.d.ts +0 -19
- package/dist/src/services/NetworkManager/errors.js +0 -59
- package/dist/src/services/NetworkManager/types.d.ts +0 -7
- package/dist/src/services/NetworkManager/types.js +0 -1
- package/dist/src/services/StaticService/StaticService.d.ts +0 -20
- package/dist/src/services/StaticService/StaticService.js +0 -86
- package/dist/src/services/StaticService/index.d.ts +0 -2
- package/dist/src/services/StaticService/index.js +0 -2
- package/dist/src/services/StaticService/mocks.d.ts +0 -3
- package/dist/src/services/StaticService/mocks.js +0 -119
- package/dist/src/services/StaticService/types.d.ts +0 -78
- package/dist/src/services/StaticService/types.js +0 -1
- package/dist/src/services/ThemeManager/constants.d.ts +0 -2
- package/dist/src/services/ThemeManager/constants.js +0 -47
- package/dist/src/services/UserSettingsManager.d.ts +0 -63
- package/dist/src/services/UserSettingsManager.js +0 -158
- package/dist/src/test-polyfills.d.ts +0 -1
- package/dist/src/test-polyfills.js +0 -15
- package/dist/src/view-models/MaestroEventViewModel.d.ts +0 -96
- package/dist/src/view-models/MaestroEventViewModel.js +0 -386
- package/dist/src/view-models/PanelManagerViewModel.d.ts +0 -49
- package/dist/src/view-models/PanelManagerViewModel.js +0 -195
- package/dist/src/view-models/ViewModel.d.ts +0 -12
- package/dist/src/view-models/ViewModel.js +0 -32
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import IMaestroEventDelegate from '../interfaces/IMaestroEventDelegate';
|
|
2
|
-
import IMaestroEvent from '../interfaces/IMaestroEvent';
|
|
3
|
-
import { Observable } from '../helpers/Observable';
|
|
4
|
-
import { ViewModel } from './ViewModel';
|
|
5
|
-
import SpatialNavigation from '@/external/spatial-navigation/spatialNavigation';
|
|
6
|
-
import IMaestroKeyPlaysResponse from '../modules/espn/key-plays/interfaces/IKeyPlaysResponse';
|
|
7
|
-
import { MaestroPanelType } from '@/models/IPanel';
|
|
8
|
-
import { IUserSettings } from '../interfaces/IUserSettings';
|
|
9
|
-
import { PanelManagerViewModel } from './PanelManagerViewModel';
|
|
10
|
-
import AnalyticsService from '@/services/AnalyticsService/AnalyticsService';
|
|
11
|
-
import { IKeyPlaysViewModel } from '../modules/espn/key-plays/interfaces/IKeyPlaysViewModel';
|
|
12
|
-
import { IBetsViewModel } from '../modules/espn/bets/interfaces/IBetsViewModel';
|
|
13
|
-
import { IStatsViewModel } from '../modules/espn/stats/interfaces/IStatsViewModel';
|
|
14
|
-
import { IFantasyViewModel } from '@/modules/espn/fantasy/types';
|
|
15
|
-
import { IShopViewModel } from '@/modules/espn/shop/types';
|
|
16
|
-
import { BuilderPanelViewModel } from '@/modules/maestro/builder/view-model/BuilderPanelViewModel';
|
|
17
|
-
import { IMultiViewViewModel } from '@/modules/fox/multi-view/interfaces/IMultiViewViewModel';
|
|
18
|
-
export declare class MaestroEventViewModel extends ViewModel implements IMaestroEvent {
|
|
19
|
-
private _eventId;
|
|
20
|
-
private _pageId;
|
|
21
|
-
private _title;
|
|
22
|
-
private _isLive;
|
|
23
|
-
private _isShowingPanel;
|
|
24
|
-
private playerTimeCode;
|
|
25
|
-
private analyticsService;
|
|
26
|
-
delegate: IMaestroEventDelegate;
|
|
27
|
-
keyPlaysViewModel: IKeyPlaysViewModel | null;
|
|
28
|
-
fantasyViewModel: IFantasyViewModel | null;
|
|
29
|
-
betsViewModel: IBetsViewModel | null;
|
|
30
|
-
statsViewModel: IStatsViewModel | null;
|
|
31
|
-
shopViewModel: IShopViewModel | null;
|
|
32
|
-
builderPanelViewModel: BuilderPanelViewModel | null;
|
|
33
|
-
multiViewViewModel: IMultiViewViewModel | null;
|
|
34
|
-
panelManagerViewModel: PanelManagerViewModel;
|
|
35
|
-
navigation: SpatialNavigation;
|
|
36
|
-
constructor(eventId: string | undefined, pageId: string | undefined, delegate: IMaestroEventDelegate, analyticsService: AnalyticsService);
|
|
37
|
-
/**
|
|
38
|
-
* Initializes view models for enabled panels using dynamic imports (code splitting).
|
|
39
|
-
*
|
|
40
|
-
* This method lazily loads view model modules based on the page configuration,
|
|
41
|
-
* reducing initial bundle size by only loading modules for panels that are enabled.
|
|
42
|
-
*
|
|
43
|
-
* @remarks
|
|
44
|
-
* - Must be called after SDK configuration and before interacting with any view models
|
|
45
|
-
* - Typically invoked during `userDidStartWatchingEvent()` flow
|
|
46
|
-
* - Each view model is loaded in parallel for optimal performance
|
|
47
|
-
*
|
|
48
|
-
* @remarks Error Handling
|
|
49
|
-
* - Individual view model loading failures are caught and logged as warnings
|
|
50
|
-
* - Failed view models remain `null`, allowing other panels to function normally
|
|
51
|
-
* - The method resolves successfully even if some view models fail to load
|
|
52
|
-
* - Callers should check for `null` before using any view model property
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```typescript
|
|
56
|
-
* await maestroEventViewModel.initViewModels();
|
|
57
|
-
* // Check if view model loaded before use
|
|
58
|
-
* if (maestroEventViewModel.betsViewModel) {
|
|
59
|
-
* maestroEventViewModel.betsViewModel.startPolling();
|
|
60
|
-
* }
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* @returns Promise that resolves when all view model loading attempts complete
|
|
64
|
-
*/
|
|
65
|
-
initViewModels(): Promise<void>;
|
|
66
|
-
setActivePanel(panelType: MaestroPanelType): void;
|
|
67
|
-
updatePlayerTimeCode(timestamp: number): void;
|
|
68
|
-
getPlayerTimeCode(): number | null;
|
|
69
|
-
setDataToPanel(panelData: Record<string, any>): void;
|
|
70
|
-
deinit(): Promise<void>;
|
|
71
|
-
updateKeyPlaysData(data: IMaestroKeyPlaysResponse | null): Promise<void>;
|
|
72
|
-
updateUserSettings(settings: IUserSettings): Promise<void>;
|
|
73
|
-
startFocusManagement(): Promise<void>;
|
|
74
|
-
didStartPlayingClip(index: number): void;
|
|
75
|
-
didStopPlayingClip(index: number): void;
|
|
76
|
-
didFailToPlayClip(index: number): void;
|
|
77
|
-
didUpdatePlaybackProgressOfClip(index: number, to: number): void;
|
|
78
|
-
didShowPanel(): Promise<void>;
|
|
79
|
-
didHidePanel(): Promise<void>;
|
|
80
|
-
currentEventDoesNotSupportKeyPlays(): void;
|
|
81
|
-
getCurrentEventID(): string;
|
|
82
|
-
getCurrentlyPlayingClipIndex(): number | null;
|
|
83
|
-
getLastPlayedClipIndex(): number | null;
|
|
84
|
-
getCurrentClipPlaybackProgress(): number | null;
|
|
85
|
-
getKeyPlaysCount(): number;
|
|
86
|
-
get eventId(): Observable<string>;
|
|
87
|
-
get title(): Observable<string>;
|
|
88
|
-
get isLive(): Observable<boolean>;
|
|
89
|
-
get isShowingPanel(): boolean;
|
|
90
|
-
set isShowingPanel(value: boolean);
|
|
91
|
-
/**
|
|
92
|
-
* This method is called when the user navigates to the MaestroEventViewModel.
|
|
93
|
-
* It will pause navigation and start focus management.
|
|
94
|
-
*/
|
|
95
|
-
deliverFocus(): void;
|
|
96
|
-
}
|
|
@@ -1,386 +0,0 @@
|
|
|
1
|
-
import { Observable } from '../helpers/Observable';
|
|
2
|
-
import { ViewModel } from './ViewModel';
|
|
3
|
-
import SpatialNavigation from '@/external/spatial-navigation/spatialNavigation';
|
|
4
|
-
import { UserSettingsManager } from '../services/UserSettingsManager';
|
|
5
|
-
import { PanelManagerViewModel } from './PanelManagerViewModel';
|
|
6
|
-
import SDK from '..';
|
|
7
|
-
import StaticService from '@/services/StaticService';
|
|
8
|
-
export class MaestroEventViewModel extends ViewModel {
|
|
9
|
-
constructor(eventId = '', pageId = '', delegate, analyticsService) {
|
|
10
|
-
super();
|
|
11
|
-
Object.defineProperty(this, "_eventId", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
configurable: true,
|
|
14
|
-
writable: true,
|
|
15
|
-
value: new Observable('')
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(this, "_pageId", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
configurable: true,
|
|
20
|
-
writable: true,
|
|
21
|
-
value: new Observable('')
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(this, "_title", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
configurable: true,
|
|
26
|
-
writable: true,
|
|
27
|
-
value: new Observable('')
|
|
28
|
-
});
|
|
29
|
-
Object.defineProperty(this, "_isLive", {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
configurable: true,
|
|
32
|
-
writable: true,
|
|
33
|
-
value: new Observable(false)
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(this, "_isShowingPanel", {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
configurable: true,
|
|
38
|
-
writable: true,
|
|
39
|
-
value: new Observable(false)
|
|
40
|
-
});
|
|
41
|
-
Object.defineProperty(this, "playerTimeCode", {
|
|
42
|
-
enumerable: true,
|
|
43
|
-
configurable: true,
|
|
44
|
-
writable: true,
|
|
45
|
-
value: null
|
|
46
|
-
});
|
|
47
|
-
Object.defineProperty(this, "analyticsService", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
configurable: true,
|
|
50
|
-
writable: true,
|
|
51
|
-
value: void 0
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(this, "delegate", {
|
|
54
|
-
enumerable: true,
|
|
55
|
-
configurable: true,
|
|
56
|
-
writable: true,
|
|
57
|
-
value: void 0
|
|
58
|
-
});
|
|
59
|
-
Object.defineProperty(this, "keyPlaysViewModel", {
|
|
60
|
-
enumerable: true,
|
|
61
|
-
configurable: true,
|
|
62
|
-
writable: true,
|
|
63
|
-
value: null
|
|
64
|
-
});
|
|
65
|
-
Object.defineProperty(this, "fantasyViewModel", {
|
|
66
|
-
enumerable: true,
|
|
67
|
-
configurable: true,
|
|
68
|
-
writable: true,
|
|
69
|
-
value: null
|
|
70
|
-
});
|
|
71
|
-
Object.defineProperty(this, "betsViewModel", {
|
|
72
|
-
enumerable: true,
|
|
73
|
-
configurable: true,
|
|
74
|
-
writable: true,
|
|
75
|
-
value: null
|
|
76
|
-
});
|
|
77
|
-
Object.defineProperty(this, "statsViewModel", {
|
|
78
|
-
enumerable: true,
|
|
79
|
-
configurable: true,
|
|
80
|
-
writable: true,
|
|
81
|
-
value: null
|
|
82
|
-
});
|
|
83
|
-
Object.defineProperty(this, "shopViewModel", {
|
|
84
|
-
enumerable: true,
|
|
85
|
-
configurable: true,
|
|
86
|
-
writable: true,
|
|
87
|
-
value: null
|
|
88
|
-
});
|
|
89
|
-
Object.defineProperty(this, "builderPanelViewModel", {
|
|
90
|
-
enumerable: true,
|
|
91
|
-
configurable: true,
|
|
92
|
-
writable: true,
|
|
93
|
-
value: null
|
|
94
|
-
});
|
|
95
|
-
Object.defineProperty(this, "multiViewViewModel", {
|
|
96
|
-
enumerable: true,
|
|
97
|
-
configurable: true,
|
|
98
|
-
writable: true,
|
|
99
|
-
value: null
|
|
100
|
-
});
|
|
101
|
-
Object.defineProperty(this, "panelManagerViewModel", {
|
|
102
|
-
enumerable: true,
|
|
103
|
-
configurable: true,
|
|
104
|
-
writable: true,
|
|
105
|
-
value: void 0
|
|
106
|
-
});
|
|
107
|
-
Object.defineProperty(this, "navigation", {
|
|
108
|
-
enumerable: true,
|
|
109
|
-
configurable: true,
|
|
110
|
-
writable: true,
|
|
111
|
-
value: void 0
|
|
112
|
-
});
|
|
113
|
-
this._pageId.value = pageId;
|
|
114
|
-
this._eventId.value = eventId;
|
|
115
|
-
this.delegate = delegate;
|
|
116
|
-
this.analyticsService = analyticsService;
|
|
117
|
-
this.panelManagerViewModel = new PanelManagerViewModel();
|
|
118
|
-
this.navigation = new SpatialNavigation();
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Initializes view models for enabled panels using dynamic imports (code splitting).
|
|
122
|
-
*
|
|
123
|
-
* This method lazily loads view model modules based on the page configuration,
|
|
124
|
-
* reducing initial bundle size by only loading modules for panels that are enabled.
|
|
125
|
-
*
|
|
126
|
-
* @remarks
|
|
127
|
-
* - Must be called after SDK configuration and before interacting with any view models
|
|
128
|
-
* - Typically invoked during `userDidStartWatchingEvent()` flow
|
|
129
|
-
* - Each view model is loaded in parallel for optimal performance
|
|
130
|
-
*
|
|
131
|
-
* @remarks Error Handling
|
|
132
|
-
* - Individual view model loading failures are caught and logged as warnings
|
|
133
|
-
* - Failed view models remain `null`, allowing other panels to function normally
|
|
134
|
-
* - The method resolves successfully even if some view models fail to load
|
|
135
|
-
* - Callers should check for `null` before using any view model property
|
|
136
|
-
*
|
|
137
|
-
* @example
|
|
138
|
-
* ```typescript
|
|
139
|
-
* await maestroEventViewModel.initViewModels();
|
|
140
|
-
* // Check if view model loaded before use
|
|
141
|
-
* if (maestroEventViewModel.betsViewModel) {
|
|
142
|
-
* maestroEventViewModel.betsViewModel.startPolling();
|
|
143
|
-
* }
|
|
144
|
-
* ```
|
|
145
|
-
*
|
|
146
|
-
* @returns Promise that resolves when all view model loading attempts complete
|
|
147
|
-
*/
|
|
148
|
-
async initViewModels() {
|
|
149
|
-
const pageConfig = SDK.getPageConfig();
|
|
150
|
-
const loadPromises = [];
|
|
151
|
-
if (StaticService.isPanelAvailable(pageConfig, 'espnKeyPlays')) {
|
|
152
|
-
loadPromises.push(import('../modules/espn/key-plays/view-model/KeyPlaysViewModel')
|
|
153
|
-
.then(({ default: KeyPlaysViewModel }) => {
|
|
154
|
-
this.keyPlaysViewModel = new KeyPlaysViewModel(this.analyticsService);
|
|
155
|
-
})
|
|
156
|
-
.catch((err) => {
|
|
157
|
-
console.warn('Failed to load KeyPlaysViewModel:', err);
|
|
158
|
-
}));
|
|
159
|
-
}
|
|
160
|
-
if (StaticService.isPanelAvailable(pageConfig, 'espnBet')) {
|
|
161
|
-
loadPromises.push(import('../modules/espn/bets/view-model/BetsViewModel')
|
|
162
|
-
.then(({ default: BetsViewModel }) => {
|
|
163
|
-
this.betsViewModel = new BetsViewModel(this._eventId.value, this.delegate, this.analyticsService);
|
|
164
|
-
})
|
|
165
|
-
.catch((err) => {
|
|
166
|
-
console.warn('Failed to load BetsViewModel:', err);
|
|
167
|
-
}));
|
|
168
|
-
}
|
|
169
|
-
if (StaticService.isPanelAvailable(pageConfig, 'espnStats')) {
|
|
170
|
-
loadPromises.push(import('../modules/espn/stats/view-model/StatsViewModel')
|
|
171
|
-
.then(({ default: StatsViewModel }) => {
|
|
172
|
-
this.statsViewModel = new StatsViewModel(this._eventId.value, this.delegate, this.analyticsService);
|
|
173
|
-
})
|
|
174
|
-
.catch((err) => {
|
|
175
|
-
console.warn('Failed to load StatsViewModel:', err);
|
|
176
|
-
}));
|
|
177
|
-
}
|
|
178
|
-
if (StaticService.isPanelAvailable(pageConfig, 'espnFantasy')) {
|
|
179
|
-
loadPromises.push(import('@/modules/espn/fantasy/view-model/FantasyViewModel')
|
|
180
|
-
.then(({ default: FantasyViewModel }) => {
|
|
181
|
-
this.fantasyViewModel = new FantasyViewModel(this._eventId.value, this.delegate, this.analyticsService);
|
|
182
|
-
})
|
|
183
|
-
.catch((err) => {
|
|
184
|
-
console.warn('Failed to load FantasyViewModel:', err);
|
|
185
|
-
}));
|
|
186
|
-
}
|
|
187
|
-
if (StaticService.isPanelAvailable(pageConfig, 'espnShop')) {
|
|
188
|
-
loadPromises.push(import('@/modules/espn/shop/view-model/ShopViewModel')
|
|
189
|
-
.then(({ default: ShopViewModel }) => {
|
|
190
|
-
this.shopViewModel = new ShopViewModel(this._eventId.value, this.analyticsService);
|
|
191
|
-
})
|
|
192
|
-
.catch((err) => {
|
|
193
|
-
console.warn('Failed to load ShopViewModel:', err);
|
|
194
|
-
}));
|
|
195
|
-
}
|
|
196
|
-
if (StaticService.isPanelAvailable(pageConfig, 'foxMultiView')) {
|
|
197
|
-
loadPromises.push(import('@/modules/fox/multi-view/view-model/MultiViewViewModel')
|
|
198
|
-
.then(({ MultiViewViewModel }) => {
|
|
199
|
-
this.multiViewViewModel = new MultiViewViewModel(this._eventId.value, this.delegate, this.analyticsService);
|
|
200
|
-
})
|
|
201
|
-
.catch((err) => {
|
|
202
|
-
console.warn('Failed to load MultiViewViewModel:', err);
|
|
203
|
-
}));
|
|
204
|
-
}
|
|
205
|
-
if (StaticService.isPanelAvailable(pageConfig, 'builderBlockPanel')) {
|
|
206
|
-
const builderPanel = pageConfig?.panels?.find((p) => p.panel_type === 'builderBlockPanel');
|
|
207
|
-
if (builderPanel) {
|
|
208
|
-
loadPromises.push(import('@/modules/maestro/builder/view-model/BuilderPanelViewModel')
|
|
209
|
-
.then(({ BuilderPanelViewModel }) => {
|
|
210
|
-
this.builderPanelViewModel = new BuilderPanelViewModel(builderPanel, this.analyticsService);
|
|
211
|
-
})
|
|
212
|
-
.catch((err) => {
|
|
213
|
-
console.warn('Failed to load BuilderPanelViewModel:', err);
|
|
214
|
-
}));
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
await Promise.all(loadPromises);
|
|
218
|
-
}
|
|
219
|
-
setActivePanel(panelType) {
|
|
220
|
-
const index = this.panelManagerViewModel.getIndex(panelType);
|
|
221
|
-
if (index === null) {
|
|
222
|
-
console.warn(`Panel type "${panelType}" not found.`);
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
if (!this.navigation.paused) {
|
|
226
|
-
console.warn('Cannot set active panel while navigation is not paused. Doing so will cause focus issues.');
|
|
227
|
-
return;
|
|
228
|
-
}
|
|
229
|
-
this.panelManagerViewModel.setActivePanel(panelType);
|
|
230
|
-
this.navigation.focusKey = `PANEL_NAV_BUTTON_${index}`;
|
|
231
|
-
}
|
|
232
|
-
updatePlayerTimeCode(timestamp) {
|
|
233
|
-
const timestampDate = new Date(timestamp);
|
|
234
|
-
if (isNaN(timestampDate.getTime())) {
|
|
235
|
-
console.warn('Invalid timestamp provided:', timestamp);
|
|
236
|
-
console.warn('Make sure the timestamp is a valid number. \nhttps://developers.maestro.io/sdk/web/maestro-event-interface/state/updatePlayerTimeCode');
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
|
-
this.playerTimeCode = timestamp;
|
|
240
|
-
this.keyPlaysViewModel?.onUpdatePlayerTimeCode(this.playerTimeCode);
|
|
241
|
-
this.statsViewModel?.onUpdatePlayerTimeCode(this.playerTimeCode);
|
|
242
|
-
}
|
|
243
|
-
getPlayerTimeCode() {
|
|
244
|
-
return this.playerTimeCode;
|
|
245
|
-
}
|
|
246
|
-
setDataToPanel(panelData) {
|
|
247
|
-
const panelTypes = Object.keys(panelData);
|
|
248
|
-
// Map panel types to view model instances
|
|
249
|
-
const viewModels = {
|
|
250
|
-
espnStats: this.statsViewModel,
|
|
251
|
-
espnBet: this.betsViewModel,
|
|
252
|
-
espnKeyPlays: this.keyPlaysViewModel,
|
|
253
|
-
espnFantasy: this.fantasyViewModel,
|
|
254
|
-
espnShop: this.shopViewModel,
|
|
255
|
-
builderBlockPanel: this.builderPanelViewModel,
|
|
256
|
-
foxKeyPlays: null,
|
|
257
|
-
foxMultiView: this.multiViewViewModel,
|
|
258
|
-
foxStats: null,
|
|
259
|
-
helloWorld: null,
|
|
260
|
-
};
|
|
261
|
-
for (const panelType of panelTypes) {
|
|
262
|
-
const data = panelData[panelType];
|
|
263
|
-
if (!data)
|
|
264
|
-
continue;
|
|
265
|
-
const viewModel = viewModels[panelType];
|
|
266
|
-
if (!viewModel) {
|
|
267
|
-
// Panel is not initialized, so we ignore the data
|
|
268
|
-
console.log(`[setDataToPanel] Panel '${panelType}' not initialized/supported. Data ignored.`);
|
|
269
|
-
}
|
|
270
|
-
else {
|
|
271
|
-
// Panel exists, call its setDataToPanel method
|
|
272
|
-
if (viewModel.setDataToPanel) {
|
|
273
|
-
viewModel.setDataToPanel(data);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
async deinit() {
|
|
279
|
-
this.betsViewModel?.cleanup();
|
|
280
|
-
this.statsViewModel?.cleanup();
|
|
281
|
-
this.fantasyViewModel?.cleanup();
|
|
282
|
-
this.shopViewModel?.cleanup();
|
|
283
|
-
this.builderPanelViewModel?.cleanup();
|
|
284
|
-
this.multiViewViewModel?.cleanup();
|
|
285
|
-
this.navigation.destroy();
|
|
286
|
-
try {
|
|
287
|
-
await this.didHidePanel();
|
|
288
|
-
}
|
|
289
|
-
catch (error) {
|
|
290
|
-
console.error('Error during didHidePanel in deinit:', error);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
updateKeyPlaysData(data) {
|
|
294
|
-
if (!this.keyPlaysViewModel) {
|
|
295
|
-
return Promise.resolve();
|
|
296
|
-
}
|
|
297
|
-
return this.keyPlaysViewModel.setKeyPlays(data, this.playerTimeCode);
|
|
298
|
-
}
|
|
299
|
-
updateUserSettings(settings) {
|
|
300
|
-
return new Promise((resolve) => {
|
|
301
|
-
UserSettingsManager.getInstance().updateSettings(settings);
|
|
302
|
-
resolve();
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
startFocusManagement() {
|
|
306
|
-
this.navigation.setCurrentFocusedKey(this.navigation.focusKey || 'PANEL_NAV_BUTTON_0');
|
|
307
|
-
setTimeout(() => {
|
|
308
|
-
this.navigation.resume();
|
|
309
|
-
}, 0);
|
|
310
|
-
return Promise.resolve();
|
|
311
|
-
}
|
|
312
|
-
didStartPlayingClip(index) {
|
|
313
|
-
if (!this.keyPlaysViewModel)
|
|
314
|
-
return;
|
|
315
|
-
this.keyPlaysViewModel.lastPlayedClipIndex.value = index;
|
|
316
|
-
this.keyPlaysViewModel.currentClipPlaybackProgress.value = 0;
|
|
317
|
-
this.keyPlaysViewModel.currentlyPlayingClipIndex.value = index;
|
|
318
|
-
this.keyPlaysViewModel.clearLoadFailureStatus(index);
|
|
319
|
-
}
|
|
320
|
-
didStopPlayingClip(index) {
|
|
321
|
-
if (!this.keyPlaysViewModel)
|
|
322
|
-
return;
|
|
323
|
-
this.keyPlaysViewModel.lastPlayedClipIndex.value = index;
|
|
324
|
-
this.keyPlaysViewModel.currentlyPlayingClipIndex.value = null;
|
|
325
|
-
this.keyPlaysViewModel.currentClipPlaybackProgress.value = null;
|
|
326
|
-
}
|
|
327
|
-
didFailToPlayClip(index) {
|
|
328
|
-
this.keyPlaysViewModel?.handleKeyPlayLoadFailure(index);
|
|
329
|
-
}
|
|
330
|
-
didUpdatePlaybackProgressOfClip(index, to) {
|
|
331
|
-
if (!this.keyPlaysViewModel)
|
|
332
|
-
return;
|
|
333
|
-
this.keyPlaysViewModel.currentClipPlaybackProgress.value = to;
|
|
334
|
-
this.keyPlaysViewModel.clearLoadFailureStatus(index);
|
|
335
|
-
}
|
|
336
|
-
async didShowPanel() {
|
|
337
|
-
this.isShowingPanel = true;
|
|
338
|
-
}
|
|
339
|
-
async didHidePanel() {
|
|
340
|
-
this.isShowingPanel = false;
|
|
341
|
-
this.navigation.focusKey = null;
|
|
342
|
-
}
|
|
343
|
-
currentEventDoesNotSupportKeyPlays() {
|
|
344
|
-
if (this.keyPlaysViewModel) {
|
|
345
|
-
this.keyPlaysViewModel.errorState.value = 'unsupportedEvent';
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
getCurrentEventID() {
|
|
349
|
-
return this.eventId.value;
|
|
350
|
-
}
|
|
351
|
-
getCurrentlyPlayingClipIndex() {
|
|
352
|
-
return this.keyPlaysViewModel?.currentlyPlayingClipIndex.value ?? null;
|
|
353
|
-
}
|
|
354
|
-
getLastPlayedClipIndex() {
|
|
355
|
-
return this.keyPlaysViewModel?.lastPlayedClipIndex.value ?? null;
|
|
356
|
-
}
|
|
357
|
-
getCurrentClipPlaybackProgress() {
|
|
358
|
-
return this.keyPlaysViewModel?.currentClipPlaybackProgress.value ?? null;
|
|
359
|
-
}
|
|
360
|
-
getKeyPlaysCount() {
|
|
361
|
-
return this.keyPlaysViewModel?.allItems.length ?? 0;
|
|
362
|
-
}
|
|
363
|
-
get eventId() {
|
|
364
|
-
return this._eventId;
|
|
365
|
-
}
|
|
366
|
-
get title() {
|
|
367
|
-
return this._title;
|
|
368
|
-
}
|
|
369
|
-
get isLive() {
|
|
370
|
-
return this._isLive;
|
|
371
|
-
}
|
|
372
|
-
get isShowingPanel() {
|
|
373
|
-
return this._isShowingPanel.value;
|
|
374
|
-
}
|
|
375
|
-
set isShowingPanel(value) {
|
|
376
|
-
this._isShowingPanel.value = value;
|
|
377
|
-
}
|
|
378
|
-
/**
|
|
379
|
-
* This method is called when the user navigates to the MaestroEventViewModel.
|
|
380
|
-
* It will pause navigation and start focus management.
|
|
381
|
-
*/
|
|
382
|
-
deliverFocus() {
|
|
383
|
-
this.navigation.pause();
|
|
384
|
-
this.delegate.startFocusManagement();
|
|
385
|
-
}
|
|
386
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Observable } from '../helpers/Observable';
|
|
2
|
-
import { MaestroPanelType } from '../models/IPanel';
|
|
3
|
-
export type PanelInfo = {
|
|
4
|
-
type: MaestroPanelType;
|
|
5
|
-
title: string;
|
|
6
|
-
};
|
|
7
|
-
export declare class PanelManagerViewModel {
|
|
8
|
-
private _panels;
|
|
9
|
-
private _currentPanel;
|
|
10
|
-
private settingsManager;
|
|
11
|
-
private settingsUnsubscribe;
|
|
12
|
-
private getAvailablePanelsFromConfig;
|
|
13
|
-
constructor();
|
|
14
|
-
/**
|
|
15
|
-
* Initialize panels based on current settings
|
|
16
|
-
*/
|
|
17
|
-
private initializePanels;
|
|
18
|
-
/**
|
|
19
|
-
* Subscribe to settings changes to update panels dynamically
|
|
20
|
-
*/
|
|
21
|
-
private subscribeToSettingsChanges;
|
|
22
|
-
/**
|
|
23
|
-
* Filter panels based on user settings and page config
|
|
24
|
-
*/
|
|
25
|
-
private filterPanels;
|
|
26
|
-
private updateActivePanel;
|
|
27
|
-
/**
|
|
28
|
-
* Update panels when settings change
|
|
29
|
-
*/
|
|
30
|
-
private updatePanelsBasedOnSettings;
|
|
31
|
-
/**
|
|
32
|
-
* Cleanup subscriptions
|
|
33
|
-
*/
|
|
34
|
-
cleanup(): void;
|
|
35
|
-
get panels(): PanelInfo[];
|
|
36
|
-
get panelsObservable(): Observable<PanelInfo[]>;
|
|
37
|
-
get currentPanel(): MaestroPanelType | null;
|
|
38
|
-
set currentPanel(value: MaestroPanelType | null);
|
|
39
|
-
get currentPanelObservable(): Observable<MaestroPanelType | null>;
|
|
40
|
-
setActivePanel(panelType: MaestroPanelType): void;
|
|
41
|
-
getIndex(forPanelType: MaestroPanelType): number | null;
|
|
42
|
-
getPanelType(atIndex: number): MaestroPanelType | null;
|
|
43
|
-
get panelTypeToLeft(): MaestroPanelType | null;
|
|
44
|
-
get panelTypeToRight(): MaestroPanelType | null;
|
|
45
|
-
/**
|
|
46
|
-
* @returns Array of PanelInfo for panels defined in config but not listed in MaestroPanelType
|
|
47
|
-
*/
|
|
48
|
-
getUnlistedPanels(): PanelInfo[];
|
|
49
|
-
}
|