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

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 (124) 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/constants.js +3 -1
  78. package/dist/src/modules/key-plays/view/KeyPlayCardScoreTagView.d.ts +1 -1
  79. package/dist/src/modules/key-plays/view/KeyPlayCardView.d.ts +6 -7
  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/WinProbability/WinProbability.d.ts +7 -53
  116. package/dist/src/modules/stats/view/components/AthletesStatistics/AthletesStatistics.d.ts +7 -53
  117. package/dist/src/modules/stats/view/components/AthletesStatistics/StatisticTable.d.ts +2 -1
  118. package/dist/src/modules/stats/view-model/StatsViewModel.d.ts +5 -0
  119. package/dist/src/modules/stats/view-model/StatsViewModel.js +37 -14
  120. package/dist/src/services/StatsService.d.ts +1 -0
  121. package/dist/src/services/StatsService.js +11 -0
  122. package/dist/src/view-models/MaestroEventViewModel.d.ts +1 -0
  123. package/dist/src/view-models/MaestroEventViewModel.js +27 -0
  124. package/package.json +9 -13
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maestro_io/maestro-web-sdk",
3
3
  "private": false,
4
- "version": "4.0.0-beta.1",
4
+ "version": "3.3.1",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "main": "dist/maestro-web-sdk.umd.js",
@@ -38,19 +38,19 @@
38
38
  "@babel/preset-env": "7.12.1",
39
39
  "@babel/preset-react": "7.12.1",
40
40
  "@babel/preset-typescript": "7.12.1",
41
- "@types/enzyme-adapter-react-16": "^1.0.6",
41
+ "@types/enzyme-adapter-react-15": "^1.0.9",
42
42
  "@types/jest": "24.0.25",
43
43
  "@types/node": "10",
44
44
  "@types/prop-types": "^15.7.10",
45
- "@types/react": "16.14.34",
46
- "@types/react-dom": "16.9.18",
45
+ "@types/react": "15",
46
+ "@types/react-dom": "15",
47
47
  "@typescript-eslint/eslint-plugin": "2.34.0",
48
48
  "@typescript-eslint/parser": "2.34.0",
49
49
  "babel-jest": "26.6.3",
50
50
  "babel-loader": "8",
51
51
  "css-loader": "5",
52
52
  "enzyme": "3.11.0",
53
- "enzyme-adapter-react-16": "1.15.7",
53
+ "enzyme-adapter-react-15": "1.0.6",
54
54
  "eslint": "6.8.0",
55
55
  "eslint-config-prettier": "6.0.0",
56
56
  "eslint-plugin-react": "7.20.0",
@@ -62,7 +62,7 @@
62
62
  "jest": "26.6.3",
63
63
  "nodemon": "^3.1.9",
64
64
  "prettier": "2.0.5",
65
- "react-test-renderer": "16.14.0",
65
+ "react-test-renderer": "15",
66
66
  "style-loader": "2",
67
67
  "tsconfig-paths-webpack-plugin": "^4.2.0",
68
68
  "typescript": "^4",
@@ -75,13 +75,9 @@
75
75
  "@sentry/browser": "7.68.0",
76
76
  "axios": "^0.27.2",
77
77
  "flexibility": "^2.0.1",
78
- "prop-types": "15.8.1",
79
- "react": "16.14.0",
80
- "react-dom": "16.14.0"
81
- },
82
- "peerDependencies": {
83
- "react": "^16.0.0",
84
- "react-dom": "^16.0.0"
78
+ "prop-types": "15",
79
+ "react": "^15.0.0",
80
+ "react-dom": "^15.0.0"
85
81
  },
86
82
  "resolutions": {
87
83
  "sockjs-client": "1.5.1",
@@ -2,6 +2,6 @@ import React from 'react';
2
2
  import { ButtonHTMLAttributes } from 'react';
3
3
  import './BaseButton.styles.css';
4
4
  declare class BaseButton extends React.Component<ButtonHTMLAttributes<HTMLButtonElement>> {
5
- render(): JSX.Element;
5
+ render(): React.JSX.Element;
6
6
  }
7
7
  export default BaseButton;
@@ -8,6 +8,6 @@ declare class Image extends React.Component<ImageProps> {
8
8
  };
9
9
  constructor(props: ImageProps);
10
10
  handleError: () => void;
11
- render(): JSX.Element | null;
11
+ render(): React.JSX.Element | null;
12
12
  }
