@maestro_io/maestro-web-sdk 2.1.2 → 2.2.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 (186) hide show
  1. package/dist/MaestroEventDelegate.d.ts +1 -0
  2. package/dist/components/atoms/Rive/index.d.ts +1 -0
  3. package/dist/components/atoms/SvgIcon/Icon.d.ts +0 -2
  4. package/dist/components/core/ScrollableContainer/ScrollableContainer.d.ts +3 -1
  5. package/dist/components/molecules/ActionButton/ActionButton.d.ts +1 -0
  6. package/dist/components/molecules/PanelNavButton/PanelNavButton.d.ts +1 -0
  7. package/dist/components/organisms/SegmentController/SegmentController.d.ts +2 -2
  8. package/dist/external/spatial-navigation/index.d.ts +2 -3
  9. package/dist/external/spatial-navigation/spatialNavigation.d.ts +3 -5
  10. package/dist/external/spatial-navigation/withFocusable.d.ts +1 -0
  11. package/dist/interfaces/IMaestroEvent.d.ts +14 -0
  12. package/dist/interfaces/IMaestroEventDelegate.d.ts +19 -6
  13. package/dist/maestro-web-sdk.umd.js +3 -3
  14. package/dist/maestro-web-sdk.umd.js.map +1 -1
  15. package/dist/models/IPanel.d.ts +1 -2
  16. package/dist/modules/bets/view/HotProps/HotPropsView.d.ts +7 -6
  17. package/dist/modules/bets/view/SixPack/SixPackView.d.ts +2 -2
  18. package/dist/modules/bets/view/TabLoadFailureView.d.ts +1 -0
  19. package/dist/modules/bets/view/UserBets/BetsCard/BetsCard.d.ts +7 -6
  20. package/dist/modules/bets/view/components/Bet/Bet.d.ts +1 -0
  21. package/dist/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.d.ts +2 -2
  22. package/dist/modules/key-plays/view/KeyPlayCardView.d.ts +0 -4
  23. package/dist/modules/stats/interfaces/IStats.d.ts +44 -15
  24. package/dist/modules/stats/utils/driveSummaryUtils.d.ts +18 -0
  25. package/dist/modules/stats/utils/renderTeamStatistic.d.ts +21 -0
  26. package/dist/modules/stats/view/ActiveAthletes/ActiveAthletes.d.ts +21 -0
  27. package/dist/modules/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.d.ts +5 -0
  28. package/dist/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.d.ts +10 -0
  29. package/dist/modules/stats/view/ActiveAthletes/index.d.ts +2 -0
  30. package/dist/modules/stats/view/DriveSummary/DrivePlayCard.d.ts +26 -0
  31. package/dist/modules/stats/view/DriveSummary/DriveSummary.d.ts +24 -0
  32. package/dist/modules/stats/view/DriveSummary/index.d.ts +2 -0
  33. package/dist/modules/stats/view/GameLeaders/GameLeaders.d.ts +15 -25
  34. package/dist/modules/stats/view/MatchPredictor/MatchPredictorView.d.ts +13 -47
  35. package/dist/modules/stats/view/RecentGames/RecentGames.d.ts +11 -21
  36. package/dist/modules/stats/view/StatsItemView.d.ts +19 -0
  37. package/dist/modules/stats/view/StatsQRCode/StatsQRCodeView.d.ts +1 -0
  38. package/dist/modules/stats/view/StatsView.d.ts +3 -3
  39. package/dist/modules/stats/view/TeamStats/TeamStatsView.d.ts +52 -0
  40. package/dist/modules/stats/view/TeamStats/index.d.ts +2 -0
  41. package/dist/modules/stats/view/Teams/Teams.d.ts +11 -26
  42. package/dist/modules/stats/view/WinProbability/WinProbability.d.ts +11 -21
  43. package/dist/modules/stats/view/components/AthletesStatistics/AthletesStatistics.d.ts +19 -3
  44. package/dist/modules/stats/view/components/AthletesStatistics/StatisticTable.d.ts +2 -8
  45. package/dist/modules/stats/view/index.d.ts +1 -0
  46. package/dist/modules/stats/view-model/StatsViewModel.d.ts +149 -5
  47. package/dist/services/StatsService.d.ts +36 -0
  48. package/dist/view-models/MaestroEventViewModel.d.ts +7 -0
  49. package/package.json +1 -1
  50. package/dist/MaestroEventDelegate.js +0 -60
  51. package/dist/components/atoms/BaseButton/BaseButton.js +0 -11
  52. package/dist/components/atoms/BaseButton/index.js +0 -2
  53. package/dist/components/atoms/Image/index.js +0 -30
  54. package/dist/components/atoms/Rive/index.js +0 -52
  55. package/dist/components/atoms/SvgIcon/BetGeneralIcon.js +0 -9
  56. package/dist/components/atoms/SvgIcon/BetsIcon.js +0 -11
  57. package/dist/components/atoms/SvgIcon/BetsWarningIcon.js +0 -11
  58. package/dist/components/atoms/SvgIcon/CheckmarkIcon.js +0 -6
  59. package/dist/components/atoms/SvgIcon/CollapseIcon.js +0 -6
  60. package/dist/components/atoms/SvgIcon/ExpandIcon.js +0 -6
  61. package/dist/components/atoms/SvgIcon/FantasyIcon.d.ts +0 -6
  62. package/dist/components/atoms/SvgIcon/FantasyIcon.js +0 -8
  63. package/dist/components/atoms/SvgIcon/FlameIcon.js +0 -11
  64. package/dist/components/atoms/SvgIcon/Icon.js +0 -42
  65. package/dist/components/atoms/SvgIcon/KeyPlaysIcon.js +0 -10
  66. package/dist/components/atoms/SvgIcon/MobilePhoneIcon.js +0 -11
  67. package/dist/components/atoms/SvgIcon/PlayIcon.js +0 -8
  68. package/dist/components/atoms/SvgIcon/StatsIcon.js +0 -12
  69. package/dist/components/atoms/SvgIcon/TimesIcon.js +0 -6
  70. package/dist/components/atoms/SvgIcon/WarningIcon.js +0 -8
  71. package/dist/components/atoms/SvgIcon/index.js +0 -2
  72. package/dist/components/core/App/App.js +0 -41
  73. package/dist/components/core/App/index.js +0 -2
  74. package/dist/components/core/OverlayContainer.js +0 -58
  75. package/dist/components/core/PanelManager/PanelManager.js +0 -80
  76. package/dist/components/core/PanelManager/index.js +0 -2
  77. package/dist/components/core/ScrollableContainer/FocusableItem.js +0 -38
  78. package/dist/components/core/ScrollableContainer/ScrollableContainer.js +0 -166
  79. package/dist/components/core/ScrollableContainer/index.js +0 -2
  80. package/dist/components/molecules/ActionButton/ActionButton.js +0 -10
  81. package/dist/components/molecules/ActionButton/index.js +0 -2
  82. package/dist/components/molecules/Overlay/Overlay.js +0 -139
  83. package/dist/components/molecules/Overlay/index.js +0 -2
  84. package/dist/components/molecules/PanelNavButton/PanelNavButton.js +0 -40
  85. package/dist/components/molecules/PanelNavButton/index.js +0 -2
  86. package/dist/components/molecules/SegmentButton/SegmentButton.js +0 -10
  87. package/dist/components/molecules/SegmentButton/index.js +0 -2
  88. package/dist/components/molecules/WatchButton/WatchButton.js +0 -15
  89. package/dist/components/molecules/WatchButton/index.js +0 -2
  90. package/dist/components/organisms/PanelNavigation/PanelNavigation.js +0 -72
  91. package/dist/components/organisms/PanelNavigation/index.js +0 -2
  92. package/dist/components/organisms/SegmentController/SegmentController.js +0 -69
  93. package/dist/components/organisms/SegmentController/index.js +0 -2
  94. package/dist/external/AxiosNetworkClient.js +0 -83
  95. package/dist/external/LocalStorageCacheManager.js +0 -213
  96. package/dist/external/ReactRenderer.js +0 -86
  97. package/dist/external/mocks/MockExternalNetworkClient.js +0 -161
  98. package/dist/external/ports/cacheManager.js +0 -1
  99. package/dist/external/ports/networkClient.js +0 -1
  100. package/dist/external/ports/renderer.js +0 -1
  101. package/dist/external/spatial-navigation/index.js +0 -4
  102. package/dist/external/spatial-navigation/measureLayout.js +0 -30
  103. package/dist/external/spatial-navigation/spatialNavigation.js +0 -875
  104. package/dist/external/spatial-navigation/utils.js +0 -6
  105. package/dist/external/spatial-navigation/visualDebugger.js +0 -76
  106. package/dist/external/spatial-navigation/withFocusable.js +0 -238
  107. package/dist/helpers/Observable.js +0 -37
  108. package/dist/helpers/deliver-focus.d.ts +0 -5
  109. package/dist/helpers/deliver-focus.js +0 -12
  110. package/dist/index.js +0 -192
  111. package/dist/interfaces/IMaestroEvent.js +0 -6
  112. package/dist/interfaces/IMaestroEventDelegate.js +0 -1
  113. package/dist/interfaces/IMaestroManager.js +0 -1
  114. package/dist/models/IModel.js +0 -1
  115. package/dist/models/IPanel.js +0 -53
  116. package/dist/models/ITheme.js +0 -20
  117. package/dist/models/IWinningBet.js +0 -1
  118. package/dist/modules/bets/interfaces/IBets.js +0 -1
  119. package/dist/modules/bets/mocks.js +0 -572
  120. package/dist/modules/bets/view/BetsView.js +0 -116
  121. package/dist/modules/bets/view/HotProps/HotPropsView.js +0 -139
  122. package/dist/modules/bets/view/SixPack/SixPackView.js +0 -103
  123. package/dist/modules/bets/view/TabLoadFailureView.js +0 -12
  124. package/dist/modules/bets/view/UserBets/BetResult/BetResult.js +0 -6
  125. package/dist/modules/bets/view/UserBets/BetsCard/BetsCard.js +0 -122
  126. package/dist/modules/bets/view/UserBets/BetsCard/BetsCardEvent.js +0 -34
  127. package/dist/modules/bets/view/UserBets/BetsCard/BetsCardFooter.js +0 -22
  128. package/dist/modules/bets/view/UserBets/Boost/Boost.js +0 -6
  129. package/dist/modules/bets/view/UserBets/OutcomeBadge/OutcomeBadge.js +0 -9
  130. package/dist/modules/bets/view/UserBets/Parlay/Parlay.js +0 -13
  131. package/dist/modules/bets/view/UserBets/Straight/Straight.js +0 -6
  132. package/dist/modules/bets/view/UserBets/Teaser/Teaser.js +0 -13
  133. package/dist/modules/bets/view/UserBets/UserBetsView.js +0 -114
  134. package/dist/modules/bets/view/components/Bet/Bet.js +0 -32
  135. package/dist/modules/bets/view/components/BetPill/BetPill.js +0 -6
  136. package/dist/modules/bets/view/components/BetsCard/BetsCard.js +0 -15
  137. package/dist/modules/bets/view/components/BetsCard/BetsCardHeader.js +0 -20
  138. package/dist/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.js +0 -14
  139. package/dist/modules/bets/view/components/LocationWarning/LocationWarning.js +0 -16
  140. package/dist/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.js +0 -63
  141. package/dist/modules/bets/view/components/PromoCodeBanner/index.js +0 -1
  142. package/dist/modules/bets/view-model/BetsViewModel.js +0 -767
  143. package/dist/modules/key-plays/constants.js +0 -292
  144. package/dist/modules/key-plays/interfaces/IKeyPlays.js +0 -14
  145. package/dist/modules/key-plays/interfaces/IKeyPlaysResponse.js +0 -1
  146. package/dist/modules/key-plays/view/KeyPlayCardScoreTagView.js +0 -13
  147. package/dist/modules/key-plays/view/KeyPlayCardView.js +0 -142
  148. package/dist/modules/key-plays/view/KeyPlayErrorStateView.js +0 -58
  149. package/dist/modules/key-plays/view/KeyPlaysView.js +0 -167
  150. package/dist/modules/key-plays/view-model/KeyPlaysViewModel.js +0 -182
  151. package/dist/modules/stats/interfaces/IStats.js +0 -1
  152. package/dist/modules/stats/mocks.js +0 -546
  153. package/dist/modules/stats/utils.js +0 -62
  154. package/dist/modules/stats/view/GameLeaders/GameLeaders.js +0 -9
  155. package/dist/modules/stats/view/GameLeaders/index.js +0 -2
  156. package/dist/modules/stats/view/MatchPredictor/DonutChart/DonutChart.js +0 -55
  157. package/dist/modules/stats/view/MatchPredictor/DonutChart/index.js +0 -1
  158. package/dist/modules/stats/view/MatchPredictor/MatchPredictorView.js +0 -66
  159. package/dist/modules/stats/view/MatchPredictor/index.js +0 -2
  160. package/dist/modules/stats/view/RecentGames/RecentGames.js +0 -22
  161. package/dist/modules/stats/view/RecentGames/index.js +0 -2
  162. package/dist/modules/stats/view/StatsQRCode/StatsQRCodeView.js +0 -38
  163. package/dist/modules/stats/view/StatsQRCode/index.js +0 -1
  164. package/dist/modules/stats/view/StatsView.js +0 -87
  165. package/dist/modules/stats/view/Teams/StatsCarousel.js +0 -14
  166. package/dist/modules/stats/view/Teams/StatsProgressBar.js +0 -14
  167. package/dist/modules/stats/view/Teams/Teams.js +0 -35
  168. package/dist/modules/stats/view/Teams/index.js +0 -2
  169. package/dist/modules/stats/view/WinProbability/WinProbability.js +0 -27
  170. package/dist/modules/stats/view/WinProbability/index.js +0 -2
  171. package/dist/modules/stats/view/components/AthletesStatistics/AthletesStatistics.js +0 -28
  172. package/dist/modules/stats/view/components/AthletesStatistics/StatisticTable.js +0 -11
  173. package/dist/modules/stats/view/components/AthletesStatistics/index.js +0 -2
  174. package/dist/modules/stats/view/index.js +0 -1
  175. package/dist/modules/stats/view-model/StatsViewModel.js +0 -90
  176. package/dist/services/BetsService.js +0 -102
  177. package/dist/services/NetworkManager/NetworkManager.js +0 -410
  178. package/dist/services/NetworkManager/errors.js +0 -45
  179. package/dist/services/ThemeManager/constants.js +0 -47
  180. package/dist/test-polyfills.js +0 -15
  181. package/dist/types/OverlayTypes.js +0 -4
  182. package/dist/view-models/MaestroEventViewModel.js +0 -156
  183. package/dist/view-models/OverlayViewModel.js +0 -222
  184. package/dist/view-models/PanelManagerViewModel.js +0 -80
  185. package/dist/view-models/ViewModel.js +0 -32
  186. package/dist/view-models/index.js +0 -59
