@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
@@ -10,7 +10,7 @@ export type BaseBetCardProps = {
10
10
  hideWagers?: boolean;
11
11
  };
12
12
  declare const _default: {
13
- new (props: (BaseBetCardProps & WithFocusableProps) | Readonly<BaseBetCardProps & WithFocusableProps>): {
13
+ new (props?: (BaseBetCardProps & WithFocusableProps) | undefined, context?: any): {
14
14
  state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
15
15
  navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
16
16
  getChildContext(): {
@@ -30,65 +30,20 @@ declare const _default: {
30
30
  componentDidMount(): void;
31
31
  componentDidUpdate(): void;
32
32
  componentWillUnmount(): void;
33
- render(): React.ReactElement<BaseBetCardProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
34
- context: any;
35
- setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<BaseBetCardProps & WithFocusableProps>) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
36
- forceUpdate(callback?: (() => void) | undefined): void;
37
- readonly props: Readonly<BaseBetCardProps & WithFocusableProps> & Readonly<{
33
+ render(): React.ReactElement<BaseBetCardProps & WithFocusableProps>;
34
+ setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: BaseBetCardProps & WithFocusableProps) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>, callback?: (() => any) | undefined): void;
35
+ forceUpdate(callBack?: (() => any) | undefined): void;
36
+ props: Readonly<{
38
37
  children?: React.ReactNode;
39
- }>;
40
- refs: {
41
- [key: string]: React.ReactInstance;
42
- };
43
- shouldComponentUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
44
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
45
- getSnapshotBeforeUpdate?(prevProps: Readonly<BaseBetCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
46
- componentWillMount?(): void;
47
- UNSAFE_componentWillMount?(): void;
48
- componentWillReceiveProps?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextContext: any): void;
49
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextContext: any): void;
50
- componentWillUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
51
- UNSAFE_componentWillUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
52
- };
53
- new (props: BaseBetCardProps & WithFocusableProps, context: any): {
54
- state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
55
- navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
56
- getChildContext(): {
57
- parentFocusKey: string;
58
- };
59
- setFocus: (focusKey: string) => void;
60
- navigateByDirection: (direction: Direction, details?: Record<string, any>) => void;
61
- stealFocus: () => void;
62
- onUpdateFocus: (focused: boolean) => void;
63
- onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
64
- onEnterPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
65
- onEnterReleaseHandler: () => void;
66
- onBackPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
67
- onArrowPressHandler: (direction: Direction, details: import("@/external/spatial-navigation/utils").Details) => boolean | void;
68
- onBecameFocusedHandler: (layout: Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
69
- onBecameBlurredHandler: (layout: Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
70
- componentDidMount(): void;
71
- componentDidUpdate(): void;
72
- componentWillUnmount(): void;
73
- render(): React.ReactElement<BaseBetCardProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
38
+ }> & Readonly<BaseBetCardProps & WithFocusableProps>;
74
39
  context: any;
75
- setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<BaseBetCardProps & WithFocusableProps>) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
76
- forceUpdate(callback?: (() => void) | undefined): void;
77
- readonly props: Readonly<BaseBetCardProps & WithFocusableProps> & Readonly<{
78
- children?: React.ReactNode;
79
- }>;
80
40
  refs: {
81
41
  [key: string]: React.ReactInstance;
82
42
  };
83
- shouldComponentUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
84
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
85
- getSnapshotBeforeUpdate?(prevProps: Readonly<BaseBetCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
86
43
  componentWillMount?(): void;
87
- UNSAFE_componentWillMount?(): void;
88
44
  componentWillReceiveProps?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextContext: any): void;
89
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextContext: any): void;
45
+ shouldComponentUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
90
46
  componentWillUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
91
- UNSAFE_componentWillUpdate?(nextProps: Readonly<BaseBetCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
92
47
  };
93
48
  contextTypes: {
94
49
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -96,6 +51,5 @@ declare const _default: {
96
51
  childContextTypes: {
97
52
  parentFocusKey: import("prop-types").Requireable<string>;
98
53
  };
99
- contextType?: React.Context<any> | undefined;
100
54
  };
101
55
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="prop-types" />
2
1
  import { IUserBet } from '@/modules/bets/interfaces/IBets';
3
2
  import React from 'react';
4
3
  import { Details, Direction, Layout } from '@/external/spatial-navigation/utils';
@@ -15,12 +14,12 @@ type BetsCardEventProps = {
15
14
  };
16
15
  declare class BetsCardEvent extends React.Component<BetsCardEventProps> {
17
16
  static contextTypes: {
18
- refsMap: import("prop-types").Requireable<(HTMLElement | null | undefined)[]>;
19
- setRef: import("prop-types").Requireable<(...args: any[]) => any>;
20
- scrollToFocusedElement: import("prop-types").Requireable<(...args: any[]) => any>;
17
+ refsMap: React.Requireable<any>;
18
+ setRef: React.Requireable<any>;
19
+ scrollToFocusedElement: React.Requireable<any>;
21
20
  };
22
21
  context: import("@/components/core/ScrollableContainer/ScrollableContainer").ScrollableContainerContextType;
23
22
  onBecameFocused: (layout: Layout) => void;
24
- render(): JSX.Element;
23
+ render(): React.JSX.Element;
25
24
  }
26
25
  export default BetsCardEvent;
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import { IUserBet } from '@/modules/bets/interfaces/IBets';
2
3
  type BetsCardFooterProps = {
3
4
  bet: IUserBet;
4
5
  hideWagers?: boolean;
5
6
  };
6
- declare const BetsCardFooter: (props: BetsCardFooterProps) => JSX.Element | null;
7
+ declare const BetsCardFooter: (props: BetsCardFooterProps) => React.JSX.Element | null;
7
8
  export default BetsCardFooter;
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import { IUserBet } from '@/modules/bets/interfaces/IBets';
2
3
  type BoostProps = {
3
4
  bet: IUserBet;
4
5
  hideWagers?: boolean;
5
6
  };
6
- declare const Boost: ({ bet, hideWagers }: BoostProps) => JSX.Element;
7
+ declare const Boost: ({ bet, hideWagers }: BoostProps) => React.JSX.Element;
7
8
  export default Boost;
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  import './OutcomeBadge.styles.css';
2
3
  type Props = {
3
4
  outcome: string;
4
5
  };
5
- declare const OutcomeBadge: (props: Props) => JSX.Element;
6
+ declare const OutcomeBadge: (props: Props) => React.JSX.Element;
6
7
  export default OutcomeBadge;
@@ -1,8 +1,9 @@
1
+ import React from 'react';
1
2
  import './Parlay.styles.css';
2
3
  import { IUserBet } from '@/modules/bets/interfaces/IBets';
3
4
  type ParlayProps = {
4
5
  bet: IUserBet;
5
6
  hideWagers?: boolean;
6
7
  };
7
- declare const Parlay: ({ bet, hideWagers }: ParlayProps) => JSX.Element;
8
+ declare const Parlay: ({ bet, hideWagers }: ParlayProps) => React.JSX.Element;
8
9
  export default Parlay;
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import { IUserBet } from '@/modules/bets/interfaces/IBets';
2
3
  type StraightProps = {
3
4
  bet: IUserBet;
4
5
  hideWagers?: boolean;
5
6
  };
6
- declare const Straight: ({ bet, hideWagers }: StraightProps) => JSX.Element;
7
+ declare const Straight: ({ bet, hideWagers }: StraightProps) => React.JSX.Element;
7
8
  export default Straight;
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import { IUserBet } from '@/modules/bets/interfaces/IBets';
2
3
  type TeaserProps = {
3
4
  bet: IUserBet;
4
5
  hideWagers?: boolean;
5
6
  };
6
- declare const Teaser: ({ bet, hideWagers }: TeaserProps) => JSX.Element;
7
+ declare const Teaser: ({ bet, hideWagers }: TeaserProps) => React.JSX.Element;
7
8
  export default Teaser;
@@ -17,9 +17,9 @@ declare class UserBetsView extends React.Component<UserBetsViewProps, {
17
17
  segmentItems: (SegmentItem & {
18
18
  type: Segments;
19
19
  })[];
20
- renderBet: (bet: IUserBet) => JSX.Element | null;
21
- renderBets: () => JSX.Element | (JSX.Element | null)[];
20
+ renderBet: (bet: IUserBet) => React.JSX.Element | null;
21
+ renderBets: () => React.JSX.Element | (React.JSX.Element | null)[];
22
22
  get bets(): IUserBet[] | null;
23
- render(): JSX.Element;
23
+ render(): React.JSX.Element;
24
24
  }
25
25
  export default UserBetsView;
@@ -4,13 +4,10 @@ import './Bet.styles.css';
4
4
  import { WithFocusableProps } from '@/external/spatial-navigation';
5
5
  import { IBetLeg } from '@/modules/bets/interfaces/IBets';
6
6
  declare const _default: {
7
- new (props: ({
7
+ new (props?: ({
8
8
  leg: IBetLeg;
9
9
  hideWagers?: boolean | undefined;
10
- } & WithFocusableProps) | Readonly<{
11
- leg: IBetLeg;
12
- hideWagers?: boolean | undefined;
13
- } & WithFocusableProps>): {
10
+ } & WithFocusableProps) | undefined, context?: any): {
14
11
  state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
15
12
  navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
16
13
  getChildContext(): {
@@ -33,119 +30,35 @@ declare const _default: {
33
30
  render(): React.ReactElement<{
34
31
  leg: IBetLeg;
35
32
  hideWagers?: boolean | undefined;
36
- } & WithFocusableProps, string | React.JSXElementConstructor<any>>;
37
- context: any;
38
- 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<{
39
- leg: IBetLeg;
40
- hideWagers?: boolean | undefined;
41
- } & 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;
42
- forceUpdate(callback?: (() => void) | undefined): void;
43
- readonly props: Readonly<{
33
+ } & WithFocusableProps>;
34
+ setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: {
44
35
  leg: IBetLeg;
45
36
  hideWagers?: boolean | undefined;
46
- } & WithFocusableProps> & Readonly<{
37
+ } & 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;
38
+ forceUpdate(callBack?: (() => any) | undefined): void;
39
+ props: Readonly<{
47
40
  children?: React.ReactNode;
48
- }>;
49
- refs: {
50
- [key: string]: React.ReactInstance;
51
- };
52
- shouldComponentUpdate?(nextProps: Readonly<{
41
+ }> & Readonly<{
53
42
  leg: IBetLeg;
54
43
  hideWagers?: boolean | undefined;
55
- } & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
56
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
57
- getSnapshotBeforeUpdate?(prevProps: Readonly<{
58
- leg: IBetLeg;
59
- hideWagers?: boolean | undefined;
60
- } & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
61
- componentWillMount?(): void;
62
- UNSAFE_componentWillMount?(): void;
63
- componentWillReceiveProps?(nextProps: Readonly<{
64
- leg: IBetLeg;
65
- hideWagers?: boolean | undefined;
66
- } & WithFocusableProps>, nextContext: any): void;
67
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{
68
- leg: IBetLeg;
69
- hideWagers?: boolean | undefined;
70
- } & WithFocusableProps>, nextContext: any): void;
71
- componentWillUpdate?(nextProps: Readonly<{
72
- leg: IBetLeg;
73
- hideWagers?: boolean | undefined;
74
- } & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
75
- UNSAFE_componentWillUpdate?(nextProps: Readonly<{
76
- leg: IBetLeg;
77
- hideWagers?: boolean | undefined;
78
- } & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
79
- };
80
- new (props: {
81
- leg: IBetLeg;
82
- hideWagers?: boolean | undefined;
83
- } & WithFocusableProps, context: any): {
84
- state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
85
- navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
86
- getChildContext(): {
87
- parentFocusKey: string;
88
- };
89
- setFocus: (focusKey: string) => void;
90
- navigateByDirection: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
91
- stealFocus: () => void;
92
- onUpdateFocus: (focused: boolean) => void;
93
- onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
94
- onEnterPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
95
- onEnterReleaseHandler: () => void;
96
- onBackPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
97
- onArrowPressHandler: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details: import("../../../../../external/spatial-navigation/utils").Details) => boolean | void;
98
- onBecameFocusedHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
99
- onBecameBlurredHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
100
- componentDidMount(): void;
101
- componentDidUpdate(): void;
102
- componentWillUnmount(): void;
103
- render(): React.ReactElement<{
104
- leg: IBetLeg;
105
- hideWagers?: boolean | undefined;
106
- } & WithFocusableProps, string | React.JSXElementConstructor<any>>;
44
+ } & WithFocusableProps>;
107
45
  context: any;
108
- 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<{
109
- leg: IBetLeg;
110
- hideWagers?: boolean | undefined;
111
- } & 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;
112
- forceUpdate(callback?: (() => void) | undefined): void;
113
- readonly props: Readonly<{
114
- leg: IBetLeg;
115
- hideWagers?: boolean | undefined;
116
- } & WithFocusableProps> & Readonly<{
117
- children?: React.ReactNode;
118
- }>;
119
46
  refs: {
120
47
  [key: string]: React.ReactInstance;
121
48
  };
122
- shouldComponentUpdate?(nextProps: Readonly<{
123
- leg: IBetLeg;
124
- hideWagers?: boolean | undefined;
125
- } & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
126
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
127
- getSnapshotBeforeUpdate?(prevProps: Readonly<{
128
- leg: IBetLeg;
129
- hideWagers?: boolean | undefined;
130
- } & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
131
49
  componentWillMount?(): void;
132
- UNSAFE_componentWillMount?(): void;
133
50
  componentWillReceiveProps?(nextProps: Readonly<{
134
51
  leg: IBetLeg;
135
52
  hideWagers?: boolean | undefined;
136
53
  } & WithFocusableProps>, nextContext: any): void;
137
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{
54
+ shouldComponentUpdate?(nextProps: Readonly<{
138
55
  leg: IBetLeg;
139
56
  hideWagers?: boolean | undefined;
140
- } & WithFocusableProps>, nextContext: any): void;
57
+ } & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
141
58
  componentWillUpdate?(nextProps: Readonly<{
142
59
  leg: IBetLeg;
143
60
  hideWagers?: boolean | undefined;
144
61
  } & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
145
- UNSAFE_componentWillUpdate?(nextProps: Readonly<{
146
- leg: IBetLeg;
147
- hideWagers?: boolean | undefined;
148
- } & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
149
62
  };
150
63
  contextTypes: {
151
64
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -153,6 +66,5 @@ declare const _default: {
153
66
  childContextTypes: {
154
67
  parentFocusKey: import("prop-types").Requireable<string>;
155
68
  };
156
- contextType?: React.Context<any> | undefined;
157
69
  };
158
70
  export default _default;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import './BetPill.styles.css';
3
3
  declare const BetPill: (props: {
4
4
  children: React.ReactNode;
5
- }) => JSX.Element;
5
+ }) => React.JSX.Element;
6
6
  export default BetPill;
@@ -12,5 +12,5 @@ type BetsCardHeaderProps = {
12
12
  iconUrl?: string;
13
13
  legCount?: number;
14
14
  };
15
- declare const BetsCardHeader: (props: BetsCardHeaderProps) => JSX.Element;
15
+ declare const BetsCardHeader: (props: BetsCardHeaderProps) => React.JSX.Element;
16
16
  export default BetsCardHeader;
@@ -3,6 +3,6 @@ import './GamblingDisclaimer.styles.css';
3
3
  declare class GamblingDisclaimer extends React.Component<{
4
4
  text: string;
5
5
  }> {
6
- render(): JSX.Element;
6
+ render(): React.JSX.Element;
7
7
  }
8
8
  export default GamblingDisclaimer;
@@ -5,6 +5,6 @@ interface LocationWarningProps {
5
5
  disclaimerText?: string;
6
6
  }
7
7
  declare class LocationWarning extends React.Component<LocationWarningProps> {
8
- render(): JSX.Element;
8
+ render(): React.JSX.Element;
9
9
  }
10
10
  export default LocationWarning;
@@ -1,18 +1,17 @@
1
- /// <reference types="prop-types" />
2
1
  import React from 'react';
3
2
  import './PromoCodeBanner.styles.css';
4
3
  import { Direction, Layout } from '@/external/spatial-navigation/utils';
5
4
  import { IBetPromo } from '@/modules/bets/view-model/BetsViewModel';
6
5
  export default class FocusablePromoCodeBannerWrapper extends React.Component<IBetPromo> {
7
6
  static contextTypes: {
8
- refsMap: import("prop-types").Requireable<(HTMLElement | null | undefined)[]>;
9
- setRef: import("prop-types").Requireable<(...args: any[]) => any>;
10
- scrollToFocusedElement: import("prop-types").Requireable<(...args: any[]) => any>;
7
+ refsMap: React.Requireable<any>;
8
+ setRef: React.Requireable<any>;
9
+ scrollToFocusedElement: React.Requireable<any>;
11
10
  };
12
11
  context: import("@/components/core/ScrollableContainer/ScrollableContainer").ScrollableContainerContextType;
13
12
  onBecameFocused: (layout: Layout) => void;
14
13
  onArrowPress: (d: Direction, _props: any) => void;
15
14
  get viewModel(): import("@/modules/bets/view-model/BetsViewModel").BetsViewModel;
16
15
  onEnterPress: () => void;
17
- render(): JSX.Element;
16
+ render(): React.JSX.Element;
18
17
  }
@@ -23,6 +23,6 @@ declare class ExpandedAthletesList<T> extends React.Component<Props<T>, State> {
23
23
  updateMaxHeight(focusedIndex: number): void;
24
24
  scrollToElement(focusedIndex: number): void;
25
25
  onBecameFocused: (index: number) => () => void;
26
- render(): JSX.Element;
26
+ render(): React.JSX.Element;
27
27
  }
28
28
  export default ExpandedAthletesList;
@@ -11,7 +11,7 @@ type Props = {
11
11
  shouldExpand: boolean;
12
12
  };
13
13
  declare const _default: {
14
- new (props: (Props & WithFocusableProps) | Readonly<Props & WithFocusableProps>): {
14
+ new (props?: (Props & WithFocusableProps) | undefined, context?: any): {
15
15
  state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
16
16
  navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
17
17
  getChildContext(): {
@@ -31,65 +31,20 @@ declare const _default: {
31
31
  componentDidMount(): void;
32
32
  componentDidUpdate(): void;
33
33
  componentWillUnmount(): void;
34
- render(): React.ReactElement<Props & WithFocusableProps, string | React.JSXElementConstructor<any>>;
35
- context: any;
36
- setState<K extends keyof import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<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;
37
- forceUpdate(callback?: (() => void) | undefined): void;
38
- readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
34
+ render(): React.ReactElement<Props & WithFocusableProps>;
35
+ setState<K extends keyof import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: 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;
36
+ forceUpdate(callBack?: (() => any) | undefined): void;
37
+ props: Readonly<{
39
38
  children?: React.ReactNode;
40
- }>;
41
- refs: {
42
- [key: string]: React.ReactInstance;
43
- };
44
- shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
45
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
46
- getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
47
- componentWillMount?(): void;
48
- UNSAFE_componentWillMount?(): void;
49
- componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
50
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
51
- componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
52
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
53
- };
54
- new (props: Props & WithFocusableProps, context: any): {
55
- state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
56
- navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
57
- getChildContext(): {
58
- parentFocusKey: string;
59
- };
60
- setFocus: (focusKey: string) => void;
61
- navigateByDirection: (direction: import("../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
62
- stealFocus: () => void;
63
- onUpdateFocus: (focused: boolean) => void;
64
- onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
65
- onEnterPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
66
- onEnterReleaseHandler: () => void;
67
- onBackPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
68
- onArrowPressHandler: (direction: import("../../../../external/spatial-navigation/utils").Direction, details: import("../../../../external/spatial-navigation/utils").Details) => boolean | void;
69
- onBecameFocusedHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
70
- onBecameBlurredHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
71
- componentDidMount(): void;
72
- componentDidUpdate(): void;
73
- componentWillUnmount(): void;
74
- render(): React.ReactElement<Props & WithFocusableProps, string | React.JSXElementConstructor<any>>;
39
+ }> & Readonly<Props & WithFocusableProps>;
75
40
  context: any;
76
- setState<K extends keyof import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<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;
77
- forceUpdate(callback?: (() => void) | undefined): void;
78
- readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
79
- children?: React.ReactNode;
80
- }>;
81
41
  refs: {
82
42
  [key: string]: React.ReactInstance;
83
43
  };
84
- shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
85
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
86
- getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
87
44
  componentWillMount?(): void;
88
- UNSAFE_componentWillMount?(): void;
89
45
  componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
90
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
46
+ shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
91
47
  componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
92
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
93
48
  };
94
49
  contextTypes: {
95
50
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -97,6 +52,5 @@ declare const _default: {
97
52
  childContextTypes: {
98
53
  parentFocusKey: import("prop-types").Requireable<string>;
99
54
  };
100
- contextType?: React.Context<any> | undefined;
101
55
  };
102
56
  export default _default;
@@ -8,7 +8,7 @@ export type TopPlayerCardProps = {
8
8
  index: number;
9
9
  };
10
10
  declare const _default: {
11
- new (props: (TopPlayerCardProps & WithFocusableProps) | Readonly<TopPlayerCardProps & WithFocusableProps>): {
11
+ new (props?: (TopPlayerCardProps & WithFocusableProps) | undefined, context?: any): {
12
12
  state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
13
13
  navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
14
14
  getChildContext(): {
@@ -28,65 +28,20 @@ declare const _default: {
28
28
  componentDidMount(): void;
29
29
  componentDidUpdate(): void;
30
30
  componentWillUnmount(): void;
31
- render(): React.ReactElement<TopPlayerCardProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
32
- context: any;
33
- 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<TopPlayerCardProps & 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;
34
- forceUpdate(callback?: (() => void) | undefined): void;
35
- readonly props: Readonly<TopPlayerCardProps & WithFocusableProps> & Readonly<{
31
+ render(): React.ReactElement<TopPlayerCardProps & WithFocusableProps>;
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: TopPlayerCardProps & 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;
33
+ forceUpdate(callBack?: (() => any) | undefined): void;
34
+ props: Readonly<{
36
35
  children?: React.ReactNode;
37
- }>;
38
- refs: {
39
- [key: string]: React.ReactInstance;
40
- };
41
- shouldComponentUpdate?(nextProps: Readonly<TopPlayerCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
42
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
43
- getSnapshotBeforeUpdate?(prevProps: Readonly<TopPlayerCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
44
- componentWillMount?(): void;
45
- UNSAFE_componentWillMount?(): void;
46
- componentWillReceiveProps?(nextProps: Readonly<TopPlayerCardProps & WithFocusableProps>, nextContext: any): void;
47
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<TopPlayerCardProps & WithFocusableProps>, nextContext: any): void;
48
- componentWillUpdate?(nextProps: Readonly<TopPlayerCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
49
- UNSAFE_componentWillUpdate?(nextProps: Readonly<TopPlayerCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
50
- };
51
- new (props: TopPlayerCardProps & WithFocusableProps, context: any): {
52
- state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
53
- navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
54
- getChildContext(): {
55
- parentFocusKey: string;
56
- };
57
- setFocus: (focusKey: string) => void;
58
- navigateByDirection: (direction: import("../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
59
- stealFocus: () => void;
60
- onUpdateFocus: (focused: boolean) => void;
61
- onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
62
- onEnterPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
63
- onEnterReleaseHandler: () => void;
64
- onBackPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
65
- onArrowPressHandler: (direction: import("../../../../external/spatial-navigation/utils").Direction, details: import("../../../../external/spatial-navigation/utils").Details) => boolean | void;
66
- onBecameFocusedHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
67
- onBecameBlurredHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
68
- componentDidMount(): void;
69
- componentDidUpdate(): void;
70
- componentWillUnmount(): void;
71
- render(): React.ReactElement<TopPlayerCardProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
36
+ }> & Readonly<TopPlayerCardProps & WithFocusableProps>;
72
37
  context: any;
73
- 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<TopPlayerCardProps & 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;
74
- forceUpdate(callback?: (() => void) | undefined): void;
75
- readonly props: Readonly<TopPlayerCardProps & WithFocusableProps> & Readonly<{
76
- children?: React.ReactNode;
77
- }>;
78
38
  refs: {
79
39
  [key: string]: React.ReactInstance;
80
40
  };
81
- shouldComponentUpdate?(nextProps: Readonly<TopPlayerCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
82
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
83
- getSnapshotBeforeUpdate?(prevProps: Readonly<TopPlayerCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
84
41
  componentWillMount?(): void;
85
- UNSAFE_componentWillMount?(): void;
86
42
  componentWillReceiveProps?(nextProps: Readonly<TopPlayerCardProps & WithFocusableProps>, nextContext: any): void;
87
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<TopPlayerCardProps & WithFocusableProps>, nextContext: any): void;
43
+ shouldComponentUpdate?(nextProps: Readonly<TopPlayerCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
88
44
  componentWillUpdate?(nextProps: Readonly<TopPlayerCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
89
- UNSAFE_componentWillUpdate?(nextProps: Readonly<TopPlayerCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
90
45
  };
91
46
  contextTypes: {
92
47
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -94,6 +49,5 @@ declare const _default: {
94
49
  childContextTypes: {
95
50
  parentFocusKey: import("prop-types").Requireable<string>;
96
51
  };
97
- contextType?: React.Context<any> | undefined;
98
52
  };
99
53
  export default _default;
@@ -16,6 +16,6 @@ declare class ActiveAthletesMarquee extends React.Component<Props, State> {
16
16
  componentDidMount(): void;
17
17
  componentDidUpdate(prevProps: Props): void;
18
18
  checkOverflow: () => void;
19
- render(): JSX.Element;
19
+ render(): React.JSX.Element;
20
20
  }
21
21
  export default ActiveAthletesMarquee;