13
13
  export default Image;
@@ -2,19 +2,13 @@
2
2
  import React from 'react';
3
3
  import { WithFocusableProps } from '@/external/spatial-navigation';
4
4
  declare const _default: {
5
- new (props: (React.CanvasHTMLAttributes<HTMLCanvasElement> & {
5
+ new (props?: (React.CanvasHTMLAttributes<HTMLCanvasElement> & {
6
6
  id: string;
7
7
  autoFocus: boolean;
8
8
  autoPlay: boolean;
9
9
  src: string;
10
10
  onLoadRiveInstance: (riveInstance: any) => void;
11
- } & WithFocusableProps) | Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
12
- id: string;
13
- autoFocus: boolean;
14
- autoPlay: boolean;
15
- src: string;
16
- onLoadRiveInstance: (riveInstance: any) => void;
17
- } & WithFocusableProps>): {
11
+ } & WithFocusableProps) | undefined, context?: any): {
18
12
  state: import("../../../external/spatial-navigation/withFocusable").WithFocusableState;
19
13
  navigation: import("../../../external/spatial-navigation/spatialNavigation").default;
20
14
  getChildContext(): {
@@ -40,145 +34,29 @@ declare const _default: {
40
34
  autoPlay: boolean;
41
35
  src: string;
42
36
  onLoadRiveInstance: (riveInstance: any) => void;
43
- } & WithFocusableProps, string | React.JSXElementConstructor<any>>;
44
- context: any;
45
- 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<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
46
- id: string;
47
- autoFocus: boolean;
48
- autoPlay: boolean;
49
- src: string;
50
- onLoadRiveInstance: (riveInstance: any) => void;
51
- } & 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;
52
- forceUpdate(callback?: (() => void) | undefined): void;
53
- readonly props: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
37
+ } & WithFocusableProps>;
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: React.CanvasHTMLAttributes<HTMLCanvasElement> & {
54
39
  id: string;
55
40
  autoFocus: boolean;
56
41
  autoPlay: boolean;
57
42
  src: string;
58
43
  onLoadRiveInstance: (riveInstance: any) => void;
59
- } & WithFocusableProps> & Readonly<{
44
+ } & 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;
45
+ forceUpdate(callBack?: (() => any) | undefined): void;
46
+ props: Readonly<{
60
47
  children?: React.ReactNode;
61
- }>;
62
- refs: {
63
- [key: string]: React.ReactInstance;
64
- };
65
- shouldComponentUpdate?(nextProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
66
- id: string;
67
- autoFocus: boolean;
68
- autoPlay: boolean;
69
- src: string;
70
- onLoadRiveInstance: (riveInstance: any) => void;
71
- } & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
72
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
73
- getSnapshotBeforeUpdate?(prevProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
74
- id: string;
75
- autoFocus: boolean;
76
- autoPlay: boolean;
77
- src: string;
78
- onLoadRiveInstance: (riveInstance: any) => void;
79
- } & WithFocusableProps>, prevState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
80
- componentWillMount?(): void;
81
- UNSAFE_componentWillMount?(): void;
82
- componentWillReceiveProps?(nextProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
48
+ }> & Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
83
49
  id: string;
84
50
  autoFocus: boolean;
85
51
  autoPlay: boolean;
86
52
  src: string;
87
53
  onLoadRiveInstance: (riveInstance: any) => void;
88
- } & WithFocusableProps>, nextContext: any): void;
89
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
90
- id: string;
91
- autoFocus: boolean;
92
- autoPlay: boolean;
93
- src: string;
94
- onLoadRiveInstance: (riveInstance: any) => void;
95
- } & WithFocusableProps>, nextContext: any): void;
96
- componentWillUpdate?(nextProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
97
- id: string;
98
- autoFocus: boolean;
99
- autoPlay: boolean;
100
- src: string;
101
- onLoadRiveInstance: (riveInstance: any) => void;
102
- } & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
103
- UNSAFE_componentWillUpdate?(nextProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
104
- id: string;
105
- autoFocus: boolean;
106
- autoPlay: boolean;
107
- src: string;
108
- onLoadRiveInstance: (riveInstance: any) => void;
109
- } & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
110
- };
111
- new (props: React.CanvasHTMLAttributes<HTMLCanvasElement> & {
112
- id: string;
113
- autoFocus: boolean;
114
- autoPlay: boolean;
115
- src: string;
116
- onLoadRiveInstance: (riveInstance: any) => void;
117
- } & WithFocusableProps, context: any): {
118
- state: import("../../../external/spatial-navigation/withFocusable").WithFocusableState;
119
- navigation: import("../../../external/spatial-navigation/spatialNavigation").default;
120
- getChildContext(): {
121
- parentFocusKey: string;
122
- };
123
- setFocus: (focusKey: string) => void;
124
- navigateByDirection: (direction: import("../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
125
- stealFocus: () => void;
126
- onUpdateFocus: (focused: boolean) => void;
127
- onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
128
- onEnterPressHandler: (details: import("../../../external/spatial-navigation/utils").Details) => void;
129
- onEnterReleaseHandler: () => void;
130
- onBackPressHandler: (details: import("../../../external/spatial-navigation/utils").Details) => void;
131
- onArrowPressHandler: (direction: import("../../../external/spatial-navigation/utils").Direction, details: import("../../../external/spatial-navigation/utils").Details) => boolean | void;
132
- onBecameFocusedHandler: (layout: import("../../../external/spatial-navigation/utils").Layout, details: import("../../../external/spatial-navigation/utils").Details) => void;
133
- onBecameBlurredHandler: (layout: import("../../../external/spatial-navigation/utils").Layout, details: import("../../../external/spatial-navigation/utils").Details) => void;
134
- componentDidMount(): void;
135
- componentDidUpdate(): void;
136
- componentWillUnmount(): void;
137
- render(): React.ReactElement<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
138
- id: string;
139
- autoFocus: boolean;
140
- autoPlay: boolean;
141
- src: string;
142
- onLoadRiveInstance: (riveInstance: any) => void;
143
- } & WithFocusableProps, string | React.JSXElementConstructor<any>>;
54
+ } & WithFocusableProps>;
144
55
  context: any;
145
- 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<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
146
- id: string;
147
- autoFocus: boolean;
148
- autoPlay: boolean;
149
- src: string;
150
- onLoadRiveInstance: (riveInstance: any) => void;
151
- } & 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;
152
- forceUpdate(callback?: (() => void) | undefined): void;
153
- readonly props: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
154
- id: string;
155
- autoFocus: boolean;
156
- autoPlay: boolean;
157
- src: string;
158
- onLoadRiveInstance: (riveInstance: any) => void;
159
- } & WithFocusableProps> & Readonly<{
160
- children?: React.ReactNode;
161
- }>;
162
56
  refs: {
163
57
  [key: string]: React.ReactInstance;
164
58
  };
