@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.
- 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 +9 -13
- 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 +11 -141
- package/dist/src/components/atoms/SvgIcon/BetGeneralIcon.d.ts +2 -1
- 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/CheckmarkIcon.d.ts +2 -1
- package/dist/src/components/atoms/SvgIcon/CollapseIcon.d.ts +2 -1
- package/dist/src/components/atoms/SvgIcon/ExpandIcon.d.ts +2 -1
- 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/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/StatsIcon.d.ts +1 -1
- package/dist/src/components/atoms/SvgIcon/TimesIcon.d.ts +2 -1
- 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 +7 -8
- package/dist/src/components/core/ScrollableContainer/ScrollableContainer.js +6 -7
- package/dist/src/components/molecules/ActionButton/ActionButton.d.ts +7 -53
- 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 +7 -53
- package/dist/src/components/molecules/TabLoadError/TabLoadError.d.ts +7 -53
- 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 +4 -5
- package/dist/src/development/TimeSeek.d.ts +1 -1
- package/dist/src/development/development.js +4 -7
- package/dist/src/external/ReactRenderer.js +3 -15
- package/dist/src/external/spatial-navigation/withFocusable.d.ts +7 -53
- package/dist/src/interfaces/IMaestroEvent.d.ts +12 -0
- package/dist/src/modules/bets/view/BetsView.d.ts +3 -3
- package/dist/src/modules/bets/view/HotProps/HotPropsView.d.ts +7 -53
- package/dist/src/modules/bets/view/SixPack/SixPackView.d.ts +4 -5
- package/dist/src/modules/bets/view/UserBets/BetResult/BetResult.d.ts +1 -1
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCard.d.ts +7 -53
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardEvent.d.ts +4 -5
- package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardFooter.d.ts +2 -1
- package/dist/src/modules/bets/view/UserBets/Boost/Boost.d.ts +2 -1
- package/dist/src/modules/bets/view/UserBets/OutcomeBadge/OutcomeBadge.d.ts +2 -1
- package/dist/src/modules/bets/view/UserBets/Parlay/Parlay.d.ts +2 -1
- package/dist/src/modules/bets/view/UserBets/Straight/Straight.d.ts +2 -1
- package/dist/src/modules/bets/view/UserBets/Teaser/Teaser.d.ts +2 -1
- package/dist/src/modules/bets/view/UserBets/UserBetsView.d.ts +3 -3
- package/dist/src/modules/bets/view/components/Bet/Bet.d.ts +11 -99
- 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 +4 -5
- package/dist/src/modules/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.d.ts +1 -1
- package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.d.ts +7 -53
- package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +7 -53
- package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.d.ts +1 -1
- package/dist/src/modules/fantasy/view/FantasyItemView.d.ts +5 -6
- 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 +7 -53
- package/dist/src/modules/fantasy/view/LoginView/LoginView.d.ts +7 -53
- package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts +7 -53
- package/dist/src/modules/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.d.ts +1 -1
- package/dist/src/modules/fantasy/view/MatchupPair/MatchupPair.d.ts +7 -53
- package/dist/src/modules/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.d.ts +1 -1
- package/dist/src/modules/fantasy/view/MatchupSingle/MatchupSingle.d.ts +7 -53
- package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts +7 -53
- package/dist/src/modules/fantasy/view/PromoView/PromoView.d.ts +7 -53
- package/dist/src/modules/key-plays/constants.js +3 -1
- package/dist/src/modules/key-plays/view/KeyPlayCardScoreTagView.d.ts +1 -1
- package/dist/src/modules/key-plays/view/KeyPlayCardView.d.ts +6 -7
- 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/key-plays/view-model/KeyPlaysViewModel.js +1 -2
- package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.d.ts +2 -1
- package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.js +3 -3
- package/dist/src/modules/shop/view/ShopView.d.ts +3 -3
- package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.d.ts +8 -54
- package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.d.ts +7 -53
- package/dist/src/modules/shop/view/components/ShopPromoView/ShopPromoView.d.ts +2 -1
- package/dist/src/modules/shop/view/components/ShopSection/ShopSection.d.ts +4 -5
- package/dist/src/modules/stats/utils/renderTeamStatistic.d.ts +2 -1
- package/dist/src/modules/stats/view/ActiveAthletes/ActiveAthletes.d.ts +2 -2
- package/dist/src/modules/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.d.ts +2 -1
- package/dist/src/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.d.ts +1 -1
- package/dist/src/modules/stats/view/DriveSummary/DrivePlayCard.d.ts +7 -53
- 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 +2 -1
- package/dist/src/modules/stats/view/DriveSummary/MainStat/MainStat.d.ts +2 -1
- package/dist/src/modules/stats/view/GameLeaders/GameLeaders.d.ts +4 -5
- package/dist/src/modules/stats/view/MatchPredictor/DonutChart/DonutChart.d.ts +2 -2
- package/dist/src/modules/stats/view/MatchPredictor/MatchPredictorView.d.ts +7 -53
- package/dist/src/modules/stats/view/Penalties/Penalties.d.ts +2 -1
- package/dist/src/modules/stats/view/RecentGames/RecentGames.d.ts +7 -53
- package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.d.ts +1 -1
- package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/ScoreItem.d.ts +7 -53
- package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/ScoresSection.d.ts +2 -1
- package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.d.ts +2 -2
- package/dist/src/modules/stats/view/StatsItemView.d.ts +5 -6
- package/dist/src/modules/stats/view/StatsQRCode/StatsQRCodeView.d.ts +7 -53
- package/dist/src/modules/stats/view/StatsView.d.ts +3 -3
- package/dist/src/modules/stats/view/TeamStats/TeamStatsView.d.ts +7 -53
- package/dist/src/modules/stats/view/Teams/StatsCarousel.d.ts +2 -2
- package/dist/src/modules/stats/view/Teams/StatsProgressBar.d.ts +2 -1
- package/dist/src/modules/stats/view/Teams/Teams.d.ts +7 -53
- package/dist/src/modules/stats/view/WinProbability/WinProbability.d.ts +7 -53
- package/dist/src/modules/stats/view/components/AthletesStatistics/AthletesStatistics.d.ts +7 -53
- package/dist/src/modules/stats/view/components/AthletesStatistics/StatisticTable.d.ts +2 -1
- package/dist/src/modules/stats/view-model/StatsViewModel.d.ts +5 -0
- package/dist/src/modules/stats/view-model/StatsViewModel.js +37 -14
- package/dist/src/services/StatsService.d.ts +1 -0
- package/dist/src/services/StatsService.js +11 -0
- package/dist/src/view-models/MaestroEventViewModel.d.ts +1 -0
- package/dist/src/view-models/MaestroEventViewModel.js +27 -0
- package/package.json +9 -13
|
@@ -29,6 +29,6 @@ declare class Overlay extends React.Component<OverlayProps, OverlayState> {
|
|
|
29
29
|
get overlayMetadata(): string;
|
|
30
30
|
private trackOverlayViewed;
|
|
31
31
|
onLoadRiveInstance: (riveInstance: any | null) => void;
|
|
32
|
-
render(): JSX.Element;
|
|
32
|
+
render(): React.JSX.Element;
|
|
33
33
|
}
|
|
34
34
|
export default Overlay;
|
|
@@ -13,7 +13,7 @@ type PanelNavButtonProps = {
|
|
|
13
13
|
width: string;
|
|
14
14
|
};
|
|
15
15
|
declare const _default: {
|
|
16
|
-
new (props
|
|
16
|
+
new (props?: (PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps) | undefined, context?: any): {
|
|
17
17
|
state: import("../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
18
18
|
navigation: import("../../../external/spatial-navigation/spatialNavigation").default;
|
|
19
19
|
getChildContext(): {
|
|
@@ -33,65 +33,20 @@ declare const _default: {
|
|
|
33
33
|
componentDidMount(): void;
|
|
34
34
|
componentDidUpdate(): void;
|
|
35
35
|
componentWillUnmount(): void;
|
|
36
|
-
render(): React.ReactElement<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
readonly props: Readonly<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps> & Readonly<{
|
|
36
|
+
render(): React.ReactElement<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps>;
|
|
37
|
+
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: PanelNavButtonProps & import("@/external/spatial-navigation").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<{
|
|
41
40
|
children?: React.ReactNode;
|
|
42
|
-
}>;
|
|
43
|
-
refs: {
|
|
44
|
-
[key: string]: React.ReactInstance;
|
|
45
|
-
};
|
|
46
|
-
shouldComponentUpdate?(nextProps: Readonly<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
47
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
48
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps>, prevState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
49
|
-
componentWillMount?(): void;
|
|
50
|
-
UNSAFE_componentWillMount?(): void;
|
|
51
|
-
componentWillReceiveProps?(nextProps: Readonly<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps>, nextContext: any): void;
|
|
52
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps>, nextContext: any): void;
|
|
53
|
-
componentWillUpdate?(nextProps: Readonly<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
54
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
55
|
-
};
|
|
56
|
-
new (props: PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps, context: any): {
|
|
57
|
-
state: import("../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
58
|
-
navigation: import("../../../external/spatial-navigation/spatialNavigation").default;
|
|
59
|
-
getChildContext(): {
|
|
60
|
-
parentFocusKey: string;
|
|
61
|
-
};
|
|
62
|
-
setFocus: (focusKey: string) => void;
|
|
63
|
-
navigateByDirection: (direction: import("../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
|
|
64
|
-
stealFocus: () => void;
|
|
65
|
-
onUpdateFocus: (focused: boolean) => void;
|
|
66
|
-
onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
|
|
67
|
-
onEnterPressHandler: (details: import("../../../external/spatial-navigation/utils").Details) => void;
|
|
68
|
-
onEnterReleaseHandler: () => void;
|
|
69
|
-
onBackPressHandler: (details: import("../../../external/spatial-navigation/utils").Details) => void;
|
|
70
|
-
onArrowPressHandler: (direction: import("../../../external/spatial-navigation/utils").Direction, details: import("../../../external/spatial-navigation/utils").Details) => boolean | void;
|
|
71
|
-
onBecameFocusedHandler: (layout: import("../../../external/spatial-navigation/utils").Layout, details: import("../../../external/spatial-navigation/utils").Details) => void;
|
|
72
|
-
onBecameBlurredHandler: (layout: import("../../../external/spatial-navigation/utils").Layout, details: import("../../../external/spatial-navigation/utils").Details) => void;
|
|
73
|
-
componentDidMount(): void;
|
|
74
|
-
componentDidUpdate(): void;
|
|
75
|
-
componentWillUnmount(): void;
|
|
76
|
-
render(): React.ReactElement<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
41
|
+
}> & Readonly<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps>;
|
|
77
42
|
context: any;
|
|
78
|
-
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<PanelNavButtonProps & import("@/external/spatial-navigation").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;
|
|
79
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
80
|
-
readonly props: Readonly<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps> & Readonly<{
|
|
81
|
-
children?: React.ReactNode;
|
|
82
|
-
}>;
|
|
83
43
|
refs: {
|
|
84
44
|
[key: string]: React.ReactInstance;
|
|
85
45
|
};
|
|
86
|
-
shouldComponentUpdate?(nextProps: Readonly<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
87
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
88
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps>, prevState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
89
46
|
componentWillMount?(): void;
|
|
90
|
-
UNSAFE_componentWillMount?(): void;
|
|
91
47
|
componentWillReceiveProps?(nextProps: Readonly<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps>, nextContext: any): void;
|
|
92
|
-
|
|
48
|
+
shouldComponentUpdate?(nextProps: Readonly<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
93
49
|
componentWillUpdate?(nextProps: Readonly<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
94
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
95
50
|
};
|
|
96
51
|
contextTypes: {
|
|
97
52
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
@@ -99,6 +54,5 @@ declare const _default: {
|
|
|
99
54
|
childContextTypes: {
|
|
100
55
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
101
56
|
};
|
|
102
|
-
contextType?: React.Context<any> | undefined;
|
|
103
57
|
};
|
|
104
58
|
export default _default;
|
|
@@ -3,7 +3,7 @@ import { WithFocusableProps } from '@/external/spatial-navigation';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import './TabLoadError.styles.css';
|
|
5
5
|
declare const _default: {
|
|
6
|
-
new (props
|
|
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
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -5,6 +5,6 @@ interface WatchButtonProps extends HTMLAttributes<HTMLButtonElement> {
|
|
|
5
5
|
}
|
|
6
6
|
declare class WatchButton extends React.Component<WatchButtonProps> {
|
|
7
7
|
constructor(props: WatchButtonProps);
|
|
8
|
-
render(): JSX.Element;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
9
|
}
|
|
10
10
|
export default WatchButton;
|
|
@@ -11,6 +11,6 @@ interface PanelNavigationProps {
|
|
|
11
11
|
}
|
|
12
12
|
declare class PanelNavigation extends React.Component<PanelNavigationProps> {
|
|
13
13
|
handleBecameFocused: (index: number) => () => void;
|
|
14
|
-
render(): JSX.Element | null;
|
|
14
|
+
render(): React.JSX.Element | null;
|
|
15
15
|
}
|
|
16
16
|
export default PanelNavigation;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="prop-types" />
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import './SegmentController.styles.css';
|
|
4
3
|
import { Direction, Layout } from '@/external/spatial-navigation/utils';
|
|
@@ -14,9 +13,9 @@ interface SegmentControllerProps {
|
|
|
14
13
|
declare class SegmentController extends React.Component<SegmentControllerProps> {
|
|
15
14
|
context: import("@/components/core/ScrollableContainer/ScrollableContainer").ScrollableContainerContextType;
|
|
16
15
|
static contextTypes: {
|
|
17
|
-
refsMap:
|
|
18
|
-
setRef:
|
|
19
|
-
scrollToFocusedElement:
|
|
16
|
+
refsMap: React.Requireable<any>;
|
|
17
|
+
setRef: React.Requireable<any>;
|
|
18
|
+
scrollToFocusedElement: React.Requireable<any>;
|
|
20
19
|
};
|
|
21
20
|
state: {
|
|
22
21
|
activeIndex: number;
|
|
@@ -25,6 +24,6 @@ declare class SegmentController extends React.Component<SegmentControllerProps>
|
|
|
25
24
|
onBecameFocused: (item: SegmentItem, i: number) => (layout: Layout) => void;
|
|
26
25
|
onEnterPress: (item: SegmentItem) => () => void;
|
|
27
26
|
handleArrowPress: (index: number) => (direction: Direction, _props: WithFocusableProps) => void;
|
|
28
|
-
render(): JSX.Element;
|
|
27
|
+
render(): React.JSX.Element;
|
|
29
28
|
}
|
|
30
29
|
export default SegmentController;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import ReactDOM from 'react-dom';
|
|
3
2
|
import SDK from '..';
|
|
4
3
|
import MaestroEventDelegate from './MaestroEventDelegate';
|
|
4
|
+
import React from 'react';
|
|
5
5
|
import TimeCodeSeek from './TimeSeek';
|
|
6
6
|
const eventDelegate = new MaestroEventDelegate();
|
|
7
7
|
SDK.configure({
|
|
@@ -26,11 +26,8 @@ const init = async () => {
|
|
|
26
26
|
setTimeout(async () => {
|
|
27
27
|
await SDK.renderPanel('panel-manager');
|
|
28
28
|
}, 0);
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
React.createElement("div", { id: "panel-manager" }),
|
|
33
|
-
React.createElement(TimeCodeSeek, { eventId: EVENT_ID }))), rootElement);
|
|
34
|
-
}
|
|
29
|
+
ReactDOM.render(React.createElement("div", null,
|
|
30
|
+
React.createElement("div", { id: "panel-manager" }),
|
|
31
|
+
React.createElement(TimeCodeSeek, { eventId: EVENT_ID })), document.getElementById('root'));
|
|
35
32
|
};
|
|
36
33
|
init();
|
|
@@ -15,23 +15,14 @@ class ReactRenderer {
|
|
|
15
15
|
* @param options Options for rendering including height and width
|
|
16
16
|
*/
|
|
17
17
|
async renderPanel(id) {
|
|
18
|
-
// Check if there's already a renderer for this ID and clean it up first
|
|
19
|
-
if (this.renderersMap.has(id)) {
|
|
20
|
-
const existingRenderer = this.renderersMap.get(id);
|
|
21
|
-
existingRenderer.unmount();
|
|
22
|
-
this.renderersMap.delete(id);
|
|
23
|
-
}
|
|
24
18
|
const renderer = await this.getRenderer(id);
|
|
25
19
|
const App = require('../components/core/App').default;
|
|
26
20
|
const PanelManager = require('../components/core/PanelManager').default;
|
|
27
21
|
renderer.render(React.createElement(App, null,
|
|
28
22
|
React.createElement(PanelManager, null)));
|
|
29
23
|
return () => {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
renderer.unmount();
|
|
33
|
-
this.renderersMap.delete(id);
|
|
34
|
-
}
|
|
24
|
+
renderer.unmount();
|
|
25
|
+
this.renderersMap.delete(id);
|
|
35
26
|
};
|
|
36
27
|
}
|
|
37
28
|
/**
|
|
@@ -52,10 +43,7 @@ class ReactRenderer {
|
|
|
52
43
|
ReactDOM.render(children, el);
|
|
53
44
|
},
|
|
54
45
|
unmount: () => {
|
|
55
|
-
|
|
56
|
-
if (el) {
|
|
57
|
-
ReactDOM.unmountComponentAtNode(el);
|
|
58
|
-
}
|
|
46
|
+
ReactDOM.unmountComponentAtNode(el);
|
|
59
47
|
},
|
|
60
48
|
};
|
|
61
49
|
this.renderersMap.set(id, renderer);
|
|
@@ -32,7 +32,7 @@ export interface WithFocusableState {
|
|
|
32
32
|
parentFocusKey: string;
|
|
33
33
|
}
|
|
34
34
|
declare const withFocusable: <P extends object>({ forgetLastFocusedChild: configForgetLastFocusedChild, trackChildren: configTrackChildren, autoRestoreFocus: configAutoRestoreFocus, blockNavigationOut: configBlockNavigationOut, }?: WithFocusableConfig) => (WrappedComponent: import("react").ComponentType<P & WithFocusableProps>) => {
|
|
35
|
-
new (props
|
|
35
|
+
new (props?: (P & WithFocusableProps) | undefined, context?: any): {
|
|
36
36
|
state: WithFocusableState;
|
|
37
37
|
navigation: import("./spatialNavigation").default;
|
|
38
38
|
getChildContext(): {
|
|
@@ -52,65 +52,20 @@ declare const withFocusable: <P extends object>({ forgetLastFocusedChild: config
|
|
|
52
52
|
componentDidMount(): void;
|
|
53
53
|
componentDidUpdate(): void;
|
|
54
54
|
componentWillUnmount(): void;
|
|
55
|
-
render(): import("react").ReactElement<P & WithFocusableProps
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
readonly props: Readonly<P & WithFocusableProps> & Readonly<{
|
|
55
|
+
render(): import("react").ReactElement<P & WithFocusableProps>;
|
|
56
|
+
setState<K extends keyof WithFocusableState>(state: WithFocusableState | ((prevState: Readonly<WithFocusableState>, props: P & WithFocusableProps) => WithFocusableState | Pick<WithFocusableState, K>) | Pick<WithFocusableState, K>, callback?: (() => any) | undefined): void;
|
|
57
|
+
forceUpdate(callBack?: (() => any) | undefined): void;
|
|
58
|
+
props: Readonly<{
|
|
60
59
|
children?: import("react").ReactNode;
|
|
61
|
-
}>;
|
|
62
|
-
refs: {
|
|
63
|
-
[key: string]: import("react").ReactInstance;
|
|
64
|
-
};
|
|
65
|
-
shouldComponentUpdate?(nextProps: Readonly<P & WithFocusableProps>, nextState: Readonly<WithFocusableState>, nextContext: any): boolean;
|
|
66
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
67
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P & WithFocusableProps>, prevState: Readonly<WithFocusableState>): any;
|
|
68
|
-
componentWillMount?(): void;
|
|
69
|
-
UNSAFE_componentWillMount?(): void;
|
|
70
|
-
componentWillReceiveProps?(nextProps: Readonly<P & WithFocusableProps>, nextContext: any): void;
|
|
71
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P & WithFocusableProps>, nextContext: any): void;
|
|
72
|
-
componentWillUpdate?(nextProps: Readonly<P & WithFocusableProps>, nextState: Readonly<WithFocusableState>, nextContext: any): void;
|
|
73
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<P & WithFocusableProps>, nextState: Readonly<WithFocusableState>, nextContext: any): void;
|
|
74
|
-
};
|
|
75
|
-
new (props: P & WithFocusableProps, context: any): {
|
|
76
|
-
state: WithFocusableState;
|
|
77
|
-
navigation: import("./spatialNavigation").default;
|
|
78
|
-
getChildContext(): {
|
|
79
|
-
parentFocusKey: string;
|
|
80
|
-
};
|
|
81
|
-
setFocus: (focusKey: string) => void;
|
|
82
|
-
navigateByDirection: (direction: Direction, details?: Record<string, any>) => void;
|
|
83
|
-
stealFocus: () => void;
|
|
84
|
-
onUpdateFocus: (focused: boolean) => void;
|
|
85
|
-
onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
|
|
86
|
-
onEnterPressHandler: (details: Details) => void;
|
|
87
|
-
onEnterReleaseHandler: () => void;
|
|
88
|
-
onBackPressHandler: (details: Details) => void;
|
|
89
|
-
onArrowPressHandler: (direction: Direction, details: Details) => boolean | void;
|
|
90
|
-
onBecameFocusedHandler: (layout: Layout, details: Details) => void;
|
|
91
|
-
onBecameBlurredHandler: (layout: Layout, details: Details) => void;
|
|
92
|
-
componentDidMount(): void;
|
|
93
|
-
componentDidUpdate(): void;
|
|
94
|
-
componentWillUnmount(): void;
|
|
95
|
-
render(): import("react").ReactElement<P & WithFocusableProps, string | import("react").JSXElementConstructor<any>>;
|
|
60
|
+
}> & Readonly<P & WithFocusableProps>;
|
|
96
61
|
context: any;
|
|
97
|
-
setState<K extends keyof WithFocusableState>(state: WithFocusableState | ((prevState: Readonly<WithFocusableState>, props: Readonly<P & WithFocusableProps>) => WithFocusableState | Pick<WithFocusableState, K> | null) | Pick<WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
|
|
98
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
99
|
-
readonly props: Readonly<P & WithFocusableProps> & Readonly<{
|
|
100
|
-
children?: import("react").ReactNode;
|
|
101
|
-
}>;
|
|
102
62
|
refs: {
|
|
103
63
|
[key: string]: import("react").ReactInstance;
|
|
104
64
|
};
|
|
105
|
-
shouldComponentUpdate?(nextProps: Readonly<P & WithFocusableProps>, nextState: Readonly<WithFocusableState>, nextContext: any): boolean;
|
|
106
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
107
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P & WithFocusableProps>, prevState: Readonly<WithFocusableState>): any;
|
|
108
65
|
componentWillMount?(): void;
|
|
109
|
-
UNSAFE_componentWillMount?(): void;
|
|
110
66
|
componentWillReceiveProps?(nextProps: Readonly<P & WithFocusableProps>, nextContext: any): void;
|
|
111
|
-
|
|
67
|
+
shouldComponentUpdate?(nextProps: Readonly<P & WithFocusableProps>, nextState: Readonly<WithFocusableState>, nextContext: any): boolean;
|
|
112
68
|
componentWillUpdate?(nextProps: Readonly<P & WithFocusableProps>, nextState: Readonly<WithFocusableState>, nextContext: any): void;
|
|
113
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<P & WithFocusableProps>, nextState: Readonly<WithFocusableState>, nextContext: any): void;
|
|
114
69
|
};
|
|
115
70
|
contextTypes: {
|
|
116
71
|
parentFocusKey: PropTypes.Requireable<string>;
|
|
@@ -118,6 +73,5 @@ declare const withFocusable: <P extends object>({ forgetLastFocusedChild: config
|
|
|
118
73
|
childContextTypes: {
|
|
119
74
|
parentFocusKey: PropTypes.Requireable<string>;
|
|
120
75
|
};
|
|
121
|
-
contextType?: import("react").Context<any> | undefined;
|
|
122
76
|
};
|
|
123
77
|
export default withFocusable;
|
|
@@ -87,6 +87,18 @@ export default interface IMaestroEvent {
|
|
|
87
87
|
* https://developers.maestro.io/sdk/web/maestro-event-interface/state/getPlayerTimeCode
|
|
88
88
|
*/
|
|
89
89
|
getPlayerTimeCode(): number | null;
|
|
90
|
+
/**
|
|
91
|
+
* @description Sets data on panel view models. Interface to pass any data to any panel.
|
|
92
|
+
* @param {Record<string, any>} panelData - Object with panel names as keys and their data as values
|
|
93
|
+
* @example
|
|
94
|
+
* setPanelData({
|
|
95
|
+
* [panelType]: {
|
|
96
|
+
* overrideUrl: 'https://...',
|
|
97
|
+
* customProperty: 'value'
|
|
98
|
+
* },
|
|
99
|
+
* })
|
|
100
|
+
*/
|
|
101
|
+
setPanelData(panelData: Record<string, any>): void;
|
|
90
102
|
simulateUseCase<T = any>(useCase: TestUseCase, panelType: MaestroPanelType, testData?: T): void;
|
|
91
103
|
/**
|
|
92
104
|
* @description Sets the active panel in the Maestro SDK, if the panel is available and not hidden.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
2
|
import './BetsView.styles.css';
|
|
3
3
|
import BetsViewModel, { BetItem, BetsErrorState } from '../view-model/BetsViewModel';
|
|
4
4
|
import { Direction } from '@/external/spatial-navigation/utils';
|
|
@@ -20,9 +20,9 @@ declare class BetsView extends Component<{}, BetsViewState> {
|
|
|
20
20
|
get viewModel(): BetsViewModel;
|
|
21
21
|
componentDidMount(): void;
|
|
22
22
|
componentWillUnmount(): void;
|
|
23
|
-
renderBetItem: (item: BetItem) => JSX.Element | null;
|
|
23
|
+
renderBetItem: (item: BetItem) => React.JSX.Element | null;
|
|
24
24
|
clearTabLoadFailure: () => void;
|
|
25
25
|
onArrowPress: (d: Direction) => void;
|
|
26
|
-
render(): JSX.Element;
|
|
26
|
+
render(): React.JSX.Element;
|
|
27
27
|
}
|
|
28
28
|
export default BetsView;
|
|
@@ -9,7 +9,7 @@ type HotPropsViewProps = {
|
|
|
9
9
|
hasFocusedChild?: boolean;
|
|
10
10
|
};
|
|
11
11
|
declare const _default: {
|
|
12
|
-
new (props
|
|
12
|
+
new (props?: (HotPropsViewProps & WithFocusableProps) | undefined, context?: any): {
|
|
13
13
|
state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
14
14
|
navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
|
|
15
15
|
getChildContext(): {
|
|
@@ -29,65 +29,20 @@ declare const _default: {
|
|
|
29
29
|
componentDidMount(): void;
|
|
30
30
|
componentDidUpdate(): void;
|
|
31
31
|
componentWillUnmount(): void;
|
|
32
|
-
render(): React.ReactElement<HotPropsViewProps & WithFocusableProps
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
readonly props: Readonly<HotPropsViewProps & WithFocusableProps> & Readonly<{
|
|
32
|
+
render(): React.ReactElement<HotPropsViewProps & WithFocusableProps>;
|
|
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: HotPropsViewProps & 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;
|
|
34
|
+
forceUpdate(callBack?: (() => any) | undefined): void;
|
|
35
|
+
props: Readonly<{
|
|
37
36
|
children?: React.ReactNode;
|
|
38
|
-
}>;
|
|
39
|
-
refs: {
|
|
40
|
-
[key: string]: React.ReactInstance;
|
|
41
|
-
};
|
|
42
|
-
shouldComponentUpdate?(nextProps: Readonly<HotPropsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
43
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
44
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<HotPropsViewProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
45
|
-
componentWillMount?(): void;
|
|
46
|
-
UNSAFE_componentWillMount?(): void;
|
|
47
|
-
componentWillReceiveProps?(nextProps: Readonly<HotPropsViewProps & WithFocusableProps>, nextContext: any): void;
|
|
48
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<HotPropsViewProps & WithFocusableProps>, nextContext: any): void;
|
|
49
|
-
componentWillUpdate?(nextProps: Readonly<HotPropsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
50
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<HotPropsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
51
|
-
};
|
|
52
|
-
new (props: HotPropsViewProps & WithFocusableProps, context: any): {
|
|
53
|
-
state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
54
|
-
navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
|
|
55
|
-
getChildContext(): {
|
|
56
|
-
parentFocusKey: string;
|
|
57
|
-
};
|
|
58
|
-
setFocus: (focusKey: string) => void;
|
|
59
|
-
navigateByDirection: (direction: Direction, details?: Record<string, any>) => void;
|
|
60
|
-
stealFocus: () => void;
|
|
61
|
-
onUpdateFocus: (focused: boolean) => void;
|
|
62
|
-
onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
|
|
63
|
-
onEnterPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
64
|
-
onEnterReleaseHandler: () => void;
|
|
65
|
-
onBackPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
66
|
-
onArrowPressHandler: (direction: Direction, details: import("@/external/spatial-navigation/utils").Details) => boolean | void;
|
|
67
|
-
onBecameFocusedHandler: (layout: Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
68
|
-
onBecameBlurredHandler: (layout: Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
69
|
-
componentDidMount(): void;
|
|
70
|
-
componentDidUpdate(): void;
|
|
71
|
-
componentWillUnmount(): void;
|
|
72
|
-
render(): React.ReactElement<HotPropsViewProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
37
|
+
}> & Readonly<HotPropsViewProps & WithFocusableProps>;
|
|
73
38
|
context: any;
|
|
74
|
-
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<HotPropsViewProps & 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;
|
|
75
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
76
|
-
readonly props: Readonly<HotPropsViewProps & WithFocusableProps> & Readonly<{
|
|
77
|
-
children?: React.ReactNode;
|
|
78
|
-
}>;
|
|
79
39
|
refs: {
|
|
80
40
|
[key: string]: React.ReactInstance;
|
|
81
41
|
};
|
|
82
|
-
shouldComponentUpdate?(nextProps: Readonly<HotPropsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
83
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
84
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<HotPropsViewProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
85
42
|
componentWillMount?(): void;
|
|
86
|
-
UNSAFE_componentWillMount?(): void;
|
|
87
43
|
componentWillReceiveProps?(nextProps: Readonly<HotPropsViewProps & WithFocusableProps>, nextContext: any): void;
|
|
88
|
-
|
|
44
|
+
shouldComponentUpdate?(nextProps: Readonly<HotPropsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
89
45
|
componentWillUpdate?(nextProps: Readonly<HotPropsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
90
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<HotPropsViewProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
91
46
|
};
|
|
92
47
|
contextTypes: {
|
|
93
48
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
@@ -95,6 +50,5 @@ declare const _default: {
|
|
|
95
50
|
childContextTypes: {
|
|
96
51
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
97
52
|
};
|
|
98
|
-
contextType?: React.Context<any> | undefined;
|
|
99
53
|
};
|
|
100
54
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="prop-types" />
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import './SixPackView.style.css';
|
|
4
3
|
import { WithFocusableProps } from '@/external/spatial-navigation';
|
|
@@ -9,15 +8,15 @@ type Props = WithFocusableProps & {
|
|
|
9
8
|
};
|
|
10
9
|
export default class FocusableSixPackViewWrapper extends React.Component<Props> {
|
|
11
10
|
static contextTypes: {
|
|
12
|
-
refsMap:
|
|
13
|
-
setRef:
|
|
14
|
-
scrollToFocusedElement:
|
|
11
|
+
refsMap: React.Requireable<any>;
|
|
12
|
+
setRef: React.Requireable<any>;
|
|
13
|
+
scrollToFocusedElement: React.Requireable<any>;
|
|
15
14
|
};
|
|
16
15
|
context: import("@/components/core/ScrollableContainer/ScrollableContainer").ScrollableContainerContextType;
|
|
17
16
|
onBecameFocused: (layout: Layout) => void;
|
|
18
17
|
onArrowPress: (d: Direction, _props: any) => void;
|
|
19
18
|
get viewModel(): import("../../view-model/BetsViewModel").BetsViewModel;
|
|
20
19
|
onEnterPress: () => void;
|
|
21
|
-
render(): JSX.Element;
|
|
20
|
+
render(): React.JSX.Element;
|
|
22
21
|
}
|
|
23
22
|
export {};
|