@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.
Files changed (596) hide show
  1. package/dist/1.maestro-web-sdk.esm.js +1 -1
  2. package/dist/1.maestro-web-sdk.esm.js.map +1 -1
  3. package/dist/10.maestro-web-sdk.esm.js +1 -1
  4. package/dist/10.maestro-web-sdk.esm.js.map +1 -1
  5. package/dist/11.maestro-web-sdk.esm.js +1 -1
  6. package/dist/11.maestro-web-sdk.esm.js.map +1 -1
  7. package/dist/12.maestro-web-sdk.esm.js +1 -1
  8. package/dist/12.maestro-web-sdk.esm.js.map +1 -1
  9. package/dist/13.maestro-web-sdk.esm.js +1 -1
  10. package/dist/13.maestro-web-sdk.esm.js.map +1 -1
  11. package/dist/14.maestro-web-sdk.esm.js +1 -1
  12. package/dist/14.maestro-web-sdk.esm.js.map +1 -1
  13. package/dist/15.maestro-web-sdk.esm.js +1 -1
  14. package/dist/15.maestro-web-sdk.esm.js.map +1 -1
  15. package/dist/16.maestro-web-sdk.esm.js +1 -1
  16. package/dist/16.maestro-web-sdk.esm.js.map +1 -1
  17. package/dist/17.maestro-web-sdk.esm.js +1 -1
  18. package/dist/17.maestro-web-sdk.esm.js.map +1 -1
  19. package/dist/18.maestro-web-sdk.esm.js +1 -1
  20. package/dist/18.maestro-web-sdk.esm.js.map +1 -1
  21. package/dist/19.maestro-web-sdk.esm.js +1 -1
  22. package/dist/19.maestro-web-sdk.esm.js.map +1 -1
  23. package/dist/2.maestro-web-sdk.esm.js +1 -1
  24. package/dist/2.maestro-web-sdk.esm.js.map +1 -1
  25. package/dist/20.maestro-web-sdk.esm.js +1 -1
  26. package/dist/20.maestro-web-sdk.esm.js.map +1 -1
  27. package/dist/21.maestro-web-sdk.esm.js +1 -1
  28. package/dist/21.maestro-web-sdk.esm.js.map +1 -1
  29. package/dist/22.maestro-web-sdk.esm.js +1 -1
  30. package/dist/22.maestro-web-sdk.esm.js.map +1 -1
  31. package/dist/23.maestro-web-sdk.esm.js +1 -1
  32. package/dist/23.maestro-web-sdk.esm.js.map +1 -1
  33. package/dist/24.maestro-web-sdk.esm.js +1 -1
  34. package/dist/24.maestro-web-sdk.esm.js.map +1 -1
  35. package/dist/25.maestro-web-sdk.esm.js +2 -0
  36. package/dist/25.maestro-web-sdk.esm.js.map +1 -0
  37. package/dist/26.maestro-web-sdk.esm.js +2 -0
  38. package/dist/26.maestro-web-sdk.esm.js.map +1 -0
  39. package/dist/27.maestro-web-sdk.esm.js +2 -0
  40. package/dist/27.maestro-web-sdk.esm.js.map +1 -0
  41. package/dist/28.maestro-web-sdk.esm.js +2 -0
  42. package/dist/28.maestro-web-sdk.esm.js.map +1 -0
  43. package/dist/29.maestro-web-sdk.esm.js +2 -0
  44. package/dist/29.maestro-web-sdk.esm.js.map +1 -0
  45. package/dist/3.maestro-web-sdk.esm.js +1 -1
  46. package/dist/3.maestro-web-sdk.esm.js.map +1 -1
  47. package/dist/30.maestro-web-sdk.esm.js +2 -0
  48. package/dist/30.maestro-web-sdk.esm.js.map +1 -0
  49. package/dist/31.maestro-web-sdk.esm.js +2 -0
  50. package/dist/31.maestro-web-sdk.esm.js.map +1 -0
  51. package/dist/32.maestro-web-sdk.esm.js +2 -0
  52. package/dist/32.maestro-web-sdk.esm.js.map +1 -0
  53. package/dist/33.maestro-web-sdk.esm.js +2 -0
  54. package/dist/33.maestro-web-sdk.esm.js.map +1 -0
  55. package/dist/34.maestro-web-sdk.esm.js +2 -0
  56. package/dist/34.maestro-web-sdk.esm.js.map +1 -0
  57. package/dist/35.maestro-web-sdk.esm.js +2 -0
  58. package/dist/35.maestro-web-sdk.esm.js.map +1 -0
  59. package/dist/36.maestro-web-sdk.esm.js +2 -0
  60. package/dist/36.maestro-web-sdk.esm.js.map +1 -0
  61. package/dist/37.maestro-web-sdk.esm.js +2 -0
  62. package/dist/37.maestro-web-sdk.esm.js.map +1 -0
  63. package/dist/38.maestro-web-sdk.esm.js +2 -0
  64. package/dist/38.maestro-web-sdk.esm.js.map +1 -0
  65. package/dist/4.maestro-web-sdk.esm.js +1 -1
  66. package/dist/4.maestro-web-sdk.esm.js.map +1 -1
  67. package/dist/5.maestro-web-sdk.esm.js +1 -1
  68. package/dist/5.maestro-web-sdk.esm.js.map +1 -1
  69. package/dist/6.maestro-web-sdk.esm.js +1 -1
  70. package/dist/6.maestro-web-sdk.esm.js.map +1 -1
  71. package/dist/7.maestro-web-sdk.esm.js +1 -1
  72. package/dist/7.maestro-web-sdk.esm.js.map +1 -1
  73. package/dist/8.maestro-web-sdk.esm.js +1 -1
  74. package/dist/8.maestro-web-sdk.esm.js.map +1 -1
  75. package/dist/9.maestro-web-sdk.esm.js +1 -1
  76. package/dist/9.maestro-web-sdk.esm.js.map +1 -1
  77. package/dist/index.d.ts +233 -1144
  78. package/dist/maestro-web-sdk.esm.js +3 -32
  79. package/dist/maestro-web-sdk.esm.js.map +1 -1
  80. package/dist/maestro-web-sdk.umd.js +3 -32
  81. package/dist/maestro-web-sdk.umd.js.map +1 -1
  82. package/dist/package.json +7 -5
  83. package/dist/src/components/atoms/Rive/index.d.ts +4 -2
  84. package/dist/src/components/atoms/SvgIcon/BuilderIcon.d.ts +3 -0
  85. package/dist/src/components/atoms/SvgIcon/BuilderIcon.js +8 -0
  86. package/dist/src/components/atoms/SvgIcon/FoxKeyPlaysIcon.d.ts +3 -0
  87. package/dist/src/components/atoms/SvgIcon/FoxKeyPlaysIcon.js +7 -0
  88. package/dist/src/components/atoms/SvgIcon/FoxMultiViewIcon.d.ts +3 -0
  89. package/dist/src/components/atoms/SvgIcon/FoxMultiViewIcon.js +10 -0
  90. package/dist/src/components/atoms/SvgIcon/FoxStatsIcon.d.ts +3 -0
  91. package/dist/src/components/atoms/SvgIcon/FoxStatsIcon.js +7 -0
  92. package/dist/src/components/atoms/SvgIcon/Icon.d.ts +1 -25
  93. package/dist/src/components/atoms/SvgIcon/Icon.js +46 -22
  94. package/dist/src/components/core/PanelManager/PanelManager.js +28 -12
  95. package/dist/src/components/core/ScrollableContainer/FocusableItem.d.ts +7 -2
  96. package/dist/src/components/core/ScrollableContainer/FocusableItem.js +19 -33
  97. package/dist/src/components/core/ScrollableContainer/ScrollableContainer.d.ts +10 -34
  98. package/dist/src/components/core/ScrollableContainer/ScrollableContainer.js +89 -147
  99. package/dist/src/components/core/ScrollableContainer/index.d.ts +4 -0
  100. package/dist/src/components/core/ScrollableContainer/index.js +3 -0
  101. package/dist/src/components/core/ScrollableContainer/useScrollableContainer.d.ts +14 -0
  102. package/dist/src/components/core/ScrollableContainer/useScrollableContainer.js +22 -0
  103. package/dist/src/components/molecules/ActionButton/ActionButton.d.ts +4 -2
  104. package/dist/src/components/molecules/ActionButton/ActionButton.js +6 -1
  105. package/dist/src/components/molecules/HeadshotImage/HeadshotImage.js +1 -1
  106. package/dist/src/components/molecules/PanelNavButton/PanelNavButton.d.ts +4 -2
  107. package/dist/src/components/molecules/PanelNavButton/PanelNavButton.js +1 -1
  108. package/dist/src/components/molecules/TabLoadError/TabLoadError.d.ts +4 -2
  109. package/dist/src/components/organisms/SegmentController/SegmentController.d.ts +1 -19
  110. package/dist/src/components/organisms/SegmentController/SegmentController.js +31 -72
  111. package/dist/src/development/MaestroEventDelegate.js +1 -1
  112. package/dist/src/development/development.js +4 -1
  113. package/dist/src/external/ReactRenderer.js +5 -4
  114. package/dist/src/external/spatial-navigation/spatialNavigation.d.ts +13 -8
  115. package/dist/src/external/spatial-navigation/spatialNavigation.js +73 -5
  116. package/dist/src/external/spatial-navigation/utils.d.ts +2 -0
  117. package/dist/src/external/spatial-navigation/withFocusable.d.ts +10 -2
  118. package/dist/src/external/spatial-navigation/withFocusable.js +12 -3
  119. package/dist/src/hooks/useMaxHeightToBottom.d.ts +11 -0
  120. package/dist/src/hooks/useMaxHeightToBottom.js +48 -0
  121. package/dist/src/index.d.ts +10 -11
  122. package/dist/src/index.js +51 -19
  123. package/dist/src/interfaces/IMaestroEvent.d.ts +1 -19
  124. package/dist/src/interfaces/IMaestroEvent.js +0 -17
  125. package/dist/src/interfaces/IMaestroManager.d.ts +39 -3
  126. package/dist/src/models/IPanel.d.ts +10 -6
  127. package/dist/src/models/IPanel.js +10 -38
  128. package/dist/src/modules/espn/bets/interfaces/IBetsViewModel.d.ts +5 -0
  129. package/dist/src/{services → modules/espn/bets/services}/BetsService.d.ts +3 -3
  130. package/dist/src/{services → modules/espn/bets/services}/BetsService.js +4 -3
  131. package/dist/src/modules/{bets → espn/bets}/view/BetsView.d.ts +4 -2
  132. package/dist/src/modules/{bets → espn/bets}/view/BetsView.js +38 -12
  133. package/dist/src/modules/{bets → espn/bets}/view/HotProps/HotPropsView.d.ts +21 -18
  134. package/dist/src/modules/{bets → espn/bets}/view/HotProps/HotPropsView.js +17 -34
  135. package/dist/src/modules/espn/bets/view/SixPack/SixPackView.d.ts +9 -0
  136. package/dist/src/modules/{bets → espn/bets}/view/SixPack/SixPackView.js +19 -52
  137. package/dist/src/modules/{bets → espn/bets}/view/UserBets/BetsCard/BetsCard.d.ts +22 -19
  138. package/dist/src/modules/{bets → espn/bets}/view/UserBets/BetsCard/BetsCard.js +16 -25
  139. package/dist/src/modules/espn/bets/view/UserBets/BetsCard/BetsCardEvent.d.ts +16 -0
  140. package/dist/src/modules/espn/bets/view/UserBets/BetsCard/BetsCardEvent.js +8 -0
  141. package/dist/src/modules/{bets → espn/bets}/view/UserBets/BetsCard/BetsCardFooter.d.ts +1 -1
  142. package/dist/src/modules/{bets → espn/bets}/view/UserBets/BetsCard/BetsCardFooter.js +1 -1
  143. package/dist/src/modules/{bets → espn/bets}/view/UserBets/Boost/Boost.d.ts +1 -1
  144. package/dist/src/modules/{bets → espn/bets}/view/UserBets/Parlay/Parlay.d.ts +1 -1
  145. package/dist/src/modules/{bets → espn/bets}/view/UserBets/Straight/Straight.d.ts +1 -1
  146. package/dist/src/modules/{bets → espn/bets}/view/UserBets/Teaser/Teaser.d.ts +1 -1
  147. package/dist/src/modules/espn/bets/view/components/Bet/Bet.d.ts +10 -0
  148. package/dist/src/modules/{bets → espn/bets}/view/components/Bet/Bet.js +12 -3
  149. package/dist/src/modules/{bets → espn/bets}/view/components/BetsCard/BetsCard.d.ts +2 -2
  150. package/dist/src/modules/espn/bets/view/components/BetsCard/BetsCard.js +24 -0
  151. package/dist/src/modules/espn/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.d.ts +7 -0
  152. package/dist/src/modules/espn/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.js +31 -0
  153. package/dist/src/modules/espn/bets/view/components/GamblingDisclaimer/index.d.ts +1 -0
  154. package/dist/src/modules/espn/bets/view/components/GamblingDisclaimer/index.js +1 -0
  155. package/dist/src/modules/espn/bets/view/components/PromoCodeBanner/PromoCodeBanner.d.ts +5 -0
  156. package/dist/src/modules/espn/bets/view/components/PromoCodeBanner/PromoCodeBanner.js +45 -0
  157. package/dist/src/modules/{bets → espn/bets}/view-model/BetsViewModel.d.ts +4 -5
  158. package/dist/src/modules/{bets → espn/bets}/view-model/BetsViewModel.js +6 -33
  159. package/dist/src/modules/espn/fantasy/components/LeagueCard/LeagueCard.d.ts +104 -0
  160. package/dist/src/modules/espn/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +101 -0
  161. package/dist/src/modules/espn/fantasy/components/TournamentOverflowQR/TournamentOverflowQR.d.ts +103 -0
  162. package/dist/src/modules/espn/fantasy/components/TournamentOverflowQR/TournamentOverflowQR.js +94 -0
  163. package/dist/src/modules/espn/fantasy/components/TournamentOverflowQR/index.d.ts +1 -0
  164. package/dist/src/modules/espn/fantasy/components/TournamentOverflowQR/index.js +1 -0
  165. package/dist/src/{services → modules/espn/fantasy/services}/FantasyService.d.ts +27 -4
  166. package/dist/src/modules/espn/fantasy/services/FantasyService.js +124 -0
  167. package/dist/src/modules/{fantasy → espn/fantasy}/types.d.ts +118 -0
  168. package/dist/src/modules/{fantasy → espn/fantasy}/types.js +3 -0
  169. package/dist/src/modules/espn/fantasy/view/FantasyHeaderView.d.ts +8 -0
  170. package/dist/src/modules/espn/fantasy/view/FantasyHeaderView.js +8 -0
  171. package/dist/src/modules/espn/fantasy/view/FantasyItemView.d.ts +8 -0
  172. package/dist/src/modules/espn/fantasy/view/FantasyItemView.js +48 -0
  173. package/dist/src/modules/{fantasy → espn/fantasy}/view/FantasyView.d.ts +7 -0
  174. package/dist/src/modules/{fantasy → espn/fantasy}/view/FantasyView.js +86 -7
  175. package/dist/src/modules/espn/fantasy/view/InactiveLeague/InactiveLeague.d.ts +100 -0
  176. package/dist/src/modules/espn/fantasy/view/LoginView/LoginView.d.ts +96 -0
  177. package/dist/src/modules/espn/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts +97 -0
  178. package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/MatchupPair.d.ts +18 -16
  179. package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/MatchupSingle.d.ts +18 -16
  180. package/dist/src/modules/espn/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts +97 -0
  181. package/dist/src/modules/{fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts → espn/fantasy/view/PromoView/PromoView.d.ts} +30 -25
  182. package/dist/src/modules/{fantasy → espn/fantasy}/view/PromoView/PromoView.js +2 -2
  183. package/dist/src/modules/espn/fantasy/view/TournamentBracketCard/TournamentBracketCard.d.ts +101 -0
  184. package/dist/src/modules/{fantasy → espn/fantasy}/view/TournamentBracketCard/TournamentBracketCard.js +10 -6
  185. package/dist/src/modules/{fantasy → espn/fantasy}/view-model/FantasyViewModel.FantasyPolling.d.ts +1 -1
  186. package/dist/src/modules/{fantasy → espn/fantasy}/view-model/FantasyViewModel.LeagueManagerPolling.d.ts +1 -1
  187. package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.TournamentPolling.d.ts +32 -0
  188. package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.TournamentPolling.js +140 -0
  189. package/dist/src/modules/{fantasy → espn/fantasy}/view-model/FantasyViewModel.d.ts +22 -3
  190. package/dist/src/modules/{fantasy → espn/fantasy}/view-model/FantasyViewModel.js +310 -46
  191. package/dist/src/modules/espn/key-plays/interfaces/IKeyPlaysViewModel.d.ts +17 -0
  192. package/dist/src/modules/{key-plays → espn/key-plays}/view/KeyPlayCardView.d.ts +2 -14
  193. package/dist/src/modules/{key-plays → espn/key-plays}/view/KeyPlayCardView.js +18 -42
  194. package/dist/src/modules/{key-plays → espn/key-plays}/view/KeyPlayErrorStateView.js +13 -13
  195. package/dist/src/modules/{key-plays → espn/key-plays}/view/KeyPlaysView.d.ts +2 -0
  196. package/dist/src/modules/{key-plays → espn/key-plays}/view/KeyPlaysView.js +33 -5
  197. package/dist/src/modules/{key-plays → espn/key-plays}/view-model/KeyPlaysViewModel.d.ts +1 -1
  198. package/dist/src/modules/{key-plays → espn/key-plays}/view-model/KeyPlaysViewModel.js +2 -3
  199. package/dist/src/{services → modules/espn/shop/services}/ShopService.d.ts +3 -3
  200. package/dist/src/{services → modules/espn/shop/services}/ShopService.js +2 -4
  201. package/dist/src/modules/{shop → espn/shop}/types.d.ts +3 -0
  202. package/dist/src/modules/{shop → espn/shop}/view/ProductDetailView/ProductDetailView.d.ts +1 -0
  203. package/dist/src/modules/{shop → espn/shop}/view/ShopView.d.ts +3 -0
  204. package/dist/src/modules/{shop → espn/shop}/view/ShopView.js +45 -4
  205. package/dist/src/modules/espn/shop/view/components/BrowseCard/BrowseCard.d.ts +103 -0
  206. package/dist/src/modules/{shop → espn/shop}/view/components/BrowseCard/BrowseCard.js +1 -1
  207. package/dist/src/modules/{shop → espn/shop}/view/components/ProductSummaryCard/ProductSummaryCard.d.ts +18 -16
  208. package/dist/src/modules/{shop → espn/shop}/view/components/ShopPromoView/ShopPromoView.js +2 -2
  209. package/dist/src/modules/espn/shop/view/components/ShopSection/ShopSection.d.ts +12 -0
  210. package/dist/src/modules/espn/shop/view/components/ShopSection/ShopSection.js +34 -0
  211. package/dist/src/modules/{shop → espn/shop}/view-model/ShopViewModel.ShopPolling.d.ts +1 -1
  212. package/dist/src/modules/{shop → espn/shop}/view-model/ShopViewModel.d.ts +4 -8
  213. package/dist/src/modules/{shop → espn/shop}/view-model/ShopViewModel.js +5 -39
  214. package/dist/src/modules/{stats/utils/renderTeamStatistic.d.ts → espn/stats/components/TeamStatistic.d.ts} +2 -6
  215. package/dist/src/modules/{stats/utils/renderTeamStatistic.js → espn/stats/components/TeamStatistic.js} +4 -7
  216. package/dist/src/modules/{stats → espn/stats}/interfaces/IStats.d.ts +124 -20
  217. package/dist/src/modules/espn/stats/interfaces/IStats.js +46 -0
  218. package/dist/src/modules/espn/stats/interfaces/IStatsViewModel.d.ts +7 -0
  219. package/dist/src/modules/espn/stats/interfaces/IStatsViewModel.js +1 -0
  220. package/dist/src/{services → modules/espn/stats/services}/StatsService.d.ts +3 -3
  221. package/dist/src/{services → modules/espn/stats/services}/StatsService.js +5 -4
  222. package/dist/src/modules/{stats → espn/stats}/utils/playerStatusUtils.js +1 -0
  223. package/dist/src/modules/espn/stats/view/CareerMatchup/CareerMatchup.d.ts +101 -0
  224. package/dist/src/modules/{stats → espn/stats}/view/CareerMatchup/CareerMatchup.js +6 -6
  225. package/dist/src/modules/espn/stats/view/DriveSummary/DrivePlayCard.d.ts +105 -0
  226. package/dist/src/modules/espn/stats/view/DriveSummary/DrivePlayCard.js +32 -0
  227. package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/DriveSummary.d.ts +2 -9
  228. package/dist/src/modules/espn/stats/view/DriveSummary/DriveSummary.js +40 -0
  229. package/dist/src/modules/espn/stats/view/GameLeaders/GameLeaders.d.ts +9 -0
  230. package/dist/src/modules/espn/stats/view/GameLeaders/GameLeaders.js +22 -0
  231. package/dist/src/modules/{stats → espn/stats}/view/MatchPredictor/DonutChart/DonutChart.js +2 -2
  232. package/dist/src/modules/{fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts → espn/stats/view/MatchPredictor/MatchPredictorView.d.ts} +30 -25
  233. package/dist/src/modules/{stats → espn/stats}/view/Penalties/Penalties.js +1 -1
  234. package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/ExpandedPlayerStats.js +11 -8
  235. package/dist/src/modules/{stats/view/ScoringSummary/ScoreItem/ScoreItem.d.ts → espn/stats/view/PlayerSeasonStats/PlayerSeasonStatsCard.d.ts} +6 -5
  236. package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/PlayerSeasonStatsCard.js +2 -2
  237. package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/PlayerSeasonStatsMinified.js +1 -1
  238. package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/PlayerSeasonStatsView.js +1 -1
  239. package/dist/src/modules/{stats/view/components/AthletesStatistics/AthletesStatistics.d.ts → espn/stats/view/RecentGames/RecentGames.d.ts} +29 -42
  240. package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ExpandedScores/ExpandedScores.d.ts +1 -1
  241. package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/ExpandedSummary.d.ts +100 -0
  242. package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/ExpandedSummary.js +24 -0
  243. package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/index.d.ts +2 -0
  244. package/dist/src/modules/espn/stats/view/ScoringSummary/ExpandedScores/index.js +2 -0
  245. package/dist/src/modules/espn/stats/view/ScoringSummary/ScoreItem/ScoreItem.d.ts +100 -0
  246. package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ScoreItem/ScoreItem.js +1 -1
  247. package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ScoresSection/ScoresSection.d.ts +1 -1
  248. package/dist/src/modules/espn/stats/view/ScoringSummary/ScoringSummary.d.ts +12 -0
  249. package/dist/src/modules/espn/stats/view/ScoringSummary/ScoringSummary.js +167 -0
  250. package/dist/src/modules/espn/stats/view/ScoringSummary/index.d.ts +1 -0
  251. package/dist/src/modules/espn/stats/view/ScoringSummary/index.js +1 -0
  252. package/dist/src/modules/espn/stats/view/StatsItemView.d.ts +8 -0
  253. package/dist/src/modules/espn/stats/view/StatsItemView.js +66 -0
  254. package/dist/src/modules/espn/stats/view/StatsQRCode/StatsQRCodeView.d.ts +100 -0
  255. package/dist/src/modules/{stats → espn/stats}/view/StatsView.d.ts +2 -0
  256. package/dist/src/modules/{stats → espn/stats}/view/StatsView.js +31 -4
  257. package/dist/src/modules/{stats → espn/stats}/view/TeamStats/TeamStatsView.d.ts +29 -26
  258. package/dist/src/modules/espn/stats/view/TeamStats/TeamStatsView.js +77 -0
  259. package/dist/src/modules/espn/stats/view/Teams/Teams.d.ts +100 -0
  260. package/dist/src/modules/{stats → espn/stats}/view/Teams/Teams.js +15 -19
  261. package/dist/src/modules/espn/stats/view/WinProbability/WinProbability.d.ts +100 -0
  262. package/dist/src/modules/{stats → espn/stats}/view/WinProbability/WinProbability.js +1 -1
  263. package/dist/src/modules/espn/stats/view/components/AthletesStatistics/AthletesStatistics.d.ts +115 -0
  264. package/dist/src/modules/{stats → espn/stats}/view/components/AthletesStatistics/AthletesStatistics.js +1 -1
  265. package/dist/src/modules/{stats → espn/stats}/view-model/StatsViewModel.d.ts +101 -20
  266. package/dist/src/modules/{stats → espn/stats}/view-model/StatsViewModel.js +527 -100
  267. package/dist/src/modules/fox/key-plays/view/FoxKeyPlays.d.ts +2 -0
  268. package/dist/src/modules/fox/key-plays/view/FoxKeyPlays.js +5 -0
  269. package/dist/src/modules/fox/multi-view/view/FoxMultiView.d.ts +2 -0
  270. package/dist/src/modules/fox/multi-view/view/FoxMultiView.js +5 -0
  271. package/dist/src/modules/fox/stats/view/FoxStatsView.d.ts +2 -0
  272. package/dist/src/modules/fox/stats/view/FoxStatsView.js +5 -0
  273. package/dist/src/modules/maestro/builder/components/BuilderSection/BuilderSection.d.ts +11 -0
  274. package/dist/src/modules/maestro/builder/components/BuilderSection/BuilderSection.js +52 -0
  275. package/dist/src/modules/maestro/builder/components/BuilderSection/index.d.ts +2 -0
  276. package/dist/src/modules/maestro/builder/components/BuilderSection/index.js +2 -0
  277. package/dist/src/modules/maestro/builder/components/ExpandableCard/ExpandableCard.d.ts +110 -0
  278. package/dist/src/modules/maestro/builder/components/ExpandableCard/ExpandableCard.js +37 -0
  279. package/dist/src/modules/maestro/builder/components/ExpandableCard/index.d.ts +2 -0
  280. package/dist/src/modules/maestro/builder/components/ExpandableCard/index.js +2 -0
  281. package/dist/src/modules/{shop/view/components/BrowseCard/BrowseCard.d.ts → maestro/builder/components/SimpleCard/SimpleCard.d.ts} +32 -29
  282. package/dist/src/modules/maestro/builder/components/SimpleCard/SimpleCard.js +12 -0
  283. package/dist/src/modules/maestro/builder/components/SimpleCard/index.d.ts +2 -0
  284. package/dist/src/modules/maestro/builder/components/SimpleCard/index.js +2 -0
  285. package/dist/src/modules/maestro/builder/index.d.ts +7 -0
  286. package/dist/src/modules/maestro/builder/index.js +7 -0
  287. package/dist/src/modules/maestro/builder/mocks/mockBuilderPanel.d.ts +149 -0
  288. package/dist/src/modules/maestro/builder/mocks/mockBuilderPanel.js +240 -0
  289. package/dist/src/modules/maestro/builder/types.d.ts +52 -0
  290. package/dist/src/modules/maestro/builder/types.js +1 -0
  291. package/dist/src/modules/maestro/builder/view/BuilderPanelView.d.ts +4 -0
  292. package/dist/src/modules/maestro/builder/view/BuilderPanelView.js +52 -0
  293. package/dist/src/modules/maestro/builder/view-model/BuilderPanelViewModel.d.ts +40 -0
  294. package/dist/src/modules/maestro/builder/view-model/BuilderPanelViewModel.js +229 -0
  295. package/dist/src/modules/maestro/builder/view-model/index.d.ts +1 -0
  296. package/dist/src/modules/maestro/builder/view-model/index.js +1 -0
  297. package/dist/src/sentry.d.ts +1 -1
  298. package/dist/src/sentry.js +41 -21
  299. package/dist/src/services/AnalyticsService/AnalyticsService.d.ts +3 -2
  300. package/dist/src/services/AnalyticsService/AnalyticsService.js +3 -1
  301. package/dist/src/services/InsightsService/InsightsPayloadBuilder.d.ts +1 -1
  302. package/dist/src/services/InsightsService/InsightsPayloadBuilder.js +1 -2
  303. package/dist/src/services/InsightsService/InsightsService.js +1 -1
  304. package/dist/src/services/NetworkManager/NetworkManager.d.ts +6 -0
  305. package/dist/src/services/NetworkManager/NetworkManager.js +39 -62
  306. package/dist/src/services/NetworkManager/types.d.ts +0 -96
  307. package/dist/src/services/NetworkManager/types.js +1 -10
  308. package/dist/src/services/StaticService/StaticService.d.ts +10 -2
  309. package/dist/src/services/StaticService/StaticService.js +32 -7
  310. package/dist/src/services/StaticService/mocks.d.ts +1 -0
  311. package/dist/src/services/StaticService/mocks.js +114 -99
  312. package/dist/src/services/StaticService/types.d.ts +3 -1
  313. package/dist/src/services/UserSettingsManager.js +9 -6
  314. package/dist/src/view-models/MaestroEventViewModel.d.ts +47 -16
  315. package/dist/src/view-models/MaestroEventViewModel.js +124 -58
  316. package/dist/src/view-models/PanelManagerViewModel.d.ts +4 -1
  317. package/dist/src/view-models/PanelManagerViewModel.js +41 -58
  318. package/package.json +7 -5
  319. package/dist/1.maestro-web-sdk.umd.js +0 -2
  320. package/dist/1.maestro-web-sdk.umd.js.map +0 -1
  321. package/dist/10.maestro-web-sdk.umd.js +0 -2
  322. package/dist/10.maestro-web-sdk.umd.js.map +0 -1
  323. package/dist/11.maestro-web-sdk.umd.js +0 -2
  324. package/dist/11.maestro-web-sdk.umd.js.map +0 -1
  325. package/dist/12.maestro-web-sdk.umd.js +0 -2
  326. package/dist/12.maestro-web-sdk.umd.js.map +0 -1
  327. package/dist/13.maestro-web-sdk.umd.js +0 -2
  328. package/dist/13.maestro-web-sdk.umd.js.map +0 -1
  329. package/dist/14.maestro-web-sdk.umd.js +0 -2
  330. package/dist/14.maestro-web-sdk.umd.js.map +0 -1
  331. package/dist/15.maestro-web-sdk.umd.js +0 -2
  332. package/dist/15.maestro-web-sdk.umd.js.map +0 -1
  333. package/dist/16.maestro-web-sdk.umd.js +0 -2
  334. package/dist/16.maestro-web-sdk.umd.js.map +0 -1
  335. package/dist/17.maestro-web-sdk.umd.js +0 -2
  336. package/dist/17.maestro-web-sdk.umd.js.map +0 -1
  337. package/dist/18.maestro-web-sdk.umd.js +0 -2
  338. package/dist/18.maestro-web-sdk.umd.js.map +0 -1
  339. package/dist/19.maestro-web-sdk.umd.js +0 -2
  340. package/dist/19.maestro-web-sdk.umd.js.map +0 -1
  341. package/dist/2.maestro-web-sdk.umd.js +0 -2
  342. package/dist/2.maestro-web-sdk.umd.js.map +0 -1
  343. package/dist/20.maestro-web-sdk.umd.js +0 -2
  344. package/dist/20.maestro-web-sdk.umd.js.map +0 -1
  345. package/dist/21.maestro-web-sdk.umd.js +0 -2
  346. package/dist/21.maestro-web-sdk.umd.js.map +0 -1
  347. package/dist/22.maestro-web-sdk.umd.js +0 -2
  348. package/dist/22.maestro-web-sdk.umd.js.map +0 -1
  349. package/dist/23.maestro-web-sdk.umd.js +0 -2
  350. package/dist/23.maestro-web-sdk.umd.js.map +0 -1
  351. package/dist/24.maestro-web-sdk.umd.js +0 -2
  352. package/dist/24.maestro-web-sdk.umd.js.map +0 -1
  353. package/dist/3.maestro-web-sdk.umd.js +0 -2
  354. package/dist/3.maestro-web-sdk.umd.js.map +0 -1
  355. package/dist/4.maestro-web-sdk.umd.js +0 -2
  356. package/dist/4.maestro-web-sdk.umd.js.map +0 -1
  357. package/dist/5.maestro-web-sdk.umd.js +0 -2
  358. package/dist/5.maestro-web-sdk.umd.js.map +0 -1
  359. package/dist/6.maestro-web-sdk.umd.js +0 -2
  360. package/dist/6.maestro-web-sdk.umd.js.map +0 -1
  361. package/dist/7.maestro-web-sdk.umd.js +0 -2
  362. package/dist/7.maestro-web-sdk.umd.js.map +0 -1
  363. package/dist/8.maestro-web-sdk.umd.js +0 -2
  364. package/dist/8.maestro-web-sdk.umd.js.map +0 -1
  365. package/dist/9.maestro-web-sdk.umd.js +0 -2
  366. package/dist/9.maestro-web-sdk.umd.js.map +0 -1
  367. package/dist/bundle-report.html +0 -53
  368. package/dist/src/components/molecules/Overlay/Overlay.d.ts +0 -34
  369. package/dist/src/components/molecules/Overlay/Overlay.js +0 -139
  370. package/dist/src/components/molecules/Overlay/index.d.ts +0 -2
  371. package/dist/src/components/molecules/Overlay/index.js +0 -2
  372. package/dist/src/models/IWinningBet.d.ts +0 -7
  373. package/dist/src/modules/bets/view/SixPack/SixPackView.d.ts +0 -23
  374. package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardEvent.d.ts +0 -26
  375. package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardEvent.js +0 -34
  376. package/dist/src/modules/bets/view/components/Bet/Bet.d.ts +0 -158
  377. package/dist/src/modules/bets/view/components/BetsCard/BetsCard.js +0 -15
  378. package/dist/src/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.d.ts +0 -8
  379. package/dist/src/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.js +0 -14
  380. package/dist/src/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.d.ts +0 -18
  381. package/dist/src/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.js +0 -78
  382. package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.d.ts +0 -102
  383. package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +0 -99
  384. package/dist/src/modules/fantasy/view/FantasyItemView.d.ts +0 -22
  385. package/dist/src/modules/fantasy/view/FantasyItemView.js +0 -74
  386. package/dist/src/modules/fantasy/view/InactiveLeague/InactiveLeague.d.ts +0 -98
  387. package/dist/src/modules/fantasy/view/LoginView/LoginView.d.ts +0 -94
  388. package/dist/src/modules/fantasy/view/PromoView/PromoView.d.ts +0 -98
  389. package/dist/src/modules/fantasy/view/TournamentBracketCard/TournamentBracketCard.d.ts +0 -99
  390. package/dist/src/modules/shop/view/components/ShopSection/ShopSection.d.ts +0 -23
  391. package/dist/src/modules/shop/view/components/ShopSection/ShopSection.js +0 -61
  392. package/dist/src/modules/stats/view/CareerMatchup/CareerMatchup.d.ts +0 -100
  393. package/dist/src/modules/stats/view/DriveSummary/DrivePlayCard.d.ts +0 -106
  394. package/dist/src/modules/stats/view/DriveSummary/DrivePlayCard.js +0 -70
  395. package/dist/src/modules/stats/view/DriveSummary/DriveSummary.js +0 -87
  396. package/dist/src/modules/stats/view/GameLeaders/GameLeaders.d.ts +0 -21
  397. package/dist/src/modules/stats/view/GameLeaders/GameLeaders.js +0 -48
  398. package/dist/src/modules/stats/view/MatchPredictor/MatchPredictorView.d.ts +0 -98
  399. package/dist/src/modules/stats/view/PlayerSeasonStats/PlayerSeasonStatsCard.d.ts +0 -97
  400. package/dist/src/modules/stats/view/RecentGames/RecentGames.d.ts +0 -98
  401. package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/index.d.ts +0 -2
  402. package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/index.js +0 -2
  403. package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.d.ts +0 -29
  404. package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.js +0 -125
  405. package/dist/src/modules/stats/view/ScoringSummary/index.d.ts +0 -2
  406. package/dist/src/modules/stats/view/ScoringSummary/index.js +0 -2
  407. package/dist/src/modules/stats/view/StatsItemView.d.ts +0 -22
  408. package/dist/src/modules/stats/view/StatsItemView.js +0 -92
  409. package/dist/src/modules/stats/view/StatsQRCode/StatsQRCodeView.d.ts +0 -98
  410. package/dist/src/modules/stats/view/TeamStats/TeamStatsView.js +0 -43
  411. package/dist/src/modules/stats/view/Teams/Teams.d.ts +0 -98
  412. package/dist/src/modules/stats/view/WinProbability/WinProbability.d.ts +0 -98
  413. package/dist/src/services/FantasyService.js +0 -92
  414. package/dist/src/services/NetworkManager/NetworkManagerFactory.d.ts +0 -42
  415. package/dist/src/services/NetworkManager/NetworkManagerFactory.js +0 -101
  416. package/dist/src/types/OverlayTypes.d.ts +0 -43
  417. package/dist/src/types/OverlayTypes.js +0 -4
  418. package/dist/src/view-models/OverlayViewModel.d.ts +0 -33
  419. package/dist/src/view-models/OverlayViewModel.js +0 -222
  420. /package/dist/src/modules/{bets → espn/bets}/interfaces/IBets.d.ts +0 -0
  421. /package/dist/src/modules/{bets → espn/bets}/interfaces/IBets.js +0 -0
  422. /package/dist/src/{models/IWinningBet.js → modules/espn/bets/interfaces/IBetsViewModel.js} +0 -0
  423. /package/dist/src/modules/{bets → espn/bets}/mocks.d.ts +0 -0
  424. /package/dist/src/modules/{bets → espn/bets}/mocks.js +0 -0
  425. /package/dist/src/modules/{bets → espn/bets}/types/BetsAnalyticsTypes.d.ts +0 -0
  426. /package/dist/src/modules/{bets → espn/bets}/types/BetsAnalyticsTypes.js +0 -0
  427. /package/dist/src/modules/{bets → espn/bets}/view/UserBets/BetResult/BetResult.d.ts +0 -0
  428. /package/dist/src/modules/{bets → espn/bets}/view/UserBets/BetResult/BetResult.js +0 -0
  429. /package/dist/src/modules/{bets → espn/bets}/view/UserBets/Boost/Boost.js +0 -0
  430. /package/dist/src/modules/{bets → espn/bets}/view/UserBets/OutcomeBadge/OutcomeBadge.d.ts +0 -0
  431. /package/dist/src/modules/{bets → espn/bets}/view/UserBets/OutcomeBadge/OutcomeBadge.js +0 -0
  432. /package/dist/src/modules/{bets → espn/bets}/view/UserBets/Parlay/Parlay.js +0 -0
  433. /package/dist/src/modules/{bets → espn/bets}/view/UserBets/Straight/Straight.js +0 -0
  434. /package/dist/src/modules/{bets → espn/bets}/view/UserBets/Teaser/Teaser.js +0 -0
  435. /package/dist/src/modules/{bets → espn/bets}/view/UserBets/UserBetsView.d.ts +0 -0
  436. /package/dist/src/modules/{bets → espn/bets}/view/UserBets/UserBetsView.js +0 -0
  437. /package/dist/src/modules/{bets → espn/bets}/view/components/BetPill/BetPill.d.ts +0 -0
  438. /package/dist/src/modules/{bets → espn/bets}/view/components/BetPill/BetPill.js +0 -0
  439. /package/dist/src/modules/{bets → espn/bets}/view/components/BetsCard/BetsCardHeader.d.ts +0 -0
  440. /package/dist/src/modules/{bets → espn/bets}/view/components/BetsCard/BetsCardHeader.js +0 -0
  441. /package/dist/src/modules/{bets → espn/bets}/view/components/LocationWarning/LocationWarning.d.ts +0 -0
  442. /package/dist/src/modules/{bets → espn/bets}/view/components/LocationWarning/LocationWarning.js +0 -0
  443. /package/dist/src/modules/{bets → espn/bets}/view/components/PromoCodeBanner/index.d.ts +0 -0
  444. /package/dist/src/modules/{bets → espn/bets}/view/components/PromoCodeBanner/index.js +0 -0
  445. /package/dist/src/modules/{fantasy → espn/fantasy}/components/ExpandedAthleteList/ExpandedAthletesList.d.ts +0 -0
  446. /package/dist/src/modules/{fantasy → espn/fantasy}/components/ExpandedAthleteList/ExpandedAthletesList.js +0 -0
  447. /package/dist/src/modules/{fantasy → espn/fantasy}/components/ExpandedAthleteList/index.d.ts +0 -0
  448. /package/dist/src/modules/{fantasy → espn/fantasy}/components/ExpandedAthleteList/index.js +0 -0
  449. /package/dist/src/modules/{fantasy → espn/fantasy}/components/LeagueCard/LeagueCard.js +0 -0
  450. /package/dist/src/modules/{fantasy → espn/fantasy}/components/LeagueCard/index.d.ts +0 -0
  451. /package/dist/src/modules/{fantasy → espn/fantasy}/components/LeagueCard/index.js +0 -0
  452. /package/dist/src/modules/{fantasy → espn/fantasy}/components/TopPlayerCard/TopPlayerCard.js +0 -0
  453. /package/dist/src/modules/{fantasy → espn/fantasy}/components/TopPlayerCard/index.d.ts +0 -0
  454. /package/dist/src/modules/{fantasy → espn/fantasy}/components/TopPlayerCard/index.js +0 -0
  455. /package/dist/src/modules/{fantasy → espn/fantasy}/mocks.d.ts +0 -0
  456. /package/dist/src/modules/{fantasy → espn/fantasy}/mocks.js +0 -0
  457. /package/dist/src/modules/{fantasy → espn/fantasy}/view/ActiveAthletesMarquee/ActiveAthletesMarquee.d.ts +0 -0
  458. /package/dist/src/modules/{fantasy → espn/fantasy}/view/ActiveAthletesMarquee/ActiveAthletesMarquee.js +0 -0
  459. /package/dist/src/modules/{fantasy → espn/fantasy}/view/ActiveAthletesMarquee/index.d.ts +0 -0
  460. /package/dist/src/modules/{fantasy → espn/fantasy}/view/ActiveAthletesMarquee/index.js +0 -0
  461. /package/dist/src/modules/{fantasy → espn/fantasy}/view/InactiveLeague/DraftDateCountdown.d.ts +0 -0
  462. /package/dist/src/modules/{fantasy → espn/fantasy}/view/InactiveLeague/DraftDateCountdown.js +0 -0
  463. /package/dist/src/modules/{fantasy → espn/fantasy}/view/InactiveLeague/InactiveLeague.js +0 -0
  464. /package/dist/src/modules/{fantasy → espn/fantasy}/view/InactiveLeague/index.d.ts +0 -0
  465. /package/dist/src/modules/{fantasy → espn/fantasy}/view/InactiveLeague/index.js +0 -0
  466. /package/dist/src/modules/{fantasy → espn/fantasy}/view/LoginView/LoginView.js +0 -0
  467. /package/dist/src/modules/{fantasy → espn/fantasy}/view/LoginView/index.d.ts +0 -0
  468. /package/dist/src/modules/{fantasy → espn/fantasy}/view/LoginView/index.js +0 -0
  469. /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.js +0 -0
  470. /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/DoubleAthleteCard/index.d.ts +0 -0
  471. /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/DoubleAthleteCard/index.js +0 -0
  472. /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/ExpandedDoubleAthleteCards.d.ts +0 -0
  473. /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/ExpandedDoubleAthleteCards.js +0 -0
  474. /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/MatchupPair.js +0 -0
  475. /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/index.d.ts +0 -0
  476. /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupPair/index.js +0 -0
  477. /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/ExpandedSingleAthleteCards.d.ts +0 -0
  478. /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/ExpandedSingleAthleteCards.js +0 -0
  479. /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/MatchupSingle.js +0 -0
  480. /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.js +0 -0
  481. /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/SingleAthleteCard/index.d.ts +0 -0
  482. /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/SingleAthleteCard/index.js +0 -0
  483. /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/index.d.ts +0 -0
  484. /package/dist/src/modules/{fantasy → espn/fantasy}/view/MatchupSingle/index.js +0 -0
  485. /package/dist/src/modules/{fantasy → espn/fantasy}/view/PromoView/index.d.ts +0 -0
  486. /package/dist/src/modules/{fantasy → espn/fantasy}/view/PromoView/index.js +0 -0
  487. /package/dist/src/modules/{fantasy → espn/fantasy}/view/TournamentBracketCard/index.d.ts +0 -0
  488. /package/dist/src/modules/{fantasy → espn/fantasy}/view/TournamentBracketCard/index.js +0 -0
  489. /package/dist/src/modules/{fantasy → espn/fantasy}/view/index.d.ts +0 -0
  490. /package/dist/src/modules/{fantasy → espn/fantasy}/view/index.js +0 -0
  491. /package/dist/src/modules/{fantasy → espn/fantasy}/view-model/FantasyViewModel.FantasyPolling.js +0 -0
  492. /package/dist/src/modules/{fantasy → espn/fantasy}/view-model/FantasyViewModel.LeagueManagerPolling.js +0 -0
  493. /package/dist/src/modules/{key-plays → espn/key-plays}/constants.d.ts +0 -0
  494. /package/dist/src/modules/{key-plays → espn/key-plays}/constants.js +0 -0
  495. /package/dist/src/modules/{key-plays → espn/key-plays}/interfaces/IKeyPlays.d.ts +0 -0
  496. /package/dist/src/modules/{key-plays → espn/key-plays}/interfaces/IKeyPlays.js +0 -0
  497. /package/dist/src/modules/{key-plays → espn/key-plays}/interfaces/IKeyPlaysResponse.d.ts +0 -0
  498. /package/dist/src/modules/{key-plays → espn/key-plays}/interfaces/IKeyPlaysResponse.js +0 -0
  499. /package/dist/src/modules/{stats/interfaces/IStats.js → espn/key-plays/interfaces/IKeyPlaysViewModel.js} +0 -0
  500. /package/dist/src/modules/{key-plays → espn/key-plays}/view/KeyPlayCardScoreTagView.d.ts +0 -0
  501. /package/dist/src/modules/{key-plays → espn/key-plays}/view/KeyPlayCardScoreTagView.js +0 -0
  502. /package/dist/src/modules/{key-plays → espn/key-plays}/view/KeyPlayErrorStateView.d.ts +0 -0
  503. /package/dist/src/modules/{shop → espn/shop}/mocks.d.ts +0 -0
  504. /package/dist/src/modules/{shop → espn/shop}/mocks.js +0 -0
  505. /package/dist/src/modules/{shop → espn/shop}/types.js +0 -0
  506. /package/dist/src/modules/{shop → espn/shop}/view/ProductDetailView/ProductDetailView.js +0 -0
  507. /package/dist/src/modules/{shop → espn/shop}/view/ProductDetailView/index.d.ts +0 -0
  508. /package/dist/src/modules/{shop → espn/shop}/view/ProductDetailView/index.js +0 -0
  509. /package/dist/src/modules/{shop → espn/shop}/view/components/BrowseCard/index.d.ts +0 -0
  510. /package/dist/src/modules/{shop → espn/shop}/view/components/BrowseCard/index.js +0 -0
  511. /package/dist/src/modules/{shop → espn/shop}/view/components/ProductSummaryCard/ProductSummaryCard.js +0 -0
  512. /package/dist/src/modules/{shop → espn/shop}/view/components/ProductSummaryCard/index.d.ts +0 -0
  513. /package/dist/src/modules/{shop → espn/shop}/view/components/ProductSummaryCard/index.js +0 -0
  514. /package/dist/src/modules/{shop → espn/shop}/view/components/ShopPromoView/ShopPromoView.d.ts +0 -0
  515. /package/dist/src/modules/{shop → espn/shop}/view/components/ShopPromoView/index.d.ts +0 -0
  516. /package/dist/src/modules/{shop → espn/shop}/view/components/ShopPromoView/index.js +0 -0
  517. /package/dist/src/modules/{shop → espn/shop}/view/components/ShopSection/index.d.ts +0 -0
  518. /package/dist/src/modules/{shop → espn/shop}/view/components/ShopSection/index.js +0 -0
  519. /package/dist/src/modules/{shop → espn/shop}/view/index.d.ts +0 -0
  520. /package/dist/src/modules/{shop → espn/shop}/view/index.js +0 -0
  521. /package/dist/src/modules/{shop → espn/shop}/view-model/ShopViewModel.ShopPolling.js +0 -0
  522. /package/dist/src/modules/{stats → espn/stats}/mocks.d.ts +0 -0
  523. /package/dist/src/modules/{stats → espn/stats}/mocks.js +0 -0
  524. /package/dist/src/modules/{stats → espn/stats}/utils/driveSummaryUtils.d.ts +0 -0
  525. /package/dist/src/modules/{stats → espn/stats}/utils/driveSummaryUtils.js +0 -0
  526. /package/dist/src/modules/{stats → espn/stats}/utils/playerStatusUtils.d.ts +0 -0
  527. /package/dist/src/modules/{stats → espn/stats}/utils.d.ts +0 -0
  528. /package/dist/src/modules/{stats → espn/stats}/utils.js +0 -0
  529. /package/dist/src/modules/{stats → espn/stats}/view/ActiveAthletes/ActiveAthletes.d.ts +0 -0
  530. /package/dist/src/modules/{stats → espn/stats}/view/ActiveAthletes/ActiveAthletes.js +0 -0
  531. /package/dist/src/modules/{stats → espn/stats}/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.d.ts +0 -0
  532. /package/dist/src/modules/{stats → espn/stats}/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.js +0 -0
  533. /package/dist/src/modules/{stats → espn/stats}/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.d.ts +0 -0
  534. /package/dist/src/modules/{stats → espn/stats}/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.js +0 -0
  535. /package/dist/src/modules/{stats → espn/stats}/view/ActiveAthletes/index.d.ts +0 -0
  536. /package/dist/src/modules/{stats → espn/stats}/view/ActiveAthletes/index.js +0 -0
  537. /package/dist/src/modules/{stats → espn/stats}/view/CareerMatchup/index.d.ts +0 -0
  538. /package/dist/src/modules/{stats → espn/stats}/view/CareerMatchup/index.js +0 -0
  539. /package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.d.ts +0 -0
  540. /package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.js +0 -0
  541. /package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/Header/DriveSummaryHeader.d.ts +0 -0
  542. /package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/Header/DriveSummaryHeader.js +0 -0
  543. /package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/MainStat/MainStat.d.ts +0 -0
  544. /package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/MainStat/MainStat.js +0 -0
  545. /package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/index.d.ts +0 -0
  546. /package/dist/src/modules/{stats → espn/stats}/view/DriveSummary/index.js +0 -0
  547. /package/dist/src/modules/{stats → espn/stats}/view/GameLeaders/index.d.ts +0 -0
  548. /package/dist/src/modules/{stats → espn/stats}/view/GameLeaders/index.js +0 -0
  549. /package/dist/src/modules/{stats → espn/stats}/view/MatchPredictor/DonutChart/DonutChart.d.ts +0 -0
  550. /package/dist/src/modules/{stats → espn/stats}/view/MatchPredictor/DonutChart/index.d.ts +0 -0
  551. /package/dist/src/modules/{stats → espn/stats}/view/MatchPredictor/DonutChart/index.js +0 -0
  552. /package/dist/src/modules/{stats → espn/stats}/view/MatchPredictor/MatchPredictorView.js +0 -0
  553. /package/dist/src/modules/{stats → espn/stats}/view/MatchPredictor/index.d.ts +0 -0
  554. /package/dist/src/modules/{stats → espn/stats}/view/MatchPredictor/index.js +0 -0
  555. /package/dist/src/modules/{stats → espn/stats}/view/Penalties/Penalties.d.ts +0 -0
  556. /package/dist/src/modules/{stats → espn/stats}/view/Penalties/index.d.ts +0 -0
  557. /package/dist/src/modules/{stats → espn/stats}/view/Penalties/index.js +0 -0
  558. /package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/ExpandedPlayerStats.d.ts +0 -0
  559. /package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/PlayerSeasonStatsMinified.d.ts +0 -0
  560. /package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/PlayerSeasonStatsView.d.ts +0 -0
  561. /package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/index.d.ts +0 -0
  562. /package/dist/src/modules/{stats → espn/stats}/view/PlayerSeasonStats/index.js +0 -0
  563. /package/dist/src/modules/{stats → espn/stats}/view/RecentGames/RecentGames.js +0 -0
  564. /package/dist/src/modules/{stats → espn/stats}/view/RecentGames/index.d.ts +0 -0
  565. /package/dist/src/modules/{stats → espn/stats}/view/RecentGames/index.js +0 -0
  566. /package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ExpandedScores/ExpandedScores.js +0 -0
  567. /package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ScoreItem/index.d.ts +0 -0
  568. /package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ScoreItem/index.js +0 -0
  569. /package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ScoresSection/ScoresSection.js +0 -0
  570. /package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ScoresSection/index.d.ts +0 -0
  571. /package/dist/src/modules/{stats → espn/stats}/view/ScoringSummary/ScoresSection/index.js +0 -0
  572. /package/dist/src/modules/{stats → espn/stats}/view/StatsQRCode/StatsQRCodeView.js +0 -0
  573. /package/dist/src/modules/{stats → espn/stats}/view/StatsQRCode/index.d.ts +0 -0
  574. /package/dist/src/modules/{stats → espn/stats}/view/StatsQRCode/index.js +0 -0
  575. /package/dist/src/modules/{stats → espn/stats}/view/TeamStats/index.d.ts +0 -0
  576. /package/dist/src/modules/{stats → espn/stats}/view/TeamStats/index.js +0 -0
  577. /package/dist/src/modules/{stats → espn/stats}/view/Teams/StatsCarousel.d.ts +0 -0
  578. /package/dist/src/modules/{stats → espn/stats}/view/Teams/StatsCarousel.js +0 -0
  579. /package/dist/src/modules/{stats → espn/stats}/view/Teams/StatsProgressBar.d.ts +0 -0
  580. /package/dist/src/modules/{stats → espn/stats}/view/Teams/StatsProgressBar.js +0 -0
  581. /package/dist/src/modules/{stats → espn/stats}/view/Teams/index.d.ts +0 -0
  582. /package/dist/src/modules/{stats → espn/stats}/view/Teams/index.js +0 -0
  583. /package/dist/src/modules/{stats → espn/stats}/view/WinProbability/index.d.ts +0 -0
  584. /package/dist/src/modules/{stats → espn/stats}/view/WinProbability/index.js +0 -0
  585. /package/dist/src/modules/{stats → espn/stats}/view/components/AthletesStatistics/StatisticTable.d.ts +0 -0
  586. /package/dist/src/modules/{stats → espn/stats}/view/components/AthletesStatistics/StatisticTable.js +0 -0
  587. /package/dist/src/modules/{stats → espn/stats}/view/components/AthletesStatistics/index.d.ts +0 -0
  588. /package/dist/src/modules/{stats → espn/stats}/view/components/AthletesStatistics/index.js +0 -0
  589. /package/dist/src/modules/{stats → espn/stats}/view/index.d.ts +0 -0
  590. /package/dist/src/modules/{stats → espn/stats}/view/index.js +0 -0
  591. /package/dist/src/modules/{hello-world → maestro/hello-world}/HelloWorldImage.d.ts +0 -0
  592. /package/dist/src/modules/{hello-world → maestro/hello-world}/HelloWorldImage.js +0 -0
  593. /package/dist/src/modules/{hello-world → maestro/hello-world}/HelloWorldView.d.ts +0 -0
  594. /package/dist/src/modules/{hello-world → maestro/hello-world}/HelloWorldView.js +0 -0
  595. /package/dist/src/modules/{hello-world → maestro/hello-world}/index.d.ts +0 -0
  596. /package/dist/src/modules/{hello-world → maestro/hello-world}/index.js +0 -0
