@maestro_io/maestro-web-sdk 4.0.0-beta.2 → 4.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/maestro-web-sdk.esm.js +4 -4
- package/dist/maestro-web-sdk.esm.js.map +1 -1
- package/dist/maestro-web-sdk.umd.js +4 -4
- package/dist/maestro-web-sdk.umd.js.map +1 -1
- package/dist/package.json +13 -9
- package/dist/src/components/atoms/BaseButton/BaseButton.d.ts +1 -1
- package/dist/src/components/atoms/Image/index.d.ts +1 -1
- package/dist/src/components/atoms/Rive/index.d.ts +141 -11
- package/dist/src/components/atoms/SvgIcon/BetGeneralIcon.d.ts +1 -2
- package/dist/src/components/atoms/SvgIcon/BetsIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/BetsWarningIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/ChatIcon.d.ts +4 -0
- package/dist/src/components/atoms/SvgIcon/CheckmarkIcon.d.ts +1 -2
- package/dist/src/components/atoms/SvgIcon/CollapseIcon.d.ts +1 -2
- package/dist/src/components/atoms/SvgIcon/ExpandIcon.d.ts +1 -2
- package/dist/src/components/atoms/SvgIcon/FantasyIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/FlameIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/HelloWorldIcon.d.ts +3 -0
- package/dist/src/components/atoms/SvgIcon/Icon.d.ts +5 -5
- package/dist/src/components/atoms/SvgIcon/KeyPlaysIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/MobilePhoneIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/PlayIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/ShopIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/ShopifyIcon.d.ts +4 -0
- package/dist/src/components/atoms/SvgIcon/StatsIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/TimesIcon.d.ts +1 -2
- package/dist/src/components/atoms/SvgIcon/WarningIcon.d.ts +1 -1
- package/dist/src/components/core/App/App.d.ts +1 -1
- package/dist/src/components/core/PanelManager/PanelManager.d.ts +1 -1
- package/dist/src/components/core/ScrollableContainer/ScrollableContainer.d.ts +8 -7
- package/dist/src/components/core/ScrollableContainer/ScrollableContainer.js +7 -6
- package/dist/src/components/molecules/ActionButton/ActionButton.d.ts +53 -7
- package/dist/src/components/molecules/HeadshotImage/HeadshotImage.d.ts +1 -1
- package/dist/src/components/molecules/Overlay/Overlay.d.ts +1 -1
- package/dist/src/components/molecules/PanelNavButton/PanelNavButton.d.ts +53 -7
- package/dist/src/components/molecules/TabLoadError/TabLoadError.d.ts +53 -7
- package/dist/src/components/molecules/WatchButton/WatchButton.d.ts +1 -1
- package/dist/src/components/organisms/PanelNavigation/PanelNavigation.d.ts +1 -1
- package/dist/src/components/organisms/SegmentController/SegmentController.d.ts +5 -4
- package/dist/src/development/TimeSeek.d.ts +1 -1
- package/dist/src/development/development.js +7 -4
- package/dist/src/external/ReactRenderer.js +15 -3
- package/dist/src/external/spatial-navigation/withFocusable.d.ts +53 -7
- package/dist/src/index.d.ts +1 -2
- package/dist/src/index.js +1 -1
- package/dist/src/interfaces/IMaestroEvent.d.ts +2 -2
- package/dist/src/interfaces/IMaestroManager.d.ts +2 -2
- package/dist/src/modules/bets/view/BetsView.d.ts +3 -3
- package/dist/src/modules/bets/view/HotProps/HotPropsView.d.ts +53 -7
- package/dist/src/modules/bets/view/SixPack/SixPackView.d.ts +5 -4
- package/dist/src/modules/bets/view/UserBets/BetResult/BetResult.d.ts +1 -1
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCard.d.ts +53 -7
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardEvent.d.ts +5 -4
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardFooter.d.ts +1 -2
- package/dist/src/modules/bets/view/UserBets/Boost/Boost.d.ts +1 -2
- package/dist/src/modules/bets/view/UserBets/OutcomeBadge/OutcomeBadge.d.ts +1 -2
- package/dist/src/modules/bets/view/UserBets/Parlay/Parlay.d.ts +1 -2
- package/dist/src/modules/bets/view/UserBets/Straight/Straight.d.ts +1 -2
- package/dist/src/modules/bets/view/UserBets/Teaser/Teaser.d.ts +1 -2
- package/dist/src/modules/bets/view/UserBets/UserBetsView.d.ts +3 -3
- package/dist/src/modules/bets/view/components/Bet/Bet.d.ts +99 -11
- package/dist/src/modules/bets/view/components/BetPill/BetPill.d.ts +1 -1
- package/dist/src/modules/bets/view/components/BetsCard/BetsCardHeader.d.ts +1 -1
- package/dist/src/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.d.ts +1 -1
- package/dist/src/modules/bets/view/components/LocationWarning/LocationWarning.d.ts +1 -1
- package/dist/src/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.d.ts +5 -4
- package/dist/src/modules/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.d.ts +1 -1
- package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.d.ts +53 -7
- package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +53 -7
- package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.d.ts +1 -1
- package/dist/src/modules/fantasy/view/FantasyItemView.d.ts +6 -5
- package/dist/src/modules/fantasy/view/FantasyView.d.ts +3 -3
- package/dist/src/modules/fantasy/view/InactiveLeague/DraftDateCountdown.d.ts +1 -1
- package/dist/src/modules/fantasy/view/InactiveLeague/InactiveLeague.d.ts +53 -7
- package/dist/src/modules/fantasy/view/LoginView/LoginView.d.ts +53 -7
- package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts +53 -7
- package/dist/src/modules/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.d.ts +1 -1
- package/dist/src/modules/fantasy/view/MatchupPair/MatchupPair.d.ts +53 -7
- package/dist/src/modules/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.d.ts +1 -1
- package/dist/src/modules/fantasy/view/MatchupSingle/MatchupSingle.d.ts +53 -7
- package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts +53 -7
- package/dist/src/modules/fantasy/view/PromoView/PromoView.d.ts +53 -7
- package/dist/src/modules/hello-world/HelloWorldImage.d.ts +3 -0
- package/dist/src/modules/hello-world/HelloWorldView.d.ts +11 -0
- package/dist/src/modules/hello-world/HelloWorldView.js +33 -0
- package/dist/src/modules/hello-world/index.d.ts +2 -0
- package/dist/src/modules/hello-world/index.js +2 -0
- package/dist/src/modules/key-plays/view/KeyPlayCardScoreTagView.d.ts +1 -1
- package/dist/src/modules/key-plays/view/KeyPlayCardView.d.ts +7 -6
- package/dist/src/modules/key-plays/view/KeyPlayCardView.js +6 -11
- package/dist/src/modules/key-plays/view/KeyPlayErrorStateView.d.ts +1 -1
- package/dist/src/modules/key-plays/view/KeyPlaysView.d.ts +3 -3
- package/dist/src/modules/shop/mocks.js +1 -0
- package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.d.ts +1 -2
- package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.js +5 -1
- package/dist/src/modules/shop/view/ShopView.d.ts +3 -3
- package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.d.ts +54 -8
- package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.js +1 -1
- package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.d.ts +53 -7
- package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.js +1 -1
- package/dist/src/modules/shop/view/components/ShopPromoView/ShopPromoView.d.ts +1 -2
- package/dist/src/modules/shop/view/components/ShopSection/ShopSection.d.ts +5 -4
- package/dist/src/modules/shop/view-model/ShopViewModel.js +5 -1
- package/dist/src/modules/stats/utils/renderTeamStatistic.d.ts +1 -2
- package/dist/src/modules/stats/view/ActiveAthletes/ActiveAthletes.d.ts +2 -2
- package/dist/src/modules/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.d.ts +1 -2
- package/dist/src/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.d.ts +1 -1
- package/dist/src/modules/stats/view/DriveSummary/DrivePlayCard.d.ts +53 -7
- package/dist/src/modules/stats/view/DriveSummary/DriveSummary.d.ts +1 -1
- package/dist/src/modules/stats/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.d.ts +1 -1
- package/dist/src/modules/stats/view/DriveSummary/Header/DriveSummaryHeader.d.ts +1 -2
- package/dist/src/modules/stats/view/DriveSummary/MainStat/MainStat.d.ts +1 -2
- package/dist/src/modules/stats/view/GameLeaders/GameLeaders.d.ts +5 -4
- package/dist/src/modules/stats/view/MatchPredictor/DonutChart/DonutChart.d.ts +2 -2
- package/dist/src/modules/stats/view/MatchPredictor/MatchPredictorView.d.ts +53 -7
- package/dist/src/modules/stats/view/Penalties/Penalties.d.ts +1 -2
- package/dist/src/modules/stats/view/RecentGames/RecentGames.d.ts +53 -7
- package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.d.ts +1 -1
- package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.js +3 -1
- package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/ScoreItem.d.ts +53 -7
- package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/ScoresSection.d.ts +1 -2
- package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.d.ts +5 -2
- package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.js +20 -1
- package/dist/src/modules/stats/view/StatsItemView.d.ts +6 -5
- package/dist/src/modules/stats/view/StatsQRCode/StatsQRCodeView.d.ts +53 -7
- package/dist/src/modules/stats/view/StatsView.d.ts +3 -3
- package/dist/src/modules/stats/view/TeamStats/TeamStatsView.d.ts +53 -7
- package/dist/src/modules/stats/view/Teams/StatsCarousel.d.ts +2 -2
- package/dist/src/modules/stats/view/Teams/StatsProgressBar.d.ts +1 -2
- package/dist/src/modules/stats/view/Teams/Teams.d.ts +53 -7
- package/dist/src/modules/stats/view/Teams/Teams.js +17 -1
- package/dist/src/modules/stats/view/WinProbability/WinProbability.d.ts +53 -7
- package/dist/src/modules/stats/view/components/AthletesStatistics/AthletesStatistics.d.ts +53 -7
- package/dist/src/modules/stats/view/components/AthletesStatistics/StatisticTable.d.ts +1 -2
- package/dist/src/modules/stats/view-model/StatsViewModel.d.ts +1 -1
- package/dist/src/modules/stats/view-model/StatsViewModel.js +1 -1
- package/dist/src/services/AnalyticsService/AnalyticsService.js +3 -1
- package/dist/src/services/NetworkManager/NetworkManager.js +3 -3
- package/dist/src/view-models/MaestroEventViewModel.d.ts +1 -1
- package/dist/src/view-models/MaestroEventViewModel.js +6 -9
- package/package.json +13 -9
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": "3.3.
|
|
4
|
+
"version": "3.3.2",
|
|
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-
|
|
41
|
+
"@types/enzyme-adapter-react-16": "^1.0.6",
|
|
42
42
|
"@types/jest": "24.0.25",
|
|
43
43
|
"@types/node": "10",
|
|
44
44
|
"@types/prop-types": "^15.7.10",
|
|
45
|
-
"@types/react": "
|
|
46
|
-
"@types/react-dom": "
|
|
45
|
+
"@types/react": "16.14.34",
|
|
46
|
+
"@types/react-dom": "16.9.18",
|
|
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-
|
|
53
|
+
"enzyme-adapter-react-16": "1.15.7",
|
|
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": "
|
|
65
|
+
"react-test-renderer": "16.14.0",
|
|
66
66
|
"style-loader": "2",
|
|
67
67
|
"tsconfig-paths-webpack-plugin": "^4.2.0",
|
|
68
68
|
"typescript": "^4",
|
|
@@ -75,9 +75,13 @@
|
|
|
75
75
|
"@sentry/browser": "7.68.0",
|
|
76
76
|
"axios": "^0.27.2",
|
|
77
77
|
"flexibility": "^2.0.1",
|
|
78
|
-
"prop-types": "15",
|
|
79
|
-
"react": "
|
|
80
|
-
"react-dom": "
|
|
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"
|
|
81
85
|
},
|
|
82
86
|
"resolutions": {
|
|
83
87
|
"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():
|
|
5
|
+
render(): JSX.Element;
|
|
6
6
|
}
|
|
7
7
|
export default BaseButton;
|
|
@@ -2,13 +2,19 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { WithFocusableProps } from '@/external/spatial-navigation';
|
|
4
4
|
declare const _default: {
|
|
5
|
-
new (props
|
|
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) |
|
|
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>): {
|
|
12
18
|
state: import("../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
13
19
|
navigation: import("../../../external/spatial-navigation/spatialNavigation").default;
|
|
14
20
|
getChildContext(): {
|
|
@@ -34,29 +40,45 @@ declare const _default: {
|
|
|
34
40
|
autoPlay: boolean;
|
|
35
41
|
src: string;
|
|
36
42
|
onLoadRiveInstance: (riveInstance: any) => void;
|
|
37
|
-
} & WithFocusableProps
|
|
38
|
-
|
|
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> & {
|
|
39
46
|
id: string;
|
|
40
47
|
autoFocus: boolean;
|
|
41
48
|
autoPlay: boolean;
|
|
42
49
|
src: string;
|
|
43
50
|
onLoadRiveInstance: (riveInstance: any) => void;
|
|
44
|
-
} & WithFocusableProps) => import("../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../external/spatial-navigation/withFocusable").WithFocusableState, K>) | Pick<import("../../../external/spatial-navigation/withFocusable").WithFocusableState, K
|
|
45
|
-
forceUpdate(
|
|
46
|
-
props: Readonly<{
|
|
47
|
-
children?: React.ReactNode;
|
|
48
|
-
}> & Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
|
|
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> & {
|
|
49
54
|
id: string;
|
|
50
55
|
autoFocus: boolean;
|
|
51
56
|
autoPlay: boolean;
|
|
52
57
|
src: string;
|
|
53
58
|
onLoadRiveInstance: (riveInstance: any) => void;
|
|
54
|
-
} & WithFocusableProps
|
|
55
|
-
|
|
59
|
+
} & WithFocusableProps> & Readonly<{
|
|
60
|
+
children?: React.ReactNode;
|
|
61
|
+
}>;
|
|
56
62
|
refs: {
|
|
57
63
|
[key: string]: React.ReactInstance;
|
|
58
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;
|
|
59
80
|
componentWillMount?(): void;
|
|
81
|
+
UNSAFE_componentWillMount?(): void;
|
|
60
82
|
componentWillReceiveProps?(nextProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
|
|
61
83
|
id: string;
|
|
62
84
|
autoFocus: boolean;
|
|
@@ -64,6 +86,82 @@ declare const _default: {
|
|
|
64
86
|
src: string;
|
|
65
87
|
onLoadRiveInstance: (riveInstance: any) => void;
|
|
66
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>>;
|
|
144
|
+
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
|
+
refs: {
|
|
163
|
+
[key: string]: React.ReactInstance;
|
|
164
|
+
};
|
|
67
165
|
shouldComponentUpdate?(nextProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
|
|
68
166
|
id: string;
|
|
69
167
|
autoFocus: boolean;
|
|
@@ -71,6 +169,30 @@ declare const _default: {
|
|
|
71
169
|
src: string;
|
|
72
170
|
onLoadRiveInstance: (riveInstance: any) => void;
|
|
73
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
|
+
componentWillMount?(): void;
|
|
181
|
+
UNSAFE_componentWillMount?(): void;
|
|
182
|
+
componentWillReceiveProps?(nextProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
|
|
183
|
+
id: string;
|
|
184
|
+
autoFocus: boolean;
|
|
185
|
+
autoPlay: boolean;
|
|
186
|
+
src: string;
|
|
187
|
+
onLoadRiveInstance: (riveInstance: any) => void;
|
|
188
|
+
} & WithFocusableProps>, nextContext: any): void;
|
|
189
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
|
|
190
|
+
id: string;
|
|
191
|
+
autoFocus: boolean;
|
|
192
|
+
autoPlay: boolean;
|
|
193
|
+
src: string;
|
|
194
|
+
onLoadRiveInstance: (riveInstance: any) => void;
|
|
195
|
+
} & WithFocusableProps>, nextContext: any): void;
|
|
74
196
|
componentWillUpdate?(nextProps: Readonly<React.CanvasHTMLAttributes<HTMLCanvasElement> & {
|
|
75
197
|
id: string;
|
|
76
198
|
autoFocus: boolean;
|
|
@@ -78,6 +200,13 @@ declare const _default: {
|
|
|
78
200
|
src: string;
|
|
79
201
|
onLoadRiveInstance: (riveInstance: any) => void;
|
|
80
202
|
} & 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;
|
|
81
210
|
};
|
|
82
211
|
contextTypes: {
|
|
83
212
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
@@ -85,5 +214,6 @@ declare const _default: {
|
|
|
85
214
|
childContextTypes: {
|
|
86
215
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
87
216
|
};
|
|
217
|
+
contextType?: React.Context<any> | undefined;
|
|
88
218
|
};
|
|
89
219
|
export default _default;
|
|
@@ -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) =>
|
|
19
|
-
collapse: (props: IconProps) =>
|
|
20
|
-
times: (props: IconProps) =>
|
|
21
|
-
checkmark: (props: IconProps) =>
|
|
18
|
+
expand: (props: IconProps) => JSX.Element;
|
|
19
|
+
collapse: (props: IconProps) => JSX.Element;
|
|
20
|
+
times: (props: IconProps) => JSX.Element;
|
|
21
|
+
checkmark: (props: IconProps) => 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():
|
|
38
|
+
render(): JSX.Element;
|
|
39
39
|
}
|
|
40
40
|
export default Icon;
|
|
@@ -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():
|
|
19
|
+
render(): JSX.Element;
|
|
20
20
|
}
|
|
21
21
|
export default PanelManager;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
2
3
|
import './ScrollableContainer.styles.css';
|
|
3
4
|
import { Layout } from '@/external/spatial-navigation/utils';
|
|
4
5
|
export interface ScrollableContainerContextType {
|
|
@@ -55,9 +56,9 @@ declare class ScrollableContainer extends React.Component<ScrollableContainerPro
|
|
|
55
56
|
};
|
|
56
57
|
setRef: (ref: HTMLElement) => void;
|
|
57
58
|
static childContextTypes: {
|
|
58
|
-
refsMap:
|
|
59
|
-
setRef:
|
|
60
|
-
scrollToFocusedElement:
|
|
59
|
+
refsMap: PropTypes.Requireable<(HTMLElement | null | undefined)[]>;
|
|
60
|
+
setRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
61
|
+
scrollToFocusedElement: PropTypes.Requireable<(...args: any[]) => any>;
|
|
61
62
|
};
|
|
62
63
|
getOrderedRefs: () => HTMLElement[];
|
|
63
64
|
/**
|
|
@@ -66,12 +67,12 @@ declare class ScrollableContainer extends React.Component<ScrollableContainerPro
|
|
|
66
67
|
private scrollToFocusedElement;
|
|
67
68
|
getChildContext(): ScrollableContainerContextType;
|
|
68
69
|
componentWillUnmount(): void;
|
|
69
|
-
render():
|
|
70
|
+
render(): JSX.Element;
|
|
70
71
|
}
|
|
71
72
|
export declare const DEFAULT_SCROLLABLE_CONTAINER_CONTEXT: ScrollableContainerContextType;
|
|
72
73
|
export declare const SCROLLABLE_CONTEXT_TYPE: {
|
|
73
|
-
refsMap:
|
|
74
|
-
setRef:
|
|
75
|
-
scrollToFocusedElement:
|
|
74
|
+
refsMap: PropTypes.Requireable<(HTMLElement | null | undefined)[]>;
|
|
75
|
+
setRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
76
|
+
scrollToFocusedElement: PropTypes.Requireable<(...args: any[]) => any>;
|
|
76
77
|
};
|
|
77
78
|
export default ScrollableContainer;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
2
3
|
import './ScrollableContainer.styles.css';
|
|
3
4
|
const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
4
5
|
/**
|
|
@@ -150,9 +151,9 @@ Object.defineProperty(ScrollableContainer, "childContextTypes", {
|
|
|
150
151
|
configurable: true,
|
|
151
152
|
writable: true,
|
|
152
153
|
value: {
|
|
153
|
-
refsMap:
|
|
154
|
-
setRef:
|
|
155
|
-
scrollToFocusedElement:
|
|
154
|
+
refsMap: PropTypes.arrayOf(PropTypes.instanceOf(HTMLElement)),
|
|
155
|
+
setRef: PropTypes.func,
|
|
156
|
+
scrollToFocusedElement: PropTypes.func,
|
|
156
157
|
}
|
|
157
158
|
});
|
|
158
159
|
export const DEFAULT_SCROLLABLE_CONTAINER_CONTEXT = {
|
|
@@ -161,8 +162,8 @@ export const DEFAULT_SCROLLABLE_CONTAINER_CONTEXT = {
|
|
|
161
162
|
refsMap: [],
|
|
162
163
|
};
|
|
163
164
|
export const SCROLLABLE_CONTEXT_TYPE = {
|
|
164
|
-
refsMap:
|
|
165
|
-
setRef:
|
|
166
|
-
scrollToFocusedElement:
|
|
165
|
+
refsMap: PropTypes.arrayOf(PropTypes.instanceOf(HTMLElement)),
|
|
166
|
+
setRef: PropTypes.func,
|
|
167
|
+
scrollToFocusedElement: PropTypes.func,
|
|
167
168
|
};
|
|
168
169
|
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
|
|
6
|
+
new (props: (object & WithFocusableProps) | Readonly<object & WithFocusableProps>): {
|
|
7
7
|
state: import("../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
8
8
|
navigation: import("../../../external/spatial-navigation/spatialNavigation").default;
|
|
9
9
|
getChildContext(): {
|
|
@@ -23,20 +23,65 @@ declare const _default: {
|
|
|
23
23
|
componentDidMount(): void;
|
|
24
24
|
componentDidUpdate(): void;
|
|
25
25
|
componentWillUnmount(): void;
|
|
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<{
|
|
30
|
-
children?: React.ReactNode;
|
|
31
|
-
}> & Readonly<object & WithFocusableProps>;
|
|
26
|
+
render(): React.ReactElement<object & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
32
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<{
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
}>;
|
|
33
33
|
refs: {
|
|
34
34
|
[key: string]: React.ReactInstance;
|
|
35
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;
|
|
36
39
|
componentWillMount?(): void;
|
|
40
|
+
UNSAFE_componentWillMount?(): void;
|
|
37
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>>;
|
|
67
|
+
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
|
+
refs: {
|
|
74
|
+
[key: string]: React.ReactInstance;
|
|
75
|
+
};
|
|
38
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
|
+
componentWillMount?(): void;
|
|
80
|
+
UNSAFE_componentWillMount?(): void;
|
|
81
|
+
componentWillReceiveProps?(nextProps: Readonly<object & WithFocusableProps>, nextContext: any): void;
|
|
82
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<object & WithFocusableProps>, nextContext: any): void;
|
|
39
83
|
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;
|
|
40
85
|
};
|
|
41
86
|
contextTypes: {
|
|
42
87
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
@@ -44,5 +89,6 @@ declare const _default: {
|
|
|
44
89
|
childContextTypes: {
|
|
45
90
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
46
91
|
};
|
|
92
|
+
contextType?: React.Context<any> | undefined;
|
|
47
93
|
};
|
|
48
94
|
export default _default;
|