@maestro_io/maestro-web-sdk 4.0.0-beta.1 → 4.0.0-beta.2

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 (125) hide show
  1. package/dist/maestro-web-sdk.esm.js +4 -4
  2. package/dist/maestro-web-sdk.esm.js.map +1 -1
  3. package/dist/maestro-web-sdk.umd.js +4 -4
  4. package/dist/maestro-web-sdk.umd.js.map +1 -1
  5. package/dist/package.json +9 -13
  6. package/dist/src/components/atoms/BaseButton/BaseButton.d.ts +1 -1
  7. package/dist/src/components/atoms/Image/index.d.ts +1 -1
  8. package/dist/src/components/atoms/Rive/index.d.ts +11 -141
  9. package/dist/src/components/atoms/SvgIcon/BetGeneralIcon.d.ts +2 -1
  10. package/dist/src/components/atoms/SvgIcon/BetsIcon.d.ts +1 -1
  11. package/dist/src/components/atoms/SvgIcon/BetsWarningIcon.d.ts +1 -1
  12. package/dist/src/components/atoms/SvgIcon/CheckmarkIcon.d.ts +2 -1
  13. package/dist/src/components/atoms/SvgIcon/CollapseIcon.d.ts +2 -1
  14. package/dist/src/components/atoms/SvgIcon/ExpandIcon.d.ts +2 -1
  15. package/dist/src/components/atoms/SvgIcon/FantasyIcon.d.ts +1 -1
  16. package/dist/src/components/atoms/SvgIcon/FlameIcon.d.ts +1 -1
  17. package/dist/src/components/atoms/SvgIcon/Icon.d.ts +5 -5
  18. package/dist/src/components/atoms/SvgIcon/KeyPlaysIcon.d.ts +1 -1
  19. package/dist/src/components/atoms/SvgIcon/MobilePhoneIcon.d.ts +1 -1
  20. package/dist/src/components/atoms/SvgIcon/PlayIcon.d.ts +1 -1
  21. package/dist/src/components/atoms/SvgIcon/ShopIcon.d.ts +1 -1
  22. package/dist/src/components/atoms/SvgIcon/StatsIcon.d.ts +1 -1
  23. package/dist/src/components/atoms/SvgIcon/TimesIcon.d.ts +2 -1
  24. package/dist/src/components/atoms/SvgIcon/WarningIcon.d.ts +1 -1
  25. package/dist/src/components/core/App/App.d.ts +1 -1
  26. package/dist/src/components/core/PanelManager/PanelManager.d.ts +1 -1
  27. package/dist/src/components/core/ScrollableContainer/ScrollableContainer.d.ts +7 -8
  28. package/dist/src/components/core/ScrollableContainer/ScrollableContainer.js +6 -7
  29. package/dist/src/components/molecules/ActionButton/ActionButton.d.ts +7 -53
  30. package/dist/src/components/molecules/HeadshotImage/HeadshotImage.d.ts +1 -1
  31. package/dist/src/components/molecules/Overlay/Overlay.d.ts +1 -1
  32. package/dist/src/components/molecules/PanelNavButton/PanelNavButton.d.ts +7 -53
  33. package/dist/src/components/molecules/TabLoadError/TabLoadError.d.ts +7 -53
  34. package/dist/src/components/molecules/WatchButton/WatchButton.d.ts +1 -1
  35. package/dist/src/components/organisms/PanelNavigation/PanelNavigation.d.ts +1 -1
  36. package/dist/src/components/organisms/SegmentController/SegmentController.d.ts +4 -5
  37. package/dist/src/development/TimeSeek.d.ts +1 -1
  38. package/dist/src/development/development.js +4 -7
  39. package/dist/src/external/ReactRenderer.js +3 -15
  40. package/dist/src/external/spatial-navigation/withFocusable.d.ts +7 -53
  41. package/dist/src/interfaces/IMaestroEvent.d.ts +12 -0
  42. package/dist/src/modules/bets/view/BetsView.d.ts +3 -3
  43. package/dist/src/modules/bets/view/HotProps/HotPropsView.d.ts +7 -53
  44. package/dist/src/modules/bets/view/SixPack/SixPackView.d.ts +4 -5
  45. package/dist/src/modules/bets/view/UserBets/BetResult/BetResult.d.ts +1 -1
  46. package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCard.d.ts +7 -53
  47. package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardEvent.d.ts +4 -5
  48. package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardFooter.d.ts +2 -1
  49. package/dist/src/modules/bets/view/UserBets/Boost/Boost.d.ts +2 -1
  50. package/dist/src/modules/bets/view/UserBets/OutcomeBadge/OutcomeBadge.d.ts +2 -1
  51. package/dist/src/modules/bets/view/UserBets/Parlay/Parlay.d.ts +2 -1
  52. package/dist/src/modules/bets/view/UserBets/Straight/Straight.d.ts +2 -1
  53. package/dist/src/modules/bets/view/UserBets/Teaser/Teaser.d.ts +2 -1
  54. package/dist/src/modules/bets/view/UserBets/UserBetsView.d.ts +3 -3
  55. package/dist/src/modules/bets/view/components/Bet/Bet.d.ts +11 -99
  56. package/dist/src/modules/bets/view/components/BetPill/BetPill.d.ts +1 -1
  57. package/dist/src/modules/bets/view/components/BetsCard/BetsCardHeader.d.ts +1 -1
  58. package/dist/src/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.d.ts +1 -1
  59. package/dist/src/modules/bets/view/components/LocationWarning/LocationWarning.d.ts +1 -1
  60. package/dist/src/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.d.ts +4 -5
  61. package/dist/src/modules/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.d.ts +1 -1
  62. package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.d.ts +7 -53
  63. package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +7 -53
  64. package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.d.ts +1 -1
  65. package/dist/src/modules/fantasy/view/FantasyItemView.d.ts +5 -6
  66. package/dist/src/modules/fantasy/view/FantasyView.d.ts +3 -3
  67. package/dist/src/modules/fantasy/view/InactiveLeague/DraftDateCountdown.d.ts +1 -1
  68. package/dist/src/modules/fantasy/view/InactiveLeague/InactiveLeague.d.ts +7 -53
  69. package/dist/src/modules/fantasy/view/LoginView/LoginView.d.ts +7 -53
  70. package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts +7 -53
  71. package/dist/src/modules/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.d.ts +1 -1
  72. package/dist/src/modules/fantasy/view/MatchupPair/MatchupPair.d.ts +7 -53
  73. package/dist/src/modules/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.d.ts +1 -1
  74. package/dist/src/modules/fantasy/view/MatchupSingle/MatchupSingle.d.ts +7 -53
  75. package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts +7 -53
  76. package/dist/src/modules/fantasy/view/PromoView/PromoView.d.ts +7 -53
  77. package/dist/src/modules/key-plays/view/KeyPlayCardScoreTagView.d.ts +1 -1
  78. package/dist/src/modules/key-plays/view/KeyPlayCardView.d.ts +6 -7
  79. package/dist/src/modules/key-plays/view/KeyPlayCardView.js +8 -3
  80. package/dist/src/modules/key-plays/view/KeyPlayErrorStateView.d.ts +1 -1
  81. package/dist/src/modules/key-plays/view/KeyPlaysView.d.ts +3 -3
  82. package/dist/src/modules/key-plays/view-model/KeyPlaysViewModel.js +1 -2
  83. package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.d.ts +2 -1
  84. package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.js +3 -3
  85. package/dist/src/modules/shop/view/ShopView.d.ts +3 -3
  86. package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.d.ts +8 -54
  87. package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.d.ts +7 -53
  88. package/dist/src/modules/shop/view/components/ShopPromoView/ShopPromoView.d.ts +2 -1
  89. package/dist/src/modules/shop/view/components/ShopSection/ShopSection.d.ts +4 -5
  90. package/dist/src/modules/stats/utils/renderTeamStatistic.d.ts +2 -1
  91. package/dist/src/modules/stats/view/ActiveAthletes/ActiveAthletes.d.ts +2 -2
  92. package/dist/src/modules/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.d.ts +2 -1
  93. package/dist/src/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.d.ts +1 -1
  94. package/dist/src/modules/stats/view/DriveSummary/DrivePlayCard.d.ts +7 -53
  95. package/dist/src/modules/stats/view/DriveSummary/DriveSummary.d.ts +1 -1
  96. package/dist/src/modules/stats/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.d.ts +1 -1
  97. package/dist/src/modules/stats/view/DriveSummary/Header/DriveSummaryHeader.d.ts +2 -1
  98. package/dist/src/modules/stats/view/DriveSummary/MainStat/MainStat.d.ts +2 -1
  99. package/dist/src/modules/stats/view/GameLeaders/GameLeaders.d.ts +4 -5
  100. package/dist/src/modules/stats/view/MatchPredictor/DonutChart/DonutChart.d.ts +2 -2
  101. package/dist/src/modules/stats/view/MatchPredictor/MatchPredictorView.d.ts +7 -53
  102. package/dist/src/modules/stats/view/Penalties/Penalties.d.ts +2 -1
  103. package/dist/src/modules/stats/view/RecentGames/RecentGames.d.ts +7 -53
  104. package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.d.ts +1 -1
  105. package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/ScoreItem.d.ts +7 -53
  106. package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/ScoresSection.d.ts +2 -1
  107. package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.d.ts +2 -2
  108. package/dist/src/modules/stats/view/StatsItemView.d.ts +5 -6
  109. package/dist/src/modules/stats/view/StatsQRCode/StatsQRCodeView.d.ts +7 -53
  110. package/dist/src/modules/stats/view/StatsView.d.ts +3 -3
  111. package/dist/src/modules/stats/view/TeamStats/TeamStatsView.d.ts +7 -53
  112. package/dist/src/modules/stats/view/Teams/StatsCarousel.d.ts +2 -2
  113. package/dist/src/modules/stats/view/Teams/StatsProgressBar.d.ts +2 -1
  114. package/dist/src/modules/stats/view/Teams/Teams.d.ts +7 -53
  115. package/dist/src/modules/stats/view/Teams/Teams.js +1 -17
  116. package/dist/src/modules/stats/view/WinProbability/WinProbability.d.ts +7 -53
  117. package/dist/src/modules/stats/view/components/AthletesStatistics/AthletesStatistics.d.ts +7 -53
  118. package/dist/src/modules/stats/view/components/AthletesStatistics/StatisticTable.d.ts +2 -1
  119. package/dist/src/modules/stats/view-model/StatsViewModel.d.ts +5 -0
  120. package/dist/src/modules/stats/view-model/StatsViewModel.js +37 -14
  121. package/dist/src/services/StatsService.d.ts +1 -0
  122. package/dist/src/services/StatsService.js +11 -0
  123. package/dist/src/view-models/MaestroEventViewModel.d.ts +1 -0
  124. package/dist/src/view-models/MaestroEventViewModel.js +27 -0
  125. package/package.json +9 -13
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import './SingleAthleteCard.styles.css';
5
5
  import { MatchupSingleRoster } from '@/modules/fantasy/view-model/FantasyViewModel';