@@ -1,292 +0,0 @@
1
- export const KEY_PLAYS_RESPONSE_MOCK_DATA = {
2
- entities: {
3
- team: {
4
- '251': {
5
- id: '251',
6
- displayName: 'Texas Longhorns',
7
- color: 'c15d26',
8
- alternateColor: 'ffffff',
9
- shortName: 'Texas',
10
- homeAway: 'away',
11
- displayOrder: '1',
12
- logoRef: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/teams/251.jpg?w=184&h=144',
13
- logoDarkRef: 'https://a.espncdn.com/i/teamlogos/ncaa/500-dark/251.png',
14
- },
15
- '264': {
16
- id: '264',
17
- displayName: 'Washington Huskies',
18
- color: '33006f',
19
- alternateColor: 'e8d3a2',
20
- shortName: 'Washington',
21
- homeAway: 'home',
22
- displayOrder: '0',
23
- logoRef: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/teams/264.jpg?w=184&h=144',
24
- logoDarkRef: 'https://a.espncdn.com/i/teamlogos/ncaa/500-dark/264.png',
25
- },
26
- },
27
- athlete: {
28
- '4360423': {
29
- id: '4360423',
30
- shortName: 'M. Penix Jr.',
31
- headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4360423.jpg?w=184&h=144',
32
- },
33
- '4430637': {
34
- id: '4430637',
35
- shortName: 'J. Polk',
36
- headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4430637.jpg?w=184&h=144',
37
- },
38
- '4430834': {
39
- id: '4430834',
40
- shortName: 'J. McMillan',
41
- headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4430834.jpg?w=184&h=144',
42
- },
43
- '4569337': {
44
- id: '4569337',
45
- shortName: 'R. Sanborn',
46
- headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4569337.jpg?w=184&h=144',
47
- },
48
- '4570040': {
49
- id: '4570040',
50
- shortName: 'B. Murphy II',
51
- headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4570040.jpg?w=184&h=144',
52
- },
53
- '4597500': {
54
- id: '4597500',
55
- shortName: 'A. Mitchell',
56
- headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4597500.jpg?w=184&h=144',
57
- },
58
- '4689338': {
59
- id: '4689338',
60
- shortName: 'D. Johnson',
61
- headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4689338.jpg?w=184&h=144',
62
- },
63
- '4870609': {
64
- id: '4870609',
65
- shortName: 'C. Baxter',
66
- headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4870609.jpg?w=184&h=144',
67
- },
68
- '4889929': {
69
- id: '4889929',
70
- shortName: 'Q. Ewers',
71
- headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4889929.jpg?w=184&h=144',
72
- },
73
- },
74
- },
75
- sections: [
76
- {
77
- title: '1st Quarter',
78
- items: [
79
- {
80
- description: "Ja'Lynn Polk's 77-yard catch sets up Washington TD",
81
- team: '264',
82
- awayScore: '0',
83
- homeScore: '7',
84
- wallClock: '2024-01-02T02:11:05Z',
85
- displayClock: '11:04',
86
- shortPeriod: 'Q1',
87
- scoringPlay: true,
88
- athlete: '4689338',
89
- thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4689338.jpg?w=184&h=144',
90
- thumbnailType: 'headshot',
91
- clipID: '39225214',
92
- },
93
- {
94
- description: 'Germie Bernard makes leaping grab for Washington',
95
- team: '264',
96
- wallClock: '2024-01-02T02:38:54Z',
97
- displayClock: '1:30',
98
- shortPeriod: 'Q1',
99
- scoringPlay: false,
100
- athlete: '4360423',
101
- thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4360423.jpg?w=184&h=144',
102
- thumbnailType: 'headshot',
103
- clipID: '39225401',
104
- },
105
- ],
106
- },
107
- {
108
- title: '2nd Quarter',
109
- items: [
110
- {
111
- description: 'Dillon Johnson scores 2nd TD of game for the Huskies',
112
- team: '264',
113
- awayScore: '7',
114
- homeScore: '14',
115
- wallClock: '2024-01-02T02:47:33Z',
116
- displayClock: '13:08',
117
- shortPeriod: 'Q2',
118
- scoringPlay: true,
119
- athlete: '4689338',
120
- thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4689338.jpg?w=184&h=144',
121
- thumbnailType: 'headshot',
122
- clipID: '39225442',
123
- },
124
- {
125
- description: 'Texas takes over after Washington muffs punt',
126
- team: '251',
127
- wallClock: '2024-01-02T02:54:50Z',
128
- displayClock: '11:45',
129
- shortPeriod: 'Q2',
130
- scoringPlay: false,
131
- athlete: '4569337',
132
- thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4569337.jpg?w=184&h=144',
133
- thumbnailType: 'headshot',
134
- clipID: '39225487',
135
- },
136
- {
137
- description: 'Big man TD! Byron Murphy II punches it in for Texas',
138
- team: '251',
139
- awayScore: '14',
140
- homeScore: '14',
141
- wallClock: '2024-01-02T02:57:22Z',
142
- displayClock: '10:08',
143
- shortPeriod: 'Q2',
144
- scoringPlay: true,
145
- athlete: '4570040',
146
- thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4570040.jpg?w=184&h=144',
147
- thumbnailType: 'headshot',
148
- clipID: '39225513',
149
- },
150
- {
151
- description: 'Rome Odunze makes over-the-shoulder grab for Washington',
152
- team: '264',
153
- wallClock: '2024-01-02T03:02:27Z',
154
- displayClock: '9:31',
155
- shortPeriod: 'Q2',
156
- scoringPlay: false,
157
- athlete: '4360423',
158
- thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4360423.jpg?w=184&h=144',
159
- thumbnailType: 'headshot',
160
- clipID: '39225518',
161
- },
162
- {
163
- description: "Texas stops Washington's attempt on 4th down",
164
- team: '251',
165
- wallClock: '2024-01-02T03:06:28Z',
166
- displayClock: '6:59',
167
- shortPeriod: 'Q2',
168
- scoringPlay: false,
169
- athlete: '4689338',
170
- thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4689338.jpg?w=184&h=144',
171
- thumbnailType: 'headshot',
172
- clipID: '39225559',
173
- },
174
- {
175
- description: "Ja'Lynn Polk makes bobbling TD catch and Washington goes ahead",
176
- team: '264',
177
- awayScore: '14',
178
- homeScore: '21',
179
- wallClock: '2024-01-02T03:27:56Z',
180
- displayClock: '1:27',
181
- shortPeriod: 'Q2',
182
- scoringPlay: true,
183
- athlete: '4430637',
184
- thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4430637.jpg?w=184&h=144',
185
- thumbnailType: 'headshot',
186
- clipID: '39225686',
187
- },
188
- {
189
- description: "Texas ties the score after CJ Baxter's TD run",
190
- team: '251',
191
- awayScore: '21',
192
- homeScore: '21',
193
- wallClock: '2024-01-02T03:38:42Z',
194
- displayClock: '0:17',
195
- shortPeriod: 'Q2',
196
- scoringPlay: true,
197
- athlete: '4870609',
198
- thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4870609.jpg?w=184&h=144',
199
- thumbnailType: 'headshot',
200
- clipID: '39225762',
201
- },
202
- ],
203
- },
204
- {
205
- title: '3rd Quarter',
206
- items: [
207
- {
208
- description: 'Penix threads the needle to McMillan for Washington score',
209
- team: '264',
210
- awayScore: '21',
211
- homeScore: '28',
212
- wallClock: '2024-01-02T04:11:00Z',
213
- displayClock: '10:30',
214
- shortPeriod: 'Q3',
215
- scoringPlay: true,
216
- athlete: '4430834',
217
- thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4430834.jpg?w=184&h=144',
218
- thumbnailType: 'headshot',
219
- clipID: '39226021',
220
- },
221
- {
222
- description: 'Texas commits their first turnover of the game',
223
- team: '264',
224
- wallClock: '2024-01-02T04:16:16Z',
225
- displayClock: '10:14',
226
- shortPeriod: 'Q3',
227
- scoringPlay: false,
228
- athlete: '4870609',
229
- thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4870609.jpg?w=184&h=144',
230
- thumbnailType: 'headshot',
231
- clipID: '39226030',
232
- },
233
- ],
234
- },
235
- {
236
- title: '4th Quarter',
237
- items: [
238
- {
239
- description: 'Hang time! Adonai Mitchell makes incredible TD grab for Texas',
240
- team: '251',
241
- awayScore: '28',
242
- homeScore: '34',
243
- wallClock: '2024-01-01T05:08:14Z',
244
- displayClock: '7:23',
245
- shortPeriod: 'Q4',
246
- scoringPlay: true,
247
- athlete: '4597500',
248
- thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4597500.jpg?w=184&h=144',
249
- thumbnailType: 'headshot',
250
- clipID: '39226360',
251
- },
252
- {
253
- description: 'How did Penix drop this pass in to Odunze?',
254
- team: '264',
255
- wallClock: '2024-01-01T05:17:15Z',
256
- displayClock: '3:48',
257
- shortPeriod: 'Q4',
258
- scoringPlay: false,
259
- athlete: '4360423',
260
- thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4360423.jpg?w=184&h=144',
261
- thumbnailType: 'headshot',
262
- clipID: '39226394',
263
- },
264
- {
265
- description: "Jordan Whittington's big catch gives Texas good field position",
266
- team: '251',
267
- wallClock: '2024-01-01T05:41:48Z',
268
- displayClock: '0:28',
269
- shortPeriod: 'Q4',
270
- scoringPlay: false,
271
- athlete: '4889929',
272
- thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4889929.jpg?w=184&h=144',
273
- thumbnailType: 'headshot',
274
- clipID: '39226506',
275
- },
276
- {
277
- description: "Washington survives Texas' final drive to win Sugar Bowl",
278
- team: '264',
279
- wallClock: '2024-01-02T04:43:41Z',
280
- displayClock: '0:00',
281
- shortPeriod: 'Q4',
282
- scoringPlay: false,
283
- athlete: '4889929',
284
- thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4889929.jpg?w=184&h=144',
285
- thumbnailType: 'headshot',
286
- clipID: '39226585',
287
- },
288
- ],
289
- },
290
- ],
291
- };
292
- export const BASE_64_KEY_PLAY_THUMBNAIL_FALLBACK = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCACQALgDAREAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD+O4tkcn0/z79ev/161Mg3dv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ZWBIIIIIODxQB8k/ETwuPDGuH7MpGmakr3ViAPlhw/+kWYPf7O7IU/6YSwhizbyZenoUn/XyOA3/j3/AM/5/KkPRAD/2Q==';
@@ -1,14 +0,0 @@
1
- export const KEY_PLAYS_LOAD_FAILURE_STATUS = {
2
- noFailure: 'noFailure',
3
- recentFailure: 'recentFailure',
4
- nonRecentFailure: 'nonRecentFailure',
5
- };
6
- export const KEY_PLAYS_ERROR_STATE = {
7
- unsupportedEvent: 'unsupportedEvent',
8
- unpopulatedEvent: 'unpopulatedEvent',
9
- tabLoadFailure: 'tabLoadFailure',
10
- };
11
- export const KEY_PLAYS_PANEL_SCROLL_VIEW_ITEM_TYPE = {
12
- keyPlay: 'keyPlay',
13
- sectionHeader: 'sectionHeader',
14
- };
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- export default class ScoreCard extends React.Component {
3
- render() {
4
- const { awayTeamScore, homeTeamScore, homeTeamName, awayTeamName, } = this.props;
5
- return (React.createElement("div", { className: "score" },
6
- React.createElement("div", { className: "score-team T05_ALT" },
7
- React.createElement("span", null, homeTeamName),
8
- React.createElement("span", { className: "T30 score-value" }, homeTeamScore)),
9
- React.createElement("div", { className: "score-team T05_ALT" },
10
- React.createElement("span", { className: "T30 score-value" }, awayTeamScore),
11
- React.createElement("span", null, awayTeamName))));
12
- }
13
- }
@@ -1,142 +0,0 @@
1
- import Image from '@/components/atoms/Image';
2
- import { BASE_64_KEY_PLAY_THUMBNAIL_FALLBACK } from '../constants';
3
- import './KeyPlayCardView.styles.css';
4
- import SDK from '@/index';
5
- import Icon from '@/components/atoms/SvgIcon';
6
- import React from 'react';
7
- import { withFocusable, } from '@/external/spatial-navigation';
8
- import ScoreCard from './KeyPlayCardScoreTagView';
9
- import deliverFocus from '@/helpers/deliver-focus';
10
- import FocusableItem from '@/components/core/ScrollableContainer/FocusableItem';
11
- import { DEFAULT_SCROLLABLE_CONTAINER_CONTEXT, SCROLLABLE_CONTEXT_TYPE, } from '@/components/core/ScrollableContainer/ScrollableContainer';
12
- export class KeyPlayCardView extends React.Component {
13
- constructor(props) {
14
- super(props);
15
- Object.defineProperty(this, "failedClipListener", {
16
- enumerable: true,
17
- configurable: true,
18
- writable: true,
19
- value: () => { }
20
- });
21
- Object.defineProperty(this, "ref", {
22
- enumerable: true,
23
- configurable: true,
24
- writable: true,
25
- value: null
26
- });
27
- Object.defineProperty(this, "vm", {
28
- enumerable: true,
29
- configurable: true,
30
- writable: true,
31
- value: void 0
32
- });
33
- Object.defineProperty(this, "state", {
34
- enumerable: true,
35
- configurable: true,
36
- writable: true,
37
- value: {
38
- failedClip: null,
39
- }
40
- });
41
- Object.defineProperty(this, "renderImage", {
42
- enumerable: true,
43
- configurable: true,
44
- writable: true,
45
- value: () => {
46
- const { playerImageUrl, teamImageUrl, thumbnailImageUrl } = this.props;
47
- if (playerImageUrl) {
48
- return (React.createElement(Image, { src: playerImageUrl, crossOrigin: "anonymous", alt: "Key Play Player Image", className: "cardImage" }));
49
- }
50
- if (teamImageUrl) {
51
- return (React.createElement(Image, { src: teamImageUrl, crossOrigin: "anonymous", alt: "Key Play Team Image", className: "cardImage" }));
52
- }
53
- if (thumbnailImageUrl) {
54
- return (React.createElement(Image, { src: thumbnailImageUrl, crossOrigin: "anonymous", alt: "Key Play Thumbnail Image", className: "cardImage" }));
55
- }
56
- return (React.createElement(Image, { src: BASE_64_KEY_PLAY_THUMBNAIL_FALLBACK, crossOrigin: "anonymous", alt: "Key Play Thumbnail Image", className: "cardImage" }));
57
- }
58
- });
59
- this.vm = SDK.getMaestroEventViewModel().keyPlaysViewModel;
60
- }
61
- componentDidMount() {
62
- this.failedClipListener = this.vm.failedClips.subscribe((failedClips) => {
63
- this.setState({ failedClip: failedClips[this.props.clipID] });
64
- });
65
- this.props.setRef(this.ref);
66
- }
67
- componentWillUnmount() {
68
- if (this.failedClipListener) {
69
- this.failedClipListener();
70
- }
71
- }
72
- render() {
73
- const { clipID, description, isPlaying, playbackProgress, isScoring, focused, awayTeamScore, homeTeamScore, homeTeamName, awayTeamName, } = this.props;
74
- const { failedClip } = this.state;
75
- return (React.createElement("div", { className: "key-play-card focus-ring", id: clipID, "data-focused": focused, ref: (ref) => (this.ref = ref) },
76
- React.createElement("div", { className: "key-play-card-content" },
77
- this.renderImage(),
78
- React.createElement("div", { className: "text-content T05_ALT" },
79
- React.createElement("div", { className: "multi-line" }, description))),
80
- isPlaying && playbackProgress !== null && (React.createElement("progress", { value: playbackProgress, max: "1" })),
81
- isScoring && (React.createElement(ScoreCard, { awayTeamScore: awayTeamScore, homeTeamScore: homeTeamScore, homeTeamName: homeTeamName, awayTeamName: awayTeamName })),
82
- failedClip === 'recentFailure' && (React.createElement("div", { className: "error-state" },
83
- React.createElement(Icon, { iconName: "warning", width: 21.6, height: 18.7 }),
84
- React.createElement("span", { className: "T05_ALT" }, "Could not play this clip. "))),
85
- failedClip === 'nonRecentFailure' && (React.createElement("div", { className: "non-recent-error-state" },
86
- React.createElement(Icon, { iconName: "warning", width: 21.6, height: 18.7 })))));
87
- }
88
- }
89
- const FocusableKeyPlayCard = withFocusable()(KeyPlayCardView);
90
- export default class KeyPlayCard extends React.Component {
91
- constructor() {
92
- super(...arguments);
93
- Object.defineProperty(this, "ref", {
94
- enumerable: true,
95
- configurable: true,
96
- writable: true,
97
- value: null
98
- });
99
- Object.defineProperty(this, "context", {
100
- enumerable: true,
101
- configurable: true,
102
- writable: true,
103
- value: DEFAULT_SCROLLABLE_CONTAINER_CONTEXT
104
- });
105
- Object.defineProperty(this, "setRef", {
106
- enumerable: true,
107
- configurable: true,
108
- writable: true,
109
- value: (ref) => {
110
- this.ref = ref;
111
- }
112
- });
113
- Object.defineProperty(this, "handleLeftPressed", {
114
- enumerable: true,
115
- configurable: true,
116
- writable: true,
117
- value: (d) => {
118
- if (d === 'left' && this.ref) {
119
- deliverFocus(this.ref);
120
- }
121
- }
122
- });
123
- Object.defineProperty(this, "onBecameFocused", {
124
- enumerable: true,
125
- configurable: true,
126
- writable: true,
127
- value: (layout) => {
128
- this.context.scrollToFocusedElement(layout);
129
- }
130
- });
131
- }
132
- render() {
133
- return (React.createElement(FocusableItem, null,
134
- React.createElement(FocusableKeyPlayCard, { ...this.props, setRef: this.setRef, onArrowPress: this.handleLeftPressed, onBecameFocused: this.onBecameFocused })));
135
- }
136
- }
137
- Object.defineProperty(KeyPlayCard, "contextTypes", {
138
- enumerable: true,
139
- configurable: true,
140
- writable: true,
141
- value: SCROLLABLE_CONTEXT_TYPE
142
- });
@@ -1,58 +0,0 @@
1
- import ActionButton from '@/components/molecules/ActionButton';
2
- import './KeyPlayErrorStateView.styles.css';
3
- import React from 'react';
4
- import { withFocusable, } from '@/external/spatial-navigation';
5
- class UnpopulatedEvent extends React.Component {
6
- render() {
7
- return (React.createElement("div", { className: "sdk--key-play-error-state-unpopulatedEvent" },
8
- React.createElement("div", { className: "main-content" },
9
- React.createElement("h3", { className: "T70" }, "Greatness takes time."),
10
- React.createElement("p", { className: "T20" }, "Key plays are still in the making! Come back soon to check 'em out.")),
11
- React.createElement("div", { className: "unpopulatedEvent-examples" }, Array.from({ length: 4 }).map((_, i) => (React.createElement("div", { key: i, className: "example" }))))));
12
- }
13
- }
14
- class UnsupportedEvent extends React.Component {
15
- render() {
16
- return (React.createElement("div", { className: "sdk--key-play-error-state-unsupportedEvent" },
17
- React.createElement("h3", { className: "T70" }, "No Key Plays Available"),
18
- React.createElement("svg", { viewBox: "0 0 520 359", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
19
- React.createElement("g", { opacity: "0.16" },
20
- React.createElement("path", { d: "M146.334 219.427V244.686L168.723 198.187V38.0215L165.279 40.3178V188.427L146.334 219.427Z", fill: "#6D6D6D" }),
21
- React.createElement("rect", { x: "94.6687", y: "219.427", width: "51.6662", height: "25.259", fill: "#777777" }),
22
- React.createElement("rect", { x: "145.187", y: "39.1694", width: "20.6665", height: "149.258", fill: "#666666" }),
23
- React.createElement("path", { d: "M146.335 219.427H94.6687L143.465 187.279H167.001L146.335 219.427Z", fill: "#666666" }),
24
- React.createElement("path", { d: "M375.389 219.427V244.686L353 198.187V38.0215L356.445 40.3178V188.427L375.389 219.427Z", fill: "#6D6D6D" }),
25
- React.createElement("rect", { width: "51.6662", height: "25.259", transform: "matrix(-1 0 0 1 427.055 219.427)", fill: "#777777" }),
26
- React.createElement("rect", { width: "20.6665", height: "149.258", transform: "matrix(-1 0 0 1 376.537 39.1694)", fill: "#666666" }),
27
- React.createElement("path", { d: "M375.389 219.427H427.055L378.259 187.279H354.722L375.389 219.427Z", fill: "#666666" }),
28
- React.createElement("path", { d: "M23.4844 141.354H496.517L410.981 121.835H93.5208L23.4844 141.354Z", fill: "#B1B1B1" }),
29
- React.createElement("rect", { x: "23.4844", y: "141.354", width: "473.033", height: "19.5183", fill: "#777777" }),
30
- React.createElement("rect", { x: "72.8545", y: "51.7993", width: "374.293", height: "45.9255", fill: "#CDCDCD" })))));
31
- }
32
- }
33
- class SimpleTabLoadFailure extends React.Component {
34
- render() {
35
- const { focused } = this.props;
36
- return (React.createElement("div", { "data-focused": focused, className: "sdk--key-play-error-state-tabLoadFailure focus-ring" },
37
- React.createElement("h3", { className: "T70" }, "Let's try that again..."),
38
- React.createElement("p", { className: "T20" }, "We're having trouble loading this."),
39
- React.createElement(ActionButton, { "data-focused": focused, onEnterPress: this.props.onEnterPress }, "Refresh")));
40
- }
41
- }
42
- const TabLoadFailure = withFocusable()(SimpleTabLoadFailure);
43
- class KeyPlayErrorStateView extends React.Component {
44
- render() {
45
- const { errorState, onRetry } = this.props;
46
- if (errorState === 'unsupportedEvent') {
47
- return React.createElement(UnsupportedEvent, null);
48
- }
49
- if (errorState === 'unpopulatedEvent') {
50
- return React.createElement(UnpopulatedEvent, null);
51
- }
52
- if (errorState === 'tabLoadFailure') {
53
- return React.createElement(TabLoadFailure, { onEnterPress: onRetry });
54
- }
55
- return null;
56
- }
57
- }
58
- export default KeyPlayErrorStateView;