package/dist/index.d.ts CHANGED
@@ -3,34 +3,23 @@
3
3
  // ../../../@/services/AnalyticsService/types
4
4
  // ../../../@/models/IPanel
5
5
  // ../../../@/external/spatial-navigation/spatialNavigation
6
- // ../../../@/modules/fantasy/view-model/FantasyViewModel
7
- // ../../../@/modules/shop/view-model/ShopViewModel
6
+ // ../../../@/services/AnalyticsService/AnalyticsService
7
+ // ../../../@/modules/espn/fantasy/types
8
+ // ../../../@/modules/espn/shop/types
9
+ // ../../../@/modules/maestro/builder/view-model/BuilderPanelViewModel
8
10
  // ../../../@/models/ITheme
9
- // ../../../react
10
- // ../../../@/types/OverlayTypes
11
- // ../../../@/models/IWinningBet
12
11
  // ../../../@/helpers/Observable
13
- // ../../../@/services/AnalyticsService/AnalyticsService
14
- // ../../../@/interfaces/IMaestroEvent
15
- // ../../../@/interfaces/IMaestroEventDelegate
16
- // ../../../@/services/StatsService
17
- // ../../../@/external/spatial-navigation
18
- // ../../../@/modules/stats/interfaces/IStats
19
12
 