165
- shouldComponentUpdate?(nextProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
166
- id: string;
167
- autoFocus: boolean;
168
- autoPlay: boolean;
169
- src: string;
170
- onLoadRiveInstance: (riveInstance: any) => void;
171
- } & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
172
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
173
- getSnapshotBeforeUpdate?(prevProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
174
- id: string;
175
- autoFocus: boolean;
176
- autoPlay: boolean;
177
- src: string;
178
- onLoadRiveInstance: (riveInstance: any) => void;
179
- } & WithFocusableProps>, prevState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
180
59
  componentWillMount?(): void;
181
- UNSAFE_componentWillMount?(): void;
182
60
  componentWillReceiveProps?(nextProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
183
61
  id: string;
184
62
  autoFocus: boolean;
@@ -186,13 +64,13 @@ declare const _default: {
186
64
  src: string;
187
65
  onLoadRiveInstance: (riveInstance: any) => void;
188
66
  } & WithFocusableProps>, nextContext: any): void;
189
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
67
+ shouldComponentUpdate?(nextProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
190
68
  id: string;
191
69
  autoFocus: boolean;
192
70
  autoPlay: boolean;
193
71
  src: string;
194
72
  onLoadRiveInstance: (riveInstance: any) => void;
195
- } & WithFocusableProps>, nextContext: any): void;
73
+ } & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
196
74
  componentWillUpdate?(nextProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
197
75
  id: string;
198
76
  autoFocus: boolean;
@@ -200,13 +78,6 @@ declare const _default: {
200
78
  src: string;
201
79
  onLoadRiveInstance: (riveInstance: any) => void;
202
80
  } & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
203
- UNSAFE_componentWillUpdate?(nextProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
204
- id: string;
205
- autoFocus: boolean;
206
- autoPlay: boolean;
207
- src: string;
208
- onLoadRiveInstance: (riveInstance: any) => void;
209
- } & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
210
81
  };
