@maestro_io/maestro-web-sdk 3.3.0 → 4.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/f8820fca3a2a7957f753167da0884f9d.png +0 -0
- package/dist/maestro-web-sdk.esm.js +12 -12
- package/dist/maestro-web-sdk.esm.js.map +1 -1
- package/dist/maestro-web-sdk.umd.js +12 -12
- package/dist/maestro-web-sdk.umd.js.map +1 -1
- package/dist/package.json +91 -0
- package/dist/src/__mocks__/sentry.d.ts +4 -0
- package/dist/src/components/atoms/BaseButton/BaseButton.d.ts +1 -1
- package/dist/src/components/atoms/BaseButton/BaseButton.js +11 -0
- package/dist/src/components/atoms/BaseButton/index.js +2 -0
- package/dist/src/components/atoms/Image/index.d.ts +1 -1
- package/dist/src/components/atoms/Image/index.js +34 -0
- package/dist/src/components/atoms/Rive/index.d.ts +141 -11
- package/dist/src/components/atoms/Rive/index.js +53 -0
- package/dist/src/components/atoms/SvgIcon/BetGeneralIcon.d.ts +1 -2
- package/dist/src/components/atoms/SvgIcon/BetGeneralIcon.js +9 -0
- package/dist/src/components/atoms/SvgIcon/BetsIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/BetsIcon.js +11 -0
- package/dist/src/components/atoms/SvgIcon/BetsWarningIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/BetsWarningIcon.js +11 -0
- package/dist/src/components/atoms/SvgIcon/CheckmarkIcon.d.ts +1 -2
- package/dist/src/components/atoms/SvgIcon/CheckmarkIcon.js +6 -0
- package/dist/src/components/atoms/SvgIcon/CollapseIcon.d.ts +1 -2
- package/dist/src/components/atoms/SvgIcon/CollapseIcon.js +6 -0
- package/dist/src/components/atoms/SvgIcon/ExpandIcon.d.ts +1 -2
- package/dist/src/components/atoms/SvgIcon/ExpandIcon.js +6 -0
- package/dist/src/components/atoms/SvgIcon/FantasyIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/FantasyIcon.js +15 -0
- package/dist/src/components/atoms/SvgIcon/FlameIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/FlameIcon.js +11 -0
- package/dist/src/components/atoms/SvgIcon/Icon.d.ts +5 -5
- package/dist/src/components/atoms/SvgIcon/Icon.js +44 -0
- package/dist/src/components/atoms/SvgIcon/KeyPlaysIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/KeyPlaysIcon.js +10 -0
- package/dist/src/components/atoms/SvgIcon/MobilePhoneIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/MobilePhoneIcon.js +11 -0
- package/dist/src/components/atoms/SvgIcon/PlayIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/PlayIcon.js +8 -0
- package/dist/src/components/atoms/SvgIcon/ShopIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/ShopIcon.js +7 -0
- package/dist/src/components/atoms/SvgIcon/StatsIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/StatsIcon.js +12 -0
- package/dist/src/components/atoms/SvgIcon/TimesIcon.d.ts +1 -2
- package/dist/src/components/atoms/SvgIcon/TimesIcon.js +6 -0
- package/dist/src/components/atoms/SvgIcon/WarningIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/WarningIcon.js +8 -0
- package/dist/src/components/atoms/SvgIcon/index.js +2 -0
- package/dist/src/components/core/App/App.d.ts +1 -1
- package/dist/src/components/core/App/App.js +35 -0
- package/dist/src/components/core/App/index.js +2 -0
- package/dist/src/components/core/OverlayContainer.js +58 -0
- package/dist/src/components/core/PanelManager/PanelManager.d.ts +1 -1
- package/dist/src/components/core/PanelManager/PanelManager.js +86 -0
- package/dist/src/components/core/PanelManager/index.js +2 -0
- package/dist/src/components/core/ScrollableContainer/FocusableItem.js +38 -0
- package/dist/src/components/core/ScrollableContainer/ScrollableContainer.d.ts +8 -7
- package/dist/src/components/core/ScrollableContainer/ScrollableContainer.js +169 -0
- package/dist/src/components/core/ScrollableContainer/index.js +2 -0
- package/dist/src/components/molecules/ActionButton/ActionButton.d.ts +53 -7
- package/dist/src/components/molecules/ActionButton/ActionButton.js +10 -0
- package/dist/src/components/molecules/ActionButton/index.js +2 -0
- package/dist/src/components/molecules/HeadshotImage/HeadshotImage.d.ts +1 -1
- package/dist/src/components/molecules/HeadshotImage/HeadshotImage.js +50 -0
- package/dist/src/components/molecules/HeadshotImage/index.js +2 -0
- package/dist/src/components/molecules/Overlay/Overlay.d.ts +1 -1
- package/dist/src/components/molecules/Overlay/Overlay.js +139 -0
- package/dist/src/components/molecules/Overlay/index.js +2 -0
- package/dist/src/components/molecules/PanelNavButton/PanelNavButton.d.ts +57 -10
- package/dist/src/components/molecules/PanelNavButton/PanelNavButton.js +27 -0
- package/dist/src/components/molecules/PanelNavButton/index.js +2 -0
- package/dist/src/components/molecules/SegmentButton/SegmentButton.js +10 -0
- package/dist/src/components/molecules/SegmentButton/index.js +2 -0
- package/dist/src/components/molecules/TabLoadError/TabLoadError.d.ts +53 -7
- package/dist/src/components/molecules/TabLoadError/TabLoadError.js +14 -0
- package/dist/src/components/molecules/TabLoadError/index.js +2 -0
- package/dist/src/components/molecules/WatchButton/WatchButton.d.ts +1 -1
- package/dist/src/components/molecules/WatchButton/WatchButton.js +15 -0
- package/dist/src/components/molecules/WatchButton/index.js +2 -0
- package/dist/src/components/organisms/PanelNavigation/PanelNavigation.d.ts +1 -1
- package/dist/src/components/organisms/PanelNavigation/PanelNavigation.js +60 -0
- package/dist/src/components/organisms/PanelNavigation/index.js +2 -0
- package/dist/src/components/organisms/SegmentController/SegmentController.d.ts +5 -4
- package/dist/src/components/organisms/SegmentController/SegmentController.js +76 -0
- package/dist/src/components/organisms/SegmentController/index.js +2 -0
- package/dist/src/development/MaestroEventDelegate.js +109 -0
- package/dist/src/development/TimeSeek.d.ts +1 -1
- package/dist/src/development/TimeSeek.js +218 -0
- package/dist/src/development/development.js +36 -0
- package/dist/src/external/AxiosNetworkClient.js +110 -0
- package/dist/src/external/LocalStorageCacheManager.js +213 -0
- package/dist/src/external/ReactRenderer.js +65 -0
- package/dist/src/external/mocks/MockExternalNetworkClient.js +187 -0
- package/dist/src/external/ports/cacheManager.js +1 -0
- package/dist/src/external/ports/networkClient.js +1 -0
- package/dist/src/external/ports/renderer.d.ts +1 -2
- package/dist/src/external/ports/renderer.js +1 -0
- package/dist/src/external/spatial-navigation/__mocks__/withFocusable.d.ts +8 -0
- package/dist/src/external/spatial-navigation/__mocks__/withFocusable.js +7 -0
- package/dist/src/external/spatial-navigation/index.js +3 -0
- package/dist/src/external/spatial-navigation/measureLayout.js +30 -0
- package/dist/src/external/spatial-navigation/spatialNavigation.js +876 -0
- package/dist/src/external/spatial-navigation/utils.js +6 -0
- package/dist/src/external/spatial-navigation/visualDebugger.js +76 -0
- package/dist/src/external/spatial-navigation/withFocusable.d.ts +53 -7
- package/dist/src/external/spatial-navigation/withFocusable.js +245 -0
- package/dist/src/helpers/Observable.js +37 -0
- package/dist/src/helpers/strings.js +14 -0
- package/dist/src/helpers/url.js +12 -0
- package/dist/src/index.d.ts +5 -5
- package/dist/src/index.js +165 -0
- package/dist/src/interfaces/IMaestroEvent.js +18 -0
- package/dist/src/interfaces/IMaestroEventDelegate.js +1 -0
- package/dist/src/interfaces/IMaestroManager.js +1 -0
- package/dist/src/interfaces/IUserSettings.js +20 -0
- package/dist/src/models/IModel.js +1 -0
- package/dist/src/models/IPanel.js +40 -0
- package/dist/src/models/ITheme.js +20 -0
- package/dist/src/models/IWinningBet.js +1 -0
- package/dist/src/modules/bets/interfaces/IBets.js +1 -0
- package/dist/src/modules/bets/mocks.js +573 -0
- package/dist/src/modules/bets/types/BetsAnalyticsTypes.js +1 -0
- package/dist/src/modules/bets/view/BetsView.d.ts +3 -3
- package/dist/src/modules/bets/view/BetsView.js +143 -0
- package/dist/src/modules/bets/view/HotProps/HotPropsView.d.ts +53 -7
- package/dist/src/modules/bets/view/HotProps/HotPropsView.js +150 -0
- package/dist/src/modules/bets/view/SixPack/SixPackView.d.ts +5 -4
- package/dist/src/modules/bets/view/SixPack/SixPackView.js +110 -0
- package/dist/src/modules/bets/view/UserBets/BetResult/BetResult.d.ts +1 -1
- package/dist/src/modules/bets/view/UserBets/BetResult/BetResult.js +6 -0
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCard.d.ts +53 -7
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCard.js +149 -0
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardEvent.d.ts +5 -4
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardEvent.js +34 -0
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardFooter.d.ts +1 -2
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardFooter.js +18 -0
- package/dist/src/modules/bets/view/UserBets/Boost/Boost.d.ts +1 -2
- package/dist/src/modules/bets/view/UserBets/Boost/Boost.js +6 -0
- package/dist/src/modules/bets/view/UserBets/OutcomeBadge/OutcomeBadge.d.ts +1 -2
- package/dist/src/modules/bets/view/UserBets/OutcomeBadge/OutcomeBadge.js +9 -0
- package/dist/src/modules/bets/view/UserBets/Parlay/Parlay.d.ts +1 -2
- package/dist/src/modules/bets/view/UserBets/Parlay/Parlay.js +13 -0
- package/dist/src/modules/bets/view/UserBets/Straight/Straight.d.ts +1 -2
- package/dist/src/modules/bets/view/UserBets/Straight/Straight.js +6 -0
- package/dist/src/modules/bets/view/UserBets/Teaser/Teaser.d.ts +1 -2
- package/dist/src/modules/bets/view/UserBets/Teaser/Teaser.js +13 -0
- package/dist/src/modules/bets/view/UserBets/UserBetsView.d.ts +3 -3
- package/dist/src/modules/bets/view/UserBets/UserBetsView.js +107 -0
- package/dist/src/modules/bets/view/components/Bet/Bet.d.ts +99 -11
- package/dist/src/modules/bets/view/components/Bet/Bet.js +32 -0
- package/dist/src/modules/bets/view/components/BetPill/BetPill.d.ts +1 -1
- package/dist/src/modules/bets/view/components/BetPill/BetPill.js +6 -0
- package/dist/src/modules/bets/view/components/BetsCard/BetsCard.js +15 -0
- package/dist/src/modules/bets/view/components/BetsCard/BetsCardHeader.d.ts +1 -1
- package/dist/src/modules/bets/view/components/BetsCard/BetsCardHeader.js +20 -0
- package/dist/src/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.d.ts +1 -1
- package/dist/src/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.js +14 -0
- package/dist/src/modules/bets/view/components/LocationWarning/LocationWarning.d.ts +1 -1
- package/dist/src/modules/bets/view/components/LocationWarning/LocationWarning.js +16 -0
- package/dist/src/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.d.ts +5 -4
- package/dist/src/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.js +78 -0
- package/dist/src/modules/bets/view/components/PromoCodeBanner/index.js +1 -0
- package/dist/src/modules/bets/view-model/BetsViewModel.js +974 -0
- package/dist/src/modules/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.d.ts +1 -1
- package/dist/src/modules/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.js +107 -0
- package/dist/src/modules/fantasy/components/ExpandedAthleteList/index.js +1 -0
- package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.d.ts +53 -7
- package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.js +20 -0
- package/dist/src/modules/fantasy/components/LeagueCard/index.js +2 -0
- package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +53 -7
- package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.js +29 -0
- package/dist/src/modules/fantasy/components/TopPlayerCard/index.js +2 -0
- package/dist/src/modules/fantasy/mocks.js +3682 -0
- package/dist/src/modules/fantasy/types.js +6 -0
- package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.d.ts +1 -1
- package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.js +74 -0
- package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/index.js +2 -0
- package/dist/src/modules/fantasy/view/ErrorBoundary.d.ts +13 -0
- package/dist/src/modules/fantasy/view/FantasyItemView.d.ts +6 -5
- package/dist/src/modules/fantasy/view/FantasyItemView.js +74 -0
- package/dist/src/modules/fantasy/view/FantasyView.d.ts +3 -3
- package/dist/src/modules/fantasy/view/FantasyView.js +133 -0
- package/dist/src/modules/fantasy/view/InactiveLeague/DraftDateCountdown.d.ts +1 -1
- package/dist/src/modules/fantasy/view/InactiveLeague/DraftDateCountdown.js +95 -0
- package/dist/src/modules/fantasy/view/InactiveLeague/InactiveLeague.d.ts +53 -7
- package/dist/src/modules/fantasy/view/InactiveLeague/InactiveLeague.js +13 -0
- package/dist/src/modules/fantasy/view/InactiveLeague/index.js +2 -0
- package/dist/src/modules/fantasy/view/LoginView/LoginView.d.ts +53 -7
- package/dist/src/modules/fantasy/view/LoginView/LoginView.js +27 -0
- package/dist/src/modules/fantasy/view/LoginView/index.js +2 -0
- package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts +53 -7
- package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.js +25 -0
- package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/index.js +2 -0
- package/dist/src/modules/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.d.ts +1 -1
- package/dist/src/modules/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.js +9 -0
- package/dist/src/modules/fantasy/view/MatchupPair/MatchupPair.d.ts +53 -7
- package/dist/src/modules/fantasy/view/MatchupPair/MatchupPair.js +118 -0
- package/dist/src/modules/fantasy/view/MatchupPair/index.js +2 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.d.ts +1 -1
- package/dist/src/modules/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.js +9 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/MatchupSingle.d.ts +53 -7
- package/dist/src/modules/fantasy/view/MatchupSingle/MatchupSingle.js +108 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts +53 -7
- package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.js +18 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/index.js +2 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/index.js +2 -0
- package/dist/src/modules/fantasy/view/PromoView/PromoView.d.ts +53 -7
- package/dist/src/modules/fantasy/view/PromoView/PromoView.js +12 -0
- package/dist/src/modules/fantasy/view/PromoView/index.js +2 -0
- package/dist/src/modules/fantasy/view/index.js +2 -0
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.FantasyPolling.js +132 -0
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.LeagueManagerPolling.js +141 -0
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.js +534 -0
- package/dist/src/modules/key-plays/constants.js +292 -0
- package/dist/src/modules/key-plays/interfaces/IKeyPlays.js +14 -0
- package/dist/src/modules/key-plays/interfaces/IKeyPlaysResponse.js +1 -0
- package/dist/src/modules/key-plays/view/KeyPlayCardScoreTagView.d.ts +1 -1
- package/dist/src/modules/key-plays/view/KeyPlayCardScoreTagView.js +16 -0
- package/dist/src/modules/key-plays/view/KeyPlayCardView.d.ts +7 -6
- package/dist/src/modules/key-plays/view/KeyPlayCardView.js +139 -0
- package/dist/src/modules/key-plays/view/KeyPlayErrorStateView.d.ts +1 -1
- package/dist/src/modules/key-plays/view/KeyPlayErrorStateView.js +65 -0
- package/dist/src/modules/key-plays/view/KeyPlaysView.d.ts +3 -3
- package/dist/src/modules/key-plays/view/KeyPlaysView.js +151 -0
- package/dist/src/modules/key-plays/view-model/KeyPlaysViewModel.js +247 -0
- package/dist/src/modules/shop/mocks.js +390 -0
- package/dist/src/modules/shop/types.js +7 -0
- package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.d.ts +1 -2
- package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.js +56 -0
- package/dist/src/modules/shop/view/ProductDetailView/index.js +2 -0
- package/dist/src/modules/shop/view/ShopView.d.ts +3 -3
- package/dist/src/modules/shop/view/ShopView.js +182 -0
- package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.d.ts +54 -8
- package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.js +23 -0
- package/dist/src/modules/shop/view/components/BrowseCard/index.js +2 -0
- package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.d.ts +53 -7
- package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.js +26 -0
- package/dist/src/modules/shop/view/components/ProductSummaryCard/index.js +1 -0
- package/dist/src/modules/shop/view/components/ShopPromoView/ShopPromoView.d.ts +1 -2
- package/dist/src/modules/shop/view/components/ShopPromoView/ShopPromoView.js +19 -0
- package/dist/src/modules/shop/view/components/ShopPromoView/index.js +1 -0
- package/dist/src/modules/shop/view/components/ShopSection/ShopSection.d.ts +6 -4
- package/dist/src/modules/shop/view/components/ShopSection/ShopSection.js +61 -0
- package/dist/src/modules/shop/view/components/ShopSection/ShopSectionItem.d.ts +18 -0
- package/dist/src/modules/shop/view/components/ShopSection/ShopSectionItem.js +22 -0
- package/dist/src/modules/shop/view/components/ShopSection/index.js +1 -0
- package/dist/src/modules/shop/view/index.js +2 -0
- package/dist/src/modules/shop/view-model/ShopViewModel.ShopPolling.js +111 -0
- package/dist/src/modules/shop/view-model/ShopViewModel.js +353 -0
- package/dist/src/modules/stats/interfaces/IStats.js +1 -0
- package/dist/src/modules/stats/mocks.js +746 -0
- package/dist/src/modules/stats/utils/driveSummaryUtils.js +48 -0
- package/dist/src/modules/stats/utils/renderTeamStatistic.d.ts +1 -2
- package/dist/src/modules/stats/utils/renderTeamStatistic.js +16 -0
- package/dist/src/modules/stats/utils.js +62 -0
- package/dist/src/modules/stats/view/ActiveAthletes/ActiveAthletes.d.ts +2 -2
- package/dist/src/modules/stats/view/ActiveAthletes/ActiveAthletes.js +98 -0
- package/dist/src/modules/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.d.ts +1 -2
- package/dist/src/modules/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.js +27 -0
- package/dist/src/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.d.ts +1 -1
- package/dist/src/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.js +89 -0
- package/dist/src/modules/stats/view/ActiveAthletes/index.js +2 -0
- package/dist/src/modules/stats/view/DriveSummary/DrivePlayCard.d.ts +53 -7
- package/dist/src/modules/stats/view/DriveSummary/DrivePlayCard.js +70 -0
- package/dist/src/modules/stats/view/DriveSummary/DriveSummary.d.ts +1 -1
- package/dist/src/modules/stats/view/DriveSummary/DriveSummary.js +87 -0
- package/dist/src/modules/stats/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.d.ts +1 -1
- package/dist/src/modules/stats/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.js +129 -0
- package/dist/src/modules/stats/view/DriveSummary/Header/DriveSummaryHeader.d.ts +1 -2
- package/dist/src/modules/stats/view/DriveSummary/Header/DriveSummaryHeader.js +26 -0
- package/dist/src/modules/stats/view/DriveSummary/MainStat/MainStat.d.ts +1 -2
- package/dist/src/modules/stats/view/DriveSummary/MainStat/MainStat.js +24 -0
- package/dist/src/modules/stats/view/DriveSummary/index.js +2 -0
- package/dist/src/modules/stats/view/GameLeaders/GameLeaders.d.ts +5 -4
- package/dist/src/modules/stats/view/GameLeaders/GameLeaders.js +48 -0
- package/dist/src/modules/stats/view/GameLeaders/index.js +2 -0
- package/dist/src/modules/stats/view/MatchPredictor/DonutChart/DonutChart.d.ts +2 -2
- package/dist/src/modules/stats/view/MatchPredictor/DonutChart/DonutChart.js +55 -0
- package/dist/src/modules/stats/view/MatchPredictor/DonutChart/index.js +1 -0
- package/dist/src/modules/stats/view/MatchPredictor/MatchPredictorView.d.ts +53 -7
- package/dist/src/modules/stats/view/MatchPredictor/MatchPredictorView.js +60 -0
- package/dist/src/modules/stats/view/MatchPredictor/index.js +2 -0
- package/dist/src/modules/stats/view/Penalties/Penalties.d.ts +1 -2
- package/dist/src/modules/stats/view/Penalties/Penalties.js +6 -0
- package/dist/src/modules/stats/view/Penalties/index.js +2 -0
- package/dist/src/modules/stats/view/RecentGames/RecentGames.d.ts +53 -7
- package/dist/src/modules/stats/view/RecentGames/RecentGames.js +23 -0
- package/dist/src/modules/stats/view/RecentGames/index.js +2 -0
- package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.d.ts +1 -1
- package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.js +121 -0
- package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/index.js +2 -0
- package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/ScoreItem.d.ts +53 -7
- package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/ScoreItem.js +62 -0
- package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/index.js +2 -0
- package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/ScoresSection.d.ts +1 -2
- package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/ScoresSection.js +23 -0
- package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/index.js +2 -0
- package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.d.ts +2 -2
- package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.js +106 -0
- package/dist/src/modules/stats/view/ScoringSummary/index.js +2 -0
- package/dist/src/modules/stats/view/StatsItemView.d.ts +6 -5
- package/dist/src/modules/stats/view/StatsItemView.js +92 -0
- package/dist/src/modules/stats/view/StatsQRCode/StatsQRCodeView.d.ts +53 -7
- package/dist/src/modules/stats/view/StatsQRCode/StatsQRCodeView.js +36 -0
- package/dist/src/modules/stats/view/StatsQRCode/index.js +1 -0
- package/dist/src/modules/stats/view/StatsView.d.ts +3 -3
- package/dist/src/modules/stats/view/StatsView.js +137 -0
- package/dist/src/modules/stats/view/TeamStats/TeamStatsView.d.ts +53 -7
- package/dist/src/modules/stats/view/TeamStats/TeamStatsView.js +43 -0
- package/dist/src/modules/stats/view/TeamStats/index.js +1 -0
- package/dist/src/modules/stats/view/Teams/StatsCarousel.d.ts +2 -2
- package/dist/src/modules/stats/view/Teams/StatsCarousel.js +83 -0
- package/dist/src/modules/stats/view/Teams/StatsProgressBar.d.ts +1 -2
- package/dist/src/modules/stats/view/Teams/StatsProgressBar.js +19 -0
- package/dist/src/modules/stats/view/Teams/Teams.d.ts +53 -7
- package/dist/src/modules/stats/view/Teams/Teams.js +43 -0
- package/dist/src/modules/stats/view/Teams/index.js +2 -0
- package/dist/src/modules/stats/view/WinProbability/WinProbability.d.ts +53 -7
- package/dist/src/modules/stats/view/WinProbability/WinProbability.js +28 -0
- package/dist/src/modules/stats/view/WinProbability/index.js +2 -0
- package/dist/src/modules/stats/view/components/AthletesStatistics/AthletesStatistics.d.ts +53 -7
- package/dist/src/modules/stats/view/components/AthletesStatistics/AthletesStatistics.js +89 -0
- package/dist/src/modules/stats/view/components/AthletesStatistics/StatisticTable.d.ts +1 -2
- package/dist/src/modules/stats/view/components/AthletesStatistics/StatisticTable.js +12 -0
- package/dist/src/modules/stats/view/components/AthletesStatistics/index.js +2 -0
- package/dist/src/modules/stats/view/index.js +2 -0
- package/dist/src/modules/stats/view-model/StatsViewModel.js +966 -0
- package/dist/src/sentry.js +31 -0
- package/dist/src/services/AnalyticsService/AnalyticsService.d.ts +12 -7
- package/dist/src/services/AnalyticsService/AnalyticsService.js +402 -0
- package/dist/src/services/AnalyticsService/types.js +1 -0
- package/dist/src/services/BetsService.js +122 -0
- package/dist/src/services/FantasyService.js +92 -0
- package/dist/src/services/GlobalService/GlobalService.d.ts +9 -0
- package/dist/src/services/GlobalService/PageService.d.ts +9 -0
- package/dist/src/services/GlobalService/index.d.ts +2 -0
- package/dist/src/services/GlobalService/mocks.d.ts +2 -0
- package/dist/src/services/GlobalService/types.d.ts +11 -0
- package/dist/src/services/InsightsService/InsightsPayloadBuilder.d.ts +1 -2
- package/dist/src/services/InsightsService/InsightsPayloadBuilder.js +386 -0
- package/dist/src/services/InsightsService/InsightsService.js +74 -0
- package/dist/src/services/NetworkManager/NetworkManager.js +457 -0
- package/dist/src/services/NetworkManager/NetworkManagerFactory.js +101 -0
- package/dist/src/services/NetworkManager/errors.js +45 -0
- package/dist/src/services/NetworkManager/types.js +10 -0
- package/dist/src/services/PageService/PageService.d.ts +9 -0
- package/dist/src/services/PageService/PageService.js +39 -0
- package/dist/src/services/PageService/index.d.ts +2 -0
- package/dist/src/services/PageService/index.js +2 -0
- package/dist/src/services/PageService/mocks.d.ts +2 -0
- package/dist/src/services/PageService/mocks.js +104 -0
- package/dist/src/services/PageService/types.d.ts +76 -0
- package/dist/src/services/PageService/types.js +1 -0
- package/dist/src/services/ShopService.js +46 -0
- package/dist/src/services/StaticService/PageService.d.ts +9 -0
- package/dist/src/services/StaticService/StaticService.d.ts +3 -1
- package/dist/src/services/StaticService/StaticService.js +59 -0
- package/dist/src/services/StaticService/index.js +2 -0
- package/dist/src/services/StaticService/mocks.js +104 -0
- package/dist/src/services/StaticService/types.js +1 -0
- package/dist/src/services/StatsService.js +136 -0
- package/dist/src/services/ThemeManager/constants.js +47 -0
- package/dist/src/services/UserSettingsManager.js +155 -0
- package/dist/src/test-polyfills.js +15 -0
- package/dist/src/types/OverlayTypes.js +4 -0
- package/dist/src/view-models/MaestroEventViewModel.d.ts +0 -2
- package/dist/src/view-models/MaestroEventViewModel.js +280 -0
- package/dist/src/view-models/OverlayViewModel.js +222 -0
- package/dist/src/view-models/PanelManagerViewModel.js +212 -0
- package/dist/src/view-models/ViewModel.js +32 -0
- package/package.json +13 -9
|
@@ -3,7 +3,7 @@ import { WithFocusableProps } from '@/external/spatial-navigation';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import './LoginView.styles.css';
|
|
5
5
|
declare const _default: {
|
|
6
|
-
new (props
|
|
6
|
+
new (props: (object & WithFocusableProps) | Readonly<object & WithFocusableProps>): {
|
|
7
7
|
state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
8
8
|
navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
|
|
9
9
|
getChildContext(): {
|
|
@@ -23,20 +23,65 @@ declare const _default: {
|
|
|
23
23
|
componentDidMount(): void;
|
|
24
24
|
componentDidUpdate(): void;
|
|
25
25
|
componentWillUnmount(): void;
|
|
26
|
-
render(): React.ReactElement<object & WithFocusableProps
|
|
27
|
-
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: object & WithFocusableProps) => import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>) | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>, callback?: (() => any) | undefined): void;
|
|
28
|
-
forceUpdate(callBack?: (() => any) | undefined): void;
|
|
29
|
-
props: Readonly<{
|
|
30
|
-
children?: React.ReactNode;
|
|
31
|
-
}> & Readonly<object & WithFocusableProps>;
|
|
26
|
+
render(): React.ReactElement<object & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
32
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
33
|
refs: {
|
|
34
34
|
[key: string]: React.ReactInstance;
|
|
35
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;
|
|
36
39
|
componentWillMount?(): void;
|
|
40
|
+
UNSAFE_componentWillMount?(): void;
|
|
37
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
|
+
};
|
|
38
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;
|
|
39
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;
|
|
40
85
|
};
|
|
41
86
|
contextTypes: {
|
|
42
87
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
@@ -44,5 +89,6 @@ declare const _default: {
|
|
|
44
89
|
childContextTypes: {
|
|
45
90
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
46
91
|
};
|
|
92
|
+
contextType?: React.Context<any> | undefined;
|
|
47
93
|
};
|
|
48
94
|
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { withFocusable, } from '@/external/spatial-navigation';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './LoginView.styles.css';
|
|
4
|
+
import ActionButton from '@/components/molecules/ActionButton';
|
|
5
|
+
class LoginView extends React.Component {
|
|
6
|
+
render() {
|
|
7
|
+
const { focused } = this.props;
|
|
8
|
+
return (React.createElement("div", { "data-focused": focused, className: "login-view focus-ring" },
|
|
9
|
+
React.createElement("svg", { width: "169", height: "71", viewBox: "0 0 169 71", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
10
|
+
React.createElement("path", { d: "M96.4307 35.0936C96.3936 33.803 95.1664 31.735 94.3102 31.763C93.6302 31.7847 93.0398 32.2574 92.7987 34.4747C92.5576 36.692 92.4711 40.2372 92.4093 42.0875C92.3443 43.9378 92.4556 47.6354 92.5793 48.9384C92.7029 50.2414 93.3891 51.1215 94.8604 51.0779C96.3318 51.0344 96.6409 50.6083 96.7676 49.7469C96.8943 48.8855 96.9562 47.0227 96.8665 45.0791C96.7769 43.1355 96.4709 36.3872 96.4307 35.0936Z", fill: "#F1F2F4" }),
|
|
11
|
+
React.createElement("path", { d: "M55.8486 11.8354C52.9709 11.4062 49.5615 11.1606 47.5554 11.2196C42.14 11.3814 38.8913 12.6222 38.2236 12.8772C37.2469 13.2503 35.6488 15.5454 35.6704 16.2793C35.7014 17.2869 36.9347 18.0052 38.5729 17.9555C39.4693 17.9275 40.9314 17.8342 40.9128 17.1531C40.8912 16.4721 38.3504 16.3384 38.3411 15.9932C38.3256 15.477 41.4692 14.911 46.7085 14.7555C60.0092 14.3574 84.8363 25.9632 85.2103 38.5983C85.4761 47.6416 73.5108 49.5634 68.2746 49.7189C66.049 49.7842 63.7771 49.5323 61.5732 49.0627C61.533 46.2795 61.4527 42.9427 61.4156 41.6521C61.3754 40.3087 61.397 38.3091 61.4032 36.6515C66.2623 36.6826 74.1475 37.5254 74.2031 39.4472C74.2402 40.7223 71.3965 40.9057 71.4181 41.6956C71.4305 42.1061 72.9791 42.8649 74.3021 42.8245C75.625 42.7841 78.1442 41.3193 78.0607 38.4552C77.9526 34.7608 72.0085 31.6386 62.0894 31.9371L61.5547 31.9558C61.5485 31.34 61.5083 27.8881 61.091 25.9943C60.6335 23.9107 59.425 22.5486 58.8408 22.5642C57.388 22.6077 56.9212 29.6576 56.8223 32.4253C49.7531 33.5293 43.7102 36.3188 43.8091 39.6618C43.8771 41.9071 48.6033 47.598 56.4514 51.0996C56.6925 53.2765 57.3323 55.9509 58.9737 55.9012C61.6567 55.8203 61.5145 54.8127 61.5794 52.9095C64.4788 53.6746 67.6625 54.1006 71.0874 53.998C84.0851 53.6092 90.7432 46.3354 90.5145 38.5827C90.1776 27.1853 72.5958 14.3357 55.8456 11.8385L55.8486 11.8354ZM56.3927 47.542C50.2384 45.247 45.5524 41.7267 45.4968 39.8951C45.4443 38.1442 51.8056 37.2144 56.7759 36.8412C56.7481 39.8173 56.677 43.7916 56.3927 47.542Z", fill: "#F1F2F4" }),
|
|
12
|
+
React.createElement("path", { d: "M106.529 19.8276C106.479 18.167 105.41 16.5592 102.823 16.5996C102.579 15.987 101.759 14.7493 98.8384 14.8364C92.474 15.0261 87.5778 19.7685 87.686 23.5065C87.7231 24.7224 88.3042 25.786 89.1604 26.6567C88.9379 27.2662 88.9163 27.6767 88.9224 27.91C88.941 28.5599 89.9116 30.2734 90.6596 30.2516C91.2902 30.233 91.7198 29.639 92.3287 28.675C93.3673 29.0793 94.3997 29.2845 95.2219 29.2596C101.206 29.0793 106.637 23.4381 106.529 19.8276ZM92.712 21.2985C91.8558 22.2657 91.1758 23.1178 90.675 23.861C90.5854 23.7086 90.4989 23.4692 90.4865 23.0929C90.4618 22.2657 91.8805 19.0968 95.4507 18.8356C94.5419 19.4638 93.6208 20.2661 92.712 21.2954V21.2985ZM102.282 19.2585C103.438 19.2243 103.741 19.9427 103.766 20.7388C103.803 21.9765 101.574 25.5932 96.5542 25.7424C95.4538 25.7767 94.5265 25.6927 93.7846 25.5683C94.5203 24.5203 98.3408 19.3767 102.279 19.2585H102.282Z", fill: "#F1F2F4" }),
|
|
13
|
+
React.createElement("path", { d: "M109.836 31.4144C106.331 31.5202 99.8091 32.6366 98.8756 35.8428C98.4305 37.3759 98.2481 39.2293 99.5371 40.0503C100.826 40.8713 104.6 40.8526 107.116 40.9833C109.632 41.1139 113.981 41.8105 114.025 43.241C114.056 44.3201 112.22 46.329 106.158 46.5125C99.3547 46.7146 101.259 43.8132 102.619 43.7727C105.002 43.7012 104.798 45.3929 108.934 45.2686C109.849 45.2406 111.92 44.7181 111.889 43.7012C111.852 42.448 107.16 41.3471 104.127 41.4373C101.098 41.5275 99.2929 43.0917 99.3454 44.855C99.4042 46.839 102.189 50.7449 108.946 50.5428C111.187 50.4775 114.111 49.3579 114.983 48.9474C115.669 48.624 117.19 47.7688 117.072 43.7199C116.921 38.5918 111.861 38.4737 108.711 38.2808C105.645 38.0943 102.304 37.9325 102.282 37.2017C102.242 35.821 113.366 35.3452 115.57 35.1213C117.44 34.9316 117.783 33.554 117.765 32.8947C117.731 31.7689 113.342 31.3118 109.836 31.4144Z", fill: "#F1F2F4" }),
|
|
14
|
+
React.createElement("path", { d: "M128.348 28.6526C126.596 28.7055 128.46 31.9241 129.656 38.1655C130.184 40.9238 130.806 43.4241 129.971 43.449C129.134 43.4739 124.172 32.6736 121.802 32.742C118.881 32.829 117.904 43.0292 117.99 46.0301C118.08 49.0311 118.772 50.5518 120.349 50.5051C121.391 50.474 122.04 49.4696 122.157 47.5912C122.275 45.7129 122.312 39.4809 122.754 39.4685C123.576 39.4436 127.189 49.5224 130.364 49.4291C133.711 49.3296 134.231 44.4659 134.119 40.7497C133.884 32.7482 129.637 28.6153 128.342 28.6526H128.348Z", fill: "#F1F2F4" }),
|
|
15
|
+
React.createElement("path", { d: "M147.099 44.6214C145.788 44.6619 142.598 45.2652 141.423 45.601C140.249 45.9369 139.337 46.139 139.628 45.2247C139.859 44.497 140.369 42.768 140.567 42.0963L146.558 41.9159C147.726 41.8817 147.788 41.2908 147.887 39.8261C147.986 38.3614 146.997 38.548 145.875 38.5822C145.875 38.5822 143.89 38.6631 141.77 38.7688L142.719 36.225C144.898 36.1441 147.17 35.9047 148.576 35.8643C151.324 35.7834 151.587 35.0744 151.577 34.7883C151.568 34.5022 151.293 33.7651 150.57 32.7202C149.843 31.6785 149.197 31.2369 146.925 31.3022C144.811 31.3644 135.668 32.1138 135.705 33.3702C135.72 33.9424 136.527 35.2174 137.56 35.715C137.94 35.8985 138.431 36.0229 139 36.1068L137.597 39.0176C137.396 39.0331 137.226 39.0518 137.09 39.0673C135.39 39.2601 135.85 40.3921 136.039 41.4183C136.122 41.8724 136.231 42.0807 136.37 42.1709C135.792 43.7476 135.186 45.7783 135.232 47.2927C135.316 50.1507 137.782 51.746 139.597 51.69C143.828 51.5625 147.881 48.12 148.632 47.3985C149.383 46.677 148.406 44.5779 147.095 44.6152L147.099 44.6214Z", fill: "#F1F2F4" }),
|
|
16
|
+
React.createElement("path", { d: "M168.995 38.2405C168.897 34.8788 167.617 32.4936 165.475 32.5558C162.341 32.6491 157.837 37.4164 154.217 43.3966C153.893 40.9678 155.797 37.233 157.42 34.6176C158.56 32.7828 158.359 30.5998 157.886 30.6153C157.222 30.634 150.805 36.1041 151.024 43.6049C151.068 45.0603 151.445 46.2856 152.072 47.2838C149.618 52.1538 147.967 57.316 148.082 61.2033C148.211 65.5818 150.882 67.2145 151.695 67.1896C152.508 67.1647 152.548 65.8711 152.693 64.9039C153.519 59.4369 154.944 54.5918 156.57 50.5211C157.213 50.6828 157.849 50.7606 158.44 50.7419C163.416 50.5926 169.184 44.6094 168.995 38.2405ZM158.712 45.7662C161.707 39.8701 164.798 36.5115 165.886 36.4773C167.771 36.4213 166.176 44.995 158.712 45.7662Z", fill: "#F1F2F4" }),
|
|
17
|
+
React.createElement("path", { d: "M40.6716 34.2326C40.3285 33.9247 39.9266 33.7661 39.4753 33.7661C39.1662 33.7661 38.8695 33.8501 38.5975 34.018C38.3193 34.189 38.106 34.4565 37.9669 34.8079L33.2191 45.4434C33.1851 45.518 33.1233 45.6549 33.0615 45.7855C33.0213 45.6549 32.978 45.5242 32.9502 45.4527C32.9131 45.3532 32.7771 45.0702 32.7771 45.0702L28.1653 34.7737C27.8562 34.1051 27.3369 33.7661 26.6229 33.7661C25.7419 33.7443 24.7435 34.4627 24.7744 35.3956C24.7744 35.6382 24.8239 35.8434 24.9197 36.0518L31.1821 49.4364C30.7896 50.2729 30.4001 51.1094 30.0075 51.946C29.3832 53.2832 28.7588 54.6173 28.1313 55.9545C27.8562 56.5391 27.5718 57.0958 27.578 57.7271C27.5625 58.6165 28.2117 59.369 29.1266 59.3473C30.1776 59.3473 30.7154 58.1003 30.7154 58.1003L41.0487 36.0487C41.1445 35.8341 41.194 35.6009 41.194 35.3614C41.194 34.9261 41.0178 34.5436 40.6685 34.2295L40.6716 34.2326Z", fill: "#F1F2F4" }),
|
|
18
|
+
React.createElement("path", { d: "M21.8504 27.8349C21.5166 27.4866 21.0839 27.3125 20.5646 27.3125C19.832 27.3125 19.2385 27.7385 18.7996 28.5751L11.4832 42.6531C11.4832 42.6531 11.3502 42.8926 11.3131 42.9796C11.2761 43.0667 11.2142 43.2067 11.1771 43.2937C11.14 43.2098 11.0751 43.0667 11.0411 42.9796C11.0071 42.8957 10.8711 42.6531 10.8711 42.6531L3.55159 28.5751C3.11266 27.7354 2.51609 27.3125 1.78661 27.3125C1.26732 27.3125 0.834576 27.4898 0.500746 27.8349C0.170006 28.1801 0 28.6311 0 29.1722V49.3143C0 49.8336 0.15146 50.2597 0.448198 50.5831C0.748028 50.9096 1.15604 51.0744 1.6537 51.0744C2.15135 51.0744 2.5841 50.9127 2.87465 50.5986C3.16212 50.2877 3.30739 49.8523 3.30739 49.3112V35.0124L3.30121 34.7138L3.45576 35.087L9.43999 46.3662C9.87891 47.181 10.4631 47.5946 11.174 47.5946C11.885 47.5946 12.4692 47.181 12.9081 46.3662L18.8923 35.087L19.0469 34.7138L19.0407 35.0124V49.3112C19.0407 49.8523 19.186 50.2846 19.4734 50.5986C19.764 50.9158 20.1751 51.0744 20.6944 51.0744C21.2137 51.0744 21.6001 50.9096 21.8999 50.5831C22.1966 50.2597 22.3481 49.8336 22.3481 49.3143V29.1722C22.3481 28.6311 22.1812 28.1801 21.8474 27.8349H21.8504Z", fill: "#F1F2F4" })),
|
|
19
|
+
React.createElement("p", { className: "T10" },
|
|
20
|
+
"Log into your MyDisney account.",
|
|
21
|
+
React.createElement("br", null),
|
|
22
|
+
" ",
|
|
23
|
+
"If you don't have one, you will be prompted to create one."),
|
|
24
|
+
React.createElement(ActionButton, { "data-focused": focused, onEnterPress: this.props.onEnterPress }, "Login")));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export default withFocusable()(LoginView);
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import './DoubleAthleteCard.styles.css';
|
|
5
5
|
import { MatchupPairRoster } from '@/modules/fantasy/view-model/FantasyViewModel';
|
|
6
6
|
declare const _default: {
|
|
7
|
-
new (props
|
|
7
|
+
new (props: (MatchupPairRoster & WithFocusableProps) | Readonly<MatchupPairRoster & WithFocusableProps>): {
|
|
8
8
|
state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
9
9
|
navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
|
|
10
10
|
getChildContext(): {
|
|
@@ -24,20 +24,65 @@ declare const _default: {
|
|
|
24
24
|
componentDidMount(): void;
|
|
25
25
|
componentDidUpdate(): void;
|
|
26
26
|
componentWillUnmount(): void;
|
|
27
|
-
render(): React.ReactElement<MatchupPairRoster & WithFocusableProps
|
|
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: MatchupPairRoster & WithFocusableProps) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>, callback?: (() => any) | undefined): void;
|
|
29
|
-
forceUpdate(callBack?: (() => any) | undefined): void;
|
|
30
|
-
props: Readonly<{
|
|
31
|
-
children?: React.ReactNode;
|
|
32
|
-
}> & Readonly<MatchupPairRoster & WithFocusableProps>;
|
|
27
|
+
render(): React.ReactElement<MatchupPairRoster & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
33
28
|
context: any;
|
|
29
|
+
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<MatchupPairRoster & 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;
|
|
30
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
31
|
+
readonly props: Readonly<MatchupPairRoster & WithFocusableProps> & Readonly<{
|
|
32
|
+
children?: React.ReactNode;
|
|
33
|
+
}>;
|
|
34
34
|
refs: {
|
|
35
35
|
[key: string]: React.ReactInstance;
|
|
36
36
|
};
|
|
37
|
+
shouldComponentUpdate?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
38
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
39
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<MatchupPairRoster & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
37
40
|
componentWillMount?(): void;
|
|
41
|
+
UNSAFE_componentWillMount?(): void;
|
|
38
42
|
componentWillReceiveProps?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextContext: any): void;
|
|
43
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextContext: any): void;
|
|
44
|
+
componentWillUpdate?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
45
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
46
|
+
};
|
|
47
|
+
new (props: MatchupPairRoster & WithFocusableProps, context: any): {
|
|
48
|
+
state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
49
|
+
navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
|
|
50
|
+
getChildContext(): {
|
|
51
|
+
parentFocusKey: string;
|
|
52
|
+
};
|
|
53
|
+
setFocus: (focusKey: string) => void;
|
|
54
|
+
navigateByDirection: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
|
|
55
|
+
stealFocus: () => void;
|
|
56
|
+
onUpdateFocus: (focused: boolean) => void;
|
|
57
|
+
onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
|
|
58
|
+
onEnterPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
|
|
59
|
+
onEnterReleaseHandler: () => void;
|
|
60
|
+
onBackPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
|
|
61
|
+
onArrowPressHandler: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details: import("../../../../../external/spatial-navigation/utils").Details) => boolean | void;
|
|
62
|
+
onBecameFocusedHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
|
|
63
|
+
onBecameBlurredHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
|
|
64
|
+
componentDidMount(): void;
|
|
65
|
+
componentDidUpdate(): void;
|
|
66
|
+
componentWillUnmount(): void;
|
|
67
|
+
render(): React.ReactElement<MatchupPairRoster & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
68
|
+
context: any;
|
|
69
|
+
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<MatchupPairRoster & 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;
|
|
70
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
71
|
+
readonly props: Readonly<MatchupPairRoster & WithFocusableProps> & Readonly<{
|
|
72
|
+
children?: React.ReactNode;
|
|
73
|
+
}>;
|
|
74
|
+
refs: {
|
|
75
|
+
[key: string]: React.ReactInstance;
|
|
76
|
+
};
|
|
39
77
|
shouldComponentUpdate?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
78
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
79
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<MatchupPairRoster & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
80
|
+
componentWillMount?(): void;
|
|
81
|
+
UNSAFE_componentWillMount?(): void;
|
|
82
|
+
componentWillReceiveProps?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextContext: any): void;
|
|
83
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextContext: any): void;
|
|
40
84
|
componentWillUpdate?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
85
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
41
86
|
};
|
|
42
87
|
contextTypes: {
|
|
43
88
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
@@ -45,5 +90,6 @@ declare const _default: {
|
|
|
45
90
|
childContextTypes: {
|
|
46
91
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
47
92
|
};
|
|
93
|
+
contextType?: React.Context<any> | undefined;
|
|
48
94
|
};
|
|
49
95
|
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { withFocusable, } from '@/external/spatial-navigation';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './DoubleAthleteCard.styles.css';
|
|
4
|
+
import HeadshotImage from '@/components/molecules/HeadshotImage';
|
|
5
|
+
const DoubleAthleteCard = (props) => {
|
|
6
|
+
return (React.createElement("div", { className: "double-athlete-card focus-ring", "data-focused": props.focused },
|
|
7
|
+
[props.away, props.home].map((at, i) => (React.createElement("div", { className: "athlete-column", key: at.triCode + at.slot + i },
|
|
8
|
+
React.createElement("div", { className: "athlete-image-wrapper" },
|
|
9
|
+
React.createElement(HeadshotImage, { src: at.headshot, alt: `Athlete Headshot of ${at.abbrevName}`, className: "athlete-image" })),
|
|
10
|
+
React.createElement("div", { className: "athlete-info" },
|
|
11
|
+
React.createElement("div", { className: "athlete-name FONT_BOLD T05_ALT" },
|
|
12
|
+
at.abbrevName,
|
|
13
|
+
" ",
|
|
14
|
+
React.createElement("span", { className: "TEXT_200" }, at.triCode)),
|
|
15
|
+
React.createElement("div", { className: "athlete-stats-wrapper" },
|
|
16
|
+
React.createElement("div", { className: "athlete-points T30 FONT_BOLD" },
|
|
17
|
+
at.points?.toFixed(1),
|
|
18
|
+
!!at.projectedPoints && (React.createElement("div", { className: "athlete-projected-points T02 TEXT_200" },
|
|
19
|
+
"Proj ",
|
|
20
|
+
at.projectedPoints))),
|
|
21
|
+
at.stats.map((stat, i) => (React.createElement("div", { key: stat + i, className: "athlete-stats TEXT_200" }, stat)))))))),
|
|
22
|
+
React.createElement("div", { className: "athlete-position-badge FONT_BOLD" },
|
|
23
|
+
React.createElement("span", null, props.away.slot))));
|
|
24
|
+
};
|
|
25
|
+
export default withFocusable()(DoubleAthleteCard);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import DoubleAthleteCard from './DoubleAthleteCard/DoubleAthleteCard';
|
|
3
|
+
import ExpandedAthletesList from '../../components/ExpandedAthleteList';
|
|
4
|
+
class ExpandedDoubleAthleteCards extends React.Component {
|
|
5
|
+
render() {
|
|
6
|
+
return (React.createElement(ExpandedAthletesList, { items: this.props.items, topPlayers: this.props.topPlayers, focusKey: this.props.focusKey, className: "matchup-pair-expanded-athletes-list", onArrowPress: this.props.onArrowPress, onBackPress: this.props.onBackPress, getItemKey: (item, i) => item.away.abbrevName + item.home.abbrevName + i, renderItem: (item, i, onArrowPress, onBackPress, onBecameFocused) => (React.createElement(DoubleAthleteCard, { away: item.away, home: item.home, parentFocusKey: this.props.focusKey, focusKey: `${this.props.focusKey}-double-athlete-${i}`, onArrowPress: onArrowPress, onBackPress: onBackPress, onBecameFocused: onBecameFocused })) }));
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export default ExpandedDoubleAthleteCards;
|
|
@@ -9,7 +9,7 @@ type Props = {
|
|
|
9
9
|
onEnterPress: () => void;
|
|
10
10
|
};
|
|
11
11
|
declare const _default: {
|
|
12
|
-
new (props
|
|
12
|
+
new (props: (Props & WithFocusableProps) | Readonly<Props & WithFocusableProps>): {
|
|
13
13
|
state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
14
14
|
navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
|
|
15
15
|
getChildContext(): {
|
|
@@ -29,20 +29,65 @@ declare const _default: {
|
|
|
29
29
|
componentDidMount(): void;
|
|
30
30
|
componentDidUpdate(): void;
|
|
31
31
|
componentWillUnmount(): void;
|
|
32
|
-
render(): React.ReactElement<Props & WithFocusableProps
|
|
33
|
-
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: Props & WithFocusableProps) => import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>) | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>, callback?: (() => any) | undefined): void;
|
|
34
|
-
forceUpdate(callBack?: (() => any) | undefined): void;
|
|
35
|
-
props: Readonly<{
|
|
36
|
-
children?: React.ReactNode;
|
|
37
|
-
}> & Readonly<Props & WithFocusableProps>;
|
|
32
|
+
render(): React.ReactElement<Props & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
38
33
|
context: any;
|
|
34
|
+
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<Props & 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;
|
|
35
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
36
|
+
readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
}>;
|
|
39
39
|
refs: {
|
|
40
40
|
[key: string]: React.ReactInstance;
|
|
41
41
|
};
|
|
42
|
+
shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
43
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
44
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
42
45
|
componentWillMount?(): void;
|
|
46
|
+
UNSAFE_componentWillMount?(): void;
|
|
43
47
|
componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
48
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
49
|
+
componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
50
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
51
|
+
};
|
|
52
|
+
new (props: Props & WithFocusableProps, context: any): {
|
|
53
|
+
state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
54
|
+
navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
|
|
55
|
+
getChildContext(): {
|
|
56
|
+
parentFocusKey: string;
|
|
57
|
+
};
|
|
58
|
+
setFocus: (focusKey: string) => void;
|
|
59
|
+
navigateByDirection: (direction: Direction, details?: Record<string, any>) => void;
|
|
60
|
+
stealFocus: () => void;
|
|
61
|
+
onUpdateFocus: (focused: boolean) => void;
|
|
62
|
+
onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
|
|
63
|
+
onEnterPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
64
|
+
onEnterReleaseHandler: () => void;
|
|
65
|
+
onBackPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
66
|
+
onArrowPressHandler: (direction: Direction, details: import("@/external/spatial-navigation/utils").Details) => boolean | void;
|
|
67
|
+
onBecameFocusedHandler: (layout: import("@/external/spatial-navigation/utils").Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
68
|
+
onBecameBlurredHandler: (layout: import("@/external/spatial-navigation/utils").Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
69
|
+
componentDidMount(): void;
|
|
70
|
+
componentDidUpdate(): void;
|
|
71
|
+
componentWillUnmount(): void;
|
|
72
|
+
render(): React.ReactElement<Props & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
73
|
+
context: any;
|
|
74
|
+
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<Props & 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;
|
|
75
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
76
|
+
readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
|
|
77
|
+
children?: React.ReactNode;
|
|
78
|
+
}>;
|
|
79
|
+
refs: {
|
|
80
|
+
[key: string]: React.ReactInstance;
|
|
81
|
+
};
|
|
44
82
|
shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
83
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
84
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
85
|
+
componentWillMount?(): void;
|
|
86
|
+
UNSAFE_componentWillMount?(): void;
|
|
87
|
+
componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
88
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
45
89
|
componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
90
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
46
91
|
};
|
|
47
92
|
contextTypes: {
|
|
48
93
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
@@ -50,5 +95,6 @@ declare const _default: {
|
|
|
50
95
|
childContextTypes: {
|
|
51
96
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
52
97
|
};
|
|
98
|
+
contextType?: React.Context<any> | undefined;
|
|
53
99
|
};
|
|
54
100
|
export default _default;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { withFocusable, } from '@/external/spatial-navigation';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import LeagueCard from '../../components/LeagueCard';
|
|
4
|
+
import './MatchupPair.styles.css';
|
|
5
|
+
import Image from '@/components/atoms/Image';
|
|
6
|
+
import SDK from '@/index';
|
|
7
|
+
import ExpandedDoubleAthleteCards from './ExpandedDoubleAthleteCards';
|
|
8
|
+
import ActiveAthletesMarquee from '../ActiveAthletesMarquee';
|
|
9
|
+
class MatchupPair extends React.Component {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
Object.defineProperty(this, "state", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
configurable: true,
|
|
15
|
+
writable: true,
|
|
16
|
+
value: {
|
|
17
|
+
expanded: false,
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(this, "onAthleteArrowPress", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
configurable: true,
|
|
23
|
+
writable: true,
|
|
24
|
+
value: (index) => (d) => {
|
|
25
|
+
if (d === 'left') {
|
|
26
|
+
SDK.getMaestroEventViewModel().deliverFocus();
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
if (d === 'up' && index === 0) {
|
|
30
|
+
SDK.getMaestroEventViewModel().navigation.setFocus(this.focusKey);
|
|
31
|
+
this.setState({
|
|
32
|
+
expanded: false,
|
|
33
|
+
});
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
if (d === 'down' &&
|
|
37
|
+
index === this.props.item.roster.length &&
|
|
38
|
+
!this.props.item.topPlayers.length) {
|
|
39
|
+
this.setState({
|
|
40
|
+
expanded: false,
|
|
41
|
+
}, () => {
|
|
42
|
+
SDK.getMaestroEventViewModel().navigation.navigateByDirection('down');
|
|
43
|
+
});
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
if (d === 'down' &&
|
|
47
|
+
index ===
|
|
48
|
+
this.props.item.roster.length + this.props.item.topPlayers.length - 1) {
|
|
49
|
+
this.setState({
|
|
50
|
+
expanded: false,
|
|
51
|
+
}, () => {
|
|
52
|
+
SDK.getMaestroEventViewModel().navigation.navigateByDirection('down');
|
|
53
|
+
});
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(this, "onAthleteBackPress", {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
configurable: true,
|
|
62
|
+
writable: true,
|
|
63
|
+
value: () => {
|
|
64
|
+
this.setState({
|
|
65
|
+
expanded: false,
|
|
66
|
+
}, () => {
|
|
67
|
+
SDK.getMaestroEventViewModel().navigation.setFocus(this.focusKey);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
get focusKey() {
|
|
73
|
+
return this.props.item.id;
|
|
74
|
+
}
|
|
75
|
+
onEnterPress() {
|
|
76
|
+
if (!this.shouldExpand) {
|
|
77
|
+
this.props.onEnterPress();
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const newValue = !this.state.expanded;
|
|
81
|
+
this.setState({
|
|
82
|
+
expanded: newValue,
|
|
83
|
+
}, () => {
|
|
84
|
+
if (newValue) {
|
|
85
|
+
SDK.getMaestroEventViewModel().navigation.setFocus(`${this.focusKey}-double-athlete-0`);
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
this.props.onEnterPress();
|
|
89
|
+
}
|
|
90
|
+
get shouldExpand() {
|
|
91
|
+
return this.props.item.roster.length > 0;
|
|
92
|
+
}
|
|
93
|
+
render() {
|
|
94
|
+
const items = [this.props.item.awayTeam, this.props.item.homeTeam];
|
|
95
|
+
return (React.createElement(LeagueCard, { leagueColor: this.props.item.league.color, leagueLogo: this.props.item.league.logo, renderTitle: () => (React.createElement("div", null,
|
|
96
|
+
React.createElement("div", null, this.props.item.league.title),
|
|
97
|
+
this.props.item.league.subtitle && (React.createElement("div", { className: "subtitle" }, this.props.item.league.subtitle)))), expanded: this.state.expanded, shouldExpand: this.shouldExpand, ...this.props, focusKey: this.focusKey, onEnterPress: this.onEnterPress.bind(this) },
|
|
98
|
+
React.createElement("div", { className: "matchup-pair-container" }, items.map((team, index) => (React.createElement("div", { key: team.name + '-roster-' + index, className: "matchup-pair" },
|
|
99
|
+
React.createElement("div", { className: "matchup-team-points" },
|
|
100
|
+
React.createElement(Image, { src: team.logo, width: 64, height: 64 }),
|
|
101
|
+
React.createElement("div", null,
|
|
102
|
+
typeof team.points !== 'undefined' && (React.createElement("div", { className: "T50 FONT_BOLD" }, team.points)),
|
|
103
|
+
team.projectedPoints && (React.createElement("div", { className: "projection" },
|
|
104
|
+
"Proj ",
|
|
105
|
+
team.projectedPoints)))),
|
|
106
|
+
React.createElement("div", null,
|
|
107
|
+
React.createElement("div", null, team.name),
|
|
108
|
+
React.createElement("div", { className: "record" }, team.record)),
|
|
109
|
+
typeof team.winProbability !== 'undefined' && (React.createElement("div", { className: "matchup-team-win-probability" },
|
|
110
|
+
React.createElement("progress", { value: team.winProbability * 100, max: "100" }),
|
|
111
|
+
React.createElement("div", null,
|
|
112
|
+
Math.round(team.winProbability * 100),
|
|
113
|
+
"%"))))))),
|
|
114
|
+
!this.state.expanded && (React.createElement(ActiveAthletesMarquee, { activeAthletes: this.props.item.activeAthletes })),
|
|
115
|
+
this.state.expanded && (React.createElement(ExpandedDoubleAthleteCards, { topPlayers: this.props.item.topPlayers, focusKey: this.focusKey, items: this.props.item.roster, onArrowPress: this.onAthleteArrowPress.bind(this), onBackPress: this.onAthleteBackPress.bind(this) }))));
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export default withFocusable()(MatchupPair);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import SingleAthleteCard from './SingleAthleteCard/SingleAthleteCard';
|
|
3
|
+
import ExpandedAthletesList from '../../components/ExpandedAthleteList';
|
|
4
|
+
class ExpandedSingleAthleteCards extends React.Component {
|
|
5
|
+
render() {
|
|
6
|
+
return (React.createElement(ExpandedAthletesList, { items: this.props.items, topPlayers: this.props.topPlayers, focusKey: this.props.focusKey, className: "matchup-single-expanded-athletes-list", onArrowPress: this.props.onArrowPress, onBackPress: this.props.onBackPress, getItemKey: (item, i) => item.athleteAbbrevName + i, renderItem: (item, i, onArrowPress, onBackPress, onBecameFocused) => (React.createElement(SingleAthleteCard, { ...item, parentFocusKey: this.props.focusKey, focusKey: `${this.props.focusKey}-athlete-${i}`, onArrowPress: onArrowPress, onBackPress: onBackPress, onBecameFocused: onBecameFocused })) }));
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export default ExpandedSingleAthleteCards;
|
|
@@ -9,7 +9,7 @@ type Props = {
|
|
|
9
9
|
onEnterPress: () => void;
|
|
10
10
|
};
|
|
11
11
|
declare const _default: {
|
|
12
|
-
new (props
|
|
12
|
+
new (props: (Props & WithFocusableProps) | Readonly<Props & WithFocusableProps>): {
|
|
13
13
|
state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
14
14
|
navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
|
|
15
15
|
getChildContext(): {
|
|
@@ -29,20 +29,65 @@ declare const _default: {
|
|
|
29
29
|
componentDidMount(): void;
|
|
30
30
|
componentDidUpdate(): void;
|
|
31
31
|
componentWillUnmount(): void;
|
|
32
|
-
render(): React.ReactElement<Props & WithFocusableProps
|
|
33
|
-
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: Props & WithFocusableProps) => import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>) | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>, callback?: (() => any) | undefined): void;
|
|
34
|
-
forceUpdate(callBack?: (() => any) | undefined): void;
|
|
35
|
-
props: Readonly<{
|
|
36
|
-
children?: React.ReactNode;
|
|
37
|
-
}> & Readonly<Props & WithFocusableProps>;
|
|
32
|
+
render(): React.ReactElement<Props & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
38
33
|
context: any;
|
|
34
|
+
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<Props & 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;
|
|
35
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
36
|
+
readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
}>;
|
|
39
39
|
refs: {
|
|
40
40
|
[key: string]: React.ReactInstance;
|
|
41
41
|
};
|
|
42
|
+
shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
43
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
44
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
42
45
|
componentWillMount?(): void;
|
|
46
|
+
UNSAFE_componentWillMount?(): void;
|
|
43
47
|
componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
48
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
49
|
+
componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
50
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
51
|
+
};
|
|
52
|
+
new (props: Props & WithFocusableProps, context: any): {
|
|
53
|
+
state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
54
|
+
navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
|
|
55
|
+
getChildContext(): {
|
|
56
|
+
parentFocusKey: string;
|
|
57
|
+
};
|
|
58
|
+
setFocus: (focusKey: string) => void;
|
|
59
|
+
navigateByDirection: (direction: Direction, details?: Record<string, any>) => void;
|
|
60
|
+
stealFocus: () => void;
|
|
61
|
+
onUpdateFocus: (focused: boolean) => void;
|
|
62
|
+
onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
|
|
63
|
+
onEnterPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
64
|
+
onEnterReleaseHandler: () => void;
|
|
65
|
+
onBackPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
66
|
+
onArrowPressHandler: (direction: Direction, details: import("@/external/spatial-navigation/utils").Details) => boolean | void;
|
|
67
|
+
onBecameFocusedHandler: (layout: import("@/external/spatial-navigation/utils").Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
68
|
+
onBecameBlurredHandler: (layout: import("@/external/spatial-navigation/utils").Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
69
|
+
componentDidMount(): void;
|
|
70
|
+
componentDidUpdate(): void;
|
|
71
|
+
componentWillUnmount(): void;
|
|
72
|
+
render(): React.ReactElement<Props & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
73
|
+
context: any;
|
|
74
|
+
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<Props & 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;
|
|
75
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
76
|
+
readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
|
|
77
|
+
children?: React.ReactNode;
|
|
78
|
+
}>;
|
|
79
|
+
refs: {
|
|
80
|
+
[key: string]: React.ReactInstance;
|
|
81
|
+
};
|
|
44
82
|
shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
83
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
84
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
85
|
+
componentWillMount?(): void;
|
|
86
|
+
UNSAFE_componentWillMount?(): void;
|
|
87
|
+
componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
88
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
45
89
|
componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
90
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
46
91
|
};
|
|
47
92
|
contextTypes: {
|
|
48
93
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
@@ -50,5 +95,6 @@ declare const _default: {
|
|
|
50
95
|
childContextTypes: {
|
|
51
96
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
52
97
|
};
|
|
98
|
+
contextType?: React.Context<any> | undefined;
|
|
53
99
|
};
|
|
54
100
|
export default _default;
|