20
13
  declare module '@maestro_io/maestro-web-sdk' {
21
14
  import IMaestroEventDelegate, { PanelEvent } from '@maestro_io/maestro-web-sdk/interfaces/IMaestroEventDelegate';
22
- import IMaestroManager, { SDKConfigParams } from '@maestro_io/maestro-web-sdk/interfaces/IMaestroManager';
15
+ import IMaestroManager, { SDKConfigParams, SDKEventConfigParams, SDKStopEventParams } from '@maestro_io/maestro-web-sdk/interfaces/IMaestroManager';
23
16
  import IMaestroEvent from '@maestro_io/maestro-web-sdk/interfaces/IMaestroEvent';
24
17
  import { MaestroEventViewModel } from '@maestro_io/maestro-web-sdk/view-models/MaestroEventViewModel';
25
- import IMaestroKeyPlaysResponse from '@maestro_io/maestro-web-sdk/modules/key-plays/interfaces/IKeyPlaysResponse';
26
- import { IUserSettings } from '@maestro_io/maestro-web-sdk/interfaces/IUserSettings';
18
+ import IMaestroKeyPlaysResponse from '@maestro_io/maestro-web-sdk/modules/espn/key-plays/interfaces/IKeyPlaysResponse';
27
19
  import { GlobalConfig, PageConfig } from '@maestro_io/maestro-web-sdk/services/StaticService/types';
28
20
  import { MaestroPanelType } from '@maestro_io/maestro-web-sdk/models/IPanel';
29
- export { default as Overlay } from '@maestro_io/maestro-web-sdk/components/molecules/Overlay/Overlay';
30
- export { OverlayType, IMaestroOverlayEvent, IOverlaySize, IOverlayPosition, IFantasyPayload, IOverlayAnalyticsEvent, } from '@maestro_io/maestro-web-sdk/types/OverlayTypes';
31
- export { IWinningBet } from '@maestro_io/maestro-web-sdk/models/IWinningBet';
32
21
  export { ActionTrackEvent, ImpressionTrackEvent, Metadata, PanelClickAction, PanelViewAction, } from '@maestro_io/maestro-web-sdk/services/AnalyticsService/types';
33
- export { PanelEvent, IMaestroEventDelegate, IMaestroEvent, IMaestroKeyPlaysResponse, MaestroPanelType, };
22
+ export { PanelEvent, IMaestroEventDelegate, IMaestroEvent, IMaestroKeyPlaysResponse, MaestroPanelType, SDKEventConfigParams, SDKStopEventParams, };
34
23
  export { IUserSettings, DEFAULT_USER_SETTINGS, } from '@maestro_io/maestro-web-sdk/interfaces/IUserSettings';
35
24
  /**
36
25
  * Main SDK class that serves as the entry point for the Maestro TV SDK
@@ -42,8 +31,8 @@ declare module '@maestro_io/maestro-web-sdk' {
42
31
  * @returns {MaestroWebSDK} - The MaestroWebSDK instance
43
32
  */
44
33
  static getInstance(): MaestroWebSDK;
45
- userDidStartWatchingEvent(eventID: string, delegate: IMaestroEventDelegate, userSettings?: IUserSettings): Promise<IMaestroEvent>;
46
- userDidStopWatchingEvent(_: string): Promise<void>;
34
+ userDidStartWatchingEvent({ eventId, pageId, userSettings, delegate, useProdEnv, }: SDKEventConfigParams): Promise<IMaestroEvent>;
35
+ userDidStopWatchingEvent(_config: SDKStopEventParams): Promise<void>;
47
36
  configure(configParams: SDKConfigParams): void;
48
37
  /**
49
38
  * Sets the site ID for the SDK
@@ -51,6 +40,7 @@ declare module '@maestro_io/maestro-web-sdk' {
51
40
  */
52
41
  setSiteID(siteID: string): void;
53
42
  getSiteID(): string;
43
+ getIsProdEnv(): boolean;
54
44
  /**
55
45
  * Gets the event view model
56
46
  * @returns The current event view model
@@ -155,6 +145,40 @@ declare module '@maestro_io/maestro-web-sdk/interfaces/IMaestroManager' {
155
145
  */
156
146
  userSettings?: IUserSettings;
157
147
  };