211
82
  contextTypes: {
212
83
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -214,6 +85,5 @@ declare const _default: {
214
85
  childContextTypes: {
215
86
  parentFocusKey: import("prop-types").Requireable<string>;
216
87
  };
217
- contextType?: React.Context<any> | undefined;
218
88
  };
219
89
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { IconProps } from './Icon';
2
- declare const BetGeneralIcon: (props: IconProps) => JSX.Element;
3
+ declare const BetGeneralIcon: (props: IconProps) => React.JSX.Element;
3
4
  export default BetGeneralIcon;
@@ -2,6 +2,6 @@ import React from 'react';
2
2
  import { IconProps } from './Icon';
3
3
  declare class BetsIcon extends React.Component<IconProps> {
4
4
  constructor(props: IconProps);
5
- render(): JSX.Element;
5
+ render(): React.JSX.Element;
6
6
  }
7
7
  export default BetsIcon;
@@ -2,6 +2,6 @@ import React from 'react';
2
2
  import { IconProps } from './Icon';
3
3
  declare class BetsWarningIcon extends React.Component<IconProps> {
4
4
  constructor(props: IconProps);
5
- render(): JSX.Element;
5
+ render(): React.JSX.Element;
6
6
  }
7
7
  export default BetsWarningIcon;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { IconProps } from './Icon';
2
- declare const CheckmarkIcon: (props: IconProps) => JSX.Element;
3
+ declare const CheckmarkIcon: (props: IconProps) => React.JSX.Element;
3
4
  export default CheckmarkIcon;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { IconProps } from './Icon';
2
- declare const CollapseIcon: (props: IconProps) => JSX.Element;
3
+ declare const CollapseIcon: (props: IconProps) => React.JSX.Element;
3
4
  export default CollapseIcon;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { IconProps } from './Icon';
2
- declare const ExpandIcon: (props: IconProps) => JSX.Element;
3
+ declare const ExpandIcon: (props: IconProps) => React.JSX.Element;
3
4
  export default ExpandIcon;
@@ -2,6 +2,6 @@ import React from 'react';
2
2
  import { IconProps } from './Icon';
3
3
  declare class FantasyIcon extends React.Component<IconProps> {
4
4
  constructor(props: IconProps);
5
- render(): JSX.Element;
5
+ render(): React.JSX.Element;
6
6
  }
7
7
  export default FantasyIcon;
@@ -2,6 +2,6 @@ import React from 'react';
2
2
  import { IconProps } from './Icon';
3
3
  declare class FlameIcon extends React.Component<IconProps> {
4
4
  constructor(props: IconProps);
5
- render(): JSX.Element;
5
+ render(): React.JSX.Element;
6
6
  }
7
7
  export default FlameIcon;
@@ -15,10 +15,10 @@ declare const iconImports: {
15
15
  bets: typeof BetsIcon;
16
16
  stats: typeof StatsIcon;
17
17
  warning: typeof WarningIcon;
18
- expand: (props: IconProps) => JSX.Element;
19
- collapse: (props: IconProps) => JSX.Element;
20
- times: (props: IconProps) => JSX.Element;
21
- checkmark: (props: IconProps) => JSX.Element;
18
+ expand: (props: IconProps) => React.JSX.Element;
19
+ collapse: (props: IconProps) => React.JSX.Element;
20
+ times: (props: IconProps) => React.JSX.Element;
21
+ checkmark: (props: IconProps) => React.JSX.Element;
22
22
  flame: typeof FlameIcon;
23
23
  betsWarning: typeof BetsWarningIcon;
24
24
  mobilePhone: typeof MobilePhoneIcon;
@@ -35,6 +35,6 @@ interface IconState {
35
35
  loaded: boolean;
36
36
  }
37
37
  declare class Icon extends React.Component<IconProps, IconState> {
38
- render(): JSX.Element;
38
+ render(): React.JSX.Element;
39
39
  }
40
40
  export default Icon;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IconProps } from './Icon';
3
3
  declare class KeyPlaysIcon extends React.Component<IconProps, {}> {
4
- render(): JSX.Element;
4
+ render(): React.JSX.Element;
5
5
  }
6
6
  export default KeyPlaysIcon;
@@ -2,6 +2,6 @@ import React from 'react';
2
2
  import { IconProps } from './Icon';
3
3
  declare class MobilePhoneIcon extends React.Component<IconProps> {
4
4
  constructor(props: IconProps);
5
- render(): JSX.Element;
5
+ render(): React.JSX.Element;
6
6
  }
7
7
  export default MobilePhoneIcon;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IconProps } from './Icon';
