@xibosignage/xibo-layout-renderer 1.0.16 → 1.0.18

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.
@@ -0,0 +1,12 @@
1
+ export declare enum PreviewTranslations {
2
+ actionControllerTitle = "Webhook Controller",
3
+ navigateToLayout = "Navigate to layout with code [layoutTag]?",
4
+ emptyRegionMessage = "Empty region!",
5
+ next = "Next Item",
6
+ previous = "Previous Item",
7
+ navWidget = "Navigate to Widget",
8
+ navLayout = "Navigate to Layout",
9
+ widgetId = "Widget ID",
10
+ layoutCode = "Layout Code",
11
+ target = "Target"
12
+ }
@@ -15,12 +15,17 @@ export default class ActionController {
15
15
  readonly parent: ILayout;
16
16
  readonly actions: Action[];
17
17
  readonly options: InactOptions;
18
+ readonly $container: HTMLElement | null;
18
19
  readonly $actionController: ActionsWrapper;
19
20
  readonly $actionListContainer: Element | null;
21
+ $actionControllerTitle: HTMLElement | null;
22
+ $actionsContainer: HTMLElement | null;
20
23
  translations: any;
21
24
  constructor(parent: ILayout, actions: Action[], options: InactOptions);
22
25
  init(): void;
23
26
  openLayoutInNewTab(layoutCode: string, options: InactOptions): void;
27
+ openLayoutInPlayer(layoutCode: string, options: InactOptions): void;
28
+ prevOrNextLayout(targetId: string, actionType: string): void;
24
29
  /** Change media in region (next/previous) */
25
30
  nextMediaInRegion(regionId: string, actionType: string): void;
26
31
  loadMediaInRegion(regionId: string, widgetId: string): void;
@@ -3,6 +3,7 @@ import { IXlr } from '../../types';
3
3
  import './media.css';
4
4
  export declare function composeVideoSource($media: HTMLVideoElement, media: IMedia): HTMLVideoElement;
5
5
  export default function VideoMedia(media: IMedia, xlr: IXlr): {
6
+ duration: number;
6
7
  init: () => void;
7
8
  stop: (disposeOnly?: boolean) => void;
8
9
  };
@@ -71,6 +71,8 @@ export interface ILayout {
71
71
  index: number;
72
72
  actionController: InteractiveActions | undefined;
73
73
  enableStat: boolean;
74
+ xlr: IXlr;
75
+ finishAllRegions(): Promise<void[]>;
74
76
  }
75
77
  export declare const initialLayout: ILayout;
76
78
  export type GetLayoutParamType = {
@@ -26,5 +26,7 @@ export interface IXlr {
26
26
  prepareLayouts(): Promise<IXlr>;
27
27
  updateLayouts(inputLayouts: InputLayoutType[]): void;
28
28
  updateLoop(inputLayouts: InputLayoutType[]): void;
29
+ gotoPrevLayout(): void;
30
+ gotoNextLayout(): void;
29
31
  }
30
32
  export declare const initialXlr: IXlr;