@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
@@ -1,4 +1,5 @@
1
+ import React from 'react';
1
2
  import './CollapsedAthletes.styles.css';
2
3
  import { ActiveAthletesProps } from '../ActiveAthletes';
3
- declare const CollapsedAthletes: (props: Pick<ActiveAthletesProps, 'item'>) => JSX.Element;
4
+ declare const CollapsedAthletes: (props: Pick<ActiveAthletesProps, 'item'>) => React.JSX.Element;
4
5
  export default CollapsedAthletes;
@@ -17,6 +17,6 @@ declare class ExpandedAthletes extends React.Component<Props> {
17
17
  updateMaxHeight(focusedIndex: number): void;
18
18
  scrollToElement(focusedIndex: number): void;
19
19
  onBecameFocused: (focusedIndex: number) => () => void;
20
- render(): JSX.Element;
20
+ render(): React.JSX.Element;
21
21
  }
22
22
  export default ExpandedAthletes;
@@ -15,7 +15,7 @@ type DrivePlayCardProps = {
15
15
  parentFocusKey?: string;
16
16
  };
17
17
  declare const _default: {
18
- new (props: (DrivePlayCardProps & WithFocusableProps) | Readonly<DrivePlayCardProps & WithFocusableProps>): {
18
+ new (props?: (DrivePlayCardProps & WithFocusableProps) | undefined, context?: any): {
19
19
  state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
20
20
  navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
21
21
  getChildContext(): {
@@ -35,65 +35,20 @@ declare const _default: {
35
35
  componentDidMount(): void;
36
36
  componentDidUpdate(): void;
37
37
  componentWillUnmount(): void;
38
- render(): React.ReactElement<DrivePlayCardProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
39
- context: any;
40
- 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<DrivePlayCardProps & 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;
41
- forceUpdate(callback?: (() => void) | undefined): void;
42
- readonly props: Readonly<DrivePlayCardProps & WithFocusableProps> & Readonly<{
38
+ render(): React.ReactElement<DrivePlayCardProps & WithFocusableProps>;
39
+ 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: DrivePlayCardProps & 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;
40
+ forceUpdate(callBack?: (() => any) | undefined): void;
41
+ props: Readonly<{
43
42
  children?: React.ReactNode;
44
- }>;
45
- refs: {
46
- [key: string]: React.ReactInstance;
47
- };
48
- shouldComponentUpdate?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
49
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
50
- getSnapshotBeforeUpdate?(prevProps: Readonly<DrivePlayCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
51
- componentWillMount?(): void;
52
- UNSAFE_componentWillMount?(): void;
53
- componentWillReceiveProps?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextContext: any): void;
54
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextContext: any): void;
55
- componentWillUpdate?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
56
- UNSAFE_componentWillUpdate?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
57
- };
58
- new (props: DrivePlayCardProps & WithFocusableProps, context: any): {
59
- state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
60
- navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
61
- getChildContext(): {
62
- parentFocusKey: string;
63
- };
64
- setFocus: (focusKey: string) => void;
65
- navigateByDirection: (direction: Direction, details?: Record<string, any>) => void;
66
- stealFocus: () => void;
67
- onUpdateFocus: (focused: boolean) => void;
68
- onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
69
- onEnterPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
70
- onEnterReleaseHandler: () => void;
71
- onBackPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
72
- onArrowPressHandler: (direction: Direction, details: import("@/external/spatial-navigation/utils").Details) => boolean | void;
73
- onBecameFocusedHandler: (layout: Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
74
- onBecameBlurredHandler: (layout: Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
75
- componentDidMount(): void;
76
- componentDidUpdate(): void;
77
- componentWillUnmount(): void;
78
- render(): React.ReactElement<DrivePlayCardProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
43
+ }> & Readonly<DrivePlayCardProps & WithFocusableProps>;
79
44
  context: any;
80
- 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<DrivePlayCardProps & 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;
81
- forceUpdate(callback?: (() => void) | undefined): void;
82
- readonly props: Readonly<DrivePlayCardProps & WithFocusableProps> & Readonly<{
83
- children?: React.ReactNode;
84
- }>;
85
45
  refs: {
86
46
  [key: string]: React.ReactInstance;
87
47
  };
88
- shouldComponentUpdate?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
89
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
90
- getSnapshotBeforeUpdate?(prevProps: Readonly<DrivePlayCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
91
48
  componentWillMount?(): void;
92
- UNSAFE_componentWillMount?(): void;
93
49
  componentWillReceiveProps?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextContext: any): void;
94
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextContext: any): void;
50
+ shouldComponentUpdate?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
95
51
  componentWillUpdate?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
96
- UNSAFE_componentWillUpdate?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
97
52
  };
98
53
  contextTypes: {
99
54
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -101,6 +56,5 @@ declare const _default: {
101
56
  childContextTypes: {
102
57
  parentFocusKey: import("prop-types").Requireable<string>;
103
58
  };
104
- contextType?: React.Context<any> | undefined;
105
59
  };
106
60
  export default _default;
@@ -12,6 +12,6 @@ export default class DriveSummary extends React.Component<DriveSummaryProps & Wi
12
12
  };
13
13
  handleEnterPress: (_props: any, _details: any) => void;
14
14
  collapseCard: () => void;
15
- render(): JSX.Element;
15
+ render(): React.JSX.Element;
16
16
  }
17
17
  export {};
@@ -22,6 +22,6 @@ declare class DriveSummaryExpanded extends React.Component<Props> {
22
22
  updateMaxHeight(focusedIndex: number): void;
23
23
  scrollToElement(focusedIndex: number): void;
24
24
  onBecameFocused: (focusedIndex: number) => () => void;
25
- render(): JSX.Element;
25
+ render(): React.JSX.Element;
26
26
  }
27
27
  export default DriveSummaryExpanded;
@@ -1,4 +1,5 @@
1
1
  import './DriveSummaryHeader.styles.css';
2
+ import React from 'react';
2
3
  type Props = {
3
4
  team: {
4
5
  displayName: string;
@@ -8,5 +9,5 @@ type Props = {
8
9
  focused: boolean;
9
10
  hasPlays: boolean;
10
11
  };
11
- declare const DriveSummaryHeader: (props: Props) => JSX.Element;
12
+ declare const DriveSummaryHeader: (props: Props) => React.JSX.Element;
12
13
  export default DriveSummaryHeader;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './MainStat.styles.css';
2
3
  type Props = {
3
4
  playsQuantity: string;
@@ -6,5 +7,5 @@ type Props = {
6
7
  lastPlayMarquee?: string;
7
8
  focused: boolean;
8
9
  };
9
- declare const MainStat: (props: Props) => JSX.Element;
10
+ declare const MainStat: (props: Props) => React.JSX.Element;
10
11
  export default MainStat;
@@ -1,4 +1,3 @@
1
- /// <reference types="prop-types" />
2
1
  import React from 'react';
3
2
  import './GameLeaders.styles.css';
4
3
  import { GameLeadersStatsItem } from '../../view-model/StatsViewModel';
@@ -9,13 +8,13 @@ export type GameLeaderProps = {
9
8
  };
10
9
  declare class GameLeaders extends React.Component<GameLeaderProps> {
11
10
  static contextTypes: {
12
- refsMap: import("prop-types").Requireable<(HTMLElement | null | undefined)[]>;
13
- setRef: import("prop-types").Requireable<(...args: any[]) => any>;
14
- scrollToFocusedElement: import("prop-types").Requireable<(...args: any[]) => any>;
11
+ refsMap: React.Requireable<any>;
12
+ setRef: React.Requireable<any>;
13
+ scrollToFocusedElement: React.Requireable<any>;
15
14
  };
16
15
  context: import("@/components/core/ScrollableContainer/ScrollableContainer").ScrollableContainerContextType;
17
16
  onBecameFocused: (layout: Layout) => void;
18
17
  onArrowPress: (d: Direction) => void;
19
- render(): JSX.Element;
18
+ render(): React.JSX.Element;
20
19
  }
21
20
  export default GameLeaders;
@@ -1,4 +1,4 @@
1
- import { Component } from 'react';
1
+ import React, { Component } from 'react';
2
2
  export interface DonutChartProps {
3
3
  awayPercentage: number;
4
4
  homePercentage: number;
@@ -12,6 +12,6 @@ declare class DonutChart extends Component<DonutChartProps> {
12
12
  };
13
13
  private patternId;
14
14
  constructor(props: DonutChartProps);
15
- render(): JSX.Element;
15
+ render(): React.JSX.Element;
16
16
  }
17
17
  export default DonutChart;
@@ -7,7 +7,7 @@ export interface MatchPredictorProps {
7
7
  item: StatsMatchPredictorItem;
8
8
  }
9
9
  declare const _default: {
10
- new (props: (MatchPredictorProps & WithFocusableProps) | Readonly<MatchPredictorProps & WithFocusableProps>): {
10
+ new (props?: (MatchPredictorProps & 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<MatchPredictorProps & 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<MatchPredictorProps & 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<MatchPredictorProps & WithFocusableProps> & Readonly<{
30
+ render(): React.ReactElement<MatchPredictorProps & 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: MatchPredictorProps & 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<MatchPredictorProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
41
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
42
- getSnapshotBeforeUpdate?(prevProps: Readonly<MatchPredictorProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
43
- componentWillMount?(): void;
44
- UNSAFE_componentWillMount?(): void;
45
- componentWillReceiveProps?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextContext: any): void;
46
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextContext: any): void;
47
- componentWillUpdate?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
48
- UNSAFE_componentWillUpdate?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
49
- };
50
- new (props: MatchPredictorProps & 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<MatchPredictorProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
35
+ }> & Readonly<MatchPredictorProps & 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<MatchPredictorProps & 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<MatchPredictorProps & WithFocusableProps> & Readonly<{
75
- children?: React.ReactNode;
76
- }>;
77
37
  refs: {
78
38
  [key: string]: React.ReactInstance;
79
39
  };
80
- shouldComponentUpdate?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
81
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
82
- getSnapshotBeforeUpdate?(prevProps: Readonly<MatchPredictorProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
83
40
  componentWillMount?(): void;
84
- UNSAFE_componentWillMount?(): void;
85
41
  componentWillReceiveProps?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextContext: any): void;
86
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextContext: any): void;
42
+ shouldComponentUpdate?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
87
43
  componentWillUpdate?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
88
- UNSAFE_componentWillUpdate?(nextProps: Readonly<MatchPredictorProps & 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,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { PenaltiesItem } from '../../view-model/StatsViewModel';
2
3
  import { Layout } from '@/external/spatial-navigation/utils';
3
4
  type PenaltiesProps = {
@@ -5,5 +6,5 @@ type PenaltiesProps = {
5
6
  onBecameFocused: (layout: Layout) => void;
6
7
  onEnterPress: () => void;
7
8
  };
8
- declare const Penalties: (props: PenaltiesProps) => JSX.Element;
9
+ declare const Penalties: (props: PenaltiesProps) => React.JSX.Element;
9
10
  export default Penalties;
@@ -7,7 +7,7 @@ type RecentGamesProps = {
7
7
  item: RecentGamesStatsItem;
8
8
  };
9
9
  declare const _default: {
10
- new (props: (RecentGamesProps & WithFocusableProps) | Readonly<RecentGamesProps & WithFocusableProps>): {
10
+ new (props?: (RecentGamesProps & 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<RecentGamesProps & 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<RecentGamesProps & 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<RecentGamesProps & WithFocusableProps> & Readonly<{
30
+ render(): React.ReactElement<RecentGamesProps & 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: RecentGamesProps & 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<RecentGamesProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
41
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
42
- getSnapshotBeforeUpdate?(prevProps: Readonly<RecentGamesProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
43
- componentWillMount?(): void;
44
- UNSAFE_componentWillMount?(): void;
45
- componentWillReceiveProps?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextContext: any): void;
46
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextContext: any): void;
47
- componentWillUpdate?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
48
- UNSAFE_componentWillUpdate?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
49
- };
50
- new (props: RecentGamesProps & 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<RecentGamesProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
35
+ }> & Readonly<RecentGamesProps & 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<RecentGamesProps & 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<RecentGamesProps & WithFocusableProps> & Readonly<{
75
- children?: React.ReactNode;
76
- }>;
77
37
  refs: {
78
38
  [key: string]: React.ReactInstance;
79
39
  };
80
- shouldComponentUpdate?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
81
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
82
- getSnapshotBeforeUpdate?(prevProps: Readonly<RecentGamesProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
83
40
  componentWillMount?(): void;
84
- UNSAFE_componentWillMount?(): void;
85
41
  componentWillReceiveProps?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextContext: any): void;
86
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextContext: any): void;
42
+ shouldComponentUpdate?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
87
43
  componentWillUpdate?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
88
- UNSAFE_componentWillUpdate?(nextProps: Readonly<RecentGamesProps & 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;
@@ -25,6 +25,6 @@ declare class ExpandedScores extends React.Component<Props> {
25
25
  updateMaxHeight(sectionIndex: number, scoreFocusedIndex: number): void;
26
26
  scrollToElement(focusedIndex: number): void;
27
27
  onBecameFocused: (sectionIndex: number, scoreFocusedIndex: number) => () => void;
28
- render(): JSX.Element;
28
+ render(): React.JSX.Element;
29
29
  }
30
30
  export default ExpandedScores;
@@ -7,7 +7,7 @@ type Props = {
7
7
  item: IScoreItem;
8
8
  };
9
9
  declare const _default: {
10
- new (props: (Props & WithFocusableProps) | Readonly<Props & WithFocusableProps>): {
10
+ new (props?: (Props & WithFocusableProps) | undefined, context?: any): {
11
11
  state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
12
12
  navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
13
13
  getChildContext(): {
@@ -27,65 +27,20 @@ declare const _default: {
27
27
  componentDidMount(): void;
28
28
  componentDidUpdate(): void;
29
29
  componentWillUnmount(): void;
30
- render(): React.ReactElement<Props & WithFocusableProps, string | React.JSXElementConstructor<any>>;
31
- context: any;
32
- setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<Props & WithFocusableProps>) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
33
- forceUpdate(callback?: (() => void) | undefined): void;
34
- readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
30
+ render(): React.ReactElement<Props & WithFocusableProps>;
31
+ setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Props & WithFocusableProps) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>, callback?: (() => any) | undefined): void;
32
+ forceUpdate(callBack?: (() => any) | undefined): void;
33
+ props: Readonly<{
35
34
  children?: React.ReactNode;
36
- }>;
37
- refs: {
38
- [key: string]: React.ReactInstance;
39
- };
40
- shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
41
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
42
- getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
43
- componentWillMount?(): void;
44
- UNSAFE_componentWillMount?(): void;
45
- componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
46
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
47
- componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
48
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
49
- };
50
- new (props: Props & WithFocusableProps, context: any): {
51
- state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
52
- navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
53
- getChildContext(): {
54
- parentFocusKey: string;
55
- };
56
- setFocus: (focusKey: string) => void;
57
- navigateByDirection: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
58
- stealFocus: () => void;
59
- onUpdateFocus: (focused: boolean) => void;
60
- onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
61
- onEnterPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
62
- onEnterReleaseHandler: () => void;
63
- onBackPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
64
- onArrowPressHandler: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details: import("../../../../../external/spatial-navigation/utils").Details) => boolean | void;
65
- onBecameFocusedHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
66
- onBecameBlurredHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
67
- componentDidMount(): void;
68
- componentDidUpdate(): void;
69
- componentWillUnmount(): void;
70
- render(): React.ReactElement<Props & WithFocusableProps, string | React.JSXElementConstructor<any>>;
35
+ }> & Readonly<Props & WithFocusableProps>;
71
36
  context: any;
72
- setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<Props & WithFocusableProps>) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
73
- forceUpdate(callback?: (() => void) | undefined): void;
74
- readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
75
- children?: React.ReactNode;
76
- }>;
77
37
  refs: {
78
38
  [key: string]: React.ReactInstance;
79
39
  };
80
- shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
81
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
82
- getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
83
40
  componentWillMount?(): void;
84
- UNSAFE_componentWillMount?(): void;
85
41
  componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
86
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
42
+ shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
87
43
  componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
88
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
89
44
  };
90
45
  contextTypes: {
91
46
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -93,6 +48,5 @@ declare const _default: {
93
48
  childContextTypes: {
94
49
  parentFocusKey: import("prop-types").Requireable<string>;
95
50
  };
96
- contextType?: React.Context<any> | undefined;
97
51
  };
98
52
  export default _default;
@@ -1,6 +1,7 @@
1
1
  import { IScoreSection } from '@/modules/stats/view-model/StatsViewModel';
2
+ import React from 'react';
2
3
  import './ScoresSection.styles.css';
3
4
  declare const ScoresSection: (props: IScoreSection & {
4
5
  noScoresText: string;
5
- }) => JSX.Element;
6
+ }) => React.JSX.Element;
6
7
  export default ScoresSection;
@@ -20,7 +20,7 @@ declare class ScoringSummary extends React.Component<ScoringSummaryProps, {
20
20
  get cardFocusKey(): string;
21
21
  onExpandedScoreBackPress: () => void;
22
22
  onArrowPress: (d: Direction) => void;
23
- renderContent(): JSX.Element | JSX.Element[];
24
- render(): JSX.Element;
23
+ renderContent(): React.JSX.Element | React.JSX.Element[];
24
+ render(): React.JSX.Element;
25
25
  }
26
26
  export default ScoringSummary;
@@ -1,4 +1,3 @@
1
- /// <reference types="prop-types" />
2
1
  import React from 'react';
3
2
  import { StatsItem } from '../view-model/StatsViewModel';
4
3
  import { Direction, Layout } from '@/external/spatial-navigation/utils';
@@ -8,15 +7,15 @@ type Props = {
8
7
  };
9
8
  declare class StatsItemView extends React.Component<Props> {
10
9
  static contextTypes: {
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>;
10
+ refsMap: React.Requireable<any>;
11
+ setRef: React.Requireable<any>;
12
+ scrollToFocusedElement: React.Requireable<any>;
14
13
  };
15
14
  context: import("@/components/core/ScrollableContainer/ScrollableContainer").ScrollableContainerContextType;
16
15
  onBecameFocused: (layout: Layout) => void;
17
16
  onArrowPress: (d: Direction) => void;
18
17
  onEnterPress: (item: StatsItem) => () => void;
19
- renderItem(): JSX.Element | null;
20
- render(): JSX.Element;
18
+ renderItem(): React.JSX.Element | null;
19
+ render(): React.JSX.Element;
21
20
  }
22
21
  export default StatsItemView;