@maestro_io/maestro-web-sdk 2.2.5 → 2.2.7
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 +0 -2
- package/dist/{modules/bets/view/TabLoadFailureView.d.ts → components/molecules/TabLoadError/TabLoadError.d.ts} +2 -1
- package/dist/components/molecules/TabLoadError/index.d.ts +2 -0
- package/dist/maestro-web-sdk.umd.js +3 -3
- package/dist/maestro-web-sdk.umd.js.map +1 -1
- package/dist/modules/bets/interfaces/IBets.d.ts +3 -3
- package/dist/modules/stats/interfaces/IStats.d.ts +1 -1
- package/dist/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.d.ts +13 -2
- package/dist/modules/stats/view/Teams/StatsCarousel.d.ts +18 -1
- package/dist/modules/stats/view-model/StatsViewModel.d.ts +5 -0
- package/package.json +1 -1
|
@@ -155,7 +155,7 @@ export type BetLiveEvent = {
|
|
|
155
155
|
date: string;
|
|
156
156
|
/** 'pre' | 'live' | 'post' | 'in' */
|
|
157
157
|
gameState: string;
|
|
158
|
-
bets
|
|
158
|
+
bets?: {
|
|
159
159
|
odds: IOdds[];
|
|
160
160
|
};
|
|
161
161
|
featured?: IHotProps[];
|
|
@@ -182,9 +182,9 @@ export interface IPersonalizedBetsResponse extends IBetsResponse {
|
|
|
182
182
|
};
|
|
183
183
|
disclaimers?: {
|
|
184
184
|
/** Location-specific disclaimer */
|
|
185
|
-
location
|
|
185
|
+
location?: string;
|
|
186
186
|
/** Gambling disclaimer */
|
|
187
|
-
gambling
|
|
187
|
+
gambling?: string;
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
190
|
export {};
|
|
@@ -5,6 +5,17 @@ import { Direction } from '@/external/spatial-navigation/utils';
|
|
|
5
5
|
type Props = {
|
|
6
6
|
onArrowPress: (index: number) => (direction: Direction) => void;
|
|
7
7
|
onBackPress: () => void;
|
|
8
|
-
} & Pick<ActiveAthletesProps, 'item' | '
|
|
9
|
-
declare
|
|
8
|
+
} & Pick<ActiveAthletesProps, 'item' | 'onEnterPress'>;
|
|
9
|
+
declare class ExpandedAthletes extends React.Component<Props> {
|
|
10
|
+
refsArray: HTMLDivElement[];
|
|
11
|
+
wrapperRef: HTMLDivElement | null;
|
|
12
|
+
state: {
|
|
13
|
+
maxHeight: string;
|
|
14
|
+
focusedIndex: number;
|
|
15
|
+
};
|
|
16
|
+
updateMaxHeight(focusedIndex: number): void;
|
|
17
|
+
scrollToElement(focusedIndex: number): void;
|
|
18
|
+
onBecameFocused: (focusedIndex: number) => () => void;
|
|
19
|
+
render(): React.JSX.Element;
|
|
20
|
+
}
|
|
10
21
|
export default ExpandedAthletes;
|
|
@@ -3,6 +3,23 @@ type Props = {
|
|
|
3
3
|
itemsLength: number;
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
};
|
|
6
|
-
declare
|
|
6
|
+
declare class StatsCarousel extends React.Component<Props, {
|
|
7
|
+
currentIndex: number;
|
|
8
|
+
isTransitioning: boolean;
|
|
9
|
+
}> {
|
|
10
|
+
interval: number | null;
|
|
11
|
+
trackRef: HTMLDivElement | null;
|
|
12
|
+
constructor(props: Props);
|
|
13
|
+
setTrackRef(el: HTMLDivElement | null): void;
|
|
14
|
+
componentDidMount(): void;
|
|
15
|
+
componentWillUnmount(): void;
|
|
16
|
+
componentDidUpdate(_prevProps: Props, prevState: {
|
|
17
|
+
currentIndex: number;
|
|
18
|
+
isTransitioning: boolean;
|
|
19
|
+
}): void;
|
|
20
|
+
startInterval(): void;
|
|
21
|
+
clearInterval(): void;
|
|
22
|
+
render(): React.JSX.Element;
|
|
23
|
+
}
|
|
7
24
|
declare const CarouselSlider: (props: Props) => React.JSX.Element;
|
|
8
25
|
export { StatsCarousel, CarouselSlider };
|
|
@@ -128,6 +128,11 @@ export declare class StatsViewModel extends ViewModel {
|
|
|
128
128
|
* Initialize the ViewModel and start data fetching
|
|
129
129
|
*/
|
|
130
130
|
init(): Promise<void>;
|
|
131
|
+
/**
|
|
132
|
+
* Get the current timecode from the MaestroEventViewModel
|
|
133
|
+
* This prevents the stats panel from always defaulting to real-time data
|
|
134
|
+
*/
|
|
135
|
+
private getCurrentTimeCode;
|
|
131
136
|
onEngage: (type: StatsItem['type']) => void;
|
|
132
137
|
/**
|
|
133
138
|
* Clean up resources when the ViewModel is no longer needed
|