@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.
- package/dist/src/Modules/Generators/Generators.d.ts +4 -4
- package/dist/src/Modules/Layout/Layout.d.ts +1 -0
- package/dist/src/Types/Layout/Layout.types.d.ts +4 -2
- package/dist/src/index.d.ts +0 -1
- package/dist/xibo-layout-renderer.cjs.js +506 -489
- package/dist/xibo-layout-renderer.cjs.js.map +1 -1
- package/dist/xibo-layout-renderer.d.ts +10 -9
- package/dist/xibo-layout-renderer.esm.js +507 -489
- package/dist/xibo-layout-renderer.esm.js.map +1 -1
- package/dist/xibo-layout-renderer.js +506 -489
- package/dist/xibo-layout-renderer.min.js +8 -8
- package/dist/xibo-layout-renderer.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/src/Modules/Platform/Platform.d.ts +0 -2
- package/dist/src/Modules/Platform/index.d.ts +0 -1
|
@@ -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;
|
|
@@ -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 = {
|
package/dist/src/index.d.ts
CHANGED
|
@@ -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';
|