6
6
  declare const _default: {
7
- new (props: (MatchupSingleRoster & WithFocusableProps) | Readonly<MatchupSingleRoster & WithFocusableProps>): {
7
+ new (props?: (MatchupSingleRoster & WithFocusableProps) | undefined, context?: any): {
8
8
  state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
9
9
  navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
10
10
  getChildContext(): {
@@ -24,65 +24,20 @@ declare const _default: {
24
24
  componentDidMount(): void;
25
25
  componentDidUpdate(): void;
26
26
  componentWillUnmount(): void;
27
- render(): React.ReactElement<MatchupSingleRoster & WithFocusableProps, string | React.JSXElementConstructor<any>>;
28
- context: any;
29
- 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<MatchupSingleRoster & 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;
30
- forceUpdate(callback?: (() => void) | undefined): void;
31
- readonly props: Readonly<MatchupSingleRoster & WithFocusableProps> & Readonly<{
27
+ render(): React.ReactElement<MatchupSingleRoster & WithFocusableProps>;
28
+ 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: MatchupSingleRoster & WithFocusableProps) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>, callback?: (() => any) | undefined): void;
29
+ forceUpdate(callBack?: (() => any) | undefined): void;
30
+ props: Readonly<{
32
31
  children?: React.ReactNode;
33
- }>;
34
- refs: {
35
- [key: string]: React.ReactInstance;
36
- };
37
- shouldComponentUpdate?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
38
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
39
- getSnapshotBeforeUpdate?(prevProps: Readonly<MatchupSingleRoster & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
40
- componentWillMount?(): void;
41
- UNSAFE_componentWillMount?(): void;
42
- componentWillReceiveProps?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextContext: any): void;
43
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextContext: any): void;
44
- componentWillUpdate?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
45
- UNSAFE_componentWillUpdate?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
46
- };
47
- new (props: MatchupSingleRoster & WithFocusableProps, context: any): {
48
- state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
49
- navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
50
- getChildContext(): {
51
- parentFocusKey: string;
52
- };
53
- setFocus: (focusKey: string) => void;
54
- navigateByDirection: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
55
- stealFocus: () => void;
56
- onUpdateFocus: (focused: boolean) => void;
57
- onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
58
- onEnterPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
59
- onEnterReleaseHandler: () => void;
60
- onBackPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
61
- onArrowPressHandler: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details: import("../../../../../external/spatial-navigation/utils").Details) => boolean | void;
62
- onBecameFocusedHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
63
- onBecameBlurredHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
64
- componentDidMount(): void;
65
- componentDidUpdate(): void;
66
- componentWillUnmount(): void;
67
- render(): React.ReactElement<MatchupSingleRoster & WithFocusableProps, string | React.JSXElementConstructor<any>>;
32
+ }> & Readonly<MatchupSingleRoster & WithFocusableProps>;
68
33
  context: any;
69
- 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<MatchupSingleRoster & 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;
70
- forceUpdate(callback?: (() => void) | undefined): void;
71
- readonly props: Readonly<MatchupSingleRoster & WithFocusableProps> & Readonly<{
72
- children?: React.ReactNode;
73
- }>;
74
34
  refs: {
75
35
  [key: string]: React.ReactInstance;
76
36
  };
77
- shouldComponentUpdate?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
78
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
79
- getSnapshotBeforeUpdate?(prevProps: Readonly<MatchupSingleRoster & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
80
37
  componentWillMount?(): void;
81
- UNSAFE_componentWillMount?(): void;
82
38
  componentWillReceiveProps?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextContext: any): void;
83
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextContext: any): void;
39
+ shouldComponentUpdate?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
84
40
  componentWillUpdate?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
