@maestro_io/maestro-web-sdk 5.3.5 → 5.3.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.
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@
9
9
  // ../../../@/modules/maestro/builder/view-model/BuilderPanelViewModel
10
10
  // ../../../@/modules/fox/multi-view/interfaces/IMultiViewViewModel
11
11
  // ../../../@/modules/fox/stats/view-model/FoxStatsViewModel
12
+ // ../../../@/modules/fox/key-plays/view-model/FoxKeyPlaysViewModel
12
13
  // ../../../@/models/ITheme
13
14
  // ../../../@/helpers/Observable
14
15
 
@@ -355,6 +356,7 @@ declare module '@maestro_io/maestro-web-sdk/view-models/MaestroEventViewModel' {
355
356
  import { BuilderPanelViewModel } from '@/modules/maestro/builder/view-model/BuilderPanelViewModel';
356
357
  import { IMultiViewViewModel } from '@/modules/fox/multi-view/interfaces/IMultiViewViewModel';
357
358
  import { FoxStatsViewModel } from '@/modules/fox/stats/view-model/FoxStatsViewModel';
359
+ import type { FoxKeyPlaysViewModel } from '@/modules/fox/key-plays/view-model/FoxKeyPlaysViewModel';
358
360
  export class MaestroEventViewModel extends ViewModel implements IMaestroEvent {
359
361
  delegate: IMaestroEventDelegate;
360
362
  keyPlaysViewModel: IKeyPlaysViewModel | null;
@@ -365,6 +367,7 @@ declare module '@maestro_io/maestro-web-sdk/view-models/MaestroEventViewModel' {
365
367
  builderPanelViewModel: BuilderPanelViewModel | null;
366
368
  multiViewViewModel: IMultiViewViewModel | null;
367
369
  foxStatsViewModel: FoxStatsViewModel | null;
370
+ foxKeyPlaysViewModel: FoxKeyPlaysViewModel | null;
368
371
  panelManagerViewModel: PanelManagerViewModel;
369
372
  navigation: SpatialNavigation;
370
373
  constructor(eventId: string | undefined, pageId: string | undefined, delegate: IMaestroEventDelegate, analyticsService: AnalyticsService);
@@ -400,6 +403,11 @@ declare module '@maestro_io/maestro-web-sdk/view-models/MaestroEventViewModel' {
400
403
  setActivePanel(panelType: MaestroPanelType): void;
401
404
  updatePlayerTimeCode(timestamp: number): void;
402
405
  getPlayerTimeCode(): number | null;
406
+ /**
407
+ * Returns the panel-specific view model for the given panel type, or `null` if
408
+ * that panel was not loaded (not in page config / init failed) or has no VM (e.g. helloWorld).
409
+ */
410
+ getViewModelForPanel(panelType: MaestroPanelType): unknown;
403
411
  setDataToPanel(panelData: Record<string, any>): void;
404
412
  deinit(): Promise<void>;
405
413
  updateKeyPlaysData(data: IMaestroKeyPlaysResponse | null): Promise<void>;