@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
|
@@ -11,7 +11,7 @@ export type ProductSummaryCardProps = {
|
|
|
11
11
|
onBecameFocused?: (layout: Layout) => void;
|
|
12
12
|
};
|
|
13
13
|
declare const _default: {
|
|
14
|
-
new (props
|
|
14
|
+
new (props: (ProductSummaryCardProps & WithFocusableProps) | Readonly<ProductSummaryCardProps & 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<ProductSummaryCardProps & 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: ProductSummaryCardProps & 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<ProductSummaryCardProps & WithFocusableProps>;
|
|
34
|
+
render(): React.ReactElement<ProductSummaryCardProps & 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<ProductSummaryCardProps & 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<ProductSummaryCardProps & WithFocusableProps> & Readonly<{
|
|
39
|
+
children?: React.ReactNode;
|
|
40
|
+
}>;
|
|
41
41
|
refs: {
|
|
42
42
|
[key: string]: React.ReactInstance;
|
|
43
43
|
};
|
|
44
|
+
shouldComponentUpdate?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
45
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
46
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
44
47
|
componentWillMount?(): void;
|
|
48
|
+
UNSAFE_componentWillMount?(): void;
|
|
45
49
|
componentWillReceiveProps?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextContext: any): void;
|
|
50
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextContext: any): void;
|
|
51
|
+
componentWillUpdate?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
52
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
53
|
+
};
|
|
54
|
+
new (props: ProductSummaryCardProps & 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: 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: Direction, details: import("@/external/spatial-navigation/utils").Details) => boolean | void;
|
|
69
|
+
onBecameFocusedHandler: (layout: Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
70
|
+
onBecameBlurredHandler: (layout: Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
71
|
+
componentDidMount(): void;
|
|
72
|
+
componentDidUpdate(): void;
|
|
73
|
+
componentWillUnmount(): void;
|
|
74
|
+
render(): React.ReactElement<ProductSummaryCardProps & 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<ProductSummaryCardProps & 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<ProductSummaryCardProps & WithFocusableProps> & Readonly<{
|
|
79
|
+
children?: React.ReactNode;
|
|
80
|
+
}>;
|
|
81
|
+
refs: {
|
|
82
|
+
[key: string]: React.ReactInstance;
|
|
83
|
+
};
|
|
46
84
|
shouldComponentUpdate?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
85
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
86
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
87
|
+
componentWillMount?(): void;
|
|
88
|
+
UNSAFE_componentWillMount?(): void;
|
|
89
|
+
componentWillReceiveProps?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextContext: any): void;
|
|
90
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextContext: any): void;
|
|
47
91
|
componentWillUpdate?(nextProps: Readonly<ProductSummaryCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
92
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<ProductSummaryCardProps & 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;
|
|
@@ -15,7 +15,7 @@ class ProductSummaryCard extends React.Component {
|
|
|
15
15
|
Boolean(image?.href) && (React.createElement("div", { className: "product-summary-card-image-container" },
|
|
16
16
|
React.createElement(Image, { src: image.href, alt: name || 'Product', className: "product-summary-card-image" }))),
|
|
17
17
|
React.createElement("div", { className: "product-summary-card-content", "data-has-image": !!image?.href },
|
|
18
|
-
React.createElement("div", { className: "product-summary-card-title T05_ALT
|
|
18
|
+
React.createElement("div", { className: "product-summary-card-title T05_ALT" }, name || 'Product Name'),
|
|
19
19
|
React.createElement("div", { className: "product-summary-card-price-container" }, isOnSale ? (React.createElement("div", null,
|
|
20
20
|
React.createElement("span", { className: "product-summary-card-price-original T02 TEXT_200" }, price?.displayRetail || '$0.00'),
|
|
21
21
|
React.createElement("span", { className: "product-summary-card-price-sale T02 TEXT_200" }, salePrice),
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { WithFocusableProps } from '@/external/spatial-navigation';
|
|
3
2
|
import './ShopPromoView.styles.css';
|
|
4
3
|
import { IShopDefaultItem } from '../../../types';
|
|
5
4
|
type Props = {
|
|
6
5
|
promoData: IShopDefaultItem;
|
|
7
6
|
};
|
|
8
|
-
declare const ShopPromoViewWrapper: (props: Props & WithFocusableProps) =>
|
|
7
|
+
declare const ShopPromoViewWrapper: (props: Props & WithFocusableProps) => JSX.Element;
|
|
9
8
|
export default ShopPromoViewWrapper;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="prop-types" />
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import './ShopSection.styles.css';
|
|
3
4
|
import { IShopBrowseCard, IShopProduct, IShopSection } from '../../../types';
|
|
@@ -10,13 +11,13 @@ export type ShopSectionProps = {
|
|
|
10
11
|
};
|
|
11
12
|
declare class ShopSection extends React.Component<ShopSectionProps> {
|
|
12
13
|
static contextTypes: {
|
|
13
|
-
refsMap:
|
|
14
|
-
setRef:
|
|
15
|
-
scrollToFocusedElement:
|
|
14
|
+
refsMap: import("prop-types").Requireable<(HTMLElement | null | undefined)[]>;
|
|
15
|
+
setRef: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
16
|
+
scrollToFocusedElement: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
16
17
|
};
|
|
17
18
|
context: import("@/components/core/ScrollableContainer/ScrollableContainer").ScrollableContainerContextType;
|
|
18
19
|
onBecameFocused: (layout: Layout) => void;
|
|
19
20
|
onEnterPress: (item: IShopProduct | IShopBrowseCard, section: IShopSection, focusKey: string) => () => void;
|
|
20
|
-
render():
|
|
21
|
+
render(): JSX.Element;
|
|
21
22
|
}
|
|
22
23
|
export default ShopSection;
|
|
@@ -114,7 +114,11 @@ export class ShopViewModel extends ViewModel {
|
|
|
114
114
|
*/
|
|
115
115
|
async trackPanelView() {
|
|
116
116
|
try {
|
|
117
|
-
|
|
117
|
+
const gameState = SDK.getMaestroEventViewModel().statsViewModel?.currentGameState.value ||
|
|
118
|
+
'unknown';
|
|
119
|
+
await this.analyticsService.panelView('espnShop', {
|
|
120
|
+
game_state: [gameState],
|
|
121
|
+
});
|
|
118
122
|
}
|
|
119
123
|
catch (error) {
|
|
120
124
|
captureException(error, {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
export interface TeamStatisticProps {
|
|
3
2
|
statisticName: string;
|
|
4
3
|
firstDisplayValue: string | number;
|
|
@@ -18,4 +17,4 @@ export interface TeamStatisticProps {
|
|
|
18
17
|
* Shared utility to render a team statistic with consistent structure
|
|
19
18
|
* This eliminates code duplication between Teams and TeamStatsView components
|
|
20
19
|
*/
|
|
21
|
-
export declare const renderTeamStatistic: (props: TeamStatisticProps) =>
|
|
20
|
+
export declare const renderTeamStatistic: (props: TeamStatisticProps) => JSX.Element;
|
|
@@ -16,7 +16,7 @@ declare class ActiveAthletes extends React.Component<ActiveAthletesProps, {
|
|
|
16
16
|
get cardFocusKey(): string;
|
|
17
17
|
onAthletesStatisticsBackPress: () => void;
|
|
18
18
|
onArrowPress: (d: Direction) => void;
|
|
19
|
-
renderContent():
|
|
20
|
-
render():
|
|
19
|
+
renderContent(): JSX.Element;
|
|
20
|
+
render(): JSX.Element;
|
|
21
21
|
}
|
|
22
22
|
export default ActiveAthletes;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './CollapsedAthletes.styles.css';
|
|
3
2
|
import { ActiveAthletesProps } from '../ActiveAthletes';
|
|
4
|
-
declare const CollapsedAthletes: (props: Pick<ActiveAthletesProps, 'item'>) =>
|
|
3
|
+
declare const CollapsedAthletes: (props: Pick<ActiveAthletesProps, 'item'>) => JSX.Element;
|
|
5
4
|
export default CollapsedAthletes;
|
|
@@ -17,6 +17,6 @@ declare class ExpandedAthletes extends React.Component<Props> {
|
|
|
17
17
|
updateMaxHeight(focusedIndex: number): void;
|
|
18
18
|
scrollToElement(focusedIndex: number): void;
|
|
19
19
|
onBecameFocused: (focusedIndex: number) => () => void;
|
|
20
|
-
render():
|
|
20
|
+
render(): JSX.Element;
|
|
21
21
|
}
|
|
22
22
|
export default ExpandedAthletes;
|
|
@@ -15,7 +15,7 @@ type DrivePlayCardProps = {
|
|
|
15
15
|
parentFocusKey?: string;
|
|
16
16
|
};
|
|
17
17
|
declare const _default: {
|
|
18
|
-
new (props
|
|
18
|
+
new (props: (DrivePlayCardProps & WithFocusableProps) | Readonly<DrivePlayCardProps & WithFocusableProps>): {
|
|
19
19
|
state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
20
20
|
navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
|
|
21
21
|
getChildContext(): {
|
|
@@ -35,20 +35,65 @@ declare const _default: {
|
|
|
35
35
|
componentDidMount(): void;
|
|
36
36
|
componentDidUpdate(): void;
|
|
37
37
|
componentWillUnmount(): void;
|
|
38
|
-
render(): React.ReactElement<DrivePlayCardProps & WithFocusableProps
|
|
39
|
-
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: DrivePlayCardProps & 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;
|
|
40
|
-
forceUpdate(callBack?: (() => any) | undefined): void;
|
|
41
|
-
props: Readonly<{
|
|
42
|
-
children?: React.ReactNode;
|
|
43
|
-
}> & Readonly<DrivePlayCardProps & WithFocusableProps>;
|
|
38
|
+
render(): React.ReactElement<DrivePlayCardProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
44
39
|
context: any;
|
|
40
|
+
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<DrivePlayCardProps & 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;
|
|
41
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
42
|
+
readonly props: Readonly<DrivePlayCardProps & WithFocusableProps> & Readonly<{
|
|
43
|
+
children?: React.ReactNode;
|
|
44
|
+
}>;
|
|
45
45
|
refs: {
|
|
46
46
|
[key: string]: React.ReactInstance;
|
|
47
47
|
};
|
|
48
|
+
shouldComponentUpdate?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
49
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
50
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<DrivePlayCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
48
51
|
componentWillMount?(): void;
|
|
52
|
+
UNSAFE_componentWillMount?(): void;
|
|
49
53
|
componentWillReceiveProps?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextContext: any): void;
|
|
54
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextContext: any): void;
|
|
55
|
+
componentWillUpdate?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
56
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
57
|
+
};
|
|
58
|
+
new (props: DrivePlayCardProps & WithFocusableProps, context: any): {
|
|
59
|
+
state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
60
|
+
navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
|
|
61
|
+
getChildContext(): {
|
|
62
|
+
parentFocusKey: string;
|
|
63
|
+
};
|
|
64
|
+
setFocus: (focusKey: string) => void;
|
|
65
|
+
navigateByDirection: (direction: Direction, details?: Record<string, any>) => void;
|
|
66
|
+
stealFocus: () => void;
|
|
67
|
+
onUpdateFocus: (focused: boolean) => void;
|
|
68
|
+
onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
|
|
69
|
+
onEnterPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
70
|
+
onEnterReleaseHandler: () => void;
|
|
71
|
+
onBackPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
72
|
+
onArrowPressHandler: (direction: Direction, details: import("@/external/spatial-navigation/utils").Details) => boolean | void;
|
|
73
|
+
onBecameFocusedHandler: (layout: Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
74
|
+
onBecameBlurredHandler: (layout: Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
|
|
75
|
+
componentDidMount(): void;
|
|
76
|
+
componentDidUpdate(): void;
|
|
77
|
+
componentWillUnmount(): void;
|
|
78
|
+
render(): React.ReactElement<DrivePlayCardProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
79
|
+
context: any;
|
|
80
|
+
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<DrivePlayCardProps & 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;
|
|
81
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
82
|
+
readonly props: Readonly<DrivePlayCardProps & WithFocusableProps> & Readonly<{
|
|
83
|
+
children?: React.ReactNode;
|
|
84
|
+
}>;
|
|
85
|
+
refs: {
|
|
86
|
+
[key: string]: React.ReactInstance;
|
|
87
|
+
};
|
|
50
88
|
shouldComponentUpdate?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
89
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
90
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<DrivePlayCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
91
|
+
componentWillMount?(): void;
|
|
92
|
+
UNSAFE_componentWillMount?(): void;
|
|
93
|
+
componentWillReceiveProps?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextContext: any): void;
|
|
94
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextContext: any): void;
|
|
51
95
|
componentWillUpdate?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
96
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<DrivePlayCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
52
97
|
};
|
|
53
98
|
contextTypes: {
|
|
54
99
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
@@ -56,5 +101,6 @@ declare const _default: {
|
|
|
56
101
|
childContextTypes: {
|
|
57
102
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
58
103
|
};
|
|
104
|
+
contextType?: React.Context<any> | undefined;
|
|
59
105
|
};
|
|
60
106
|
export default _default;
|
|
@@ -22,6 +22,6 @@ declare class DriveSummaryExpanded extends React.Component<Props> {
|
|
|
22
22
|
updateMaxHeight(focusedIndex: number): void;
|
|
23
23
|
scrollToElement(focusedIndex: number): void;
|
|
24
24
|
onBecameFocused: (focusedIndex: number) => () => void;
|
|
25
|
-
render():
|
|
25
|
+
render(): JSX.Element;
|
|
26
26
|
}
|
|
27
27
|
export default DriveSummaryExpanded;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import './DriveSummaryHeader.styles.css';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
type Props = {
|
|
4
3
|
team: {
|
|
5
4
|
displayName: string;
|
|
@@ -9,5 +8,5 @@ type Props = {
|
|
|
9
8
|
focused: boolean;
|
|
10
9
|
hasPlays: boolean;
|
|
11
10
|
};
|
|
12
|
-
declare const DriveSummaryHeader: (props: Props) =>
|
|
11
|
+
declare const DriveSummaryHeader: (props: Props) => JSX.Element;
|
|
13
12
|
export default DriveSummaryHeader;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './MainStat.styles.css';
|
|
3
2
|
type Props = {
|
|
4
3
|
playsQuantity: string;
|
|
@@ -7,5 +6,5 @@ type Props = {
|
|
|
7
6
|
lastPlayMarquee?: string;
|
|
8
7
|
focused: boolean;
|
|
9
8
|
};
|
|
10
|
-
declare const MainStat: (props: Props) =>
|
|
9
|
+
declare const MainStat: (props: Props) => JSX.Element;
|
|
11
10
|
export default MainStat;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="prop-types" />
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import './GameLeaders.styles.css';
|
|
3
4
|
import { GameLeadersStatsItem } from '../../view-model/StatsViewModel';
|
|
@@ -8,13 +9,13 @@ export type GameLeaderProps = {
|
|
|
8
9
|
};
|
|
9
10
|
declare class GameLeaders extends React.Component<GameLeaderProps> {
|
|
10
11
|
static contextTypes: {
|
|
11
|
-
refsMap:
|
|
12
|
-
setRef:
|
|
13
|
-
scrollToFocusedElement:
|
|
12
|
+
refsMap: import("prop-types").Requireable<(HTMLElement | null | undefined)[]>;
|
|
13
|
+
setRef: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
14
|
+
scrollToFocusedElement: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
14
15
|
};
|
|
15
16
|
context: import("@/components/core/ScrollableContainer/ScrollableContainer").ScrollableContainerContextType;
|
|
16
17
|
onBecameFocused: (layout: Layout) => void;
|
|
17
18
|
onArrowPress: (d: Direction) => void;
|
|
18
|
-
render():
|
|
19
|
+
render(): JSX.Element;
|
|
19
20
|
}
|
|
20
21
|
export default GameLeaders;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component } from 'react';
|
|
2
2
|
export interface DonutChartProps {
|
|
3
3
|
awayPercentage: number;
|
|
4
4
|
homePercentage: number;
|
|
@@ -12,6 +12,6 @@ declare class DonutChart extends Component<DonutChartProps> {
|
|
|
12
12
|
};
|
|
13
13
|
private patternId;
|
|
14
14
|
constructor(props: DonutChartProps);
|
|
15
|
-
render():
|
|
15
|
+
render(): JSX.Element;
|
|
16
16
|
}
|
|
17
17
|
export default DonutChart;
|
|
@@ -7,7 +7,7 @@ export interface MatchPredictorProps {
|
|
|
7
7
|
item: StatsMatchPredictorItem;
|
|
8
8
|
}
|
|
9
9
|
declare const _default: {
|
|
10
|
-
new (props
|
|
10
|
+
new (props: (MatchPredictorProps & WithFocusableProps) | Readonly<MatchPredictorProps & WithFocusableProps>): {
|
|
11
11
|
state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
12
12
|
navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
|
|
13
13
|
getChildContext(): {
|
|
@@ -27,20 +27,65 @@ declare const _default: {
|
|
|
27
27
|
componentDidMount(): void;
|
|
28
28
|
componentDidUpdate(): void;
|
|
29
29
|
componentWillUnmount(): void;
|
|
30
|
-
render(): React.ReactElement<MatchPredictorProps & 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: MatchPredictorProps & 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<{
|
|
34
|
-
children?: React.ReactNode;
|
|
35
|
-
}> & Readonly<MatchPredictorProps & WithFocusableProps>;
|
|
30
|
+
render(): React.ReactElement<MatchPredictorProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
36
31
|
context: any;
|
|
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: Readonly<MatchPredictorProps & 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;
|
|
33
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
34
|
+
readonly props: Readonly<MatchPredictorProps & WithFocusableProps> & Readonly<{
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
}>;
|
|
37
37
|
refs: {
|
|
38
38
|
[key: string]: React.ReactInstance;
|
|
39
39
|
};
|
|
40
|
+
shouldComponentUpdate?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
41
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
42
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<MatchPredictorProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
40
43
|
componentWillMount?(): void;
|
|
44
|
+
UNSAFE_componentWillMount?(): void;
|
|
41
45
|
componentWillReceiveProps?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextContext: any): void;
|
|
46
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextContext: any): void;
|
|
47
|
+
componentWillUpdate?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
48
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
49
|
+
};
|
|
50
|
+
new (props: MatchPredictorProps & 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<MatchPredictorProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
71
|
+
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<MatchPredictorProps & 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<MatchPredictorProps & WithFocusableProps> & Readonly<{
|
|
75
|
+
children?: React.ReactNode;
|
|
76
|
+
}>;
|
|
77
|
+
refs: {
|
|
78
|
+
[key: string]: React.ReactInstance;
|
|
79
|
+
};
|
|
42
80
|
shouldComponentUpdate?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
81
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
82
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<MatchPredictorProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
83
|
+
componentWillMount?(): void;
|
|
84
|
+
UNSAFE_componentWillMount?(): void;
|
|
85
|
+
componentWillReceiveProps?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextContext: any): void;
|
|
86
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextContext: any): void;
|
|
43
87
|
componentWillUpdate?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
88
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<MatchPredictorProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
44
89
|
};
|
|
45
90
|
contextTypes: {
|
|
46
91
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
@@ -48,5 +93,6 @@ declare const _default: {
|
|
|
48
93
|
childContextTypes: {
|
|
49
94
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
50
95
|
};
|
|
96
|
+
contextType?: React.Context<any> | undefined;
|
|
51
97
|
};
|
|
52
98
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { PenaltiesItem } from '../../view-model/StatsViewModel';
|
|
3
2
|
import { Layout } from '@/external/spatial-navigation/utils';
|
|
4
3
|
type PenaltiesProps = {
|
|
@@ -6,5 +5,5 @@ type PenaltiesProps = {
|
|
|
6
5
|
onBecameFocused: (layout: Layout) => void;
|
|
7
6
|
onEnterPress: () => void;
|
|
8
7
|
};
|
|
9
|
-
declare const Penalties: (props: PenaltiesProps) =>
|
|
8
|
+
declare const Penalties: (props: PenaltiesProps) => JSX.Element;
|
|
10
9
|
export default Penalties;
|
|
@@ -7,7 +7,7 @@ type RecentGamesProps = {
|
|
|
7
7
|
item: RecentGamesStatsItem;
|
|
8
8
|
};
|
|
9
9
|
declare const _default: {
|
|
10
|
-
new (props
|
|
10
|
+
new (props: (RecentGamesProps & WithFocusableProps) | Readonly<RecentGamesProps & WithFocusableProps>): {
|
|
11
11
|
state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
12
12
|
navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
|
|
13
13
|
getChildContext(): {
|
|
@@ -27,20 +27,65 @@ declare const _default: {
|
|
|
27
27
|
componentDidMount(): void;
|
|
28
28
|
componentDidUpdate(): void;
|
|
29
29
|
componentWillUnmount(): void;
|
|
30
|
-
render(): React.ReactElement<RecentGamesProps & 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: RecentGamesProps & 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<{
|
|
34
|
-
children?: React.ReactNode;
|
|
35
|
-
}> & Readonly<RecentGamesProps & WithFocusableProps>;
|
|
30
|
+
render(): React.ReactElement<RecentGamesProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
36
31
|
context: any;
|
|
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: Readonly<RecentGamesProps & 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;
|
|
33
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
34
|
+
readonly props: Readonly<RecentGamesProps & WithFocusableProps> & Readonly<{
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
}>;
|
|
37
37
|
refs: {
|
|
38
38
|
[key: string]: React.ReactInstance;
|
|
39
39
|
};
|
|
40
|
+
shouldComponentUpdate?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
41
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
42
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<RecentGamesProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
40
43
|
componentWillMount?(): void;
|
|
44
|
+
UNSAFE_componentWillMount?(): void;
|
|
41
45
|
componentWillReceiveProps?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextContext: any): void;
|
|
46
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextContext: any): void;
|
|
47
|
+
componentWillUpdate?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
48
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
49
|
+
};
|
|
50
|
+
new (props: RecentGamesProps & 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<RecentGamesProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
|
|
71
|
+
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<RecentGamesProps & 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<RecentGamesProps & WithFocusableProps> & Readonly<{
|
|
75
|
+
children?: React.ReactNode;
|
|
76
|
+
}>;
|
|
77
|
+
refs: {
|
|
78
|
+
[key: string]: React.ReactInstance;
|
|
79
|
+
};
|
|
42
80
|
shouldComponentUpdate?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
81
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
82
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<RecentGamesProps & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
|
|
83
|
+
componentWillMount?(): void;
|
|
84
|
+
UNSAFE_componentWillMount?(): void;
|
|
85
|
+
componentWillReceiveProps?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextContext: any): void;
|
|
86
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextContext: any): void;
|
|
43
87
|
componentWillUpdate?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
88
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<RecentGamesProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
44
89
|
};
|
|
45
90
|
contextTypes: {
|
|
46
91
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
@@ -48,5 +93,6 @@ declare const _default: {
|
|
|
48
93
|
childContextTypes: {
|
|
49
94
|
parentFocusKey: import("prop-types").Requireable<string>;
|
|
50
95
|
};
|
|
96
|
+
contextType?: React.Context<any> | undefined;
|
|
51
97
|
};
|
|
52
98
|
export default _default;
|
|
@@ -25,6 +25,6 @@ declare class ExpandedScores extends React.Component<Props> {
|
|
|
25
25
|
updateMaxHeight(sectionIndex: number, scoreFocusedIndex: number): void;
|
|
26
26
|
scrollToElement(focusedIndex: number): void;
|
|
27
27
|
onBecameFocused: (sectionIndex: number, scoreFocusedIndex: number) => () => void;
|
|
28
|
-
render():
|
|
28
|
+
render(): JSX.Element;
|
|
29
29
|
}
|
|
30
30
|
export default ExpandedScores;
|
|
@@ -51,7 +51,9 @@ class ExpandedScores extends React.Component {
|
|
|
51
51
|
ref.dataset.sectionFocused = String(i === sectionIndex);
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
|
-
this.wrapperRef.addEventListener('transitionend', handleTransitionEnd
|
|
54
|
+
this.wrapperRef.addEventListener('transitionend', handleTransitionEnd, {
|
|
55
|
+
once: true,
|
|
56
|
+
});
|
|
55
57
|
}
|
|
56
58
|
}
|
|
57
59
|
});
|