148
+ export type SDKStopEventParams = {
149
+ /**
150
+ * Event ID for the event being stopped.
151
+ */
152
+ eventId?: string;
153
+ /**
154
+ * Page ID for the event being stopped.
155
+ */
156
+ pageId?: string;
157
+ };
158
+ export type SDKEventConfigParams = {
159
+ /**
160
+ * The page ID to use to load the page configuration.
161
+ */
162
+ pageId?: string;
163
+ /**
164
+ * User settings for customizing SDK behavior (panel visibility, feature toggles, etc.)
165
+ */
166
+ userSettings?: IUserSettings;
167
+ /**
168
+ * Event ID as metadata value to use to load the page configuration.
169
+ * This is typically used when the page ID is not known, but a metadata value is available.
170
+ */
171
+ eventId?: string;
172
+ /**
173
+ * The instance of the app's implementation of IMaestroEventDelegate
174
+ */
175
+ delegate: IMaestroEventDelegate;
176
+ /**
177
+ * @description - Indicates whether to use the production environment for this event.
178
+ * @default true
179
+ */
180
+ useProdEnv?: boolean;
181
+ };
158
182
  /**
159
183
  This is the MaestroKit top-level API for initializing and configuring the framework. It encompasses all functionality that is not specific to an event.
160
184
  */
