@maestro_io/maestro-web-sdk 3.1.3 → 3.3.0
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 +5 -5
- package/dist/maestro-web-sdk.esm.js.map +1 -1
- package/dist/maestro-web-sdk.umd.js +5 -5
- package/dist/maestro-web-sdk.umd.js.map +1 -1
- package/dist/src/components/atoms/SvgIcon/FantasyIcon.d.ts +7 -0
- package/dist/src/components/atoms/SvgIcon/Icon.d.ts +4 -0
- package/dist/src/components/atoms/SvgIcon/ShopIcon.d.ts +5 -0
- package/dist/src/components/molecules/HeadshotImage/HeadshotImage.d.ts +16 -0
- package/dist/src/components/molecules/HeadshotImage/index.d.ts +2 -0
- package/dist/src/development/MaestroEventDelegate.d.ts +2 -1
- package/dist/src/helpers/strings.d.ts +1 -0
- package/dist/src/index.d.ts +2 -2
- package/dist/src/interfaces/IMaestroEvent.d.ts +4 -0
- package/dist/src/interfaces/IMaestroEventDelegate.d.ts +15 -0
- package/dist/src/interfaces/IUserSettings.d.ts +8 -0
- package/dist/src/models/IPanel.d.ts +2 -6
- package/dist/src/modules/bets/view-model/BetsViewModel.d.ts +0 -5
- package/dist/src/modules/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.d.ts +28 -0
- package/dist/src/modules/fantasy/components/ExpandedAthleteList/index.d.ts +1 -0
- package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.d.ts +56 -0
- package/dist/src/modules/fantasy/components/LeagueCard/index.d.ts +2 -0
- package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +53 -0
- package/dist/src/modules/fantasy/components/TopPlayerCard/index.d.ts +2 -0
- package/dist/src/modules/fantasy/mocks.d.ts +7620 -0
- package/dist/src/modules/fantasy/types.d.ts +176 -0
- package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.d.ts +21 -0
- package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/FantasyItemView.d.ts +21 -0
- package/dist/src/modules/fantasy/view/FantasyView.d.ts +27 -0
- package/dist/src/modules/fantasy/view/InactiveLeague/DraftDateCountdown.d.ts +23 -0
- package/dist/src/modules/fantasy/view/InactiveLeague/InactiveLeague.d.ts +52 -0
- package/dist/src/modules/fantasy/view/InactiveLeague/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/LoginView/LoginView.d.ts +48 -0
- package/dist/src/modules/fantasy/view/LoginView/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts +49 -0
- package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.d.ts +14 -0
- package/dist/src/modules/fantasy/view/MatchupPair/MatchupPair.d.ts +54 -0
- package/dist/src/modules/fantasy/view/MatchupPair/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.d.ts +14 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/MatchupSingle.d.ts +54 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts +49 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/MatchupSingle/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/PromoView/PromoView.d.ts +52 -0
- package/dist/src/modules/fantasy/view/PromoView/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.FantasyPolling.d.ts +32 -0
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.LeagueManagerPolling.d.ts +32 -0
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.d.ts +148 -0
- package/dist/src/modules/shop/mocks.d.ts +22 -0
- package/dist/src/modules/shop/types.d.ts +161 -0
- package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.d.ts +10 -0
- package/dist/src/modules/shop/view/ProductDetailView/index.d.ts +2 -0
- package/dist/src/modules/shop/view/ShopView.d.ts +35 -0
- package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.d.ts +55 -0
- package/dist/src/modules/shop/view/components/BrowseCard/index.d.ts +2 -0
- package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.d.ts +56 -0
- package/dist/src/modules/shop/view/components/ProductSummaryCard/index.d.ts +2 -0
- package/dist/src/modules/shop/view/components/ShopPromoView/ShopPromoView.d.ts +9 -0
- package/dist/src/modules/shop/view/components/ShopPromoView/index.d.ts +1 -0
- package/dist/src/modules/shop/view/components/ShopSection/ShopSection.d.ts +21 -0
- package/dist/src/modules/shop/view/components/ShopSection/index.d.ts +1 -0
- package/dist/src/modules/shop/view/index.d.ts +2 -0
- package/dist/src/modules/shop/view-model/ShopViewModel.ShopPolling.d.ts +31 -0
- package/dist/src/modules/shop/view-model/ShopViewModel.d.ts +77 -0
- package/dist/src/modules/stats/view-model/StatsViewModel.d.ts +0 -5
- package/dist/src/services/AnalyticsService/AnalyticsService.d.ts +23 -3
- package/dist/src/services/FantasyService.d.ts +53 -0
- package/dist/src/services/NetworkManager/types.d.ts +2 -0
- package/dist/src/services/ShopService.d.ts +23 -0
- package/dist/src/view-models/MaestroEventViewModel.d.ts +4 -0
- package/package.json +1 -3
|
@@ -7,6 +7,8 @@ import WarningIcon from './WarningIcon';
|
|
|
7
7
|
import FlameIcon from './FlameIcon';
|
|
8
8
|
import BetsWarningIcon from './BetsWarningIcon';
|
|
9
9
|
import MobilePhoneIcon from './MobilePhoneIcon';
|
|
10
|
+
import FantasyIcon from './FantasyIcon';
|
|
11
|
+
import ShopIcon from './ShopIcon';
|
|
10
12
|
declare const iconImports: {
|
|
11
13
|
keyPlays: typeof KeyPlaysIcon;
|
|
12
14
|
play: typeof PlayIcon;
|
|
@@ -20,6 +22,8 @@ declare const iconImports: {
|
|
|
20
22
|
flame: typeof FlameIcon;
|
|
21
23
|
betsWarning: typeof BetsWarningIcon;
|
|
22
24
|
mobilePhone: typeof MobilePhoneIcon;
|
|
25
|
+
fantasy: typeof FantasyIcon;
|
|
26
|
+
shop: typeof ShopIcon;
|
|
23
27
|
};
|
|
24
28
|
export type IconsName = keyof typeof iconImports;
|
|
25
29
|
export type IconProps = {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { ImgHTMLAttributes } from 'react';
|
|
2
|
+
export declare const BASE_64_HEADSHOT_THUMBNAIL_FALLBACK = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCACQALgDAREAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dX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pWmCO6vRj5bh2Y/ZrI9eLhkdpeObeGZAyO6MGtfkDZ9aKqoqoiqiIoVEUBVVVGFVVGAqqAAAAAAMCqIHUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFADWVXVkdVdHUq6MAysrDDKynIZWBIIIIIODxQB8k/ETwuPDGuH7MpGmakr3ViAPlhw/+kWYPf7O7IU/6YSwhizbyZenoUn/XyOA3/j3/AM/5/KkPRAD/2Q==";
|
|
3
|
+
interface HeadshotImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
4
|
+
}
|
|
5
|
+
declare class HeadshotImage extends React.Component<HeadshotImageProps> {
|
|
6
|
+
private mounted;
|
|
7
|
+
state: {
|
|
8
|
+
loaded: boolean;
|
|
9
|
+
};
|
|
10
|
+
constructor(props: HeadshotImageProps);
|
|
11
|
+
componentDidMount(): void;
|
|
12
|
+
componentWillUnmount(): void;
|
|
13
|
+
onLoad: () => void;
|
|
14
|
+
render(): React.JSX.Element;
|
|
15
|
+
}
|
|
16
|
+
export default HeadshotImage;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import IMaestroEventDelegate from '../interfaces/IMaestroEventDelegate';
|
|
1
|
+
import IMaestroEventDelegate, { PanelEvent } from '../interfaces/IMaestroEventDelegate';
|
|
2
2
|
import { ActionTrackEvent, ImpressionTrackEvent } from '../services/AnalyticsService/types';
|
|
3
3
|
type Environment = 'development' | 'production';
|
|
4
4
|
/**
|
|
@@ -11,6 +11,7 @@ export default class MaestroEventDelegate implements IMaestroEventDelegate {
|
|
|
11
11
|
env: Environment;
|
|
12
12
|
loggedIn: boolean;
|
|
13
13
|
});
|
|
14
|
+
onPanelEvent(event: PanelEvent): void;
|
|
14
15
|
toggleLogin(): void;
|
|
15
16
|
trackImpression(impression: ImpressionTrackEvent): void;
|
|
16
17
|
trackAction(action: ActionTrackEvent): void;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import IMaestroEventDelegate from './interfaces/IMaestroEventDelegate';
|
|
1
|
+
import IMaestroEventDelegate, { PanelEvent } from './interfaces/IMaestroEventDelegate';
|
|
2
2
|
import IMaestroManager, { SDKConfigParams } from './interfaces/IMaestroManager';
|
|
3
3
|
import IMaestroEvent from './interfaces/IMaestroEvent';
|
|
4
4
|
import { MaestroEventViewModel } from './view-models/MaestroEventViewModel';
|
|
@@ -10,7 +10,7 @@ export { default as Overlay } from './components/molecules/Overlay/Overlay';
|
|
|
10
10
|
export { OverlayType, IMaestroOverlayEvent, IOverlaySize, IOverlayPosition, IFantasyPayload, IOverlayAnalyticsEvent, } from './types/OverlayTypes';
|
|
11
11
|
export { IWinningBet } from './models/IWinningBet';
|
|
12
12
|
export { ActionTrackEvent, ImpressionTrackEvent, Metadata, PanelClickAction, PanelViewAction, } from './services/AnalyticsService/types';
|
|
13
|
-
export { IMaestroEventDelegate, IMaestroEvent, IMaestroKeyPlaysResponse, MaestroPanelType, };
|
|
13
|
+
export { PanelEvent, IMaestroEventDelegate, IMaestroEvent, IMaestroKeyPlaysResponse, MaestroPanelType, };
|
|
14
14
|
export { IUserSettings, DEFAULT_USER_SETTINGS, } from './interfaces/IUserSettings';
|
|
15
15
|
/**
|
|
16
16
|
* Main SDK class that serves as the entry point for the Maestro TV SDK
|
|
@@ -105,6 +105,10 @@ declare const TEST_USE_CASES: {
|
|
|
105
105
|
readonly showFootballInGameStatsMockData: "showFootballInGameStatsMockData";
|
|
106
106
|
readonly showHockeyPreGameStatsMockData: "showHockeyPreGameStatsMockData";
|
|
107
107
|
readonly showHockeyInGameStatsMockData: "showHockeyInGameStatsMockData";
|
|
108
|
+
readonly shopTabLoadFailure: "shopTabLoadFailure";
|
|
109
|
+
readonly shopEmptyState: "shopEmptyState";
|
|
110
|
+
readonly shopMockData: "shopMockData";
|
|
111
|
+
readonly shopLiveData: "shopLiveData";
|
|
108
112
|
};
|
|
109
113
|
export type TestUseCase = typeof TEST_USE_CASES[keyof typeof TEST_USE_CASES];
|
|
110
114
|
export {};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { ActionTrackEvent, ImpressionTrackEvent } from '@/services/AnalyticsService/types';
|
|
2
|
+
export type RequestLoginPanelEvent = {
|
|
3
|
+
type: 'fantasy:request:login';
|
|
4
|
+
payload: {
|
|
5
|
+
/**
|
|
6
|
+
* @description Callback to be called by the client app once the login process is completed, so the SDK can refresh its state accordingly.
|
|
7
|
+
*/
|
|
8
|
+
onLoginSuccess: () => void;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export type PanelEvent = RequestLoginPanelEvent;
|
|
2
12
|
/**
|
|
3
13
|
* @description Interface for the client app to implement in order to handle Maestro TV SDK events.
|
|
4
14
|
*/
|
|
@@ -56,4 +66,9 @@ export default interface IMaestroEventDelegate {
|
|
|
56
66
|
* https://developers.maestro.io/sdk/web/event-delegate/trackImpression
|
|
57
67
|
*/
|
|
58
68
|
trackImpression(impression: ImpressionTrackEvent): void;
|
|
69
|
+
/**
|
|
70
|
+
* @description Notify the client app of a panel event within the SDK that may require handling by the client app. (i.e. request login)
|
|
71
|
+
* https://developers.maestro.io/sdk/web/event-delegate/onPanelEvent
|
|
72
|
+
*/
|
|
73
|
+
onPanelEvent(event: PanelEvent): void;
|
|
59
74
|
}
|
|
@@ -18,6 +18,14 @@ export interface IUserSettings {
|
|
|
18
18
|
/** Hide the entire key plays panel from panel selection */
|
|
19
19
|
hidePanel?: boolean;
|
|
20
20
|
};
|
|
21
|
+
fantasy?: {
|
|
22
|
+
/** Hide the entire fantasy panel from panel selection */
|
|
23
|
+
hidePanel?: boolean;
|
|
24
|
+
};
|
|
25
|
+
shop?: {
|
|
26
|
+
/** Hide the entire shop panel from panel selection */
|
|
27
|
+
hidePanel?: boolean;
|
|
28
|
+
};
|
|
21
29
|
};
|
|
22
30
|
}
|
|
23
31
|
/**
|
|
@@ -2,18 +2,14 @@ export declare const MaestroPanelType: {
|
|
|
2
2
|
readonly KEY_PLAYS: "keyPlays";
|
|
3
3
|
readonly STATS: "stats";
|
|
4
4
|
readonly BETS: "bets";
|
|
5
|
+
readonly FANTASY: "fantasy";
|
|
6
|
+
readonly SHOP: "shop";
|
|
5
7
|
};
|
|
6
8
|
export type MaestroPanelType = typeof MaestroPanelType[keyof typeof MaestroPanelType];
|
|
7
9
|
export interface PanelTypeInfo {
|
|
8
10
|
id: MaestroPanelType;
|
|
9
11
|
name: string;
|
|
10
12
|
imageNamePrefix: string;
|
|
11
|
-
usesSectionHeaders: boolean;
|
|
12
13
|
iconName: string;
|
|
13
14
|
}
|
|
14
15
|
export declare const PANEL_TYPE_INFO: Record<MaestroPanelType, PanelTypeInfo>;
|
|
15
|
-
export declare const getPanelName: (panelType: MaestroPanelType) => string;
|
|
16
|
-
export declare const getImageNamePrefix: (panelType: MaestroPanelType) => string;
|
|
17
|
-
export declare const usesSectionHeaders: (panelType: MaestroPanelType) => boolean;
|
|
18
|
-
export declare const getIconName: (panelType: MaestroPanelType) => string;
|
|
19
|
-
export declare const getAllPanelTypes: () => MaestroPanelType[];
|
|
@@ -216,9 +216,4 @@ export declare class BetsViewModel extends ViewModel {
|
|
|
216
216
|
private updateHideWagersFromSettings;
|
|
217
217
|
private refreshBetItemsWithNewSettings;
|
|
218
218
|
}
|
|
219
|
-
declare global {
|
|
220
|
-
interface String {
|
|
221
|
-
hashCode(): number;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
219
|
export default BetsViewModel;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Direction } from '@/external/spatial-navigation/utils';
|
|
3
|
+
import { TopPlayer } from '../../view-model/FantasyViewModel';
|
|
4
|
+
type Props<T> = {
|
|
5
|
+
items: T[];
|
|
6
|
+
topPlayers: TopPlayer[];
|
|
7
|
+
focusKey: string;
|
|
8
|
+
className: string;
|
|
9
|
+
onArrowPress: (index: number) => (d: Direction) => boolean;
|
|
10
|
+
onBackPress: () => void;
|
|
11
|
+
renderItem: (item: T, index: number, onArrowPress: (d: Direction) => boolean, onBackPress: () => void, onBecameFocused: () => void) => React.ReactNode;
|
|
12
|
+
getItemKey: (item: T, index: number) => string;
|
|
13
|
+
};
|
|
14
|
+
type State = {
|
|
15
|
+
maxHeight: string;
|
|
16
|
+
isLastItem: boolean;
|
|
17
|
+
};
|
|
18
|
+
declare class ExpandedAthletesList<T> extends React.Component<Props<T>, State> {
|
|
19
|
+
refsArray: HTMLDivElement[];
|
|
20
|
+
titleContainer: HTMLDivElement | null;
|
|
21
|
+
wrapperRef: HTMLDivElement | null;
|
|
22
|
+
state: State;
|
|
23
|
+
updateMaxHeight(focusedIndex: number): void;
|
|
24
|
+
scrollToElement(focusedIndex: number): void;
|
|
25
|
+
onBecameFocused: (index: number) => () => void;
|
|
26
|
+
render(): React.JSX.Element;
|
|
27
|
+
}
|
|
28
|
+
export default ExpandedAthletesList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ExpandedAthletesList';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/// <reference types="prop-types" />
|
|
2
|
+
import { WithFocusableProps } from '@/external/spatial-navigation';
|
|
3
|
+
import './LeagueCard.styles.css';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
type Props = {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
leagueColor: string;
|
|
8
|
+
leagueLogo: string;
|
|
9
|
+
renderTitle: () => React.ReactNode;
|
|
10
|
+
expanded: boolean;
|
|
11
|
+
shouldExpand: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: {
|
|
14
|
+
new (props?: (Props & WithFocusableProps) | undefined, context?: any): {
|
|
15
|
+
state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
16
|
+
navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
|
|
17
|
+
getChildContext(): {
|
|
18
|
+
parentFocusKey: string;
|
|
19
|
+
};
|
|
20
|
+
setFocus: (focusKey: string) => void;
|
|
21
|
+
navigateByDirection: (direction: import("../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
|
|
22
|
+
stealFocus: () => void;
|
|
23
|
+
onUpdateFocus: (focused: boolean) => void;
|
|
24
|
+
onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
|
|
25
|
+
onEnterPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
|
|
26
|
+
onEnterReleaseHandler: () => void;
|
|
27
|
+
onBackPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
|
|
28
|
+
onArrowPressHandler: (direction: import("../../../../external/spatial-navigation/utils").Direction, details: import("../../../../external/spatial-navigation/utils").Details) => boolean | void;
|
|
29
|
+
onBecameFocusedHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
|
|
30
|
+
onBecameBlurredHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
|
|
31
|
+
componentDidMount(): void;
|
|
32
|
+
componentDidUpdate(): void;
|
|
33
|
+
componentWillUnmount(): void;
|
|
34
|
+
render(): React.ReactElement<Props & WithFocusableProps>;
|
|
35
|
+
setState<K extends keyof import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Props & WithFocusableProps) => import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>) | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>, callback?: (() => any) | undefined): void;
|
|
36
|
+
forceUpdate(callBack?: (() => any) | undefined): void;
|
|
37
|
+
props: Readonly<{
|
|
38
|
+
children?: React.ReactNode;
|
|
39
|
+
}> & Readonly<Props & WithFocusableProps>;
|
|
40
|
+
context: any;
|
|
41
|
+
refs: {
|
|
42
|
+
[key: string]: React.ReactInstance;
|
|
43
|
+
};
|
|
44
|
+
componentWillMount?(): void;
|
|
45
|
+
componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
|
|
46
|
+
shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
47
|
+
componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
48
|
+
};
|
|
49
|
+
contextTypes: {
|
|
50
|
+
parentFocusKey: import("prop-types").Requireable<string>;
|
|
51
|
+
};
|
|
52
|
+
childContextTypes: {
|
|
53
|
+
parentFocusKey: import("prop-types").Requireable<string>;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/// <reference types="prop-types" />
|
|
2
|
+
import { WithFocusableProps } from '@/external/spatial-navigation';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import './TopPlayerCard.styles.css';
|
|
5
|
+
import { TopPlayer } from '../../view-model/FantasyViewModel';
|
|
6
|
+
export type TopPlayerCardProps = {
|
|
7
|
+
player: TopPlayer;
|
|
8
|
+
index: number;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: {
|
|
11
|
+
new (props?: (TopPlayerCardProps & WithFocusableProps) | undefined, context?: any): {
|
|
12
|
+
state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
|
|
13
|
+
navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
|
|
14
|
+
getChildContext(): {
|
|
15
|
+
parentFocusKey: string;
|
|
16
|
+
};
|
|
17
|
+
setFocus: (focusKey: string) => void;
|
|
18
|
+
navigateByDirection: (direction: import("../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
|
|
19
|
+
stealFocus: () => void;
|
|
20
|
+
onUpdateFocus: (focused: boolean) => void;
|
|
21
|
+
onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
|
|
22
|
+
onEnterPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
|
|
23
|
+
onEnterReleaseHandler: () => void;
|
|
24
|
+
onBackPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
|
|
25
|
+
onArrowPressHandler: (direction: import("../../../../external/spatial-navigation/utils").Direction, details: import("../../../../external/spatial-navigation/utils").Details) => boolean | void;
|
|
26
|
+
onBecameFocusedHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
|
|
27
|
+
onBecameBlurredHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
|
|
28
|
+
componentDidMount(): void;
|
|
29
|
+
componentDidUpdate(): void;
|
|
30
|
+
componentWillUnmount(): void;
|
|
31
|
+
render(): React.ReactElement<TopPlayerCardProps & WithFocusableProps>;
|
|
32
|
+
setState<K extends keyof import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: TopPlayerCardProps & WithFocusableProps) => import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>) | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>, callback?: (() => any) | undefined): void;
|
|
33
|
+
forceUpdate(callBack?: (() => any) | undefined): void;
|
|
34
|
+
props: Readonly<{
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
}> & Readonly<TopPlayerCardProps & WithFocusableProps>;
|
|
37
|
+
context: any;
|
|
38
|
+
refs: {
|
|
39
|
+
[key: string]: React.ReactInstance;
|
|
40
|
+
};
|
|
41
|
+
componentWillMount?(): void;
|
|
42
|
+
componentWillReceiveProps?(nextProps: Readonly<TopPlayerCardProps & WithFocusableProps>, nextContext: any): void;
|
|
43
|
+
shouldComponentUpdate?(nextProps: Readonly<TopPlayerCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
|
|
44
|
+
componentWillUpdate?(nextProps: Readonly<TopPlayerCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
45
|
+
};
|
|
46
|
+
contextTypes: {
|
|
47
|
+
parentFocusKey: import("prop-types").Requireable<string>;
|
|
48
|
+
};
|
|
49
|
+
childContextTypes: {
|
|
50
|
+
parentFocusKey: import("prop-types").Requireable<string>;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export default _default;
|