@maestro_io/maestro-web-sdk 2.2.2 → 2.2.3
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/components/core/App/App.d.ts +2 -0
- package/dist/components/core/PanelManager/PanelManager.d.ts +5 -2
- package/dist/index.d.ts +3 -0
- package/dist/interfaces/IMaestroEvent.d.ts +6 -0
- package/dist/maestro-web-sdk.umd.js +3 -3
- package/dist/maestro-web-sdk.umd.js.map +1 -1
- package/dist/modules/bets/types/BetsAnalyticsTypes.d.ts +0 -17
- package/dist/modules/bets/view-model/BetsViewModel.d.ts +0 -4
- package/dist/modules/stats/view-model/StatsViewModel.d.ts +5 -0
- package/dist/services/AnalyticsService/AnalyticsService.d.ts +10 -26
- package/dist/services/InsightsService/InsightsPayloadBuilder.d.ts +9 -7
- package/dist/services/PageService/PageService.d.ts +8 -0
- package/dist/services/PageService/index.d.ts +2 -0
- package/dist/services/PageService/mocks.d.ts +2 -0
- package/dist/services/PageService/types.d.ts +53 -0
- package/dist/view-models/PanelManagerViewModel.d.ts +13 -7
- package/package.json +1 -1
|
@@ -3,6 +3,8 @@ import './App.styles.css';
|
|
|
3
3
|
declare class App extends React.Component<{
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
}> {
|
|
6
|
+
get colors(): import("../../../models/ITheme").IThemeColors;
|
|
7
|
+
get typography(): import("../../../models/ITheme").IThemeTypography;
|
|
6
8
|
componentDidMount(): void;
|
|
7
9
|
componentWillUnmount(): void;
|
|
8
10
|
render(): React.JSX.Element;
|
|
@@ -2,8 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import './PanelManager.styles.css';
|
|
3
3
|
import { MaestroPanelType } from '@/models/IPanel';
|
|
4
4
|
interface PanelManagerState {
|
|
5
|
-
activePanel: MaestroPanelType;
|
|
6
|
-
visiblePanels:
|
|
5
|
+
activePanel: MaestroPanelType | null;
|
|
6
|
+
visiblePanels: {
|
|
7
|
+
type: MaestroPanelType;
|
|
8
|
+
title: string;
|
|
9
|
+
}[];
|
|
7
10
|
}
|
|
8
11
|
declare class PanelManager extends React.Component<{}, PanelManagerState> {
|
|
9
12
|
private unsubscribe;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import IMaestroEvent from './interfaces/IMaestroEvent';
|
|
|
4
4
|
import { MaestroEventViewModel } from './view-models/MaestroEventViewModel';
|
|
5
5
|
import IMaestroKeyPlaysResponse from './modules/key-plays/interfaces/IKeyPlaysResponse';
|
|
6
6
|
import { IUserSettings } from './interfaces/IUserSettings';
|
|
7
|
+
import { PageConfig } from './services/PageService/types';
|
|
7
8
|
export { default as Overlay } from './components/molecules/Overlay/Overlay';
|
|
8
9
|
export { OverlayType, IMaestroOverlayEvent, IOverlaySize, IOverlayPosition, IFantasyPayload, IOverlayAnalyticsEvent, } from './types/OverlayTypes';
|
|
9
10
|
export { IWinningBet } from './models/IWinningBet';
|
|
@@ -25,6 +26,7 @@ declare class MaestroWebSDK implements IMaestroManager {
|
|
|
25
26
|
private clientAppSwid?;
|
|
26
27
|
private maestroEventViewModel;
|
|
27
28
|
private environment;
|
|
29
|
+
private pageConfig;
|
|
28
30
|
private constructor();
|
|
29
31
|
/**
|
|
30
32
|
* @description Returns the MaestroWebSDK instance
|
|
@@ -76,6 +78,7 @@ declare class MaestroWebSDK implements IMaestroManager {
|
|
|
76
78
|
getClientAppToken(): string | undefined;
|
|
77
79
|
getCurrentUserID(): string | undefined;
|
|
78
80
|
getClientAppSwid(): string | undefined;
|
|
81
|
+
getPageConfig(): PageConfig | null;
|
|
79
82
|
}
|
|
80
83
|
declare const SDK: MaestroWebSDK;
|
|
81
84
|
export default SDK;
|
|
@@ -93,6 +93,12 @@ declare const TEST_USE_CASES: {
|
|
|
93
93
|
readonly betsTabLoadFailure: "betsTabLoadFailure";
|
|
94
94
|
readonly betsMockData: "betsMockData";
|
|
95
95
|
readonly betsLiveData: "betsLiveData";
|
|
96
|
+
readonly showBasketballPreGameStatsMockData: "showBasketballPreGameStatsMockData";
|
|
97
|
+
readonly showBasketballInGameStatsMockData: "showBasketballInGameStatsMockData";
|
|
98
|
+
readonly showFootballPreGameStatsMockData: "showFootballPreGameStatsMockData";
|
|
99
|
+
readonly showFootballInGameStatsMockData: "showFootballInGameStatsMockData";
|
|
100
|
+
readonly showHockeyPreGameStatsMockData: "showHockeyPreGameStatsMockData";
|
|
101
|
+
readonly showHockeyInGameStatsMockData: "showHockeyInGameStatsMockData";
|
|
96
102
|
};
|
|
97
103
|
export type TestUseCase = typeof TEST_USE_CASES[keyof typeof TEST_USE_CASES];
|
|
98
104
|
export {};
|