@maestro_io/maestro-web-sdk 3.1.2 → 3.2.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 (53) 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 +2 -0
  7. package/dist/src/components/molecules/HeadshotImage/HeadshotImage.d.ts +16 -0
  8. package/dist/src/components/molecules/HeadshotImage/index.d.ts +2 -0
  9. package/dist/src/development/MaestroEventDelegate.d.ts +2 -1
  10. package/dist/src/helpers/strings.d.ts +1 -0
  11. package/dist/src/index.d.ts +3 -3
  12. package/dist/src/interfaces/IMaestroEventDelegate.d.ts +15 -0
  13. package/dist/src/interfaces/IUserSettings.d.ts +4 -0
  14. package/dist/src/models/IPanel.d.ts +1 -6
  15. package/dist/src/modules/bets/view-model/BetsViewModel.d.ts +0 -5
  16. package/dist/src/modules/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.d.ts +28 -0
  17. package/dist/src/modules/fantasy/components/ExpandedAthleteList/index.d.ts +1 -0
  18. package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.d.ts +56 -0
  19. package/dist/src/modules/fantasy/components/LeagueCard/index.d.ts +2 -0
  20. package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +53 -0
  21. package/dist/src/modules/fantasy/components/TopPlayerCard/index.d.ts +2 -0
  22. package/dist/src/modules/fantasy/types.d.ts +176 -0
  23. package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.d.ts +21 -0
  24. package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/index.d.ts +2 -0
  25. package/dist/src/modules/fantasy/view/FantasyItemView.d.ts +21 -0
  26. package/dist/src/modules/fantasy/view/FantasyView.d.ts +27 -0
  27. package/dist/src/modules/fantasy/view/InactiveLeague/DraftDateCountdown.d.ts +23 -0
  28. package/dist/src/modules/fantasy/view/InactiveLeague/InactiveLeague.d.ts +52 -0
  29. package/dist/src/modules/fantasy/view/InactiveLeague/index.d.ts +2 -0
  30. package/dist/src/modules/fantasy/view/LoginView/LoginView.d.ts +48 -0
  31. package/dist/src/modules/fantasy/view/LoginView/index.d.ts +2 -0
  32. package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts +49 -0
  33. package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/index.d.ts +2 -0
  34. package/dist/src/modules/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.d.ts +14 -0
  35. package/dist/src/modules/fantasy/view/MatchupPair/MatchupPair.d.ts +54 -0
  36. package/dist/src/modules/fantasy/view/MatchupPair/index.d.ts +2 -0
  37. package/dist/src/modules/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.d.ts +14 -0
  38. package/dist/src/modules/fantasy/view/MatchupSingle/MatchupSingle.d.ts +54 -0
  39. package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts +49 -0
  40. package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/index.d.ts +2 -0
  41. package/dist/src/modules/fantasy/view/MatchupSingle/index.d.ts +2 -0
  42. package/dist/src/modules/fantasy/view/PromoView/PromoView.d.ts +52 -0
  43. package/dist/src/modules/fantasy/view/PromoView/index.d.ts +2 -0
  44. package/dist/src/modules/fantasy/view/index.d.ts +2 -0
  45. package/dist/src/modules/fantasy/view-model/FantasyViewModel.FantasyPolling.d.ts +34 -0
  46. package/dist/src/modules/fantasy/view-model/FantasyViewModel.LeagueManagerPolling.d.ts +32 -0
  47. package/dist/src/modules/fantasy/view-model/FantasyViewModel.d.ts +146 -0
  48. package/dist/src/modules/stats/view-model/StatsViewModel.d.ts +0 -5
  49. package/dist/src/services/AnalyticsService/AnalyticsService.d.ts +10 -3
  50. package/dist/src/services/FantasyService.d.ts +54 -0
  51. package/dist/src/services/NetworkManager/types.d.ts +1 -0
  52. package/dist/src/view-models/MaestroEventViewModel.d.ts +3 -1
  53. package/package.json +1 -1
@@ -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;
@@ -0,0 +1,2 @@
1
+ import MatchupSingle from './MatchupSingle';
2
+ export default MatchupSingle;
@@ -0,0 +1,52 @@
1
+ /// <reference types="prop-types" />
2
+ import React from 'react';
3
+ import { WithFocusableProps } from '@/external/spatial-navigation';
4
+ import './PromoView.styles.css';
5
+ import { PromoFantasyItem } from '../../view-model/FantasyViewModel';
6
+ type Props = {
7
+ item: PromoFantasyItem;
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 PromoView from './PromoView';
2
+ export default PromoView;
@@ -0,0 +1,2 @@
1
+ import FantasyView from './FantasyView';
2
+ export default FantasyView;
@@ -0,0 +1,34 @@
1
+ import IMaestroEventDelegate from '@/interfaces/IMaestroEventDelegate';
2
+ import { FantasyPollingParams } from '@/services/FantasyService';
3
+ import { IFantasyResponse } from '../types';
4
+ export default class FantasyPolling {
5
+ private polling;
6
+ private delegate;
7
+ private fantasyService;
8
+ constructor(delegate: IMaestroEventDelegate);
9
+ /**
10
+ * Refresh polling for fantasy data
11
+ */
12
+ refresh(params: FantasyPollingParams, callback: (data: IFantasyResponse) => void): Promise<void>;
13
+ /**
14
+ * Stop polling for fantasy data
15
+ */
16
+ stop(): void;
17
+ removeLastResponseHash(): void;
18
+ private start;
19
+ /**
20
+ * @description Update polling interval checking either response header or panel config.
21
+ * Refresh polling if necessary.
22
+ */
23
+ private updateInterval;
24
+ private getResponseHeaderPollingIntervalValue;
25
+ private getPanelConfigInterval;
26
+ /**
27
+ * Process data received from polling
28
+ */
29
+ private processPolledData;
30
+ /**
31
+ * Handle errors that occur during fantasy polling
32
+ */
33
+ private handlePollingError;
34
+ }
@@ -0,0 +1,32 @@
1
+ import { LeagueManagerPollingParams } from '@/services/FantasyService';
2
+ import { ILeagueManagerResponse, ILeagueManagerRotoResponse } from '../types';
3
+ export default class LeagueManagerPolling {
4
+ private polling;
5
+ private fantasyService;
6
+ constructor();
7
+ /**
8
+ * Refresh polling for league manager data
9
+ */
10
+ refresh(key: string, params: LeagueManagerPollingParams, callback: (data: ILeagueManagerResponse | ILeagueManagerRotoResponse) => void): void;
11
+ /**
12
+ * Stop polling for fantasy data
13
+ */
14
+ stop(key: string): void;
15
+ private start;
16
+ /**
17
+ * Process data received from polling
18
+ */
19
+ private processPolledData;
20
+ /**
21
+ * @description Update polling interval checking either response header or panel config.
22
+ * Refresh polling if necessary.
23
+ */
24
+ private updateInterval;
25
+ private getResponseHeaderPollingIntervalValue;
26
+ private getPanelConfigInterval;
27
+ stopAll(): void;
28
+ /**
29
+ * Handle errors that occur during league manager polling
30
+ */
31
+ private handlePollingError;
32
+ }