@@ -174,12 +198,14 @@ declare module '@maestro_io/maestro-web-sdk/interfaces/IMaestroManager' {
174
198
  - userSettings: Optional user settings to override the configured settings for this event
175
199
  The function returns an instance of MaestroEventViewModel, which includes an implementation of IMaestroEvent. IMaestroEvent represents the app-facing portion of the MaestroKit API related to the currently-loaded event. So after `userDidStartWatchingEvent` is called, the SDK has access to the API detailed in `MaestroEventDelegate` for making calls to the app, and the app has access to the API detailed in `IMaestroEvent` for making calls to the SDK.
176
200
  */
177
- userDidStartWatchingEvent(eventID: string, delegate: IMaestroEventDelegate, userSettings?: IUserSettings): Promise<IMaestroEvent>;
201
+ userDidStartWatchingEvent(config: SDKEventConfigParams): Promise<IMaestroEvent>;
178
202
  /**
179
203
  * @description Tells the SDK the user has closed an event that was open in the app's player.
180
- * @param eventID
204
+ * @param params - Parameters including eventId or pageId to identify the event being stopped.
205
+ * @param params.eventId - The Event ID for the event being stopped.
206
+ * @param params.pageId - The Page ID for the event being stopped.
181
207
  */
182
- userDidStopWatchingEvent(eventID: string): void;
208
+ userDidStopWatchingEvent(params: SDKStopEventParams): Promise<void>;
183
209
  /**
184
210
  * Render the PanelManager with the available panels for the current event in the specified HTML id element.
185
211
  * @param id - The ID of the HTML element where the panel will be rendered.
@@ -191,7 +217,7 @@ declare module '@maestro_io/maestro-web-sdk/interfaces/IMaestroManager' {
191
217
 
192
218
  declare module '@maestro_io/maestro-web-sdk/interfaces/IMaestroEvent' {
193
219
  import { MaestroPanelType } from '@/models/IPanel';
194
- import IMaestroKeyPlaysResponse from '@maestro_io/maestro-web-sdk/modules/key-plays/interfaces/IKeyPlaysResponse';
220
+ import IMaestroKeyPlaysResponse from '@maestro_io/maestro-web-sdk/modules/espn/key-plays/interfaces/IKeyPlaysResponse';
195
221
  import { IUserSettings } from '@maestro_io/maestro-web-sdk/interfaces/IUserSettings';
196
222
  /**
197
223
  * This is the public API that the app can use to make calls to the SDK related to the currently-loaded event.
@@ -291,7 +317,6 @@ declare module '@maestro_io/maestro-web-sdk/interfaces/IMaestroEvent' {
291
317
  * })
292
318
  */
293
319
  setDataToPanel(panelData: Record<string, any>): void;
294
- simulateUseCase<T = any>(useCase: TestUseCase, panelType: MaestroPanelType, testData?: T): void;
295
320
  /**
296
321
  * @description Sets the active panel in the Maestro SDK, if the panel is available and not hidden.
297
322
  * @param {MaestroPanelType} panelType - The type of the panel to set as active
@@ -299,87 +324,99 @@ declare module '@maestro_io/maestro-web-sdk/interfaces/IMaestroEvent' {
299
324
  */
300
325
  setActivePanel(panelType: MaestroPanelType): void;
301
326
  }
302
- const TEST_USE_CASES: {
303
- readonly betsTabLoadFailure: "betsTabLoadFailure";
304
- readonly betsMockData: "betsMockData";
305
- readonly betsLiveData: "betsLiveData";
306
- readonly showBasketballPreGameStatsMockData: "showBasketballPreGameStatsMockData";
307
- readonly showBasketballInGameStatsMockData: "showBasketballInGameStatsMockData";
308
- readonly showFootballPreGameStatsMockData: "showFootballPreGameStatsMockData";
309
- readonly showFootballInGameStatsMockData: "showFootballInGameStatsMockData";
310
- readonly showHockeyPreGameStatsMockData: "showHockeyPreGameStatsMockData";
311
- readonly showHockeyInGameStatsMockData: "showHockeyInGameStatsMockData";
312
- readonly shopTabLoadFailure: "shopTabLoadFailure";
313
- readonly shopEmptyState: "shopEmptyState";
314
- readonly shopMockData: "shopMockData";
315
- readonly shopLiveData: "shopLiveData";
316
- };
317
- export type TestUseCase = typeof TEST_USE_CASES[keyof typeof TEST_USE_CASES];
318
- export {};
319
327
  }
320
328
 
321
329
  declare module '@maestro_io/maestro-web-sdk/view-models/MaestroEventViewModel' {
322
330
  import IMaestroEventDelegate from '@maestro_io/maestro-web-sdk/interfaces/IMaestroEventDelegate';
323
- import IMaestroEvent, { TestUseCase } from '@maestro_io/maestro-web-sdk/interfaces/IMaestroEvent';
331
+ import IMaestroEvent from '@maestro_io/maestro-web-sdk/interfaces/IMaestroEvent';
324
332
  import { Observable } from '@maestro_io/maestro-web-sdk/helpers/Observable';
325
333
  import { ViewModel } from '@maestro_io/maestro-web-sdk/view-models/ViewModel';
326
- import KeyPlaysViewModel from '@maestro_io/maestro-web-sdk/modules/key-plays/view-model/KeyPlaysViewModel';
327
- import BetsViewModel from '@maestro_io/maestro-web-sdk/modules/bets/view-model/BetsViewModel';
328
334
  import SpatialNavigation from '@/external/spatial-navigation/spatialNavigation';
329
- import StatsViewModel from '@maestro_io/maestro-web-sdk/modules/stats/view-model/StatsViewModel';
330
- import IMaestroKeyPlaysResponse from '@maestro_io/maestro-web-sdk/modules/key-plays/interfaces/IKeyPlaysResponse';
335
+ import IMaestroKeyPlaysResponse from '@maestro_io/maestro-web-sdk/modules/espn/key-plays/interfaces/IKeyPlaysResponse';
331
336
  import { MaestroPanelType } from '@/models/IPanel';
332
337
  import { IUserSettings } from '@maestro_io/maestro-web-sdk/interfaces/IUserSettings';
333
338
  import { PanelManagerViewModel } from '@maestro_io/maestro-web-sdk/view-models/PanelManagerViewModel';
334
- import FantasyViewModel from '@/modules/fantasy/view-model/FantasyViewModel';
335
- import ShopViewModel from '@/modules/shop/view-model/ShopViewModel';
339
+ import AnalyticsService from '@/services/AnalyticsService/AnalyticsService';
340
+ import { IKeyPlaysViewModel } from '@maestro_io/maestro-web-sdk/modules/espn/key-plays/interfaces/IKeyPlaysViewModel';
341
+ import { IBetsViewModel } from '@maestro_io/maestro-web-sdk/modules/espn/bets/interfaces/IBetsViewModel';
342
+ import { IStatsViewModel } from '@maestro_io/maestro-web-sdk/modules/espn/stats/interfaces/IStatsViewModel';
343
+ import { IFantasyViewModel } from '@/modules/espn/fantasy/types';
344
+ import { IShopViewModel } from '@/modules/espn/shop/types';
345
+ import { BuilderPanelViewModel } from '@/modules/maestro/builder/view-model/BuilderPanelViewModel';
336
346
  export class MaestroEventViewModel extends ViewModel implements IMaestroEvent {
337
- delegate: IMaestroEventDelegate;
338
- keyPlaysViewModel: KeyPlaysViewModel | null;
339
- fantasyViewModel: FantasyViewModel | null;
340
- betsViewModel: BetsViewModel | null;
341
- statsViewModel: StatsViewModel | null;
342
- shopViewModel: ShopViewModel | null;
343
- panelManagerViewModel: PanelManagerViewModel;
344
- navigation: SpatialNavigation;
345
- constructor(eventId: string | undefined, delegate: IMaestroEventDelegate);
346
- setActivePanel(panelType: MaestroPanelType): void;
347
- updatePlayerTimeCode(timestamp: number): void;
348
- getPlayerTimeCode(): number | null;
349
- setDataToPanel(panelData: Record<string, any>): void;
350
- deinit(): Promise<void>;
351
- updateKeyPlaysData(data: IMaestroKeyPlaysResponse | null): Promise<void>;
352
- updateUserSettings(settings: IUserSettings): Promise<void>;
353
- startFocusManagement(): Promise<void>;
354
- didStartPlayingClip(index: number): void;
355
- didStopPlayingClip(index: number): void;
356
- didFailToPlayClip(index: number): void;
357
- didUpdatePlaybackProgressOfClip(index: number, to: number): void;
358
- didShowPanel(): Promise<void>;
359
- didHidePanel(): Promise<void>;
360
- didShowOverlay(): Promise<void>;
361
- didHideOverlay(): Promise<void>;
362
- currentEventDoesNotSupportKeyPlays(): void;
363
- getCurrentEventID(): string;
364
- getCurrentlyPlayingClipIndex(): number | null;
365
- getLastPlayedClipIndex(): number | null;
366
- getCurrentClipPlaybackProgress(): number | null;
367
- getKeyPlaysCount(): number;
368
- get eventId(): Observable<string>;
369
- get title(): Observable<string>;
370
- get isLive(): Observable<boolean>;
371
- get isShowingPanel(): boolean;
372
- set isShowingPanel(value: boolean);
373
- simulateUseCase<T = any>(useCase: TestUseCase, panelType: MaestroPanelType, testData?: T): void;
374
- /**
375
- * This method is called when the user navigates to the MaestroEventViewModel.
376
- * It will pause navigation and start focus management.
377
- */
378
- deliverFocus(): void;
347
+ delegate: IMaestroEventDelegate;
348
+ keyPlaysViewModel: IKeyPlaysViewModel | null;
349
+ fantasyViewModel: IFantasyViewModel | null;
350
+ betsViewModel: IBetsViewModel | null;
351
+ statsViewModel: IStatsViewModel | null;
352
+ shopViewModel: IShopViewModel | null;
353
+ builderPanelViewModel: BuilderPanelViewModel | null;
354
+ panelManagerViewModel: PanelManagerViewModel;
355
+ navigation: SpatialNavigation;
356
+ constructor(eventId: string | undefined, pageId: string | undefined, delegate: IMaestroEventDelegate, analyticsService: AnalyticsService);
357
+ /**
358
+ * Initializes view models for enabled panels using dynamic imports (code splitting).
359
+ *
360
+ * This method lazily loads view model modules based on the page configuration,
361
+ * reducing initial bundle size by only loading modules for panels that are enabled.
362
+ *
363
+ * @remarks
364
+ * - Must be called after SDK configuration and before interacting with any view models
365
+ * - Typically invoked during `userDidStartWatchingEvent()` flow
366
+ * - Each view model is loaded in parallel for optimal performance
367
+ *
368
+ * @remarks Error Handling
369
+ * - Individual view model loading failures are caught and logged as warnings
370
+ * - Failed view models remain `null`, allowing other panels to function normally
371
+ * - The method resolves successfully even if some view models fail to load
372
+ * - Callers should check for `null` before using any view model property
373
+ *
374
+ * @example
375
+ * ```typescript
376
+ * await maestroEventViewModel.initViewModels();
377
+ * // Check if view model loaded before use
378
+ * if (maestroEventViewModel.betsViewModel) {
379
+ * maestroEventViewModel.betsViewModel.startPolling();
380
+ * }
381
+ * ```
382
+ *
383
+ * @returns Promise that resolves when all view model loading attempts complete
384
+ */
385
+ initViewModels(): Promise<void>;
386
+ setActivePanel(panelType: MaestroPanelType): void;
387
+ updatePlayerTimeCode(timestamp: number): void;
388
+ getPlayerTimeCode(): number | null;
389
+ setDataToPanel(panelData: Record<string, any>): void;
390
+ deinit(): Promise<void>;
391
+ updateKeyPlaysData(data: IMaestroKeyPlaysResponse | null): Promise<void>;
392
+ updateUserSettings(settings: IUserSettings): Promise<void>;
393
+ startFocusManagement(): Promise<void>;
394
+ didStartPlayingClip(index: number): void;
395
+ didStopPlayingClip(index: number): void;
396
+ didFailToPlayClip(index: number): void;
397
+ didUpdatePlaybackProgressOfClip(index: number, to: number): void;
398
+ didShowPanel(): Promise<void>;
399
+ didHidePanel(): Promise<void>;
400
+ currentEventDoesNotSupportKeyPlays(): void;
401
+ getCurrentEventID(): string;
402
+ getCurrentlyPlayingClipIndex(): number | null;
403
+ getLastPlayedClipIndex(): number | null;
404
+ getCurrentClipPlaybackProgress(): number | null;
405
+ getKeyPlaysCount(): number;
406
+ get eventId(): Observable<string>;
407
+ get title(): Observable<string>;
408
+ get isLive(): Observable<boolean>;
409
+ get isShowingPanel(): boolean;
410
+ set isShowingPanel(value: boolean);
411
+ /**
412
+ * This method is called when the user navigates to the MaestroEventViewModel.
413
+ * It will pause navigation and start focus management.
414
+ */
415
+ deliverFocus(): void;
379
416
  }
380
417
  }
381
418
 
