@maestro_io/maestro-web-sdk 4.0.0-beta.1 → 4.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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/KeyPlayCardView.js +8 -3
- 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/Teams/Teams.js +1 -17
- 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
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="prop-types" />
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { Direction, Layout } from '@/external/spatial-navigation/utils';
|
|
4
3
|
import { FantasyItem } from '../view-model/FantasyViewModel';
|
|
@@ -8,15 +7,15 @@ type Props = {
|
|
|
8
7
|
};
|
|
9
8
|
declare class FantasyItemView extends React.Component<Props> {
|
|
10
9
|
static contextTypes: {
|
|
11
|
-
refsMap:
|
|
12
|
-
setRef:
|
|
13
|
-
scrollToFocusedElement:
|
|
10
|
+
refsMap: React.Requireable<any>;
|
|
11
|
+
setRef: React.Requireable<any>;
|
|
12
|
+
scrollToFocusedElement: React.Requireable<any>;
|
|
14
13
|
};
|
|
15
14
|
context: import("@/components/core/ScrollableContainer/ScrollableContainer").ScrollableContainerContextType;
|
|
16
15
|
onBecameFocused: (layout: Layout) => void;
|
|
17
16
|
onArrowPress: (d: Direction) => void;
|
|
18
17
|
onEnterPress: () => void;
|
|
19
|
-
renderItem(): JSX.Element | null;
|
|
20
|
-
render(): JSX.Element;
|
|
18
|
+
renderItem(): React.JSX.Element | null;
|
|
19
|
+
render(): React.JSX.Element;
|
|
21
20
|
}
|
|
22
21
|
export default FantasyItemView;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
2
|
import './FantasyView.styles.css';
|
|
3
3
|
import { Direction } from '@/external/spatial-navigation/utils';
|
|
4
4
|
import FantasyViewModel, { FantasyErrorState, FantasyItem } from '../view-model/FantasyViewModel';
|
|
@@ -21,7 +21,7 @@ declare class FantasyView extends Component<{}, State> {
|
|
|
21
21
|
clearTabLoadFailure: () => void;
|
|
22
22
|
onArrowPress: (d: Direction) => void;
|
|
23
23
|
onEnterPress: (item: FantasyItem) => void;
|
|
24
|
-
renderItems: () => JSX.Element | JSX.Element[] | null;
|
|
25
|
-
render(): JSX.Element;
|
|
24
|
+
renderItems: () => React.JSX.Element | React.JSX.Element[] | null;
|
|
25
|
+
render(): React.JSX.Element;
|
|
26
26
|
}
|
|
27
27
|
export default FantasyView;
|
|
@@ -7,7 +7,7 @@ type Props = {
|
|
|
7
7
|
item: InactiveLeague;
|
|
8
8
|
};
|
|
9
9
|
declare const _default: {
|
|
10
|
-
new (props
|
|
10
|
+
new (props?: (Props & WithFocusableProps) | undefined, context?: any): {
|
|
11
11
|
state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
12
12
|
navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
|
|
13
13
|
getChildContext(): {
|
|
@@ -27,65 +27,20 @@ declare const _default: {
|
|
|
27
27
|
componentDidMount(): void;
|
|
28
28
|
componentDidUpdate(): void;
|
|
29
29
|
componentWillUnmount(): void;
|
|
30
|
-
render(): React.ReactElement<Props & WithFocusableProps
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
|
|
30
|
+
render(): React.ReactElement<Props & WithFocusableProps>;
|
|
31
|
+
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;
|
|
32
|
+
forceUpdate(callBack?: (() => any) | undefined): void;
|
|
33
|
+
props: Readonly<{
|
|
35
34
|
children?: React.ReactNode;
|
|
36
|
-
}>;
|
|
37
|
-
refs: {
|
|
38
|
-
[key: string]: React.ReactInstance;
|
|
39
|
-
};
|
|
40
|
-
shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
41
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
42
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
43
|
-
componentWillMount?(): void;
|
|
44
|
-
UNSAFE_componentWillMount?(): void;
|
|
45
|
-
componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
46
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
47
|
-
componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
48
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
49
|
-
};
|
|
50
|
-
new (props: Props & WithFocusableProps, context: any): {
|
|
51
|
-
state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
52
|
-
navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
|
|
53
|
-
getChildContext(): {
|
|
54
|
-
parentFocusKey: string;
|
|
55
|
-
};
|
|
56
|
-
setFocus: (focusKey: string) => void;
|
|
57
|
-
navigateByDirection: (direction: import("../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
|
|
58
|
-
stealFocus: () => void;
|
|
59
|
-
onUpdateFocus: (focused: boolean) => void;
|
|
60
|
-
onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
|
|
61
|
-
onEnterPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
|
|
62
|
-
onEnterReleaseHandler: () => void;
|
|
63
|
-
onBackPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
|
|
64
|
-
onArrowPressHandler: (direction: import("../../../../external/spatial-navigation/utils").Direction, details: import("../../../../external/spatial-navigation/utils").Details) => boolean | void;
|
|
65
|
-
onBecameFocusedHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
|
|
66
|
-
onBecameBlurredHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
|
|
67
|
-
componentDidMount(): void;
|
|
68
|
-
componentDidUpdate(): void;
|
|
69
|
-
componentWillUnmount(): void;
|
|
70
|
-
render(): React.ReactElement<Props & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
35
|
+
}> & Readonly<Props & WithFocusableProps>;
|
|
71
36
|
context: any;
|
|
72
|
-
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;
|
|
73
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
74
|
-
readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
|
|
75
|
-
children?: React.ReactNode;
|
|
76
|
-
}>;
|
|
77
37
|
refs: {
|
|
78
38
|
[key: string]: React.ReactInstance;
|
|
79
39
|
};
|
|
80
|
-
shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
81
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
82
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
83
40
|
componentWillMount?(): void;
|
|
84
|
-
UNSAFE_componentWillMount?(): void;
|
|
85
41
|
componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
86
|
-
|
|
42
|
+
shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
87
43
|
componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
88
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
89
44
|
};
|
|
90
45
|
contextTypes: {
|
|
91
46
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
@@ -93,6 +48,5 @@ declare const _default: {
|
|
|
93
48
|
childContextTypes: {
|
|
94
49
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
95
50
|
};
|
|
96
|
-
contextType?: React.Context<any> | undefined;
|
|
97
51
|
};
|
|
98
52
|
export default _default;
|
|
@@ -3,7 +3,7 @@ import { WithFocusableProps } from '@/external/spatial-navigation';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import './LoginView.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;
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import './DoubleAthleteCard.styles.css';
|
|
5
5
|
import { MatchupPairRoster } from '@/modules/fantasy/view-model/FantasyViewModel';
|
|
6
6
|
declare const _default: {
|
|
7
|
-
new (props
|
|
7
|
+
new (props?: (MatchupPairRoster & WithFocusableProps) | undefined, context?: any): {
|
|
8
8
|
state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
9
9
|
navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
|
|
10
10
|
getChildContext(): {
|
|
@@ -24,65 +24,20 @@ declare const _default: {
|
|
|
24
24
|
componentDidMount(): void;
|
|
25
25
|
componentDidUpdate(): void;
|
|
26
26
|
componentWillUnmount(): void;
|
|
27
|
-
render(): React.ReactElement<MatchupPairRoster & WithFocusableProps
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
readonly props: Readonly<MatchupPairRoster & WithFocusableProps> & Readonly<{
|
|
27
|
+
render(): React.ReactElement<MatchupPairRoster & WithFocusableProps>;
|
|
28
|
+
setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: MatchupPairRoster & 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;
|
|
29
|
+
forceUpdate(callBack?: (() => any) | undefined): void;
|
|
30
|
+
props: Readonly<{
|
|
32
31
|
children?: React.ReactNode;
|
|
33
|
-
}>;
|
|
34
|
-
refs: {
|
|
35
|
-
[key: string]: React.ReactInstance;
|
|
36
|
-
};
|
|
37
|
-
shouldComponentUpdate?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
38
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
39
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<MatchupPairRoster & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
40
|
-
componentWillMount?(): void;
|
|
41
|
-
UNSAFE_componentWillMount?(): void;
|
|
42
|
-
componentWillReceiveProps?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextContext: any): void;
|
|
43
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextContext: any): void;
|
|
44
|
-
componentWillUpdate?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
45
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
46
|
-
};
|
|
47
|
-
new (props: MatchupPairRoster & WithFocusableProps, context: any): {
|
|
48
|
-
state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
49
|
-
navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
|
|
50
|
-
getChildContext(): {
|
|
51
|
-
parentFocusKey: string;
|
|
52
|
-
};
|
|
53
|
-
setFocus: (focusKey: string) => void;
|
|
54
|
-
navigateByDirection: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
|
|
55
|
-
stealFocus: () => void;
|
|
56
|
-
onUpdateFocus: (focused: boolean) => void;
|
|
57
|
-
onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
|
|
58
|
-
onEnterPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
|
|
59
|
-
onEnterReleaseHandler: () => void;
|
|
60
|
-
onBackPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
|
|
61
|
-
onArrowPressHandler: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details: import("../../../../../external/spatial-navigation/utils").Details) => boolean | void;
|
|
62
|
-
onBecameFocusedHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
|
|
63
|
-
onBecameBlurredHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
|
|
64
|
-
componentDidMount(): void;
|
|
65
|
-
componentDidUpdate(): void;
|
|
66
|
-
componentWillUnmount(): void;
|
|
67
|
-
render(): React.ReactElement<MatchupPairRoster & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
32
|
+
}> & Readonly<MatchupPairRoster & WithFocusableProps>;
|
|
68
33
|
context: any;
|
|
69
|
-
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<MatchupPairRoster & 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;
|
|
70
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
71
|
-
readonly props: Readonly<MatchupPairRoster & WithFocusableProps> & Readonly<{
|
|
72
|
-
children?: React.ReactNode;
|
|
73
|
-
}>;
|
|
74
34
|
refs: {
|
|
75
35
|
[key: string]: React.ReactInstance;
|
|
76
36
|
};
|
|
77
|
-
shouldComponentUpdate?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
78
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
79
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<MatchupPairRoster & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
80
37
|
componentWillMount?(): void;
|
|
81
|
-
UNSAFE_componentWillMount?(): void;
|
|
82
38
|
componentWillReceiveProps?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextContext: any): void;
|
|
83
|
-
|
|
39
|
+
shouldComponentUpdate?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
84
40
|
componentWillUpdate?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
85
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
86
41
|
};
|
|
87
42
|
contextTypes: {
|
|
88
43
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
@@ -90,6 +45,5 @@ declare const _default: {
|
|
|
90
45
|
childContextTypes: {
|
|
91
46
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
92
47
|
};
|
|
93
|
-
contextType?: React.Context<any> | undefined;
|
|
94
48
|
};
|
|
95
49
|
export default _default;
|
|
@@ -9,7 +9,7 @@ type Props = {
|
|
|
9
9
|
onEnterPress: () => void;
|
|
10
10
|
};
|
|
11
11
|
declare const _default: {
|
|
12
|
-
new (props
|
|
12
|
+
new (props?: (Props & 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<Props & WithFocusableProps
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
|
|
32
|
+
render(): React.ReactElement<Props & 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: 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;
|
|
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<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
43
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
44
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
45
|
-
componentWillMount?(): void;
|
|
46
|
-
UNSAFE_componentWillMount?(): void;
|
|
47
|
-
componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
48
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
49
|
-
componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
50
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
51
|
-
};
|
|
52
|
-
new (props: Props & 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: import("@/external/spatial-navigation/utils").Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
68
|
-
onBecameBlurredHandler: (layout: import("@/external/spatial-navigation/utils").Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
69
|
-
componentDidMount(): void;
|
|
70
|
-
componentDidUpdate(): void;
|
|
71
|
-
componentWillUnmount(): void;
|
|
72
|
-
render(): React.ReactElement<Props & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
37
|
+
}> & Readonly<Props & 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<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;
|
|
75
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
76
|
-
readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
|
|
77
|
-
children?: React.ReactNode;
|
|
78
|
-
}>;
|
|
79
39
|
refs: {
|
|
80
40
|
[key: string]: React.ReactInstance;
|
|
81
41
|
};
|
|
82
|
-
shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
83
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
84
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
85
42
|
componentWillMount?(): void;
|
|
86
|
-
UNSAFE_componentWillMount?(): void;
|
|
87
43
|
componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
88
|
-
|
|
44
|
+
shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
89
45
|
componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
90
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & 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;
|
|
@@ -9,7 +9,7 @@ type Props = {
|
|
|
9
9
|
onEnterPress: () => void;
|
|
10
10
|
};
|
|
11
11
|
declare const _default: {
|
|
12
|
-
new (props
|
|
12
|
+
new (props?: (Props & 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<Props & WithFocusableProps
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
|
|
32
|
+
render(): React.ReactElement<Props & 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: 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;
|
|
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<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
43
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
44
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
45
|
-
componentWillMount?(): void;
|
|
46
|
-
UNSAFE_componentWillMount?(): void;
|
|
47
|
-
componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
48
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
49
|
-
componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
50
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
51
|
-
};
|
|
52
|
-
new (props: Props & 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: import("@/external/spatial-navigation/utils").Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
68
|
-
onBecameBlurredHandler: (layout: import("@/external/spatial-navigation/utils").Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
69
|
-
componentDidMount(): void;
|
|
70
|
-
componentDidUpdate(): void;
|
|
71
|
-
componentWillUnmount(): void;
|
|
72
|
-
render(): React.ReactElement<Props & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
37
|
+
}> & Readonly<Props & 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<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;
|
|
75
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
76
|
-
readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
|
|
77
|
-
children?: React.ReactNode;
|
|
78
|
-
}>;
|
|
79
39
|
refs: {
|
|
80
40
|
[key: string]: React.ReactInstance;
|
|
81
41
|
};
|
|
82
|
-
shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
83
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
84
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
85
42
|
componentWillMount?(): void;
|
|
86
|
-
UNSAFE_componentWillMount?(): void;
|
|
87
43
|
componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
88
|
-
|
|
44
|
+
shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
89
45
|
componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
90
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & 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;
|