@maestro_io/maestro-web-sdk 3.2.0 → 3.3.1
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/Icon.d.ts +2 -0
- package/dist/src/components/atoms/SvgIcon/ShopIcon.d.ts +5 -0
- package/dist/src/components/molecules/PanelNavButton/PanelNavButton.d.ts +4 -3
- package/dist/src/components/organisms/PanelNavigation/PanelNavigation.d.ts +1 -1
- package/dist/src/interfaces/IMaestroEvent.d.ts +4 -0
- package/dist/src/interfaces/IUserSettings.d.ts +4 -0
- package/dist/src/models/IPanel.d.ts +1 -0
- package/dist/src/modules/fantasy/mocks.d.ts +7620 -0
- package/dist/src/modules/fantasy/types.d.ts +1 -1
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.FantasyPolling.d.ts +2 -4
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.LeagueManagerPolling.d.ts +2 -2
- package/dist/src/modules/fantasy/view-model/FantasyViewModel.d.ts +4 -2
- 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/services/AnalyticsService/AnalyticsService.d.ts +16 -3
- package/dist/src/services/FantasyService.d.ts +3 -4
- package/dist/src/services/NetworkManager/types.d.ts +1 -0
- package/dist/src/services/ShopService.d.ts +23 -0
- package/dist/src/view-models/MaestroEventViewModel.d.ts +2 -0
- package/package.json +1 -3
|
@@ -8,6 +8,7 @@ import FlameIcon from './FlameIcon';
|
|
|
8
8
|
import BetsWarningIcon from './BetsWarningIcon';
|
|
9
9
|
import MobilePhoneIcon from './MobilePhoneIcon';
|
|
10
10
|
import FantasyIcon from './FantasyIcon';
|
|
11
|
+
import ShopIcon from './ShopIcon';
|
|
11
12
|
declare const iconImports: {
|
|
12
13
|
keyPlays: typeof KeyPlaysIcon;
|
|
13
14
|
play: typeof PlayIcon;
|
|
@@ -22,6 +23,7 @@ declare const iconImports: {
|
|
|
22
23
|
betsWarning: typeof BetsWarningIcon;
|
|
23
24
|
mobilePhone: typeof MobilePhoneIcon;
|
|
24
25
|
fantasy: typeof FantasyIcon;
|
|
26
|
+
shop: typeof ShopIcon;
|
|
25
27
|
};
|
|
26
28
|
export type IconsName = keyof typeof iconImports;
|
|
27
29
|
export type IconProps = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/// <reference types="prop-types" />
|
|
1
2
|
import { IconsName } from '@/components/atoms/SvgIcon/Icon';
|
|
2
3
|
import './PanelNavButton.styles.css';
|
|
3
4
|
import React from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
5
|
type PanelNavButtonProps = {
|
|
6
6
|
iconName: IconsName;
|
|
7
7
|
index: number;
|
|
@@ -10,6 +10,7 @@ type PanelNavButtonProps = {
|
|
|
10
10
|
focused?: boolean;
|
|
11
11
|
focusKey: string;
|
|
12
12
|
onBecameFocused: () => void;
|
|
13
|
+
width: string;
|
|
13
14
|
};
|
|
14
15
|
declare const _default: {
|
|
15
16
|
new (props?: (PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps) | undefined, context?: any): {
|
|
@@ -48,10 +49,10 @@ declare const _default: {
|
|
|
48
49
|
componentWillUpdate?(nextProps: Readonly<PanelNavButtonProps & import("@/external/spatial-navigation").WithFocusableProps>, nextState: Readonly<import("../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
|
|
49
50
|
};
|
|
50
51
|
contextTypes: {
|
|
51
|
-
parentFocusKey:
|
|
52
|
+
parentFocusKey: import("prop-types").Requireable<string>;
|
|
52
53
|
};
|
|
53
54
|
childContextTypes: {
|
|
54
|
-
parentFocusKey:
|
|
55
|
+
parentFocusKey: import("prop-types").Requireable<string>;
|
|
55
56
|
};
|
|
56
57
|
};
|
|
57
58
|
export default _default;
|
|
@@ -11,6 +11,6 @@ interface PanelNavigationProps {
|
|
|
11
11
|
}
|
|
12
12
|
declare class PanelNavigation extends React.Component<PanelNavigationProps> {
|
|
13
13
|
handleBecameFocused: (index: number) => () => void;
|
|
14
|
-
render(): React.JSX.Element;
|
|
14
|
+
render(): React.JSX.Element | null;
|
|
15
15
|
}
|
|
16
16
|
export default PanelNavigation;
|
|
@@ -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 {};
|
|
@@ -3,6 +3,7 @@ export declare const MaestroPanelType: {
|
|
|
3
3
|
readonly STATS: "stats";
|
|
4
4
|
readonly BETS: "bets";
|
|
5
5
|
readonly FANTASY: "fantasy";
|
|
6
|
+
readonly SHOP: "shop";
|
|
6
7
|
};
|
|
7
8
|
export type MaestroPanelType = typeof MaestroPanelType[keyof typeof MaestroPanelType];
|
|
8
9
|
export interface PanelTypeInfo {
|