eligius 4.2.0 → 4.3.0
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/configuration-api.d.mts +107 -101
- package/dist/configuration-api.mjs +6 -6
- package/dist/configuration-api.mjs.map +1 -1
- package/dist/{engine-factory-39T5FByM.mjs → engine-factory-65BHSli8.mjs} +201 -230
- package/dist/engine-factory-65BHSli8.mjs.map +1 -0
- package/dist/index.d.mts +3 -4
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/lint.d.mts +104 -100
- package/dist/lint.mjs +56 -26
- package/dist/lint.mjs.map +1 -1
- package/dist/{locale-manager-CJy3musb.d.mts → locale-manager-DY4_d4Zv.d.mts} +120 -135
- package/dist/metadata.d.mts +101 -101
- package/dist/metadata.mjs +5 -72
- package/dist/metadata.mjs.map +1 -1
- package/dist/{rolldown-runtime-CGzGPw9x.mjs → rolldown-runtime-DTOZ5ltL.mjs} +4 -4
- package/dist/runtime.d.mts +21 -2
- package/dist/runtime.mjs +1 -1
- package/jsonschema/eligius-configuration.json +3 -0
- package/jsonschema/operations/math.json +6 -27
- package/package.json +25 -15
- package/dist/engine-factory-39T5FByM.mjs.map +0 -1
package/dist/metadata.d.mts
CHANGED
|
@@ -12,6 +12,21 @@ declare namespace JQuery {
|
|
|
12
12
|
type Duration = number | 'fast' | 'slow';
|
|
13
13
|
type Node = Element | Text | Comment | Document | DocumentFragment;
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Metadata-only entry point (`eligius/metadata`).
|
|
17
|
+
*
|
|
18
|
+
* This re-exports ONLY the operation / controller / event metadata namespaces
|
|
19
|
+
* and their types. The metadata is pure data — each descriptor file imports the
|
|
20
|
+
* operation's data interface as a `type` (erased at build), never the operation
|
|
21
|
+
* implementation — so this entry is bundled into its own chunk that does NOT
|
|
22
|
+
* import jquery / lottie-web.
|
|
23
|
+
*
|
|
24
|
+
* Importing from the main `eligius` entry evaluates the full engine bundle,
|
|
25
|
+
* which pulls in jquery@4 — and jquery@4 throws `jQuery requires a window with a
|
|
26
|
+
* document` the instant it is evaluated in a DOM-less Node context. Tooling that
|
|
27
|
+
* only needs metadata (code generators, completion providers, DSL compilers)
|
|
28
|
+
* should import from `eligius/metadata` so it works in plain Node without a DOM.
|
|
29
|
+
*/
|
|
15
30
|
/**
|
|
16
31
|
* Event: before-request-timeline-uri
|
|
17
32
|
*
|
|
@@ -101,20 +116,6 @@ interface PushHistoryStateEvent {
|
|
|
101
116
|
name: 'push-history-state';
|
|
102
117
|
args: [state: any];
|
|
103
118
|
}
|
|
104
|
-
/**
|
|
105
|
-
* Request: request-action
|
|
106
|
-
* Answered through `eventbus.request('request-action', actionName)` by
|
|
107
|
-
* EngineFactory with the configured action of that name. Throws for an
|
|
108
|
-
* unknown name, with a "did you mean" hint.
|
|
109
|
-
* @param actionName - The name of the action to request
|
|
110
|
-
* @returns The action
|
|
111
|
-
* @category Engine Request
|
|
112
|
-
*/
|
|
113
|
-
interface RequestActionEvent {
|
|
114
|
-
name: 'request-action';
|
|
115
|
-
args: [actionName: string];
|
|
116
|
-
returns: IAction;
|
|
117
|
-
}
|
|
118
119
|
/**
|
|
119
120
|
* Request: request-current-language
|
|
120
121
|
* Answered through `eventbus.request('request-current-language')` by
|
|
@@ -161,50 +162,6 @@ interface RequestCurrentVideoPositionEvent {
|
|
|
161
162
|
name: 'request-current-video-position';
|
|
162
163
|
args: [callback: (position: number) => void];
|
|
163
164
|
}
|
|
164
|
-
/**
|
|
165
|
-
* Request: request-engine-root
|
|
166
|
-
* Answered through `eventbus.request('request-engine-root')` with the
|
|
167
|
-
* engine's root element (the container selector). From `engine.init()` until
|
|
168
|
-
* `engine.destroy()` every answer is the same jQuery instance. The engine also
|
|
169
|
-
* answers the legacy form, a broadcast whose last argument is a callback that
|
|
170
|
-
* receives the value.
|
|
171
|
-
* @returns The engine root element
|
|
172
|
-
* @category Engine Request
|
|
173
|
-
*/
|
|
174
|
-
interface RequestEngineRootEvent {
|
|
175
|
-
name: 'request-engine-root';
|
|
176
|
-
args: [];
|
|
177
|
-
returns: JQuery<HTMLElement>;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Request: request-function
|
|
181
|
-
* Answered through `eventbus.request('request-function', systemName)` by
|
|
182
|
-
* EngineFactory with the function (such as an operation) the resource
|
|
183
|
-
* importer provides under that name. Throws for an unknown name.
|
|
184
|
-
* @param systemName - The name of the function to request
|
|
185
|
-
* @returns The function
|
|
186
|
-
* @category Engine Request
|
|
187
|
-
*/
|
|
188
|
-
interface RequestFunctionEvent {
|
|
189
|
-
name: 'request-function';
|
|
190
|
-
args: [systemName: string];
|
|
191
|
-
returns: unknown;
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Request: request-instance
|
|
195
|
-
* Answered through `eventbus.request('request-instance', systemName)` by
|
|
196
|
-
* EngineFactory with a new instance of the class the resource importer
|
|
197
|
-
* provides under that name (a controller, for example), constructed with the
|
|
198
|
-
* eventbus. Throws for an unknown name.
|
|
199
|
-
* @param systemName - The name of the class to instantiate
|
|
200
|
-
* @returns The new instance
|
|
201
|
-
* @category Engine Request
|
|
202
|
-
*/
|
|
203
|
-
interface RequestInstanceEvent {
|
|
204
|
-
name: 'request-instance';
|
|
205
|
-
args: [systemName: string];
|
|
206
|
-
returns: unknown;
|
|
207
|
-
}
|
|
208
165
|
/**
|
|
209
166
|
* Event: request-label-collection
|
|
210
167
|
* @param language - The language code
|
|
@@ -531,6 +488,54 @@ export interface IEventMetadata<_TArgs extends any[] = any[]> {
|
|
|
531
488
|
optional?: boolean;
|
|
532
489
|
}>;
|
|
533
490
|
}
|
|
491
|
+
/**
|
|
492
|
+
* Engine internals that actions, operations and controllers look up by name.
|
|
493
|
+
*
|
|
494
|
+
* Every engine has its own services object. Operations reach it as
|
|
495
|
+
* `this.services` (see `IOperationScope`), controllers receive it in
|
|
496
|
+
* `attach(eventbus, services)`. Because it belongs to one engine, a lookup
|
|
497
|
+
* always answers for that engine, also when several engines share an
|
|
498
|
+
* eventbus.
|
|
499
|
+
*/
|
|
500
|
+
interface IEngineServices {
|
|
501
|
+
/**
|
|
502
|
+
* Returns the configured action (from `actions` or `eventActions`) with
|
|
503
|
+
* this name.
|
|
504
|
+
*
|
|
505
|
+
* @param systemName - The action name
|
|
506
|
+
* @returns The action
|
|
507
|
+
* @throws Error for an unknown name, with a "did you mean" hint
|
|
508
|
+
*/
|
|
509
|
+
getAction(systemName: string): IAction;
|
|
510
|
+
/**
|
|
511
|
+
* Returns what the resource importer provides under this name: a custom
|
|
512
|
+
* function, registered JSON or template, or any built-in export.
|
|
513
|
+
*
|
|
514
|
+
* @param systemName - The registered name
|
|
515
|
+
* @returns The registered entry; registered JSON may be `0`, `''` or `false`
|
|
516
|
+
* @throws Error when nothing is registered under the name (the importer's
|
|
517
|
+
* "did you mean" hint is kept)
|
|
518
|
+
*/
|
|
519
|
+
getImport(systemName: string): unknown;
|
|
520
|
+
/**
|
|
521
|
+
* Creates a new instance of the class the resource importer provides under
|
|
522
|
+
* this name (a controller, for example), constructed with the engine's
|
|
523
|
+
* eventbus.
|
|
524
|
+
*
|
|
525
|
+
* @param systemName - The registered class name
|
|
526
|
+
* @returns The new instance
|
|
527
|
+
* @throws Error when nothing is registered under the name, or when it is not
|
|
528
|
+
* a class
|
|
529
|
+
*/
|
|
530
|
+
createInstance<T = unknown>(systemName: string): T;
|
|
531
|
+
/**
|
|
532
|
+
* Returns the engine's root element (its container selector). From
|
|
533
|
+
* `engine.init()` until `engine.destroy()` this is the same jQuery instance.
|
|
534
|
+
*
|
|
535
|
+
* @returns The engine root
|
|
536
|
+
*/
|
|
537
|
+
getEngineRoot(): JQuery<HTMLElement>;
|
|
538
|
+
}
|
|
534
539
|
type TOperationData = Record<string, any>;
|
|
535
540
|
type TOperationResult<T = TOperationData> = Promise<T> | T;
|
|
536
541
|
interface IOperationScope {
|
|
@@ -562,6 +567,11 @@ interface IOperationScope {
|
|
|
562
567
|
* The eventbus instance shared amongst actions and operations
|
|
563
568
|
*/
|
|
564
569
|
eventbus: IEventbus;
|
|
570
|
+
/**
|
|
571
|
+
* The services of the engine this operation runs in: looks up actions,
|
|
572
|
+
* registered imports and classes, and the engine root
|
|
573
|
+
*/
|
|
574
|
+
services: IEngineServices;
|
|
565
575
|
/**
|
|
566
576
|
* The list of operations that is currently being executed
|
|
567
577
|
*/
|
|
@@ -675,7 +685,7 @@ interface EngineErrorEvent {
|
|
|
675
685
|
name: 'engine-error';
|
|
676
686
|
args: [error: IEngineActionError];
|
|
677
687
|
}
|
|
678
|
-
type AllEvents = BeforeRequestTimelineUriEvent | BeforeRequestVideoUrlEvent | DomMutationEvent | EngineCommandErrorEvent | EngineErrorEvent | HighlightNavigationEvent | LanguageChangeEvent | NavigateToVideoUrlEvent | PushHistoryStateEvent |
|
|
688
|
+
type AllEvents = BeforeRequestTimelineUriEvent | BeforeRequestVideoUrlEvent | DomMutationEvent | EngineCommandErrorEvent | EngineErrorEvent | HighlightNavigationEvent | LanguageChangeEvent | NavigateToVideoUrlEvent | PushHistoryStateEvent | RequestCurrentLanguageEvent | RequestCurrentNavigationEvent | RequestCurrentTimelinePositionEvent | RequestCurrentVideoPositionEvent | RequestLabelCollectionEvent | RequestLabelCollectionsEvent | RequestTimelineCleanupEvent | RequestTimelineUriEvent | RequestTranslationEvent | RequestVideoCleanupEvent | RequestVideoUrlEvent | CompleteEvent | ContainerRequestEvent | CurrentTimelineChangeEvent | DurationRequestEvent | DurationEvent | FirstFrameEvent | PauseRequestEvent | PauseEvent | PlayRequestEvent | PlayToggleRequestEvent | PlayEvent | RequestCurrentTimelineEvent | ResizeRequestEvent | ResizeEvent | RestartEvent | SeekRequestEvent | SeekEvent | SeekedEvent | StopRequestEvent | StopEvent | TimeEvent | VideoCompleteEvent;
|
|
679
689
|
type EventMap = { [K in AllEvents as K['name']]: K extends {
|
|
680
690
|
returns: infer R;
|
|
681
691
|
} ? [...K['args'], callback?: (result: R) => void] : K['args']; };
|
|
@@ -692,10 +702,6 @@ type EventName = keyof EventMap;
|
|
|
692
702
|
* The untyped string overloads remain for custom request names.
|
|
693
703
|
*/
|
|
694
704
|
interface RequestMap {
|
|
695
|
-
'request-action': {
|
|
696
|
-
args: RequestActionEvent['args'];
|
|
697
|
-
returns: RequestActionEvent['returns'];
|
|
698
|
-
};
|
|
699
705
|
'request-current-language': {
|
|
700
706
|
args: RequestCurrentLanguageEvent['args'];
|
|
701
707
|
returns: RequestCurrentLanguageEvent['returns'];
|
|
@@ -704,18 +710,6 @@ interface RequestMap {
|
|
|
704
710
|
args: RequestCurrentTimelinePositionEvent['args'];
|
|
705
711
|
returns: RequestCurrentTimelinePositionEvent['returns'];
|
|
706
712
|
};
|
|
707
|
-
'request-engine-root': {
|
|
708
|
-
args: RequestEngineRootEvent['args'];
|
|
709
|
-
returns: RequestEngineRootEvent['returns'];
|
|
710
|
-
};
|
|
711
|
-
'request-function': {
|
|
712
|
-
args: RequestFunctionEvent['args'];
|
|
713
|
-
returns: RequestFunctionEvent['returns'];
|
|
714
|
-
};
|
|
715
|
-
'request-instance': {
|
|
716
|
-
args: RequestInstanceEvent['args'];
|
|
717
|
-
returns: RequestInstanceEvent['returns'];
|
|
718
|
-
};
|
|
719
713
|
'request-translation': {
|
|
720
714
|
args: RequestTranslationEvent['args'];
|
|
721
715
|
returns: RequestTranslationEvent['returns'];
|
|
@@ -869,7 +863,14 @@ interface IEventbusInterceptor {
|
|
|
869
863
|
interface IController<T extends TOperationData> {
|
|
870
864
|
name: string;
|
|
871
865
|
init(operationData: T): void;
|
|
872
|
-
|
|
866
|
+
/**
|
|
867
|
+
* Starts the controller.
|
|
868
|
+
*
|
|
869
|
+
* @param eventbus - The engine's eventbus
|
|
870
|
+
* @param services - The engine's services, for looking up actions, classes
|
|
871
|
+
* and the engine root
|
|
872
|
+
*/
|
|
873
|
+
attach(eventbus: IEventbus, services: IEngineServices): Promise<any> | void;
|
|
873
874
|
detach(eventbus: IEventbus): void;
|
|
874
875
|
}
|
|
875
876
|
/** A start and end frame. Mirrors lottie-web's `AnimationSegment`. */
|
|
@@ -1104,13 +1105,13 @@ declare class KeyboardController$1 implements IController<IKeyboardControllerOpe
|
|
|
1104
1105
|
/**
|
|
1105
1106
|
* Looks up the configured actions and starts listening for the keys.
|
|
1106
1107
|
*
|
|
1107
|
-
* @param eventbus - The eventbus
|
|
1108
|
-
*
|
|
1109
|
-
*
|
|
1110
|
-
*
|
|
1111
|
-
* keys, and keeps the
|
|
1108
|
+
* @param eventbus - The eventbus the actions report errors on
|
|
1109
|
+
* @param services - The engine services to look the actions and the engine
|
|
1110
|
+
* root up in
|
|
1111
|
+
* @throws when an action name is unknown; the message names the
|
|
1112
|
+
* controller, the action and the keys, and keeps the "did you mean" hint
|
|
1112
1113
|
*/
|
|
1113
|
-
attach(eventbus: IEventbus): void;
|
|
1114
|
+
attach(eventbus: IEventbus, services: IEngineServices): void;
|
|
1114
1115
|
/**
|
|
1115
1116
|
* Removes only the handler this controller bound, so other bindings of the
|
|
1116
1117
|
* same keys keep working, and resets the action instances so a later
|
|
@@ -1119,7 +1120,7 @@ declare class KeyboardController$1 implements IController<IKeyboardControllerOpe
|
|
|
1119
1120
|
detach(_eventbus: IEventbus): void;
|
|
1120
1121
|
private _handleKey;
|
|
1121
1122
|
private _trigger;
|
|
1122
|
-
private
|
|
1123
|
+
private _engineRootElement;
|
|
1123
1124
|
/**
|
|
1124
1125
|
* @returns The keys with `' '` replaced by `space`
|
|
1125
1126
|
* @throws when the keys are empty or name a key hotkeys-js can't match
|
|
@@ -1188,7 +1189,7 @@ declare abstract class BaseController<T extends TOperationData> implements ICont
|
|
|
1188
1189
|
*/
|
|
1189
1190
|
detach(_eventbus: IEventbus): void;
|
|
1190
1191
|
abstract init(operationData: T): void;
|
|
1191
|
-
abstract attach(eventbus: IEventbus): Promise<any> | void;
|
|
1192
|
+
abstract attach(eventbus: IEventbus, services: IEngineServices): Promise<any> | void;
|
|
1192
1193
|
}
|
|
1193
1194
|
interface ILabelControllerMetadata {
|
|
1194
1195
|
/**
|
|
@@ -1554,9 +1555,10 @@ declare class NavigationController$1 extends BaseController<INavigationControlle
|
|
|
1554
1555
|
navLookup: Record<string, any>;
|
|
1555
1556
|
navVidIdLookup: Record<string, any>;
|
|
1556
1557
|
ctrlLookup: Record<string, LabelController$1>;
|
|
1557
|
-
activeNavigationPoint: any
|
|
1558
|
+
activeNavigationPoint: any;
|
|
1558
1559
|
labelControllers: LabelController$1[];
|
|
1559
1560
|
eventbus: IEventbus | null;
|
|
1561
|
+
services: IEngineServices | null;
|
|
1560
1562
|
container: JQuery | null;
|
|
1561
1563
|
private _menuElement;
|
|
1562
1564
|
private _anchorLookup;
|
|
@@ -1567,7 +1569,7 @@ declare class NavigationController$1 extends BaseController<INavigationControlle
|
|
|
1567
1569
|
* navigation id in roots, nextId or children
|
|
1568
1570
|
*/
|
|
1569
1571
|
init(operationData: INavigationControllerOperationData): void;
|
|
1570
|
-
attach(eventbus: IEventbus): void;
|
|
1572
|
+
attach(eventbus: IEventbus, services: IEngineServices): void;
|
|
1571
1573
|
/**
|
|
1572
1574
|
* Sets the active navigation point and the menu highlight from the URL hash,
|
|
1573
1575
|
* falling back to the item with videoUrlIndex 0 when the hash is missing or
|
|
@@ -2141,7 +2143,7 @@ interface IFindInArrayOperationData {
|
|
|
2141
2143
|
/**
|
|
2142
2144
|
* @output
|
|
2143
2145
|
*/
|
|
2144
|
-
foundItem?: any
|
|
2146
|
+
foundItem?: any;
|
|
2145
2147
|
/**
|
|
2146
2148
|
* @output
|
|
2147
2149
|
*/
|
|
@@ -2506,14 +2508,16 @@ interface IMapArrayOperationData {
|
|
|
2506
2508
|
mappedArray?: any[];
|
|
2507
2509
|
}
|
|
2508
2510
|
type MathFunctionKeys = { [K in keyof Math]: Math[K] extends ((...args: any) => any) ? K : never; }[keyof Math];
|
|
2509
|
-
type MathNonFunctionKeys = { [K in keyof Math]: Math[K] extends ((...args: any) => any) ? never : K; }[keyof Math];
|
|
2510
2511
|
interface IMathOperationData {
|
|
2511
2512
|
/**
|
|
2513
|
+
* Numbers, property chains, or names of Math constants
|
|
2514
|
+
* ({@link MathNonFunctionKeys}).
|
|
2515
|
+
*
|
|
2512
2516
|
* @type=ParameterType:array
|
|
2513
2517
|
* @required
|
|
2514
2518
|
* @erased
|
|
2515
2519
|
*/
|
|
2516
|
-
args: (number | string
|
|
2520
|
+
args: (number | string)[];
|
|
2517
2521
|
/**
|
|
2518
2522
|
* @type=ParameterType:mathfunction
|
|
2519
2523
|
* @required
|
|
@@ -3028,12 +3032,13 @@ declare class DOMEventListenerController$1 implements IController<IDOMEventListe
|
|
|
3028
3032
|
/**
|
|
3029
3033
|
* Looks up the configured actions and starts listening for the DOM event.
|
|
3030
3034
|
*
|
|
3031
|
-
* @param eventbus - The eventbus
|
|
3032
|
-
* @
|
|
3033
|
-
*
|
|
3034
|
-
* DOM event, and keeps the
|
|
3035
|
+
* @param eventbus - The eventbus the actions report errors on
|
|
3036
|
+
* @param services - The engine services to look the actions up in
|
|
3037
|
+
* @throws when an action name is unknown; the message names the
|
|
3038
|
+
* controller, the action and the DOM event, and keeps the "did you mean"
|
|
3039
|
+
* hint
|
|
3035
3040
|
*/
|
|
3036
|
-
attach(eventbus: IEventbus): void;
|
|
3041
|
+
attach(eventbus: IEventbus, services: IEngineServices): void;
|
|
3037
3042
|
private _eventHandler;
|
|
3038
3043
|
/**
|
|
3039
3044
|
* Removes only the handler this controller registered, so other handlers for
|
|
@@ -3118,14 +3123,10 @@ declare function highlightNavigation(): IEventMetadata<HighlightNavigationEvent[
|
|
|
3118
3123
|
declare function languageChange(): IEventMetadata<LanguageChangeEvent['args']>;
|
|
3119
3124
|
declare function navigateToVideoUrl(): IEventMetadata<NavigateToVideoUrlEvent['args']>;
|
|
3120
3125
|
declare function pushHistoryState(): IEventMetadata<PushHistoryStateEvent['args']>;
|
|
3121
|
-
declare function requestAction$1(): IEventMetadata<RequestActionEvent['args']>;
|
|
3122
3126
|
declare function requestCurrentLanguage(): IEventMetadata<RequestCurrentLanguageEvent['args']>;
|
|
3123
3127
|
declare function requestCurrentNavigation(): IEventMetadata<RequestCurrentNavigationEvent['args']>;
|
|
3124
3128
|
declare function requestCurrentTimelinePosition(): IEventMetadata<RequestCurrentTimelinePositionEvent['args']>;
|
|
3125
3129
|
declare function requestCurrentVideoPosition(): IEventMetadata<RequestCurrentVideoPositionEvent['args']>;
|
|
3126
|
-
declare function requestEngineRoot(): IEventMetadata<RequestEngineRootEvent['args']>;
|
|
3127
|
-
declare function requestFunction(): IEventMetadata<RequestFunctionEvent['args']>;
|
|
3128
|
-
declare function requestInstance(): IEventMetadata<RequestInstanceEvent['args']>;
|
|
3129
3130
|
declare function requestLabelCollection(): IEventMetadata<RequestLabelCollectionEvent['args']>;
|
|
3130
3131
|
declare function requestLabelCollections(): IEventMetadata<RequestLabelCollectionsEvent['args']>;
|
|
3131
3132
|
declare function requestTimelineCleanup(): IEventMetadata<RequestTimelineCleanupEvent['args']>;
|
|
@@ -3156,7 +3157,7 @@ declare function timelineStop(): IEventMetadata<StopEvent['args']>;
|
|
|
3156
3157
|
declare function timelineTime(): IEventMetadata<TimeEvent['args']>;
|
|
3157
3158
|
declare function videoComplete(): IEventMetadata<VideoCompleteEvent['args']>;
|
|
3158
3159
|
declare namespace index_d_exports$1 {
|
|
3159
|
-
export { IEventMetadata, beforeRequestTimelineUri, beforeRequestVideoUrl, domMutation, engineCommandError, engineError, highlightNavigation, languageChange, navigateToVideoUrl, pushHistoryState,
|
|
3160
|
+
export { IEventMetadata, beforeRequestTimelineUri, beforeRequestVideoUrl, domMutation, engineCommandError, engineError, highlightNavigation, languageChange, navigateToVideoUrl, pushHistoryState, requestCurrentLanguage, requestCurrentNavigation, requestCurrentTimelinePosition, requestCurrentVideoPosition, requestLabelCollection, requestLabelCollections, requestTimelineCleanup, requestTimelineUri, requestTranslation, requestVideoCleanup, requestVideoUrl, timelineComplete, timelineContainerRequest, timelineCurrentTimelineChange, timelineDuration, timelineDurationRequest, timelineFirstframe, timelinePause, timelinePauseRequest, timelinePlay, timelinePlayRequest, timelinePlayToggleRequest, timelineRequestCurrentTimeline, timelineResize, timelineResizeRequest, timelineRestart, timelineSeek, timelineSeekRequest, timelineSeeked, timelineStop, timelineStopRequest, timelineTime, videoComplete };
|
|
3160
3161
|
}
|
|
3161
3162
|
declare function addClass(): IOperationMetadata<IAddClassOperationData>;
|
|
3162
3163
|
declare function addControllerToElement(): IOperationMetadata<IAddControllerToElementOperationData<TOperationData>>;
|
|
@@ -3240,5 +3241,4 @@ declare function when(): IOperationMetadata<IWhenOperationData>;
|
|
|
3240
3241
|
declare namespace index_d_exports$2 {
|
|
3241
3242
|
export { IOperationMetadata, TArrayProperyMetadata, TComplexPropertyMetadata, TConstantParametersTypes, THasDescription, THasErased, THasRequired, TOperationCategory, TParameterTypeName, TParameterTypes, TParameterTypesDelimited, TPropertiesMetadata, TPropertyMetadata, addClass, addControllerToElement, addGlobalsToOperation, animate, animateWithClass, announceToScreenReader, breakForEach, broadcastEvent, calc, clearElement, clearOperationData, clearStorage, compareDate, concatenateStrings, continueForEach, createElement, customFunction, endAction, endForEach, endWhen, extendController, filterArray, findInArray, forEach, formatDate, formatText, getAttributesFromElement, getControllerFromElement, getControllerInstance, getCurrentTime, getElementDimensions, getFocusedElement, getFormData, getImport, getQueryParams, getScrollPosition, getTextContent, httpDelete, httpPost, httpPut, invokeObjectMethod, isElementInViewport, loadFromStorage, loadJson, log, mapArray, math, otherwise, removeClass, removeControllerFromElement, removeElement, removePropertiesFromOperationData, reparentElement, replaceString, replaceText, requestAction, saveToStorage, scrollToElement, scrollToPosition, selectElement, setData, setElementAttributes, setElementContent, setFocus, setFormValue, setGlobalData, setOperationData, setStyle, setVariable, sortArray, splitString, startAction, substringText, toggleClass, toggleElement, toggleFormElement, validateForm, wait, when };
|
|
3242
3243
|
}
|
|
3243
|
-
export { index_d_exports as ctrlmetadata, index_d_exports$1 as eventmetadata, index_d_exports$2 as metadata };
|
|
3244
|
-
//# sourceMappingURL=metadata.d.mts.map
|
|
3244
|
+
export { index_d_exports as ctrlmetadata, index_d_exports$1 as eventmetadata, index_d_exports$2 as metadata };
|
package/dist/metadata.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-DTOZ5ltL.mjs";
|
|
3
3
|
|
|
4
4
|
// src/controllers/metadata/dom-event-listener-controller.ts
|
|
5
5
|
function DOMEventListenerController() {
|
|
@@ -388,22 +388,6 @@ function pushHistoryState() {
|
|
|
388
388
|
};
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
// src/eventbus/events/metadata/request-action.ts
|
|
392
|
-
function requestAction$1() {
|
|
393
|
-
return {
|
|
394
|
-
description: `Request: request-action
|
|
395
|
-
Answered through \`eventbus.request('request-action', actionName)\` by
|
|
396
|
-
EngineFactory with the configured action of that name. Throws for an
|
|
397
|
-
unknown name, with a "did you mean" hint.`,
|
|
398
|
-
category: `Engine Request`,
|
|
399
|
-
args: [{
|
|
400
|
-
name: "actionName",
|
|
401
|
-
type: "string",
|
|
402
|
-
description: "The name of the action to request"
|
|
403
|
-
}]
|
|
404
|
-
};
|
|
405
|
-
}
|
|
406
|
-
|
|
407
391
|
// src/eventbus/events/metadata/request-current-language.ts
|
|
408
392
|
function requestCurrentLanguage() {
|
|
409
393
|
return {
|
|
@@ -454,53 +438,6 @@ function requestCurrentVideoPosition() {
|
|
|
454
438
|
};
|
|
455
439
|
}
|
|
456
440
|
|
|
457
|
-
// src/eventbus/events/metadata/request-engine-root.ts
|
|
458
|
-
function requestEngineRoot() {
|
|
459
|
-
return {
|
|
460
|
-
description: `Request: request-engine-root
|
|
461
|
-
Answered through \`eventbus.request('request-engine-root')\` with the
|
|
462
|
-
engine's root element (the container selector). From \`engine.init()\` until
|
|
463
|
-
\`engine.destroy()\` every answer is the same jQuery instance. The engine also
|
|
464
|
-
answers the legacy form, a broadcast whose last argument is a callback that
|
|
465
|
-
receives the value.`,
|
|
466
|
-
category: `Engine Request`,
|
|
467
|
-
args: []
|
|
468
|
-
};
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
// src/eventbus/events/metadata/request-function.ts
|
|
472
|
-
function requestFunction() {
|
|
473
|
-
return {
|
|
474
|
-
description: `Request: request-function
|
|
475
|
-
Answered through \`eventbus.request('request-function', systemName)\` by
|
|
476
|
-
EngineFactory with the function (such as an operation) the resource
|
|
477
|
-
importer provides under that name. Throws for an unknown name.`,
|
|
478
|
-
category: `Engine Request`,
|
|
479
|
-
args: [{
|
|
480
|
-
name: "systemName",
|
|
481
|
-
type: "string",
|
|
482
|
-
description: "The name of the function to request"
|
|
483
|
-
}]
|
|
484
|
-
};
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
// src/eventbus/events/metadata/request-instance.ts
|
|
488
|
-
function requestInstance() {
|
|
489
|
-
return {
|
|
490
|
-
description: `Request: request-instance
|
|
491
|
-
Answered through \`eventbus.request('request-instance', systemName)\` by
|
|
492
|
-
EngineFactory with a new instance of the class the resource importer
|
|
493
|
-
provides under that name (a controller, for example), constructed with the
|
|
494
|
-
eventbus. Throws for an unknown name.`,
|
|
495
|
-
category: `Engine Request`,
|
|
496
|
-
args: [{
|
|
497
|
-
name: "systemName",
|
|
498
|
-
type: "string",
|
|
499
|
-
description: "The name of the class to instantiate"
|
|
500
|
-
}]
|
|
501
|
-
};
|
|
502
|
-
}
|
|
503
|
-
|
|
504
441
|
// src/eventbus/events/metadata/request-label-collection.ts
|
|
505
442
|
function requestLabelCollection() {
|
|
506
443
|
return {
|
|
@@ -884,14 +821,10 @@ var metadata_exports$1 = /* @__PURE__ */ __exportAll({
|
|
|
884
821
|
languageChange: () => languageChange,
|
|
885
822
|
navigateToVideoUrl: () => navigateToVideoUrl,
|
|
886
823
|
pushHistoryState: () => pushHistoryState,
|
|
887
|
-
requestAction: () => requestAction$1,
|
|
888
824
|
requestCurrentLanguage: () => requestCurrentLanguage,
|
|
889
825
|
requestCurrentNavigation: () => requestCurrentNavigation,
|
|
890
826
|
requestCurrentTimelinePosition: () => requestCurrentTimelinePosition,
|
|
891
827
|
requestCurrentVideoPosition: () => requestCurrentVideoPosition,
|
|
892
|
-
requestEngineRoot: () => requestEngineRoot,
|
|
893
|
-
requestFunction: () => requestFunction,
|
|
894
|
-
requestInstance: () => requestInstance,
|
|
895
828
|
requestLabelCollection: () => requestLabelCollection,
|
|
896
829
|
requestLabelCollections: () => requestLabelCollections,
|
|
897
830
|
requestTimelineCleanup: () => requestTimelineCleanup,
|
|
@@ -1278,8 +1211,8 @@ function customFunction() {
|
|
|
1278
1211
|
description: `This operation retrieves a custom function defined by the given system name
|
|
1279
1212
|
and invokes it with the current operation data and eventbus.
|
|
1280
1213
|
|
|
1281
|
-
The function is looked up with
|
|
1282
|
-
|
|
1214
|
+
The function is looked up with \`this.services.getImport\`, which answers from
|
|
1215
|
+
the engine's resource importer. Register the function
|
|
1283
1216
|
with the \`EligiusResourceImporter\` constructor:
|
|
1284
1217
|
\`new EligiusResourceImporter({functions: {myFunction}})\`.
|
|
1285
1218
|
|
|
@@ -1602,8 +1535,8 @@ function getImport() {
|
|
|
1602
1535
|
description: `This operation retrieves the import specified by the given \`systemName\` and
|
|
1603
1536
|
assigns it to the \`importedInstance\` property on the current operaton date.
|
|
1604
1537
|
|
|
1605
|
-
The import is looked up with
|
|
1606
|
-
|
|
1538
|
+
The import is looked up with \`this.services.getImport\`, which answers from
|
|
1539
|
+
the engine's resource importer. Functions, templates
|
|
1607
1540
|
and JSON registered with the \`EligiusResourceImporter\` constructor
|
|
1608
1541
|
(\`new EligiusResourceImporter({json: {settings}})\`) can be imported this
|
|
1609
1542
|
way, as can every built-in operation, controller and provider export.`,
|