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