@maestro_io/maestro-web-sdk 4.0.0-beta.3 → 4.0.0-beta.4

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 (141) 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 +13 -9
  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 +141 -11
  9. package/dist/src/components/atoms/SvgIcon/BetGeneralIcon.d.ts +1 -2
  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/ChatIcon.d.ts +4 -0
  13. package/dist/src/components/atoms/SvgIcon/CheckmarkIcon.d.ts +1 -2
  14. package/dist/src/components/atoms/SvgIcon/CollapseIcon.d.ts +1 -2
  15. package/dist/src/components/atoms/SvgIcon/ExpandIcon.d.ts +1 -2
  16. package/dist/src/components/atoms/SvgIcon/FantasyIcon.d.ts +1 -1
  17. package/dist/src/components/atoms/SvgIcon/FlameIcon.d.ts +1 -1
  18. package/dist/src/components/atoms/SvgIcon/HelloWorldIcon.d.ts +3 -0
  19. package/dist/src/components/atoms/SvgIcon/Icon.d.ts +5 -5
  20. package/dist/src/components/atoms/SvgIcon/KeyPlaysIcon.d.ts +1 -1
  21. package/dist/src/components/atoms/SvgIcon/MobilePhoneIcon.d.ts +1 -1
  22. package/dist/src/components/atoms/SvgIcon/PlayIcon.d.ts +1 -1
  23. package/dist/src/components/atoms/SvgIcon/ShopIcon.d.ts +1 -1
  24. package/dist/src/components/atoms/SvgIcon/ShopifyIcon.d.ts +4 -0
  25. package/dist/src/components/atoms/SvgIcon/StatsIcon.d.ts +1 -1
  26. package/dist/src/components/atoms/SvgIcon/TimesIcon.d.ts +1 -2
  27. package/dist/src/components/atoms/SvgIcon/WarningIcon.d.ts +1 -1
  28. package/dist/src/components/core/App/App.d.ts +1 -1
  29. package/dist/src/components/core/PanelManager/PanelManager.d.ts +1 -1
  30. package/dist/src/components/core/ScrollableContainer/ScrollableContainer.d.ts +8 -7
  31. package/dist/src/components/core/ScrollableContainer/ScrollableContainer.js +7 -6
  32. package/dist/src/components/molecules/ActionButton/ActionButton.d.ts +53 -7
  33. package/dist/src/components/molecules/HeadshotImage/HeadshotImage.d.ts +1 -1
  34. package/dist/src/components/molecules/Overlay/Overlay.d.ts +1 -1
  35. package/dist/src/components/molecules/PanelNavButton/PanelNavButton.d.ts +53 -7
  36. package/dist/src/components/molecules/TabLoadError/TabLoadError.d.ts +53 -7
  37. package/dist/src/components/molecules/WatchButton/WatchButton.d.ts +1 -1
  38. package/dist/src/components/organisms/PanelNavigation/PanelNavigation.d.ts +1 -1
  39. package/dist/src/components/organisms/SegmentController/SegmentController.d.ts +5 -4
  40. package/dist/src/development/TimeSeek.d.ts +1 -1
  41. package/dist/src/development/development.js +7 -4
  42. package/dist/src/external/ReactRenderer.js +15 -3
  43. package/dist/src/external/spatial-navigation/withFocusable.d.ts +53 -7
  44. package/dist/src/index.d.ts +1 -2
  45. package/dist/src/index.js +1 -1
  46. package/dist/src/interfaces/IMaestroEvent.d.ts +2 -2
  47. package/dist/src/interfaces/IMaestroManager.d.ts +2 -2
  48. package/dist/src/modules/bets/view/BetsView.d.ts +3 -3
  49. package/dist/src/modules/bets/view/HotProps/HotPropsView.d.ts +53 -7
  50. package/dist/src/modules/bets/view/SixPack/SixPackView.d.ts +5 -4
  51. package/dist/src/modules/bets/view/UserBets/BetResult/BetResult.d.ts +1 -1
  52. package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCard.d.ts +53 -7
  53. package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardEvent.d.ts +5 -4
  54. package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardFooter.d.ts +1 -2
  55. package/dist/src/modules/bets/view/UserBets/Boost/Boost.d.ts +1 -2
  56. package/dist/src/modules/bets/view/UserBets/OutcomeBadge/OutcomeBadge.d.ts +1 -2
  57. package/dist/src/modules/bets/view/UserBets/Parlay/Parlay.d.ts +1 -2
  58. package/dist/src/modules/bets/view/UserBets/Straight/Straight.d.ts +1 -2
  59. package/dist/src/modules/bets/view/UserBets/Teaser/Teaser.d.ts +1 -2
  60. package/dist/src/modules/bets/view/UserBets/UserBetsView.d.ts +3 -3
  61. package/dist/src/modules/bets/view/components/Bet/Bet.d.ts +99 -11
  62. package/dist/src/modules/bets/view/components/BetPill/BetPill.d.ts +1 -1
  63. package/dist/src/modules/bets/view/components/BetsCard/BetsCardHeader.d.ts +1 -1
  64. package/dist/src/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.d.ts +1 -1
  65. package/dist/src/modules/bets/view/components/LocationWarning/LocationWarning.d.ts +1 -1
  66. package/dist/src/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.d.ts +5 -4
  67. package/dist/src/modules/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.d.ts +1 -1
  68. package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.d.ts +53 -7
  69. package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +53 -7
  70. package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.d.ts +1 -1
  71. package/dist/src/modules/fantasy/view/FantasyItemView.d.ts +6 -5
  72. package/dist/src/modules/fantasy/view/FantasyView.d.ts +3 -3
  73. package/dist/src/modules/fantasy/view/InactiveLeague/DraftDateCountdown.d.ts +1 -1
  74. package/dist/src/modules/fantasy/view/InactiveLeague/InactiveLeague.d.ts +53 -7
  75. package/dist/src/modules/fantasy/view/LoginView/LoginView.d.ts +53 -7
  76. package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts +53 -7
  77. package/dist/src/modules/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.d.ts +1 -1
  78. package/dist/src/modules/fantasy/view/MatchupPair/MatchupPair.d.ts +53 -7
  79. package/dist/src/modules/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.d.ts +1 -1
  80. package/dist/src/modules/fantasy/view/MatchupSingle/MatchupSingle.d.ts +53 -7
  81. package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts +53 -7
  82. package/dist/src/modules/fantasy/view/PromoView/PromoView.d.ts +53 -7
  83. package/dist/src/modules/hello-world/HelloWorldImage.d.ts +3 -0
  84. package/dist/src/modules/hello-world/HelloWorldView.d.ts +11 -0
  85. package/dist/src/modules/hello-world/HelloWorldView.js +33 -0
  86. package/dist/src/modules/hello-world/index.d.ts +2 -0
  87. package/dist/src/modules/hello-world/index.js +2 -0
  88. package/dist/src/modules/key-plays/constants.js +1 -3
  89. package/dist/src/modules/key-plays/view/KeyPlayCardScoreTagView.d.ts +1 -1
  90. package/dist/src/modules/key-plays/view/KeyPlayCardView.d.ts +7 -6
  91. package/dist/src/modules/key-plays/view/KeyPlayCardView.js +3 -3
  92. package/dist/src/modules/key-plays/view/KeyPlayErrorStateView.d.ts +1 -1
  93. package/dist/src/modules/key-plays/view/KeyPlaysView.d.ts +3 -3
  94. package/dist/src/modules/shop/mocks.js +1 -0
  95. package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.d.ts +1 -2
  96. package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.js +5 -1
  97. package/dist/src/modules/shop/view/ShopView.d.ts +3 -3
  98. package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.d.ts +54 -8
  99. package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.js +1 -1
  100. package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.d.ts +53 -7
  101. package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.js +1 -1
  102. package/dist/src/modules/shop/view/components/ShopPromoView/ShopPromoView.d.ts +1 -2
  103. package/dist/src/modules/shop/view/components/ShopSection/ShopSection.d.ts +5 -4
  104. package/dist/src/modules/shop/view-model/ShopViewModel.js +5 -1
  105. package/dist/src/modules/stats/utils/renderTeamStatistic.d.ts +1 -2
  106. package/dist/src/modules/stats/view/ActiveAthletes/ActiveAthletes.d.ts +2 -2
  107. package/dist/src/modules/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.d.ts +1 -2
  108. package/dist/src/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.d.ts +1 -1
  109. package/dist/src/modules/stats/view/DriveSummary/DrivePlayCard.d.ts +53 -7
  110. package/dist/src/modules/stats/view/DriveSummary/DriveSummary.d.ts +1 -1
  111. package/dist/src/modules/stats/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.d.ts +1 -1
  112. package/dist/src/modules/stats/view/DriveSummary/Header/DriveSummaryHeader.d.ts +1 -2
  113. package/dist/src/modules/stats/view/DriveSummary/MainStat/MainStat.d.ts +1 -2
  114. package/dist/src/modules/stats/view/GameLeaders/GameLeaders.d.ts +5 -4
  115. package/dist/src/modules/stats/view/MatchPredictor/DonutChart/DonutChart.d.ts +2 -2
  116. package/dist/src/modules/stats/view/MatchPredictor/MatchPredictorView.d.ts +53 -7
  117. package/dist/src/modules/stats/view/Penalties/Penalties.d.ts +1 -2
  118. package/dist/src/modules/stats/view/RecentGames/RecentGames.d.ts +53 -7
  119. package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.d.ts +1 -1
  120. package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.js +3 -1
  121. package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/ScoreItem.d.ts +53 -7
  122. package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/ScoresSection.d.ts +1 -2
  123. package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.d.ts +5 -2
  124. package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.js +20 -1
  125. package/dist/src/modules/stats/view/StatsItemView.d.ts +6 -5
  126. package/dist/src/modules/stats/view/StatsQRCode/StatsQRCodeView.d.ts +53 -7
  127. package/dist/src/modules/stats/view/StatsView.d.ts +3 -3
  128. package/dist/src/modules/stats/view/TeamStats/TeamStatsView.d.ts +53 -7
  129. package/dist/src/modules/stats/view/Teams/StatsCarousel.d.ts +2 -2
  130. package/dist/src/modules/stats/view/Teams/StatsProgressBar.d.ts +1 -2
  131. package/dist/src/modules/stats/view/Teams/Teams.d.ts +53 -7
  132. package/dist/src/modules/stats/view/WinProbability/WinProbability.d.ts +53 -7
  133. package/dist/src/modules/stats/view/components/AthletesStatistics/AthletesStatistics.d.ts +53 -7
  134. package/dist/src/modules/stats/view/components/AthletesStatistics/StatisticTable.d.ts +1 -2
  135. package/dist/src/modules/stats/view-model/StatsViewModel.d.ts +1 -1
  136. package/dist/src/modules/stats/view-model/StatsViewModel.js +1 -1
  137. package/dist/src/services/AnalyticsService/AnalyticsService.js +3 -1
  138. package/dist/src/services/NetworkManager/NetworkManager.js +3 -3
  139. package/dist/src/view-models/MaestroEventViewModel.d.ts +1 -1
  140. package/dist/src/view-models/MaestroEventViewModel.js +6 -9
  141. package/package.json +13 -9
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import React from 'react';
2
3
  import { Direction, Layout } from '@/external/spatial-navigation/utils';
