@maestro_io/maestro-web-sdk 4.0.0-beta.4 → 4.0.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/dist/index.d.ts +1733 -0
- package/dist/maestro-web-sdk.esm.js +1 -1
- package/dist/maestro-web-sdk.esm.js.map +1 -1
- package/dist/maestro-web-sdk.umd.js +1 -1
- package/dist/maestro-web-sdk.umd.js.map +1 -1
- package/package.json +3 -2
- package/dist/f8820fca3a2a7957f753167da0884f9d.png +0 -0
- package/dist/package.json +0 -91
- package/dist/src/__mocks__/sentry.d.ts +0 -4
- 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 -219
- package/dist/src/components/atoms/Rive/index.js +0 -53
- 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 -7
- package/dist/src/components/atoms/SvgIcon/BetsIcon.js +0 -11
- 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/ChatIcon.d.ts +0 -4
- 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/HelloWorldIcon.d.ts +0 -3
- package/dist/src/components/atoms/SvgIcon/Icon.d.ts +0 -40
- package/dist/src/components/atoms/SvgIcon/Icon.js +0 -44
- 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 -4
- 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/OverlayContainer.d.ts +0 -3
- package/dist/src/components/core/OverlayContainer.js +0 -58
- package/dist/src/components/core/PanelManager/PanelManager.d.ts +0 -21
- package/dist/src/components/core/PanelManager/PanelManager.js +0 -86
- 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 -6
- package/dist/src/components/core/ScrollableContainer/FocusableItem.js +0 -38
- package/dist/src/components/core/ScrollableContainer/ScrollableContainer.d.ts +0 -78
- package/dist/src/components/core/ScrollableContainer/ScrollableContainer.js +0 -169
- package/dist/src/components/core/ScrollableContainer/index.d.ts +0 -2
- package/dist/src/components/core/ScrollableContainer/index.js +0 -2
- package/dist/src/components/molecules/ActionButton/ActionButton.d.ts +0 -94
- package/dist/src/components/molecules/ActionButton/ActionButton.js +0 -10
- 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/Overlay/Overlay.d.ts +0 -34
- package/dist/src/components/molecules/Overlay/Overlay.js +0 -139
- package/dist/src/components/molecules/Overlay/index.d.ts +0 -2
- package/dist/src/components/molecules/Overlay/index.js +0 -2
- package/dist/src/components/molecules/PanelNavButton/PanelNavButton.d.ts +0 -104
- package/dist/src/components/molecules/PanelNavButton/PanelNavButton.js +0 -27
- 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 -94
- 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 -16
- package/dist/src/components/organisms/PanelNavigation/PanelNavigation.js +0 -60
- 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 -30
- package/dist/src/components/organisms/SegmentController/SegmentController.js +0 -76
- 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 -109
- 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 -36
- 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 -65
- 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 -155
- package/dist/src/external/spatial-navigation/spatialNavigation.js +0 -876
- package/dist/src/external/spatial-navigation/utils.d.ts +0 -20
- 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 -123
- package/dist/src/external/spatial-navigation/withFocusable.js +0 -245
- package/dist/src/helpers/Observable.d.ts +0 -12
- package/dist/src/helpers/Observable.js +0 -37
- 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/index.d.ts +0 -54
- package/dist/src/index.js +0 -165
- package/dist/src/interfaces/IMaestroEvent.d.ts +0 -126
- package/dist/src/interfaces/IMaestroEvent.js +0 -18
- package/dist/src/interfaces/IMaestroEventDelegate.d.ts +0 -74
- package/dist/src/interfaces/IMaestroEventDelegate.js +0 -1
- package/dist/src/interfaces/IMaestroManager.d.ts +0 -45
- 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 -15
- package/dist/src/models/IPanel.js +0 -40
- package/dist/src/models/ITheme.d.ts +0 -77
- package/dist/src/models/ITheme.js +0 -20
- package/dist/src/models/IWinningBet.d.ts +0 -7
- package/dist/src/models/IWinningBet.js +0 -1
- package/dist/src/modules/bets/interfaces/IBets.d.ts +0 -192
- package/dist/src/modules/bets/interfaces/IBets.js +0 -1
- package/dist/src/modules/bets/mocks.d.ts +0 -2
- package/dist/src/modules/bets/mocks.js +0 -573
- package/dist/src/modules/bets/types/BetsAnalyticsTypes.d.ts +0 -8
- package/dist/src/modules/bets/types/BetsAnalyticsTypes.js +0 -1
- package/dist/src/modules/bets/view/BetsView.d.ts +0 -28
- package/dist/src/modules/bets/view/BetsView.js +0 -143
- package/dist/src/modules/bets/view/HotProps/HotPropsView.d.ts +0 -100
- package/dist/src/modules/bets/view/HotProps/HotPropsView.js +0 -150
- package/dist/src/modules/bets/view/SixPack/SixPackView.d.ts +0 -23
- package/dist/src/modules/bets/view/SixPack/SixPackView.js +0 -110
- package/dist/src/modules/bets/view/UserBets/BetResult/BetResult.d.ts +0 -6
- package/dist/src/modules/bets/view/UserBets/BetResult/BetResult.js +0 -6
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCard.d.ts +0 -101
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCard.js +0 -149
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardEvent.d.ts +0 -26
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardEvent.js +0 -34
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardFooter.d.ts +0 -7
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardFooter.js +0 -18
- package/dist/src/modules/bets/view/UserBets/Boost/Boost.d.ts +0 -7
- package/dist/src/modules/bets/view/UserBets/Boost/Boost.js +0 -6
- package/dist/src/modules/bets/view/UserBets/OutcomeBadge/OutcomeBadge.d.ts +0 -6
- package/dist/src/modules/bets/view/UserBets/OutcomeBadge/OutcomeBadge.js +0 -9
- package/dist/src/modules/bets/view/UserBets/Parlay/Parlay.d.ts +0 -8
- package/dist/src/modules/bets/view/UserBets/Parlay/Parlay.js +0 -13
- package/dist/src/modules/bets/view/UserBets/Straight/Straight.d.ts +0 -7
- package/dist/src/modules/bets/view/UserBets/Straight/Straight.js +0 -6
- package/dist/src/modules/bets/view/UserBets/Teaser/Teaser.d.ts +0 -7
- package/dist/src/modules/bets/view/UserBets/Teaser/Teaser.js +0 -13
- package/dist/src/modules/bets/view/UserBets/UserBetsView.d.ts +0 -25
- package/dist/src/modules/bets/view/UserBets/UserBetsView.js +0 -107
- package/dist/src/modules/bets/view/components/Bet/Bet.d.ts +0 -158
- package/dist/src/modules/bets/view/components/Bet/Bet.js +0 -32
- package/dist/src/modules/bets/view/components/BetPill/BetPill.d.ts +0 -6
- package/dist/src/modules/bets/view/components/BetPill/BetPill.js +0 -6
- package/dist/src/modules/bets/view/components/BetsCard/BetsCard.d.ts +0 -10
- package/dist/src/modules/bets/view/components/BetsCard/BetsCard.js +0 -15
- package/dist/src/modules/bets/view/components/BetsCard/BetsCardHeader.d.ts +0 -16
- package/dist/src/modules/bets/view/components/BetsCard/BetsCardHeader.js +0 -20
- package/dist/src/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.d.ts +0 -8
- package/dist/src/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.js +0 -14
- package/dist/src/modules/bets/view/components/LocationWarning/LocationWarning.d.ts +0 -10
- package/dist/src/modules/bets/view/components/LocationWarning/LocationWarning.js +0 -16
- package/dist/src/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.d.ts +0 -18
- package/dist/src/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.js +0 -78
- package/dist/src/modules/bets/view/components/PromoCodeBanner/index.d.ts +0 -1
- package/dist/src/modules/bets/view/components/PromoCodeBanner/index.js +0 -1
- package/dist/src/modules/bets/view-model/BetsViewModel.d.ts +0 -219
- package/dist/src/modules/bets/view-model/BetsViewModel.js +0 -974
- package/dist/src/modules/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.d.ts +0 -28
- package/dist/src/modules/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.js +0 -107
- package/dist/src/modules/fantasy/components/ExpandedAthleteList/index.d.ts +0 -1
- package/dist/src/modules/fantasy/components/ExpandedAthleteList/index.js +0 -1
- package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.d.ts +0 -102
- package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.js +0 -20
- package/dist/src/modules/fantasy/components/LeagueCard/index.d.ts +0 -2
- package/dist/src/modules/fantasy/components/LeagueCard/index.js +0 -2
- package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +0 -99
- package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.js +0 -29
- package/dist/src/modules/fantasy/components/TopPlayerCard/index.d.ts +0 -2
- package/dist/src/modules/fantasy/components/TopPlayerCard/index.js +0 -2
- package/dist/src/modules/fantasy/mocks.d.ts +0 -7620
- package/dist/src/modules/fantasy/mocks.js +0 -3682
- package/dist/src/modules/fantasy/types.d.ts +0 -176
- package/dist/src/modules/fantasy/types.js +0 -6
- package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.d.ts +0 -21
- package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.js +0 -74
- package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/index.d.ts +0 -2
- package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/index.js +0 -2
- package/dist/src/modules/fantasy/view/ErrorBoundary.d.ts +0 -13
- package/dist/src/modules/fantasy/view/FantasyItemView.d.ts +0 -22
- package/dist/src/modules/fantasy/view/FantasyItemView.js +0 -74
- package/dist/src/modules/fantasy/view/FantasyView.d.ts +0 -27
- package/dist/src/modules/fantasy/view/FantasyView.js +0 -133
- package/dist/src/modules/fantasy/view/InactiveLeague/DraftDateCountdown.d.ts +0 -23
- package/dist/src/modules/fantasy/view/InactiveLeague/DraftDateCountdown.js +0 -95
- package/dist/src/modules/fantasy/view/InactiveLeague/InactiveLeague.d.ts +0 -98
- package/dist/src/modules/fantasy/view/InactiveLeague/InactiveLeague.js +0 -13
- package/dist/src/modules/fantasy/view/InactiveLeague/index.d.ts +0 -2
- package/dist/src/modules/fantasy/view/InactiveLeague/index.js +0 -2
- package/dist/src/modules/fantasy/view/LoginView/LoginView.d.ts +0 -94
- package/dist/src/modules/fantasy/view/LoginView/LoginView.js +0 -27
- package/dist/src/modules/fantasy/view/LoginView/index.d.ts +0 -2
- package/dist/src/modules/fantasy/view/LoginView/index.js +0 -2
- package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts +0 -95
- package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.js +0 -25
- package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/index.d.ts +0 -2
- package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/index.js +0 -2
- package/dist/src/modules/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.d.ts +0 -14
- package/dist/src/modules/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.js +0 -9
- package/dist/src/modules/fantasy/view/MatchupPair/MatchupPair.d.ts +0 -100
- package/dist/src/modules/fantasy/view/MatchupPair/MatchupPair.js +0 -118
- package/dist/src/modules/fantasy/view/MatchupPair/index.d.ts +0 -2
- package/dist/src/modules/fantasy/view/MatchupPair/index.js +0 -2
- package/dist/src/modules/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.d.ts +0 -14
- package/dist/src/modules/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.js +0 -9
- package/dist/src/modules/fantasy/view/MatchupSingle/MatchupSingle.d.ts +0 -100
- package/dist/src/modules/fantasy/view/MatchupSingle/MatchupSingle.js +0 -108
- package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts +0 -95
- package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.js +0 -18
- package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/index.d.ts +0 -2
- package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/index.js +0 -2
- package/dist/src/modules/fantasy/view/MatchupSingle/index.d.ts +0 -2
- package/dist/src/modules/fantasy/view/MatchupSingle/index.js +0 -2
- package/dist/src/modules/fantasy/view/PromoView/PromoView.d.ts +0 -98
- package/dist/src/modules/fantasy/view/PromoView/PromoView.js +0 -12
- package/dist/src/modules/fantasy/view/PromoView/index.d.ts +0 -2
- package/dist/src/modules/fantasy/view/PromoView/index.js +0 -2
- package/dist/src/modules/fantasy/view/index.d.ts +0 -2
- package/dist/src/modules/fantasy/view/index.js +0 -2
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.FantasyPolling.d.ts +0 -32
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.FantasyPolling.js +0 -132
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.LeagueManagerPolling.d.ts +0 -32
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.LeagueManagerPolling.js +0 -141
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.d.ts +0 -148
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.js +0 -534
- package/dist/src/modules/hello-world/HelloWorldImage.d.ts +0 -3
- package/dist/src/modules/hello-world/HelloWorldView.d.ts +0 -11
- package/dist/src/modules/hello-world/HelloWorldView.js +0 -33
- package/dist/src/modules/hello-world/index.d.ts +0 -2
- package/dist/src/modules/hello-world/index.js +0 -2
- package/dist/src/modules/key-plays/constants.d.ts +0 -3
- package/dist/src/modules/key-plays/constants.js +0 -292
- package/dist/src/modules/key-plays/interfaces/IKeyPlays.d.ts +0 -32
- package/dist/src/modules/key-plays/interfaces/IKeyPlays.js +0 -14
- package/dist/src/modules/key-plays/interfaces/IKeyPlaysResponse.d.ts +0 -44
- package/dist/src/modules/key-plays/interfaces/IKeyPlaysResponse.js +0 -1
- package/dist/src/modules/key-plays/view/KeyPlayCardScoreTagView.d.ts +0 -9
- package/dist/src/modules/key-plays/view/KeyPlayCardScoreTagView.js +0 -16
- package/dist/src/modules/key-plays/view/KeyPlayCardView.d.ts +0 -39
- package/dist/src/modules/key-plays/view/KeyPlayCardView.js +0 -139
- package/dist/src/modules/key-plays/view/KeyPlayErrorStateView.d.ts +0 -13
- package/dist/src/modules/key-plays/view/KeyPlayErrorStateView.js +0 -65
- package/dist/src/modules/key-plays/view/KeyPlaysView.d.ts +0 -37
- package/dist/src/modules/key-plays/view/KeyPlaysView.js +0 -151
- package/dist/src/modules/key-plays/view-model/KeyPlaysViewModel.d.ts +0 -37
- package/dist/src/modules/key-plays/view-model/KeyPlaysViewModel.js +0 -246
- package/dist/src/modules/shop/mocks.d.ts +0 -22
- package/dist/src/modules/shop/mocks.js +0 -391
- package/dist/src/modules/shop/types.d.ts +0 -161
- package/dist/src/modules/shop/types.js +0 -7
- package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.d.ts +0 -9
- package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.js +0 -60
- package/dist/src/modules/shop/view/ProductDetailView/index.d.ts +0 -2
- package/dist/src/modules/shop/view/ProductDetailView/index.js +0 -2
- package/dist/src/modules/shop/view/ShopView.d.ts +0 -35
- package/dist/src/modules/shop/view/ShopView.js +0 -182
- package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.d.ts +0 -101
- package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.js +0 -23
- package/dist/src/modules/shop/view/components/BrowseCard/index.d.ts +0 -2
- package/dist/src/modules/shop/view/components/BrowseCard/index.js +0 -2
- package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.d.ts +0 -102
- package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.js +0 -26
- package/dist/src/modules/shop/view/components/ProductSummaryCard/index.d.ts +0 -2
- package/dist/src/modules/shop/view/components/ProductSummaryCard/index.js +0 -1
- package/dist/src/modules/shop/view/components/ShopPromoView/ShopPromoView.d.ts +0 -8
- package/dist/src/modules/shop/view/components/ShopPromoView/ShopPromoView.js +0 -19
- package/dist/src/modules/shop/view/components/ShopPromoView/index.d.ts +0 -1
- package/dist/src/modules/shop/view/components/ShopPromoView/index.js +0 -1
- package/dist/src/modules/shop/view/components/ShopSection/ShopSection.d.ts +0 -23
- package/dist/src/modules/shop/view/components/ShopSection/ShopSection.js +0 -61
- package/dist/src/modules/shop/view/components/ShopSection/ShopSectionItem.d.ts +0 -18
- package/dist/src/modules/shop/view/components/ShopSection/ShopSectionItem.js +0 -22
- package/dist/src/modules/shop/view/components/ShopSection/index.d.ts +0 -1
- package/dist/src/modules/shop/view/components/ShopSection/index.js +0 -1
- package/dist/src/modules/shop/view/index.d.ts +0 -2
- package/dist/src/modules/shop/view/index.js +0 -2
- package/dist/src/modules/shop/view-model/ShopViewModel.ShopPolling.d.ts +0 -31
- package/dist/src/modules/shop/view-model/ShopViewModel.ShopPolling.js +0 -111
- package/dist/src/modules/shop/view-model/ShopViewModel.d.ts +0 -77
- package/dist/src/modules/shop/view-model/ShopViewModel.js +0 -357
- package/dist/src/modules/stats/interfaces/IStats.d.ts +0 -226
- package/dist/src/modules/stats/interfaces/IStats.js +0 -1
- package/dist/src/modules/stats/mocks.d.ts +0 -2
- package/dist/src/modules/stats/mocks.js +0 -746
- package/dist/src/modules/stats/utils/driveSummaryUtils.d.ts +0 -18
- package/dist/src/modules/stats/utils/driveSummaryUtils.js +0 -48
- package/dist/src/modules/stats/utils/renderTeamStatistic.d.ts +0 -20
- package/dist/src/modules/stats/utils/renderTeamStatistic.js +0 -16
- package/dist/src/modules/stats/utils.d.ts +0 -39
- package/dist/src/modules/stats/utils.js +0 -62
- package/dist/src/modules/stats/view/ActiveAthletes/ActiveAthletes.d.ts +0 -22
- package/dist/src/modules/stats/view/ActiveAthletes/ActiveAthletes.js +0 -98
- package/dist/src/modules/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.d.ts +0 -4
- package/dist/src/modules/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.js +0 -27
- package/dist/src/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.d.ts +0 -22
- package/dist/src/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.js +0 -89
- package/dist/src/modules/stats/view/ActiveAthletes/index.d.ts +0 -2
- package/dist/src/modules/stats/view/ActiveAthletes/index.js +0 -2
- package/dist/src/modules/stats/view/DriveSummary/DrivePlayCard.d.ts +0 -106
- package/dist/src/modules/stats/view/DriveSummary/DrivePlayCard.js +0 -70
- package/dist/src/modules/stats/view/DriveSummary/DriveSummary.d.ts +0 -17
- package/dist/src/modules/stats/view/DriveSummary/DriveSummary.js +0 -87
- package/dist/src/modules/stats/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.d.ts +0 -27
- package/dist/src/modules/stats/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.js +0 -129
- package/dist/src/modules/stats/view/DriveSummary/Header/DriveSummaryHeader.d.ts +0 -12
- package/dist/src/modules/stats/view/DriveSummary/Header/DriveSummaryHeader.js +0 -26
- package/dist/src/modules/stats/view/DriveSummary/MainStat/MainStat.d.ts +0 -10
- package/dist/src/modules/stats/view/DriveSummary/MainStat/MainStat.js +0 -24
- package/dist/src/modules/stats/view/DriveSummary/index.d.ts +0 -2
- package/dist/src/modules/stats/view/DriveSummary/index.js +0 -2
- package/dist/src/modules/stats/view/GameLeaders/GameLeaders.d.ts +0 -21
- package/dist/src/modules/stats/view/GameLeaders/GameLeaders.js +0 -48
- package/dist/src/modules/stats/view/GameLeaders/index.d.ts +0 -2
- package/dist/src/modules/stats/view/GameLeaders/index.js +0 -2
- package/dist/src/modules/stats/view/MatchPredictor/DonutChart/DonutChart.d.ts +0 -17
- package/dist/src/modules/stats/view/MatchPredictor/DonutChart/DonutChart.js +0 -55
- package/dist/src/modules/stats/view/MatchPredictor/DonutChart/index.d.ts +0 -2
- package/dist/src/modules/stats/view/MatchPredictor/DonutChart/index.js +0 -1
- package/dist/src/modules/stats/view/MatchPredictor/MatchPredictorView.d.ts +0 -98
- package/dist/src/modules/stats/view/MatchPredictor/MatchPredictorView.js +0 -60
- package/dist/src/modules/stats/view/MatchPredictor/index.d.ts +0 -3
- package/dist/src/modules/stats/view/MatchPredictor/index.js +0 -2
- package/dist/src/modules/stats/view/Penalties/Penalties.d.ts +0 -9
- package/dist/src/modules/stats/view/Penalties/Penalties.js +0 -6
- package/dist/src/modules/stats/view/Penalties/index.d.ts +0 -2
- package/dist/src/modules/stats/view/Penalties/index.js +0 -2
- package/dist/src/modules/stats/view/RecentGames/RecentGames.d.ts +0 -98
- package/dist/src/modules/stats/view/RecentGames/RecentGames.js +0 -23
- package/dist/src/modules/stats/view/RecentGames/index.d.ts +0 -2
- package/dist/src/modules/stats/view/RecentGames/index.js +0 -2
- package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.d.ts +0 -30
- package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.js +0 -123
- package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/index.d.ts +0 -2
- package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/index.js +0 -2
- package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/ScoreItem.d.ts +0 -98
- package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/ScoreItem.js +0 -62
- package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/index.d.ts +0 -2
- package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/index.js +0 -2
- package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/ScoresSection.d.ts +0 -6
- package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/ScoresSection.js +0 -23
- package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/index.d.ts +0 -2
- package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/index.js +0 -2
- package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.d.ts +0 -29
- package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.js +0 -125
- package/dist/src/modules/stats/view/ScoringSummary/index.d.ts +0 -2
- package/dist/src/modules/stats/view/ScoringSummary/index.js +0 -2
- package/dist/src/modules/stats/view/StatsItemView.d.ts +0 -22
- package/dist/src/modules/stats/view/StatsItemView.js +0 -92
- package/dist/src/modules/stats/view/StatsQRCode/StatsQRCodeView.d.ts +0 -98
- package/dist/src/modules/stats/view/StatsQRCode/StatsQRCodeView.js +0 -36
- package/dist/src/modules/stats/view/StatsQRCode/index.d.ts +0 -2
- package/dist/src/modules/stats/view/StatsQRCode/index.js +0 -1
- package/dist/src/modules/stats/view/StatsView.d.ts +0 -27
- package/dist/src/modules/stats/view/StatsView.js +0 -137
- package/dist/src/modules/stats/view/TeamStats/TeamStatsView.d.ts +0 -98
- package/dist/src/modules/stats/view/TeamStats/TeamStatsView.js +0 -43
- package/dist/src/modules/stats/view/TeamStats/index.d.ts +0 -2
- package/dist/src/modules/stats/view/TeamStats/index.js +0 -1
- package/dist/src/modules/stats/view/Teams/StatsCarousel.d.ts +0 -25
- package/dist/src/modules/stats/view/Teams/StatsCarousel.js +0 -83
- package/dist/src/modules/stats/view/Teams/StatsProgressBar.d.ts +0 -6
- package/dist/src/modules/stats/view/Teams/StatsProgressBar.js +0 -19
- package/dist/src/modules/stats/view/Teams/Teams.d.ts +0 -98
- package/dist/src/modules/stats/view/Teams/Teams.js +0 -43
- package/dist/src/modules/stats/view/Teams/index.d.ts +0 -2
- package/dist/src/modules/stats/view/Teams/index.js +0 -2
- package/dist/src/modules/stats/view/WinProbability/WinProbability.d.ts +0 -98
- package/dist/src/modules/stats/view/WinProbability/WinProbability.js +0 -28
- package/dist/src/modules/stats/view/WinProbability/index.d.ts +0 -2
- package/dist/src/modules/stats/view/WinProbability/index.js +0 -2
- package/dist/src/modules/stats/view/components/AthletesStatistics/AthletesStatistics.d.ts +0 -113
- package/dist/src/modules/stats/view/components/AthletesStatistics/AthletesStatistics.js +0 -89
- package/dist/src/modules/stats/view/components/AthletesStatistics/StatisticTable.d.ts +0 -3
- package/dist/src/modules/stats/view/components/AthletesStatistics/StatisticTable.js +0 -12
- package/dist/src/modules/stats/view/components/AthletesStatistics/index.d.ts +0 -2
- package/dist/src/modules/stats/view/components/AthletesStatistics/index.js +0 -2
- package/dist/src/modules/stats/view/index.d.ts +0 -2
- package/dist/src/modules/stats/view/index.js +0 -2
- package/dist/src/modules/stats/view-model/StatsViewModel.d.ts +0 -241
- package/dist/src/modules/stats/view-model/StatsViewModel.js +0 -989
- package/dist/src/sentry.d.ts +0 -3
- package/dist/src/sentry.js +0 -31
- package/dist/src/services/AnalyticsService/AnalyticsService.d.ts +0 -84
- package/dist/src/services/AnalyticsService/AnalyticsService.js +0 -404
- package/dist/src/services/AnalyticsService/types.d.ts +0 -65
- package/dist/src/services/AnalyticsService/types.js +0 -1
- package/dist/src/services/BetsService.d.ts +0 -81
- package/dist/src/services/BetsService.js +0 -122
- package/dist/src/services/FantasyService.d.ts +0 -53
- package/dist/src/services/FantasyService.js +0 -92
- package/dist/src/services/GlobalService/GlobalService.d.ts +0 -9
- package/dist/src/services/GlobalService/PageService.d.ts +0 -9
- package/dist/src/services/GlobalService/index.d.ts +0 -2
- package/dist/src/services/GlobalService/mocks.d.ts +0 -2
- package/dist/src/services/GlobalService/types.d.ts +0 -11
- package/dist/src/services/InsightsService/InsightsPayloadBuilder.d.ts +0 -279
- package/dist/src/services/InsightsService/InsightsPayloadBuilder.js +0 -386
- 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 -147
- package/dist/src/services/NetworkManager/NetworkManager.js +0 -457
- package/dist/src/services/NetworkManager/NetworkManagerFactory.d.ts +0 -42
- package/dist/src/services/NetworkManager/NetworkManagerFactory.js +0 -101
- package/dist/src/services/NetworkManager/errors.d.ts +0 -17
- package/dist/src/services/NetworkManager/errors.js +0 -45
- package/dist/src/services/NetworkManager/types.d.ts +0 -103
- package/dist/src/services/NetworkManager/types.js +0 -10
- package/dist/src/services/PageService/PageService.d.ts +0 -9
- package/dist/src/services/PageService/PageService.js +0 -39
- package/dist/src/services/PageService/index.d.ts +0 -2
- package/dist/src/services/PageService/index.js +0 -2
- package/dist/src/services/PageService/mocks.d.ts +0 -2
- package/dist/src/services/PageService/mocks.js +0 -104
- package/dist/src/services/PageService/types.d.ts +0 -76
- package/dist/src/services/PageService/types.js +0 -1
- package/dist/src/services/ShopService.d.ts +0 -23
- package/dist/src/services/ShopService.js +0 -46
- package/dist/src/services/StaticService/PageService.d.ts +0 -9
- package/dist/src/services/StaticService/StaticService.d.ts +0 -12
- package/dist/src/services/StaticService/StaticService.js +0 -59
- 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 -2
- package/dist/src/services/StaticService/mocks.js +0 -104
- package/dist/src/services/StaticService/types.d.ts +0 -76
- package/dist/src/services/StaticService/types.js +0 -1
- package/dist/src/services/StatsService.d.ts +0 -46
- package/dist/src/services/StatsService.js +0 -147
- 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 -155
- package/dist/src/test-polyfills.d.ts +0 -1
- package/dist/src/test-polyfills.js +0 -15
- package/dist/src/types/OverlayTypes.d.ts +0 -43
- package/dist/src/types/OverlayTypes.js +0 -4
- package/dist/src/view-models/MaestroEventViewModel.d.ts +0 -63
- package/dist/src/view-models/MaestroEventViewModel.js +0 -304
- package/dist/src/view-models/OverlayViewModel.d.ts +0 -33
- package/dist/src/view-models/OverlayViewModel.js +0 -222
- package/dist/src/view-models/PanelManagerViewModel.d.ts +0 -46
- package/dist/src/view-models/PanelManagerViewModel.js +0 -212
- package/dist/src/view-models/ViewModel.d.ts +0 -12
- package/dist/src/view-models/ViewModel.js +0 -32
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import './ScrollableContainer.styles.css';
|
|
4
|
-
const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
5
|
-
/**
|
|
6
|
-
* ScrollableContainer component provides a context for focusable items
|
|
7
|
-
* that allows them to register themselves and handle scrolling
|
|
8
|
-
* when they become focused.
|
|
9
|
-
* @example
|
|
10
|
-
* ```jsx
|
|
11
|
-
* <ScrollableContainer scrollableContainerRef={scrollableContainerRef}>
|
|
12
|
-
* <FocusableItem>Item 1</FocusableItem>
|
|
13
|
-
* <FocusableItem>Item 2</FocusableItem>
|
|
14
|
-
* <FocusableItem>Item 3</FocusableItem>
|
|
15
|
-
* </ScrollableContainer>
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
class ScrollableContainer extends React.Component {
|
|
19
|
-
constructor() {
|
|
20
|
-
super(...arguments);
|
|
21
|
-
Object.defineProperty(this, "refsMap", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
configurable: true,
|
|
24
|
-
writable: true,
|
|
25
|
-
value: []
|
|
26
|
-
});
|
|
27
|
-
Object.defineProperty(this, "hash", {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
configurable: true,
|
|
30
|
-
writable: true,
|
|
31
|
-
value: ''
|
|
32
|
-
});
|
|
33
|
-
Object.defineProperty(this, "lastHash", {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
configurable: true,
|
|
36
|
-
writable: true,
|
|
37
|
-
value: ''
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(this, "state", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
configurable: true,
|
|
42
|
-
writable: true,
|
|
43
|
-
value: {
|
|
44
|
-
scrolled: false,
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
Object.defineProperty(this, "setRef", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
configurable: true,
|
|
50
|
-
writable: true,
|
|
51
|
-
value: (ref) => {
|
|
52
|
-
this.refsMap.push(ref);
|
|
53
|
-
this.hash = Math.random().toString(36).substring(2, 15);
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
Object.defineProperty(this, "getOrderedRefs", {
|
|
57
|
-
enumerable: true,
|
|
58
|
-
configurable: true,
|
|
59
|
-
writable: true,
|
|
60
|
-
value: () => {
|
|
61
|
-
if (this.hash === this.lastHash) {
|
|
62
|
-
return this.refsMap;
|
|
63
|
-
}
|
|
64
|
-
this.refsMap = this.refsMap.sort((a, b) => {
|
|
65
|
-
if (!this.props.scrollableContainerRef)
|
|
66
|
-
return 0;
|
|
67
|
-
const containerRect = this.props.scrollableContainerRef.getBoundingClientRect();
|
|
68
|
-
const aRect = a ? a.getBoundingClientRect() : { top: 0, bottom: 0 };
|
|
69
|
-
const bRect = b ? b.getBoundingClientRect() : { top: 0, bottom: 0 };
|
|
70
|
-
// Calculate the actual distance from container top (positive means below, negative means above)
|
|
71
|
-
const aDistance = aRect.top - containerRect.top;
|
|
72
|
-
const bDistance = bRect.top - containerRect.top;
|
|
73
|
-
return aDistance - bDistance;
|
|
74
|
-
});
|
|
75
|
-
this.lastHash = this.hash;
|
|
76
|
-
return this.refsMap;
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
/**
|
|
80
|
-
* @description - Scrolls the container to the focused element if necessary
|
|
81
|
-
*/
|
|
82
|
-
Object.defineProperty(this, "scrollToFocusedElement", {
|
|
83
|
-
enumerable: true,
|
|
84
|
-
configurable: true,
|
|
85
|
-
writable: true,
|
|
86
|
-
value: async (layout, options) => {
|
|
87
|
-
if (!this.props.scrollableContainerRef || !layout.node)
|
|
88
|
-
return;
|
|
89
|
-
const offsetTop = options?.offsetTop || 0;
|
|
90
|
-
const refs = this.getOrderedRefs();
|
|
91
|
-
// Wait for the next frame to ensure the layout is updated
|
|
92
|
-
if (process.env.NODE_ENV !== 'test') {
|
|
93
|
-
await wait(0);
|
|
94
|
-
}
|
|
95
|
-
const containerRect = this.props.scrollableContainerRef.getBoundingClientRect();
|
|
96
|
-
const nodeRect = layout.node.getBoundingClientRect();
|
|
97
|
-
let index = -1;
|
|
98
|
-
for (let i = refs.length - 1; i >= 0; i--) {
|
|
99
|
-
if (refs[i].contains(layout.node)) {
|
|
100
|
-
index = i;
|
|
101
|
-
break;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
if (index === -1) {
|
|
105
|
-
console.warn('Element not found in refsMap to focus to. Register the element wrapping it with <FocusableItem />');
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
let hasOutside = false;
|
|
109
|
-
refs.slice(index).forEach((el) => {
|
|
110
|
-
const rect = el.getBoundingClientRect();
|
|
111
|
-
if (rect.bottom > containerRect.bottom || rect.top < containerRect.top) {
|
|
112
|
-
hasOutside = true;
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
if (!hasOutside)
|
|
116
|
-
return;
|
|
117
|
-
const target = index === 0
|
|
118
|
-
? 0
|
|
119
|
-
: this.props.scrollableContainerRef.scrollTop +
|
|
120
|
-
(nodeRect.top -
|
|
121
|
-
containerRect.top -
|
|
122
|
-
(this.props.containerTopOffset || 0) -
|
|
123
|
-
offsetTop);
|
|
124
|
-
this.props.scrollableContainerRef.scrollTop = target;
|
|
125
|
-
const newScrolled = target > 0;
|
|
126
|
-
if (this.state.scrolled !== newScrolled) {
|
|
127
|
-
this.setState({ scrolled: newScrolled });
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
getChildContext() {
|
|
133
|
-
return {
|
|
134
|
-
refsMap: this.refsMap,
|
|
135
|
-
setRef: this.setRef,
|
|
136
|
-
scrollToFocusedElement: this.scrollToFocusedElement,
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
componentWillUnmount() {
|
|
140
|
-
this.refsMap = [];
|
|
141
|
-
this.hash = '';
|
|
142
|
-
this.lastHash = '';
|
|
143
|
-
}
|
|
144
|
-
render() {
|
|
145
|
-
const { scrollableContainerRef: _, containerTopOffset: __, ...rest } = this.props;
|
|
146
|
-
return (React.createElement("div", { className: "scrollable-container", "data-scrolled": this.state.scrolled, ...rest }, this.props.children));
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
Object.defineProperty(ScrollableContainer, "childContextTypes", {
|
|
150
|
-
enumerable: true,
|
|
151
|
-
configurable: true,
|
|
152
|
-
writable: true,
|
|
153
|
-
value: {
|
|
154
|
-
refsMap: PropTypes.arrayOf(PropTypes.instanceOf(HTMLElement)),
|
|
155
|
-
setRef: PropTypes.func,
|
|
156
|
-
scrollToFocusedElement: PropTypes.func,
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
export const DEFAULT_SCROLLABLE_CONTAINER_CONTEXT = {
|
|
160
|
-
setRef: (_) => { },
|
|
161
|
-
scrollToFocusedElement: () => { },
|
|
162
|
-
refsMap: [],
|
|
163
|
-
};
|
|
164
|
-
export const SCROLLABLE_CONTEXT_TYPE = {
|
|
165
|
-
refsMap: PropTypes.arrayOf(PropTypes.instanceOf(HTMLElement)),
|
|
166
|
-
setRef: PropTypes.func,
|
|
167
|
-
scrollToFocusedElement: PropTypes.func,
|
|
168
|
-
};
|
|
169
|
-
export default ScrollableContainer;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/// <reference types="prop-types" />
|
|
2
|
-
import './ActionButton.styles.css';
|
|
3
|
-
import { WithFocusableProps } from '@/external/spatial-navigation';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
declare const _default: {
|
|
6
|
-
new (props: (object & WithFocusableProps) | Readonly<object & WithFocusableProps>): {
|
|
7
|
-
state: import("../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
8
|
-
navigation: import("../../../external/spatial-navigation/spatialNavigation").default;
|
|
9
|
-
getChildContext(): {
|
|
10
|
-
parentFocusKey: string;
|
|
11
|
-
};
|
|
12
|
-
setFocus: (focusKey: string) => void;
|
|
13
|
-
navigateByDirection: (direction: import("../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
|
|
14
|
-
stealFocus: () => void;
|
|
15
|
-
onUpdateFocus: (focused: boolean) => void;
|
|
16
|
-
onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
|
|
17
|
-
onEnterPressHandler: (details: import("../../../external/spatial-navigation/utils").Details) => void;
|
|
18
|
-
onEnterReleaseHandler: () => void;
|
|
19
|
-
onBackPressHandler: (details: import("../../../external/spatial-navigation/utils").Details) => void;
|
|
20
|
-
onArrowPressHandler: (direction: import("../../../external/spatial-navigation/utils").Direction, details: import("../../../external/spatial-navigation/utils").Details) => boolean | void;
|
|
21
|
-
onBecameFocusedHandler: (layout: import("../../../external/spatial-navigation/utils").Layout, details: import("../../../external/spatial-navigation/utils").Details) => void;
|
|
22
|
-
onBecameBlurredHandler: (layout: import("../../../external/spatial-navigation/utils").Layout, details: import("../../../external/spatial-navigation/utils").Details) => void;
|
|
23
|
-
componentDidMount(): void;
|
|
24
|
-
componentDidUpdate(): void;
|
|
25
|
-
componentWillUnmount(): void;
|
|
26
|
-
render(): React.ReactElement<object & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
27
|
-
context: any;
|
|
28
|
-
setState<K extends keyof import("../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<object & WithFocusableProps>) => import("../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
|
|
29
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
30
|
-
readonly props: Readonly<object & WithFocusableProps> & Readonly<{
|
|
31
|
-
children?: React.ReactNode;
|
|
32
|
-
}>;
|
|
33
|
-
refs: {
|
|
34
|
-
[key: string]: React.ReactInstance;
|
|
35
|
-
};
|
|
36
|
-
shouldComponentUpdate?(nextProps: Readonly<object & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
37
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
38
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<object & WithFocusableProps>, prevState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
39
|
-
componentWillMount?(): void;
|
|
40
|
-
UNSAFE_componentWillMount?(): void;
|
|
41
|
-
componentWillReceiveProps?(nextProps: Readonly<object & WithFocusableProps>, nextContext: any): void;
|
|
42
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<object & WithFocusableProps>, nextContext: any): void;
|
|
43
|
-
componentWillUpdate?(nextProps: Readonly<object & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
44
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<object & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
45
|
-
};
|
|
46
|
-
new (props: object & WithFocusableProps, context: any): {
|
|
47
|
-
state: import("../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
48
|
-
navigation: import("../../../external/spatial-navigation/spatialNavigation").default;
|
|
49
|
-
getChildContext(): {
|
|
50
|
-
parentFocusKey: string;
|
|
51
|
-
};
|
|
52
|
-
setFocus: (focusKey: string) => void;
|
|
53
|
-
navigateByDirection: (direction: import("../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
|
|
54
|
-
stealFocus: () => void;
|
|
55
|
-
onUpdateFocus: (focused: boolean) => void;
|
|
56
|
-
onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
|
|
57
|
-
onEnterPressHandler: (details: import("../../../external/spatial-navigation/utils").Details) => void;
|
|
58
|
-
onEnterReleaseHandler: () => void;
|
|
59
|
-
onBackPressHandler: (details: import("../../../external/spatial-navigation/utils").Details) => void;
|
|
60
|
-
onArrowPressHandler: (direction: import("../../../external/spatial-navigation/utils").Direction, details: import("../../../external/spatial-navigation/utils").Details) => boolean | void;
|
|
61
|
-
onBecameFocusedHandler: (layout: import("../../../external/spatial-navigation/utils").Layout, details: import("../../../external/spatial-navigation/utils").Details) => void;
|
|
62
|
-
onBecameBlurredHandler: (layout: import("../../../external/spatial-navigation/utils").Layout, details: import("../../../external/spatial-navigation/utils").Details) => void;
|
|
63
|
-
componentDidMount(): void;
|
|
64
|
-
componentDidUpdate(): void;
|
|
65
|
-
componentWillUnmount(): void;
|
|
66
|
-
render(): React.ReactElement<object & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
67
|
-
context: any;
|
|
68
|
-
setState<K extends keyof import("../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<object & WithFocusableProps>) => import("../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
|
|
69
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
70
|
-
readonly props: Readonly<object & WithFocusableProps> & Readonly<{
|
|
71
|
-
children?: React.ReactNode;
|
|
72
|
-
}>;
|
|
73
|
-
refs: {
|
|
74
|
-
[key: string]: React.ReactInstance;
|
|
75
|
-
};
|
|
76
|
-
shouldComponentUpdate?(nextProps: Readonly<object & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
77
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
78
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<object & WithFocusableProps>, prevState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
79
|
-
componentWillMount?(): void;
|
|
80
|
-
UNSAFE_componentWillMount?(): void;
|
|
81
|
-
componentWillReceiveProps?(nextProps: Readonly<object & WithFocusableProps>, nextContext: any): void;
|
|
82
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<object & WithFocusableProps>, nextContext: any): void;
|
|
83
|
-
componentWillUpdate?(nextProps: Readonly<object & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
84
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<object & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
85
|
-
};
|
|
86
|
-
contextTypes: {
|
|
87
|
-
parentFocusKey: import("prop-types").Requireable<string>;
|
|
88
|
-
};
|
|
89
|
-
childContextTypes: {
|
|
90
|
-
parentFocusKey: import("prop-types").Requireable<string>;
|
|
91
|
-
};
|
|
92
|
-
contextType?: React.Context<any> | undefined;
|
|
93
|
-
};
|
|
94
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import BaseButton from '@/components/atoms/BaseButton';
|
|
2
|
-
import './ActionButton.styles.css';
|
|
3
|
-
import { withFocusable, } from '@/external/spatial-navigation';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
class ActionButton extends React.Component {
|
|
6
|
-
render() {
|
|
7
|
-
return (React.createElement(BaseButton, { className: "action-button T05_ALT", ...this.props }, this.props.children));
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export default withFocusable()(ActionButton);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { ImgHTMLAttributes } from 'react';
|
|
2
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r7v/wBX+fpRcLhu9evHv6/WgP6/r/hxN34/5/z0oC/9f1/w5e0/T9Q1WcW2m2dxeznkpbxNIVH96QgbY055eQqg7sM0fIL/ANf1/X6euaD8Iruby5/EF4trEQGaxsystyf9iW5Ia3hPXPki54OA6nkOwrnsWj+G9F0GIR6ZYQwNjDXBXzLuTPXzLmTdMQeuwMI1yQiKOKYjcoEFABQAUAFABQAUAFABQAUAFAGBrXhnRPEEZTU7GKWTbtS6QeVeRY+75dymJNqnny3Lwk/fjYcUDvY8c174R39v5k+gXa30Iyy2V2VhvFA6JHPhbadveQWnHHzHqrdh3PJr6wvtLuGtdQtLizuF5MVxE8bEdAy7gA6H+F0LI3VWIpev9f1/THdf1/X9eRS3f45/z/k0Bfy/r/gChv8AP4H/ABzRcPz/AK/rUN359/50XC+xX3e/+f0pBdCbvf05/wA9v8igD1zwN8N5dbji1bW/MttKfElrbITHc365BEjNjMFm4+66kTTqd0JjjKTPSXcTf9bn0Np+m2GlW62unWcFnboABHBGqAkcbnYfNI56tJIzOxJLMSSaYi9QIKACgAoAKACgAoAKACgAoAKACgAoAKACgChqGmafqtu1rqVnb3tuwP7ueNX2kjG+Nj88UgH3ZImSRTyrAjNAHzt46+HM2gpJqujmW60kZa4hfL3GnA8b2Ycz2vYykeZCP9duXM1S12KTPKN3+f8APP8An3oGJu9/8/596Xy/r8A/r+kQbvf/ADxRcNP6X6HoPw58KjxPrYe6TdpWmCO6vRj5bh2Y/ZrI9eLhkdpeObeGZAyO6MGtfkDZ9aKqoqoiqiIoVEUBVVVGFVVGAqqAAAAAAMCqIHUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFADWVXVkdVdHUq6MAysrDDKynIZWBIIIIIODxQB8k/ETwuPDGuH7MpGmakr3ViAPlhw/+kWYPf7O7IU/6YSwhizbyZenoUn/XyOA3/j3/AM/5/KkPRAD/2Q==";
|
|
3
|
-
interface HeadshotImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
4
|
-
}
|
|
5
|
-
declare class HeadshotImage extends React.Component<HeadshotImageProps> {
|
|
6
|
-
private mounted;
|
|
7
|
-
state: {
|
|
8
|
-
loaded: boolean;
|
|
9
|
-
};
|
|
10
|
-
constructor(props: HeadshotImageProps);
|
|
11
|
-
componentDidMount(): void;
|
|
12
|
-
componentWillUnmount(): void;
|
|
13
|
-
onLoad: () => void;
|
|
14
|
-
render(): JSX.Element;
|
|
15
|
-
}
|
|
16
|
-
export default HeadshotImage;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import Image from '@/components/atoms/Image';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export const BASE_64_HEADSHOT_THUMBNAIL_FALLBACK = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCACQALgDAREAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RV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cNP6X6HoPw58KjxPrYe6TdpWmCO6vRj5bh2Y/ZrI9eLhkdpeObeGZAyO6MGtfkDZ9aKqoqoiqiIoVEUBVVVGFVVGAqqAAAAAAMCqIHUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFADWVXVkdVdHUq6MAysrDDKynIZWBIIIIIODxQB8k/ETwuPDGuH7MpGmakr3ViAPlhw/+kWYPf7O7IU/6YSwhizbyZenoUn/XyOA3/j3/AM/5/KkPRAD/2Q==';
|
|
4
|
-
class HeadshotImage extends React.Component {
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super(props);
|
|
7
|
-
Object.defineProperty(this, "mounted", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
configurable: true,
|
|
10
|
-
writable: true,
|
|
11
|
-
value: false
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(this, "state", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
configurable: true,
|
|
16
|
-
writable: true,
|
|
17
|
-
value: {
|
|
18
|
-
loaded: false,
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
Object.defineProperty(this, "onLoad", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
configurable: true,
|
|
24
|
-
writable: true,
|
|
25
|
-
value: () => {
|
|
26
|
-
if (!this.mounted)
|
|
27
|
-
return;
|
|
28
|
-
this.setState({ loaded: true });
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
this.state = {
|
|
32
|
-
loaded: false,
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
componentDidMount() {
|
|
36
|
-
this.mounted = true;
|
|
37
|
-
}
|
|
38
|
-
componentWillUnmount() {
|
|
39
|
-
this.mounted = false;
|
|
40
|
-
}
|
|
41
|
-
render() {
|
|
42
|
-
return (React.createElement("div", null,
|
|
43
|
-
!this.state.loaded && (React.createElement(Image, { crossOrigin: "anonymous", ...this.props, src: BASE_64_HEADSHOT_THUMBNAIL_FALLBACK, alt: "Player Headshot Loading" })),
|
|
44
|
-
React.createElement(Image, { crossOrigin: "anonymous", onLoad: this.onLoad, alt: "Athlete Thumbnail", style: {
|
|
45
|
-
...(this.props.style || {}),
|
|
46
|
-
display: this.state.loaded ? 'block' : 'none',
|
|
47
|
-
}, ...this.props })));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
export default HeadshotImage;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { OverlayType, IFantasyPayload } from '@/types/OverlayTypes';
|
|
3
|
-
import { IWinningBet } from '@/models/IWinningBet';
|
|
4
|
-
interface OverlayProps {
|
|
5
|
-
id: string;
|
|
6
|
-
position?: {
|
|
7
|
-
top?: number;
|
|
8
|
-
left?: number;
|
|
9
|
-
right?: number;
|
|
10
|
-
bottom?: number;
|
|
11
|
-
};
|
|
12
|
-
overlayType: OverlayType;
|
|
13
|
-
winningBet?: IWinningBet;
|
|
14
|
-
fantasy?: IFantasyPayload;
|
|
15
|
-
onOverlayAction?: (overlayType: OverlayType) => void;
|
|
16
|
-
onOverlayViewed?: (overlayType: OverlayType) => void;
|
|
17
|
-
}
|
|
18
|
-
interface OverlayState {
|
|
19
|
-
autoDismiss: boolean;
|
|
20
|
-
hasTrackedView: boolean;
|
|
21
|
-
}
|
|
22
|
-
export declare const WINNING_BET_RIVE_FILE_URL = "https://static.gcp.maestro.io/media/664b9c57d59a7a431542d814/67db106027ddcdcd2ecb97d4.riv";
|
|
23
|
-
declare class Overlay extends React.Component<OverlayProps, OverlayState> {
|
|
24
|
-
private autoDismissTimeout;
|
|
25
|
-
constructor(props: OverlayProps);
|
|
26
|
-
componentWillUnmount(): void;
|
|
27
|
-
private handleOverlayAction;
|
|
28
|
-
get overlayTitle(): string;
|
|
29
|
-
get overlayMetadata(): string;
|
|
30
|
-
private trackOverlayViewed;
|
|
31
|
-
onLoadRiveInstance: (riveInstance: any | null) => void;
|
|
32
|
-
render(): JSX.Element;
|
|
33
|
-
}
|
|
34
|
-
export default Overlay;
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
// import { Rive as RiveCanvas } from '@rive-app/canvas';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { OverlayType } from '@/types/OverlayTypes';
|
|
4
|
-
import Rive from '../../atoms/Rive';
|
|
5
|
-
export const WINNING_BET_RIVE_FILE_URL = 'https://static.gcp.maestro.io/media/664b9c57d59a7a431542d814/67db106027ddcdcd2ecb97d4.riv';
|
|
6
|
-
const AUTO_DISMISS_TIMEOUT = 10400;
|
|
7
|
-
class Overlay extends React.Component {
|
|
8
|
-
constructor(props) {
|
|
9
|
-
super(props);
|
|
10
|
-
Object.defineProperty(this, "autoDismissTimeout", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
configurable: true,
|
|
13
|
-
writable: true,
|
|
14
|
-
value: null
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(this, "handleOverlayAction", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
configurable: true,
|
|
19
|
-
writable: true,
|
|
20
|
-
value: () => {
|
|
21
|
-
const { overlayType, onOverlayAction } = this.props;
|
|
22
|
-
this.setState({ autoDismiss: false });
|
|
23
|
-
switch (overlayType) {
|
|
24
|
-
case OverlayType.WinningBet:
|
|
25
|
-
break;
|
|
26
|
-
case OverlayType.FantasyPlayerEvent:
|
|
27
|
-
break;
|
|
28
|
-
}
|
|
29
|
-
// Call custom action handler if provided
|
|
30
|
-
if (onOverlayAction) {
|
|
31
|
-
onOverlayAction(overlayType);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(this, "trackOverlayViewed", {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
configurable: true,
|
|
38
|
-
writable: true,
|
|
39
|
-
value: () => {
|
|
40
|
-
if (this.state.hasTrackedView)
|
|
41
|
-
return;
|
|
42
|
-
this.setState({ hasTrackedView: true });
|
|
43
|
-
if (this.props.onOverlayViewed) {
|
|
44
|
-
this.props.onOverlayViewed(this.props.overlayType);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(this, "onLoadRiveInstance", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
configurable: true,
|
|
51
|
-
writable: true,
|
|
52
|
-
value: (riveInstance) => {
|
|
53
|
-
if (!riveInstance)
|
|
54
|
-
return;
|
|
55
|
-
// Ensure the drawing surface matches the canvas size and device pixel ratio
|
|
56
|
-
riveInstance.resizeDrawingSurfaceToCanvas();
|
|
57
|
-
// Set text values after the file is loaded
|
|
58
|
-
try {
|
|
59
|
-
riveInstance.setTextRunValueAtPath('Title', this.overlayTitle, 'compNotification');
|
|
60
|
-
riveInstance.setTextRunValueAtPath('Metadata', this.overlayMetadata, 'compNotification');
|
|
61
|
-
}
|
|
62
|
-
catch (error) {
|
|
63
|
-
console.error('Error setting text values:', error);
|
|
64
|
-
}
|
|
65
|
-
// Get state machine inputs and trigger the play input specifically
|
|
66
|
-
try {
|
|
67
|
-
const inputs = riveInstance.stateMachineInputs('stateMachine');
|
|
68
|
-
const triggerPlayInput = inputs.find((input) => input.name === 'triggerPlay');
|
|
69
|
-
if (triggerPlayInput) {
|
|
70
|
-
triggerPlayInput.fire();
|
|
71
|
-
}
|
|
72
|
-
else if (inputs.length > 0) {
|
|
73
|
-
inputs[0].fire();
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
catch (error) {
|
|
77
|
-
console.error('Error with state machine inputs:', error);
|
|
78
|
-
}
|
|
79
|
-
this.trackOverlayViewed();
|
|
80
|
-
this.autoDismissTimeout = setTimeout(() => {
|
|
81
|
-
if (this.state.autoDismiss) {
|
|
82
|
-
this.handleOverlayAction();
|
|
83
|
-
}
|
|
84
|
-
}, AUTO_DISMISS_TIMEOUT);
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
this.state = {
|
|
88
|
-
autoDismiss: true,
|
|
89
|
-
hasTrackedView: false,
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
componentWillUnmount() {
|
|
93
|
-
if (this.autoDismissTimeout) {
|
|
94
|
-
clearTimeout(this.autoDismissTimeout);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
get overlayTitle() {
|
|
98
|
-
const { overlayType, fantasy } = this.props;
|
|
99
|
-
switch (overlayType) {
|
|
100
|
-
case OverlayType.WinningBet:
|
|
101
|
-
return 'You won your bet!';
|
|
102
|
-
case OverlayType.FantasyPlayerEvent:
|
|
103
|
-
return fantasy?.title ?? 'Fantasy Update';
|
|
104
|
-
default:
|
|
105
|
-
return '';
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
get overlayMetadata() {
|
|
109
|
-
const { overlayType, winningBet, fantasy } = this.props;
|
|
110
|
-
switch (overlayType) {
|
|
111
|
-
case OverlayType.WinningBet:
|
|
112
|
-
return (winningBet?.notificationText ?? 'Click OK to view your winning bets.');
|
|
113
|
-
case OverlayType.FantasyPlayerEvent:
|
|
114
|
-
return fantasy?.metadata ?? 'New Player Activity';
|
|
115
|
-
default:
|
|
116
|
-
return '';
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
render() {
|
|
120
|
-
const style = {
|
|
121
|
-
position: 'fixed',
|
|
122
|
-
zIndex: 999999,
|
|
123
|
-
left: this.props.position?.left !== undefined
|
|
124
|
-
? `${this.props.position.left}px`
|
|
125
|
-
: undefined,
|
|
126
|
-
right: this.props.position?.right !== undefined
|
|
127
|
-
? `${this.props.position.right}px`
|
|
128
|
-
: undefined,
|
|
129
|
-
top: this.props.position?.top !== undefined
|
|
130
|
-
? `${this.props.position.top}px`
|
|
131
|
-
: undefined,
|
|
132
|
-
bottom: this.props.position?.bottom !== undefined
|
|
133
|
-
? `${this.props.position.bottom}px`
|
|
134
|
-
: undefined,
|
|
135
|
-
};
|
|
136
|
-
return (React.createElement(Rive, { id: this.props.id, onEnterPress: this.handleOverlayAction, focusKey: "maestro-overlay", autoFocus: true, autoPlay: true, onLoadRiveInstance: this.onLoadRiveInstance, src: WINNING_BET_RIVE_FILE_URL, style: style }));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
export default Overlay;
|