382
- declare module '@maestro_io/maestro-web-sdk/modules/key-plays/interfaces/IKeyPlaysResponse' {
419
+ declare module '@maestro_io/maestro-web-sdk/modules/espn/key-plays/interfaces/IKeyPlaysResponse' {
383
420
  type TeamId = string;
384
421
  type AthleteId = string;
385
422
  export default interface IMaestroKeyPlaysResponse {
@@ -426,54 +463,8 @@ declare module '@maestro_io/maestro-web-sdk/modules/key-plays/interfaces/IKeyPla
426
463
  export {};
427
464
  }
428
465
 
429
- declare module '@maestro_io/maestro-web-sdk/interfaces/IUserSettings' {
430
- /**
431
- * User settings interface for customizing Maestro Web SDK behavior
432
- * Supports panel-level and feature-level customizations
433
- */
434
- export interface IUserSettings {
435
- panels?: {
436
- bets?: {
437
- /** Hide the entire bets panel from panel selection */
438
- hidePanel?: boolean;
439
- /** Hide wager values (dollar amounts) in betting cards */
440
- hideWagers?: boolean;
441
- };
442
- stats?: {
443
- /** Hide the entire stats panel from panel selection */
444
- hidePanel?: boolean;
445
- };
446
- keyPlays?: {
447
- /** Hide the entire key plays panel from panel selection */
448
- hidePanel?: boolean;
449
- };
450
- fantasy?: {
451
- /** Hide the entire fantasy panel from panel selection */
452
- hidePanel?: boolean;
453
- };
454
- shop?: {
455
- /** Hide the entire shop panel from panel selection */
456
- hidePanel?: boolean;
457
- };
458
- };
459
- }
460
- /**
461
- * Default user settings - all features enabled by default
462
- */
463
- export const DEFAULT_USER_SETTINGS: IUserSettings;
464
- /**
465
- * Panel-specific settings type helpers
466
- */
467
- export type BetsSettings = NonNullable<IUserSettings['panels']>['bets'];
468
- export type StatsSettings = NonNullable<IUserSettings['panels']>['stats'];
469
- export type KeyPlaysSettings = NonNullable<IUserSettings['panels']>['keyPlays'];
470
- /**
471
- * Utility type for getting panel settings by panel type
472
- */
473
- export type PanelSettings<T extends keyof NonNullable<IUserSettings['panels']>> = NonNullable<IUserSettings['panels']>[T];
474
- }
475
-
476
466
  declare module '@maestro_io/maestro-web-sdk/services/StaticService/types' {
467
+ import { MaestroPanelType } from '@/models/IPanel';
477
468
  import ITheme from '@/models/ITheme';
478
469
  type PlatformConfig = {
479
470
  analytics: {
@@ -489,7 +480,7 @@ declare module '@maestro_io/maestro-web-sdk/services/StaticService/types' {
489
480
  _id: string;
490
481
  slug: string;
491
482
  panel_name?: string;
492
- panel_type?: string;
483
+ panel_type?: MaestroPanelType;
493
484
  icon_name?: string;
494
485
  renderer?: {
495
486
  block_data?: TBlockData;
@@ -546,6 +537,7 @@ declare module '@maestro_io/maestro-web-sdk/services/StaticService/types' {
546
537
  version: string;
547
538
  id: string;
548
539
  };
540
+ slug: string;
549
541
  };
550
542
  theme?: ITheme | null;
551
543
  }
@@ -554,11 +546,16 @@ declare module '@maestro_io/maestro-web-sdk/services/StaticService/types' {
554
546
 
555
547
  declare module '@maestro_io/maestro-web-sdk/models/IPanel' {
556
548
  export const MaestroPanelType: {
557
- readonly KEY_PLAYS: "keyPlays";
558
- readonly STATS: "stats";
559
- readonly BETS: "bets";
560
- readonly FANTASY: "fantasy";
561
- readonly SHOP: "shop";
549
+ readonly ESPN_KEY_PLAYS: "espnKeyPlays";
550
+ readonly ESPN_STATS: "espnStats";
551
+ readonly ESPN_BETS: "espnBet";
552
+ readonly ESPN_FANTASY: "espnFantasy";
553
+ readonly ESPN_SHOP: "espnShop";
554
+ readonly HELLO_WORLD: "helloWorld";
555
+ readonly FOX_KEY_PLAYS: "foxKeyPlays";
556
+ readonly FOX_MULTI_VIEW: "foxMultiview";
557
+ readonly FOX_STATS: "foxStats";
558
+ readonly BUILDER_BLOCK_PANEL: "builderBlockPanel";
562
559
  };
563
560
  export type MaestroPanelType = typeof MaestroPanelType[keyof typeof MaestroPanelType];
564
561
  export interface PanelTypeInfo {
@@ -567,97 +564,6 @@ declare module '@maestro_io/maestro-web-sdk/models/IPanel' {
567
564
  imageNamePrefix: string;
568
565
  iconName: string;
569
566
  }
570
- export const PANEL_TYPE_INFO: Record<MaestroPanelType, PanelTypeInfo>;
571
- }
572
-
573
- declare module '@maestro_io/maestro-web-sdk/components/molecules/Overlay/Overlay' {
574
- import React from 'react';
575
- import { OverlayType, IFantasyPayload } from '@/types/OverlayTypes';
576
- import { IWinningBet } from '@/models/IWinningBet';
577
- interface OverlayProps {
578
- id: string;
579
- position?: {
580
- top?: number;
581
- left?: number;
582
- right?: number;
583
- bottom?: number;
584
- };
585
- overlayType: OverlayType;
586
- winningBet?: IWinningBet;
587
- fantasy?: IFantasyPayload;
588
- onOverlayAction?: (overlayType: OverlayType) => void;
589
- onOverlayViewed?: (overlayType: OverlayType) => void;
590
- }
591
- interface OverlayState {
592
- autoDismiss: boolean;
593
- hasTrackedView: boolean;
594
- }
595
- export const WINNING_BET_RIVE_FILE_URL = "https://static.gcp.maestro.io/media/664b9c57d59a7a431542d814/67db106027ddcdcd2ecb97d4.riv";
596
- class Overlay extends React.Component<OverlayProps, OverlayState> {
597
- constructor(props: OverlayProps);
598
- componentWillUnmount(): void;
599
- get overlayTitle(): string;
600
- get overlayMetadata(): string;
601
- onLoadRiveInstance: (riveInstance: any | null) => void;
602
- render(): JSX.Element;
603
- }
604
- export default Overlay;
605
- }
606
-
607
- declare module '@maestro_io/maestro-web-sdk/types/OverlayTypes' {
608
- import { WinningBet } from '@maestro_io/maestro-web-sdk/models/IWinningBet';
609
- export const OverlayType: {
610
- readonly WinningBet: "winningBet";
611
- readonly FantasyPlayerEvent: "fantasyPlayerEvent";
612
- };
613
- export type OverlayType = typeof OverlayType[keyof typeof OverlayType];
614
- export interface IOverlayPosition {
615
- top?: number;
616
- left?: number;
617
- right?: number;
618
- bottom?: number;
619
- }
620
- export interface IOverlaySize {
621
- width: number;
622
- height: number;
623
- }
624
- export interface IFantasyPayload {
625
- athleteId: string;
626
- title: string;
627
- metadata: string;
628
- headline: string;
629
- description: string;
630
- image?: string;
631
- sportsType: string;
632
- }
633
- export interface IMaestroOverlayEvent {
634
- type: OverlayType;
635
- size: IOverlaySize;
636
- position: IOverlayPosition;
637
- winningBet?: WinningBet;
638
- fantasy?: IFantasyPayload;
639
- }
640
- export interface IOverlayAnalyticsEvent {
641
- eventName: 'overlayViewed' | 'overlayClicked';
642
- attributes: {
643
- template: string;
644
- templateId?: string;
645
- instanceName: string;
646
- instanceId: string;
647
- fullscreen?: boolean;
648
- overlayType: string;
649
- };
650
- }
651
- }
652
-
653
- declare module '@maestro_io/maestro-web-sdk/models/IWinningBet' {
654
- export interface IWinningBet {
655
- serverID: string;
656
- notificationText: string;
657
- amount: number;
658
- outcome: 'WIN' | 'LOSS' | 'PUSH';
659
- }
660
- export type WinningBet = IWinningBet;
661
567
  }
662
568
 
663
569
  declare module '@maestro_io/maestro-web-sdk/services/AnalyticsService/types' {
@@ -728,6 +634,53 @@ declare module '@maestro_io/maestro-web-sdk/services/AnalyticsService/types' {
728
634
  export type ActionTrackEvent = PanelClickAction;
729
635
  }
730
636
 
637
+ declare module '@maestro_io/maestro-web-sdk/interfaces/IUserSettings' {
638
+ /**
639
+ * User settings interface for customizing Maestro Web SDK behavior
640
+ * Supports panel-level and feature-level customizations
641
+ */
642
+ export interface IUserSettings {
643
+ panels?: {
644
+ bets?: {
645
+ /** Hide the entire bets panel from panel selection */
646
+ hidePanel?: boolean;
647
+ /** Hide wager values (dollar amounts) in betting cards */
648
+ hideWagers?: boolean;
649
+ };
650
+ stats?: {
651
+ /** Hide the entire stats panel from panel selection */
652
+ hidePanel?: boolean;
653
+ };
654
+ keyPlays?: {
655
+ /** Hide the entire key plays panel from panel selection */
656
+ hidePanel?: boolean;
657
+ };
658
+ fantasy?: {
659
+ /** Hide the entire fantasy panel from panel selection */
660
+ hidePanel?: boolean;
661
+ };
662
+ shop?: {
663
+ /** Hide the entire shop panel from panel selection */
664
+ hidePanel?: boolean;
665
+ };
666
+ };
667
+ }
668
+ /**
669
+ * Default user settings - all features enabled by default
670
+ */
671
+ export const DEFAULT_USER_SETTINGS: IUserSettings;
672
+ /**
673
+ * Panel-specific settings type helpers
674
+ */
675
+ export type BetsSettings = NonNullable<IUserSettings['panels']>['bets'];
676
+ export type StatsSettings = NonNullable<IUserSettings['panels']>['stats'];
677
+ export type KeyPlaysSettings = NonNullable<IUserSettings['panels']>['keyPlays'];
678
+ /**
679
+ * Utility type for getting panel settings by panel type
680
+ */
681
+ export type PanelSettings<T extends keyof NonNullable<IUserSettings['panels']>> = NonNullable<IUserSettings['panels']>[T];
682
+ }
683
+
731
684
  declare module '@maestro_io/maestro-web-sdk/helpers/Observable' {
732
685
  /**
733
686
  * Basic observable implementation for view models
@@ -753,373 +706,6 @@ declare module '@maestro_io/maestro-web-sdk/view-models/ViewModel' {
753
706
  }
754
707
  }
755
708
 
756
- declare module '@maestro_io/maestro-web-sdk/modules/key-plays/view-model/KeyPlaysViewModel' {
757
- import IMaestroKeyPlaysResponse from '@maestro_io/maestro-web-sdk/modules/key-plays/interfaces/IKeyPlaysResponse';
758
- import IKeyPlay, { KeyPlayLoadFailureStatus, KeyPlaysErrorState } from '@maestro_io/maestro-web-sdk/modules/key-plays/interfaces/IKeyPlays';
759
- import { Observable } from '@/helpers/Observable';
760
- import AnalyticsService from '@/services/AnalyticsService/AnalyticsService';
761
- export type KeyPlayItem = {
762
- title?: string;
763
- items: IKeyPlay[];
764
- };
765
- class KeyPlaysViewModel {
766
- currentlyPlayingClipIndex: Observable<number | null>;
767
- lastPlayedClipIndex: Observable<number | null>;
768
- currentClipPlaybackProgress: Observable<number | null>;
769
- errorState: Observable<KeyPlaysErrorState | null>;
770
- failedClips: Observable<{
771
- [key: string]: KeyPlayLoadFailureStatus;
772
- }>;
773
- items: Observable<KeyPlayItem[]>;
774
- filteredItems: Observable<KeyPlayItem[]>;
775
- analyticsService: AnalyticsService;
776
- constructor();
777
- onUpdatePlayerTimeCode(playerTimeCode: number | null): void;
778
- isCurrentlyPlaying(index: number): boolean;
779
- setKeyPlays(items: IMaestroKeyPlaysResponse | null, playerTimeCode: number | null): Promise<void>;
780
- playKeyPlay(atIndex: number): Promise<void>;
781
- init(): Promise<void>;
782
- parseNetworkResponse(response: IMaestroKeyPlaysResponse): KeyPlayItem[];
783
- get allItems(): IKeyPlay[];
784
- clipID(forKeyPlayAtIndex: number): string | undefined;
785
- handleKeyPlayLoadFailure(forKeyPlayAtIndex: number): void;
786
- loadFailureStatus(forKeyPlayAtIndex: number): KeyPlayLoadFailureStatus;
787
- clearLoadFailureStatus(forKeyPlayAtIndex: number): void;
788
- userRequestedNewKeyPlaysData(): Promise<void>;
789
- }
790
- export default KeyPlaysViewModel;
791
- }
792
-
793
- declare module '@maestro_io/maestro-web-sdk/modules/bets/view-model/BetsViewModel' {
794
- import { Observable } from '@maestro_io/maestro-web-sdk/helpers/Observable';
795
- import { ITeam, IUserBet, IBetLeg } from '@maestro_io/maestro-web-sdk/modules/bets/interfaces/IBets';
796
- import { ViewModel } from '@maestro_io/maestro-web-sdk/view-models/ViewModel';
797
- import { TestUseCase } from '@/interfaces/IMaestroEvent';
798
- import IMaestroEventDelegate from '@/interfaces/IMaestroEventDelegate';
799
- import { BetCardType, BetType } from '@maestro_io/maestro-web-sdk/modules/bets/types/BetsAnalyticsTypes';
800
- const BET_ITEM_TYPE: {
801
- readonly ODDS: "odds";
802
- readonly USER_BETS: "userBets";
803
- readonly PROMO: "promo";
804
- readonly HOT_PROPS: "hotProps";
805
- readonly LOCATION_DISCLAIMER: "locationDisclaimer";
806
- readonly GAMBLING_MESSAGE: "gamblingMessage";
807
- };
808
- export type BetItemType = typeof BET_ITEM_TYPE[keyof typeof BET_ITEM_TYPE];
809
- type TeamOdd = {
810
- teamAbbreviation: string;
811
- startOfGameFirstLine: string;
812
- startOfGameSecondLine: string;
813
- gameSpreadFirstLine: string;
814
- gameSpreadSecondLine: string;
815
- totalPointsFirstLine: string;
816
- totalPointsSecondLine: string;
817
- moneylineFirstLine: string;
818
- };
819
- export type ISixPackOdds = {
820
- topTeamOdds: TeamOdd;
821
- bottomTeamOdds: TeamOdd;
822
- drawOdds?: TeamOdd;
823
- orderedColumns: {
824
- abbreviation: string;
825
- type: string;
826
- }[];
827
- gameState: string;
828
- };
829
- export type IUserBets = {
830
- defaultTab: string;
831
- bets: {
832
- live: IUserBet[];
833
- upcoming: IUserBet[];
834
- settled: IUserBet[];
835
- };
836
- };
837
- export type IHotProps = {
838
- items: IBetLeg[];
839
- };
840
- export type ILocationDisclaimer = {
841
- text: string;
842
- };
843
- export type IGamblingMessage = {
844
- text: string;
845
- };
846
- export type IBetPromo = {
847
- title: string;
848
- description: string;
849
- logo: string;
850
- qrCode: string;
851
- backgroundImage: string;
852
- };
853
- export type PromoBetItem = {
854
- id: string;
855
- type: 'promo';
856
- data: IBetPromo;
857
- };
858
- export type LocationDisclaimerBetItem = {
859
- type: 'locationDisclaimer';
860
- id: string;
861
- data: ILocationDisclaimer;
862
- };
863
- export type GamblingMessageBetItem = {
864
- type: 'gamblingMessage';
865
- id: string;
866
- data: IGamblingMessage;
867
- };
868
- export type SixPackBetItem = {
869
- type: 'sixPack';
870
- data: ISixPackOdds;
871
- teamInfo?: {
872
- home: ITeam;
873
- away: ITeam;
874
- };
875
- id: string;
876
- hideWagers: boolean;
877
- };
878
- export type UserBetsBetItem = {
879
- type: 'userBets';
880
- data: IUserBets;
881
- id: string;
882
- hideWagers: boolean;
883
- };
884
- export type HotPropsBetItem = {
885
- type: 'hotProps';
886
- data: IHotProps;
887
- id: string;
888
- hideWagers: boolean;
889
- };
890
- export type BetItem = SixPackBetItem | UserBetsBetItem | PromoBetItem | HotPropsBetItem | LocationDisclaimerBetItem | GamblingMessageBetItem;
891
- const BET_ERROR_STATE: {
892
- readonly NONE: "none";
893
- readonly TAB_LOAD_FAILURE: "tabLoadFailure";
894
- };
895
- export type BetsErrorState = typeof BET_ERROR_STATE[keyof typeof BET_ERROR_STATE];
896
- export interface IBetsViewModelDelegate {
897
- userIsAuthenticated(): Promise<boolean>;
898
- getUserSWID(): Promise<string | null>;
899
- getUserToken(): Promise<string | null>;
900
- }
901
- export class BetsViewModel extends ViewModel {
902
- betsItems: Observable<BetItem[]>;
903
- isDataLoading: Observable<boolean>;
904
- errorState: Observable<BetsErrorState>;
905
- hasEverSuccessfullyLoaded: Observable<boolean>;
906
- hideWagers: Observable<boolean>;
907
- initialized: boolean;
908
- constructor(eventId: string, delegate: IMaestroEventDelegate, options?: {
909
- useMockData?: boolean;
910
- });
911
- /**
912
- * Initialize the ViewModel and start data fetching
913
- */
914
- init(): Promise<void>;
915
- /**
916
- * Clean up resources when the ViewModel is no longer needed
917
- */
918
- cleanup(): void;
919
- /**
920
- * Track card click event
921
- */
922
- trackCardClick(cardType: BetCardType, betType?: BetType | null): Promise<void>;
923
- /**
924
- * Refresh polling for bet data
925
- */
926
- refreshPolling(): void;
927
- /**
928
- * Stop polling for bet data
929
- */
930
- stopPolling(): void;
931
- /**
932
- * Fetch new bet data immediately (one-time)
933
- */
934
- fetchNewData(): Promise<void>;
935
- simulateUseCase<T = any>(useCase: TestUseCase, _: T): void;
936
- clearTabLoadFailure(): void;
937
- /**
938
- * Check if wagers should be hidden based on user settings
939
- */
940
- shouldHideWagers(): boolean;
941
- }
942
- export default BetsViewModel;
943
- }
944
-
945
- declare module '@maestro_io/maestro-web-sdk/modules/stats/view-model/StatsViewModel' {
946
- import { Observable } from '@maestro_io/maestro-web-sdk/helpers/Observable';
947
- import { ViewModel } from '@maestro_io/maestro-web-sdk/view-models/ViewModel';
948
- import { DrivePlay, Team } from '@maestro_io/maestro-web-sdk/modules/stats/interfaces/IStats';
949
- import { AthletesStatisticsItem } from '@maestro_io/maestro-web-sdk/modules/stats/view/components/AthletesStatistics/AthletesStatistics';
950
- import StatsService from '@/services/StatsService';
951
- import IMaestroEventDelegate from '@/interfaces/IMaestroEventDelegate';
952
- import { TestUseCase } from '@/interfaces/IMaestroEvent';
953
- import AnalyticsService from '@/services/AnalyticsService/AnalyticsService';
954
- const STATS_ERROR_STATE: {
955
- readonly NONE: "none";
956
- readonly TAB_LOAD_FAILURE: "tabLoadFailure";
957
- };
958
- export type StatsErrorState = typeof STATS_ERROR_STATE[keyof typeof STATS_ERROR_STATE];
959
- export type HeaderTeamStatItem = {
960
- type: 'headerTeam';
961
- isLive: boolean;
962
- linescoresHeader: string[];
963
- statistics?: {
964
- displayName: string;
965
- homeTeamValue: number;
966
- awayTeamValue: number;
967
- awayTeamDisplayValue: string;
968
- homeTeamDisplayValue: string;
969
- }[];
970
- homeTeam: Pick<Team, 'color' | 'id' | 'logo' | 'name' | 'abbreviation' | 'record'> & {
971
- linescores: string[];
972
- };
973
- awayTeam: Pick<Team, 'color' | 'id' | 'logo' | 'name' | 'abbreviation' | 'record'> & {
974
- linescores: string[];
975
- };
976
- };
977
- type RecentGamesPreviousGame = {
978
- score: string;
979
- gameResult: string;
980
- teamLogo?: string;
981
- homeAway: string;
982
- };
983
- type RecentGamesTeam = {
984
- logo?: string;
985
- name?: string;
986
- events: RecentGamesPreviousGame[];
987
- };
988
- export type RecentGamesStatsItem = {
989
- type: 'recentGames';
990
- awayTeam: RecentGamesTeam;
991
- homeTeam: RecentGamesTeam;
992
- };
993
- export type WinProbabilityStatsItem = {
994
- type: 'winProbability';
995
- chartImageUrl: string;
996
- awayTeam: Pick<Team, 'id' | 'abbreviation' | 'logo'> & {
997
- winPercentage: string;
998
- };
999
- homeTeam: Pick<Team, 'id' | 'abbreviation' | 'logo'> & {
1000
- winPercentage: string;
1001
- };
1002
- };
1003
- export type GameLeadersStatsItem = {
1004
- type: 'gameLeaders';
1005
- displayText: string;
1006
- items: AthletesStatisticsItem[];
1007
- };
1008
- export type ActiveAthletesItem = {
1009
- type: 'activeAthletes';
1010
- displayText: string;
1011
- awayTeam: Pick<Team, 'id' | 'logo' | 'name'>;
1012
- homeTeam: Pick<Team, 'id' | 'logo' | 'name'>;
1013
- athletes: AthletesStatisticsItem[];
1014
- };
1015
- export type StatsPromotionItem = {
1016
- type: 'promotion';
1017
- title: string;
1018
- description: string;
1019
- logo: string;
1020
- qrCode: string;
1021
- backgroundImage: string;
1022
- };
1023
- export type StatsMatchPredictorItem = {
1024
- type: 'matchPredictor';
1025
- header: string;
1026
- imageUrl: string;
1027
- awayTeam: Pick<Team, 'abbreviation' | 'logo' | 'displayName'> & {
1028
- percentage: number;
1029
- };
1030
- homeTeam: Pick<Team, 'abbreviation' | 'logo' | 'displayName'> & {
1031
- percentage: number;
1032
- };
1033
- };
1034
- export type TeamStatsItem = {
1035
- type: 'teamStats';
1036
- awayTeam: Pick<Team, 'logo' | 'displayName' | 'color' | 'abbreviation'>;
1037
- homeTeam: Pick<Team, 'logo' | 'displayName' | 'color' | 'abbreviation'>;
1038
- statistics: {
1039
- displayName: string;
1040
- awayTeamDisplayValue: string;
1041
- homeTeamDisplayValue: string;
1042
- awayTeamValue: number;
1043
- homeTeamValue: number;
1044
- }[];
1045
- };
1046
- export type DriveSummaryItem = {
1047
- type: 'driveSummary';
1048
- id: string;
1049
- team: Pick<Team, 'logo' | 'displayName'>;
1050
- playsQuantity: string;
1051
- yards: string;
1052
- time: string;
1053
- lastPlayMarquee: string;
1054
- plays: DrivePlay[];
1055
- };
1056
- export type IScoreItem = {
1057
- teamLogo?: string;
1058
- teamName?: string;
1059
- athletePosition?: string;
1060
- athleteNumber?: string;
1061
- athleteName?: string;
1062
- athleteAssists?: string;
1063
- athleteThumbnail?: string;
1064
- description: string;
1065
- clock: string;
1066
- };
1067
- export type IScoreSection = {
1068
- title: string;
1069
- scores: IScoreItem[];
1070
- };
1071
- export type ScoringSummaryItem = {
1072
- type: 'scoringSummary';
1073
- title: string;
1074
- sections: IScoreSection[];
1075
- };
1076
- export type PenaltiesItem = {
1077
- type: 'penalties';
1078
- title: string;
1079
- sections: IScoreSection[];
1080
- };
1081
- export type StatsItem = HeaderTeamStatItem | RecentGamesStatsItem | WinProbabilityStatsItem | GameLeadersStatsItem | ActiveAthletesItem | StatsPromotionItem | StatsMatchPredictorItem | TeamStatsItem | DriveSummaryItem | ScoringSummaryItem | PenaltiesItem;
1082
- export class StatsViewModel extends ViewModel {
1083
- isDataLoading: Observable<boolean>;
1084
- hasEverSuccessfullyLoaded: Observable<boolean>;
1085
- eventId: string;
1086
- statsItems: Observable<StatsItem[]>;
1087
- errorState: Observable<StatsErrorState>;
1088
- currentGameState: Observable<string>;
1089
- statsService: StatsService;
1090
- analyticsService: AnalyticsService;
1091
- constructor(eventId: string, delegate: IMaestroEventDelegate, options?: {
1092
- useMockData?: boolean;
1093
- });
1094
- /**
1095
- * Sets panel-specific data configuration
1096
- * @param panelData - Object containing panel configuration
1097
- */
1098
- setDataToPanel(panelData: Record<string, any>): void;
1099
- /**
1100
- * Initialize the ViewModel and start data fetching
1101
- */
1102
- init(): Promise<void>;
1103
- onEngage: (type: StatsItem['type']) => void;
1104
- /**
1105
- * Clean up resources when the ViewModel is no longer needed
1106
- */
1107
- cleanup(): void;
1108
- /**
1109
- * Handle player timecode updates with enhanced logging and validation
1110
- *
1111
- * @param playerTimeCode - The timecode in milliseconds, or null for live
1112
- */
1113
- onUpdatePlayerTimeCode(playerTimeCode: number | null): void;
1114
- clearTabLoadFailure(): void;
1115
- /**
1116
- * Simulate a use case using mock StatsApiResponse data
1117
- */
1118
- simulateUseCase<T = any>(_useCase: TestUseCase, testData?: T): void;
1119
- }
1120
- export default StatsViewModel;
1121
- }
1122
-
1123
709
  declare module '@maestro_io/maestro-web-sdk/view-models/PanelManagerViewModel' {
1124
710
  import { Observable } from '@maestro_io/maestro-web-sdk/helpers/Observable';
1125
711
  import { MaestroPanelType } from '@maestro_io/maestro-web-sdk/models/IPanel';
@@ -1143,10 +729,52 @@ declare module '@maestro_io/maestro-web-sdk/view-models/PanelManagerViewModel' {
1143
729
  getPanelType(atIndex: number): MaestroPanelType | null;
1144
730
  get panelTypeToLeft(): MaestroPanelType | null;
1145
731
  get panelTypeToRight(): MaestroPanelType | null;
732
+ /**
733
+ * @returns Array of PanelInfo for panels defined in config but not listed in MaestroPanelType
734
+ */
735
+ getUnlistedPanels(): PanelInfo[];
1146
736
  }
1147
737
  }
1148
738
 
1149
- declare module '@maestro_io/maestro-web-sdk/modules/key-plays/interfaces/IKeyPlays' {
739
+ declare module '@maestro_io/maestro-web-sdk/modules/espn/key-plays/interfaces/IKeyPlaysViewModel' {
740
+ import { Observable } from '@/helpers/Observable';
741
+ import IKeyPlay, { KeyPlaysErrorState, KeyPlayLoadFailureStatus } from '@maestro_io/maestro-web-sdk/modules/espn/key-plays/interfaces/IKeyPlays';
742
+ import IMaestroKeyPlaysResponse from '@maestro_io/maestro-web-sdk/modules/espn/key-plays/interfaces/IKeyPlaysResponse';
743
+ export interface IKeyPlaysViewModel {
744
+ currentlyPlayingClipIndex: Observable<number | null>;
745
+ lastPlayedClipIndex: Observable<number | null>;
746
+ currentClipPlaybackProgress: Observable<number | null>;
747
+ errorState: Observable<KeyPlaysErrorState | null>;
748
+ failedClips: Observable<{
749
+ [key: string]: KeyPlayLoadFailureStatus;
750
+ }>;
751
+ allItems: IKeyPlay[];
752
+ onUpdatePlayerTimeCode(playerTimeCode: number | null): void;
753
+ setKeyPlays(items: IMaestroKeyPlaysResponse | null, playerTimeCode: number | null): Promise<void>;
754
+ handleKeyPlayLoadFailure(forKeyPlayAtIndex: number): void;
755
+ clearLoadFailureStatus(forKeyPlayAtIndex: number): void;
756
+ }
757
+ }
758
+
759
+ declare module '@maestro_io/maestro-web-sdk/modules/espn/bets/interfaces/IBetsViewModel' {
760
+ import { BetCardType, BetType } from '@maestro_io/maestro-web-sdk/modules/espn/bets/types/BetsAnalyticsTypes';
761
+ export interface IBetsViewModel {
762
+ cleanup(): void;
763
+ trackCardClick(cardType: BetCardType, betType?: BetType): void;
764
+ }
765
+ }
766
+
767
+ declare module '@maestro_io/maestro-web-sdk/modules/espn/stats/interfaces/IStatsViewModel' {
768
+ import { Observable } from '@/helpers/Observable';
769
+ export interface IStatsViewModel {
770
+ currentGameState: Observable<string>;
771
+ onUpdatePlayerTimeCode(playerTimeCode: number | null): void;
772
+ cleanup(): void;
773
+ setDataToPanel(data: Record<string, any>): void;
774
+ }
775
+ }
776
+
777
+ declare module '@maestro_io/maestro-web-sdk/modules/espn/key-plays/interfaces/IKeyPlays' {
1150
778
  export default interface IKeyPlay {
1151
779
  id: string;
1152
780
  description: string;
@@ -1181,202 +809,7 @@ declare module '@maestro_io/maestro-web-sdk/modules/key-plays/interfaces/IKeyPla
1181
809
  export { KeyPlaysPanelScrollViewItemType, KeyPlayLoadFailureStatus, KeyPlaysErrorState, };
1182
810
  }
1183
811
 
1184
- declare module '@maestro_io/maestro-web-sdk/modules/bets/interfaces/IBets' {
1185
- export interface ITeam {
1186
- id: string;
1187
- uid: string;
1188
- guid: string;
1189
- slug: string;
1190
- abbreviation: string;
1191
- displayName: string;
1192
- shortDisplayName: string;
1193
- name: string;
1194
- nickname: string;
1195
- location: string;
1196
- color: string;
1197
- alternateColor: string;
1198
- favored: boolean;
1199
- favoredAtOpen?: boolean;
1200
- }
1201
- export interface IOddsValue {
1202
- /** "-110", "+138", "EVEN", etc. */
1203
- odds: string;
1204
- /** Team ID reference */
1205
- team?: string;
1206
- /** "home", "away", "over", "under" */
1207
- type: string;
1208
- /** "WIN", "LOSS" (for closed bets) */
1209
- outcome?: string;
1210
- /** "o41.5", "u41.5", "+2.5", "-2.5" (for totals and spreads) */
1211
- line?: string;
1212
- }
1213
- interface IOdds {
1214
- /** "Moneyline", "Total Points", "Spread" */
1215
- displayName: string;
1216
- /** "ML", "Total", "Spread" */
1217
- abbreviation: string;
1218
- /** "moneyline", "total", "pointSpread" */
1219
- type: string;
1220
- /** "open", "close" */
1221
- state: string;
1222
- /** Values for this bet type (usually 2 options) */
1223
- values: IOddsValue[];
1224
- }
1225
- export interface IHotPropsSelection {
1226
- id: string;
1227
- /** "Over 5.5", "Under 5.5" */
1228
- text: string;
1229
- /** "over", "under" */
1230
- type: string;
1231
- /** "closed" */
1232
- status: string;
1233
- odds: {
1234
- /** "+750", "-3000" */
1235
- current?: string;
1236
- };
1237
- /** "WIN", "LOSS" */
1238
- outcome?: string;
1239
- /** URL to icon */
1240
- icon?: string;
1241
- /** URL to dark mode icon */
1242
- iconDark?: string;
1243
- }
1244
- export interface IHotProps {
1245
- id: string;
1246
- /** "Carlos Santana Total Hits + Runs + RBIs" */
1247
- text: string;
1248
- /** ISO date string */
1249
- date: string;
1250
- selections: IHotPropsSelection[];
1251
- }
1252
- export type IBetsResponse = {
1253
- entities: {
1254
- teams: Record<string, ITeam>;
1255
- };
1256
- /** Featured bets (may not always be present) */
1257
- featured?: IHotProps[];
1258
- } & Partial<BetLiveEvent>;
1259
- export interface IBetLeg {
1260
- id: string;
1261
- marketId?: string;
1262
- marketSelectionId?: string;
1263
- marketType?: string;
1264
- /** "PENDING", "WIN", etc. */
1265
- status: string;
1266
- /** "+370", "+265", etc. */
1267
- odds: string;
1268
- /** "NONE", "ODDS_BOOST" */
1269
- boostType?: string;
1270
- /** Human-readable description */
1271
- selectionText: string;
1272
- /** "list", "over", etc. */
1273
- type: string;
1274
- /** Market description */
1275
- marketText?: string;
1276
- icon?: string;
1277
- iconDark?: string;
1278
- /** Deep link URL */
1279
- url?: string;
1280
- /** "LIVE", "UPCOMING", etc. */
1281
- marketStatus?: string;
1282
- /** Point value for totals */
1283
- points?: string;
1284
- accrued?: {
1285
- /** Accrued goal value */
1286
- goal: number;
1287
- };
1288
- }
1289
- export interface IBetEvent {
1290
- /** Event name */
1291
- displayName: string;
1292
- /** Bet legs for this event */
1293
- legs: IBetLeg[];
1294
- }
1295
- export interface IUserBet {
1296
- id: string;
1297
- /** "STRAIGHT", "PARLAY" */
1298
- type: string;
1299
- /** "OPEN", "SETTLED" */
1300
- betStatus: string;
1301
- /** "PENDING", "WIN" */
1302
- outcome: string;
1303
- /** "NOT_SET" */
1304
- overrideOutcome: string;
1305
- /** "10", "2", etc. */
1306
- betAmount: string;
1307
- /** "171.55", "12.00", etc. */
1308
- payoutAmount: string;
1309
- /** "+1616", "+500", etc. */
1310
- odds: string;
1311
- /** ISO date string */
1312
- startTime: string;
1313
- /** ISO date string (for settled bets) */
1314
- closedAtTime?: string;
1315
- /** Events in this bet */
1316
- events: IBetEvent[];
1317
- rewardInfo: {
1318
- /** "NONE", "ODDS_BOOST" */
1319
- type: string;
1320
- icon?: {
1321
- /** URL to light mode icon */
1322
- light: string;
1323
- /** URL to dark mode icon */
1324
- dark: string;
1325
- };
1326
- };
1327
- /** Number of legs in the bet */
1328
- legCount: number;
1329
- /** Whether the bet is no action */
1330
- isNoAction: boolean;
1331
- /** "to win", "you won", etc. */
1332
- betDisplayStatement: string;
1333
- }
1334
- export type BetLiveEvent = {
1335
- /** Event ID */
1336
- id: string;
1337
- /** "football", "basketball", etc. */
1338
- sport: string;
1339
- /** ISO date string */
1340
- date: string;
1341
- /** 'pre' | 'live' | 'post' | 'in' */
1342
- gameState: string;
1343
- bets?: {
1344
- odds: IOdds[];
1345
- };
1346
- featured?: IHotProps[];
1347
- };
1348
- export interface IPersonalizedBetsResponse extends IBetsResponse {
1349
- /** Current Live event data */
1350
- event?: BetLiveEvent;
1351
- betsModule?: {
1352
- /** "live", etc. */
1353
- defaultTab: string;
1354
- upcoming: IUserBet[];
1355
- live: IUserBet[];
1356
- settled: IUserBet[];
1357
- };
1358
- promotion?: {
1359
- /** "FIRST BET RESET" */
1360
- title: string;
1361
- /** Promo description */
1362
- description: string;
1363
- /** URL to logo */
1364
- logo: string;
1365
- /** URL to QR code */
1366
- qrCode: string;
1367
- backgroundImage: string;
1368
- };
1369
- disclaimers?: {
1370
- /** Location-specific disclaimer */
1371
- location?: string;
1372
- /** Gambling disclaimer */
1373
- gambling?: string;
1374
- };
1375
- }
1376
- export {};
1377
- }
1378
-
1379
- declare module '@maestro_io/maestro-web-sdk/modules/bets/types/BetsAnalyticsTypes' {
812
+ declare module '@maestro_io/maestro-web-sdk/modules/espn/bets/types/BetsAnalyticsTypes' {
1380
813
  /**
1381
814
  * Valid bet types as specified in the analytics spec
1382
815
  */
@@ -1387,347 +820,3 @@ declare module '@maestro_io/maestro-web-sdk/modules/bets/types/BetsAnalyticsType
1387
820
  export type BetCardType = '6-pack' | 'my bets > live' | 'my bets > settled' | 'my bets > upcoming' | 'hot-props' | 'promo' | 'disclaimer';
1388
821
  }
1389
822
 
1390
- declare module '@maestro_io/maestro-web-sdk/modules/stats/interfaces/IStats' {
1391
- export interface TeamStatistic {
1392
- $key: string;
1393
- value: number;
1394
- displayValue: string;
1395
- displayName: string;
1396
- }
1397
- export interface Team {
1398
- id: string;
1399
- uid: string;
1400
- slug?: string;
1401
- location?: string;
1402
- name?: string;
1403
- abbreviation: string;
1404
- displayName: string;
1405
- shortDisplayName?: string;
1406
- color?: string;
1407
- alternateColor?: string;
1408
- logo?: string;
1409
- statistics?: TeamStatistic[];
1410
- homeAway?: string;
1411
- record?: string;
1412
- displayOrder?: number;
1413
- }
1414
- interface AthleteLink {
1415
- rel: string[];
1416
- href: string;
1417
- text: string;
1418
- }
1419
- interface AthletePosition {
1420
- name?: string;
1421
- displayName?: string;
1422
- abbreviation: string;
1423
- }
1424
- export interface Athlete {
1425
- id: string;
1426
- uid: string;
1427
- guid: string;
1428
- displayName: string;
1429
- shortName: string;
1430
- jersey: string;
1431
- headshot?: string;
1432
- links?: AthleteLink[];
1433
- position?: AthletePosition;
1434
- statistics?: {
1435
- $key: string;
1436
- value?: number;
1437
- displayValue: string;
1438
- }[];
1439
- }
1440
- export interface EntityMap<T> {
1441
- [id: string]: T;
1442
- }
1443
- export interface LeaderStatistic {
1444
- displayValue: string;
1445
- abbreviation: string;
1446
- }
1447
- interface LeaderAthlete {
1448
- $key: string;
1449
- statistics?: LeaderStatistic[];
1450
- }
1451
- interface LeaderTeam {
1452
- team: {
1453
- $key: string;
1454
- };
1455
- athlete: LeaderAthlete;
1456
- }
1457
- export interface Leader {
1458
- displayName: string;
1459
- name: string;
1460
- home?: LeaderTeam;
1461
- away?: LeaderTeam;
1462
- }
1463
- interface LineScore {
1464
- displayValue: string;
1465
- }
1466
- interface HeaderTeam {
1467
- $key: string;
1468
- score?: string;
1469
- linescores?: LineScore[];
1470
- }
1471
- export interface Header {
1472
- teams: HeaderTeam[];
1473
- linescoresHeader?: string[];
1474
- }
1475
- export interface PredictorTeam {
1476
- team: {
1477
- $key: string;
1478
- };
1479
- gameProjection: string;
1480
- teamChanceLoss?: string;
1481
- }
1482
- export interface Predictor {
1483
- header: string;
1484
- imageUrl: string;
1485
- homeTeam: PredictorTeam;
1486
- awayTeam: PredictorTeam;
1487
- }
1488
- export interface WinProbabilityTeam {
1489
- team: {
1490
- $key: string;
1491
- };
1492
- winPercentage: string;
1493
- }
1494
- export interface WinProbability {
1495
- imageUrl: string;
1496
- homeTeam: WinProbabilityTeam;
1497
- awayTeam: WinProbabilityTeam;
1498
- }
1499
- interface ActiveAthletesTeam {
1500
- team: {
1501
- $key: string;
1502
- };
1503
- athletes: {
1504
- $key: string;
1505
- statLine: string;
1506
- }[];
1507
- }
1508
- export interface ActiveAthletes {
1509
- displayText: string;
1510
- teams: ActiveAthletesTeam[];
1511
- }
1512
- export interface Meta {
1513
- gp_topic: string;
1514
- picker_topic: string;
1515
- lastUpdatedAt?: string;
1516
- firstPlayWallClock?: string;
1517
- lastPlayWallClock?: string;
1518
- gameState: string;
1519
- syncUrl?: string;
1520
- }
1521
- export interface StatsPromotion {
1522
- backgroundImage?: string;
1523
- description?: string;
1524
- logoPng?: string;
1525
- logo?: string;
1526
- qrCode?: string;
1527
- title?: string;
1528
- }
1529
- export interface DrivePlay {
1530
- id: string;
1531
- clock: {
1532
- displayValue: string;
1533
- };
1534
- period: {
1535
- number: number;
1536
- };
1537
- type: {
1538
- text: string;
1539
- };
1540
- text: string;
1541
- start: {
1542
- downDistanceText: string;
1543
- };
1544
- }
1545
- export interface Drive {
1546
- id: string;
1547
- team: {
1548
- $key: string;
1549
- };
1550
- description: string;
1551
- plays: DrivePlay[];
1552
- }
1553
- export interface StatsApiResponse {
1554
- entities: {
1555
- teams: EntityMap<Team>;
1556
- athletes?: EntityMap<Athlete>;
1557
- };
1558
- leaders?: Leader[];
1559
- header: Header;
1560
- predictor: Predictor;
1561
- winProbability?: WinProbability;
1562
- gameState: string;
1563
- activeAthletes?: ActiveAthletes;
1564
- meta: Meta;
1565
- promotion?: StatsPromotion;
1566
- drives?: Drive[];
1567
- previousGames?: {
1568
- displayOrder: number;
1569
- team: {
1570
- $key: string;
1571
- };
1572
- events: {
1573
- team: {
1574
- $key: string;
1575
- homeAway: string;
1576
- };
1577
- score: string;
1578
- gameResult: string;
1579
- }[];
1580
- }[];
1581
- scoringSummary?: {
1582
- title: string;
1583
- sections: {
1584
- title: string;
1585
- items: {
1586
- team: {
1587
- $key: string;
1588
- };
1589
- athlete: {
1590
- $key: string;
1591
- };
1592
- clock: string;
1593
- title: string;
1594
- description: string;
1595
- }[];
1596
- }[];
1597
- };
1598
- penaltySummary?: {
1599
- title: string;
1600
- sections: {
1601
- title: string;
1602
- items: {
1603
- team: {
1604
- $key: string;
1605
- };
1606
- athlete: {
1607
- $key: string;
1608
- };
1609
- clock: string;
1610
- title: string;
1611
- description: string;
1612
- }[];
1613
- }[];
1614
- };
1615
- }
1616
- export {};
1617
- }
1618
-
1619
- declare module '@maestro_io/maestro-web-sdk/modules/stats/view/components/AthletesStatistics/AthletesStatistics' {
1620
- import React from 'react';
1621
- import { WithFocusableProps } from '@/external/spatial-navigation';
1622
- import './AthleteStatistics.styles.css';
1623
- import { LeaderStatistic } from '@/modules/stats/interfaces/IStats';
1624
- type Athlete = {
1625
- id: string;
1626
- displayName: string;
1627
- headshot: string;
1628
- position: string;
1629
- shortName: string;
1630
- jersey: string;
1631
- statistics: LeaderStatistic[];
1632
- minifiedStatistics?: string;
1633
- };
1634
- export type AthletesStatisticsItem = {
1635
- displayName?: string;
1636
- awayAthlete: Athlete;
1637
- homeAthlete: Athlete;
1638
- };
1639
- export type AthletesStatisticsProps = {
1640
- item: AthletesStatisticsItem;
1641
- };
1642
- const _default: {
1643
- new (props: (AthletesStatisticsProps & WithFocusableProps) | Readonly<AthletesStatisticsProps & WithFocusableProps>): {
1644
- state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
1645
- navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
1646
- getChildContext(): {
1647
- parentFocusKey: string;
1648
- };
1649
- setFocus: (focusKey: string) => void;
1650
- navigateByDirection: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
1651
- stealFocus: () => void;
1652
- onUpdateFocus: (focused: boolean) => void;
1653
- onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
1654
- onEnterPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
1655
- onEnterReleaseHandler: () => void;
1656
- onBackPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
1657
- onArrowPressHandler: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details: import("../../../../../external/spatial-navigation/utils").Details) => boolean | void;
1658
- onBecameFocusedHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
1659
- onBecameBlurredHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
1660
- componentDidMount(): void;
1661
- componentDidUpdate(): void;
1662
- componentWillUnmount(): void;
1663
- render(): React.ReactElement<AthletesStatisticsProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
1664
- context: any;
1665
- 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<AthletesStatisticsProps & 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;
1666
- forceUpdate(callback?: (() => void) | undefined): void;
1667
- readonly props: Readonly<AthletesStatisticsProps & WithFocusableProps> & Readonly<{
1668
- children?: React.ReactNode;
1669
- }>;
1670
- refs: {
1671
- [key: string]: React.ReactInstance;
1672
- };
1673
- shouldComponentUpdate?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
1674
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
1675
- getSnapshotBeforeUpdate?(prevProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
1676
- componentWillMount?(): void;
1677
- UNSAFE_componentWillMount?(): void;
1678
- componentWillReceiveProps?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextContext: any): void;
1679
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextContext: any): void;
1680
- componentWillUpdate?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
1681
- UNSAFE_componentWillUpdate?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
1682
- };
1683
- new (props: AthletesStatisticsProps & WithFocusableProps, context: any): {
1684
- state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
1685
- navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
1686
- getChildContext(): {
1687
- parentFocusKey: string;
1688
- };
1689
- setFocus: (focusKey: string) => void;
1690
- navigateByDirection: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
1691
- stealFocus: () => void;
1692
- onUpdateFocus: (focused: boolean) => void;
1693
- onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
1694
- onEnterPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
1695
- onEnterReleaseHandler: () => void;
1696
- onBackPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
1697
- onArrowPressHandler: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details: import("../../../../../external/spatial-navigation/utils").Details) => boolean | void;
1698
- onBecameFocusedHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
1699
- onBecameBlurredHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
1700
- componentDidMount(): void;
1701
- componentDidUpdate(): void;
1702
- componentWillUnmount(): void;
1703
- render(): React.ReactElement<AthletesStatisticsProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
1704
- context: any;
1705
- 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<AthletesStatisticsProps & 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;
1706
- forceUpdate(callback?: (() => void) | undefined): void;
1707
- readonly props: Readonly<AthletesStatisticsProps & WithFocusableProps> & Readonly<{
1708
- children?: React.ReactNode;
1709
- }>;
1710
- refs: {
1711
- [key: string]: React.ReactInstance;
1712
- };
1713
- shouldComponentUpdate?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
1714
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
1715
- getSnapshotBeforeUpdate?(prevProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
1716
- componentWillMount?(): void;
1717
- UNSAFE_componentWillMount?(): void;
1718
- componentWillReceiveProps?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextContext: any): void;
1719
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextContext: any): void;
1720
- componentWillUpdate?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
1721
- UNSAFE_componentWillUpdate?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
1722
- };
1723
- contextTypes: {
1724
- parentFocusKey: import("prop-types").Requireable<string>;
1725
- };
1726
- childContextTypes: {
1727
- parentFocusKey: import("prop-types").Requireable<string>;
1728
- };
1729
- contextType?: React.Context<any> | undefined;
1730
- };
1731
- export default _default;
1732
- }
1733
-