@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
@@ -7,7 +7,7 @@ export interface StatsQRCodeViewProps extends WithFocusableProps {
7
7
  promotion: StatsPromotion;
8
8
  }
9
9
  declare const _default: {
10
- new (props: (StatsQRCodeViewProps & WithFocusableProps) | Readonly<StatsQRCodeViewProps & WithFocusableProps>): {
10
+ new (props?: (StatsQRCodeViewProps & 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<StatsQRCodeViewProps & 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<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;
33
- forceUpdate(callback?: (() => void) | undefined): void;
34
- readonly props: Readonly<StatsQRCodeViewProps & WithFocusableProps> & Readonly<{
30
+ render(): React.ReactElement<StatsQRCodeViewProps & 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: StatsQRCodeViewProps & 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<StatsQRCodeViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
41
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
42
- getSnapshotBeforeUpdate?(prevProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
43
- componentWillMount?(): void;
44
- UNSAFE_componentWillMount?(): void;
45
- componentWillReceiveProps?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextContext: any): void;
46
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextContext: any): void;
47
- componentWillUpdate?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
48
- UNSAFE_componentWillUpdate?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
49
- };
50
- new (props: StatsQRCodeViewProps & 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<StatsQRCodeViewProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
35
+ }> & Readonly<StatsQRCodeViewProps & 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<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;
73
- forceUpdate(callback?: (() => void) | undefined): void;
74
- readonly props: Readonly<StatsQRCodeViewProps & WithFocusableProps> & Readonly<{
75
- children?: React.ReactNode;
76
- }>;
77
37
  refs: {
78
38
  [key: string]: React.ReactInstance;
79
39
  };
80
- shouldComponentUpdate?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
81
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
82
- getSnapshotBeforeUpdate?(prevProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
83
40
  componentWillMount?(): void;
84
- UNSAFE_componentWillMount?(): void;
85
41
  componentWillReceiveProps?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextContext: any): void;
86
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextContext: any): void;
42
+ shouldComponentUpdate?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
87
43
  componentWillUpdate?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
88
- UNSAFE_componentWillUpdate?(nextProps: Readonly<StatsQRCodeViewProps & 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;
@@ -1,4 +1,4 @@
1
- import { Component } from 'react';
1
+ import React, { Component } from 'react';
2
2
  import './StatsView.styles.css';
3
3
  import StatsViewModel, { StatsErrorState, StatsItem } from '../view-model/StatsViewModel';
4
4
  import { Direction } from '@/external/spatial-navigation/utils';
@@ -20,8 +20,8 @@ declare class StatsView extends Component<{}, StatsViewState> {
20
20
  componentWillUnmount(): void;
21
21
  clearTabLoadFailure: () => void;
22
22
  onArrowPress: (d: Direction) => void;
23
- renderItems: () => JSX.Element | JSX.Element[] | null;
23
+ renderItems: () => React.JSX.Element | React.JSX.Element[] | null;
24
24
  onEnterPress: (item: StatsItem) => void;
25
- render(): JSX.Element;
25
+ render(): React.JSX.Element;
26
26
  }
27
27
  export default StatsView;
@@ -7,7 +7,7 @@ export interface TeamStatsViewProps {
7
7
  item: TeamStatsItem;
8
8
  }
9
9
  declare const _default: {
10
- new (props: (TeamStatsViewProps & WithFocusableProps) | Readonly<TeamStatsViewProps & WithFocusableProps>): {
10
+ new (props?: (TeamStatsViewProps & 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<TeamStatsViewProps & 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<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
- forceUpdate(callback?: (() => void) | undefined): void;
34
- readonly props: Readonly<TeamStatsViewProps & WithFocusableProps> & Readonly<{
30
+ render(): React.ReactElement<TeamStatsViewProps & 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: TeamStatsViewProps & 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<TeamStatsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
41
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
42
- getSnapshotBeforeUpdate?(prevProps: Readonly<TeamStatsViewProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
43
- componentWillMount?(): void;
44
- UNSAFE_componentWillMount?(): void;
45
- componentWillReceiveProps?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextContext: any): void;
46
- 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
- };
50
- new (props: TeamStatsViewProps & 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<TeamStatsViewProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
35
+ }> & Readonly<TeamStatsViewProps & 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<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
- forceUpdate(callback?: (() => void) | undefined): void;
74
- readonly props: Readonly<TeamStatsViewProps & WithFocusableProps> & Readonly<{
75
- children?: React.ReactNode;
76
- }>;
77
37
  refs: {
78
38
  [key: string]: React.ReactInstance;
79
39
  };
80
- shouldComponentUpdate?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
81
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
82
- getSnapshotBeforeUpdate?(prevProps: Readonly<TeamStatsViewProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
83
40
  componentWillMount?(): void;
84
- UNSAFE_componentWillMount?(): void;
85
41
  componentWillReceiveProps?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextContext: any): void;
86
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextContext: any): void;
42
+ shouldComponentUpdate?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
87
43
  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;
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;
@@ -19,7 +19,7 @@ declare class StatsCarousel extends React.Component<Props, {
19
19
  }): void;
20
20
  startInterval(): void;
21
21
  clearInterval(): void;
22
- render(): JSX.Element;
22
+ render(): React.JSX.Element;
23
23
  }
24
- declare const CarouselSlider: (props: Props) => JSX.Element;
24
+ declare const CarouselSlider: (props: Props) => React.JSX.Element;
25
25
  export { StatsCarousel, CarouselSlider };
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  type Props = {
2
3
  awayTeamValue: number;
3
4
  homeTeamValue: number;
4
5
  };
5
- declare const StatsProgressBar: (props: Props) => JSX.Element;
6
+ declare const StatsProgressBar: (props: Props) => React.JSX.Element;
6
7
  export default StatsProgressBar;
@@ -7,7 +7,7 @@ type TeamsProps = {
7
7
  item: HeaderTeamStatItem;
8
8
  };
9
9
  declare const _default: {
10
- new (props: (TeamsProps & WithFocusableProps) | Readonly<TeamsProps & WithFocusableProps>): {
10
+ new (props?: (TeamsProps & 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<TeamsProps & 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<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;
33
- forceUpdate(callback?: (() => void) | undefined): void;
34
- readonly props: Readonly<TeamsProps & WithFocusableProps> & Readonly<{
30
+ render(): React.ReactElement<TeamsProps & 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: TeamsProps & 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<TeamsProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
41
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
42
- getSnapshotBeforeUpdate?(prevProps: Readonly<TeamsProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
43
- componentWillMount?(): void;
44
- UNSAFE_componentWillMount?(): void;
45
- componentWillReceiveProps?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextContext: any): void;
46
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextContext: any): void;
47
- componentWillUpdate?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
48
- UNSAFE_componentWillUpdate?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
49
- };
50
- new (props: TeamsProps & 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<TeamsProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
35
+ }> & Readonly<TeamsProps & 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<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;
73
- forceUpdate(callback?: (() => void) | undefined): void;
74
- readonly props: Readonly<TeamsProps & WithFocusableProps> & Readonly<{
75
- children?: React.ReactNode;
76
- }>;
77
37
  refs: {
78
38
  [key: string]: React.ReactInstance;
79
39
  };
80
- shouldComponentUpdate?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
81
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
82
- getSnapshotBeforeUpdate?(prevProps: Readonly<TeamsProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
83
40
  componentWillMount?(): void;
84
- UNSAFE_componentWillMount?(): void;
85
41
  componentWillReceiveProps?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextContext: any): void;
86
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextContext: any): void;
42
+ shouldComponentUpdate?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
87
43
  componentWillUpdate?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
88
- UNSAFE_componentWillUpdate?(nextProps: Readonly<TeamsProps & 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;
@@ -2,8 +2,6 @@ import React from 'react';
2
2
  import './TeamsView.styles.css';
3
3
  import Image from '@/components/atoms/Image';
4
4
  import { withFocusable, } from '@/external/spatial-navigation';
5
- import { CarouselSlider, StatsCarousel } from './StatsCarousel';
6
- import { renderTeamStatistic } from '../../utils/renderTeamStatistic';
7
5
  const Teams = (props) => {
8
6
  const item = props.item;
9
7
  const teams = [item.awayTeam, item.homeTeam];
@@ -24,20 +22,6 @@ const Teams = (props) => {
24
22
  item.linescoresHeader.map((header) => (React.createElement("th", { key: header, className: "T10" }, header))))),
25
23
  React.createElement("tbody", null, teams.map((team) => (React.createElement("tr", { key: team.id },
26
24
  React.createElement("td", { className: "T30 FONT_BOLD" }, team.name),
27
- team.linescores.map((lineScore, index) => (React.createElement("td", { key: `${lineScore}-${index}`, className: "T10" }, lineScore)))))))),
28
- item.statistics && item.statistics.length > 0 && (React.createElement(StatsCarousel, { itemsLength: item.statistics.length }, item.statistics.map((statistic) => (React.createElement(CarouselSlider, { itemsLength: item.statistics.length, key: statistic.displayName }, renderTeamStatistic({
29
- statisticName: statistic.displayName,
30
- firstDisplayValue: statistic.awayTeamDisplayValue,
31
- secondDisplayValue: statistic.homeTeamDisplayValue,
32
- awayProgressValue: statistic.awayTeamValue,
33
- homeProgressValue: statistic.homeTeamValue,
34
- classNames: {
35
- container: 'score-statistics',
36
- header: 'score-statistics-header',
37
- firstValue: 'T30 FONT_BOLD',
38
- secondValue: 'T30 FONT_BOLD',
39
- statisticName: 'statistic-name T02',
40
- },
41
- }))))))))));
25
+ team.linescores.map((lineScore, index) => (React.createElement("td", { key: `${lineScore}-${index}`, className: "T10" }, lineScore))))))))))));
42
26
  };