85
- UNSAFE_componentWillUpdate?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
86
41
  };
87
42
  contextTypes: {
88
43
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -90,6 +45,5 @@ declare const _default: {
90
45
  childContextTypes: {
91
46
  parentFocusKey: import("prop-types").Requireable<string>;
92
47
  };
93
- contextType?: React.Context<any> | undefined;
94
48
  };
95
49
  export default _default;
@@ -7,7 +7,7 @@ type Props = {
7
7
  item: PromoFantasyItem;
8
8
  };
9
9
  declare const _default: {
10
- new (props: (Props & WithFocusableProps) | Readonly<Props & WithFocusableProps>): {
10
+ new (props?: (Props & WithFocusableProps) | undefined, context?: any): {
11
11
  state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
12
12
  navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
13
13
  getChildContext(): {
@@ -27,65 +27,20 @@ declare const _default: {
27
27
  componentDidMount(): void;
28
28
  componentDidUpdate(): void;
29
29
  componentWillUnmount(): void;
30
- render(): React.ReactElement<Props & WithFocusableProps, string | React.JSXElementConstructor<any>>;
31
- 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<Props & 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
- forceUpdate(callback?: (() => void) | undefined): void;
34
- readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
30
+ render(): React.ReactElement<Props & WithFocusableProps>;
31
+ 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: Props & WithFocusableProps) => import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>) | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>, callback?: (() => any) | undefined): void;
32
+ forceUpdate(callBack?: (() => any) | undefined): void;
33
+ props: Readonly<{
35
34
  children?: React.ReactNode;
36
- }>;
37
- refs: {
38
- [key: string]: React.ReactInstance;
39
- };
40
- shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
41
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
42
- getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
43
- componentWillMount?(): void;
44
- UNSAFE_componentWillMount?(): void;
45
- componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
46
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
47
- componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
48
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
49
- };
50
- new (props: Props & WithFocusableProps, context: any): {
51
- state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
52
- navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
53
- getChildContext(): {
54
- parentFocusKey: string;
55
- };
56
- setFocus: (focusKey: string) => void;
57
- navigateByDirection: (direction: import("../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
58
- stealFocus: () => void;
59
- onUpdateFocus: (focused: boolean) => void;
60
- onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
61
- onEnterPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
62
- 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;
67
- componentDidMount(): void;
68
- componentDidUpdate(): void;
69
- componentWillUnmount(): void;
70
- render(): React.ReactElement<Props & WithFocusableProps, string | React.JSXElementConstructor<any>>;
35
+ }> & Readonly<Props & WithFocusableProps>;
71
36
  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<Props & 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
- forceUpdate(callback?: (() => void) | undefined): void;
74
- readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
75
- children?: React.ReactNode;
76
- }>;
77
37
  refs: {
78
38
  [key: string]: React.ReactInstance;
79
39
  };
80
- shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
81
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
82
- getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
83
40
  componentWillMount?(): void;
84
- UNSAFE_componentWillMount?(): void;
85
41
  componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
86
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
42
+ shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
87
43
  componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
88
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
89
44
  };
90
45
  contextTypes: {
91
46
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -93,6 +48,5 @@ declare const _default: {
93
48
  childContextTypes: {
94
49
  parentFocusKey: import("prop-types").Requireable<string>;
95
50
  };
96
- contextType?: React.Context<any> | undefined;
97
51
  };
98
52
  export default _default;
@@ -5,5 +5,5 @@ export default class ScoreCard extends React.Component<{
5
5
  homeTeamName: string;
6
6
  awayTeamName: string;
7
7
  }, {}> {
8
- render(): JSX.Element | null;
8
+ render(): React.JSX.Element | null;
9
9
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="prop-types" />
2
1
  import IKeyPlay, { KeyPlayLoadFailureStatus } from '../interfaces/IKeyPlays';
3
2
  import './KeyPlayCardView.styles.css';
4
3
  import React from 'react';
@@ -22,18 +21,18 @@ export declare class KeyPlayCardView extends React.Component<KeyPlayCardViewProp
22
21
  componentDidMount(): void;
23
22
  componentWillUnmount(): void;
24
23
  onLoad: () => void;
25
- renderImage: () => JSX.Element | null;
26
- render(): JSX.Element;
24
+ renderImage: () => React.JSX.Element | null;
25
+ render(): React.JSX.Element;
27
26
  }
28
27
  export default class KeyPlayCard extends React.Component<Omit<KeyPlayCardViewProps, 'setRef'> & WithFocusableProps> {
29
28
  context: import("@/components/core/ScrollableContainer/ScrollableContainer").ScrollableContainerContextType;
30
29
  static contextTypes: {
31
- refsMap: import("prop-types").Requireable<(HTMLElement | null | undefined)[]>;
32
- setRef: import("prop-types").Requireable<(...args: any[]) => any>;
33
- scrollToFocusedElement: import("prop-types").Requireable<(...args: any[]) => any>;
30
+ refsMap: React.Requireable<any>;
31
+ setRef: React.Requireable<any>;
32
+ scrollToFocusedElement: React.Requireable<any>;
34
33
  };
35
34
  handleLeftPressed: (d: Direction) => void;
36
35
  onBecameFocused: (layout: Layout) => void;
37
- render(): JSX.Element;
36
+ render(): React.JSX.Element;
38
37
  }
39
38
  export {};
@@ -5,7 +5,6 @@ import SDK from '@/index';
5
5
  import Icon from '@/components/atoms/SvgIcon';
6
6
  import React from 'react';
7
7
  import { withFocusable, } from '@/external/spatial-navigation';
8
- import ScoreCard from './KeyPlayCardScoreTagView';
9
8
  import FocusableItem from '@/components/core/ScrollableContainer/FocusableItem';
10
9
  import { DEFAULT_SCROLLABLE_CONTAINER_CONTEXT, SCROLLABLE_CONTEXT_TYPE, } from '@/components/core/ScrollableContainer/ScrollableContainer';
11
10
  export class KeyPlayCardView extends React.Component {
@@ -78,7 +77,14 @@ export class KeyPlayCardView extends React.Component {
78
77
  }
79
78
  }
80
79
  render() {
81
- const { clipID, description, isPlaying, playbackProgress, isScoring, focused, awayTeamScore, homeTeamScore, homeTeamName, awayTeamName, } = this.props;
80
+ const { clipID, description, isPlaying, playbackProgress,
81
+ // isScoring,
82
+ focused,
83
+ // awayTeamScore,
84
+ // homeTeamScore,
85
+ // homeTeamName,
86
+ // awayTeamName,
87
+ } = this.props;
82
88
  const { failedClip } = this.state;
83
89
  return (React.createElement("div", { className: "key-play-card focus-ring", id: clipID, "data-focused": focused },
84
90
  React.createElement("div", { className: "key-play-card-content" },
@@ -87,7 +93,6 @@ export class KeyPlayCardView extends React.Component {
87
93
  React.createElement("div", { className: "text-content T05_ALT" },
88
94
  React.createElement("div", { className: "multi-line" }, description))),
89
95
  isPlaying && playbackProgress !== null && (React.createElement("progress", { value: playbackProgress, max: "1" })),
90
- isScoring && (React.createElement(ScoreCard, { awayTeamScore: awayTeamScore, homeTeamScore: homeTeamScore, homeTeamName: homeTeamName, awayTeamName: awayTeamName })),
91
96
  failedClip === 'recentFailure' && (React.createElement("div", { className: "error-state" },
92
97
  React.createElement("div", { className: "error-state-inner" },
93
98
  React.createElement("div", { className: "error-state-text" },
@@ -8,6 +8,6 @@ type Props = {
8
8
  };
9
9
  declare class KeyPlayErrorStateView extends React.Component<Props, {}> {
10
10
  onArrowPress: (d: Direction) => void;
11
- render(): JSX.Element | null;
11
+ render(): React.JSX.Element | null;
12
12
  }
13
13
  export default KeyPlayErrorStateView;
@@ -1,4 +1,4 @@
1
- import { Component } from 'react';
1
+ import React, { Component } from 'react';
2
2
  import './KeyPlaysView.styles.css';
3
3
  import { KeyPlaysErrorState } from '../interfaces/IKeyPlays';
4
4
  import KeyPlaysViewModel, { KeyPlayItem } from '../view-model/KeyPlaysViewModel';
@@ -19,7 +19,7 @@ export declare class KeyPlays extends Component<{}, IKeyPlaysState> {
19
19
  componentDidMount(): void;
20
20
  componentWillUnmount(): void;
21
21
  private handlePlayClip;
22
- render(): JSX.Element;
22
+ render(): React.JSX.Element;
23
23
  }
24
24
  interface KeyPlaysWithErrorStateState {
25
25
  errorState: KeyPlaysErrorState;
@@ -32,6 +32,6 @@ export default class KeyPlaysWithErrorState extends Component<{}, KeyPlaysWithEr
32
32
  componentDidMount(): void;
33
33
  componentWillUnmount(): void;
34
34
  private handleRetry;
35
- render(): JSX.Element;
35
+ render(): React.JSX.Element;
36
36
  }
37
37
  export {};
@@ -159,9 +159,8 @@ class KeyPlaysViewModel {
159
159
  const awayTeamScore = keyPlay.scoringPlay
160
160
  ? parseInt(awayScore)
161
161
  : undefined;
162
- const randomId = Math.random().toString(36).substring(2, 15);
163
162
  const keyPlayData = {
164
- id: randomId,
163
+ id: `${section.title || ''}-${keyPlay.clipID}`,
165
164
  description: keyPlay.description ? keyPlay.description : '',
166
165
  homeTeamName: homeTeam ? homeTeam.shortName : '',
167
166
  awayTeamName: awayTeam ? awayTeam.shortName : '',
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './ProductDetailView.styles.css';
2
3
  import { IShopBrowseCard, IShopProduct } from '../../types';
3
4
  import { WithFocusableProps } from '@/external/spatial-navigation';
@@ -5,5 +6,5 @@ export type ProductDetailViewProps = {
5
6
  product: IShopProduct | IShopBrowseCard;
6
7
  focusKey: string;
7
8
  };
8
- declare const ProductDetailView: (props: ProductDetailViewProps & WithFocusableProps) => JSX.Element;
9
+ declare const ProductDetailView: (props: ProductDetailViewProps & WithFocusableProps) => React.JSX.Element;
9
10
  export default ProductDetailView;
@@ -18,14 +18,14 @@ const ProductDetail = (props) => {
18
18
  try {
19
19
  const url = new URL(bgImage);
20
20
  if (url.hostname.includes('stitcher')) {
21
- const newBgImage = setImageDimensions(bgImage, 1024, 1024);
21
+ const newBgImage = setImageDimensions(bgImage, 570, 670);
22
22
  return newBgImage;
23
23
  }
24
24
  }
25
25
  catch {
26
26
  // Fallback to original check if URL parsing fails
27
27
  if (bgImage.includes('stitcher')) {
28
- const newBgImage = setImageDimensions(bgImage, 1024, 1024);
28
+ const newBgImage = setImageDimensions(bgImage, 570, 670);
29
29
  return newBgImage;
30
30
  }
31
31
  }
@@ -44,7 +44,7 @@ const ProductDetail = (props) => {
44
44
  React.createElement("div", { className: "product-detail-product" }, isShopProduct(product) ? (React.createElement(ProductSummaryCard, { product: product, focusable: false })) : (React.createElement(BrowseCard, { browseCard: product, focusable: false }))),
45
45
  detail?.qrCode && (React.createElement("div", { className: "product-detail-qr" },
46
46
  React.createElement(Image, { src: detail.qrCode, alt: "QR Code", className: "product-detail-qr-image" }))),
47
- React.createElement("div", { className: "product-detail-instruction T05_ALT" }, detail?.link?.text),
47
+ React.createElement("div", { className: "product-detail-instruction T04" }, detail?.link?.text),
48
48
  React.createElement(ActionButton, { "data-focused": focused }, "Dismiss")));
49
49
  };
50
50
  const FocusableProductDetail = withFocusable()(ProductDetail);
@@ -1,4 +1,4 @@
1
- import { Component } from 'react';
1
+ import React, { Component } from 'react';
2
2
  import './ShopView.styles.css';
3
3
  import { Direction } from '@/external/spatial-navigation/utils';
4
4
  import ShopViewModel, { ShopErrorState } from '../view-model/ShopViewModel';
@@ -29,7 +29,7 @@ declare class ShopView extends Component<{}, State> {
29
29
  openItemDetail: (selectedItem: IShopProduct | IShopBrowseCard, selectedShopSection: IShopSection, selectedItemFocusKey: string) => void;
30
30
  closeProductDetail: () => void;
31
31
  trackPromoEnterPress: () => void;
32
- renderContent: () => JSX.Element | JSX.Element[];
33
- render(): JSX.Element;
32
+ renderContent: () => React.JSX.Element | React.JSX.Element[];
33
+ render(): React.JSX.Element;
34
34
  }
35
35
  export default ShopView;
@@ -7,10 +7,10 @@ export type BrowseCardProps = {
7
7
  browseCard: IShopBrowseCard;
8
8
  };
9
9
  export declare class BrowseCardView extends React.Component<BrowseCardProps & WithFocusableProps> {
10
- render(): JSX.Element;
10
+ render(): React.JSX.Element;
11
11
  }
12
12
  declare const _default: {
13
- new (props: (BrowseCardProps & WithFocusableProps) | Readonly<BrowseCardProps & WithFocusableProps>): {
13
+ new (props?: (BrowseCardProps & WithFocusableProps) | undefined, context?: any): {
14
14
  state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
15
15
  navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
16
16
  getChildContext(): {
@@ -30,65 +30,20 @@ declare const _default: {
30
30
  componentDidMount(): void;
31
31
  componentDidUpdate(): void;
32
32
  componentWillUnmount(): void;
33
- render(): React.ReactElement<BrowseCardProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
34
- context: any;
35
- 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<BrowseCardProps & WithFocusableProps>) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
36
- forceUpdate(callback?: (() => void) | undefined): void;
37
- readonly props: Readonly<BrowseCardProps & WithFocusableProps> & Readonly<{
33
+ render(): React.ReactElement<BrowseCardProps & WithFocusableProps>;
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: BrowseCardProps & WithFocusableProps) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>, callback?: (() => any) | undefined): void;
35
+ forceUpdate(callBack?: (() => any) | undefined): void;
36
+ props: Readonly<{
38
37
  children?: React.ReactNode;
39
- }>;
40
- refs: {
41
- [key: string]: React.ReactInstance;
42
- };
43
- shouldComponentUpdate?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
44
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
45
- getSnapshotBeforeUpdate?(prevProps: Readonly<BrowseCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
46
- componentWillMount?(): void;
47
- UNSAFE_componentWillMount?(): void;
48
- componentWillReceiveProps?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextContext: any): void;
49
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextContext: any): void;
50
- componentWillUpdate?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
51
- UNSAFE_componentWillUpdate?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
52
- };
53
- new (props: BrowseCardProps & WithFocusableProps, context: any): {
54
- state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
55
- navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
56
- getChildContext(): {
57
- parentFocusKey: string;
58
- };
59
- setFocus: (focusKey: string) => void;
60
- navigateByDirection: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
61
- stealFocus: () => void;
62
- onUpdateFocus: (focused: boolean) => void;
63
- onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
64
- onEnterPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
65
- onEnterReleaseHandler: () => void;
66
- onBackPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
67
- onArrowPressHandler: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details: import("../../../../../external/spatial-navigation/utils").Details) => boolean | void;
68
- onBecameFocusedHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
69
- onBecameBlurredHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
70
- componentDidMount(): void;
71
- componentDidUpdate(): void;
72
- componentWillUnmount(): void;
73
- render(): React.ReactElement<BrowseCardProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
38
+ }> & Readonly<BrowseCardProps & WithFocusableProps>;
74
39
  context: any;
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<BrowseCardProps & WithFocusableProps>) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
76
- forceUpdate(callback?: (() => void) | undefined): void;
77
- readonly props: Readonly<BrowseCardProps & WithFocusableProps> & Readonly<{
78
- children?: React.ReactNode;
79
- }>;
80
40
  refs: {
81
41
  [key: string]: React.ReactInstance;
82
42
  };
83
- shouldComponentUpdate?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
84
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
85
- getSnapshotBeforeUpdate?(prevProps: Readonly<BrowseCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
86
43
  componentWillMount?(): void;
87
- UNSAFE_componentWillMount?(): void;
88
44
  componentWillReceiveProps?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextContext: any): void;
89
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextContext: any): void;
45
+ shouldComponentUpdate?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
90
46
  componentWillUpdate?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
91
- UNSAFE_componentWillUpdate?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
92
47
  };
93
48
  contextTypes: {
94
49
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -96,6 +51,5 @@ declare const _default: {
96
51
  childContextTypes: {
97
52
  parentFocusKey: import("prop-types").Requireable<string>;
98
53
  };
99
- contextType?: React.Context<any> | undefined;
100
54
  };
101
55
  export default _default;
@@ -11,7 +11,7 @@ export type ProductSummaryCardProps = {
11
11
  onBecameFocused?: (layout: Layout) => void;
12
12
  };
13
13
  declare const _default: {
14
- new (props: (ProductSummaryCardProps & WithFocusableProps) | Readonly<ProductSummaryCardProps & WithFocusableProps>): {
14
+ new (props?: (ProductSummaryCardProps & WithFocusableProps) | undefined, context?: any): {
15
15
  state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
16
16
  navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
17
17
  getChildContext(): {
@@ -31,65 +31,20 @@ declare const _default: {
31
31
  componentDidMount(): void;
32
32
  componentDidUpdate(): void;
33
33
  componentWillUnmount(): void;
34
- render(): React.ReactElement<ProductSummaryCardProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
35
- context: any;
36
- setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<ProductSummaryCardProps & 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;
37
- forceUpdate(callback?: (() => void) | undefined): void;
38
- readonly props: Readonly<ProductSummaryCardProps & WithFocusableProps> & Readonly<{
34
+ render(): React.ReactElement<ProductSummaryCardProps & WithFocusableProps>;
35
+ 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: ProductSummaryCardProps & WithFocusableProps) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>, callback?: (() => any) | undefined): void;
36
+ forceUpdate(callBack?: (() => any) | undefined): void;
37
+ props: Readonly<{
39
38
  children?: React.ReactNode;
40
- }>;
41
- refs: {
42
- [key: string]: React.ReactInstance;
43
- };
44
- shouldComponentUpdate?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
45
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
46
- getSnapshotBeforeUpdate?(prevProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
47
- componentWillMount?(): void;
48
- UNSAFE_componentWillMount?(): void;
49
- componentWillReceiveProps?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextContext: any): void;
50
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextContext: any): void;
51
- componentWillUpdate?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
52
- UNSAFE_componentWillUpdate?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
53
- };
54
- new (props: ProductSummaryCardProps & WithFocusableProps, context: any): {
55
- state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
56
- navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
57
- getChildContext(): {
58
- parentFocusKey: string;
59
- };
60
- setFocus: (focusKey: string) => void;
61
- navigateByDirection: (direction: Direction, details?: Record<string, any>) => void;
62
- stealFocus: () => void;
63
- onUpdateFocus: (focused: boolean) => void;
64
- onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
65
- onEnterPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
66
- onEnterReleaseHandler: () => void;
67
- onBackPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
68
- onArrowPressHandler: (direction: Direction, details: import("@/external/spatial-navigation/utils").Details) => boolean | void;
69
- onBecameFocusedHandler: (layout: Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
70
- onBecameBlurredHandler: (layout: Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
71
- componentDidMount(): void;
72
- componentDidUpdate(): void;
73
- componentWillUnmount(): void;
74
- render(): React.ReactElement<ProductSummaryCardProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
39
+ }> & Readonly<ProductSummaryCardProps & WithFocusableProps>;
75
40
  context: any;
76
- 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<ProductSummaryCardProps & 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;
77
- forceUpdate(callback?: (() => void) | undefined): void;
78
- readonly props: Readonly<ProductSummaryCardProps & WithFocusableProps> & Readonly<{
79
- children?: React.ReactNode;
80
- }>;
81
41
  refs: {
82
42
  [key: string]: React.ReactInstance;
83
43
  };
84
- shouldComponentUpdate?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
85
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
86
- getSnapshotBeforeUpdate?(prevProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
87
44
  componentWillMount?(): void;
88
- UNSAFE_componentWillMount?(): void;
89
45
  componentWillReceiveProps?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextContext: any): void;
90
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextContext: any): void;
46
+ shouldComponentUpdate?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
91
47
  componentWillUpdate?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
92
- UNSAFE_componentWillUpdate?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
93
48
  };
94
49
  contextTypes: {
95
50
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -97,6 +52,5 @@ declare const _default: {
97
52
  childContextTypes: {
98
53
  parentFocusKey: import("prop-types").Requireable<string>;
99
54
  };
100
- contextType?: React.Context<any> | undefined;
101
55
  };
102
56
  export default _default;
@@ -1,8 +1,9 @@
1
+ import React from 'react';
1
2
  import { WithFocusableProps } from '@/external/spatial-navigation';
2
3
  import './ShopPromoView.styles.css';
3
4
  import { IShopDefaultItem } from '../../../types';
4
5
  type Props = {
5
6
  promoData: IShopDefaultItem;
6
7
  };
7
- declare const ShopPromoViewWrapper: (props: Props & WithFocusableProps) => JSX.Element;
8
+ declare const ShopPromoViewWrapper: (props: Props & WithFocusableProps) => React.JSX.Element;
8
9
  export default ShopPromoViewWrapper;
@@ -1,4 +1,3 @@
1
- /// <reference types="prop-types" />
2
1
  import React from 'react';
3
2
  import './ShopSection.styles.css';
4
3
  import { IShopBrowseCard, IShopProduct, IShopSection } from '../../../types';
@@ -11,13 +10,13 @@ export type ShopSectionProps = {
11
10
  };
12
11
  declare class ShopSection extends React.Component<ShopSectionProps> {
13
12
  static contextTypes: {
14
- refsMap: import("prop-types").Requireable<(HTMLElement | null | undefined)[]>;
15
- setRef: import("prop-types").Requireable<(...args: any[]) => any>;
16
- scrollToFocusedElement: import("prop-types").Requireable<(...args: any[]) => any>;
13
+ refsMap: React.Requireable<any>;
14
+ setRef: React.Requireable<any>;
15
+ scrollToFocusedElement: React.Requireable<any>;
17
16
  };
18
17
  context: import("@/components/core/ScrollableContainer/ScrollableContainer").ScrollableContainerContextType;
19
18
  onBecameFocused: (layout: Layout) => void;
20
19
  onEnterPress: (item: IShopProduct | IShopBrowseCard, section: IShopSection, focusKey: string) => () => void;
21
- render(): JSX.Element;
20
+ render(): React.JSX.Element;
22
21
  }
23
22
  export default ShopSection;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  export interface TeamStatisticProps {
2
3
  statisticName: string;
3
4
  firstDisplayValue: string | number;
@@ -17,4 +18,4 @@ export interface TeamStatisticProps {
17
18
  * Shared utility to render a team statistic with consistent structure
18
19
  * This eliminates code duplication between Teams and TeamStatsView components
19
20
  */
20
- export declare const renderTeamStatistic: (props: TeamStatisticProps) => JSX.Element;
21
+ export declare const renderTeamStatistic: (props: TeamStatisticProps) => React.JSX.Element;
@@ -16,7 +16,7 @@ declare class ActiveAthletes extends React.Component<ActiveAthletesProps, {
16
16
  get cardFocusKey(): string;
17
17
  onAthletesStatisticsBackPress: () => void;
18
18
  onArrowPress: (d: Direction) => void;
19
- renderContent(): JSX.Element;
20
- render(): JSX.Element;
19
+ renderContent(): React.JSX.Element;
20
+ render(): React.JSX.Element;
21
21
  }
22
22
  export default ActiveAthletes;