@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
@@ -0,0 +1,66 @@
1
+ import React from 'react';
2
+ import Teams from './Teams';
3
+ import ActiveAthletes from './ActiveAthletes';
4
+ import GameLeaders from './GameLeaders';
5
+ import RecentGames from './RecentGames';
6
+ import WinProbability from './WinProbability';
7
+ import StatsQRCodeView from './StatsQRCode/StatsQRCodeView';
8
+ import MatchPredictorView from './MatchPredictor';
9
+ import TeamStats from './TeamStats';
10
+ import { useScrollableContainer } from '@/components/core/ScrollableContainer';
11
+ import FocusableItem from '@/components/core/ScrollableContainer/FocusableItem';
12
+ import DriveSummary from './DriveSummary';
13
+ import SDK from '@/index';
14
+ import Penalties from './Penalties';
15
+ import PlayerSeasonStats from './PlayerSeasonStats';
16
+ import CareerMatchup from './CareerMatchup';
17
+ import { ScoringSummary } from './ScoringSummary';
18
+ const StatsItemView = ({ item, onEnterPress: onEnterPressProp, }) => {
19
+ const { scrollToFocusedElement } = useScrollableContainer();
20
+ const onBecameFocused = (layout) => {
21
+ scrollToFocusedElement(layout);
22
+ };
23
+ const onArrowPress = (d) => {
24
+ if (d === 'left') {
25
+ SDK.getMaestroEventViewModel().deliverFocus();
26
+ }
27
+ };
28
+ const onEnterPress = (item) => () => {
29
+ onEnterPressProp(item);
30
+ };
31
+ const renderItem = () => {
32
+ switch (item.type) {
33
+ case 'penalties':
34
+ return (React.createElement(Penalties, { onBecameFocused: onBecameFocused, onEnterPress: onEnterPress(item), item: item }));
35
+ case 'scoringSummary':
36
+ return (React.createElement(ScoringSummary, { onBecameFocused: onBecameFocused, onEnterPress: onEnterPress(item), onArrowPress: onArrowPress, item: item }));
37
+ case 'driveSummary':
38
+ return (React.createElement(DriveSummary, { onBecameFocused: onBecameFocused, onItemEnterPress: onEnterPress(item), onArrowPress: onArrowPress, focusKey: `drive-summary-${item.id}`, item: item }));
39
+ case 'headerTeam':
40
+ return (React.createElement(Teams, { onArrowPress: onArrowPress, onBecameFocused: onBecameFocused, onEnterPress: onEnterPress(item), item: item }));
41
+ case 'activeAthletes':
42
+ return (React.createElement(ActiveAthletes, { onBecameFocused: onBecameFocused, onEnterPress: onEnterPress(item), item: item }));
43
+ case 'gameLeaders':
44
+ return React.createElement(GameLeaders, { item: item, onEnterPress: onEnterPress(item) });
45
+ case 'recentGames':
46
+ return (React.createElement(RecentGames, { onArrowPress: onArrowPress, onBecameFocused: onBecameFocused, onEnterPress: onEnterPress(item), item: item }));
47
+ case 'winProbability':
48
+ return (React.createElement(WinProbability, { onArrowPress: onArrowPress, onBecameFocused: onBecameFocused, onEnterPress: onEnterPress(item), item: item }));
49
+ case 'promotion':
50
+ return (React.createElement(StatsQRCodeView, { onBecameFocused: onBecameFocused, onEnterPress: onEnterPress(item), onArrowPress: onArrowPress, promotion: item }));
51
+ case 'matchPredictor':
52
+ return (React.createElement(MatchPredictorView, { onBecameFocused: onBecameFocused, onEnterPress: onEnterPress(item), onArrowPress: onArrowPress, item: item }));
53
+ case 'teamStats':
54
+ return (React.createElement(TeamStats, { onArrowPress: onArrowPress, onBecameFocused: onBecameFocused, onEnterPress: onEnterPress(item), focusKey: "TEAM_STATS", trackChildren: !!item.tabbedStatistics, item: item }));
55
+ case 'playerSeasonStats':
56
+ return (React.createElement(PlayerSeasonStats, { onBecameFocused: onBecameFocused, onEnterPress: onEnterPress(item), onArrowPress: onArrowPress, item: item }));
57
+ case 'careerMatchup':
58
+ return (React.createElement(CareerMatchup, { onArrowPress: onArrowPress, onBecameFocused: onBecameFocused, onEnterPress: onEnterPress(item), item: item }));
59
+ default:
60
+ console.warn('Unknown stats item type:', JSON.stringify(item));
61
+ return null;
62
+ }
63
+ };
64
+ return React.createElement(FocusableItem, null, renderItem());
65
+ };
66
+ export default StatsItemView;
@@ -0,0 +1,100 @@
1
+ /// <reference types="prop-types" />
2
+ import React from 'react';
3
+ import './StatsQRCodeView.styles.css';
4
+ import { WithFocusableProps } from '@/external/spatial-navigation';
5
+ import { StatsPromotion } from '../../interfaces/IStats';
6
+ export interface StatsQRCodeViewProps extends WithFocusableProps {
7
+ promotion: StatsPromotion;
8
+ }
9
+ declare const _default: {
10
+ new (props: (StatsQRCodeViewProps & WithFocusableProps) | Readonly<StatsQRCodeViewProps & WithFocusableProps>): {
11
+ state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
12
+ navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
13
+ getChildContext(): {
14
+ parentFocusKey: string;
15
+ };
16
+ setFocus: (focusKey: string) => void;
17
+ navigateByDirection: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details?: import("../../../../../external/spatial-navigation/utils").Details) => void;
18
+ stealFocus: () => void;
19
+ onUpdateFocus: (focused: boolean) => void;
20
+ onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
21
+ onEnterPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
22
+ onClickPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
23
+ onEnterReleaseHandler: () => void;
24
+ onBackPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
25
+ onArrowPressHandler: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details: import("../../../../../external/spatial-navigation/utils").Details) => boolean | void;
26
+ onBecameFocusedHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
27
+ onBecameBlurredHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
28
+ componentDidMount(): void;
29
+ componentDidUpdate(): void;
30
+ componentWillUnmount(): void;
31
+ render(): React.ReactElement<StatsQRCodeViewProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
32
+ context: any;
33
+ setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<StatsQRCodeViewProps & 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;
34
+ forceUpdate(callback?: (() => void) | undefined): void;
35
+ readonly props: Readonly<StatsQRCodeViewProps & WithFocusableProps> & Readonly<{
36
+ children?: React.ReactNode;
37
+ }>;
38
+ refs: {
39
+ [key: string]: React.ReactInstance;
40
+ };
41
+ shouldComponentUpdate?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
42
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
43
+ getSnapshotBeforeUpdate?(prevProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
44
+ componentWillMount?(): void;
45
+ UNSAFE_componentWillMount?(): void;
46
+ componentWillReceiveProps?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextContext: any): void;
47
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextContext: any): void;
48
+ componentWillUpdate?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
49
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
50
+ };
51
+ new (props: StatsQRCodeViewProps & WithFocusableProps, context: any): {
52
+ state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
53
+ navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
54
+ getChildContext(): {
55
+ parentFocusKey: string;
56
+ };
57
+ setFocus: (focusKey: string) => void;
58
+ navigateByDirection: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details?: import("../../../../../external/spatial-navigation/utils").Details) => void;
59
+ stealFocus: () => void;
60
+ onUpdateFocus: (focused: boolean) => void;
61
+ onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
62
+ onEnterPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
63
+ onClickPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
64
+ onEnterReleaseHandler: () => void;
65
+ onBackPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
66
+ onArrowPressHandler: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details: import("../../../../../external/spatial-navigation/utils").Details) => boolean | void;
67
+ onBecameFocusedHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
68
+ onBecameBlurredHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
69
+ componentDidMount(): void;
70
+ componentDidUpdate(): void;
71
+ componentWillUnmount(): void;
72
+ render(): React.ReactElement<StatsQRCodeViewProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
73
+ context: any;
74
+ setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<StatsQRCodeViewProps & WithFocusableProps>) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
75
+ forceUpdate(callback?: (() => void) | undefined): void;
76
+ readonly props: Readonly<StatsQRCodeViewProps & WithFocusableProps> & Readonly<{
77
+ children?: React.ReactNode;
78
+ }>;
79
+ refs: {
80
+ [key: string]: React.ReactInstance;
81
+ };
82
+ shouldComponentUpdate?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
83
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
84
+ getSnapshotBeforeUpdate?(prevProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
85
+ componentWillMount?(): void;
86
+ UNSAFE_componentWillMount?(): void;
87
+ componentWillReceiveProps?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextContext: any): void;
88
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextContext: any): void;
89
+ componentWillUpdate?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
90
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
91
+ };
92
+ contextTypes: {
93
+ parentFocusKey: import("prop-types").Requireable<string>;
94
+ };
95
+ childContextTypes: {
96
+ parentFocusKey: import("prop-types").Requireable<string>;
97
+ };
98
+ contextType?: React.Context<any> | undefined;
99
+ };
100
+ export default _default;
@@ -13,6 +13,7 @@ declare class StatsView extends Component<{}, StatsViewState> {
13
13
  private statsDataUnsub;
14
14
  private isDataLoadingUnsub;
15
15
  private errorStateListener;
16
+ private maxHeightCleanup;
16
17
  private vm;
17
18
  constructor(props: {});
18
19
  get viewModel(): StatsViewModel;
@@ -21,6 +22,7 @@ declare class StatsView extends Component<{}, StatsViewState> {
21
22
  clearTabLoadFailure: () => void;
22
23
  onArrowPress: (d: Direction) => void;
23
24
  renderItems: () => JSX.Element | JSX.Element[] | null;
25
+ setContainerRef: (e: HTMLDivElement | null) => void;
24
26
  onEnterPress: (item: StatsItem) => void;
25
27
  render(): JSX.Element;
26
28
  }
@@ -5,6 +5,7 @@ import SDK from '@/index';
5
5
  import StatsItemView from './StatsItemView';
6
6
  import TabLoadErrorView from '@/components/molecules/TabLoadError';
7
7
  import { captureException } from '@/sentry';
8
+ import { setupMaxHeightToBottom } from '@/hooks/useMaxHeightToBottom';
8
9
  const STICKY_HEADER_HEIGHT = 32; // Match KeyPlaysView
9
10
  class StatsView extends Component {
10
11
  constructor(props) {
@@ -33,6 +34,12 @@ class StatsView extends Component {
33
34
  writable: true,
34
35
  value: null
35
36
  });
37
+ Object.defineProperty(this, "maxHeightCleanup", {
38
+ enumerable: true,
39
+ configurable: true,
40
+ writable: true,
41
+ value: null
42
+ });
36
43
  Object.defineProperty(this, "vm", {
37
44
  enumerable: true,
38
45
  configurable: true,
@@ -76,6 +83,25 @@ class StatsView extends Component {
76
83
  }
77
84
  }
78
85
  });
86
+ Object.defineProperty(this, "setContainerRef", {
87
+ enumerable: true,
88
+ configurable: true,
89
+ writable: true,
90
+ value: (e) => {
91
+ if (e && !this.container) {
92
+ this.container = e;
93
+ }
94
+ if (this.container !== e) {
95
+ this.container = e;
96
+ if (this.maxHeightCleanup) {
97
+ this.maxHeightCleanup();
98
+ }
99
+ if (this.container) {
100
+ this.maxHeightCleanup = setupMaxHeightToBottom(() => this.container);
101
+ }
102
+ }
103
+ }
104
+ });
79
105
  Object.defineProperty(this, "onEnterPress", {
80
106
  enumerable: true,
81
107
  configurable: true,
@@ -84,7 +110,8 @@ class StatsView extends Component {
84
110
  this.viewModel.onEngage(item.type);
85
111
  }
86
112
  });
87
- this.vm = SDK.getMaestroEventViewModel().statsViewModel;
113
+ this.vm = SDK.getMaestroEventViewModel()
114
+ .statsViewModel;
88
115
  this.state = {
89
116
  container: null,
90
117
  isDataLoading: this.viewModel.isDataLoading.value,
@@ -102,6 +129,7 @@ class StatsView extends Component {
102
129
  this.setState({
103
130
  container: this.container,
104
131
  });
132
+ this.maxHeightCleanup = setupMaxHeightToBottom(() => this.container);
105
133
  this.statsDataUnsub = this.viewModel.statsItems.subscribe((value) => {
106
134
  this.setState({ statsItems: value });
107
135
  });
@@ -121,15 +149,14 @@ class StatsView extends Component {
121
149
  this.statsDataUnsub && this.statsDataUnsub();
122
150
  this.isDataLoadingUnsub && this.isDataLoadingUnsub();
123
151
  this.errorStateListener && this.errorStateListener();
152
+ this.maxHeightCleanup && this.maxHeightCleanup();
124
153
  // Clean up the view model
125
154
  this.viewModel.cleanup();
126
155
  }
127
156
  render() {
128
157
  const { container } = this.state;
129
158
  return (React.createElement(ScrollableContainer, { scrollableContainerRef: container, containerTopOffset: STICKY_HEADER_HEIGHT },
130
- React.createElement("div", { ref: (el) => {
131
- this.container = el;
132
- }, className: "stats-view" },
159
+ React.createElement("div", { ref: this.setContainerRef, className: "stats-view" },
133
160
  this.renderItems(),
134
161
  React.createElement("div", { className: "stats-bottom-padding" }))));
135
162
  }
@@ -3,33 +3,35 @@ import React from 'react';
3
3
  import './TeamStatsView.styles.css';
4
4
  import { WithFocusableProps } from '@/external/spatial-navigation';
5
5
  import { TeamStatsItem } from '../../view-model/StatsViewModel';
6
+ import { Details, Direction } from '@/external/spatial-navigation/utils';
6
7
  export interface TeamStatsViewProps {
7
8
  item: TeamStatsItem;
8
9
  }
9
10
  declare const _default: {
10
11
  new (props: (TeamStatsViewProps & WithFocusableProps) | Readonly<TeamStatsViewProps & WithFocusableProps>): {
11
- state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
12
- navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
12
+ state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
13
+ navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
13
14
  getChildContext(): {
14
15
  parentFocusKey: string;
15
16
  };
16
17
  setFocus: (focusKey: string) => void;
17
- navigateByDirection: (direction: import("../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
18
+ navigateByDirection: (direction: Direction, details?: Details) => void;
18
19
  stealFocus: () => void;
19
20
  onUpdateFocus: (focused: boolean) => void;
20
21
  onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
21
- onEnterPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
22
+ onEnterPressHandler: (details: Details) => void;
23
+ onClickPressHandler: (details: Details) => void;
22
24
  onEnterReleaseHandler: () => void;
23
- onBackPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
24
- onArrowPressHandler: (direction: import("../../../../external/spatial-navigation/utils").Direction, details: import("../../../../external/spatial-navigation/utils").Details) => boolean | void;
25
- onBecameFocusedHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
26
- onBecameBlurredHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
25
+ onBackPressHandler: (details: Details) => void;
26
+ onArrowPressHandler: (direction: Direction, details: Details) => boolean | void;
27
+ onBecameFocusedHandler: (layout: import("@/external/spatial-navigation/utils").Layout, details: Details) => void;
28
+ onBecameBlurredHandler: (layout: import("@/external/spatial-navigation/utils").Layout, details: Details) => void;
27
29
  componentDidMount(): void;
28
30
  componentDidUpdate(): void;
29
31
  componentWillUnmount(): void;
30
32
  render(): React.ReactElement<TeamStatsViewProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
31
33
  context: any;
32
- 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<TeamStatsViewProps & 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;
34
+ setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<TeamStatsViewProps & 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;
33
35
  forceUpdate(callback?: (() => void) | undefined): void;
34
36
  readonly props: Readonly<TeamStatsViewProps & WithFocusableProps> & Readonly<{
35
37
  children?: React.ReactNode;
@@ -37,39 +39,40 @@ declare const _default: {
37
39
  refs: {
38
40
  [key: string]: React.ReactInstance;
39
41
  };
40
- shouldComponentUpdate?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
42
+ shouldComponentUpdate?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
41
43
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
42
- getSnapshotBeforeUpdate?(prevProps: Readonly<TeamStatsViewProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
44
+ getSnapshotBeforeUpdate?(prevProps: Readonly<TeamStatsViewProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
43
45
  componentWillMount?(): void;
44
46
  UNSAFE_componentWillMount?(): void;
45
47
  componentWillReceiveProps?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextContext: any): void;
46
48
  UNSAFE_componentWillReceiveProps?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextContext: any): void;
47
- componentWillUpdate?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
48
- UNSAFE_componentWillUpdate?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
49
+ componentWillUpdate?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
50
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
49
51
  };
50
52
  new (props: TeamStatsViewProps & WithFocusableProps, context: any): {
51
- state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
52
- navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
53
+ state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
54
+ navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
53
55
  getChildContext(): {
54
56
  parentFocusKey: string;
55
57
  };
56
58
  setFocus: (focusKey: string) => void;
57
- navigateByDirection: (direction: import("../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
59
+ navigateByDirection: (direction: Direction, details?: Details) => void;
58
60
  stealFocus: () => void;
59
61
  onUpdateFocus: (focused: boolean) => void;
60
62
  onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
61
- onEnterPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
63
+ onEnterPressHandler: (details: Details) => void;
64
+ onClickPressHandler: (details: Details) => void;
62
65
  onEnterReleaseHandler: () => void;
63
- onBackPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
64
- onArrowPressHandler: (direction: import("../../../../external/spatial-navigation/utils").Direction, details: import("../../../../external/spatial-navigation/utils").Details) => boolean | void;
65
- onBecameFocusedHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
66
- onBecameBlurredHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
66
+ onBackPressHandler: (details: Details) => void;
67
+ onArrowPressHandler: (direction: Direction, details: Details) => boolean | void;
68
+ onBecameFocusedHandler: (layout: import("@/external/spatial-navigation/utils").Layout, details: Details) => void;
69
+ onBecameBlurredHandler: (layout: import("@/external/spatial-navigation/utils").Layout, details: Details) => void;
67
70
  componentDidMount(): void;
68
71
  componentDidUpdate(): void;
69
72
  componentWillUnmount(): void;
70
73
  render(): React.ReactElement<TeamStatsViewProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
71
74
  context: any;
72
- 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<TeamStatsViewProps & WithFocusableProps>) => import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
75
+ 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<TeamStatsViewProps & 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;
73
76
  forceUpdate(callback?: (() => void) | undefined): void;
74
77
  readonly props: Readonly<TeamStatsViewProps & WithFocusableProps> & Readonly<{
75
78
  children?: React.ReactNode;
@@ -77,15 +80,15 @@ declare const _default: {
77
80
  refs: {
78
81
  [key: string]: React.ReactInstance;
79
82
  };
80
- shouldComponentUpdate?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
83
+ shouldComponentUpdate?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
81
84
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
82
- getSnapshotBeforeUpdate?(prevProps: Readonly<TeamStatsViewProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
85
+ getSnapshotBeforeUpdate?(prevProps: Readonly<TeamStatsViewProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
83
86
  componentWillMount?(): void;
84
87
  UNSAFE_componentWillMount?(): void;
85
88
  componentWillReceiveProps?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextContext: any): void;
86
89
  UNSAFE_componentWillReceiveProps?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextContext: any): void;
87
- componentWillUpdate?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
88
- UNSAFE_componentWillUpdate?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
90
+ componentWillUpdate?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
91
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
89
92
  };
90
93
  contextTypes: {
91
94
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -0,0 +1,77 @@
1
+ import React from 'react';
2
+ import './TeamStatsView.styles.css';
3
+ import Image from '@/components/atoms/Image';
4
+ import { withFocusable, } from '@/external/spatial-navigation';
5
+ import TeamStatistic from '../../components/TeamStatistic';
6
+ import ActionButton from '@/components/molecules/ActionButton';
7
+ const TeamStatsView = (props) => {
8
+ const { item } = props;
9
+ const { homeTeam, awayTeam, statistics, title, tabbedStatistics } = item;
10
+ const [tabbedViewKey, setTabbedViewKey] = React.useState(() => {
11
+ if (!tabbedStatistics || Object.keys(tabbedStatistics).length === 0) {
12
+ return null;
13
+ }
14
+ return Object.keys(tabbedStatistics)[0];
15
+ });
16
+ const [prevTabbedStatistics, setPrevTabbedStatistics] = React.useState(tabbedStatistics);
17
+ if (tabbedStatistics &&
18
+ prevTabbedStatistics !== tabbedStatistics &&
19
+ tabbedViewKey &&
20
+ !tabbedStatistics[tabbedViewKey]) {
21
+ // Current tabbedViewKey is no longer valid, switch to first key
22
+ setTabbedViewKey(Object.keys(tabbedStatistics)[0]);
23
+ setPrevTabbedStatistics(tabbedStatistics);
24
+ }
25
+ const renderStatistic = (statistic, index) => {
26
+ const key = statistic.displayName?.trim() || `stat-${index}`;
27
+ return (React.createElement(TeamStatistic, { key: key, statisticName: statistic.displayName, firstDisplayValue: statistic.awayTeamDisplayValue, secondDisplayValue: statistic.homeTeamDisplayValue, awayProgressValue: statistic.awayTeamValue, homeProgressValue: statistic.homeTeamValue, classNames: {
28
+ container: 'team-stat-item',
29
+ header: 'stat-header',
30
+ firstValue: 'stat-value T30 away-value FONT_BOLD_HEADLINE',
31
+ secondValue: 'stat-value T30 home-value FONT_BOLD_HEADLINE',
32
+ statisticName: 'stat-name T02 FONT_BOLD',
33
+ } }));
34
+ };
35
+ const renderStatistics = () => {
36
+ if (statistics) {
37
+ return statistics?.map(renderStatistic);
38
+ }
39
+ if (tabbedViewKey && tabbedStatistics && tabbedStatistics[tabbedViewKey]) {
40
+ return tabbedStatistics[tabbedViewKey].entries.map(renderStatistic);
41
+ }
42
+ return null;
43
+ };
44
+ const onTabbedViewButtonArrowPress = (key) => (d, innerProps, details) => {
45
+ if (d === 'left' && key === Object.keys(tabbedStatistics || {})[0]) {
46
+ props.onArrowPress?.(d, innerProps, details);
47
+ }
48
+ };
49
+ const renderTabbedView = () => {
50
+ const tabbedStats = tabbedStatistics || {};
51
+ if (!tabbedStats || Object.keys(tabbedStats).length === 0) {
52
+ return null;
53
+ }
54
+ return (React.createElement("div", { className: "team-stats-tabs" }, Object.keys(tabbedStats).map((key) => {
55
+ return (React.createElement(ActionButton, { key: key, onArrowPress: onTabbedViewButtonArrowPress(key), onBecameFocused: () => setTabbedViewKey(key), onEnterPress: props.onEnterPress, "data-focused": props.hasFocusedChild && tabbedViewKey === key, parentFocusKey: "TEAM_STATS", "data-active": tabbedViewKey === key }, tabbedStats[key].title));
56
+ })));
57
+ };
58
+ return (React.createElement("section", { className: "team-stats-view focus-ring", "data-focused": props.focused || props.hasFocusedChild, style: {
59
+ '--home-team': `#${homeTeam.color}`,
60
+ '--away-team': `#${awayTeam.color}`,
61
+ } },
62
+ renderTabbedView(),
63
+ React.createElement("div", { className: "team-stats-header" },
64
+ React.createElement("div", { className: "team-stats-team away-team" },
65
+ React.createElement("div", { className: "team-stats-team-inner" },
66
+ awayTeam.logo && (React.createElement(Image, { src: awayTeam.logo, alt: awayTeam.displayName, crossOrigin: "anonymous", className: "team-logo" })),
67
+ React.createElement("div", { className: "team-swatch away-swatch" }),
68
+ React.createElement("span", { className: "team-abbreviation" }, awayTeam.abbreviation))),
69
+ React.createElement("h2", { className: "stats-title T05_ALT FONT_BOLD" }, title),
70
+ React.createElement("div", { className: "team-stats-team home-team" },
71
+ React.createElement("div", { className: "team-stats-team-inner" },
72
+ React.createElement("span", { className: "team-abbreviation" }, homeTeam.abbreviation),
73
+ React.createElement("div", { className: "team-swatch home-swatch" }),
74
+ homeTeam.logo && (React.createElement(Image, { src: homeTeam.logo, alt: homeTeam.displayName, crossOrigin: "anonymous", className: "team-logo" }))))),
75
+ React.createElement("div", { className: "team-stats-content" }, renderStatistics())));
76
+ };
77
+ export default withFocusable()(TeamStatsView);
@@ -0,0 +1,100 @@
1
+ /// <reference types="prop-types" />
2
+ import React from 'react';
3
+ import './TeamsView.styles.css';
4
+ import { WithFocusableProps } from '@/external/spatial-navigation';
5
+ import { HeaderTeamStatItem } from '../../view-model/StatsViewModel';
6
+ type TeamsProps = {
7
+ item: HeaderTeamStatItem;
8
+ };
9
+ declare const _default: {
10
+ new (props: (TeamsProps & WithFocusableProps) | Readonly<TeamsProps & WithFocusableProps>): {
11
+ state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
12
+ navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
13
+ getChildContext(): {
14
+ parentFocusKey: string;
15
+ };
16
+ setFocus: (focusKey: string) => void;
17
+ navigateByDirection: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details?: import("../../../../../external/spatial-navigation/utils").Details) => void;
18
+ stealFocus: () => void;
19
+ onUpdateFocus: (focused: boolean) => void;
20
+ onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
21
+ onEnterPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
22
+ onClickPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
23
+ onEnterReleaseHandler: () => void;
24
+ onBackPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
25
+ onArrowPressHandler: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details: import("../../../../../external/spatial-navigation/utils").Details) => boolean | void;
26
+ onBecameFocusedHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
27
+ onBecameBlurredHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
28
+ componentDidMount(): void;
29
+ componentDidUpdate(): void;
30
+ componentWillUnmount(): void;
31
+ render(): React.ReactElement<TeamsProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
32
+ context: any;
33
+ setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<TeamsProps & 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;
34
+ forceUpdate(callback?: (() => void) | undefined): void;
35
+ readonly props: Readonly<TeamsProps & WithFocusableProps> & Readonly<{
36
+ children?: React.ReactNode;
37
+ }>;
38
+ refs: {
39
+ [key: string]: React.ReactInstance;
40
+ };
41
+ shouldComponentUpdate?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
42
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
43
+ getSnapshotBeforeUpdate?(prevProps: Readonly<TeamsProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
44
+ componentWillMount?(): void;
45
+ UNSAFE_componentWillMount?(): void;
46
+ componentWillReceiveProps?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextContext: any): void;
47
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextContext: any): void;
48
+ componentWillUpdate?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
49
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
50
+ };
51
+ new (props: TeamsProps & WithFocusableProps, context: any): {
52
+ state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
53
+ navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
54
+ getChildContext(): {
55
+ parentFocusKey: string;
56
+ };
57
+ setFocus: (focusKey: string) => void;
58
+ navigateByDirection: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details?: import("../../../../../external/spatial-navigation/utils").Details) => void;
59
+ stealFocus: () => void;
60
+ onUpdateFocus: (focused: boolean) => void;
61
+ onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
62
+ onEnterPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
63
+ onClickPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
64
+ onEnterReleaseHandler: () => void;
65
+ onBackPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
66
+ onArrowPressHandler: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details: import("../../../../../external/spatial-navigation/utils").Details) => boolean | void;
67
+ onBecameFocusedHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
68
+ onBecameBlurredHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
69
+ componentDidMount(): void;
70
+ componentDidUpdate(): void;
71
+ componentWillUnmount(): void;
72
+ render(): React.ReactElement<TeamsProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
73
+ context: any;
74
+ setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<TeamsProps & WithFocusableProps>) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
75
+ forceUpdate(callback?: (() => void) | undefined): void;
76
+ readonly props: Readonly<TeamsProps & WithFocusableProps> & Readonly<{
77
+ children?: React.ReactNode;
78
+ }>;
79
+ refs: {
80
+ [key: string]: React.ReactInstance;
81
+ };
82
+ shouldComponentUpdate?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
83
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
84
+ getSnapshotBeforeUpdate?(prevProps: Readonly<TeamsProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
85
+ componentWillMount?(): void;
86
+ UNSAFE_componentWillMount?(): void;
87
+ componentWillReceiveProps?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextContext: any): void;
88
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextContext: any): void;
89
+ componentWillUpdate?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
90
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
91
+ };
92
+ contextTypes: {
93
+ parentFocusKey: import("prop-types").Requireable<string>;
94
+ };
95
+ childContextTypes: {
96
+ parentFocusKey: import("prop-types").Requireable<string>;
97
+ };
98
+ contextType?: React.Context<any> | undefined;
99
+ };
100
+ export default _default;