43
27
  export default withFocusable()(Teams);
@@ -7,7 +7,7 @@ type WinProbabilityProps = {
7
7
  item: WinProbabilityStatsItem;
8
8
  };
9
9
  declare const _default: {
10
- new (props: (WinProbabilityProps & WithFocusableProps) | Readonly<WinProbabilityProps & WithFocusableProps>): {
10
+ new (props?: (WinProbabilityProps & 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<WinProbabilityProps & 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<WinProbabilityProps & 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<WinProbabilityProps & WithFocusableProps> & Readonly<{
30
+ render(): React.ReactElement<WinProbabilityProps & 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: WinProbabilityProps & 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<WinProbabilityProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
41
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
42
- getSnapshotBeforeUpdate?(prevProps: Readonly<WinProbabilityProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
43
- componentWillMount?(): void;
44
- UNSAFE_componentWillMount?(): void;
45
- componentWillReceiveProps?(nextProps: Readonly<WinProbabilityProps & WithFocusableProps>, nextContext: any): void;
46
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<WinProbabilityProps & WithFocusableProps>, nextContext: any): void;
47
- componentWillUpdate?(nextProps: Readonly<WinProbabilityProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
48
- UNSAFE_componentWillUpdate?(nextProps: Readonly<WinProbabilityProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
49
- };
50
- new (props: WinProbabilityProps & 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<WinProbabilityProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
35
+ }> & Readonly<WinProbabilityProps & 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<WinProbabilityProps & 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<WinProbabilityProps & WithFocusableProps> & Readonly<{
75
- children?: React.ReactNode;
76
- }>;
77
37
  refs: {
78
38
  [key: string]: React.ReactInstance;
79
39
  };
80
- shouldComponentUpdate?(nextProps: Readonly<WinProbabilityProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
81
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
82
- getSnapshotBeforeUpdate?(prevProps: Readonly<WinProbabilityProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
83
40
  componentWillMount?(): void;
84
- UNSAFE_componentWillMount?(): void;
85
41
  componentWillReceiveProps?(nextProps: Readonly<WinProbabilityProps & WithFocusableProps>, nextContext: any): void;
86
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<WinProbabilityProps & WithFocusableProps>, nextContext: any): void;
42
+ shouldComponentUpdate?(nextProps: Readonly<WinProbabilityProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
87
43
  componentWillUpdate?(nextProps: Readonly<WinProbabilityProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
88
- UNSAFE_componentWillUpdate?(nextProps: Readonly<WinProbabilityProps & 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;
@@ -22,7 +22,7 @@ export type AthletesStatisticsProps = {
22
22
  item: AthletesStatisticsItem;
23
23
  };
24
24
  declare const _default: {
25
- new (props: (AthletesStatisticsProps & WithFocusableProps) | Readonly<AthletesStatisticsProps & WithFocusableProps>): {
25
+ new (props?: (AthletesStatisticsProps & WithFocusableProps) | undefined, context?: any): {
26
26
  state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
27
27
  navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
28
28
  getChildContext(): {
@@ -42,65 +42,20 @@ declare const _default: {
42
42
  componentDidMount(): void;
43
43
  componentDidUpdate(): void;
44
44
  componentWillUnmount(): void;
45
- render(): React.ReactElement<AthletesStatisticsProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
46
- context: any;
47
- setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<AthletesStatisticsProps & WithFocusableProps>) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
48
- forceUpdate(callback?: (() => void) | undefined): void;
49
- readonly props: Readonly<AthletesStatisticsProps & WithFocusableProps> & Readonly<{
45
+ render(): React.ReactElement<AthletesStatisticsProps & WithFocusableProps>;
46
+ 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: AthletesStatisticsProps & 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;
47
+ forceUpdate(callBack?: (() => any) | undefined): void;
48
+ props: Readonly<{
50
49
  children?: React.ReactNode;
51
- }>;
52
- refs: {
53
- [key: string]: React.ReactInstance;
54
- };
55
- shouldComponentUpdate?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
56
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
57
- getSnapshotBeforeUpdate?(prevProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
58
- componentWillMount?(): void;
59
- UNSAFE_componentWillMount?(): void;
60
- componentWillReceiveProps?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextContext: any): void;
61
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextContext: any): void;
62
- componentWillUpdate?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
63
- UNSAFE_componentWillUpdate?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
64
- };
65
- new (props: AthletesStatisticsProps & WithFocusableProps, context: any): {
66
- state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
67
- navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
68
- getChildContext(): {
69
- parentFocusKey: string;
70
- };
71
- setFocus: (focusKey: string) => void;
72
- navigateByDirection: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
73
- stealFocus: () => void;
74
- onUpdateFocus: (focused: boolean) => void;
75
- onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
76
- onEnterPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
77
- onEnterReleaseHandler: () => void;
78
- onBackPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
79
- onArrowPressHandler: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details: import("../../../../../external/spatial-navigation/utils").Details) => boolean | void;
80
- onBecameFocusedHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
81
- onBecameBlurredHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
82
- componentDidMount(): void;
83
- componentDidUpdate(): void;
84
- componentWillUnmount(): void;
85
- render(): React.ReactElement<AthletesStatisticsProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
50
+ }> & Readonly<AthletesStatisticsProps & WithFocusableProps>;
86
51
  context: any;
87
- setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<AthletesStatisticsProps & WithFocusableProps>) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
88
- forceUpdate(callback?: (() => void) | undefined): void;
89
- readonly props: Readonly<AthletesStatisticsProps & WithFocusableProps> & Readonly<{
90
- children?: React.ReactNode;
91
- }>;
92
52
  refs: {
93
53
  [key: string]: React.ReactInstance;
94
54
  };
95
- shouldComponentUpdate?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
96
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
97
- getSnapshotBeforeUpdate?(prevProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
98
55
  componentWillMount?(): void;
99
- UNSAFE_componentWillMount?(): void;
100
56
  componentWillReceiveProps?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextContext: any): void;
101
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextContext: any): void;
57
+ shouldComponentUpdate?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
102
58
  componentWillUpdate?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
103
- UNSAFE_componentWillUpdate?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
104
59
  };
105
60
  contextTypes: {
106
61
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -108,6 +63,5 @@ declare const _default: {
108
63
  childContextTypes: {
109
64
  parentFocusKey: import("prop-types").Requireable<string>;
110
65
  };
111
- contextType?: React.Context<any> | undefined;
112
66
  };
113
67
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { AthletesStatisticsProps } from './AthletesStatistics';
2
- declare const StatisticsTable: (props: AthletesStatisticsProps) => JSX.Element;
3
+ declare const StatisticsTable: (props: AthletesStatisticsProps) => React.JSX.Element;
3
4
  export default StatisticsTable;
@@ -152,6 +152,11 @@ export declare class StatsViewModel extends ViewModel {
152
152
  constructor(eventId: string, delegate: IMaestroEventDelegate, options?: {
153
153
  useMockData?: boolean;
154
154
  });
155
+ /**
156
+ * Sets panel-specific data configuration
157
+ * @param panelData - Object containing panel configuration
158
+ */
159
+ setPanelData(panelData: Record<string, any>): void;
155
160
  /**
156
161
  * Initialize the ViewModel and start data fetching
157
162
  */