@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.
Files changed (73) hide show
  1. package/dist/maestro-web-sdk.esm.js +5 -5
  2. package/dist/maestro-web-sdk.esm.js.map +1 -1
  3. package/dist/maestro-web-sdk.umd.js +5 -5
  4. package/dist/maestro-web-sdk.umd.js.map +1 -1
  5. package/dist/src/components/atoms/SvgIcon/FantasyIcon.d.ts +7 -0
  6. package/dist/src/components/atoms/SvgIcon/Icon.d.ts +4 -0
  7. package/dist/src/components/atoms/SvgIcon/ShopIcon.d.ts +5 -0
  8. package/dist/src/components/molecules/HeadshotImage/HeadshotImage.d.ts +16 -0
  9. package/dist/src/components/molecules/HeadshotImage/index.d.ts +2 -0
  10. package/dist/src/development/MaestroEventDelegate.d.ts +2 -1
  11. package/dist/src/helpers/strings.d.ts +1 -0
  12. package/dist/src/index.d.ts +2 -2
  13. package/dist/src/interfaces/IMaestroEvent.d.ts +4 -0
  14. package/dist/src/interfaces/IMaestroEventDelegate.d.ts +15 -0
  15. package/dist/src/interfaces/IUserSettings.d.ts +8 -0
  16. package/dist/src/models/IPanel.d.ts +2 -6
  17. package/dist/src/modules/bets/view-model/BetsViewModel.d.ts +0 -5
  18. package/dist/src/modules/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.d.ts +28 -0
  19. package/dist/src/modules/fantasy/components/ExpandedAthleteList/index.d.ts +1 -0
  20. package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.d.ts +56 -0
  21. package/dist/src/modules/fantasy/components/LeagueCard/index.d.ts +2 -0
  22. package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +53 -0
  23. package/dist/src/modules/fantasy/components/TopPlayerCard/index.d.ts +2 -0
  24. package/dist/src/modules/fantasy/mocks.d.ts +7620 -0
  25. package/dist/src/modules/fantasy/types.d.ts +176 -0
  26. package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.d.ts +21 -0
  27. package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/index.d.ts +2 -0
  28. package/dist/src/modules/fantasy/view/FantasyItemView.d.ts +21 -0
  29. package/dist/src/modules/fantasy/view/FantasyView.d.ts +27 -0
  30. package/dist/src/modules/fantasy/view/InactiveLeague/DraftDateCountdown.d.ts +23 -0
  31. package/dist/src/modules/fantasy/view/InactiveLeague/InactiveLeague.d.ts +52 -0
  32. package/dist/src/modules/fantasy/view/InactiveLeague/index.d.ts +2 -0
  33. package/dist/src/modules/fantasy/view/LoginView/LoginView.d.ts +48 -0
  34. package/dist/src/modules/fantasy/view/LoginView/index.d.ts +2 -0
  35. package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts +49 -0
  36. package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/index.d.ts +2 -0
  37. package/dist/src/modules/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.d.ts +14 -0
  38. package/dist/src/modules/fantasy/view/MatchupPair/MatchupPair.d.ts +54 -0
  39. package/dist/src/modules/fantasy/view/MatchupPair/index.d.ts +2 -0
  40. package/dist/src/modules/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.d.ts +14 -0
  41. package/dist/src/modules/fantasy/view/MatchupSingle/MatchupSingle.d.ts +54 -0
  42. package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts +49 -0
  43. package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/index.d.ts +2 -0
  44. package/dist/src/modules/fantasy/view/MatchupSingle/index.d.ts +2 -0
  45. package/dist/src/modules/fantasy/view/PromoView/PromoView.d.ts +52 -0
  46. package/dist/src/modules/fantasy/view/PromoView/index.d.ts +2 -0
  47. package/dist/src/modules/fantasy/view/index.d.ts +2 -0
  48. package/dist/src/modules/fantasy/view-model/FantasyViewModel.FantasyPolling.d.ts +32 -0
  49. package/dist/src/modules/fantasy/view-model/FantasyViewModel.LeagueManagerPolling.d.ts +32 -0
  50. package/dist/src/modules/fantasy/view-model/FantasyViewModel.d.ts +148 -0
  51. package/dist/src/modules/shop/mocks.d.ts +22 -0
  52. package/dist/src/modules/shop/types.d.ts +161 -0
  53. package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.d.ts +10 -0
  54. package/dist/src/modules/shop/view/ProductDetailView/index.d.ts +2 -0
  55. package/dist/src/modules/shop/view/ShopView.d.ts +35 -0
  56. package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.d.ts +55 -0
  57. package/dist/src/modules/shop/view/components/BrowseCard/index.d.ts +2 -0
  58. package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.d.ts +56 -0
  59. package/dist/src/modules/shop/view/components/ProductSummaryCard/index.d.ts +2 -0
  60. package/dist/src/modules/shop/view/components/ShopPromoView/ShopPromoView.d.ts +9 -0
  61. package/dist/src/modules/shop/view/components/ShopPromoView/index.d.ts +1 -0
  62. package/dist/src/modules/shop/view/components/ShopSection/ShopSection.d.ts +21 -0
  63. package/dist/src/modules/shop/view/components/ShopSection/index.d.ts +1 -0
  64. package/dist/src/modules/shop/view/index.d.ts +2 -0
  65. package/dist/src/modules/shop/view-model/ShopViewModel.ShopPolling.d.ts +31 -0
  66. package/dist/src/modules/shop/view-model/ShopViewModel.d.ts +77 -0
  67. package/dist/src/modules/stats/view-model/StatsViewModel.d.ts +0 -5
  68. package/dist/src/services/AnalyticsService/AnalyticsService.d.ts +23 -3
  69. package/dist/src/services/FantasyService.d.ts +53 -0
  70. package/dist/src/services/NetworkManager/types.d.ts +2 -0
  71. package/dist/src/services/ShopService.d.ts +23 -0
  72. package/dist/src/view-models/MaestroEventViewModel.d.ts +4 -0
  73. package/package.json +1 -3
