@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
|
@@ -1,104 +1,119 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
panel_name: 'Key Plays',
|
|
14
|
-
panel_type: 'espnKeyPlays',
|
|
15
|
-
icon_name: 'keyPlays',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
_id: '687e7d03f8d920eec4c8e911',
|
|
19
|
-
slug: 'panel-6879b0f23af9e9c90b42a24b-401769973-espnBet-generated',
|
|
20
|
-
panel_name: 'Bets',
|
|
21
|
-
panel_type: 'espnBet',
|
|
22
|
-
icon_name: 'bets',
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
_id: '687e7d03f8d920eec4c8e912',
|
|
26
|
-
slug: 'panel-6879b0f23af9e9c90b42a24b-401769973-espnFantasy-generated',
|
|
27
|
-
panel_name: 'Fantasy',
|
|
28
|
-
panel_type: 'espnFantasy',
|
|
29
|
-
icon_name: 'fantasy',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
_id: '687e7d03f8d920eec4c8e913',
|
|
33
|
-
slug: 'panel-6879b0f23af9e9c90b42a24b-401769973-espnShop-generated',
|
|
34
|
-
panel_name: 'Espn Shop',
|
|
35
|
-
panel_type: 'espnShop',
|
|
36
|
-
icon_name: 'espnShop',
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
page: {
|
|
40
|
-
_id: '687e7d05f8d920eec4c8e924',
|
|
41
|
-
slug: '401769973-1a5f0227-a13e-396c-8cea-8961bc288666',
|
|
42
|
-
type: 'channel',
|
|
43
|
-
name: 'NHL Test Game',
|
|
44
|
-
metadata: {
|
|
45
|
-
external_field_1: '401769973',
|
|
46
|
-
external_field_2: '2512ac76-a335-39cb-af51-b9afffc6571d',
|
|
47
|
-
external_field_3: '1a5f0227-a13e-396c-8cea-8961bc288666',
|
|
48
|
-
external_field_4: 'event',
|
|
49
|
-
external_field_5: '{"leagueId":"3040"}',
|
|
50
|
-
},
|
|
1
|
+
// Shared page data for all mock configs
|
|
2
|
+
const MOCK_PAGE = {
|
|
3
|
+
_id: '687e7d05f8d920eec4c8e924',
|
|
4
|
+
slug: '401769973-1a5f0227-a13e-396c-8cea-8961bc288666',
|
|
5
|
+
type: 'channel',
|
|
6
|
+
name: 'NHL Test Game',
|
|
7
|
+
metadata: {
|
|
8
|
+
external_field_1: '401769973',
|
|
9
|
+
external_field_2: '2512ac76-a335-39cb-af51-b9afffc6571d',
|
|
10
|
+
external_field_3: '1a5f0227-a13e-396c-8cea-8961bc288666',
|
|
11
|
+
external_field_4: 'event',
|
|
12
|
+
external_field_5: '{"leagueId":"3040"}',
|
|
51
13
|
},
|
|
52
|
-
|
|
53
|
-
|
|
14
|
+
};
|
|
15
|
+
const MOCK_INSIGHTS = {
|
|
16
|
+
_id: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkIjp7Il9pZCI6IjY2NGI5YzU3ZDU5YTdhNDMxNTQyZDgxNCIsImNyZWF0ZWQiOjE3MTYyMzEyNTguOTQ3LCJzbHVnIjoiZXNwbiIsInVpZCI6InNpdGVfdG9rZW4ifSwiaWF0IjoxNzE2MjMxMjU4fQ.Qtl9F3Cvk1wASCK0sycxwQcuih1exjTngfjqhb19oQA',
|
|
17
|
+
};
|
|
18
|
+
const MOCK_SITE = {
|
|
19
|
+
_id: '664b9c57d59a7a431542d814',
|
|
20
|
+
domainUrl: 'www.maestro.io/espn',
|
|
21
|
+
package: {
|
|
22
|
+
version: '4.06.0',
|
|
23
|
+
id: 'maestro',
|
|
54
24
|
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
25
|
+
slug: 'mock-espn-site',
|
|
26
|
+
};
|
|
27
|
+
const MOCK_THEME = {
|
|
28
|
+
_id: '66db3b75f682a8c91436c8fc',
|
|
29
|
+
button: {
|
|
30
|
+
borderRadius: 'rounded',
|
|
31
|
+
textCapitalization: 'uppercase',
|
|
62
32
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
33
|
+
colors: {
|
|
34
|
+
accentPrimary: '#fbc010FF',
|
|
35
|
+
accentSecondary: '#AD850A',
|
|
36
|
+
accentTertiary: '#FFFFFF',
|
|
37
|
+
alertConfirmation: '#43D48F',
|
|
38
|
+
alertError: '#FF0000',
|
|
39
|
+
alertWarning: '#F4D73D',
|
|
40
|
+
highlightPrimary: '#F3F7FF',
|
|
41
|
+
highlightSecondary: '#9DA0A6',
|
|
42
|
+
highlightTertiary: '#0C0D0D',
|
|
43
|
+
surface1: '#000000',
|
|
44
|
+
surface2: '#0D0D0D',
|
|
45
|
+
surface3: '#1A1A1A',
|
|
46
|
+
surface4: '#262626',
|
|
47
|
+
surface5: '#404040',
|
|
48
|
+
surface6: '#4D4D4D',
|
|
49
|
+
text100: '#FFF2F2',
|
|
50
|
+
text200: '#CCC2C2',
|
|
51
|
+
text300: '#999191',
|
|
52
|
+
text400: '#666161',
|
|
53
|
+
text500: '#0D0C0C',
|
|
54
|
+
},
|
|
55
|
+
name: 'Landing Page',
|
|
56
|
+
siteId: '664b9c57d59a7a431542d814',
|
|
57
|
+
type: 'custom',
|
|
58
|
+
typography: {
|
|
59
|
+
body: 'helvetica-lt-std-roman',
|
|
60
|
+
headline: 'industry-demi',
|
|
61
|
+
},
|
|
62
|
+
creator: '664b9c6b70e9a56febd2dbab',
|
|
63
|
+
owner: '664b9c6b70e9a56febd2dbab',
|
|
64
|
+
created: 1725643637480,
|
|
65
|
+
modified: 1733600558188,
|
|
66
|
+
tags: [],
|
|
67
|
+
};
|
|
68
|
+
const MOCK_PANELS = [
|
|
69
|
+
{
|
|
70
|
+
_id: '687e7d03f8d920eec4c8e90f',
|
|
71
|
+
slug: 'panel-6879b0f23af9e9c90b42a24b-401769973-espnStats-generated',
|
|
72
|
+
panel_name: 'Stats',
|
|
73
|
+
panel_type: 'espnStats',
|
|
74
|
+
icon_name: 'stats',
|
|
103
75
|
},
|
|
76
|
+
{
|
|
77
|
+
_id: '687e7d03f8d920eec4c8e910',
|
|
78
|
+
slug: 'panel-6879b0f23af9e9c90b42a24b-401769973-espnKeyPlays-generated',
|
|
79
|
+
panel_name: 'Key Plays',
|
|
80
|
+
panel_type: 'espnKeyPlays',
|
|
81
|
+
icon_name: 'keyPlays',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
_id: '687e7d03f8d920eec4c8e911',
|
|
85
|
+
slug: 'panel-6879b0f23af9e9c90b42a24b-401769973-espnBet-generated',
|
|
86
|
+
panel_name: 'Bets',
|
|
87
|
+
panel_type: 'espnBet',
|
|
88
|
+
icon_name: 'bets',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
_id: '687e7d03f8d920eec4c8e912',
|
|
92
|
+
slug: 'panel-6879b0f23af9e9c90b42a24b-401769973-espnFantasy-generated',
|
|
93
|
+
panel_name: 'Fantasy',
|
|
94
|
+
panel_type: 'espnFantasy',
|
|
95
|
+
icon_name: 'fantasy',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
_id: '687e7d03f8d920eec4c8e913',
|
|
99
|
+
slug: 'panel-6879b0f23af9e9c90b42a24b-401769973-espnShop-generated',
|
|
100
|
+
panel_name: 'Espn Shop',
|
|
101
|
+
panel_type: 'espnShop',
|
|
102
|
+
icon_name: 'espnShop',
|
|
103
|
+
},
|
|
104
|
+
];
|
|
105
|
+
export const MOCK_PAGE_CONFIG = {
|
|
106
|
+
panels: MOCK_PANELS,
|
|
107
|
+
page: MOCK_PAGE,
|
|
108
|
+
insights: MOCK_INSIGHTS,
|
|
109
|
+
site: MOCK_SITE,
|
|
110
|
+
theme: MOCK_THEME,
|
|
111
|
+
};
|
|
112
|
+
// Page config without panels for test setup (avoids view model loading)
|
|
113
|
+
export const MOCK_PAGE_CONFIG_NO_PANELS = {
|
|
114
|
+
panels: [],
|
|
115
|
+
page: MOCK_PAGE,
|
|
116
|
+
insights: MOCK_INSIGHTS,
|
|
117
|
+
site: MOCK_SITE,
|
|
118
|
+
theme: MOCK_THEME,
|
|
104
119
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MaestroPanelType } from '@/models/IPanel';
|
|
1
2
|
import ITheme from '@/models/ITheme';
|
|
2
3
|
type PlatformConfig = {
|
|
3
4
|
analytics: {
|
|
@@ -13,7 +14,7 @@ interface PageConfigPanel<TRendererData = unknown, TBlockData = any> {
|
|
|
13
14
|
_id: string;
|
|
14
15
|
slug: string;
|
|
15
16
|
panel_name?: string;
|
|
16
|
-
panel_type?:
|
|
17
|
+
panel_type?: MaestroPanelType;
|
|
17
18
|
icon_name?: string;
|
|
18
19
|
renderer?: {
|
|
19
20
|
block_data?: TBlockData;
|
|
@@ -70,6 +71,7 @@ export interface PageConfig {
|
|
|
70
71
|
version: string;
|
|
71
72
|
id: string;
|
|
72
73
|
};
|
|
74
|
+
slug: string;
|
|
73
75
|
};
|
|
74
76
|
theme?: ITheme | null;
|
|
75
77
|
}
|
|
@@ -2,11 +2,11 @@ import { Observable } from '@/helpers/Observable';
|
|
|
2
2
|
import { DEFAULT_USER_SETTINGS, } from '@/interfaces/IUserSettings';
|
|
3
3
|
import { MaestroPanelType } from '@/models/IPanel';
|
|
4
4
|
const PANEL_TYPE_SETTINGS_KEY_MAP = {
|
|
5
|
-
[MaestroPanelType.
|
|
6
|
-
[MaestroPanelType.
|
|
7
|
-
[MaestroPanelType.
|
|
8
|
-
[MaestroPanelType.
|
|
9
|
-
[MaestroPanelType.
|
|
5
|
+
[MaestroPanelType.ESPN_BETS]: 'bets',
|
|
6
|
+
[MaestroPanelType.ESPN_STATS]: 'stats',
|
|
7
|
+
[MaestroPanelType.ESPN_KEY_PLAYS]: 'keyPlays',
|
|
8
|
+
[MaestroPanelType.ESPN_FANTASY]: 'fantasy',
|
|
9
|
+
[MaestroPanelType.ESPN_SHOP]: 'shop',
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* UserSettingsManager - Singleton service for managing user settings
|
|
@@ -150,6 +150,9 @@ export class UserSettingsManager {
|
|
|
150
150
|
* @param panelType - Panel type from MaestroPanelType enum
|
|
151
151
|
*/
|
|
152
152
|
mapPanelTypeToSettingsKey(panelType) {
|
|
153
|
-
|
|
153
|
+
if (panelType in PANEL_TYPE_SETTINGS_KEY_MAP) {
|
|
154
|
+
return PANEL_TYPE_SETTINGS_KEY_MAP[panelType];
|
|
155
|
+
}
|
|
156
|
+
return null;
|
|
154
157
|
}
|
|
155
158
|
}
|
|
@@ -1,32 +1,66 @@
|
|
|
1
1
|
import IMaestroEventDelegate from '../interfaces/IMaestroEventDelegate';
|
|
2
|
-
import IMaestroEvent
|
|
2
|
+
import IMaestroEvent from '../interfaces/IMaestroEvent';
|
|
3
3
|
import { Observable } from '../helpers/Observable';
|
|
4
4
|
import { ViewModel } from './ViewModel';
|
|
5
|
-
import KeyPlaysViewModel from '../modules/key-plays/view-model/KeyPlaysViewModel';
|
|
6
|
-
import BetsViewModel from '../modules/bets/view-model/BetsViewModel';
|
|
7
5
|
import SpatialNavigation from '@/external/spatial-navigation/spatialNavigation';
|
|
8
|
-
import
|
|
9
|
-
import IMaestroKeyPlaysResponse from '../modules/key-plays/interfaces/IKeyPlaysResponse';
|
|
6
|
+
import IMaestroKeyPlaysResponse from '../modules/espn/key-plays/interfaces/IKeyPlaysResponse';
|
|
10
7
|
import { MaestroPanelType } from '@/models/IPanel';
|
|
11
8
|
import { IUserSettings } from '../interfaces/IUserSettings';
|
|
12
9
|
import { PanelManagerViewModel } from './PanelManagerViewModel';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
10
|
+
import AnalyticsService from '@/services/AnalyticsService/AnalyticsService';
|
|
11
|
+
import { IKeyPlaysViewModel } from '../modules/espn/key-plays/interfaces/IKeyPlaysViewModel';
|
|
12
|
+
import { IBetsViewModel } from '../modules/espn/bets/interfaces/IBetsViewModel';
|
|
13
|
+
import { IStatsViewModel } from '../modules/espn/stats/interfaces/IStatsViewModel';
|
|
14
|
+
import { IFantasyViewModel } from '@/modules/espn/fantasy/types';
|
|
15
|
+
import { IShopViewModel } from '@/modules/espn/shop/types';
|
|
16
|
+
import { BuilderPanelViewModel } from '@/modules/maestro/builder/view-model/BuilderPanelViewModel';
|
|
15
17
|
export declare class MaestroEventViewModel extends ViewModel implements IMaestroEvent {
|
|
16
18
|
private _eventId;
|
|
19
|
+
private _pageId;
|
|
17
20
|
private _title;
|
|
18
21
|
private _isLive;
|
|
19
22
|
private _isShowingPanel;
|
|
20
23
|
private playerTimeCode;
|
|
24
|
+
private analyticsService;
|
|
21
25
|
delegate: IMaestroEventDelegate;
|
|
22
|
-
keyPlaysViewModel:
|
|
23
|
-
fantasyViewModel:
|
|
24
|
-
betsViewModel:
|
|
25
|
-
statsViewModel:
|
|
26
|
-
shopViewModel:
|
|
26
|
+
keyPlaysViewModel: IKeyPlaysViewModel | null;
|
|
27
|
+
fantasyViewModel: IFantasyViewModel | null;
|
|
28
|
+
betsViewModel: IBetsViewModel | null;
|
|
29
|
+
statsViewModel: IStatsViewModel | null;
|
|
30
|
+
shopViewModel: IShopViewModel | null;
|
|
31
|
+
builderPanelViewModel: BuilderPanelViewModel | null;
|
|
27
32
|
panelManagerViewModel: PanelManagerViewModel;
|
|
28
33
|
navigation: SpatialNavigation;
|
|
29
|
-
constructor(eventId: string | undefined, delegate: IMaestroEventDelegate);
|
|
34
|
+
constructor(eventId: string | undefined, pageId: string | undefined, delegate: IMaestroEventDelegate, analyticsService: AnalyticsService);
|
|
35
|
+
/**
|
|
36
|
+
* Initializes view models for enabled panels using dynamic imports (code splitting).
|
|
37
|
+
*
|
|
38
|
+
* This method lazily loads view model modules based on the page configuration,
|
|
39
|
+
* reducing initial bundle size by only loading modules for panels that are enabled.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* - Must be called after SDK configuration and before interacting with any view models
|
|
43
|
+
* - Typically invoked during `userDidStartWatchingEvent()` flow
|
|
44
|
+
* - Each view model is loaded in parallel for optimal performance
|
|
45
|
+
*
|
|
46
|
+
* @remarks Error Handling
|
|
47
|
+
* - Individual view model loading failures are caught and logged as warnings
|
|
48
|
+
* - Failed view models remain `null`, allowing other panels to function normally
|
|
49
|
+
* - The method resolves successfully even if some view models fail to load
|
|
50
|
+
* - Callers should check for `null` before using any view model property
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```typescript
|
|
54
|
+
* await maestroEventViewModel.initViewModels();
|
|
55
|
+
* // Check if view model loaded before use
|
|
56
|
+
* if (maestroEventViewModel.betsViewModel) {
|
|
57
|
+
* maestroEventViewModel.betsViewModel.startPolling();
|
|
58
|
+
* }
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @returns Promise that resolves when all view model loading attempts complete
|
|
62
|
+
*/
|
|
63
|
+
initViewModels(): Promise<void>;
|
|
30
64
|
setActivePanel(panelType: MaestroPanelType): void;
|
|
31
65
|
updatePlayerTimeCode(timestamp: number): void;
|
|
32
66
|
getPlayerTimeCode(): number | null;
|
|
@@ -41,8 +75,6 @@ export declare class MaestroEventViewModel extends ViewModel implements IMaestro
|
|
|
41
75
|
didUpdatePlaybackProgressOfClip(index: number, to: number): void;
|
|
42
76
|
didShowPanel(): Promise<void>;
|
|
43
77
|
didHidePanel(): Promise<void>;
|
|
44
|
-
didShowOverlay(): Promise<void>;
|
|
45
|
-
didHideOverlay(): Promise<void>;
|
|
46
78
|
currentEventDoesNotSupportKeyPlays(): void;
|
|
47
79
|
getCurrentEventID(): string;
|
|
48
80
|
getCurrentlyPlayingClipIndex(): number | null;
|
|
@@ -54,7 +86,6 @@ export declare class MaestroEventViewModel extends ViewModel implements IMaestro
|
|
|
54
86
|
get isLive(): Observable<boolean>;
|
|
55
87
|
get isShowingPanel(): boolean;
|
|
56
88
|
set isShowingPanel(value: boolean);
|
|
57
|
-
simulateUseCase<T = any>(useCase: TestUseCase, panelType: MaestroPanelType, testData?: T): void;
|
|
58
89
|
/**
|
|
59
90
|
* This method is called when the user navigates to the MaestroEventViewModel.
|
|
60
91
|
* It will pause navigation and start focus management.
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import { Observable } from '../helpers/Observable';
|
|
2
2
|
import { ViewModel } from './ViewModel';
|
|
3
|
-
import KeyPlaysViewModel from '../modules/key-plays/view-model/KeyPlaysViewModel';
|
|
4
|
-
import BetsViewModel from '../modules/bets/view-model/BetsViewModel';
|
|
5
3
|
import SpatialNavigation from '@/external/spatial-navigation/spatialNavigation';
|
|
6
|
-
import StatsViewModel from '../modules/stats/view-model/StatsViewModel';
|
|
7
4
|
import { UserSettingsManager } from '../services/UserSettingsManager';
|
|
8
5
|
import { PanelManagerViewModel } from './PanelManagerViewModel';
|
|
9
6
|
import SDK from '..';
|
|
10
7
|
import StaticService from '@/services/StaticService';
|
|
11
|
-
import FantasyViewModel from '@/modules/fantasy/view-model/FantasyViewModel';
|
|
12
|
-
import ShopViewModel from '@/modules/shop/view-model/ShopViewModel';
|
|
13
8
|
export class MaestroEventViewModel extends ViewModel {
|
|
14
|
-
constructor(eventId = '', delegate) {
|
|
9
|
+
constructor(eventId = '', pageId = '', delegate, analyticsService) {
|
|
15
10
|
super();
|
|
16
11
|
Object.defineProperty(this, "_eventId", {
|
|
17
12
|
enumerable: true,
|
|
@@ -19,6 +14,12 @@ export class MaestroEventViewModel extends ViewModel {
|
|
|
19
14
|
writable: true,
|
|
20
15
|
value: new Observable('')
|
|
21
16
|
});
|
|
17
|
+
Object.defineProperty(this, "_pageId", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
configurable: true,
|
|
20
|
+
writable: true,
|
|
21
|
+
value: new Observable('')
|
|
22
|
+
});
|
|
22
23
|
Object.defineProperty(this, "_title", {
|
|
23
24
|
enumerable: true,
|
|
24
25
|
configurable: true,
|
|
@@ -43,6 +44,12 @@ export class MaestroEventViewModel extends ViewModel {
|
|
|
43
44
|
writable: true,
|
|
44
45
|
value: null
|
|
45
46
|
});
|
|
47
|
+
Object.defineProperty(this, "analyticsService", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
configurable: true,
|
|
50
|
+
writable: true,
|
|
51
|
+
value: void 0
|
|
52
|
+
});
|
|
46
53
|
Object.defineProperty(this, "delegate", {
|
|
47
54
|
enumerable: true,
|
|
48
55
|
configurable: true,
|
|
@@ -53,31 +60,37 @@ export class MaestroEventViewModel extends ViewModel {
|
|
|
53
60
|
enumerable: true,
|
|
54
61
|
configurable: true,
|
|
55
62
|
writable: true,
|
|
56
|
-
value:
|
|
63
|
+
value: null
|
|
57
64
|
});
|
|
58
65
|
Object.defineProperty(this, "fantasyViewModel", {
|
|
59
66
|
enumerable: true,
|
|
60
67
|
configurable: true,
|
|
61
68
|
writable: true,
|
|
62
|
-
value:
|
|
69
|
+
value: null
|
|
63
70
|
});
|
|
64
71
|
Object.defineProperty(this, "betsViewModel", {
|
|
65
72
|
enumerable: true,
|
|
66
73
|
configurable: true,
|
|
67
74
|
writable: true,
|
|
68
|
-
value:
|
|
75
|
+
value: null
|
|
69
76
|
});
|
|
70
77
|
Object.defineProperty(this, "statsViewModel", {
|
|
71
78
|
enumerable: true,
|
|
72
79
|
configurable: true,
|
|
73
80
|
writable: true,
|
|
74
|
-
value:
|
|
81
|
+
value: null
|
|
75
82
|
});
|
|
76
83
|
Object.defineProperty(this, "shopViewModel", {
|
|
77
84
|
enumerable: true,
|
|
78
85
|
configurable: true,
|
|
79
86
|
writable: true,
|
|
80
|
-
value:
|
|
87
|
+
value: null
|
|
88
|
+
});
|
|
89
|
+
Object.defineProperty(this, "builderPanelViewModel", {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
configurable: true,
|
|
92
|
+
writable: true,
|
|
93
|
+
value: null
|
|
81
94
|
});
|
|
82
95
|
Object.defineProperty(this, "panelManagerViewModel", {
|
|
83
96
|
enumerable: true,
|
|
@@ -91,28 +104,103 @@ export class MaestroEventViewModel extends ViewModel {
|
|
|
91
104
|
writable: true,
|
|
92
105
|
value: void 0
|
|
93
106
|
});
|
|
107
|
+
this._pageId.value = pageId;
|
|
94
108
|
this._eventId.value = eventId;
|
|
95
109
|
this.delegate = delegate;
|
|
96
|
-
|
|
97
|
-
// Conditionally instantiate view models based on page configuration
|
|
98
|
-
this.keyPlaysViewModel = StaticService.isPanelAvailable(pageConfig, 'espnKeyPlays')
|
|
99
|
-
? new KeyPlaysViewModel()
|
|
100
|
-
: null;
|
|
101
|
-
this.betsViewModel = StaticService.isPanelAvailable(pageConfig, 'espnBet')
|
|
102
|
-
? new BetsViewModel(eventId, delegate)
|
|
103
|
-
: null;
|
|
104
|
-
this.statsViewModel = StaticService.isPanelAvailable(pageConfig, 'espnStats')
|
|
105
|
-
? new StatsViewModel(eventId, delegate)
|
|
106
|
-
: null;
|
|
107
|
-
this.fantasyViewModel = StaticService.isPanelAvailable(pageConfig, 'espnFantasy')
|
|
108
|
-
? new FantasyViewModel(eventId, delegate)
|
|
109
|
-
: null;
|
|
110
|
-
this.shopViewModel = StaticService.isPanelAvailable(pageConfig, 'espnShop')
|
|
111
|
-
? new ShopViewModel(eventId)
|
|
112
|
-
: null;
|
|
110
|
+
this.analyticsService = analyticsService;
|
|
113
111
|
this.panelManagerViewModel = new PanelManagerViewModel();
|
|
114
112
|
this.navigation = new SpatialNavigation();
|
|
115
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Initializes view models for enabled panels using dynamic imports (code splitting).
|
|
116
|
+
*
|
|
117
|
+
* This method lazily loads view model modules based on the page configuration,
|
|
118
|
+
* reducing initial bundle size by only loading modules for panels that are enabled.
|
|
119
|
+
*
|
|
120
|
+
* @remarks
|
|
121
|
+
* - Must be called after SDK configuration and before interacting with any view models
|
|
122
|
+
* - Typically invoked during `userDidStartWatchingEvent()` flow
|
|
123
|
+
* - Each view model is loaded in parallel for optimal performance
|
|
124
|
+
*
|
|
125
|
+
* @remarks Error Handling
|
|
126
|
+
* - Individual view model loading failures are caught and logged as warnings
|
|
127
|
+
* - Failed view models remain `null`, allowing other panels to function normally
|
|
128
|
+
* - The method resolves successfully even if some view models fail to load
|
|
129
|
+
* - Callers should check for `null` before using any view model property
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```typescript
|
|
133
|
+
* await maestroEventViewModel.initViewModels();
|
|
134
|
+
* // Check if view model loaded before use
|
|
135
|
+
* if (maestroEventViewModel.betsViewModel) {
|
|
136
|
+
* maestroEventViewModel.betsViewModel.startPolling();
|
|
137
|
+
* }
|
|
138
|
+
* ```
|
|
139
|
+
*
|
|
140
|
+
* @returns Promise that resolves when all view model loading attempts complete
|
|
141
|
+
*/
|
|
142
|
+
async initViewModels() {
|
|
143
|
+
const pageConfig = SDK.getPageConfig();
|
|
144
|
+
const loadPromises = [];
|
|
145
|
+
if (StaticService.isPanelAvailable(pageConfig, 'espnKeyPlays')) {
|
|
146
|
+
loadPromises.push(import('../modules/espn/key-plays/view-model/KeyPlaysViewModel')
|
|
147
|
+
.then(({ default: KeyPlaysViewModel }) => {
|
|
148
|
+
this.keyPlaysViewModel = new KeyPlaysViewModel(this.analyticsService);
|
|
149
|
+
})
|
|
150
|
+
.catch((err) => {
|
|
151
|
+
console.warn('Failed to load KeyPlaysViewModel:', err);
|
|
152
|
+
}));
|
|
153
|
+
}
|
|
154
|
+
if (StaticService.isPanelAvailable(pageConfig, 'espnBet')) {
|
|
155
|
+
loadPromises.push(import('../modules/espn/bets/view-model/BetsViewModel')
|
|
156
|
+
.then(({ default: BetsViewModel }) => {
|
|
157
|
+
this.betsViewModel = new BetsViewModel(this._eventId.value, this.delegate, this.analyticsService);
|
|
158
|
+
})
|
|
159
|
+
.catch((err) => {
|
|
160
|
+
console.warn('Failed to load BetsViewModel:', err);
|
|
161
|
+
}));
|
|
162
|
+
}
|
|
163
|
+
if (StaticService.isPanelAvailable(pageConfig, 'espnStats')) {
|
|
164
|
+
loadPromises.push(import('../modules/espn/stats/view-model/StatsViewModel')
|
|
165
|
+
.then(({ default: StatsViewModel }) => {
|
|
166
|
+
this.statsViewModel = new StatsViewModel(this._eventId.value, this.delegate, this.analyticsService);
|
|
167
|
+
})
|
|
168
|
+
.catch((err) => {
|
|
169
|
+
console.warn('Failed to load StatsViewModel:', err);
|
|
170
|
+
}));
|
|
171
|
+
}
|
|
172
|
+
if (StaticService.isPanelAvailable(pageConfig, 'espnFantasy')) {
|
|
173
|
+
loadPromises.push(import('@/modules/espn/fantasy/view-model/FantasyViewModel')
|
|
174
|
+
.then(({ default: FantasyViewModel }) => {
|
|
175
|
+
this.fantasyViewModel = new FantasyViewModel(this._eventId.value, this.delegate, this.analyticsService);
|
|
176
|
+
})
|
|
177
|
+
.catch((err) => {
|
|
178
|
+
console.warn('Failed to load FantasyViewModel:', err);
|
|
179
|
+
}));
|
|
180
|
+
}
|
|
181
|
+
if (StaticService.isPanelAvailable(pageConfig, 'espnShop')) {
|
|
182
|
+
loadPromises.push(import('@/modules/espn/shop/view-model/ShopViewModel')
|
|
183
|
+
.then(({ default: ShopViewModel }) => {
|
|
184
|
+
this.shopViewModel = new ShopViewModel(this._eventId.value, this.analyticsService);
|
|
185
|
+
})
|
|
186
|
+
.catch((err) => {
|
|
187
|
+
console.warn('Failed to load ShopViewModel:', err);
|
|
188
|
+
}));
|
|
189
|
+
}
|
|
190
|
+
if (StaticService.isPanelAvailable(pageConfig, 'builderBlockPanel')) {
|
|
191
|
+
const builderPanel = pageConfig?.panels?.find((p) => p.panel_type === 'builderBlockPanel');
|
|
192
|
+
if (builderPanel) {
|
|
193
|
+
loadPromises.push(import('@/modules/maestro/builder/view-model/BuilderPanelViewModel')
|
|
194
|
+
.then(({ BuilderPanelViewModel }) => {
|
|
195
|
+
this.builderPanelViewModel = new BuilderPanelViewModel(builderPanel, this.analyticsService);
|
|
196
|
+
})
|
|
197
|
+
.catch((err) => {
|
|
198
|
+
console.warn('Failed to load BuilderPanelViewModel:', err);
|
|
199
|
+
}));
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
await Promise.all(loadPromises);
|
|
203
|
+
}
|
|
116
204
|
setActivePanel(panelType) {
|
|
117
205
|
const index = this.panelManagerViewModel.getIndex(panelType);
|
|
118
206
|
if (index === null) {
|
|
@@ -149,6 +237,11 @@ export class MaestroEventViewModel extends ViewModel {
|
|
|
149
237
|
espnKeyPlays: this.keyPlaysViewModel,
|
|
150
238
|
espnFantasy: this.fantasyViewModel,
|
|
151
239
|
espnShop: this.shopViewModel,
|
|
240
|
+
builderBlockPanel: this.builderPanelViewModel,
|
|
241
|
+
foxKeyPlays: null,
|
|
242
|
+
foxMultiview: null,
|
|
243
|
+
foxStats: null,
|
|
244
|
+
helloWorld: null,
|
|
152
245
|
};
|
|
153
246
|
for (const panelType of panelTypes) {
|
|
154
247
|
const data = panelData[panelType];
|
|
@@ -161,7 +254,7 @@ export class MaestroEventViewModel extends ViewModel {
|
|
|
161
254
|
}
|
|
162
255
|
else {
|
|
163
256
|
// Panel exists, call its setDataToPanel method
|
|
164
|
-
if (
|
|
257
|
+
if (viewModel.setDataToPanel) {
|
|
165
258
|
viewModel.setDataToPanel(data);
|
|
166
259
|
}
|
|
167
260
|
}
|
|
@@ -172,6 +265,7 @@ export class MaestroEventViewModel extends ViewModel {
|
|
|
172
265
|
this.statsViewModel?.cleanup();
|
|
173
266
|
this.fantasyViewModel?.cleanup();
|
|
174
267
|
this.shopViewModel?.cleanup();
|
|
268
|
+
this.builderPanelViewModel?.cleanup();
|
|
175
269
|
this.navigation.destroy();
|
|
176
270
|
try {
|
|
177
271
|
await this.didHidePanel();
|
|
@@ -193,7 +287,7 @@ export class MaestroEventViewModel extends ViewModel {
|
|
|
193
287
|
});
|
|
194
288
|
}
|
|
195
289
|
startFocusManagement() {
|
|
196
|
-
this.navigation.setCurrentFocusedKey(this.navigation.focusKey || 'PANEL_NAV_BUTTON_0'
|
|
290
|
+
this.navigation.setCurrentFocusedKey(this.navigation.focusKey || 'PANEL_NAV_BUTTON_0');
|
|
197
291
|
setTimeout(() => {
|
|
198
292
|
this.navigation.resume();
|
|
199
293
|
}, 0);
|
|
@@ -230,12 +324,6 @@ export class MaestroEventViewModel extends ViewModel {
|
|
|
230
324
|
this.isShowingPanel = false;
|
|
231
325
|
this.navigation.focusKey = null;
|
|
232
326
|
}
|
|
233
|
-
didShowOverlay() {
|
|
234
|
-
throw new Error('Method not implemented.');
|
|
235
|
-
}
|
|
236
|
-
didHideOverlay() {
|
|
237
|
-
throw new Error('Method not implemented.');
|
|
238
|
-
}
|
|
239
327
|
currentEventDoesNotSupportKeyPlays() {
|
|
240
328
|
if (this.keyPlaysViewModel) {
|
|
241
329
|
this.keyPlaysViewModel.errorState.value = 'unsupportedEvent';
|
|
@@ -271,28 +359,6 @@ export class MaestroEventViewModel extends ViewModel {
|
|
|
271
359
|
set isShowingPanel(value) {
|
|
272
360
|
this._isShowingPanel.value = value;
|
|
273
361
|
}
|
|
274
|
-
simulateUseCase(useCase, panelType, testData) {
|
|
275
|
-
switch (panelType) {
|
|
276
|
-
case 'bets':
|
|
277
|
-
if (this.betsViewModel) {
|
|
278
|
-
this.betsViewModel.simulateUseCase(useCase, testData);
|
|
279
|
-
}
|
|
280
|
-
else {
|
|
281
|
-
console.warn('BetsViewModel is not initialized');
|
|
282
|
-
}
|
|
283
|
-
break;
|
|
284
|
-
case 'stats':
|
|
285
|
-
if (this.statsViewModel) {
|
|
286
|
-
this.statsViewModel.simulateUseCase(useCase, testData);
|
|
287
|
-
}
|
|
288
|
-
else {
|
|
289
|
-
console.warn('StatsViewModel is not initialized');
|
|
290
|
-
}
|
|
291
|
-
break;
|
|
292
|
-
default:
|
|
293
|
-
throw new Error(`Unsupported panel type: ${panelType}`);
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
362
|
/**
|
|
297
363
|
* This method is called when the user navigates to the MaestroEventViewModel.
|
|
298
364
|
* It will pause navigation and start focus management.
|
|
@@ -9,7 +9,6 @@ export declare class PanelManagerViewModel {
|
|
|
9
9
|
private _currentPanel;
|
|
10
10
|
private settingsManager;
|
|
11
11
|
private settingsUnsubscribe;
|
|
12
|
-
private readonly ALL_PANELS;
|
|
13
12
|
private getAvailablePanelsFromConfig;
|
|
14
13
|
constructor();
|
|
15
14
|
/**
|
|
@@ -43,4 +42,8 @@ export declare class PanelManagerViewModel {
|
|
|
43
42
|
getPanelType(atIndex: number): MaestroPanelType | null;
|
|
44
43
|
get panelTypeToLeft(): MaestroPanelType | null;
|
|
45
44
|
get panelTypeToRight(): MaestroPanelType | null;
|
|
45
|
+
/**
|
|
46
|
+
* @returns Array of PanelInfo for panels defined in config but not listed in MaestroPanelType
|
|
47
|
+
*/
|
|
48
|
+
getUnlistedPanels(): PanelInfo[];
|
|
46
49
|
}
|