@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
|
@@ -82,6 +82,7 @@ declare class Layout implements ILayout {
|
|
|
82
82
|
scheduleId?: number;
|
|
83
83
|
layoutNode?: Document;
|
|
84
84
|
path?: string;
|
|
85
|
+
errorCode: number | null;
|
|
85
86
|
options: OptionsType;
|
|
86
87
|
xlr: IXlr;
|
|
87
88
|
private readonly layoutObj;
|
|
@@ -358,7 +359,8 @@ declare enum ELayoutState {
|
|
|
358
359
|
IDLE = 0,
|
|
359
360
|
RUNNING = 1,
|
|
360
361
|
PLAYED = 2,
|
|
361
|
-
CANCELLED = 3
|
|
362
|
+
CANCELLED = 3,
|
|
363
|
+
ERROR = 4
|
|
362
364
|
}
|
|
363
365
|
type InputLayoutType = {
|
|
364
366
|
response: any;
|
|
@@ -376,8 +378,8 @@ type OptionsType = {
|
|
|
376
378
|
getResourceUrl: string;
|
|
377
379
|
layoutBackgroundDownloadUrl: string;
|
|
378
380
|
layoutPreviewUrl: string;
|
|
379
|
-
libraryDownloadUrl: string;
|
|
380
381
|
loaderUrl: string;
|
|
382
|
+
previewJwt: string;
|
|
381
383
|
idCounter: number;
|
|
382
384
|
inPreview: boolean;
|
|
383
385
|
appHost?: string | null;
|
|
@@ -451,6 +453,7 @@ interface ILayout {
|
|
|
451
453
|
shareOfVoice: number;
|
|
452
454
|
isInterrupt(): boolean;
|
|
453
455
|
state: ELayoutState;
|
|
456
|
+
errorCode: number | null;
|
|
454
457
|
}
|
|
455
458
|
declare const initialLayout: ILayout;
|
|
456
459
|
type GetLayoutParamType = {
|
|
@@ -472,11 +475,11 @@ declare function nextId(options: {
|
|
|
472
475
|
}): number;
|
|
473
476
|
declare const getMediaId: ({ mediaType, containerName }: IMedia) => string;
|
|
474
477
|
declare const capitalizeStr: (inputStr: string) => string;
|
|
475
|
-
declare function getDataBlob(src: string): Promise<unknown>;
|
|
478
|
+
declare function getDataBlob(src: string, jwtToken: string | null): Promise<unknown>;
|
|
476
479
|
type MediaTypes = 'video' | 'audio' | 'image';
|
|
477
|
-
declare function preloadMediaBlob(src: string, type: MediaTypes): Promise<string>;
|
|
478
|
-
declare function fetchJSON(url: string): Promise<any>;
|
|
479
|
-
declare function fetchText(url: string): Promise<string>;
|
|
480
|
+
declare function preloadMediaBlob(src: string, type: MediaTypes, jwtToken: string | null): Promise<string>;
|
|
481
|
+
declare function fetchJSON(url: string, jwtToken: string | null): Promise<any>;
|
|
482
|
+
declare function fetchText(url: string, jwtToken: string | null): Promise<string>;
|
|
480
483
|
declare function getFileExt(filename: string): string;
|
|
481
484
|
declare function audioFileType(str: string): string | undefined;
|
|
482
485
|
declare function videoFileType(str: string): string | undefined;
|
|
@@ -522,8 +525,6 @@ declare function AudioMedia(media: IMedia): {
|
|
|
522
525
|
init(): void;
|
|
523
526
|
};
|
|
524
527
|
|
|
525
|
-
declare const platform: OptionsType;
|
|
526
|
-
|
|
527
528
|
declare function Region(layout: ILayout, xml: Element, regionId: string, options: OptionsType, xlr: IXlr): IRegion;
|
|
528
529
|
|
|
529
530
|
interface ISplashScreen {
|
|
@@ -627,4 +628,4 @@ type flyTransitionParams = {
|
|
|
627
628
|
};
|
|
628
629
|
declare const flyTransitionKeyframes: (params: flyTransitionParams) => KeyframeOptionsType;
|
|
629
630
|
|
|
630
|
-
export { Action, ActionsWrapper, AudioMedia, ELayoutState, ELayoutType, type GetLayoutParamType, type GetLayoutType, type ILayout, type ILayoutEvents, type IMedia, type IMediaEvents, type IRegion, type IRegionEvents, type ISplashScreen, type IXlr, type IXlrEvents, type IXlrPlayback, type InactOptions, type InputLayoutType, type KeyframeOptionsType, Media, type MediaTypes, type OptionsType, type PrepareLayoutsType, type PreviewSplashElement, Region, type TransitionElementOptions, type TransitionNameType, VideoMedia, audioFileType, capitalizeStr, type compassPoints, composeBgUrlByPlatform, composeMediaUrl, composeResourceUrl, composeResourceUrlByPlatform, composeVideoSource, XiboLayoutRenderer as default, defaultTrans, fadeInElem, fadeOutElem, fetchJSON, fetchText, flyInElem, flyOutElem, flyTransitionKeyframes, type flyTransitionParams, getDataBlob, getFileExt, getIndexByLayoutId, getLayout, getMediaId, getXlf, hasDefaultOnly, initRenderingDOM, initialLayout, initialMedia, initialRegion, initialXlr, isEmpty, isLayoutValid, nextId,
|
|
631
|
+
export { Action, ActionsWrapper, AudioMedia, ELayoutState, ELayoutType, type GetLayoutParamType, type GetLayoutType, type ILayout, type ILayoutEvents, type IMedia, type IMediaEvents, type IRegion, type IRegionEvents, type ISplashScreen, type IXlr, type IXlrEvents, type IXlrPlayback, type InactOptions, type InputLayoutType, type KeyframeOptionsType, Media, type MediaTypes, type OptionsType, type PrepareLayoutsType, type PreviewSplashElement, Region, type TransitionElementOptions, type TransitionNameType, VideoMedia, audioFileType, capitalizeStr, type compassPoints, composeBgUrlByPlatform, composeMediaUrl, composeResourceUrl, composeResourceUrlByPlatform, composeVideoSource, XiboLayoutRenderer as default, defaultTrans, fadeInElem, fadeOutElem, fetchJSON, fetchText, flyInElem, flyOutElem, flyTransitionKeyframes, type flyTransitionParams, getDataBlob, getFileExt, getIndexByLayoutId, getLayout, getMediaId, getXlf, hasDefaultOnly, initRenderingDOM, initialLayout, initialMedia, initialRegion, initialXlr, isEmpty, isLayoutValid, nextId, preloadMediaBlob, setExpiry, transitionElement, videoFileType };
|