@@ -0,0 +1,176 @@
1
+ export interface IPromoResponse {
2
+ fantasy: {
3
+ promotion: {
4
+ title: string;
5
+ description: string;
6
+ background: string;
7
+ logo: string;
8
+ qrCode: string;
9
+ fallbackUrl: string;
10
+ };
11
+ };
12
+ }
13
+ export interface IFantasyResponse {
14
+ preferences?: Preference[];
15
+ fantasyData?: FantasyData;
16
+ }
17
+ export interface Preference {
18
+ id?: string;
19
+ createDate?: number;
20
+ lastUpdateDate?: number;
21
+ metaData?: {
22
+ entry?: {
23
+ entryId?: number;
24
+ entryMetadata?: {
25
+ teamName?: string;
26
+ teamAbbrev?: string;
27
+ leagueFormatTypeId?: number;
28
+ leagueSubTypeId?: number;
29
+ customizable?: boolean;
30
+ active?: boolean;
31
+ draftComplete?: boolean;
32
+ scoringTypeId?: number;
33
+ leagueTypeId?: number;
34
+ draftInProgress?: boolean;
35
+ };
36
+ firstScoringPeriodId?: number;
37
+ gameId?: number;
38
+ groups?: {
39
+ groupId?: number;
40
+ groupSize?: number;
41
+ groupName?: string;
42
+ groupManager?: boolean;
43
+ draftDate?: number | string | null;
44
+ draftType?: number;
45
+ draftStatus?: number;
46
+ leagueStatus?: number;
47
+ fantasyCastHref?: string;
48
+ href?: string;
49
+ }[];
50
+ logoType?: string;
51
+ logoUrl?: string;
52
+ restrictionType?: number;
53
+ seasonId?: number;
54
+ entryURL?: string;
55
+ scoreboardFeedURL?: string;
56
+ abbrev?: string;
57
+ name?: string;
58
+ description?: string;
59
+ logoURL?: string;
60
+ signupURL?: string;
61
+ href?: string;
62
+ };
63
+ inSeason?: boolean;
64
+ isLive?: boolean;
65
+ currentScoringPeriodId?: number;
66
+ };
67
+ contentSourceId?: number;
68
+ sortGlobal?: number;
69
+ isHidden?: boolean;
70
+ typeId?: number;
71
+ type?: {
72
+ id?: number;
73
+ name?: string;
74
+ code?: string;
75
+ isDeletable?: boolean;
76
+ isDelegated?: boolean;
77
+ maxAllowed?: number;
78
+ };
79
+ bu?: number;
80
+ }
81
+ export interface FantasyData {
82
+ totalFantasyLeagues?: number;
83
+ leaguesBySportLeague?: Record<string, number>;
84
+ totalChallengeEntries?: number;
85
+ }
86
+ export interface ILeagueManagerResponse {
87
+ gameId?: number;
88
+ id?: number;
89
+ leagueName?: string;
90
+ livePlayers?: any[];
91
+ matchups?: Matchup[];
92
+ scoringPeriodId?: number;
93
+ scoringType?: string;
94
+ seasonId?: number;
95
+ segmentId?: number;
96
+ sportColor?: string;
97
+ sportLogo?: string;
98
+ topPlayers?: Player[];
99
+ }
100
+ export interface Matchup {
101
+ away?: Team;
102
+ home?: Team;
103
+ id?: number;
104
+ name?: string;
105
+ }
106
+ export interface Team {
107
+ currentScoringPeriodPoints?: number;
108
+ id?: number;
109
+ logo?: string;
110
+ name?: string;
111
+ owners?: Owner[];
112
+ points?: number;
113
+ score?: string;
114
+ record?: string;
115
+ roster?: RosterItem[];
116
+ winProbability?: number;
117
+ projectedPoints?: string;
118
+ }
119
+ export interface Owner {
120
+ firstName?: string;
121
+ id?: string;
122
+ lastName?: string;
123
+ }
124
+ export interface RosterItem {
125
+ displayOrder?: number;
126
+ player?: Player;
127
+ slot?: string;
128
+ }
129
+ export interface Player {
130
+ abbrevName?: string;
131
+ currentlyWatching?: boolean;
132
+ firstName?: string;
133
+ fullName?: string;
134
+ headshot?: string;
135
+ id?: number;
136
+ injuryStatus?: string;
137
+ lastName?: string;
138
+ lastNewsDate?: number;
139
+ percentRostered?: number;
140
+ points?: number;
141
+ projectedPoints?: number;
142
+ positions?: string;
143
+ statLine?: string;
144
+ playerStatus?: string;
145
+ proGameStatusLines?: string[];
146
+ proTeam?: ProTeam;
147
+ }
148
+ export interface ProTeam {
149
+ alternateColor?: string;
150
+ color?: string;
151
+ darkLogo?: string;
152
+ id?: number;
153
+ live?: boolean;
154
+ triCode?: string;
155
+ }
156
+ export interface ILeagueManagerRotoResponse {
157
+ gameId?: number;
158
+ id?: number;
159
+ leagueName?: string;
160
+ name?: string;
161
+ livePlayers?: any[];
162
+ matchups?: MatchupSingleEntry[];
163
+ scoringPeriodId?: number;
164
+ scoringType?: string;
165
+ seasonId?: number;
166
+ segmentId?: number;
167
+ sportColor?: string;
168
+ sportLogo?: string;
169
+ topPlayers?: Player[];
170
+ }
171
+ export interface MatchupSingleEntry {
172
+ id?: number;
173
+ teams?: Team[];
174
+ }
175
+ export declare const isLeagueManagerRotoResponse: (response: ILeagueManagerResponse | ILeagueManagerRotoResponse) => response is ILeagueManagerRotoResponse;
176
+ export declare const isLeagueManagerHeadToHeadResponse: (response: ILeagueManagerResponse | ILeagueManagerRotoResponse) => response is ILeagueManagerResponse;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './ActiveAthletesMarquee.styles.css';
3
+ type Props = {
4
+ activeAthletes: {
5
+ abbrevName: string;
6
+ points: string;
7
+ }[];
8
+ };
9
+ type State = {
10
+ shouldAnimate: boolean;
11
+ };
12
+ declare class ActiveAthletesMarquee extends React.Component<Props, State> {
13
+ private containerRef;
14
+ private marqueeRef;
15
+ constructor(props: Props);
16
+ componentDidMount(): void;
17
+ componentDidUpdate(prevProps: Props): void;
18
+ checkOverflow: () => void;
19
+ render(): React.JSX.Element;
20
+ }
21
+ export default ActiveAthletesMarquee;
@@ -0,0 +1,2 @@
1
+ import ActiveAthletesMarquee from './ActiveAthletesMarquee';
2
+ export default ActiveAthletesMarquee;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { Direction, Layout } from '@/external/spatial-navigation/utils';
3
+ import { FantasyItem } from '../view-model/FantasyViewModel';
4
+ type Props = {
5
+ item: FantasyItem;
6
+ onEnterPress: (item: FantasyItem) => void;
7
+ };
8
+ declare class FantasyItemView extends React.Component<Props> {
9
+ static contextTypes: {
10
+ refsMap: React.Requireable<any>;
11
+ setRef: React.Requireable<any>;
12
+ scrollToFocusedElement: React.Requireable<any>;
13
+ };
14
+ context: import("@/components/core/ScrollableContainer/ScrollableContainer").ScrollableContainerContextType;
15
+ onBecameFocused: (layout: Layout) => void;
16
+ onArrowPress: (d: Direction) => void;
17
+ onEnterPress: () => void;
18
+ renderItem(): React.JSX.Element | null;
19
+ render(): React.JSX.Element;
20
+ }
21
+ export default FantasyItemView;
@@ -0,0 +1,27 @@
1
+ import React, { Component } from 'react';
2
+ import './FantasyView.styles.css';
3
+ import { Direction } from '@/external/spatial-navigation/utils';
4
+ import FantasyViewModel, { FantasyErrorState, FantasyItem } from '../view-model/FantasyViewModel';
5
+ interface State {
6
+ container: HTMLDivElement | null;
7
+ items: FantasyItem[];
8
+ isDataLoading: boolean;
9
+ errorState: FantasyErrorState;
10
+ }
11
+ declare class FantasyView extends Component<{}, State> {
12
+ private container;
13
+ private itemsListener;
14
+ private isDataLoadingListener;
15
+ private errorStateListener;
16
+ private vm;
17
+ constructor(props: {});
18
+ get viewModel(): FantasyViewModel;
19
+ componentDidMount(): void;
20
+ componentWillUnmount(): void;
21
+ clearTabLoadFailure: () => void;
22
+ onArrowPress: (d: Direction) => void;
23
+ onEnterPress: (item: FantasyItem) => void;
24
+ renderItems: () => React.JSX.Element | React.JSX.Element[] | null;
25
+ render(): React.JSX.Element;
26
+ }
27
+ export default FantasyView;
@@ -0,0 +1,23 @@
1
+ /// <reference types="node" />
2
+ import React from 'react';
3
+ declare class DraftDateCountDown extends React.Component<{
4
+ draftDate: number;
5
+ }> {
6
+ interval: NodeJS.Timer | null;
7
+ state: {
8
+ days: string;
9
+ hours: string;
10
+ minutes: string;
11
+ seconds: string;
12
+ };
13
+ componentDidMount(): void;
14
+ componentWillUnmount(): void;
15
+ updateDate(): void;
16
+ getFormattedTimestamp(): string;
17
+ get items(): {
18
+ label: string;
19
+ value: string;
20
+ }[];
21
+ render(): React.JSX.Element;
22
+ }
23
+ export default DraftDateCountDown;
@@ -0,0 +1,52 @@
1
+ /// <reference types="prop-types" />
2
+ import React from 'react';
3
+ import { WithFocusableProps } from '@/external/spatial-navigation';
4
+ import './InactiveLeague.styles.css';
5
+ import { InactiveLeague } from '../../view-model/FantasyViewModel';
6
+ type Props = {
7
+ item: InactiveLeague;
8
+ };
9
+ declare const _default: {
10
+ new (props?: (Props & WithFocusableProps) | undefined, context?: any): {
11
+ state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
12
+ navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
13
+ getChildContext(): {
14
+ parentFocusKey: string;
15
+ };
16
+ setFocus: (focusKey: string) => void;
17
+ navigateByDirection: (direction: import("../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
18
+ stealFocus: () => void;
19
+ onUpdateFocus: (focused: boolean) => void;
20
+ onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
21
+ onEnterPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
22
+ onEnterReleaseHandler: () => void;
23
+ onBackPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
24
+ onArrowPressHandler: (direction: import("../../../../external/spatial-navigation/utils").Direction, details: import("../../../../external/spatial-navigation/utils").Details) => boolean | void;
25
+ onBecameFocusedHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
26
+ onBecameBlurredHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
27
+ componentDidMount(): void;
28
+ componentDidUpdate(): void;
29
+ componentWillUnmount(): void;
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<{
34
+ children?: React.ReactNode;
35
+ }> & Readonly<Props & WithFocusableProps>;
36
+ context: any;
37
+ refs: {
38
+ [key: string]: React.ReactInstance;
39
+ };
40
+ componentWillMount?(): void;
41
+ componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
42
+ shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
43
+ componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
44
+ };
45
+ contextTypes: {
46
+ parentFocusKey: import("prop-types").Requireable<string>;
47
+ };
48
+ childContextTypes: {
49
+ parentFocusKey: import("prop-types").Requireable<string>;
50
+ };
51
+ };
52
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import InactiveLeague from './InactiveLeague';
2
+ export default InactiveLeague;
@@ -0,0 +1,48 @@
1
+ /// <reference types="prop-types" />
2
+ import { WithFocusableProps } from '@/external/spatial-navigation';
3
+ import React from 'react';
4
+ import './LoginView.styles.css';
5
+ declare const _default: {
6
+ new (props?: (object & WithFocusableProps) | undefined, context?: any): {
7
+ state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
8
+ navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
9
+ getChildContext(): {
10
+ parentFocusKey: string;
11
+ };
12
+ setFocus: (focusKey: string) => void;
13
+ navigateByDirection: (direction: import("../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
14
+ stealFocus: () => void;
15
+ onUpdateFocus: (focused: boolean) => void;
16
+ onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
17
+ onEnterPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
18
+ onEnterReleaseHandler: () => void;
19
+ onBackPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
20
+ onArrowPressHandler: (direction: import("../../../../external/spatial-navigation/utils").Direction, details: import("../../../../external/spatial-navigation/utils").Details) => boolean | void;
21
+ onBecameFocusedHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
22
+ onBecameBlurredHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
23
+ componentDidMount(): void;
24
+ componentDidUpdate(): void;
25
+ componentWillUnmount(): void;
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<{
30
+ children?: React.ReactNode;
31
+ }> & Readonly<object & WithFocusableProps>;
32
+ context: any;
33
+ refs: {
34
+ [key: string]: React.ReactInstance;
35
+ };
36
+ componentWillMount?(): void;
37
+ componentWillReceiveProps?(nextProps: Readonly<object & WithFocusableProps>, nextContext: any): void;
38
+ shouldComponentUpdate?(nextProps: Readonly<object & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
39
+ componentWillUpdate?(nextProps: Readonly<object & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
40
+ };
41
+ contextTypes: {
42
+ parentFocusKey: import("prop-types").Requireable<string>;
43
+ };
44
+ childContextTypes: {
45
+ parentFocusKey: import("prop-types").Requireable<string>;
46
+ };
47
+ };
48
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import LoginView from './LoginView';
2
+ export default LoginView;
@@ -0,0 +1,49 @@
1
+ /// <reference types="prop-types" />
2
+ import { WithFocusableProps } from '@/external/spatial-navigation';
3
+ import React from 'react';
4
+ import './DoubleAthleteCard.styles.css';
5
+ import { MatchupPairRoster } from '@/modules/fantasy/view-model/FantasyViewModel';
6
+ declare const _default: {
7
+ new (props?: (MatchupPairRoster & WithFocusableProps) | undefined, context?: any): {
8
+ state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
9
+ navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
10
+ getChildContext(): {
11
+ parentFocusKey: string;
12
+ };
13
+ setFocus: (focusKey: string) => void;
14
+ navigateByDirection: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
15
+ stealFocus: () => void;
16
+ onUpdateFocus: (focused: boolean) => void;
17
+ onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
18
+ onEnterPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
19
+ onEnterReleaseHandler: () => void;
20
+ onBackPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
21
+ onArrowPressHandler: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details: import("../../../../../external/spatial-navigation/utils").Details) => boolean | void;
22
+ onBecameFocusedHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
23
+ onBecameBlurredHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
24
+ componentDidMount(): void;
25
+ componentDidUpdate(): void;
26
+ componentWillUnmount(): void;
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<{
31
+ children?: React.ReactNode;
32
+ }> & Readonly<MatchupPairRoster & WithFocusableProps>;
33
+ context: any;
34
+ refs: {
35
+ [key: string]: React.ReactInstance;
36
+ };
37
+ componentWillMount?(): void;
38
+ componentWillReceiveProps?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextContext: any): void;
39
+ shouldComponentUpdate?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
40
+ componentWillUpdate?(nextProps: Readonly<MatchupPairRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
41
+ };
42
+ contextTypes: {
43
+ parentFocusKey: import("prop-types").Requireable<string>;
44
+ };
45
+ childContextTypes: {
46
+ parentFocusKey: import("prop-types").Requireable<string>;
47
+ };
48
+ };
49
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import DoubleAthleteCard from './DoubleAthleteCard';
2
+ export default DoubleAthleteCard;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { Direction } from '@/external/spatial-navigation/utils';
3
+ import { MatchupPairRoster, TopPlayer } from '../../view-model/FantasyViewModel';
4
+ type Props = {
5
+ items: MatchupPairRoster[];
6
+ topPlayers: TopPlayer[];
7
+ focusKey: string;
8
+ onArrowPress: (index: number) => (d: Direction) => boolean;
9
+ onBackPress: () => void;
10
+ };
11
+ declare class ExpandedDoubleAthleteCards extends React.Component<Props> {
12
+ render(): React.JSX.Element;
13
+ }
14
+ export default ExpandedDoubleAthleteCards;
@@ -0,0 +1,54 @@
1
+ /// <reference types="prop-types" />
2
+ import { WithFocusableProps } from '@/external/spatial-navigation';
3
+ import React from 'react';
4
+ import './MatchupPair.styles.css';
5
+ import { Direction } from '@/external/spatial-navigation/utils';
6
+ import { MatchupPairItem } from '../../view-model/FantasyViewModel';
7
+ type Props = {
8
+ item: MatchupPairItem;
9
+ onEnterPress: () => void;
10
+ };
11
+ declare const _default: {
12
+ new (props?: (Props & WithFocusableProps) | undefined, context?: any): {
13
+ state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
14
+ navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
15
+ getChildContext(): {
16
+ parentFocusKey: string;
17
+ };
18
+ setFocus: (focusKey: string) => void;
19
+ navigateByDirection: (direction: Direction, details?: Record<string, any>) => void;
20
+ stealFocus: () => void;
21
+ onUpdateFocus: (focused: boolean) => void;
22
+ onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
23
+ onEnterPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
24
+ onEnterReleaseHandler: () => void;
25
+ onBackPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
26
+ onArrowPressHandler: (direction: Direction, details: import("@/external/spatial-navigation/utils").Details) => boolean | void;
27
+ onBecameFocusedHandler: (layout: import("@/external/spatial-navigation/utils").Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
28
+ onBecameBlurredHandler: (layout: import("@/external/spatial-navigation/utils").Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
29
+ componentDidMount(): void;
30
+ componentDidUpdate(): void;
31
+ componentWillUnmount(): void;
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<{
36
+ children?: React.ReactNode;
37
+ }> & Readonly<Props & WithFocusableProps>;
38
+ context: any;
39
+ refs: {
40
+ [key: string]: React.ReactInstance;
41
+ };
42
+ componentWillMount?(): void;
43
+ componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
44
+ shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
45
+ componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
46
+ };
47
+ contextTypes: {
48
+ parentFocusKey: import("prop-types").Requireable<string>;
49
+ };
50
+ childContextTypes: {
51
+ parentFocusKey: import("prop-types").Requireable<string>;
52
+ };
53
+ };
54
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import MatchupPair from './MatchupPair';
2
+ export default MatchupPair;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { Direction } from '@/external/spatial-navigation/utils';
3
+ import { MatchupSingleRoster, TopPlayer } from '../../view-model/FantasyViewModel';
4
+ type Props = {
5
+ items: MatchupSingleRoster[];
6
+ topPlayers: TopPlayer[];
7
+ focusKey: string;
8
+ onArrowPress: (index: number) => (d: Direction) => boolean;
9
+ onBackPress: () => void;
10
+ };
11
+ declare class ExpandedSingleAthleteCards extends React.Component<Props> {
12
+ render(): React.JSX.Element;
13
+ }
14
+ export default ExpandedSingleAthleteCards;
@@ -0,0 +1,54 @@
1
+ /// <reference types="prop-types" />
2
+ import { WithFocusableProps } from '@/external/spatial-navigation';
3
+ import React from 'react';
4
+ import './MatchupSingle.styles.css';
5
+ import { Direction } from '@/external/spatial-navigation/utils';
6
+ import { MatchupSingleItem } from '../../view-model/FantasyViewModel';
7
+ type Props = {
8
+ item: MatchupSingleItem;
9
+ onEnterPress: () => void;
10
+ };
11
+ declare const _default: {
12
+ new (props?: (Props & WithFocusableProps) | undefined, context?: any): {
13
+ state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
14
+ navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
15
+ getChildContext(): {
16
+ parentFocusKey: string;
17
+ };
18
+ setFocus: (focusKey: string) => void;
19
+ navigateByDirection: (direction: Direction, details?: Record<string, any>) => void;
20
+ stealFocus: () => void;
21
+ onUpdateFocus: (focused: boolean) => void;
22
+ onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
23
+ onEnterPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
24
+ onEnterReleaseHandler: () => void;
25
+ onBackPressHandler: (details: import("@/external/spatial-navigation/utils").Details) => void;
26
+ onArrowPressHandler: (direction: Direction, details: import("@/external/spatial-navigation/utils").Details) => boolean | void;
27
+ onBecameFocusedHandler: (layout: import("@/external/spatial-navigation/utils").Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
28
+ onBecameBlurredHandler: (layout: import("@/external/spatial-navigation/utils").Layout, details: import("@/external/spatial-navigation/utils").Details) => void;
29
+ componentDidMount(): void;
30
+ componentDidUpdate(): void;
31
+ componentWillUnmount(): void;
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<{
36
+ children?: React.ReactNode;
37
+ }> & Readonly<Props & WithFocusableProps>;
38
+ context: any;
39
+ refs: {
40
+ [key: string]: React.ReactInstance;
41
+ };
42
+ componentWillMount?(): void;
43
+ componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
44
+ shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
45
+ componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
46
+ };
47
+ contextTypes: {
48
+ parentFocusKey: import("prop-types").Requireable<string>;
49
+ };
50
+ childContextTypes: {
51
+ parentFocusKey: import("prop-types").Requireable<string>;
52
+ };
53
+ };
54
+ export default _default;
@@ -0,0 +1,49 @@
1
+ /// <reference types="prop-types" />
2
+ import { WithFocusableProps } from '@/external/spatial-navigation';
3
+ import React from 'react';
4
+ import './SingleAthleteCard.styles.css';
5
+ import { MatchupSingleRoster } from '@/modules/fantasy/view-model/FantasyViewModel';
6
+ declare const _default: {
7
+ new (props?: (MatchupSingleRoster & WithFocusableProps) | undefined, context?: any): {
8
+ state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
9
+ navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
10
+ getChildContext(): {
11
+ parentFocusKey: string;
12
+ };
13
+ setFocus: (focusKey: string) => void;
14
+ navigateByDirection: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
15
+ stealFocus: () => void;
16
+ onUpdateFocus: (focused: boolean) => void;
17
+ onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
18
+ onEnterPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
19
+ onEnterReleaseHandler: () => void;
20
+ onBackPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
21
+ onArrowPressHandler: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details: import("../../../../../external/spatial-navigation/utils").Details) => boolean | void;
22
+ onBecameFocusedHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
23
+ onBecameBlurredHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
24
+ componentDidMount(): void;
25
+ componentDidUpdate(): void;
26
+ componentWillUnmount(): void;
27
+ render(): React.ReactElement<MatchupSingleRoster & 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: MatchupSingleRoster & 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<{
31
+ children?: React.ReactNode;
32
+ }> & Readonly<MatchupSingleRoster & WithFocusableProps>;
33
+ context: any;
34
+ refs: {
35
+ [key: string]: React.ReactInstance;
36
+ };
37
+ componentWillMount?(): void;
38
+ componentWillReceiveProps?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextContext: any): void;
39
+ shouldComponentUpdate?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
40
+ componentWillUpdate?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
41
+ };
42
+ contextTypes: {
43
+ parentFocusKey: import("prop-types").Requireable<string>;
44
+ };
45
+ childContextTypes: {
46
+ parentFocusKey: import("prop-types").Requireable<string>;
47
+ };
48
+ };
49
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import SingleAthleteCard from './SingleAthleteCard';
2
+ export default SingleAthleteCard;