@xibosignage/xibo-layout-renderer 1.0.21 → 1.0.22

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.
@@ -5,11 +5,11 @@ export declare function nextId(options: {
5
5
  }): number;
6
6
  export declare const getMediaId: ({ mediaType, containerName }: IMedia) => string;
7
7
  export declare const capitalizeStr: (inputStr: string) => string;
8
- export declare function getDataBlob(src: string): Promise<unknown>;
8
+ export declare function getDataBlob(src: string, jwtToken: string | null): Promise<unknown>;
9
9
  export type MediaTypes = 'video' | 'audio' | 'image';
10
- export declare function preloadMediaBlob(src: string, type: MediaTypes): Promise<string>;
11
- export declare function fetchJSON(url: string): Promise<any>;
12
- export declare function fetchText(url: string): Promise<string>;
10
+ export declare function preloadMediaBlob(src: string, type: MediaTypes, jwtToken: string | null): Promise<string>;
11
+ export declare function fetchJSON(url: string, jwtToken: string | null): Promise<any>;
12
+ export declare function fetchText(url: string, jwtToken: string | null): Promise<string>;
13
13
  export declare function getFileExt(filename: string): string;
14
14
  export declare function audioFileType(str: string): string | undefined;
15
15
  export declare function videoFileType(str: string): string | undefined;
@@ -48,6 +48,7 @@ export default class Layout implements ILayout {
48
48
  scheduleId?: number;
49
49
  layoutNode?: Document;
50
50
  path?: string;
51
+ errorCode: number | null;
51
52
  options: OptionsType;
52
53
  xlr: IXlr;
53
54
  private readonly layoutObj;
@@ -11,7 +11,8 @@ export declare enum ELayoutState {
11
11
  IDLE = 0,
12
12
  RUNNING = 1,
13
13
  PLAYED = 2,
14
- CANCELLED = 3
14
+ CANCELLED = 3,
15
+ ERROR = 4
15
16
  }
16
17
  export type InputLayoutType = {
17
18
  response: any;
@@ -29,8 +30,8 @@ export type OptionsType = {
29
30
  getResourceUrl: string;
30
31
  layoutBackgroundDownloadUrl: string;
31
32
  layoutPreviewUrl: string;
32
- libraryDownloadUrl: string;
33
33
  loaderUrl: string;
34
+ previewJwt: string;
34
35
  idCounter: number;
35
36
  inPreview: boolean;
36
37
  appHost?: string | null;
@@ -104,6 +105,7 @@ export interface ILayout {
104
105
  shareOfVoice: number;
105
106
  isInterrupt(): boolean;
106
107
  state: ELayoutState;
108
+ errorCode: number | null;
107
109
  }
108
110
  export declare const initialLayout: ILayout;
109
111
  export type GetLayoutParamType = {
@@ -3,7 +3,6 @@ export * from './Modules/ActionController';
3
3
  export * from './Modules/Generators';
4
4
  export * from './Modules/Layout';
5
5
  export * from './Modules/Media';
6
- export * from './Modules/Platform';
7
6
  export * from './Modules/Region';
8
7
  export * from './Modules/SplashScreen';
9
8
  export * from './Modules/Transitions';