3
3
  declare class PlayIcon extends React.Component<IconProps, {}> {
4
- render(): JSX.Element;
4
+ render(): React.JSX.Element;
5
5
  }
6
6
  export default PlayIcon;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IconProps } from './Icon';
3
3
  export default class ShopIcon extends React.Component<IconProps> {
4
- render(): JSX.Element;
4
+ render(): React.JSX.Element;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IconProps } from './Icon';
3
3
  declare class StatsIcon extends React.Component<IconProps, {}> {
4
- render(): JSX.Element;
4
+ render(): React.JSX.Element;
5
5
  }
6
6
  export default StatsIcon;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { IconProps } from './Icon';
2
- declare const TimesIcon: (props: IconProps) => JSX.Element;
3
+ declare const TimesIcon: (props: IconProps) => React.JSX.Element;
3
4
  export default TimesIcon;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IconProps } from './Icon';
3
3
  declare class WarningIcon extends React.Component<IconProps, {}> {
4
- render(): JSX.Element;
4
+ render(): React.JSX.Element;
5
5
  }
6
6
  export default WarningIcon;
@@ -6,6 +6,6 @@ declare class App extends React.Component<{
6
6
  get colors(): import("@/models/ITheme").IThemeColors;
7
7
  componentDidMount(): void;
8
8
  componentWillUnmount(): void;
9
- render(): JSX.Element;
9
+ render(): React.JSX.Element;
10
10
  }
11
11
  export default App;
@@ -16,6 +16,6 @@ declare class PanelManager extends React.Component<{}, PanelManagerState> {
16
16
  componentDidMount(): void;
17
17
  componentWillUnmount(): void;
18
18
  goToPanel(panel: MaestroPanelType): () => void;
19
- render(): JSX.Element;
19
+ render(): React.JSX.Element;
20
20
  }
21
21
  export default PanelManager;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import './ScrollableContainer.styles.css';
4
3
  import { Layout } from '@/external/spatial-navigation/utils';
5
4
  export interface ScrollableContainerContextType {
@@ -56,9 +55,9 @@ declare class ScrollableContainer extends React.Component<ScrollableContainerPro
56
55
  };
57
56
  setRef: (ref: HTMLElement) => void;
58
57
  static childContextTypes: {
59
- refsMap: PropTypes.Requireable<(HTMLElement | null | undefined)[]>;
60
- setRef: PropTypes.Requireable<(...args: any[]) => any>;
61
- scrollToFocusedElement: PropTypes.Requireable<(...args: any[]) => any>;
58
+ refsMap: React.Requireable<any>;
59
+ setRef: React.Requireable<any>;
60
+ scrollToFocusedElement: React.Requireable<any>;
62
61
  };
