@maestro_io/maestro-web-sdk 2.2.5 → 2.2.6

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.
@@ -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: string;
185
+ location?: string;
186
186
  /** Gambling disclaimer */
187
- gambling: string;
187
+ gambling?: string;
188
188
  };
189
189
  }
190
190
  export {};
@@ -38,7 +38,7 @@ export interface Athlete {
38
38
  displayName: string;
39
39
  shortName: string;
40
40
  jersey: string;
41
- headshot: string;
41
+ headshot?: string;
42
42
  links: AthleteLink[];
43
43
  position?: AthletePosition;
44
44
  statistics?: {
@@ -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' | 'onBecameFocused' | 'onEnterPress'>;
9
- declare const ExpandedAthletes: (props: Props) => React.JSX.Element;
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 const StatsCarousel: (props: Props) => React.JSX.Element;
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maestro_io/maestro-web-sdk",
3
3
  "private": false,
4
- "version": "2.2.5",
4
+ "version": "2.2.6",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "main": "dist/maestro-web-sdk.umd.js",