@maestro_io/maestro-web-sdk 4.0.2 → 5.1.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/1.maestro-web-sdk.esm.js +1 -1
- package/dist/1.maestro-web-sdk.esm.js.map +1 -1
- package/dist/10.maestro-web-sdk.esm.js +1 -1
- package/dist/10.maestro-web-sdk.esm.js.map +1 -1
- package/dist/11.maestro-web-sdk.esm.js +1 -1
- package/dist/11.maestro-web-sdk.esm.js.map +1 -1
- package/dist/12.maestro-web-sdk.esm.js +1 -1
- package/dist/12.maestro-web-sdk.esm.js.map +1 -1
- package/dist/13.maestro-web-sdk.esm.js +1 -1
- package/dist/13.maestro-web-sdk.esm.js.map +1 -1
- package/dist/14.maestro-web-sdk.esm.js +1 -1
- package/dist/14.maestro-web-sdk.esm.js.map +1 -1
- package/dist/15.maestro-web-sdk.esm.js +1 -1
- package/dist/15.maestro-web-sdk.esm.js.map +1 -1
- package/dist/16.maestro-web-sdk.esm.js +1 -1
- package/dist/16.maestro-web-sdk.esm.js.map +1 -1
- package/dist/17.maestro-web-sdk.esm.js +1 -1
- package/dist/17.maestro-web-sdk.esm.js.map +1 -1
- package/dist/18.maestro-web-sdk.esm.js +1 -1
- package/dist/18.maestro-web-sdk.esm.js.map +1 -1
- package/dist/19.maestro-web-sdk.esm.js +1 -1
- package/dist/19.maestro-web-sdk.esm.js.map +1 -1
- package/dist/2.maestro-web-sdk.esm.js +1 -1
- package/dist/2.maestro-web-sdk.esm.js.map +1 -1
- package/dist/20.maestro-web-sdk.esm.js +1 -1
- package/dist/20.maestro-web-sdk.esm.js.map +1 -1
- package/dist/21.maestro-web-sdk.esm.js +1 -1
- package/dist/21.maestro-web-sdk.esm.js.map +1 -1
- package/dist/22.maestro-web-sdk.esm.js +1 -1
- package/dist/22.maestro-web-sdk.esm.js.map +1 -1
- package/dist/23.maestro-web-sdk.esm.js +1 -1
- package/dist/23.maestro-web-sdk.esm.js.map +1 -1
- package/dist/24.maestro-web-sdk.esm.js +1 -1
- package/dist/24.maestro-web-sdk.esm.js.map +1 -1
- package/dist/25.maestro-web-sdk.esm.js +2 -0
- package/dist/25.maestro-web-sdk.esm.js.map +1 -0
- package/dist/26.maestro-web-sdk.esm.js +2 -0
- package/dist/26.maestro-web-sdk.esm.js.map +1 -0
- package/dist/27.maestro-web-sdk.esm.js +2 -0
- package/dist/27.maestro-web-sdk.esm.js.map +1 -0
- package/dist/28.maestro-web-sdk.esm.js +2 -0
- package/dist/28.maestro-web-sdk.esm.js.map +1 -0
- package/dist/29.maestro-web-sdk.esm.js +2 -0
- package/dist/29.maestro-web-sdk.esm.js.map +1 -0
- package/dist/3.maestro-web-sdk.esm.js +1 -1
- package/dist/3.maestro-web-sdk.esm.js.map +1 -1
- package/dist/30.maestro-web-sdk.esm.js +2 -0
- package/dist/30.maestro-web-sdk.esm.js.map +1 -0
- package/dist/31.maestro-web-sdk.esm.js +2 -0
- package/dist/31.maestro-web-sdk.esm.js.map +1 -0
- package/dist/32.maestro-web-sdk.esm.js +2 -0
- package/dist/32.maestro-web-sdk.esm.js.map +1 -0
- package/dist/33.maestro-web-sdk.esm.js +2 -0
- package/dist/33.maestro-web-sdk.esm.js.map +1 -0
- package/dist/34.maestro-web-sdk.esm.js +2 -0
- package/dist/34.maestro-web-sdk.esm.js.map +1 -0
- package/dist/35.maestro-web-sdk.esm.js +2 -0
- package/dist/35.maestro-web-sdk.esm.js.map +1 -0
- package/dist/36.maestro-web-sdk.esm.js +2 -0
- package/dist/36.maestro-web-sdk.esm.js.map +1 -0
- package/dist/37.maestro-web-sdk.esm.js +2 -0
- package/dist/37.maestro-web-sdk.esm.js.map +1 -0
- package/dist/38.maestro-web-sdk.esm.js +2 -0
- package/dist/38.maestro-web-sdk.esm.js.map +1 -0
- package/dist/4.maestro-web-sdk.esm.js +1 -1
- package/dist/4.maestro-web-sdk.esm.js.map +1 -1
- package/dist/5.maestro-web-sdk.esm.js +1 -1
- package/dist/5.maestro-web-sdk.esm.js.map +1 -1
- package/dist/6.maestro-web-sdk.esm.js +1 -1
- package/dist/6.maestro-web-sdk.esm.js.map +1 -1
- package/dist/7.maestro-web-sdk.esm.js +1 -1
- package/dist/7.maestro-web-sdk.esm.js.map +1 -1
- package/dist/8.maestro-web-sdk.esm.js +1 -1
- package/dist/8.maestro-web-sdk.esm.js.map +1 -1
- package/dist/9.maestro-web-sdk.esm.js +1 -1
- package/dist/9.maestro-web-sdk.esm.js.map +1 -1
- package/dist/index.d.ts +233 -1144
- package/dist/maestro-web-sdk.esm.js +3 -32
- package/dist/maestro-web-sdk.esm.js.map +1 -1
- package/dist/maestro-web-sdk.umd.js +3 -32
- package/dist/maestro-web-sdk.umd.js.map +1 -1
- package/dist/package.json +7 -5
- package/dist/src/components/atoms/Rive/index.d.ts +4 -2
- package/dist/src/components/atoms/SvgIcon/BuilderIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/BuilderIcon.js +8 -0
- package/dist/src/components/atoms/SvgIcon/FoxKeyPlaysIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/FoxKeyPlaysIcon.js +7 -0
- package/dist/src/components/atoms/SvgIcon/FoxMultiViewIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/FoxMultiViewIcon.js +10 -0
- package/dist/src/components/atoms/SvgIcon/FoxStatsIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/FoxStatsIcon.js +7 -0
- package/dist/src/components/atoms/SvgIcon/Icon.d.ts +1 -25
- package/dist/src/components/atoms/SvgIcon/Icon.js +46 -22
- package/dist/src/components/core/PanelManager/PanelManager.js +28 -12
- package/dist/src/components/core/ScrollableContainer/FocusableItem.d.ts +7 -2
- package/dist/src/components/core/ScrollableContainer/FocusableItem.js +19 -33
- package/dist/src/components/core/ScrollableContainer/ScrollableContainer.d.ts +10 -34
- package/dist/src/components/core/ScrollableContainer/ScrollableContainer.js +89 -147
- package/dist/src/components/core/ScrollableContainer/index.d.ts +4 -0
- package/dist/src/components/core/ScrollableContainer/index.js +3 -0
- package/dist/src/components/core/ScrollableContainer/useScrollableContainer.d.ts +14 -0
- package/dist/src/components/core/ScrollableContainer/useScrollableContainer.js +22 -0
- package/dist/src/components/molecules/ActionButton/ActionButton.d.ts +4 -2
- package/dist/src/components/molecules/ActionButton/ActionButton.js +6 -1
- package/dist/src/components/molecules/HeadshotImage/HeadshotImage.js +1 -1
- package/dist/src/components/molecules/PanelNavButton/PanelNavButton.d.ts +4 -2
- package/dist/src/components/molecules/PanelNavButton/PanelNavButton.js +1 -1
- package/dist/src/components/molecules/TabLoadError/TabLoadError.d.ts +4 -2
- package/dist/src/components/organisms/SegmentController/SegmentController.d.ts +1 -19
- package/dist/src/components/organisms/SegmentController/SegmentController.js +31 -72
- package/dist/src/development/MaestroEventDelegate.js +1 -1
- package/dist/src/development/development.js +4 -1
- package/dist/src/external/ReactRenderer.js +5 -4
- package/dist/src/external/spatial-navigation/spatialNavigation.d.ts +13 -8
- package/dist/src/external/spatial-navigation/spatialNavigation.js +73 -5
- package/dist/src/external/spatial-navigation/utils.d.ts +2 -0
- package/dist/src/external/spatial-navigation/withFocusable.d.ts +10 -2
- package/dist/src/external/spatial-navigation/withFocusable.js +12 -3
- package/dist/src/hooks/useMaxHeightToBottom.d.ts +11 -0
- package/dist/src/hooks/useMaxHeightToBottom.js +48 -0
- package/dist/src/index.d.ts +10 -11
- package/dist/src/index.js +51 -19
- package/dist/src/interfaces/IMaestroEvent.d.ts +1 -19
- package/dist/src/interfaces/IMaestroEvent.js +0 -17
- package/dist/src/interfaces/IMaestroManager.d.ts +39 -3
- package/dist/src/models/IPanel.d.ts +10 -6
- package/dist/src/models/IPanel.js +10 -38
- package/dist/src/modules/espn/bets/interfaces/IBetsViewModel.d.ts +5 -0
- package/dist/src/{services → modules/espn/bets/services}/BetsService.d.ts +3 -3
- package/dist/src/{services → modules/espn/bets/services}/BetsService.js +4 -3
- package/dist/src/modules/{bets → espn/bets}/view/BetsView.d.ts +4 -2
- package/dist/src/modules/{bets → espn/bets}/view/BetsView.js +38 -12
- package/dist/src/modules/{bets → espn/bets}/view/HotProps/HotPropsView.d.ts +21 -18
- package/dist/src/modules/{bets → espn/bets}/view/HotProps/HotPropsView.js +17 -34
- package/dist/src/modules/espn/bets/view/SixPack/SixPackView.d.ts +9 -0
- package/dist/src/modules/{bets → espn/bets}/view/SixPack/SixPackView.js +19 -52
- package/dist/src/modules/{bets → espn/bets}/view/UserBets/BetsCard/BetsCard.d.ts +22 -19
- package/dist/src/modules/{bets → espn/bets}/view/UserBets/BetsCard/BetsCard.js +16 -25
- package/dist/src/modules/espn/bets/view/UserBets/BetsCard/BetsCardEvent.d.ts +16 -0
- package/dist/src/modules/espn/bets/view/UserBets/BetsCard/BetsCardEvent.js +8 -0
- package/dist/src/modules/{bets → espn/bets}/view/UserBets/BetsCard/BetsCardFooter.d.ts +1 -1
- package/dist/src/modules/{bets → espn/bets}/view/UserBets/BetsCard/BetsCardFooter.js +1 -1
- package/dist/src/modules/{bets → espn/bets}/view/UserBets/Boost/Boost.d.ts +1 -1
- package/dist/src/modules/{bets → espn/bets}/view/UserBets/Parlay/Parlay.d.ts +1 -1
- package/dist/src/modules/{bets → espn/bets}/view/UserBets/Straight/Straight.d.ts +1 -1
- package/dist/src/modules/{bets → espn/bets}/view/UserBets/Teaser/Teaser.d.ts +1 -1
- package/dist/src/modules/espn/bets/view/components/Bet/Bet.d.ts +10 -0
- package/dist/src/modules/{bets → espn/bets}/view/components/Bet/Bet.js +12 -3
- package/dist/src/modules/{bets → espn/bets}/view/components/BetsCard/BetsCard.d.ts +2 -2
- package/dist/src/modules/espn/bets/view/components/BetsCard/BetsCard.js +24 -0
- package/dist/src/modules/espn/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.d.ts +7 -0
- package/dist/src/modules/espn/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.js +31 -0
- package/dist/src/modules/espn/bets/view/components/GamblingDisclaimer/index.d.ts +1 -0
- package/dist/src/modules/espn/bets/view/components/GamblingDisclaimer/index.js +1 -0
- package/dist/src/modules/espn/bets/view/components/PromoCodeBanner/PromoCodeBanner.d.ts +5 -0
- package/dist/src/modules/espn/bets/view/components/PromoCodeBanner/PromoCodeBanner.js +45 -0
- package/dist/src/modules/{bets → espn/bets}/view-model/BetsViewModel.d.ts +4 -5
- package/dist/src/modules/{bets → espn/bets}/view-model/BetsViewModel.js +6 -33
- package/dist/src/modules/espn/fantasy/components/LeagueCard/LeagueCard.d.ts +104 -0
- package/dist/src/modules/espn/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +101 -0
- package/dist/src/modules/espn/fantasy/components/TournamentOverflowQR/TournamentOverflowQR.d.ts +103 -0
- package/dist/src/modules/espn/fantasy/components/TournamentOverflowQR/TournamentOverflowQR.js +94 -0
- package/dist/src/modules/espn/fantasy/components/TournamentOverflowQR/index.d.ts +1 -0
- package/dist/src/modules/espn/fantasy/components/TournamentOverflowQR/index.js +1 -0
- package/dist/src/{services → modules/espn/fantasy/services}/FantasyService.d.ts +27 -4
- package/dist/src/modules/espn/fantasy/services/FantasyService.js +124 -0
- package/dist/src/modules/{fantasy → espn/fantasy}/types.d.ts +118 -0
- package/dist/src/modules/{fantasy → espn/fantasy}/types.js +3 -0
- package/dist/src/modules/espn/fantasy/view/FantasyHeaderView.d.ts +8 -0
- package/dist/src/modules/espn/fantasy/view/FantasyHeaderView.js +8 -0
- package/dist/src/modules/espn/fantasy/view/FantasyItemView.d.ts +8 -0
- package/dist/src/modules/espn/fantasy/view/FantasyItemView.js +48 -0
- package/dist/src/modules/{fantasy → espn/fantasy}/view/FantasyView.d.ts +7 -0
- package/dist/src/modules/{fantasy → espn/fantasy}/view/FantasyView.js +86 -7
- package/dist/src/modules/espn/fantasy/view/InactiveLeague/InactiveLeague.d.ts +100 -0
- package/dist/src/modules/espn/fantasy/view/LoginView/LoginView.d.ts +96 -0
- package/dist/src/modules/espn/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts +97 -0
- package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/MatchupPair.d.ts +18 -16
- package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/MatchupSingle.d.ts +18 -16
- package/dist/src/modules/espn/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts +97 -0
- package/dist/src/modules/{fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts → espn/fantasy/view/PromoView/PromoView.d.ts} +30 -25
- package/dist/src/modules/{fantasy → espn/fantasy}/view/PromoView/PromoView.js +2 -2
- package/dist/src/modules/espn/fantasy/view/TournamentBracketCard/TournamentBracketCard.d.ts +101 -0
- package/dist/src/modules/{fantasy → espn/fantasy}/view/TournamentBracketCard/TournamentBracketCard.js +10 -6
- package/dist/src/modules/{fantasy → espn/fantasy}/view-model/FantasyViewModel.FantasyPolling.d.ts +1 -1
- package/dist/src/modules/{fantasy → espn/fantasy}/view-model/FantasyViewModel.LeagueManagerPolling.d.ts +1 -1
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.TournamentPolling.d.ts +32 -0
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.TournamentPolling.js +140 -0
- package/dist/src/modules/{fantasy → espn/fantasy}/view-model/FantasyViewModel.d.ts +22 -3
- package/dist/src/modules/{fantasy → espn/fantasy}/view-model/FantasyViewModel.js +310 -46
- package/dist/src/modules/espn/key-plays/interfaces/IKeyPlaysViewModel.d.ts +17 -0
- package/dist/src/modules/{key-plays → espn/key-plays}/view/KeyPlayCardView.d.ts +2 -14
- package/dist/src/modules/{key-plays → espn/key-plays}/view/KeyPlayCardView.js +18 -42
- package/dist/src/modules/{key-plays → espn/key-plays}/view/KeyPlayErrorStateView.js +13 -13
- package/dist/src/modules/{key-plays → espn/key-plays}/view/KeyPlaysView.d.ts +2 -0
- package/dist/src/modules/{key-plays → espn/key-plays}/view/KeyPlaysView.js +33 -5
- package/dist/src/modules/{key-plays → espn/key-plays}/view-model/KeyPlaysViewModel.d.ts +1 -1
- package/dist/src/modules/{key-plays → espn/key-plays}/view-model/KeyPlaysViewModel.js +2 -3
- package/dist/src/{services → modules/espn/shop/services}/ShopService.d.ts +3 -3
- package/dist/src/{services → modules/espn/shop/services}/ShopService.js +2 -4
- package/dist/src/modules/{shop → espn/shop}/types.d.ts +3 -0
- package/dist/src/modules/{shop → espn/shop}/view/ProductDetailView/ProductDetailView.d.ts +1 -0
- package/dist/src/modules/{shop → espn/shop}/view/ShopView.d.ts +3 -0
- package/dist/src/modules/{shop → espn/shop}/view/ShopView.js +45 -4
- package/dist/src/modules/espn/shop/view/components/BrowseCard/BrowseCard.d.ts +103 -0
- package/dist/src/modules/{shop → espn/shop}/view/components/BrowseCard/BrowseCard.js +1 -1
- package/dist/src/modules/{shop → espn/shop}/view/components/ProductSummaryCard/ProductSummaryCard.d.ts +18 -16
- package/dist/src/modules/{shop → espn/shop}/view/components/ShopPromoView/ShopPromoView.js +2 -2
- package/dist/src/modules/espn/shop/view/components/ShopSection/ShopSection.d.ts +12 -0
- package/dist/src/modules/espn/shop/view/components/ShopSection/ShopSection.js +34 -0
- package/dist/src/modules/{shop → espn/shop}/view-model/ShopViewModel.ShopPolling.d.ts +1 -1
- package/dist/src/modules/{shop → espn/shop}/view-model/ShopViewModel.d.ts +4 -8
- package/dist/src/modules/{shop → espn/shop}/view-model/ShopViewModel.js +5 -39
- package/dist/src/modules/{stats/utils/renderTeamStatistic.d.ts → espn/stats/components/TeamStatistic.d.ts} +2 -6
- package/dist/src/modules/{stats/utils/renderTeamStatistic.js → espn/stats/components/TeamStatistic.js} +4 -7
- package/dist/src/modules/{stats → espn/stats}/interfaces/IStats.d.ts +124 -20
- package/dist/src/modules/espn/stats/interfaces/IStats.js +46 -0
- package/dist/src/modules/espn/stats/interfaces/IStatsViewModel.d.ts +7 -0
- package/dist/src/modules/espn/stats/interfaces/IStatsViewModel.js +1 -0
- package/dist/src/{services → modules/espn/stats/services}/StatsService.d.ts +3 -3
- package/dist/src/{services → modules/espn/stats/services}/StatsService.js +5 -4
- package/dist/src/modules/{stats → espn/stats}/utils/playerStatusUtils.js +1 -0
- package/dist/src/modules/espn/stats/view/CareerMatchup/CareerMatchup.d.ts +101 -0
- package/dist/src/modules/{stats → espn/stats}/view/CareerMatchup/CareerMatchup.js +6 -6
- package/dist/src/modules/espn/stats/view/DriveSummary/DrivePlayCard.d.ts +105 -0
- package/dist/src/modules/espn/stats/view/DriveSummary/DrivePlayCard.js +32 -0
- package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/DriveSummary.d.ts +2 -9
- package/dist/src/modules/espn/stats/view/DriveSummary/DriveSummary.js +40 -0
- package/dist/src/modules/espn/stats/view/GameLeaders/GameLeaders.d.ts +9 -0
- package/dist/src/modules/espn/stats/view/GameLeaders/GameLeaders.js +22 -0
- package/dist/src/modules/{stats → espn/stats}/view/MatchPredictor/DonutChart/DonutChart.js +2 -2
- package/dist/src/modules/{fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts → espn/stats/view/MatchPredictor/MatchPredictorView.d.ts} +30 -25
- package/dist/src/modules/{stats → espn/stats}/view/Penalties/Penalties.js +1 -1
- package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/ExpandedPlayerStats.js +11 -8
- package/dist/src/modules/{stats/view/ScoringSummary/ScoreItem/ScoreItem.d.ts → espn/stats/view/PlayerSeasonStats/PlayerSeasonStatsCard.d.ts} +6 -5
- package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/PlayerSeasonStatsCard.js +2 -2
- package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/PlayerSeasonStatsMinified.js +1 -1
- package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/PlayerSeasonStatsView.js +1 -1
- package/dist/src/modules/{stats/view/components/AthletesStatistics/AthletesStatistics.d.ts → espn/stats/view/RecentGames/RecentGames.d.ts} +29 -42
- package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ExpandedScores/ExpandedScores.d.ts +1 -1
- package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/ExpandedSummary.d.ts +100 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/ExpandedSummary.js +24 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/index.d.ts +2 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/index.js +2 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoreItem/ScoreItem.d.ts +100 -0
- package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ScoreItem/ScoreItem.js +1 -1
- package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ScoresSection/ScoresSection.d.ts +1 -1
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoringSummary.d.ts +12 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/ScoringSummary.js +167 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/index.d.ts +1 -0
- package/dist/src/modules/espn/stats/view/ScoringSummary/index.js +1 -0
- package/dist/src/modules/espn/stats/view/StatsItemView.d.ts +8 -0
- package/dist/src/modules/espn/stats/view/StatsItemView.js +66 -0
- package/dist/src/modules/espn/stats/view/StatsQRCode/StatsQRCodeView.d.ts +100 -0
- package/dist/src/modules/{stats → espn/stats}/view/StatsView.d.ts +2 -0
- package/dist/src/modules/{stats → espn/stats}/view/StatsView.js +31 -4
- package/dist/src/modules/{stats → espn/stats}/view/TeamStats/TeamStatsView.d.ts +29 -26
- package/dist/src/modules/espn/stats/view/TeamStats/TeamStatsView.js +77 -0
- package/dist/src/modules/espn/stats/view/Teams/Teams.d.ts +100 -0
- package/dist/src/modules/{stats → espn/stats}/view/Teams/Teams.js +15 -19
- package/dist/src/modules/espn/stats/view/WinProbability/WinProbability.d.ts +100 -0
- package/dist/src/modules/{stats → espn/stats}/view/WinProbability/WinProbability.js +1 -1
- package/dist/src/modules/espn/stats/view/components/AthletesStatistics/AthletesStatistics.d.ts +115 -0
- package/dist/src/modules/{stats → espn/stats}/view/components/AthletesStatistics/AthletesStatistics.js +1 -1
- package/dist/src/modules/{stats → espn/stats}/view-model/StatsViewModel.d.ts +101 -20
- package/dist/src/modules/{stats → espn/stats}/view-model/StatsViewModel.js +527 -100
- package/dist/src/modules/fox/key-plays/view/FoxKeyPlays.d.ts +2 -0
- package/dist/src/modules/fox/key-plays/view/FoxKeyPlays.js +5 -0
- package/dist/src/modules/fox/multi-view/view/FoxMultiView.d.ts +2 -0
- package/dist/src/modules/fox/multi-view/view/FoxMultiView.js +5 -0
- package/dist/src/modules/fox/stats/view/FoxStatsView.d.ts +2 -0
- package/dist/src/modules/fox/stats/view/FoxStatsView.js +5 -0
- package/dist/src/modules/maestro/builder/components/BuilderSection/BuilderSection.d.ts +11 -0
- package/dist/src/modules/maestro/builder/components/BuilderSection/BuilderSection.js +52 -0
- package/dist/src/modules/maestro/builder/components/BuilderSection/index.d.ts +2 -0
- package/dist/src/modules/maestro/builder/components/BuilderSection/index.js +2 -0
- package/dist/src/modules/maestro/builder/components/ExpandableCard/ExpandableCard.d.ts +110 -0
- package/dist/src/modules/maestro/builder/components/ExpandableCard/ExpandableCard.js +37 -0
- package/dist/src/modules/maestro/builder/components/ExpandableCard/index.d.ts +2 -0
- package/dist/src/modules/maestro/builder/components/ExpandableCard/index.js +2 -0
- package/dist/src/modules/{shop/view/components/BrowseCard/BrowseCard.d.ts → maestro/builder/components/SimpleCard/SimpleCard.d.ts} +32 -29
- package/dist/src/modules/maestro/builder/components/SimpleCard/SimpleCard.js +12 -0
- package/dist/src/modules/maestro/builder/components/SimpleCard/index.d.ts +2 -0
- package/dist/src/modules/maestro/builder/components/SimpleCard/index.js +2 -0
- package/dist/src/modules/maestro/builder/index.d.ts +7 -0
- package/dist/src/modules/maestro/builder/index.js +7 -0
- package/dist/src/modules/maestro/builder/mocks/mockBuilderPanel.d.ts +149 -0
- package/dist/src/modules/maestro/builder/mocks/mockBuilderPanel.js +240 -0
- package/dist/src/modules/maestro/builder/types.d.ts +52 -0
- package/dist/src/modules/maestro/builder/types.js +1 -0
- package/dist/src/modules/maestro/builder/view/BuilderPanelView.d.ts +4 -0
- package/dist/src/modules/maestro/builder/view/BuilderPanelView.js +52 -0
- package/dist/src/modules/maestro/builder/view-model/BuilderPanelViewModel.d.ts +40 -0
- package/dist/src/modules/maestro/builder/view-model/BuilderPanelViewModel.js +229 -0
- package/dist/src/modules/maestro/builder/view-model/index.d.ts +1 -0
- package/dist/src/modules/maestro/builder/view-model/index.js +1 -0
- package/dist/src/sentry.d.ts +1 -1
- package/dist/src/sentry.js +41 -21
- package/dist/src/services/AnalyticsService/AnalyticsService.d.ts +3 -2
- package/dist/src/services/AnalyticsService/AnalyticsService.js +3 -1
- package/dist/src/services/InsightsService/InsightsPayloadBuilder.d.ts +1 -1
- package/dist/src/services/InsightsService/InsightsPayloadBuilder.js +1 -2
- package/dist/src/services/InsightsService/InsightsService.js +1 -1
- package/dist/src/services/NetworkManager/NetworkManager.d.ts +6 -0
- package/dist/src/services/NetworkManager/NetworkManager.js +39 -62
- package/dist/src/services/NetworkManager/types.d.ts +0 -96
- package/dist/src/services/NetworkManager/types.js +1 -10
- package/dist/src/services/StaticService/StaticService.d.ts +10 -2
- package/dist/src/services/StaticService/StaticService.js +32 -7
- package/dist/src/services/StaticService/mocks.d.ts +1 -0
- package/dist/src/services/StaticService/mocks.js +114 -99
- package/dist/src/services/StaticService/types.d.ts +3 -1
- package/dist/src/services/UserSettingsManager.js +9 -6
- package/dist/src/view-models/MaestroEventViewModel.d.ts +47 -16
- package/dist/src/view-models/MaestroEventViewModel.js +124 -58
- package/dist/src/view-models/PanelManagerViewModel.d.ts +4 -1
- package/dist/src/view-models/PanelManagerViewModel.js +41 -58
- package/package.json +7 -5
- package/dist/1.maestro-web-sdk.umd.js +0 -2
- package/dist/1.maestro-web-sdk.umd.js.map +0 -1
- package/dist/10.maestro-web-sdk.umd.js +0 -2
- package/dist/10.maestro-web-sdk.umd.js.map +0 -1
- package/dist/11.maestro-web-sdk.umd.js +0 -2
- package/dist/11.maestro-web-sdk.umd.js.map +0 -1
- package/dist/12.maestro-web-sdk.umd.js +0 -2
- package/dist/12.maestro-web-sdk.umd.js.map +0 -1
- package/dist/13.maestro-web-sdk.umd.js +0 -2
- package/dist/13.maestro-web-sdk.umd.js.map +0 -1
- package/dist/14.maestro-web-sdk.umd.js +0 -2
- package/dist/14.maestro-web-sdk.umd.js.map +0 -1
- package/dist/15.maestro-web-sdk.umd.js +0 -2
- package/dist/15.maestro-web-sdk.umd.js.map +0 -1
- package/dist/16.maestro-web-sdk.umd.js +0 -2
- package/dist/16.maestro-web-sdk.umd.js.map +0 -1
- package/dist/17.maestro-web-sdk.umd.js +0 -2
- package/dist/17.maestro-web-sdk.umd.js.map +0 -1
- package/dist/18.maestro-web-sdk.umd.js +0 -2
- package/dist/18.maestro-web-sdk.umd.js.map +0 -1
- package/dist/19.maestro-web-sdk.umd.js +0 -2
- package/dist/19.maestro-web-sdk.umd.js.map +0 -1
- package/dist/2.maestro-web-sdk.umd.js +0 -2
- package/dist/2.maestro-web-sdk.umd.js.map +0 -1
- package/dist/20.maestro-web-sdk.umd.js +0 -2
- package/dist/20.maestro-web-sdk.umd.js.map +0 -1
- package/dist/21.maestro-web-sdk.umd.js +0 -2
- package/dist/21.maestro-web-sdk.umd.js.map +0 -1
- package/dist/22.maestro-web-sdk.umd.js +0 -2
- package/dist/22.maestro-web-sdk.umd.js.map +0 -1
- package/dist/23.maestro-web-sdk.umd.js +0 -2
- package/dist/23.maestro-web-sdk.umd.js.map +0 -1
- package/dist/24.maestro-web-sdk.umd.js +0 -2
- package/dist/24.maestro-web-sdk.umd.js.map +0 -1
- package/dist/3.maestro-web-sdk.umd.js +0 -2
- package/dist/3.maestro-web-sdk.umd.js.map +0 -1
- package/dist/4.maestro-web-sdk.umd.js +0 -2
- package/dist/4.maestro-web-sdk.umd.js.map +0 -1
- package/dist/5.maestro-web-sdk.umd.js +0 -2
- package/dist/5.maestro-web-sdk.umd.js.map +0 -1
- package/dist/6.maestro-web-sdk.umd.js +0 -2
- package/dist/6.maestro-web-sdk.umd.js.map +0 -1
- package/dist/7.maestro-web-sdk.umd.js +0 -2
- package/dist/7.maestro-web-sdk.umd.js.map +0 -1
- package/dist/8.maestro-web-sdk.umd.js +0 -2
- package/dist/8.maestro-web-sdk.umd.js.map +0 -1
- package/dist/9.maestro-web-sdk.umd.js +0 -2
- package/dist/9.maestro-web-sdk.umd.js.map +0 -1
- package/dist/bundle-report.html +0 -53
- 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/models/IWinningBet.d.ts +0 -7
- package/dist/src/modules/bets/view/SixPack/SixPackView.d.ts +0 -23
- 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/components/Bet/Bet.d.ts +0 -158
- package/dist/src/modules/bets/view/components/BetsCard/BetsCard.js +0 -15
- 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/PromoCodeBanner/PromoCodeBanner.d.ts +0 -18
- package/dist/src/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.js +0 -78
- package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.d.ts +0 -102
- package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +0 -99
- 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/InactiveLeague/InactiveLeague.d.ts +0 -98
- package/dist/src/modules/fantasy/view/LoginView/LoginView.d.ts +0 -94
- package/dist/src/modules/fantasy/view/PromoView/PromoView.d.ts +0 -98
- package/dist/src/modules/fantasy/view/TournamentBracketCard/TournamentBracketCard.d.ts +0 -99
- 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/stats/view/CareerMatchup/CareerMatchup.d.ts +0 -100
- 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.js +0 -87
- 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/MatchPredictor/MatchPredictorView.d.ts +0 -98
- package/dist/src/modules/stats/view/PlayerSeasonStats/PlayerSeasonStatsCard.d.ts +0 -97
- package/dist/src/modules/stats/view/RecentGames/RecentGames.d.ts +0 -98
- 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/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/TeamStats/TeamStatsView.js +0 -43
- package/dist/src/modules/stats/view/Teams/Teams.d.ts +0 -98
- package/dist/src/modules/stats/view/WinProbability/WinProbability.d.ts +0 -98
- package/dist/src/services/FantasyService.js +0 -92
- package/dist/src/services/NetworkManager/NetworkManagerFactory.d.ts +0 -42
- package/dist/src/services/NetworkManager/NetworkManagerFactory.js +0 -101
- package/dist/src/types/OverlayTypes.d.ts +0 -43
- package/dist/src/types/OverlayTypes.js +0 -4
- package/dist/src/view-models/OverlayViewModel.d.ts +0 -33
- package/dist/src/view-models/OverlayViewModel.js +0 -222
- /package/dist/src/modules/{bets → espn/bets}/interfaces/IBets.d.ts +0 -0
- /package/dist/src/modules/{bets → espn/bets}/interfaces/IBets.js +0 -0
- /package/dist/src/{models/IWinningBet.js → modules/espn/bets/interfaces/IBetsViewModel.js} +0 -0
- /package/dist/src/modules/{bets → espn/bets}/mocks.d.ts +0 -0
- /package/dist/src/modules/{bets → espn/bets}/mocks.js +0 -0
- /package/dist/src/modules/{bets → espn/bets}/types/BetsAnalyticsTypes.d.ts +0 -0
- /package/dist/src/modules/{bets → espn/bets}/types/BetsAnalyticsTypes.js +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/UserBets/BetResult/BetResult.d.ts +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/UserBets/BetResult/BetResult.js +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/UserBets/Boost/Boost.js +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/UserBets/OutcomeBadge/OutcomeBadge.d.ts +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/UserBets/OutcomeBadge/OutcomeBadge.js +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/UserBets/Parlay/Parlay.js +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/UserBets/Straight/Straight.js +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/UserBets/Teaser/Teaser.js +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/UserBets/UserBetsView.d.ts +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/UserBets/UserBetsView.js +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/components/BetPill/BetPill.d.ts +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/components/BetPill/BetPill.js +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/components/BetsCard/BetsCardHeader.d.ts +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/components/BetsCard/BetsCardHeader.js +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/components/LocationWarning/LocationWarning.d.ts +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/components/LocationWarning/LocationWarning.js +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/components/PromoCodeBanner/index.d.ts +0 -0
- /package/dist/src/modules/{bets → espn/bets}/view/components/PromoCodeBanner/index.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/components/ExpandedAthleteList/ExpandedAthletesList.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/components/ExpandedAthleteList/ExpandedAthletesList.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/components/ExpandedAthleteList/index.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/components/ExpandedAthleteList/index.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/components/LeagueCard/LeagueCard.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/components/LeagueCard/index.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/components/LeagueCard/index.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/components/TopPlayerCard/TopPlayerCard.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/components/TopPlayerCard/index.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/components/TopPlayerCard/index.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/mocks.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/mocks.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/ActiveAthletesMarquee/ActiveAthletesMarquee.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/ActiveAthletesMarquee/ActiveAthletesMarquee.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/ActiveAthletesMarquee/index.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/ActiveAthletesMarquee/index.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/InactiveLeague/DraftDateCountdown.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/InactiveLeague/DraftDateCountdown.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/InactiveLeague/InactiveLeague.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/InactiveLeague/index.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/InactiveLeague/index.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/LoginView/LoginView.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/LoginView/index.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/LoginView/index.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/DoubleAthleteCard/index.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/DoubleAthleteCard/index.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/ExpandedDoubleAthleteCards.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/ExpandedDoubleAthleteCards.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/MatchupPair.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/index.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/index.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/ExpandedSingleAthleteCards.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/ExpandedSingleAthleteCards.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/MatchupSingle.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/SingleAthleteCard/index.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/SingleAthleteCard/index.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/index.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/index.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/PromoView/index.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/PromoView/index.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/TournamentBracketCard/index.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/TournamentBracketCard/index.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/index.d.ts +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view/index.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view-model/FantasyViewModel.FantasyPolling.js +0 -0
- /package/dist/src/modules/{fantasy → espn/fantasy}/view-model/FantasyViewModel.LeagueManagerPolling.js +0 -0
- /package/dist/src/modules/{key-plays → espn/key-plays}/constants.d.ts +0 -0
- /package/dist/src/modules/{key-plays → espn/key-plays}/constants.js +0 -0
- /package/dist/src/modules/{key-plays → espn/key-plays}/interfaces/IKeyPlays.d.ts +0 -0
- /package/dist/src/modules/{key-plays → espn/key-plays}/interfaces/IKeyPlays.js +0 -0
- /package/dist/src/modules/{key-plays → espn/key-plays}/interfaces/IKeyPlaysResponse.d.ts +0 -0
- /package/dist/src/modules/{key-plays → espn/key-plays}/interfaces/IKeyPlaysResponse.js +0 -0
- /package/dist/src/modules/{stats/interfaces/IStats.js → espn/key-plays/interfaces/IKeyPlaysViewModel.js} +0 -0
- /package/dist/src/modules/{key-plays → espn/key-plays}/view/KeyPlayCardScoreTagView.d.ts +0 -0
- /package/dist/src/modules/{key-plays → espn/key-plays}/view/KeyPlayCardScoreTagView.js +0 -0
- /package/dist/src/modules/{key-plays → espn/key-plays}/view/KeyPlayErrorStateView.d.ts +0 -0
- /package/dist/src/modules/{shop → espn/shop}/mocks.d.ts +0 -0
- /package/dist/src/modules/{shop → espn/shop}/mocks.js +0 -0
- /package/dist/src/modules/{shop → espn/shop}/types.js +0 -0
- /package/dist/src/modules/{shop → espn/shop}/view/ProductDetailView/ProductDetailView.js +0 -0
- /package/dist/src/modules/{shop → espn/shop}/view/ProductDetailView/index.d.ts +0 -0
- /package/dist/src/modules/{shop → espn/shop}/view/ProductDetailView/index.js +0 -0
- /package/dist/src/modules/{shop → espn/shop}/view/components/BrowseCard/index.d.ts +0 -0
- /package/dist/src/modules/{shop → espn/shop}/view/components/BrowseCard/index.js +0 -0
- /package/dist/src/modules/{shop → espn/shop}/view/components/ProductSummaryCard/ProductSummaryCard.js +0 -0
- /package/dist/src/modules/{shop → espn/shop}/view/components/ProductSummaryCard/index.d.ts +0 -0
- /package/dist/src/modules/{shop → espn/shop}/view/components/ProductSummaryCard/index.js +0 -0
- /package/dist/src/modules/{shop → espn/shop}/view/components/ShopPromoView/ShopPromoView.d.ts +0 -0
- /package/dist/src/modules/{shop → espn/shop}/view/components/ShopPromoView/index.d.ts +0 -0
- /package/dist/src/modules/{shop → espn/shop}/view/components/ShopPromoView/index.js +0 -0
- /package/dist/src/modules/{shop → espn/shop}/view/components/ShopSection/index.d.ts +0 -0
- /package/dist/src/modules/{shop → espn/shop}/view/components/ShopSection/index.js +0 -0
- /package/dist/src/modules/{shop → espn/shop}/view/index.d.ts +0 -0
- /package/dist/src/modules/{shop → espn/shop}/view/index.js +0 -0
- /package/dist/src/modules/{shop → espn/shop}/view-model/ShopViewModel.ShopPolling.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/mocks.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/mocks.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/utils/driveSummaryUtils.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/utils/driveSummaryUtils.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/utils/playerStatusUtils.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/utils.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/utils.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/ActiveAthletes/ActiveAthletes.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/ActiveAthletes/ActiveAthletes.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/ActiveAthletes/index.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/ActiveAthletes/index.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/CareerMatchup/index.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/CareerMatchup/index.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/Header/DriveSummaryHeader.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/Header/DriveSummaryHeader.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/MainStat/MainStat.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/MainStat/MainStat.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/index.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/index.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/GameLeaders/index.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/GameLeaders/index.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/MatchPredictor/DonutChart/DonutChart.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/MatchPredictor/DonutChart/index.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/MatchPredictor/DonutChart/index.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/MatchPredictor/MatchPredictorView.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/MatchPredictor/index.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/MatchPredictor/index.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/Penalties/Penalties.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/Penalties/index.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/Penalties/index.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/ExpandedPlayerStats.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/PlayerSeasonStatsMinified.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/PlayerSeasonStatsView.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/index.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/index.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/RecentGames/RecentGames.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/RecentGames/index.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/RecentGames/index.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ExpandedScores/ExpandedScores.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ScoreItem/index.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ScoreItem/index.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ScoresSection/ScoresSection.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ScoresSection/index.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ScoresSection/index.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/StatsQRCode/StatsQRCodeView.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/StatsQRCode/index.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/StatsQRCode/index.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/TeamStats/index.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/TeamStats/index.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/Teams/StatsCarousel.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/Teams/StatsCarousel.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/Teams/StatsProgressBar.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/Teams/StatsProgressBar.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/Teams/index.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/Teams/index.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/WinProbability/index.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/WinProbability/index.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/components/AthletesStatistics/StatisticTable.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/components/AthletesStatistics/StatisticTable.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/components/AthletesStatistics/index.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/components/AthletesStatistics/index.js +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/index.d.ts +0 -0
- /package/dist/src/modules/{stats → espn/stats}/view/index.js +0 -0
- /package/dist/src/modules/{hello-world → maestro/hello-world}/HelloWorldImage.d.ts +0 -0
- /package/dist/src/modules/{hello-world → maestro/hello-world}/HelloWorldImage.js +0 -0
- /package/dist/src/modules/{hello-world → maestro/hello-world}/HelloWorldView.d.ts +0 -0
- /package/dist/src/modules/{hello-world → maestro/hello-world}/HelloWorldView.js +0 -0
- /package/dist/src/modules/{hello-world → maestro/hello-world}/index.d.ts +0 -0
- /package/dist/src/modules/{hello-world → maestro/hello-world}/index.js +0 -0
|
@@ -2,26 +2,27 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { WithFocusableProps } from '@/external/spatial-navigation';
|
|
4
4
|
import { Direction, Layout } from '@/external/spatial-navigation/utils';
|
|
5
|
-
import { IUserBet } from '@/modules/bets/interfaces/IBets';
|
|
5
|
+
import { IUserBet } from '@/modules/espn/bets/interfaces/IBets';
|
|
6
6
|
export declare const EVENTS_COUNT_THRESHOLD = 3;
|
|
7
7
|
export type BaseBetCardProps = {
|
|
8
8
|
bet: IUserBet;
|
|
9
9
|
renderHeaderContent?: (props: WithFocusableProps) => React.ReactNode;
|
|
10
10
|
hideWagers?: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare const
|
|
12
|
+
export declare const FocusableUserBetsCard: {
|
|
13
13
|
new (props: (BaseBetCardProps & WithFocusableProps) | Readonly<BaseBetCardProps & WithFocusableProps>): {
|
|
14
|
-
state: import("
|
|
15
|
-
navigation: import("
|
|
14
|
+
state: import("../../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
15
|
+
navigation: import("../../../../../../external/spatial-navigation/spatialNavigation").default;
|
|
16
16
|
getChildContext(): {
|
|
17
17
|
parentFocusKey: string;
|
|
18
18
|
};
|
|
19
19
|
setFocus: (focusKey: string) => void;
|
|
20
|
-
navigateByDirection: (direction: Direction, details?:
|
|
20
|
+
navigateByDirection: (direction: Direction, details?: import("@/external/spatial-navigation/utils").Details) => void;
|
|
21
21
|
stealFocus: () => void;
|
|
22
22
|
onUpdateFocus: (focused: boolean) => void;
|
|
23
23
|
onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
|
|
24
24
|
onEnterPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
25
|
+
onClickPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
25
26
|
onEnterReleaseHandler: () => void;
|
|
26
27
|
onBackPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
27
28
|
onArrowPressHandler: (direction: Direction, details: import("@/external/spatial-navigation/utils").Details) => boolean | void;
|
|
@@ -32,7 +33,7 @@ declare const _default: {
|
|
|
32
33
|
componentWillUnmount(): void;
|
|
33
34
|
render(): React.ReactElement<BaseBetCardProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
34
35
|
context: any;
|
|
35
|
-
setState<K extends keyof import("
|
|
36
|
+
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<BaseBetCardProps & 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;
|
|
36
37
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
37
38
|
readonly props: Readonly<BaseBetCardProps & WithFocusableProps> & Readonly<{
|
|
38
39
|
children?: React.ReactNode;
|
|
@@ -40,28 +41,29 @@ declare const _default: {
|
|
|
40
41
|
refs: {
|
|
41
42
|
[key: string]: React.ReactInstance;
|
|
42
43
|
};
|
|
43
|
-
shouldComponentUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("
|
|
44
|
+
shouldComponentUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
44
45
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
45
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<BaseBetCardProps & WithFocusableProps>, prevState: Readonly<import("
|
|
46
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<BaseBetCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
46
47
|
componentWillMount?(): void;
|
|
47
48
|
UNSAFE_componentWillMount?(): void;
|
|
48
49
|
componentWillReceiveProps?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextContext: any): void;
|
|
49
50
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextContext: any): void;
|
|
50
|
-
componentWillUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("
|
|
51
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("
|
|
51
|
+
componentWillUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
52
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
52
53
|
};
|
|
53
54
|
new (props: BaseBetCardProps & WithFocusableProps, context: any): {
|
|
54
|
-
state: import("
|
|
55
|
-
navigation: import("
|
|
55
|
+
state: import("../../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
56
|
+
navigation: import("../../../../../../external/spatial-navigation/spatialNavigation").default;
|
|
56
57
|
getChildContext(): {
|
|
57
58
|
parentFocusKey: string;
|
|
58
59
|
};
|
|
59
60
|
setFocus: (focusKey: string) => void;
|
|
60
|
-
navigateByDirection: (direction: Direction, details?:
|
|
61
|
+
navigateByDirection: (direction: Direction, details?: import("@/external/spatial-navigation/utils").Details) => void;
|
|
61
62
|
stealFocus: () => void;
|
|
62
63
|
onUpdateFocus: (focused: boolean) => void;
|
|
63
64
|
onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
|
|
64
65
|
onEnterPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
66
|
+
onClickPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
65
67
|
onEnterReleaseHandler: () => void;
|
|
66
68
|
onBackPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
67
69
|
onArrowPressHandler: (direction: Direction, details: import("@/external/spatial-navigation/utils").Details) => boolean | void;
|
|
@@ -72,7 +74,7 @@ declare const _default: {
|
|
|
72
74
|
componentWillUnmount(): void;
|
|
73
75
|
render(): React.ReactElement<BaseBetCardProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
74
76
|
context: any;
|
|
75
|
-
setState<K extends keyof import("
|
|
77
|
+
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<BaseBetCardProps & 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;
|
|
76
78
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
77
79
|
readonly props: Readonly<BaseBetCardProps & WithFocusableProps> & Readonly<{
|
|
78
80
|
children?: React.ReactNode;
|
|
@@ -80,15 +82,15 @@ declare const _default: {
|
|
|
80
82
|
refs: {
|
|
81
83
|
[key: string]: React.ReactInstance;
|
|
82
84
|
};
|
|
83
|
-
shouldComponentUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("
|
|
85
|
+
shouldComponentUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
84
86
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
85
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<BaseBetCardProps & WithFocusableProps>, prevState: Readonly<import("
|
|
87
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<BaseBetCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
86
88
|
componentWillMount?(): void;
|
|
87
89
|
UNSAFE_componentWillMount?(): void;
|
|
88
90
|
componentWillReceiveProps?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextContext: any): void;
|
|
89
91
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextContext: any): void;
|
|
90
|
-
componentWillUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("
|
|
91
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("
|
|
92
|
+
componentWillUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
93
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
92
94
|
};
|
|
93
95
|
contextTypes: {
|
|
94
96
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
@@ -98,4 +100,5 @@ declare const _default: {
|
|
|
98
100
|
};
|
|
99
101
|
contextType?: React.Context<any> | undefined;
|
|
100
102
|
};
|
|
101
|
-
|
|
103
|
+
declare const UserBetsCardWrapper: React.FC<BaseBetCardProps & WithFocusableProps>;
|
|
104
|
+
export default UserBetsCardWrapper;
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useCallback } from 'react';
|
|
2
2
|
import { withFocusable, } from '@/external/spatial-navigation';
|
|
3
|
+
import { useScrollableContainer } from '@/components/core/ScrollableContainer';
|
|
3
4
|
import BetsCard from '../../components/BetsCard/BetsCard';
|
|
4
5
|
import BetsCardHeader from '../../components/BetsCard/BetsCardHeader';
|
|
5
6
|
import BetsCardFooter from './BetsCardFooter';
|
|
6
7
|
import BetsCardEvent from './BetsCardEvent';
|
|
7
|
-
import { DEFAULT_SCROLLABLE_CONTAINER_CONTEXT, SCROLLABLE_CONTEXT_TYPE, } from '@/components/core/ScrollableContainer/ScrollableContainer';
|
|
8
8
|
import SDK from '@/index';
|
|
9
9
|
export const EVENTS_COUNT_THRESHOLD = 3;
|
|
10
10
|
class UserBetsCard extends React.Component {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
|
-
Object.defineProperty(this, "context", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
configurable: true,
|
|
16
|
-
writable: true,
|
|
17
|
-
value: DEFAULT_SCROLLABLE_CONTAINER_CONTEXT
|
|
18
|
-
});
|
|
19
13
|
Object.defineProperty(this, "onEnterPress", {
|
|
20
14
|
enumerable: true,
|
|
21
15
|
configurable: true,
|
|
@@ -101,14 +95,6 @@ class UserBetsCard extends React.Component {
|
|
|
101
95
|
return (React.createElement(BetsCardFooter, { bet: this.props.bet, hideWagers: this.props.hideWagers }));
|
|
102
96
|
}
|
|
103
97
|
});
|
|
104
|
-
Object.defineProperty(this, "becameFocused", {
|
|
105
|
-
enumerable: true,
|
|
106
|
-
configurable: true,
|
|
107
|
-
writable: true,
|
|
108
|
-
value: (layout) => {
|
|
109
|
-
this.context.scrollToFocusedElement(layout);
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
98
|
}
|
|
113
99
|
get betsFocusable() {
|
|
114
100
|
return this.props.bet.events.length > EVENTS_COUNT_THRESHOLD;
|
|
@@ -125,14 +111,15 @@ class UserBetsCard extends React.Component {
|
|
|
125
111
|
return this.props.bet.type.toLowerCase();
|
|
126
112
|
}
|
|
127
113
|
get viewModel() {
|
|
128
|
-
const vm = SDK.getMaestroEventViewModel()
|
|
114
|
+
const vm = SDK.getMaestroEventViewModel()
|
|
115
|
+
.betsViewModel;
|
|
129
116
|
if (!vm) {
|
|
130
117
|
throw new Error('BetsViewModel is not initialized');
|
|
131
118
|
}
|
|
132
119
|
return vm;
|
|
133
120
|
}
|
|
134
121
|
render() {
|
|
135
|
-
return (React.createElement(BetsCard, { header: this.renderHeader, footer: this.renderFooter, onEnterPress: this.onEnterPress, focusKey: `${this.focusKeyPrefix}-${this.props.bet.id}`, onArrowPress: this.handleCardArrowPress, onBecameFocused: this.
|
|
122
|
+
return (React.createElement(BetsCard, { header: this.renderHeader, footer: this.renderFooter, onEnterPress: this.onEnterPress, focusKey: `${this.focusKeyPrefix}-${this.props.bet.id}`, onArrowPress: this.handleCardArrowPress, onBecameFocused: this.props.onBecameFocused, focused: this.props.focused },
|
|
136
123
|
this.events.map((event, eventIndex) => (React.createElement(BetsCardEvent, { betType: this.betType, betsFocusable: this.betsFocusable, event: event, eventIndex: eventIndex, onBetArrowPress: this.handleBetArrowPress, key: event.displayName, betId: this.props.bet.id, parentFocusKey: this.props.focusKey, onBetBackPress: this.focusCard, hideWagers: this.props.hideWagers }))),
|
|
137
124
|
!this.props.hasFocusedChild && this.betsFocusable && (React.createElement("div", { className: "more-bets T05_ALT" },
|
|
138
125
|
"+",
|
|
@@ -140,10 +127,14 @@ class UserBetsCard extends React.Component {
|
|
|
140
127
|
" more"))));
|
|
141
128
|
}
|
|
142
129
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
130
|
+
export const FocusableUserBetsCard = withFocusable({
|
|
131
|
+
trackChildren: true,
|
|
132
|
+
})(UserBetsCard);
|
|
133
|
+
const UserBetsCardWrapper = (props) => {
|
|
134
|
+
const { scrollToFocusedElement } = useScrollableContainer();
|
|
135
|
+
const onBecameFocused = useCallback((layout) => {
|
|
136
|
+
scrollToFocusedElement(layout);
|
|
137
|
+
}, [scrollToFocusedElement]);
|
|
138
|
+
return React.createElement(FocusableUserBetsCard, { ...props, onBecameFocused: onBecameFocused });
|
|
139
|
+
};
|
|
140
|
+
export default UserBetsCardWrapper;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IUserBet } from '@/modules/espn/bets/interfaces/IBets';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Details, Direction } from '@/external/spatial-navigation/utils';
|
|
4
|
+
type BetsCardEventProps = {
|
|
5
|
+
event: IUserBet['events'][number];
|
|
6
|
+
betsFocusable: boolean;
|
|
7
|
+
betId: string;
|
|
8
|
+
parentFocusKey: string;
|
|
9
|
+
eventIndex: number;
|
|
10
|
+
betType: string;
|
|
11
|
+
onBetArrowPress: (eventIndex: number, legIndex: number) => (direction: Direction, props: any, details: Details) => void;
|
|
12
|
+
onBetBackPress: () => void;
|
|
13
|
+
hideWagers?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare const BetsCardEvent: React.FC<BetsCardEventProps>;
|
|
16
|
+
export default BetsCardEvent;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Bet from '../../components/Bet/Bet';
|
|
3
|
+
const BetsCardEvent = (props) => {
|
|
4
|
+
return (React.createElement("div", { key: props.event.displayName, className: "bets-card-event T10" },
|
|
5
|
+
React.createElement("div", { className: "T10" }, props.event.displayName),
|
|
6
|
+
React.createElement("div", { className: "bets-card-bets" }, props.event.legs.map((leg, index) => (React.createElement(Bet, { key: `${props.betId}-${props.eventIndex}-${index}`, focusable: props.betsFocusable, focusKey: `sdk-bets-card-${props.betType}-bet-${props.betId}-${props.eventIndex}-${index}`, onArrowPress: props.onBetArrowPress(props.eventIndex, index), leg: leg, onBackPress: props.onBetBackPress, parentFocusKey: props.parentFocusKey, hideWagers: props.hideWagers }))))));
|
|
7
|
+
};
|
|
8
|
+
export default BetsCardEvent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import BetPill from '../../components/BetPill/BetPill';
|
|
3
|
-
import BetResult from '
|
|
3
|
+
import BetResult from '../BetResult/BetResult';
|
|
4
4
|
const BetsCardFooter = (props) => {
|
|
5
5
|
// Hide entire footer when hideWagers is true
|
|
6
6
|
if (props.hideWagers) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Bet.styles.css';
|
|
3
|
+
import { WithFocusableProps } from '@/external/spatial-navigation';
|
|
4
|
+
import { IBetLeg } from '@/modules/espn/bets/interfaces/IBets';
|
|
5
|
+
type BetProps = {
|
|
6
|
+
leg: IBetLeg;
|
|
7
|
+
hideWagers?: boolean;
|
|
8
|
+
} & WithFocusableProps;
|
|
9
|
+
declare const Bet: React.FC<BetProps>;
|
|
10
|
+
export default Bet;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useCallback } from 'react';
|
|
2
2
|
import './Bet.styles.css';
|
|
3
3
|
import { withFocusable, } from '@/external/spatial-navigation';
|
|
4
4
|
import Image from '@/components/atoms/Image';
|
|
5
5
|
import FocusableItem from '@/components/core/ScrollableContainer/FocusableItem';
|
|
6
|
-
|
|
6
|
+
import { useScrollableContainer } from '@/components/core/ScrollableContainer';
|
|
7
|
+
class BetComponent extends React.Component {
|
|
7
8
|
render() {
|
|
8
9
|
const accruedValue = this.props.leg.points
|
|
9
10
|
? Number(this.props.leg.points)
|
|
@@ -29,4 +30,12 @@ class Bet extends React.Component {
|
|
|
29
30
|
React.createElement("progress", { "data-complete": accruedValue === this.props.leg.accrued.goal, value: accruedValue, max: this.props.leg.accrued.goal })))))));
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
+
const FocusableBet = withFocusable()(BetComponent);
|
|
34
|
+
const Bet = (props) => {
|
|
35
|
+
const { scrollToFocusedElement } = useScrollableContainer();
|
|
36
|
+
const onBecameFocused = useCallback((layout) => {
|
|
37
|
+
scrollToFocusedElement(layout);
|
|
38
|
+
}, [scrollToFocusedElement]);
|
|
39
|
+
return React.createElement(FocusableBet, { ...props, onBecameFocused: onBecameFocused });
|
|
40
|
+
};
|
|
41
|
+
export default Bet;
|
|
@@ -6,5 +6,5 @@ export type BetsCardProps = {
|
|
|
6
6
|
header: (props: BetsCardProps & WithFocusableProps) => React.ReactNode;
|
|
7
7
|
footer: (props: BetsCardProps & WithFocusableProps) => React.ReactNode;
|
|
8
8
|
};
|
|
9
|
-
declare const
|
|
10
|
-
export default
|
|
9
|
+
declare const BetsCard: React.FC<BetsCardProps & WithFocusableProps>;
|
|
10
|
+
export default BetsCard;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { useCallback } from 'react';
|
|
2
|
+
import './BetsCard.styles.css';
|
|
3
|
+
import { withFocusable, } from '@/external/spatial-navigation';
|
|
4
|
+
import FocusableItem from '@/components/core/ScrollableContainer/FocusableItem';
|
|
5
|
+
import { useScrollableContainer } from '@/components/core/ScrollableContainer';
|
|
6
|
+
class BetsCardComponent extends React.Component {
|
|
7
|
+
render() {
|
|
8
|
+
return (React.createElement(FocusableItem, null,
|
|
9
|
+
React.createElement("div", { className: "bets-card focus-ring", "data-focused": this.props.focused },
|
|
10
|
+
this.props.header(this.props),
|
|
11
|
+
React.createElement("div", { className: "bets-card-divider" }),
|
|
12
|
+
this.props.children,
|
|
13
|
+
this.props.footer(this.props))));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
const FocusableBetsCard = withFocusable()(BetsCardComponent);
|
|
17
|
+
const BetsCard = (props) => {
|
|
18
|
+
const { scrollToFocusedElement } = useScrollableContainer();
|
|
19
|
+
const onBecameFocused = useCallback((layout) => {
|
|
20
|
+
scrollToFocusedElement(layout);
|
|
21
|
+
}, [scrollToFocusedElement]);
|
|
22
|
+
return React.createElement(FocusableBetsCard, { ...props, onBecameFocused: onBecameFocused });
|
|
23
|
+
};
|
|
24
|
+
export default BetsCard;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { useCallback } from 'react';
|
|
2
|
+
import Icon from '@/components/atoms/SvgIcon/Icon';
|
|
3
|
+
import './GamblingDisclaimer.styles.css';
|
|
4
|
+
import FocusableItem from '@/components/core/ScrollableContainer/FocusableItem';
|
|
5
|
+
import { useScrollableContainer } from '@/components/core/ScrollableContainer';
|
|
6
|
+
import { withFocusable, } from '@/external/spatial-navigation';
|
|
7
|
+
import SDK from '@/index';
|
|
8
|
+
const FALLBACK_DISCLAIMER_TEXT = 'Odds by ESPN BET; 21+. Gambling Problem? Call 1-800-GAMBLER';
|
|
9
|
+
class GamblingDisclaimer extends React.Component {
|
|
10
|
+
render() {
|
|
11
|
+
const { text, focused = false } = this.props;
|
|
12
|
+
return (React.createElement(FocusableItem, null,
|
|
13
|
+
React.createElement("div", { className: "gambling-disclaimer focus-ring", "data-focused": focused },
|
|
14
|
+
React.createElement(Icon, { iconName: "mobilePhone", width: 32, height: 32 }),
|
|
15
|
+
React.createElement("div", { className: "gambling-disclaimer-text T02" }, text || FALLBACK_DISCLAIMER_TEXT))));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
const FocusableGamblingDisclaimer = withFocusable()(GamblingDisclaimer);
|
|
19
|
+
const GamblingDisclaimerWrapper = (props) => {
|
|
20
|
+
const { scrollToFocusedElement } = useScrollableContainer();
|
|
21
|
+
const onBecameFocused = useCallback((layout) => {
|
|
22
|
+
scrollToFocusedElement(layout);
|
|
23
|
+
}, [scrollToFocusedElement]);
|
|
24
|
+
const onArrowPress = useCallback((d, _props) => {
|
|
25
|
+
if (d === 'left') {
|
|
26
|
+
SDK.getMaestroEventViewModel().deliverFocus();
|
|
27
|
+
}
|
|
28
|
+
}, []);
|
|
29
|
+
return (React.createElement(FocusableGamblingDisclaimer, { ...props, onBecameFocused: onBecameFocused, onArrowPress: onArrowPress }));
|
|
30
|
+
};
|
|
31
|
+
export default GamblingDisclaimerWrapper;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as GamblingDisclaimer } from './GamblingDisclaimer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as GamblingDisclaimer } from './GamblingDisclaimer';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React, { useCallback } from 'react';
|
|
2
|
+
import './PromoCodeBanner.styles.css';
|
|
3
|
+
import { withFocusable, } from '@/external/spatial-navigation';
|
|
4
|
+
import FocusableItem from '@/components/core/ScrollableContainer/FocusableItem';
|
|
5
|
+
import { useScrollableContainer } from '@/components/core/ScrollableContainer';
|
|
6
|
+
import SDK from '@/index';
|
|
7
|
+
class PromoCodeBanner extends React.Component {
|
|
8
|
+
render() {
|
|
9
|
+
const { title, description, logo, qrCode, backgroundImage, focused, } = this.props;
|
|
10
|
+
return (React.createElement(FocusableItem, null,
|
|
11
|
+
React.createElement("div", { className: "promo-code-banner focus-ring", "data-focused": focused, style: {
|
|
12
|
+
backgroundImage: `url(${backgroundImage})`,
|
|
13
|
+
} },
|
|
14
|
+
React.createElement("div", { className: "promo-content" },
|
|
15
|
+
React.createElement("div", { className: "promo-logo-container" },
|
|
16
|
+
React.createElement("img", { src: logo, alt: "ESPN Bet Logo", className: "promo-logo" })),
|
|
17
|
+
React.createElement("div", { className: "promo-tagline T20" }, title)),
|
|
18
|
+
React.createElement("div", { className: "promo-action-area" },
|
|
19
|
+
React.createElement("div", { className: "qr-code-container" },
|
|
20
|
+
React.createElement("img", { src: qrCode, alt: "QR Code", className: "qr-code" })),
|
|
21
|
+
React.createElement("div", { className: "promo-description T20" }, description)))));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
const FocusablePromoCodeBanner = withFocusable()(PromoCodeBanner);
|
|
25
|
+
const FocusablePromoCodeBannerWrapper = (props) => {
|
|
26
|
+
const { scrollToFocusedElement } = useScrollableContainer();
|
|
27
|
+
const onBecameFocused = useCallback((layout) => {
|
|
28
|
+
scrollToFocusedElement(layout);
|
|
29
|
+
}, [scrollToFocusedElement]);
|
|
30
|
+
const onArrowPress = useCallback((d, _props) => {
|
|
31
|
+
if (d === 'left') {
|
|
32
|
+
SDK.getMaestroEventViewModel().deliverFocus();
|
|
33
|
+
}
|
|
34
|
+
}, []);
|
|
35
|
+
const onEnterPress = useCallback(() => {
|
|
36
|
+
const vm = SDK.getMaestroEventViewModel().betsViewModel;
|
|
37
|
+
if (!vm) {
|
|
38
|
+
throw new Error('BetsViewModel is not initialized');
|
|
39
|
+
}
|
|
40
|
+
// Track card click for promo
|
|
41
|
+
vm.trackCardClick('promo');
|
|
42
|
+
}, []);
|
|
43
|
+
return (React.createElement(FocusablePromoCodeBanner, { ...props, onBecameFocused: onBecameFocused, onArrowPress: onArrowPress, onEnterPress: onEnterPress }));
|
|
44
|
+
};
|
|
45
|
+
export default FocusablePromoCodeBannerWrapper;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Observable } from '
|
|
1
|
+
import { Observable } from '../../../../helpers/Observable';
|
|
2
|
+
import AnalyticsService from '@/services/AnalyticsService/AnalyticsService';
|
|
2
3
|
import { ITeam, IUserBet, IBetLeg } from '../interfaces/IBets';
|
|
3
|
-
import { ViewModel } from '
|
|
4
|
-
import { TestUseCase } from '@/interfaces/IMaestroEvent';
|
|
4
|
+
import { ViewModel } from '../../../../view-models/ViewModel';
|
|
5
5
|
import IMaestroEventDelegate from '@/interfaces/IMaestroEventDelegate';
|
|
6
6
|
import { BetCardType, BetType } from '../types/BetsAnalyticsTypes';
|
|
7
7
|
declare const BET_ITEM_TYPE: {
|
|
@@ -123,7 +123,7 @@ export declare class BetsViewModel extends ViewModel {
|
|
|
123
123
|
private userSettingsManager;
|
|
124
124
|
private settingsSubscription;
|
|
125
125
|
initialized: boolean;
|
|
126
|
-
constructor(eventId: string, delegate: IMaestroEventDelegate, options?: {
|
|
126
|
+
constructor(eventId: string, delegate: IMaestroEventDelegate, analyticsService: AnalyticsService, options?: {
|
|
127
127
|
useMockData?: boolean;
|
|
128
128
|
});
|
|
129
129
|
/**
|
|
@@ -204,7 +204,6 @@ export declare class BetsViewModel extends ViewModel {
|
|
|
204
204
|
* Fetch mock data for testing
|
|
205
205
|
*/
|
|
206
206
|
private fetchMockData;
|
|
207
|
-
simulateUseCase<T = any>(useCase: TestUseCase, _: T): void;
|
|
208
207
|
clearTabLoadFailure(): void;
|
|
209
208
|
/**
|
|
210
209
|
* Check if wagers should be hidden based on user settings
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { Observable } from '
|
|
2
|
-
import BetsService from '
|
|
3
|
-
import { UserSettingsManager } from '
|
|
4
|
-
import AnalyticsService from '../../../services/AnalyticsService/AnalyticsService';
|
|
1
|
+
import { Observable } from '../../../../helpers/Observable';
|
|
2
|
+
import BetsService from '../services/BetsService';
|
|
3
|
+
import { UserSettingsManager } from '../../../../services/UserSettingsManager';
|
|
5
4
|
// Import ViewModel with correct path
|
|
6
|
-
import { ViewModel } from '
|
|
5
|
+
import { ViewModel } from '../../../../view-models/ViewModel';
|
|
7
6
|
import { MOCK_BETS_API_RESPONSE } from '../mocks';
|
|
8
7
|
import SDK from '@/index';
|
|
9
8
|
import { captureException } from '@/sentry';
|
|
@@ -29,7 +28,7 @@ const isPersonalizedBetsResponse = (data) => {
|
|
|
29
28
|
typeof data.event === 'object');
|
|
30
29
|
};
|
|
31
30
|
export class BetsViewModel extends ViewModel {
|
|
32
|
-
constructor(eventId, delegate, options = {}) {
|
|
31
|
+
constructor(eventId, delegate, analyticsService, options = {}) {
|
|
33
32
|
super();
|
|
34
33
|
// Observable properties
|
|
35
34
|
Object.defineProperty(this, "betsItems", {
|
|
@@ -138,7 +137,7 @@ export class BetsViewModel extends ViewModel {
|
|
|
138
137
|
this.eventId = eventId;
|
|
139
138
|
this.delegate = delegate;
|
|
140
139
|
this.betsService = new BetsService(delegate);
|
|
141
|
-
this.analyticsService =
|
|
140
|
+
this.analyticsService = analyticsService;
|
|
142
141
|
this.pollingInterval = DEFAULT_POLLING_INTERVAL;
|
|
143
142
|
this.useMockData = options.useMockData || false;
|
|
144
143
|
this.userSettingsManager = UserSettingsManager.getInstance();
|
|
@@ -902,32 +901,6 @@ export class BetsViewModel extends ViewModel {
|
|
|
902
901
|
this.errorState.value = 'none';
|
|
903
902
|
this.isDataLoading.value = false;
|
|
904
903
|
}
|
|
905
|
-
simulateUseCase(useCase, _) {
|
|
906
|
-
switch (useCase) {
|
|
907
|
-
case 'betsTabLoadFailure':
|
|
908
|
-
this.errorState.value = 'tabLoadFailure';
|
|
909
|
-
break;
|
|
910
|
-
case 'betsMockData':
|
|
911
|
-
this.stopPolling();
|
|
912
|
-
this.useMockData = true;
|
|
913
|
-
this.lastPersonalizedResponseHash = null;
|
|
914
|
-
this.lastNonPersonalizedResponseHash = null;
|
|
915
|
-
this.errorState.value = 'none';
|
|
916
|
-
this.fetchNewData();
|
|
917
|
-
break;
|
|
918
|
-
case 'betsLiveData':
|
|
919
|
-
this.useMockData = false;
|
|
920
|
-
this.lastPersonalizedResponseHash = null;
|
|
921
|
-
this.lastNonPersonalizedResponseHash = null;
|
|
922
|
-
this.hasEverSuccessfullyLoaded.value = false;
|
|
923
|
-
this.errorState.value = 'none';
|
|
924
|
-
this.fetchNewData();
|
|
925
|
-
this.refreshPolling();
|
|
926
|
-
break;
|
|
927
|
-
default:
|
|
928
|
-
throw new Error(`Unsupported use case: ${useCase}`);
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
904
|
clearTabLoadFailure() {
|
|
932
905
|
this.errorState.value = 'none';
|
|
933
906
|
setTimeout(() => {
|