63
62
  getOrderedRefs: () => HTMLElement[];
64
63
  /**
@@ -67,12 +66,12 @@ declare class ScrollableContainer extends React.Component<ScrollableContainerPro
67
66
  private scrollToFocusedElement;
68
67
  getChildContext(): ScrollableContainerContextType;
69
68
  componentWillUnmount(): void;
70
- render(): JSX.Element;
69
+ render(): React.JSX.Element;
71
70
  }
72
71
  export declare const DEFAULT_SCROLLABLE_CONTAINER_CONTEXT: ScrollableContainerContextType;
73
72
  export declare const SCROLLABLE_CONTEXT_TYPE: {
74
- refsMap: PropTypes.Requireable<(HTMLElement | null | undefined)[]>;
75
- setRef: PropTypes.Requireable<(...args: any[]) => any>;
76
- scrollToFocusedElement: PropTypes.Requireable<(...args: any[]) => any>;
73
+ refsMap: React.Requireable<any>;
74
+ setRef: React.Requireable<any>;
75
+ scrollToFocusedElement: React.Requireable<any>;
77
76
  };
78
77
  export default ScrollableContainer;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import './ScrollableContainer.styles.css';
4
3
  const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
5
4
  /**
@@ -151,9 +150,9 @@ Object.defineProperty(ScrollableContainer, "childContextTypes", {
151
150
  configurable: true,
152
151
  writable: true,
153
152
  value: {
154
- refsMap: PropTypes.arrayOf(PropTypes.instanceOf(HTMLElement)),
155
- setRef: PropTypes.func,
156
- scrollToFocusedElement: PropTypes.func,
153
+ refsMap: React.PropTypes.arrayOf(React.PropTypes.instanceOf(HTMLElement)),
154
+ setRef: React.PropTypes.func,
155
+ scrollToFocusedElement: React.PropTypes.func,
157
156
  }
158
157
  });
159
158
  export const DEFAULT_SCROLLABLE_CONTAINER_CONTEXT = {
@@ -162,8 +161,8 @@ export const DEFAULT_SCROLLABLE_CONTAINER_CONTEXT = {
162
161
  refsMap: [],
163
162
  };
164
163
  export const SCROLLABLE_CONTEXT_TYPE = {
165
- refsMap: PropTypes.arrayOf(PropTypes.instanceOf(HTMLElement)),
166
- setRef: PropTypes.func,
167
- scrollToFocusedElement: PropTypes.func,
164
+ refsMap: React.PropTypes.arrayOf(React.PropTypes.instanceOf(HTMLElement)),
165
+ setRef: React.PropTypes.func,
166
+ scrollToFocusedElement: React.PropTypes.func,
168
167
  };
169
168
  export default ScrollableContainer;
@@ -3,7 +3,7 @@ import './ActionButton.styles.css';
3
3
  import { WithFocusableProps } from '@/external/spatial-navigation';
4
4
  import React from 'react';
5
5
  declare const _default: {
6
- new (props: (object & WithFocusableProps) | Readonly<object & WithFocusableProps>): {
6
+ new (props?: (object & WithFocusableProps) | undefined, context?: any): {
7
7
  state: import("../../../external/spatial-navigation/withFocusable").WithFocusableState;
8
8
  navigation: import("../../../external/spatial-navigation/spatialNavigation").default;
9
9
  getChildContext(): {
@@ -23,65 +23,20 @@ declare const _default: {
23
23
  componentDidMount(): void;
24
24
  componentDidUpdate(): void;
25
25
  componentWillUnmount(): void;
26
- render(): React.ReactElement<object & WithFocusableProps, string | React.JSXElementConstructor<any>>;
27
- context: any;
28
- setState<K extends keyof import("../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<object & 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;
29
- forceUpdate(callback?: (() => void) | undefined): void;
30
- readonly props: Readonly<object & WithFocusableProps> & Readonly<{
26
+ render(): React.ReactElement<object & WithFocusableProps>;
27
+ 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: object & 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;
28
+ forceUpdate(callBack?: (() => any) | undefined): void;
29
+ props: Readonly<{
31
30
  children?: React.ReactNode;
32
- }>;
33
- refs: {
34
- [key: string]: React.ReactInstance;
35
- };
36
- shouldComponentUpdate?(nextProps: Readonly<object & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
37
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
38
- getSnapshotBeforeUpdate?(prevProps: Readonly<object & WithFocusableProps>, prevState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
39
- componentWillMount?(): void;
40
- UNSAFE_componentWillMount?(): void;
41
- componentWillReceiveProps?(nextProps: Readonly<object & WithFocusableProps>, nextContext: any): void;
42
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<object & WithFocusableProps>, nextContext: any): void;
43
- componentWillUpdate?(nextProps: Readonly<object & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
44
- UNSAFE_componentWillUpdate?(nextProps: Readonly<object & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
45
- };
46
- new (props: object & WithFocusableProps, context: any): {
47
- state: import("../../../external/spatial-navigation/withFocusable").WithFocusableState;
48
- navigation: import("../../../external/spatial-navigation/spatialNavigation").default;
49
- getChildContext(): {
50
- parentFocusKey: string;
51
- };
52
- setFocus: (focusKey: string) => void;
53
- navigateByDirection: (direction: import("../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
54
- stealFocus: () => void;
55
- onUpdateFocus: (focused: boolean) => void;
56
- onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
57
- onEnterPressHandler: (details: import("../../../external/spatial-navigation/utils").Details) => void;
58
- onEnterReleaseHandler: () => void;
59
- onBackPressHandler: (details: import("../../../external/spatial-navigation/utils").Details) => void;
60
- onArrowPressHandler: (direction: import("../../../external/spatial-navigation/utils").Direction, details: import("../../../external/spatial-navigation/utils").Details) => boolean | void;
61
- onBecameFocusedHandler: (layout: import("../../../external/spatial-navigation/utils").Layout, details: import("../../../external/spatial-navigation/utils").Details) => void;
62
- onBecameBlurredHandler: (layout: import("../../../external/spatial-navigation/utils").Layout, details: import("../../../external/spatial-navigation/utils").Details) => void;
63
- componentDidMount(): void;
64
- componentDidUpdate(): void;
65
- componentWillUnmount(): void;
66
- render(): React.ReactElement<object & WithFocusableProps, string | React.JSXElementConstructor<any>>;
31
+ }> & Readonly<object & WithFocusableProps>;
67
32
  context: any;
68
- 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<object & 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;
69
- forceUpdate(callback?: (() => void) | undefined): void;
70
- readonly props: Readonly<object & WithFocusableProps> & Readonly<{
71
- children?: React.ReactNode;
72
- }>;
73
33
  refs: {
74
34
  [key: string]: React.ReactInstance;
75
35
  };
76
- shouldComponentUpdate?(nextProps: Readonly<object & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
77
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
78
- getSnapshotBeforeUpdate?(prevProps: Readonly<object & WithFocusableProps>, prevState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
79
36
  componentWillMount?(): void;
80
- UNSAFE_componentWillMount?(): void;
81
37
  componentWillReceiveProps?(nextProps: Readonly<object & WithFocusableProps>, nextContext: any): void;
82
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<object & WithFocusableProps>, nextContext: any): void;
38
+ shouldComponentUpdate?(nextProps: Readonly<object & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
83
39
  componentWillUpdate?(nextProps: Readonly<object & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
84
- UNSAFE_componentWillUpdate?(nextProps: Readonly<object & WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
85
40
  };
86
41
  contextTypes: {
87
42
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -89,6 +44,5 @@ declare const _default: {
89
44
  childContextTypes: {
90
45
  parentFocusKey: import("prop-types").Requireable<string>;
91
46
  };
92
- contextType?: React.Context<any> | undefined;
93
47
  };
94
48
  export default _default;
@@ -11,6 +11,6 @@ declare class HeadshotImage extends React.Component<HeadshotImageProps> {
11
11
  componentDidMount(): void;
12
12
  componentWillUnmount(): void;
13
13
  onLoad: () => void;
14
- render(): JSX.Element;
14
+ render(): React.JSX.Element;
15
15
  }
16
16
  export default HeadshotImage;