3
4
  import { PenaltiesItem, ScoringSummaryItem } from '../../view-model/StatsViewModel';
@@ -11,7 +12,9 @@ export type ScoringSummaryProps = {
11
12
  declare class ScoringSummary extends React.Component<ScoringSummaryProps, {
12
13
  expanded: boolean;
13
14
  }> {
15
+ expandedScoresArrowPressTimeout: NodeJS.Timeout | null;
14
16
  constructor(props: ScoringSummaryProps);
17
+ componentWillUnmount(): void;
15
18
  onEnterPress(): void;
16
19
  onExpandedScoreArrowPress: (props: {
17
20
  index: number;
@@ -20,7 +23,7 @@ declare class ScoringSummary extends React.Component<ScoringSummaryProps, {
20
23
  get cardFocusKey(): string;
21
24
  onExpandedScoreBackPress: () => void;
22
25
  onArrowPress: (d: Direction) => void;
23
- renderContent(): React.JSX.Element | React.JSX.Element[];
24
- render(): React.JSX.Element;
26
+ renderContent(): JSX.Element | JSX.Element[];
27
+ render(): JSX.Element;
25
28
  }
26
29
  export default ScoringSummary;
@@ -9,6 +9,12 @@ import { slugify } from '@/helpers/strings';
9
9
  class ScoringSummary extends React.Component {
10
10
  constructor(props) {
11
11
  super(props);
12
+ Object.defineProperty(this, "expandedScoresArrowPressTimeout", {
13
+ enumerable: true,
14
+ configurable: true,
15
+ writable: true,
16
+ value: null
17
+ });
12
18
  Object.defineProperty(this, "onExpandedScoreArrowPress", {
13
19
  enumerable: true,
14
20
  configurable: true,
@@ -39,7 +45,14 @@ class ScoringSummary extends React.Component {
39
45
  });
40
46
  return false;
41
47
  }
42
- return true;
48
+ if (this.expandedScoresArrowPressTimeout) {
49
+ clearTimeout(this.expandedScoresArrowPressTimeout);
50
+ }
51
+ // Add a small delay to allow the focus to update properly and avoid skipping elements
52
+ this.expandedScoresArrowPressTimeout = setTimeout(() => {
53
+ SDK.getMaestroEventViewModel().navigation.navigateByDirection(d);
54
+ }, 175);
55
+ return false;
43
56
  }
44
57
  });
45
58
  Object.defineProperty(this, "onExpandedScoreBackPress", {
@@ -68,6 +81,12 @@ class ScoringSummary extends React.Component {
68
81
  expanded: false,
69
82
  };
70
83
  }
84
+ componentWillUnmount() {
85
+ if (this.expandedScoresArrowPressTimeout) {
86
+ clearTimeout(this.expandedScoresArrowPressTimeout);
87
+ this.expandedScoresArrowPressTimeout = null;
88
+ }
89
+ }
71
90
  onEnterPress() {
72
91
  const newValue = !this.state.expanded;
73
92
  this.setState({
@@ -1,3 +1,4 @@
1
+ /// <reference types="prop-types" />
1
2
  import React from 'react';
2
3
  import { StatsItem } from '../view-model/StatsViewModel';
3
4
  import { Direction, Layout } from '@/external/spatial-navigation/utils';
@@ -7,15 +8,15 @@ type Props = {
7
8
  };
8
9
  declare class StatsItemView extends React.Component<Props> {
9
10
  static contextTypes: {
10
- refsMap: React.Requireable<any>;
11
- setRef: React.Requireable<any>;
12
- scrollToFocusedElement: React.Requireable<any>;
11
+ refsMap: import("prop-types").Requireable<(HTMLElement | null | undefined)[]>;
12
+ setRef: import("prop-types").Requireable<(...args: any[]) => any>;
13
+ scrollToFocusedElement: import("prop-types").Requireable<(...args: any[]) => any>;
13
14
  };
14
15
  context: import("@/components/core/ScrollableContainer/ScrollableContainer").ScrollableContainerContextType;
15
16
  onBecameFocused: (layout: Layout) => void;
16
17
  onArrowPress: (d: Direction) => void;
17
18
  onEnterPress: (item: StatsItem) => () => void;
18
- renderItem(): React.JSX.Element | null;
19
- render(): React.JSX.Element;
19
+ renderItem(): JSX.Element | null;
20
+ render(): JSX.Element;
20
21
  }
21
22
  export default StatsItemView;
@@ -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) | undefined, context?: any): {
10
+ new (props: (StatsQRCodeViewProps & WithFocusableProps) | Readonly<StatsQRCodeViewProps & WithFocusableProps>): {
11
11
  state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
12
12
  navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
13
13
  getChildContext(): {
@@ -27,20 +27,65 @@ declare const _default: {
27
27
  componentDidMount(): void;
28
28
  componentDidUpdate(): void;
29
29
  componentWillUnmount(): void;
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<{
34
- children?: React.ReactNode;
35
- }> & Readonly<StatsQRCodeViewProps & WithFocusableProps>;
30
+ render(): React.ReactElement<StatsQRCodeViewProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
36
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<{
35
+ children?: React.ReactNode;
36
+ }>;
37
37
  refs: {
38
38
  [key: string]: React.ReactInstance;
39
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;
40
43
  componentWillMount?(): void;
44
+ UNSAFE_componentWillMount?(): void;
41
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>>;
71
+ 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
+ refs: {
78
+ [key: string]: React.ReactInstance;
79
+ };
42
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
+ componentWillMount?(): void;
84
+ UNSAFE_componentWillMount?(): void;
85
+ componentWillReceiveProps?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextContext: any): void;
86
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<StatsQRCodeViewProps & WithFocusableProps>, nextContext: any): void;
43
87
  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;
44
89
  };
45
90
  contextTypes: {
46
91
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -48,5 +93,6 @@ declare const _default: {
48
93
  childContextTypes: {
49
94
  parentFocusKey: import("prop-types").Requireable<string>;
50
95
  };
96
+ contextType?: React.Context<any> | undefined;
51
97
  };
52
98
  export default _default;
@@ -1,4 +1,4 @@
1
- import React, { Component } from 'react';
1
+ import { 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: () => React.JSX.Element | React.JSX.Element[] | null;
23
+ renderItems: () => JSX.Element | JSX.Element[] | null;
24
24
  onEnterPress: (item: StatsItem) => void;
25
- render(): React.JSX.Element;
25
+ render(): 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) | undefined, context?: any): {
10
+ new (props: (TeamStatsViewProps & WithFocusableProps) | Readonly<TeamStatsViewProps & WithFocusableProps>): {
11
11
  state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
12
12
  navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
13
13
  getChildContext(): {
@@ -27,20 +27,65 @@ declare const _default: {
27
27
  componentDidMount(): void;
28
28
  componentDidUpdate(): void;
29
29
  componentWillUnmount(): void;
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<{
34
- children?: React.ReactNode;
35
- }> & Readonly<TeamStatsViewProps & WithFocusableProps>;
30
+ render(): React.ReactElement<TeamStatsViewProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
36
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<{
35
+ children?: React.ReactNode;
36
+ }>;
37
37
  refs: {
38
38
  [key: string]: React.ReactInstance;
39
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;
40
43
  componentWillMount?(): void;
44
+ UNSAFE_componentWillMount?(): void;
41
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>>;
71
+ 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
+ refs: {
78
+ [key: string]: React.ReactInstance;
79
+ };
42
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
+ componentWillMount?(): void;
84
+ UNSAFE_componentWillMount?(): void;
85
+ componentWillReceiveProps?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextContext: any): void;
86
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextContext: any): void;
43
87
  componentWillUpdate?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
88
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<TeamStatsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
44
89
  };
45
90
  contextTypes: {
46
91
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -48,5 +93,6 @@ declare const _default: {
48
93
  childContextTypes: {
49
94
  parentFocusKey: import("prop-types").Requireable<string>;
50
95
  };
96
+ contextType?: React.Context<any> | undefined;
51
97
  };
52
98
  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(): React.JSX.Element;
22
+ render(): JSX.Element;
23
23
  }
24
- declare const CarouselSlider: (props: Props) => React.JSX.Element;
24
+ declare const CarouselSlider: (props: Props) => JSX.Element;
25
25
  export { StatsCarousel, CarouselSlider };
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  type Props = {
3
2
  awayTeamValue: number;
4
3
  homeTeamValue: number;
5
4
  };
6
- declare const StatsProgressBar: (props: Props) => React.JSX.Element;
5
+ declare const StatsProgressBar: (props: Props) => JSX.Element;
7
6
  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) | undefined, context?: any): {
10
+ new (props: (TeamsProps & WithFocusableProps) | Readonly<TeamsProps & WithFocusableProps>): {
11
11
  state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
12
12
  navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
13
13
  getChildContext(): {
@@ -27,20 +27,65 @@ declare const _default: {
27
27
  componentDidMount(): void;
28
28
  componentDidUpdate(): void;
29
29
  componentWillUnmount(): void;
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<{
34
- children?: React.ReactNode;
35
- }> & Readonly<TeamsProps & WithFocusableProps>;
30
+ render(): React.ReactElement<TeamsProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
36
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<{
35
+ children?: React.ReactNode;
36
+ }>;
37
37
  refs: {
38
38
  [key: string]: React.ReactInstance;
39
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;
40
43
  componentWillMount?(): void;
44
+ UNSAFE_componentWillMount?(): void;
41
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>>;
71
+ 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
+ refs: {
78
+ [key: string]: React.ReactInstance;
79
+ };
42
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
+ componentWillMount?(): void;
84
+ UNSAFE_componentWillMount?(): void;
85
+ componentWillReceiveProps?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextContext: any): void;
86
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<TeamsProps & WithFocusableProps>, nextContext: any): void;
43
87
  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;
44
89
  };
45
90
  contextTypes: {
46
91
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -48,5 +93,6 @@ declare const _default: {
48
93
  childContextTypes: {
49
94
  parentFocusKey: import("prop-types").Requireable<string>;
50
95
  };
96
+ contextType?: React.Context<any> | undefined;
51
97
  };
52
98
  export default _default;
@@ -7,7 +7,7 @@ type WinProbabilityProps = {
7
7
  item: WinProbabilityStatsItem;
8
8
  };
9
9
  declare const _default: {
10
- new (props?: (WinProbabilityProps & WithFocusableProps) | undefined, context?: any): {
10
+ new (props: (WinProbabilityProps & WithFocusableProps) | Readonly<WinProbabilityProps & WithFocusableProps>): {
11
11
  state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
12
12
  navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
13
13
  getChildContext(): {
@@ -27,20 +27,65 @@ declare const _default: {
27
27
  componentDidMount(): void;
28
28
  componentDidUpdate(): void;
29
29
  componentWillUnmount(): void;
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<{
34
- children?: React.ReactNode;
35
- }> & Readonly<WinProbabilityProps & WithFocusableProps>;
30
+ render(): React.ReactElement<WinProbabilityProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
36
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<{
35
+ children?: React.ReactNode;
36
+ }>;
37
37
  refs: {
38
38
  [key: string]: React.ReactInstance;
39
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;
40
43
  componentWillMount?(): void;
44
+ UNSAFE_componentWillMount?(): void;
41
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>>;
71
+ 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
+ refs: {
78
+ [key: string]: React.ReactInstance;
79
+ };
42
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
+ componentWillMount?(): void;
84
+ UNSAFE_componentWillMount?(): void;
85
+ componentWillReceiveProps?(nextProps: Readonly<WinProbabilityProps & WithFocusableProps>, nextContext: any): void;
86
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<WinProbabilityProps & WithFocusableProps>, nextContext: any): void;
43
87
  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;
44
89
  };
45
90
  contextTypes: {
46
91
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -48,5 +93,6 @@ declare const _default: {
48
93
  childContextTypes: {
49
94
  parentFocusKey: import("prop-types").Requireable<string>;
50
95
  };
96
+ contextType?: React.Context<any> | undefined;
51
97
  };
52
98
  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) | undefined, context?: any): {
25
+ new (props: (AthletesStatisticsProps & WithFocusableProps) | Readonly<AthletesStatisticsProps & WithFocusableProps>): {
26
26
  state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
27
27
  navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
28
28
  getChildContext(): {
@@ -42,20 +42,65 @@ declare const _default: {
42
42
  componentDidMount(): void;
43
43
  componentDidUpdate(): void;
44
44
  componentWillUnmount(): void;
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<{
49
- children?: React.ReactNode;
50
- }> & Readonly<AthletesStatisticsProps & WithFocusableProps>;
45
+ render(): React.ReactElement<AthletesStatisticsProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
51
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<{
50
+ children?: React.ReactNode;
51
+ }>;
52
52
  refs: {
53
53
  [key: string]: React.ReactInstance;
54
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;
55
58
  componentWillMount?(): void;
59
+ UNSAFE_componentWillMount?(): void;
56
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>>;
86
+ 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
+ refs: {
93
+ [key: string]: React.ReactInstance;
94
+ };
57
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
+ componentWillMount?(): void;
99
+ UNSAFE_componentWillMount?(): void;
100
+ componentWillReceiveProps?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextContext: any): void;
101
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<AthletesStatisticsProps & WithFocusableProps>, nextContext: any): void;
58
102
  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;
59
104
  };
60
105
  contextTypes: {
61
106
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -63,5 +108,6 @@ declare const _default: {
63
108
  childContextTypes: {
64
109
  parentFocusKey: import("prop-types").Requireable<string>;
65
110
  };
111
+ contextType?: React.Context<any> | undefined;
66
112
  };
67
113
  export default _default;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { AthletesStatisticsProps } from './AthletesStatistics';
3
- declare const StatisticsTable: (props: AthletesStatisticsProps) => React.JSX.Element;
2
+ declare const StatisticsTable: (props: AthletesStatisticsProps) => JSX.Element;
4
3
  export default StatisticsTable;
@@ -156,7 +156,7 @@ export declare class StatsViewModel extends ViewModel {
156
156
  * Sets panel-specific data configuration
157
157
  * @param panelData - Object containing panel configuration
158
158
  */
159
- setPanelData(panelData: Record<string, any>): void;
159
+ setDataToPanel(panelData: Record<string, any>): void;
160
160
  /**
161
161
  * Initialize the ViewModel and start data fetching
162
162
  */