@xibosignage/xibo-layout-renderer 1.0.27 → 1.0.29
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/ActionController/ActionController.d.ts +8 -3
- package/dist/src/Types/Layout/Layout.types.d.ts +1 -0
- package/dist/src/Types/XLR/XLR.types.d.ts +18 -1
- package/dist/xibo-layout-renderer.cjs.js +824 -235
- package/dist/xibo-layout-renderer.cjs.js.map +1 -1
- package/dist/xibo-layout-renderer.d.ts +27 -4
- package/dist/xibo-layout-renderer.esm.js +824 -235
- package/dist/xibo-layout-renderer.esm.js.map +1 -1
- package/dist/xibo-layout-renderer.js +824 -235
- package/dist/xibo-layout-renderer.min.js +8 -8
- package/dist/xibo-layout-renderer.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -21,18 +21,23 @@ export default class ActionController {
|
|
|
21
21
|
$actionControllerTitle: HTMLElement | null;
|
|
22
22
|
$actionsContainer: HTMLElement | null;
|
|
23
23
|
translations: any;
|
|
24
|
+
private keyboardHandler;
|
|
24
25
|
constructor(parent: ILayout, actions: Action[], options: InactOptions);
|
|
25
26
|
init(): void;
|
|
26
27
|
openLayoutInNewTab(layoutCode: string, options: InactOptions): void;
|
|
27
|
-
openLayoutInPlayer(layoutCode: string,
|
|
28
|
+
openLayoutInPlayer(layoutCode: string, _options: InactOptions): void;
|
|
28
29
|
prevOrNextLayout(targetId: string, actionType: string): void;
|
|
29
|
-
/** Change media in region (next/previous) */
|
|
30
|
-
|
|
30
|
+
/** Change media in region (next/previous) with wrap-around at boundaries. */
|
|
31
|
+
gotoMediaInRegion(regionId: string, actionType: string): void;
|
|
31
32
|
loadMediaInRegion(regionId: string, widgetId: string): void;
|
|
32
33
|
/** Run action based on action data */
|
|
33
34
|
runAction(actionData: {
|
|
34
35
|
[k: string]: any;
|
|
35
36
|
}, options: InactOptions): void;
|
|
36
37
|
initTouchActions(): void;
|
|
38
|
+
/** Dispatch an incoming webhook trigger to any matching actions on this layout. */
|
|
39
|
+
handleWebhookTrigger(triggerCode: string, widgetId?: string): void;
|
|
37
40
|
initKeyboardActions(): void;
|
|
41
|
+
/** Remove the keydown listener registered by initKeyboardActions. Call when the layout ends or is cancelled. */
|
|
42
|
+
removeKeyboardActions(): void;
|
|
38
43
|
}
|
|
@@ -48,6 +48,23 @@ export interface IXlr {
|
|
|
48
48
|
getLayoutById(layoutId: number, layoutIndex?: number): ILayout | undefined;
|
|
49
49
|
gotoNextLayout(): void;
|
|
50
50
|
gotoPrevLayout(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Navigate directly to a layout identified by its CMS code string.
|
|
53
|
+
* Searches parsed layouts first, then fetches unparsed XLF files via appHost.
|
|
54
|
+
* No-ops silently if the code is not found in the current loop.
|
|
55
|
+
*/
|
|
56
|
+
gotoLayoutByCode(layoutCode: string): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Play the given layout once as an interrupt, then resume the current loop.
|
|
59
|
+
* Used by non-CMS platforms for Navigate to Layout interactive actions.
|
|
60
|
+
* The interrupt is not part of inputLayouts and is spliced in temporarily.
|
|
61
|
+
*/
|
|
62
|
+
playInterruptLayout(inputLayout: InputLayoutType): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Dispatch an incoming webhook trigger code to the current layout's
|
|
65
|
+
* action controller. Pass an optional widgetId to narrow the match.
|
|
66
|
+
*/
|
|
67
|
+
triggerAction(triggerCode: string, widgetId?: string): void;
|
|
51
68
|
init(): Promise<IXlr>;
|
|
52
69
|
inputLayouts: InputLayoutType[];
|
|
53
70
|
isInterrupted: boolean;
|
|
@@ -68,7 +85,7 @@ export interface IXlr {
|
|
|
68
85
|
prepareLayoutXlf(inputLayout: ILayout | undefined): Promise<ILayout>;
|
|
69
86
|
prepareLayouts(): Promise<IXlr>;
|
|
70
87
|
renderOverlayLayouts(): Promise<void>;
|
|
71
|
-
uniqueLayouts:
|
|
88
|
+
uniqueLayouts: Map<string, InputLayoutType>;
|
|
72
89
|
updateInputLayout(layoutIndex: number, layout: InputLayoutType): void;
|
|
73
90
|
updateLayouts(inputLayouts: InputLayoutType[]): void;
|
|
74
91
|
updateLoop(inputLayouts: InputLayoutType[]): Promise<void>;
|