eligius 1.5.2 → 2.0.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.
Files changed (45) hide show
  1. package/README.md +107 -25
  2. package/dist/index.d.mts +1882 -396
  3. package/dist/index.mjs +2618 -1442
  4. package/dist/index.mjs.map +1 -1
  5. package/jsonschema/operation-templates/animate-with-class.json +1 -3
  6. package/jsonschema/operation-templates/clear-operation-data.json +1 -3
  7. package/jsonschema/operation-templates/clear-storage.json +1 -3
  8. package/jsonschema/operation-templates/concatenate-strings.json +1 -3
  9. package/jsonschema/operation-templates/create-element.json +1 -3
  10. package/jsonschema/operation-templates/filter-array.json +2 -6
  11. package/jsonschema/operation-templates/find-in-array.json +2 -6
  12. package/jsonschema/operation-templates/get-query-params.json +1 -3
  13. package/jsonschema/operation-templates/http-delete.json +1 -3
  14. package/jsonschema/operation-templates/http-post.json +1 -3
  15. package/jsonschema/operation-templates/http-put.json +1 -3
  16. package/jsonschema/operation-templates/invoke-object-method.json +1 -3
  17. package/jsonschema/operation-templates/load-json.json +1 -3
  18. package/jsonschema/operation-templates/log.json +1 -3
  19. package/jsonschema/operation-templates/select-element.json +1 -3
  20. package/jsonschema/operation-templates/set-operation-data.json +1 -3
  21. package/jsonschema/operation-templates/sort-array.json +2 -6
  22. package/jsonschema/operation-templates/split-string.json +1 -3
  23. package/jsonschema/operation-templates/substring-text.json +1 -3
  24. package/jsonschema/operation-templates/validate-form.json +1 -3
  25. package/jsonschema/operations/animate-with-class.json +1 -3
  26. package/jsonschema/operations/clear-operation-data.json +1 -3
  27. package/jsonschema/operations/clear-storage.json +1 -3
  28. package/jsonschema/operations/concatenate-strings.json +1 -3
  29. package/jsonschema/operations/create-element.json +1 -3
  30. package/jsonschema/operations/filter-array.json +2 -6
  31. package/jsonschema/operations/find-in-array.json +2 -6
  32. package/jsonschema/operations/get-query-params.json +1 -3
  33. package/jsonschema/operations/http-delete.json +1 -3
  34. package/jsonschema/operations/http-post.json +1 -3
  35. package/jsonschema/operations/http-put.json +1 -3
  36. package/jsonschema/operations/invoke-object-method.json +1 -3
  37. package/jsonschema/operations/load-json.json +1 -3
  38. package/jsonschema/operations/log.json +1 -3
  39. package/jsonschema/operations/select-element.json +1 -3
  40. package/jsonschema/operations/set-operation-data.json +1 -3
  41. package/jsonschema/operations/sort-array.json +2 -6
  42. package/jsonschema/operations/split-string.json +1 -3
  43. package/jsonschema/operations/substring-text.json +1 -3
  44. package/jsonschema/operations/validate-form.json +1 -3
  45. package/package.json +8 -7
package/dist/index.d.mts CHANGED
@@ -46,57 +46,415 @@ interface HighlightNavigationEvent {
46
46
  }
47
47
  //#endregion
48
48
  //#region src/timelineproviders/types.d.ts
49
- type TPlayState = 'stopped' | 'running';
50
- interface ITimelineProvider {
51
- playState: TPlayState;
49
+ /**
50
+ * Position source state.
51
+ * - `active`: Source is emitting position updates
52
+ * - `suspended`: Source is paused, position preserved
53
+ * - `inactive`: Source is stopped, position reset to initial state
54
+ */
55
+ type TSourceState = 'active' | 'suspended' | 'inactive';
56
+ /**
57
+ * Boundary type for position source events.
58
+ * - `start`: Position reached the beginning (e.g., after reverse or loop)
59
+ * - `end`: Position reached the end of duration
60
+ */
61
+ type TBoundary = 'start' | 'end';
62
+ /**
63
+ * Core interface for timeline position sources.
64
+ *
65
+ * A position source provides the current position within a timeline and emits
66
+ * position updates. The source of position can vary: elapsed time (RAF),
67
+ * media playback (video), scroll position, mouse position, external data, etc.
68
+ *
69
+ * @example
70
+ * ```typescript
71
+ * // RAF-based position source
72
+ * const source = new RafPositionSource(config);
73
+ * await source.init();
74
+ *
75
+ * source.onPosition((position) => {
76
+ * console.log(`Current position: ${position}`);
77
+ * });
78
+ *
79
+ * source.onBoundaryReached((boundary) => {
80
+ * if (boundary === 'end') console.log('Reached end');
81
+ * });
82
+ *
83
+ * await source.activate();
84
+ * ```
85
+ */
86
+ interface IPositionSource {
87
+ /** Current state of the position source */
88
+ readonly state: TSourceState;
89
+ /**
90
+ * Whether to loop when reaching the end boundary.
91
+ *
92
+ * When `true`, the source resets to position 0 and continues.
93
+ * When `false`, the source emits `'end'` boundary and deactivates.
94
+ *
95
+ * For sources where looping is not applicable (e.g., mouse position),
96
+ * this property has no effect.
97
+ */
52
98
  loop: boolean;
99
+ /**
100
+ * Initialize the position source.
101
+ *
102
+ * Performs any async setup required before the source can be activated.
103
+ * For example: loading media, binding event listeners, establishing connections.
104
+ *
105
+ * @throws If initialization fails (e.g., media load error, connection refused)
106
+ */
53
107
  init(): Promise<void>;
54
- start(): void;
55
- stop(): void;
56
- pause(): void;
57
- seek(position: number): Promise<number>;
58
- playlistItem(uri: string): void;
108
+ /**
109
+ * Destroy the position source and release all resources.
110
+ *
111
+ * After calling destroy, the source cannot be reused.
112
+ * Removes event listeners, closes connections, clears timers.
113
+ */
114
+ destroy(): void;
115
+ /**
116
+ * Activate the position source to begin emitting position updates.
117
+ *
118
+ * Transitions state from `inactive` or `suspended` to `active`.
119
+ *
120
+ * @throws If activation fails (e.g., autoplay blocked, permission denied)
121
+ */
122
+ activate(): Promise<void>;
123
+ /**
124
+ * Suspend the position source, preserving current position.
125
+ *
126
+ * Transitions state from `active` to `suspended`.
127
+ * Position updates stop but position is preserved for later resumption.
128
+ */
129
+ suspend(): void;
130
+ /**
131
+ * Deactivate the position source and reset to initial state.
132
+ *
133
+ * Transitions state to `inactive`.
134
+ * Position is reset (typically to 0).
135
+ */
136
+ deactivate(): void;
137
+ /**
138
+ * Get the current position.
139
+ *
140
+ * @returns Current position in seconds (or source-specific units)
141
+ */
59
142
  getPosition(): number;
143
+ /**
144
+ * Get the total duration.
145
+ *
146
+ * @returns Duration in seconds (or source-specific units), or `Infinity` for unbounded sources
147
+ */
60
148
  getDuration(): number;
149
+ /**
150
+ * Register a callback for position updates.
151
+ *
152
+ * Called whenever the position changes while the source is active.
153
+ * Frequency depends on the source type (e.g., RAF tick, video timeupdate).
154
+ *
155
+ * @param callback - Function receiving the current position
156
+ */
157
+ onPosition(callback: (position: number) => void): void;
158
+ /**
159
+ * Register a callback for boundary events.
160
+ *
161
+ * Called when position reaches a boundary (start or end).
162
+ * For looping sources, `'end'` is emitted before reset.
163
+ *
164
+ * @param callback - Function receiving the boundary type
165
+ */
166
+ onBoundaryReached(callback: (boundary: TBoundary) => void): void;
167
+ /**
168
+ * Register a callback for when the source becomes active.
169
+ *
170
+ * Called once each time the source transitions to the `active` state.
171
+ * This is equivalent to "first frame" semantics - for RAF sources it's
172
+ * the first tick, for video sources it's when playback actually starts.
173
+ *
174
+ * @param callback - Function called when source becomes active
175
+ */
176
+ onActivated(callback: () => void): void;
177
+ }
178
+ /**
179
+ * Interface for position sources that support seeking to arbitrary positions.
180
+ *
181
+ * Not all position sources are seekable. For example:
182
+ * - Seekable: RAF, video, scroll (programmatic), step-based
183
+ * - Not seekable: mouse position, external WebSocket, live streams
184
+ *
185
+ * @example
186
+ * ```typescript
187
+ * if (isSeekable(source)) {
188
+ * const actualPosition = await source.seek(30.5);
189
+ * console.log(`Seeked to: ${actualPosition}`);
190
+ * }
191
+ * ```
192
+ */
193
+ interface ISeekable {
194
+ /**
195
+ * Seek to a specific position.
196
+ *
197
+ * @param position - Target position in seconds (or source-specific units)
198
+ * @returns Actual position after seek (may differ from requested if clamped)
199
+ */
200
+ seek(position: number): Promise<number>;
201
+ }
202
+ /**
203
+ * Type guard to check if a position source is seekable.
204
+ *
205
+ * @param source - Position source to check
206
+ * @returns `true` if source implements ISeekable
207
+ */
208
+ declare function isSeekable(source: IPositionSource): source is IPositionSource & ISeekable;
209
+ /**
210
+ * Interface for managing a collection of timeline items.
211
+ *
212
+ * A playlist allows switching between multiple timeline configurations
213
+ * (e.g., multiple videos, multiple animation sequences).
214
+ *
215
+ * @typeParam TItem - Type of playlist items (default: unknown)
216
+ *
217
+ * @example
218
+ * ```typescript
219
+ * playlist.onItemChange((item) => {
220
+ * console.log(`Switched to: ${item.uri}`);
221
+ * });
222
+ *
223
+ * playlist.selectItem('chapter-2');
224
+ * ```
225
+ */
226
+ interface IPlaylist<TItem = unknown> {
227
+ /** Currently active playlist item */
228
+ readonly currentItem: TItem;
229
+ /** All items in the playlist */
230
+ readonly items: readonly TItem[];
231
+ /**
232
+ * Select a playlist item by identifier.
233
+ *
234
+ * @param identifier - Unique identifier for the item (e.g., URI, ID)
235
+ * @throws If no item matches the identifier
236
+ */
237
+ selectItem(identifier: string): void;
238
+ /**
239
+ * Register a callback for item changes.
240
+ *
241
+ * Called whenever the current item changes via `selectItem()`.
242
+ *
243
+ * @param callback - Function receiving the new current item
244
+ */
245
+ onItemChange(callback: (item: TItem) => void): void;
246
+ }
247
+ /**
248
+ * Interface for providing the DOM container where content is rendered.
249
+ *
250
+ * The container is where operations render their output (elements, animations, etc.).
251
+ * For some sources (video), the container is intrinsic. For others (WebSocket),
252
+ * the container is a separate concern configured independently.
253
+ *
254
+ * @example
255
+ * ```typescript
256
+ * containerProvider.onContainerReady(() => {
257
+ * const $container = containerProvider.getContainer();
258
+ * $container?.append('<div class="content">Loaded!</div>');
259
+ * });
260
+ * ```
261
+ */
262
+ interface IContainerProvider {
263
+ /**
264
+ * Get the container element.
265
+ *
266
+ * @returns jQuery-wrapped container element, or `undefined` if not available
267
+ */
61
268
  getContainer(): JQuery<HTMLElement> | undefined;
62
- destroy(): void;
63
- onTime(callback: (position: number) => void): void;
64
- onComplete(callback: () => void): void;
65
- onRestart(callback: () => void): void;
66
- onFirstFrame(callback: () => void): void;
269
+ /**
270
+ * Register a callback for when the container is ready.
271
+ *
272
+ * Called once when the container becomes available and ready for content.
273
+ * For video sources, this corresponds to the first frame.
274
+ * For DOM containers, this is called after the element is found/created.
275
+ *
276
+ * @param callback - Function called when container is ready
277
+ */
278
+ onContainerReady(callback: () => void): void;
67
279
  }
68
280
  //#endregion
69
281
  //#region src/types.d.ts
70
- type KeysOfType<T$1, U> = { [P in keyof T$1]-?: T$1[P] extends U | undefined ? P : never }[keyof T$1];
282
+ /**
283
+ * Event map for EligiusEngine
284
+ * Maps event names to their argument tuples
285
+ *
286
+ * Note: Must be a `type` alias (not `interface`) for TypedEventEmitter constraint
287
+ */
288
+ type EngineEvents = {
289
+ /** Playback started */
290
+ start: [];
291
+ /** Playback paused */
292
+ pause: [];
293
+ /** Playback stopped */
294
+ stop: [];
295
+ /** Timeline position changed */
296
+ time: [position: number];
297
+ /** Duration became available */
298
+ duration: [duration: number];
299
+ /** Seek operation initiated */
300
+ seekStart: [target: number, current: number, duration: number];
301
+ /** Seek operation completed */
302
+ seekComplete: [position: number, duration: number];
303
+ /** Timeline switched to different URI */
304
+ timelineChange: [uri: string];
305
+ /** Timeline playback completed */
306
+ timelineComplete: [];
307
+ /** First frame of timeline rendered */
308
+ timelineFirstFrame: [];
309
+ /** Timeline looped/restarted */
310
+ timelineRestart: [];
311
+ /** Engine initialization completed */
312
+ initialized: [];
313
+ /** Engine destroyed */
314
+ destroyed: [];
315
+ };
316
+ /**
317
+ * Event map for LanguageManager
318
+ *
319
+ * Note: Must be a `type` alias (not `interface`) for TypedEventEmitter constraint
320
+ */
321
+ type LanguageEvents = {
322
+ /** Language changed */
323
+ change: [language: TLanguageCode, previousLanguage: TLanguageCode];
324
+ };
325
+ /**
326
+ * Manages multi-language labels with explicit, testable API
327
+ */
328
+ interface ILanguageManager {
329
+ /** Current language code (e.g., 'en-US', 'nl-NL') */
330
+ readonly language: string;
331
+ /** List of available language codes, derived from unique languages in label collections */
332
+ readonly availableLanguages: string[];
333
+ /**
334
+ * Subscribe to language manager events
335
+ * @param event - Event name
336
+ * @param handler - Event handler
337
+ * @returns Unsubscribe function
338
+ */
339
+ on<K$1 extends keyof LanguageEvents>(event: K$1, handler: (...args: LanguageEvents[K$1]) => void): () => void;
340
+ /**
341
+ * Change the current language
342
+ * @param language - New language code
343
+ * @throws If language code is empty or null
344
+ */
345
+ setLanguage(language: TLanguageCode): void;
346
+ /**
347
+ * Get a label collection by ID
348
+ * @param collectionId - Label collection ID
349
+ * @returns Label array or undefined if not found
350
+ */
351
+ getLabelCollection(collectionId: string): ILabel[] | undefined;
352
+ /**
353
+ * Get multiple label collections by IDs
354
+ * @param collectionIds - Array of label collection IDs
355
+ * @returns Array of label arrays (undefined for not found collections)
356
+ */
357
+ getLabelCollections(collectionIds: string[]): (ILabel[] | undefined)[];
358
+ /**
359
+ * Clean up resources
360
+ */
361
+ destroy(): void;
362
+ }
363
+ type KeysOfType<T, U> = { [P in keyof T]-?: T[P] extends U | undefined ? P : never }[keyof T];
364
+ /**
365
+ * Result of creating an engine via the factory
366
+ */
367
+ interface IEngineFactoryResult {
368
+ /** The engine instance */
369
+ engine: IEligiusEngine;
370
+ /** The language manager instance */
371
+ languageManager: ILanguageManager;
372
+ /** The eventbus for external consumers */
373
+ eventbus: IEventbus;
374
+ /**
375
+ * Destroy everything - engine, adapters, and cleanup
376
+ */
377
+ destroy: () => Promise<void>;
378
+ }
71
379
  /**
72
380
  * Describes an object that is capable of processing the given configuration and constructing an IEligiusEngine
73
381
  * based on this configuration.
74
382
  */
75
383
  interface IEngineFactory {
76
384
  /**
77
- * Returns a fully configured IEligiusEngine instance.
78
- *
79
- * @param engineConfig The given configuration
80
- * @param resolver An optional resolver to process the given IEngineConfiguration. When not provided the IEngineFactory is expected to create their own instance.
385
+ * Create a fully wired engine with adapters
386
+ * @param configuration - Engine configuration
387
+ * @param resolver - Optional custom configuration resolver
388
+ * @returns Engine result with engine, language manager, eventbus, and destroy function
389
+ */
390
+ createEngine(configuration: IEngineConfiguration, resolver?: IConfigurationResolver): IEngineFactoryResult;
391
+ /**
392
+ * Destroy the factory and its resources
81
393
  */
82
- createEngine(engineConfig: IEngineConfiguration, resolver?: IConfigurationResolver): IEligiusEngine;
394
+ destroy(): void;
83
395
  }
84
396
  interface IEngineFactoryOptions {
85
397
  eventbus?: IEventbus;
86
- devtools?: boolean;
87
398
  }
88
399
  /**
89
- * Describes an object that is play one or more timelines, defined by a given set of ITimelineProviders.
400
+ * The Eligius timeline engine with explicit, testable API
90
401
  */
91
402
  interface IEligiusEngine {
403
+ /** Current timeline position in seconds */
404
+ readonly position: number;
405
+ /** Timeline duration in seconds, undefined if not yet available */
406
+ readonly duration: number | undefined;
407
+ /** Current playback state */
408
+ readonly playState: 'playing' | 'paused' | 'stopped';
409
+ /** URI of the currently active timeline */
410
+ readonly currentTimelineUri: string;
411
+ /** Container element for the active timeline provider */
412
+ readonly container: JQuery<HTMLElement> | undefined;
413
+ /** Root element of the engine (container selector) */
414
+ readonly engineRoot: JQuery<HTMLElement>;
415
+ /**
416
+ * Subscribe to engine events
417
+ * @param event - Event name
418
+ * @param handler - Event handler
419
+ * @returns Unsubscribe function
420
+ */
421
+ on<K$1 extends keyof EngineEvents>(event: K$1, handler: (...args: EngineEvents[K$1]) => void): () => void;
422
+ /**
423
+ * Initialize the engine
424
+ * Creates layout, initializes timeline provider, executes init actions
425
+ * @returns The initialized position source
426
+ */
427
+ init(): Promise<IPositionSource>;
428
+ /**
429
+ * Destroy the engine
430
+ * Cleans up resources, ends actions, removes event listeners
431
+ */
432
+ destroy(): Promise<void>;
92
433
  /**
93
- * Do the preparations needed in order to run the given timelines.
434
+ * Start playback
435
+ * @throws If autoplay is blocked (video provider)
94
436
  */
95
- init(): Promise<ITimelineProvider>;
437
+ start(): Promise<void>;
96
438
  /**
97
- * Do the necessary cleanup before discarding this instance.
439
+ * Pause playback
98
440
  */
99
- destroy(): Promise<void>;
441
+ pause(): void;
442
+ /**
443
+ * Stop playback and reset to beginning
444
+ */
445
+ stop(): void;
446
+ /**
447
+ * Seek to a specific position
448
+ * @param position - Target position in seconds
449
+ * @returns Actual position after seek
450
+ */
451
+ seek(position: number): Promise<number>;
452
+ /**
453
+ * Switch to a different timeline
454
+ * @param uri - Timeline URI to switch to
455
+ * @param position - Optional starting position
456
+ */
457
+ switchTimeline(uri: string, position?: number): Promise<void>;
100
458
  }
101
459
  /**
102
460
  * Describes an object that acts as a registry for imported resources.
@@ -116,7 +474,7 @@ interface IResourceImporter extends ISimpleResourceImporter {
116
474
  interface IConfigurationResolver {
117
475
  process(configuration: IEngineConfiguration, actionRegistryListener?: IEventbusListener): [Record<string, IAction>, IResolvedEngineConfiguration];
118
476
  }
119
- type TResultCallback<T$1> = (result: T$1) => void;
477
+ type TResultCallback<T> = (result: T) => void;
120
478
  /**
121
479
  * Describes a duration of time expressed in a start and an optional end range with a one second interval.
122
480
  */
@@ -133,12 +491,20 @@ interface IStrictDuration extends Required<IDuration> {}
133
491
  */
134
492
  type TimelineTypes = 'animation' | 'mediaplayer';
135
493
  /**
494
+ * Contains the decomposed components for a timeline provider.
136
495
  *
496
+ * Timeline providers are assembled from:
497
+ * - Position source: drives timeline position (required)
498
+ * - Container provider: manages render container (optional)
499
+ * - Playlist: manages multi-item navigation (optional)
137
500
  */
138
501
  interface ITimelineProviderInfo {
139
- id: string;
140
- vendor: string;
141
- provider: ITimelineProvider;
502
+ /** The position source driving timeline position */
503
+ positionSource: IPositionSource;
504
+ /** Optional container provider for DOM element management */
505
+ containerProvider?: IContainerProvider;
506
+ /** Optional playlist for multi-item timelines */
507
+ playlist?: IPlaylist;
142
508
  }
143
509
  interface ILanguageLabel {
144
510
  id: string;
@@ -175,7 +541,7 @@ interface ISubtitle {
175
541
  duration: IStrictDuration;
176
542
  text: string;
177
543
  }
178
- type RequireKeys<T$1, K$1 extends keyof T$1> = { [P in K$1]-?: T$1[P] };
544
+ type RequireKeys<T, K$1 extends keyof T> = { [P in K$1]-?: T[P] };
179
545
  //#endregion
180
546
  //#region src/eventbus/events/language-change.d.ts
181
547
  /**
@@ -248,11 +614,12 @@ interface RequestCurrentNavigationEvent {
248
614
  //#region src/eventbus/events/request-current-timeline-position.d.ts
249
615
  /**
250
616
  * Event: request-current-timeline-position
617
+ * @param callback - Callback that receives the current timeline position
251
618
  * @category Engine Request
252
619
  */
253
620
  interface RequestCurrentTimelinePositionEvent {
254
621
  name: 'request-current-timeline-position';
255
- args: [];
622
+ args: [callback: TResultCallback<number>];
256
623
  }
257
624
  //#endregion
258
625
  //#region src/eventbus/events/request-current-video-position.d.ts
@@ -338,11 +705,13 @@ interface RequestTimelineCleanupEvent {
338
705
  //#region src/eventbus/events/request-timeline-uri.d.ts
339
706
  /**
340
707
  * Event: request-timeline-uri
708
+ * @param uri - The timeline URI to load
709
+ * @param position - Optional start position (defaults to 0)
341
710
  * @category Engine Request
342
711
  */
343
712
  interface RequestTimelineUriEvent {
344
713
  name: 'request-timeline-uri';
345
- args: [];
714
+ args: [uri: string, position?: number];
346
715
  }
347
716
  //#endregion
348
717
  //#region src/eventbus/events/request-video-cleanup.d.ts
@@ -485,11 +854,12 @@ interface PlayEvent {
485
854
  //#region src/eventbus/events/timeline-request-current-timeline.d.ts
486
855
  /**
487
856
  * Event: timeline-request-current-timeline
857
+ * @param callback - Callback that receives the current timeline URI
488
858
  * @category Engine Request
489
859
  */
490
860
  interface RequestCurrentTimelineEvent {
491
861
  name: 'timeline-request-current-timeline';
492
- args: [];
862
+ args: [callback: TResultCallback<string>];
493
863
  }
494
864
  //#endregion
495
865
  //#region src/eventbus/events/timeline-resize-request.d.ts
@@ -608,6 +978,7 @@ type EventName = keyof EventMap;
608
978
  //#region src/eventbus/types.d.ts
609
979
  type TEventHandler = (...args: any[]) => void;
610
980
  type TEventbusRemover = () => void;
981
+ type TRequestResponder<T = unknown> = (...args: any[]) => T;
611
982
  interface IEventbus {
612
983
  clear(): void;
613
984
  on<E extends EventName>(eventName: E, eventHandler: (...args: EventMap[E]) => void, eventTopic?: string): TEventbusRemover;
@@ -615,6 +986,35 @@ interface IEventbus {
615
986
  once<E extends EventName>(eventName: E, eventHandler: (...args: EventMap[E]) => void, eventTopic?: string): TEventbusRemover;
616
987
  broadcast<E extends EventName>(eventName: E, args: EventMap[E]): void;
617
988
  broadcastForTopic<E extends EventName>(eventName: E, eventTopic: string, args: EventMap[E]): void;
989
+ /**
990
+ * Register a responder for synchronous request/response queries.
991
+ * Only the first registered responder for an event will be called.
992
+ *
993
+ * @param eventName - The request event name
994
+ * @param responder - Function that returns the response value
995
+ * @param eventTopic - Optional topic for topic-specific responders
996
+ * @returns Function to unregister the responder
997
+ */
998
+ onRequest<T>(eventName: string, responder: TRequestResponder<T>, eventTopic?: string): TEventbusRemover;
999
+ /**
1000
+ * Send a synchronous request and get an immediate response.
1001
+ * Returns undefined if no responder is registered.
1002
+ *
1003
+ * @param eventName - The request event name
1004
+ * @param args - Arguments to pass to the responder
1005
+ * @returns The response value, or undefined if no responder
1006
+ */
1007
+ request<T>(eventName: string, ...args: unknown[]): T | undefined;
1008
+ /**
1009
+ * Send a synchronous request for a specific topic.
1010
+ * Returns undefined if no responder is registered for that topic.
1011
+ *
1012
+ * @param eventName - The request event name
1013
+ * @param eventTopic - The topic to target
1014
+ * @param args - Arguments to pass to the responder
1015
+ * @returns The response value, or undefined if no responder
1016
+ */
1017
+ requestForTopic<T>(eventName: string, eventTopic: string, ...args: unknown[]): T | undefined;
618
1018
  registerEventlistener(eventbusListener: IEventbusListener): TEventbusRemover;
619
1019
  registerInterceptor(eventName: string, interceptor: IEventbusInterceptor, eventTopic?: string): TEventbusRemover;
620
1020
  }
@@ -637,11 +1037,37 @@ declare class ActionRegistryEventbusListener implements IEventbusListener {
637
1037
  }
638
1038
  //#endregion
639
1039
  //#region src/eventbus/eventbus.d.ts
1040
+ /**
1041
+ * Central event bus for pub/sub communication and synchronous request/response queries.
1042
+ *
1043
+ * The eventbus supports:
1044
+ * - **Pub/Sub**: `on()`, `once()`, `off()`, `broadcast()`, `broadcastForTopic()`
1045
+ * - **Request/Response**: `onRequest()`, `request()`, `requestForTopic()` for synchronous queries
1046
+ * - **Interceptors**: Transform event arguments before handlers receive them
1047
+ * - **Listeners**: Global event observers for logging/debugging
1048
+ *
1049
+ * @example Pub/Sub pattern
1050
+ * ```ts
1051
+ * const remover = eventbus.on('timeline-play', () => console.log('Playing'));
1052
+ * eventbus.broadcast('timeline-play', []);
1053
+ * remover(); // Unsubscribe
1054
+ * ```
1055
+ *
1056
+ * @example Request/Response pattern
1057
+ * ```ts
1058
+ * eventbus.onRequest('request-instance', (name) => new MyClass(name));
1059
+ * const instance = eventbus.request<MyClass>('request-instance', 'test');
1060
+ * ```
1061
+ */
640
1062
  declare class Eventbus implements IEventbus {
641
1063
  private eventHandlers;
642
1064
  private eventInterceptors;
643
1065
  private eventListeners;
1066
+ private requestResponders;
644
1067
  constructor();
1068
+ /**
1069
+ * Clears all handlers, listeners, interceptors, and request responders.
1070
+ */
645
1071
  clear(): void;
646
1072
  _getEventInterceptors(eventName: string, eventTopic?: string): IEventbusInterceptor[];
647
1073
  _getEventHandlers(eventName: string, eventTopic?: string): TEventHandler[];
@@ -652,6 +1078,11 @@ declare class Eventbus implements IEventbus {
652
1078
  broadcastForTopic(eventName: string, eventTopic: string, args: any[]): void;
653
1079
  registerEventlistener(eventbusListener: IEventbusListener): TEventbusRemover;
654
1080
  registerInterceptor(eventName: string, interceptor: IEventbusInterceptor, eventTopic?: string): TEventbusRemover;
1081
+ onRequest<T>(eventName: string, responder: TRequestResponder<T>, eventTopic?: string): TEventbusRemover;
1082
+ request<T>(eventName: string, ...args: unknown[]): T | undefined;
1083
+ requestForTopic<T>(eventName: string, eventTopic: string, ...args: unknown[]): T | undefined;
1084
+ private _getRequestResponders;
1085
+ private _callResponder;
655
1086
  _callHandlers(eventName: string, eventTopic: string | undefined, args?: any): void;
656
1087
  }
657
1088
  //#endregion
@@ -701,7 +1132,7 @@ declare class RequestVideoUriInterceptor implements IEventbusInterceptor {
701
1132
  //#endregion
702
1133
  //#region src/operation/types.d.ts
703
1134
  type TOperationData = Record<string, any>;
704
- type TOperationResult<T$1 = TOperationData> = Promise<T$1> | T$1;
1135
+ type TOperationResult<T = TOperationData> = Promise<T> | T;
705
1136
  interface IOperationScope {
706
1137
  /**
707
1138
  * When inside a loop, this is the current iteration of said loop
@@ -756,30 +1187,14 @@ interface IOperationScope {
756
1187
  */
757
1188
  variables?: Record<string, unknown>;
758
1189
  }
759
- type TOperation<T$1 extends TOperationData = TOperationData, RT = T$1> = (this: IOperationScope, operationData: T$1) => TOperationResult<RT>;
760
- type ExtractOperationData<T$1 extends TOperation<TOperationData>> = T$1 extends TOperation<infer K> ? K : never;
761
- type ExtractReturnedOperationData<T$1 extends TOperation<TOperationData, TOperationData>> = T$1 extends TOperation<any, infer K> ? unknown extends K ? ExtractOperationData<T$1> : K : never;
762
- //#endregion
763
- //#region src/action/types.d.ts
764
- interface IAction {
765
- id: string;
766
- name: string;
767
- startOperations: IResolvedOperation[];
768
- start(initOperationData?: TOperationData): Promise<TOperationData>;
769
- }
770
- interface IEndableAction extends IAction {
771
- endOperations: IResolvedOperation[];
772
- end(initOperationData?: TOperationData): Promise<TOperationData>;
773
- }
774
- interface ITimelineAction extends IEndableAction {
775
- get active(): boolean;
776
- duration: IStrictDuration;
777
- }
1190
+ type TOperation<T extends TOperationData = TOperationData, RT = T> = (this: IOperationScope, operationData: T) => TOperationResult<RT>;
1191
+ type ExtractOperationData<T extends TOperation<TOperationData>> = T extends TOperation<infer K> ? K : never;
1192
+ type ExtractReturnedOperationData<T extends TOperation<TOperationData, TOperationData>> = T extends TOperation<any, infer K> ? unknown extends K ? ExtractOperationData<T> : K : never;
778
1193
  //#endregion
779
1194
  //#region src/controllers/types.d.ts
780
- interface IController<T$1 extends TOperationData> {
1195
+ interface IController<T extends TOperationData> {
781
1196
  name: string;
782
- init(operationData: T$1): void;
1197
+ init(operationData: T): void;
783
1198
  attach(eventbus: IEventbus): Promise<any> | void;
784
1199
  detach(eventbus: IEventbus): void;
785
1200
  }
@@ -854,8 +1269,8 @@ declare class DOMEventListenerController implements IController<IDOMEventListene
854
1269
  * }
855
1270
  * ```
856
1271
  */
857
- declare abstract class BaseController<T$1 extends TOperationData> implements IController<T$1> {
858
- operationData: T$1 | null;
1272
+ declare abstract class BaseController<T extends TOperationData> implements IController<T> {
1273
+ operationData: T | null;
859
1274
  abstract name: string;
860
1275
  protected eventListeners: TEventbusRemover[];
861
1276
  /**
@@ -883,7 +1298,7 @@ declare abstract class BaseController<T$1 extends TOperationData> implements ICo
883
1298
  * @param _eventbus - The eventbus (ignored, included for IController compatibility)
884
1299
  */
885
1300
  detach(_eventbus: IEventbus): void;
886
- abstract init(operationData: T$1): void;
1301
+ abstract init(operationData: T): void;
887
1302
  abstract attach(eventbus: IEventbus): Promise<any> | void;
888
1303
  }
889
1304
  //#endregion
@@ -1236,6 +1651,9 @@ interface ISubtitlesControllerOperationData {
1236
1651
  * @dependency
1237
1652
  */
1238
1653
  selectedElement: JQuery;
1654
+ /**
1655
+ * @type=ParameterType:languagecode
1656
+ */
1239
1657
  language: TLanguageCode;
1240
1658
  /**
1241
1659
  * @type=ParameterType:array
@@ -1284,7 +1702,7 @@ interface IAddClassOperationData {
1284
1702
  declare const addClass: TOperation<IAddClassOperationData, Omit<IAddClassOperationData, 'className'>>;
1285
1703
  //#endregion
1286
1704
  //#region src/operation/add-controller-to-element.d.ts
1287
- type IAddControllerToElementOperationData<T$1 extends TOperationData = TOperationData> = {
1705
+ type IAddControllerToElementOperationData<T extends TOperationData = TOperationData> = {
1288
1706
  /**
1289
1707
  * @dependency
1290
1708
  */
@@ -1292,8 +1710,8 @@ type IAddControllerToElementOperationData<T$1 extends TOperationData = TOperatio
1292
1710
  /**
1293
1711
  * @dependency
1294
1712
  */
1295
- controllerInstance: IController<T$1>;
1296
- } & T$1;
1713
+ controllerInstance: IController<T>;
1714
+ } & T;
1297
1715
  /**
1298
1716
  * This operation adds the specified controller instance to the given selected element.
1299
1717
  *
@@ -1624,13 +2042,13 @@ declare const continueForEach: TOperation<TOperationData>;
1624
2042
  //#endregion
1625
2043
  //#region src/operation/create-element.d.ts
1626
2044
  type TTagNames = keyof HTMLElementTagNameMap;
1627
- interface ICreateElementOperationData<T$1 extends TTagNames> {
2045
+ interface ICreateElementOperationData<T extends TTagNames> {
1628
2046
  /**
1629
2047
  * @type=ParameterType:htmlElementName
1630
2048
  * @required
1631
2049
  * @erased
1632
2050
  */
1633
- elementName: T$1;
2051
+ elementName: T;
1634
2052
  /**
1635
2053
  * @erased
1636
2054
  */
@@ -1639,7 +2057,7 @@ interface ICreateElementOperationData<T$1 extends TTagNames> {
1639
2057
  * @type=ParameterType:object
1640
2058
  * @erased
1641
2059
  */
1642
- attributes?: Partial<HTMLElementTagNameMap[T$1]>;
2060
+ attributes?: Partial<HTMLElementTagNameMap[T]>;
1643
2061
  /**
1644
2062
  * @type=ParameterType:object
1645
2063
  * @output
@@ -3664,11 +4082,11 @@ declare namespace index_d_exports$3 {
3664
4082
  type Controllers = typeof index_d_exports$4;
3665
4083
  type TControllerName = keyof Controllers;
3666
4084
  type TControllerType = Controllers[TControllerName];
3667
- type GetControllerByName<T$1 extends TControllerName> = Controllers[T$1];
4085
+ type GetControllerByName<T extends TControllerName> = Controllers[T];
3668
4086
  type Operations = typeof index_d_exports$3;
3669
4087
  type TOperationName = keyof Operations;
3670
4088
  type TOperationType = Operations[TOperationName];
3671
- type GetOperationByName<T$1 extends TOperationName> = Operations[T$1];
4089
+ type GetOperationByName<T extends TOperationName> = Operations[T];
3672
4090
  type ExtractOperationDataType<P$1> = P$1 extends TOperation<infer T, any> ? T : never;
3673
4091
  interface IEngineInfo {
3674
4092
  systemName: string;
@@ -3714,38 +4132,204 @@ interface IResolvedEndableActionConfiguration extends IResolvedActionConfigurati
3714
4132
  endOperations: IResolvedOperation[];
3715
4133
  }
3716
4134
  type ITimelineFlow = Record<string, never>;
3717
- interface ITimelineProviderSettings {
3718
- id: string;
3719
- vendor: string;
4135
+ /**
4136
+ * Configuration for a position source.
4137
+ *
4138
+ * Position sources drive timeline position. They are resolved dynamically
4139
+ * via the resource importer using the `systemName` property.
4140
+ *
4141
+ * Built-in position sources:
4142
+ * - `RafPositionSource`: RAF-based, drives timeline by elapsed time
4143
+ * - `ScrollPositionSource`: Scroll-based, drives timeline by scroll position
4144
+ * - `VideoPositionSource`: Video.js-based, drives timeline by video playback
4145
+ *
4146
+ * @example
4147
+ * ```typescript
4148
+ * // RAF-based position source
4149
+ * const rafConfig: IPositionSourceConfig = {
4150
+ * systemName: 'RafPositionSource',
4151
+ * tickInterval: 1000,
4152
+ * };
4153
+ *
4154
+ * // Scroll-based position source
4155
+ * const scrollConfig: IPositionSourceConfig = {
4156
+ * systemName: 'ScrollPositionSource',
4157
+ * selector: '.scroll-container',
4158
+ * };
4159
+ *
4160
+ * // Video-based position source
4161
+ * const videoConfig: IPositionSourceConfig = {
4162
+ * systemName: 'VideoPositionSource',
4163
+ * selector: '#video-player',
4164
+ * poster: '/poster.jpg',
4165
+ * };
4166
+ * ```
4167
+ */
4168
+ interface IPositionSourceConfig {
4169
+ /**
4170
+ * Name of the position source class to instantiate.
4171
+ * Resolved via the resource importer.
4172
+ *
4173
+ * Built-in options: 'RafPositionSource', 'ScrollPositionSource', 'VideoPositionSource'
4174
+ */
3720
4175
  systemName: string;
4176
+ /**
4177
+ * CSS selector for sources that need a DOM element (scroll, video).
4178
+ */
3721
4179
  selector?: string;
4180
+ /**
4181
+ * Interval between position updates in milliseconds (RAF sources).
4182
+ * @default 1000
4183
+ */
4184
+ tickInterval?: number;
4185
+ /**
4186
+ * Optional poster image URL (video sources).
4187
+ */
3722
4188
  poster?: string;
4189
+ /**
4190
+ * Additional configuration options passed to the position source constructor.
4191
+ * Use this for custom position source implementations.
4192
+ */
4193
+ [key: string]: unknown;
3723
4194
  }
3724
- interface IResolvedTimelineConfiguration {
3725
- id: string;
3726
- uri: string;
3727
- type: TimelineTypes;
3728
- duration: number;
3729
- loop: boolean;
3730
- selector: string;
3731
- timelineActions: ITimelineAction[];
3732
- }
3733
- interface ITimelineConfiguration {
3734
- id: string;
3735
- uri: string;
3736
- type: TimelineTypes;
3737
- duration: number;
3738
- loop: boolean;
3739
- selector: string;
3740
- timelineActions: ITimelineActionConfiguration[];
3741
- }
3742
- interface IOperationConfiguration<T$1 extends TOperationData> {
3743
- id: string;
4195
+ /**
4196
+ * Configuration for a container provider.
4197
+ *
4198
+ * Container providers manage DOM elements where timeline content is rendered.
4199
+ * They are resolved dynamically via the resource importer using `systemName`.
4200
+ *
4201
+ * Built-in container providers:
4202
+ * - `DomContainerProvider`: Manages a DOM element by selector
4203
+ *
4204
+ * @example
4205
+ * ```typescript
4206
+ * const config: IContainerProviderConfig = {
4207
+ * systemName: 'DomContainerProvider',
4208
+ * selector: '#render-area',
4209
+ * };
4210
+ * ```
4211
+ */
4212
+ interface IContainerProviderConfig {
4213
+ /**
4214
+ * Name of the container provider class to instantiate.
4215
+ * Resolved via the resource importer.
4216
+ *
4217
+ * Built-in options: 'DomContainerProvider'
4218
+ */
3744
4219
  systemName: string;
3745
- operationData?: T$1;
4220
+ /** CSS selector for the container element */
4221
+ selector: string;
4222
+ /**
4223
+ * Additional configuration options passed to the container provider constructor.
4224
+ * Use this for custom container provider implementations.
4225
+ */
4226
+ [key: string]: unknown;
3746
4227
  }
3747
- interface IEventActionConfiguration extends IActionConfiguration {
3748
- eventName: string;
4228
+ /**
4229
+ * Configuration for a playlist.
4230
+ *
4231
+ * Playlists manage collections of items (e.g., video chapters) that can be
4232
+ * selected and navigated. They are resolved dynamically via the resource
4233
+ * importer using `systemName`.
4234
+ *
4235
+ * Built-in playlists:
4236
+ * - `SimplePlaylist`: Basic playlist with array of items
4237
+ *
4238
+ * @typeParam TItem - The type of items in the playlist
4239
+ *
4240
+ * @example
4241
+ * ```typescript
4242
+ * const config: IPlaylistConfig = {
4243
+ * systemName: 'SimplePlaylist',
4244
+ * items: [{ uri: '/video1.mp4' }, { uri: '/video2.mp4' }],
4245
+ * identifierKey: 'uri',
4246
+ * };
4247
+ * ```
4248
+ */
4249
+ interface IPlaylistConfig<TItem = unknown> {
4250
+ /**
4251
+ * Name of the playlist class to instantiate.
4252
+ * Resolved via the resource importer.
4253
+ *
4254
+ * Built-in options: 'SimplePlaylist'
4255
+ */
4256
+ systemName: string;
4257
+ /** The items in the playlist */
4258
+ items: TItem[];
4259
+ /**
4260
+ * Property key used to identify items.
4261
+ * Used when selecting items by identifier (e.g., 'uri', 'id', 'chapterId').
4262
+ */
4263
+ identifierKey: string;
4264
+ /**
4265
+ * Additional configuration options passed to the playlist constructor.
4266
+ * Use this for custom playlist implementations.
4267
+ */
4268
+ [key: string]: unknown;
4269
+ }
4270
+ /**
4271
+ * Settings for a timeline provider.
4272
+ *
4273
+ * Timeline providers are assembled from decomposed components:
4274
+ * - Position source: drives timeline position (required)
4275
+ * - Container provider: manages render container (optional)
4276
+ * - Playlist: manages multi-item navigation (optional)
4277
+ *
4278
+ * All components are resolved dynamically via the resource importer using
4279
+ * the `systemName` property, allowing custom implementations.
4280
+ *
4281
+ * @example
4282
+ * ```typescript
4283
+ * const settings: ITimelineProviderSettings = {
4284
+ * positionSource: { systemName: 'RafPositionSource', tickInterval: 1000 },
4285
+ * container: { systemName: 'DomContainerProvider', selector: '#render-area' },
4286
+ * };
4287
+ * ```
4288
+ */
4289
+ interface ITimelineProviderSettings {
4290
+ /** Configuration for the position source */
4291
+ positionSource: IPositionSourceConfig;
4292
+ /** Optional container provider configuration */
4293
+ container?: IContainerProviderConfig;
4294
+ /** Optional playlist configuration */
4295
+ playlist?: IPlaylistConfig;
4296
+ }
4297
+ interface IResolvedTimelineConfiguration {
4298
+ id: string;
4299
+ uri: string;
4300
+ type: TimelineTypes;
4301
+ duration: number;
4302
+ loop: boolean;
4303
+ selector: string;
4304
+ timelineActions: ITimelineAction[];
4305
+ /**
4306
+ * Optional container selector for the timeline.
4307
+ * Defaults to the timeline selector if not specified.
4308
+ */
4309
+ container?: string;
4310
+ }
4311
+ interface ITimelineConfiguration {
4312
+ id: string;
4313
+ uri: string;
4314
+ type: TimelineTypes;
4315
+ duration: number;
4316
+ loop: boolean;
4317
+ selector: string;
4318
+ timelineActions: ITimelineActionConfiguration[];
4319
+ /**
4320
+ * Optional container selector for the timeline.
4321
+ * Defaults to the timeline selector if not specified.
4322
+ * Used by position sources that don't have an intrinsic container.
4323
+ */
4324
+ container?: string;
4325
+ }
4326
+ interface IOperationConfiguration<T extends TOperationData> {
4327
+ id: string;
4328
+ systemName: string;
4329
+ operationData?: T;
4330
+ }
4331
+ interface IEventActionConfiguration extends IActionConfiguration {
4332
+ eventName: string;
3749
4333
  eventTopic?: string;
3750
4334
  }
3751
4335
  interface IActionConfiguration {
@@ -3770,6 +4354,22 @@ interface IResolvedOperation {
3770
4354
  instance: TOperation<any>;
3771
4355
  }
3772
4356
  //#endregion
4357
+ //#region src/action/types.d.ts
4358
+ interface IAction {
4359
+ id: string;
4360
+ name: string;
4361
+ startOperations: IResolvedOperation[];
4362
+ start(initOperationData?: TOperationData): Promise<TOperationData>;
4363
+ }
4364
+ interface IEndableAction extends IAction {
4365
+ endOperations: IResolvedOperation[];
4366
+ end(initOperationData?: TOperationData): Promise<TOperationData>;
4367
+ }
4368
+ interface ITimelineAction extends IEndableAction {
4369
+ get active(): boolean;
4370
+ duration: IStrictDuration;
4371
+ }
4372
+ //#endregion
3773
4373
  //#region src/action/action.d.ts
3774
4374
  declare class Action implements IAction {
3775
4375
  name: string;
@@ -3802,16 +4402,123 @@ declare class TimelineAction extends EndableAction implements ITimelineAction {
3802
4402
  end(initOperationData: TOperationData): Promise<TOperationData>;
3803
4403
  }
3804
4404
  //#endregion
4405
+ //#region src/adapters/types.d.ts
4406
+ /**
4407
+ * Adapter interface for connecting components to the eventbus
4408
+ */
4409
+ interface IAdapter {
4410
+ /** Connect adapter - start listening and forwarding */
4411
+ connect(): void;
4412
+ /** Disconnect adapter - stop all listeners */
4413
+ disconnect(): void;
4414
+ }
4415
+ //#endregion
4416
+ //#region src/adapters/engine-eventbus-adapter.d.ts
4417
+ /**
4418
+ * Bridges EligiusEngine to/from the eventbus.
4419
+ *
4420
+ * This adapter:
4421
+ * - Forwards engine events to eventbus broadcasts
4422
+ * - Forwards eventbus commands to engine methods
4423
+ * - Handles eventbus state queries by reading engine properties
4424
+ */
4425
+ declare class EngineEventbusAdapter implements IAdapter {
4426
+ private _engine;
4427
+ private _eventbus;
4428
+ private _engineEventRemovers;
4429
+ private _eventbusRemovers;
4430
+ constructor(_engine: IEligiusEngine, _eventbus: IEventbus);
4431
+ /**
4432
+ * Connect adapter - start listening and forwarding
4433
+ */
4434
+ connect(): void;
4435
+ /**
4436
+ * Disconnect adapter - stop all listeners
4437
+ */
4438
+ disconnect(): void;
4439
+ private _subscribeToEngineEvents;
4440
+ private _onEngineEvent;
4441
+ private _subscribeToEventbusEvents;
4442
+ private _onEventbusEvent;
4443
+ private _registerRequest;
4444
+ }
4445
+ //#endregion
4446
+ //#region src/adapters/engine-input-adapter.d.ts
4447
+ /**
4448
+ * Handles external input sources (hotkeys, resize).
4449
+ *
4450
+ * This adapter:
4451
+ * - Registers keyboard hotkeys (space for play/pause toggle)
4452
+ * - Handles window resize events with debouncing
4453
+ */
4454
+ declare class EngineInputAdapter implements IAdapter {
4455
+ private _engine;
4456
+ private _eventbus;
4457
+ private _windowRef;
4458
+ private _removers;
4459
+ private _resizeTimeout;
4460
+ private _resizeHandler;
4461
+ constructor(_engine: IEligiusEngine, _eventbus: IEventbus, _windowRef: Window);
4462
+ /**
4463
+ * Connect adapter - start listening to inputs
4464
+ */
4465
+ connect(): void;
4466
+ /**
4467
+ * Disconnect adapter - stop all listeners
4468
+ */
4469
+ disconnect(): void;
4470
+ private _registerHotkeys;
4471
+ private _handleSpacePress;
4472
+ private _registerResizeHandler;
4473
+ private _handleResize;
4474
+ }
4475
+ //#endregion
4476
+ //#region src/adapters/language-eventbus-adapter.d.ts
4477
+ /**
4478
+ * Bridges LanguageManager to/from the eventbus.
4479
+ *
4480
+ * This adapter:
4481
+ * - Forwards language manager events to eventbus broadcasts
4482
+ * - Forwards eventbus language commands to language manager methods
4483
+ * - Handles eventbus state queries by reading language manager properties
4484
+ * - Updates DOM lang attribute when language changes
4485
+ *
4486
+ * Note: Requires engine reference to update DOM lang attribute on language change
4487
+ */
4488
+ declare class LanguageEventbusAdapter implements IAdapter {
4489
+ private _languageManager;
4490
+ private _eventbus;
4491
+ private _engine;
4492
+ private _languageEventRemovers;
4493
+ private _eventbusRemovers;
4494
+ constructor(_languageManager: ILanguageManager, _eventbus: IEventbus, _engine: IEligiusEngine);
4495
+ /**
4496
+ * Connect adapter - start listening and forwarding
4497
+ */
4498
+ connect(): void;
4499
+ /**
4500
+ * Disconnect adapter - stop all listeners
4501
+ */
4502
+ disconnect(): void;
4503
+ private _subscribeToLanguageManagerEvents;
4504
+ private _onLanguageEvent;
4505
+ private _subscribeToEventbusEvents;
4506
+ private _onEventbusEvent;
4507
+ private _registerRequest;
4508
+ private _setRootElementLang;
4509
+ private _extractPrimaryLanguage;
4510
+ }
4511
+ //#endregion
3805
4512
  //#region src/configuration/api/action-editor.d.ts
3806
4513
  /**
3807
4514
  *
3808
4515
  * A factory that assists in editing an action
3809
4516
  *
3810
4517
  */
3811
- declare class ActionEditor<T$1 extends IActionConfiguration = IActionConfiguration> {
3812
- protected actionConfig: T$1;
4518
+ declare class ActionEditor<T extends IActionConfiguration = IActionConfiguration> {
4519
+ protected actionConfig: T;
3813
4520
  protected readonly configurationFactory: ConfigurationFactory;
3814
- constructor(actionConfig: T$1, configurationFactory: ConfigurationFactory);
4521
+ constructor(actionConfig: T, configurationFactory: ConfigurationFactory);
3815
4522
  updateConfiguration(): void;
3816
4523
  /**
3817
4524
  *
@@ -3820,7 +4527,7 @@ declare class ActionEditor<T$1 extends IActionConfiguration = IActionConfigurati
3820
4527
  * @param callBack
3821
4528
  * @returns
3822
4529
  */
3823
- getConfiguration(callBack: (config: T$1) => T$1 | undefined): this;
4530
+ getConfiguration(callBack: (config: T) => T | undefined): this;
3824
4531
  /**
3825
4532
  *
3826
4533
  * Sets the action name
@@ -3844,7 +4551,7 @@ declare class ActionEditor<T$1 extends IActionConfiguration = IActionConfigurati
3844
4551
  * @param operationData
3845
4552
  * @returns
3846
4553
  */
3847
- addStartOperationByType<T$1 extends TOperation<TOperationData>>(operationClass: T$1, operationData: Partial<ExtractOperationDataType<T$1>>): OperationEditor<this, T$1>;
4554
+ addStartOperationByType<T extends TOperation<TOperationData>>(operationClass: T, operationData: Partial<ExtractOperationDataType<T>>): OperationEditor<this, T>;
3848
4555
  /**
3849
4556
  *
3850
4557
  * Adds the operation data for a start operation specified by the given system name
@@ -3862,7 +4569,7 @@ declare class ActionEditor<T$1 extends IActionConfiguration = IActionConfigurati
3862
4569
  * @param id
3863
4570
  * @returns
3864
4571
  */
3865
- editStartOperation(id: string): OperationEditor<ActionEditor<T$1>, TOperation<TOperationData>>;
4572
+ editStartOperation(id: string): OperationEditor<ActionEditor<T>, TOperation<TOperationData>>;
3866
4573
  /**
3867
4574
  *
3868
4575
  * Removes the start operation associated with the given id
@@ -3893,7 +4600,7 @@ declare class ActionEditor<T$1 extends IActionConfiguration = IActionConfigurati
3893
4600
  * A factory that assists in editing an endable action
3894
4601
  *
3895
4602
  */
3896
- declare class EndableActionEditor<T$1 extends IEndableActionConfiguration = IEndableActionConfiguration> extends ActionEditor<T$1> {
4603
+ declare class EndableActionEditor<T extends IEndableActionConfiguration = IEndableActionConfiguration> extends ActionEditor<T> {
3897
4604
  /**
3898
4605
  *
3899
4606
  * Adds the operation data for a end operation specified by the given type
@@ -3902,7 +4609,7 @@ declare class EndableActionEditor<T$1 extends IEndableActionConfiguration = IEnd
3902
4609
  * @param operationData
3903
4610
  * @returns
3904
4611
  */
3905
- addEndOperationByType<T$1 extends TOperationType, Dt extends Partial<ExtractOperationDataType<T$1>>>(operationClass: T$1, operationData: Dt): OperationEditor<this, TOperationType>;
4612
+ addEndOperationByType<T extends TOperationType, Dt extends Partial<ExtractOperationDataType<T>>>(operationClass: T, operationData: Dt): OperationEditor<this, TOperationType>;
3906
4613
  /**
3907
4614
  *
3908
4615
  * Adds the operation data for a start operation specified by the given system name
@@ -3911,7 +4618,7 @@ declare class EndableActionEditor<T$1 extends IEndableActionConfiguration = IEnd
3911
4618
  * @param operationData
3912
4619
  * @returns
3913
4620
  */
3914
- addEndOperation<T$1 extends TOperationName, O extends Partial<ExtractOperationDataType<GetOperationByName<T$1>>>>(systemName: TOperationName, operationData: O): OperationEditor<this, TOperation<IAddClassOperationData, Omit<IAddClassOperationData, "className">> | TOperation<IAddControllerToElementOperationData<TOperationData>> | TOperation<IAddGlobalsToOperationData, Omit<IAddGlobalsToOperationData, "globalProperties">> | TOperation<IAnimateOperationData, Omit<IAnimateOperationData, "animationEasing" | "animationProperties" | "animationDuration">> | TOperation<IAnimateWithClassOperationData, Promise<IAnimateWithClassOperationData>> | TOperation<IAnnounceToScreenReaderOperationData, Omit<IAnnounceToScreenReaderOperationData, "message" | "priority">> | TOperation<TOperationData> | TOperation<IBroadcastEventOperationData, Omit<IBroadcastEventOperationData, "eventArgs" | "eventTopic" | "eventName">> | TOperation<ICalcOperationData, Omit<ICalcOperationData, "left" | "right" | "operator">> | TOperation<IClearElementOperationData> | TOperation<IClearOperationDataOperationData, Omit<IClearOperationDataOperationData, "properties">> | TOperation<IClearStorageOperationData, Omit<IClearStorageOperationData, "key" | "storageType">> | TOperation<ICompareDateOperationData, Omit<ICompareDateOperationData, "date1" | "date2">> | TOperation<IConcatenateStringsOperationData, Omit<IConcatenateStringsOperationData, "strings" | "separator">> | TOperation<ICreateElementOperationData<keyof HTMLElementTagNameMap>, Omit<RequireKeys<ICreateElementOperationData<keyof HTMLElementTagNameMap>, "template">, "elementName" | "text" | "attributes">> | TOperation<ICustomFunctionOperationData, Omit<ICustomFunctionOperationData, "systemName">> | TOperation<IEndActionOperationData, Omit<IEndActionOperationData, "actionOperationData">> | TOperation<Record<string, unknown>> | TOperation<IExtendControllerOperationData, Omit<IExtendControllerOperationData, "controllerExtension">> | TOperation<IFilterArrayOperationData, Omit<IFilterArrayOperationData, "filterProperty" | "filterValue" | "filterPredicate">> | TOperation<IFindInArrayOperationData, Omit<IFindInArrayOperationData, "findProperty" | "findValue" | "findPredicate">> | TOperation<IForEachOperationData> | TOperation<IFormatDateOperationData, Omit<IFormatDateOperationData, "format">> | TOperation<IFormatTextOperationData, Omit<IFormatTextOperationData, "transformation">> | TOperation<IGetAttributesFromElementOperationData, Omit<IGetAttributesFromElementOperationData, "attributeNames">> | TOperation<IGetControllerFromElementOperationData, Omit<IGetControllerFromElementOperationData, "controllerName">> | TOperation<IGetControllerInstanceOperationData, Omit<IGetControllerInstanceOperationData, "systemName">> | TOperation<IGetCurrentTimeOperationData, IGetCurrentTimeOperationData> | TOperation<IGetElementDimensionsOperationData, Omit<IGetElementDimensionsOperationData, "modifier">> | TOperation<IGetFocusedElementOperationData, IGetFocusedElementOperationData> | TOperation<IGetFormDataOperationData, IGetFormDataOperationData> | TOperation<IGetImportOperationData, Omit<RequireKeys<IGetImportOperationData, "importedInstance">, "systemName">> | TOperation<IGetQueryParamsOperationData, Omit<IGetQueryParamsOperationData, "defaultValues">> | TOperation<IGetScrollPositionOperationData, IGetScrollPositionOperationData> | TOperation<IGetTextContentOperationData, IGetTextContentOperationData> | TOperation<IHttpDeleteOperationData, Omit<IHttpDeleteOperationData, "url" | "headers">> | TOperation<IHttpPostOperationData, Omit<IHttpPostOperationData, "body" | "url" | "headers">> | TOperation<IHttpPutOperationData, Omit<IHttpPutOperationData, "body" | "url" | "headers">> | TOperation<IInvokeObjectMethodOperationData, Omit<IInvokeObjectMethodOperationData, "methodName" | "methodArguments">> | TOperation<IIsElementInViewportOperationData, IIsElementInViewportOperationData> | TOperation<ILoadFromStorageOperationData, Omit<ILoadFromStorageOperationData, "storageType">> | TOperation<ILoadJSONOperationData, Omit<ILoadJSONOperationData, "url" | "cache">> | TOperation<ILogOperationData, Omit<ILogOperationData, "logValue" | "logName">> | TOperation<IMapArrayOperationData, Omit<IMapArrayOperationData, "mapFunction">> | TOperation<IMathOperationData, Omit<IMathOperationData, "args" | "functionName">> | TOperation<IRemoveClassOperationData, Omit<IRemoveClassOperationData, "className">> | TOperation<IRemoveControllerFromElementOperationData, Omit<IRemoveControllerFromElementOperationData, "controllerName">> | TOperation<IRemoveElementOperationData> | TOperation<IRemovePropertiesFromOperationDataOperationData, Omit<IRemovePropertiesFromOperationDataOperationData, "propertyNames">> | TOperation<IReparentElementOperationData, Omit<IReparentElementOperationData, "newParentSelector">> | TOperation<IReplaceStringOperationData, Omit<IReplaceStringOperationData, "pattern" | "replacement">> | TOperation<IReplaceTextOperationData, Omit<IReplaceTextOperationData, "replacement" | "searchPattern">> | TOperation<IRequestActionOperationData, Omit<Required<IRequestActionOperationData>, "systemName">> | TOperation<ISaveToStorageOperationData, Omit<ISaveToStorageOperationData, "storageType" | "value">> | TOperation<IScrollToElementOperationData, Omit<IScrollToElementOperationData, "behavior" | "block" | "inline">> | TOperation<IScrollToPositionOperationData, Omit<IScrollToPositionOperationData, "behavior" | "x" | "y">> | TOperation<ISelectElementOperationData, Omit<ISelectElementOperationData, "selector" | "useSelectedElementAsRoot">> | TOperation<ISetDataOperationData, Omit<ISetDataOperationData, "properties">> | TOperation<ISetElementAttributesOperationData, Omit<ISetElementAttributesOperationData, "attributes">> | TOperation<ISetElementContentOperationData, Omit<ISetElementContentOperationData, "template" | "insertionType">> | TOperation<ISetFocusOperationData, ISetFocusOperationData> | TOperation<ISetFormValueOperationData, Omit<ISetFormValueOperationData, "value">> | TOperation<ISetGlobalDataOperationData, Omit<ISetGlobalDataOperationData, "propertyNames">> | TOperation<ISetOperationData, Omit<ISetOperationData, "properties" | "override">> | TOperation<ISetStyleOperationData, Omit<ISetStyleOperationData, "properties">> | TOperation<ISetVariableOperationData, Omit<ISetVariableOperationData, "name" | "value">> | TOperation<ISortArrayOperationData, Omit<ISortArrayOperationData, "sortProperty" | "sortOrder" | "sortComparator">> | TOperation<ISplitStringOperationData, Omit<ISplitStringOperationData, "delimiter" | "limit">> | TOperation<IStartActionOperationData, Omit<IStartActionOperationData, "actionOperationData">> | TOperation<ISubstringTextOperationData, Omit<ISubstringTextOperationData, "start" | "end">> | TOperation<IToggleClassOperationData, Omit<IToggleClassOperationData, "className">> | TOperation<IToggleElementOperationData> | TOperation<IToggleFormElementOperationData, Omit<IToggleFormElementOperationData, "enabled">> | TOperation<IValidateFormOperationData, Omit<IValidateFormOperationData, "validationRules">> | TOperation<IWaitOperationData, Omit<IWaitOperationData, "milliseconds">> | TOperation<IWhenOperationData, Omit<IWhenOperationData, "expression">>>;
4621
+ addEndOperation<T extends TOperationName, O extends Partial<ExtractOperationDataType<GetOperationByName<T>>>>(systemName: TOperationName, operationData: O): OperationEditor<this, TOperation<IAddClassOperationData, Omit<IAddClassOperationData, "className">> | TOperation<IAddControllerToElementOperationData<TOperationData>> | TOperation<IAddGlobalsToOperationData, Omit<IAddGlobalsToOperationData, "globalProperties">> | TOperation<IAnimateOperationData, Omit<IAnimateOperationData, "animationEasing" | "animationProperties" | "animationDuration">> | TOperation<IAnimateWithClassOperationData, Promise<IAnimateWithClassOperationData>> | TOperation<IAnnounceToScreenReaderOperationData, Omit<IAnnounceToScreenReaderOperationData, "message" | "priority">> | TOperation<TOperationData> | TOperation<IBroadcastEventOperationData, Omit<IBroadcastEventOperationData, "eventArgs" | "eventTopic" | "eventName">> | TOperation<ICalcOperationData, Omit<ICalcOperationData, "left" | "right" | "operator">> | TOperation<IClearElementOperationData> | TOperation<IClearOperationDataOperationData, Omit<IClearOperationDataOperationData, "properties">> | TOperation<IClearStorageOperationData, Omit<IClearStorageOperationData, "key" | "storageType">> | TOperation<ICompareDateOperationData, Omit<ICompareDateOperationData, "date1" | "date2">> | TOperation<IConcatenateStringsOperationData, Omit<IConcatenateStringsOperationData, "strings" | "separator">> | TOperation<ICreateElementOperationData<keyof HTMLElementTagNameMap>, Omit<RequireKeys<ICreateElementOperationData<keyof HTMLElementTagNameMap>, "template">, "elementName" | "text" | "attributes">> | TOperation<ICustomFunctionOperationData, Omit<ICustomFunctionOperationData, "systemName">> | TOperation<IEndActionOperationData, Omit<IEndActionOperationData, "actionOperationData">> | TOperation<Record<string, unknown>> | TOperation<IExtendControllerOperationData, Omit<IExtendControllerOperationData, "controllerExtension">> | TOperation<IFilterArrayOperationData, Omit<IFilterArrayOperationData, "filterProperty" | "filterValue" | "filterPredicate">> | TOperation<IFindInArrayOperationData, Omit<IFindInArrayOperationData, "findProperty" | "findValue" | "findPredicate">> | TOperation<IForEachOperationData> | TOperation<IFormatDateOperationData, Omit<IFormatDateOperationData, "format">> | TOperation<IFormatTextOperationData, Omit<IFormatTextOperationData, "transformation">> | TOperation<IGetAttributesFromElementOperationData, Omit<IGetAttributesFromElementOperationData, "attributeNames">> | TOperation<IGetControllerFromElementOperationData, Omit<IGetControllerFromElementOperationData, "controllerName">> | TOperation<IGetControllerInstanceOperationData, Omit<IGetControllerInstanceOperationData, "systemName">> | TOperation<IGetCurrentTimeOperationData, IGetCurrentTimeOperationData> | TOperation<IGetElementDimensionsOperationData, Omit<IGetElementDimensionsOperationData, "modifier">> | TOperation<IGetFocusedElementOperationData, IGetFocusedElementOperationData> | TOperation<IGetFormDataOperationData, IGetFormDataOperationData> | TOperation<IGetImportOperationData, Omit<RequireKeys<IGetImportOperationData, "importedInstance">, "systemName">> | TOperation<IGetQueryParamsOperationData, Omit<IGetQueryParamsOperationData, "defaultValues">> | TOperation<IGetScrollPositionOperationData, IGetScrollPositionOperationData> | TOperation<IGetTextContentOperationData, IGetTextContentOperationData> | TOperation<IHttpDeleteOperationData, Omit<IHttpDeleteOperationData, "url" | "headers">> | TOperation<IHttpPostOperationData, Omit<IHttpPostOperationData, "body" | "url" | "headers">> | TOperation<IHttpPutOperationData, Omit<IHttpPutOperationData, "body" | "url" | "headers">> | TOperation<IInvokeObjectMethodOperationData, Omit<IInvokeObjectMethodOperationData, "methodName" | "methodArguments">> | TOperation<IIsElementInViewportOperationData, IIsElementInViewportOperationData> | TOperation<ILoadFromStorageOperationData, Omit<ILoadFromStorageOperationData, "storageType">> | TOperation<ILoadJSONOperationData, Omit<ILoadJSONOperationData, "url" | "cache">> | TOperation<ILogOperationData, Omit<ILogOperationData, "logValue" | "logName">> | TOperation<IMapArrayOperationData, Omit<IMapArrayOperationData, "mapFunction">> | TOperation<IMathOperationData, Omit<IMathOperationData, "args" | "functionName">> | TOperation<IRemoveClassOperationData, Omit<IRemoveClassOperationData, "className">> | TOperation<IRemoveControllerFromElementOperationData, Omit<IRemoveControllerFromElementOperationData, "controllerName">> | TOperation<IRemoveElementOperationData> | TOperation<IRemovePropertiesFromOperationDataOperationData, Omit<IRemovePropertiesFromOperationDataOperationData, "propertyNames">> | TOperation<IReparentElementOperationData, Omit<IReparentElementOperationData, "newParentSelector">> | TOperation<IReplaceStringOperationData, Omit<IReplaceStringOperationData, "pattern" | "replacement">> | TOperation<IReplaceTextOperationData, Omit<IReplaceTextOperationData, "replacement" | "searchPattern">> | TOperation<IRequestActionOperationData, Omit<Required<IRequestActionOperationData>, "systemName">> | TOperation<ISaveToStorageOperationData, Omit<ISaveToStorageOperationData, "storageType" | "value">> | TOperation<IScrollToElementOperationData, Omit<IScrollToElementOperationData, "behavior" | "block" | "inline">> | TOperation<IScrollToPositionOperationData, Omit<IScrollToPositionOperationData, "behavior" | "x" | "y">> | TOperation<ISelectElementOperationData, Omit<ISelectElementOperationData, "selector" | "useSelectedElementAsRoot">> | TOperation<ISetDataOperationData, Omit<ISetDataOperationData, "properties">> | TOperation<ISetElementAttributesOperationData, Omit<ISetElementAttributesOperationData, "attributes">> | TOperation<ISetElementContentOperationData, Omit<ISetElementContentOperationData, "template" | "insertionType">> | TOperation<ISetFocusOperationData, ISetFocusOperationData> | TOperation<ISetFormValueOperationData, Omit<ISetFormValueOperationData, "value">> | TOperation<ISetGlobalDataOperationData, Omit<ISetGlobalDataOperationData, "propertyNames">> | TOperation<ISetOperationData, Omit<ISetOperationData, "properties" | "override">> | TOperation<ISetStyleOperationData, Omit<ISetStyleOperationData, "properties">> | TOperation<ISetVariableOperationData, Omit<ISetVariableOperationData, "name" | "value">> | TOperation<ISortArrayOperationData, Omit<ISortArrayOperationData, "sortProperty" | "sortOrder" | "sortComparator">> | TOperation<ISplitStringOperationData, Omit<ISplitStringOperationData, "delimiter" | "limit">> | TOperation<IStartActionOperationData, Omit<IStartActionOperationData, "actionOperationData">> | TOperation<ISubstringTextOperationData, Omit<ISubstringTextOperationData, "start" | "end">> | TOperation<IToggleClassOperationData, Omit<IToggleClassOperationData, "className">> | TOperation<IToggleElementOperationData> | TOperation<IToggleFormElementOperationData, Omit<IToggleFormElementOperationData, "enabled">> | TOperation<IValidateFormOperationData, Omit<IValidateFormOperationData, "validationRules">> | TOperation<IWaitOperationData, Omit<IWaitOperationData, "milliseconds">> | TOperation<IWhenOperationData, Omit<IWhenOperationData, "expression">>>;
3915
4622
  /**
3916
4623
  *
3917
4624
  * Starts an editor for the end operation associated with the given id
@@ -3959,10 +4666,10 @@ declare class TimelineActionEditor extends EndableActionEditor<ITimelineActionCo
3959
4666
  * A factory that assists in editing an operation
3960
4667
  *
3961
4668
  */
3962
- declare class OperationEditor<T$1 extends ActionEditor, O extends TOperationType = TOperation<TOperationData>> {
4669
+ declare class OperationEditor<T extends ActionEditor, O extends TOperationType = TOperation<TOperationData>> {
3963
4670
  private operationConfig;
3964
4671
  private actionEditor;
3965
- constructor(operationConfig: IOperationConfiguration<ExtractOperationDataType<O>>, actionEditor: T$1);
4672
+ constructor(operationConfig: IOperationConfiguration<ExtractOperationDataType<O>>, actionEditor: T);
3966
4673
  /**
3967
4674
  *
3968
4675
  * Invokes the given callback with a copy of the internal state of the factory
@@ -4024,7 +4731,7 @@ declare class OperationEditor<T$1 extends ActionEditor, O extends TOperationType
4024
4731
  *
4025
4732
  * @returns
4026
4733
  */
4027
- next(): T$1;
4734
+ next(): T;
4028
4735
  }
4029
4736
  //#endregion
4030
4737
  //#region src/configuration/api/label-editor.d.ts
@@ -4067,7 +4774,14 @@ declare class TimelineProvidersSettingsEditor {
4067
4774
  private providersSettings;
4068
4775
  private configurationFactory;
4069
4776
  constructor(providersSettings: TTimelineProviderSettings, configurationFactory: ConfigurationFactory);
4070
- addProvider(timelineType: TimelineTypes): TimelineProviderSettingsEditor;
4777
+ /**
4778
+ * Adds a new provider for the specified timeline type.
4779
+ *
4780
+ * @param timelineType - The timeline type (e.g., 'animation', 'mediaplayer')
4781
+ * @param positionSourceSystemName - System name of the position source class (default: 'RafPositionSource')
4782
+ * @returns A TimelineProviderSettingsEditor for further configuration
4783
+ */
4784
+ addProvider(timelineType: TimelineTypes, positionSourceSystemName?: string): TimelineProviderSettingsEditor;
4071
4785
  editProvider(timelineType: TimelineTypes): TimelineProviderSettingsEditor;
4072
4786
  next(): ConfigurationFactory;
4073
4787
  }
@@ -4076,9 +4790,67 @@ declare class TimelineProviderSettingsEditor {
4076
4790
  private providersSettingsEditor;
4077
4791
  private configurationFactory;
4078
4792
  constructor(providerSettings: ITimelineProviderSettings, providersSettingsEditor: TimelineProvidersSettingsEditor, configurationFactory: ConfigurationFactory);
4079
- setVendor(vendor: string): this;
4080
- setSelector(selector: string): this;
4081
- setSystemName(systemName: string): this;
4793
+ /**
4794
+ * Sets the position source configuration with full config object.
4795
+ * @param config - Position source configuration with systemName and options
4796
+ */
4797
+ setPositionSource(config: IPositionSourceConfig): this;
4798
+ /**
4799
+ * Sets the position source by system name with optional configuration.
4800
+ * @param systemName - The position source class name (e.g., 'RafPositionSource')
4801
+ * @param options - Additional options passed to the position source constructor
4802
+ */
4803
+ setPositionSourceByName(systemName: string, options?: Record<string, unknown>): this;
4804
+ /**
4805
+ * Convenience method to set position source using shorthand type names.
4806
+ * @param type - Shorthand type ('raf', 'scroll', 'video')
4807
+ * @param options - Type-specific options
4808
+ * @deprecated Use setPositionSourceByName for explicit control
4809
+ */
4810
+ setPositionSourceType(type: 'raf' | 'scroll' | 'video', options?: {
4811
+ selector?: string;
4812
+ tickInterval?: number;
4813
+ poster?: string;
4814
+ }): this;
4815
+ /**
4816
+ * Sets the container provider configuration by selector.
4817
+ * Uses DomContainerProvider by default.
4818
+ * @param selector - CSS selector for the container element
4819
+ */
4820
+ setContainer(selector: string): this;
4821
+ /**
4822
+ * Sets the container provider configuration with full config object.
4823
+ * @param config - Container provider configuration with systemName
4824
+ */
4825
+ setContainerConfig(config: IContainerProviderConfig): this;
4826
+ /**
4827
+ * Sets the container provider by system name with options.
4828
+ * @param systemName - The container provider class name
4829
+ * @param options - Additional options passed to the container provider constructor
4830
+ */
4831
+ setContainerByName(systemName: string, options: Record<string, unknown>): this;
4832
+ /**
4833
+ * Sets the playlist configuration.
4834
+ * Uses SimplePlaylist by default.
4835
+ * @param items - Array of playlist items
4836
+ * @param identifierKey - Key used to identify items (default: 'uri')
4837
+ */
4838
+ setPlaylist<T>(items: readonly T[], identifierKey?: string): this;
4839
+ /**
4840
+ * Sets the playlist configuration with full config object.
4841
+ * @param config - Playlist configuration with systemName
4842
+ */
4843
+ setPlaylistConfig(config: IPlaylistConfig): this;
4844
+ /**
4845
+ * Sets the playlist by system name with options.
4846
+ * @param systemName - The playlist class name
4847
+ * @param options - Additional options including items and identifierKey
4848
+ */
4849
+ setPlaylistByName(systemName: string, options: {
4850
+ items: unknown[];
4851
+ identifierKey: string;
4852
+ [key: string]: unknown;
4853
+ }): this;
4082
4854
  next(): TimelineProvidersSettingsEditor;
4083
4855
  end(): ConfigurationFactory;
4084
4856
  }
@@ -4188,7 +4960,7 @@ declare class ConfigurationFactory {
4188
4960
  * @param extensionMethod
4189
4961
  * @returns
4190
4962
  */
4191
- static extend<T$1 extends ConfigurationFactory, K$1 extends PropertyKey, C extends (this: T$1 & { [P in K$1]: C }, ...args: any[]) => any>(factory: T$1, extensionMethodName: K$1, extensionMethod: C): T$1 & { [P in K$1]: C };
4963
+ static extend<T extends ConfigurationFactory, K$1 extends PropertyKey, C extends (this: T & { [P in K$1]: C }, ...args: any[]) => any>(factory: T, extensionMethodName: K$1, extensionMethod: C): T & { [P in K$1]: C };
4192
4964
  /**
4193
4965
  * Add specialized methods to a factory
4194
4966
  *
@@ -4196,9 +4968,9 @@ declare class ConfigurationFactory {
4196
4968
  * @param extensions
4197
4969
  * @returns
4198
4970
  */
4199
- static extendMultiple<T$1 extends ConfigurationFactory, C extends ConfigurationFactoryExtension<T$1>, D extends {
4971
+ static extendMultiple<T extends ConfigurationFactory, C extends ConfigurationFactoryExtension<T>, D extends {
4200
4972
  [name: string]: C;
4201
- }>(factory: T$1, extensions: D): T$1 & D;
4973
+ }>(factory: T, extensions: D): T & D;
4202
4974
  /**
4203
4975
  * Initialize the configuration with a minimal shape.
4204
4976
  *
@@ -4486,9 +5258,9 @@ declare class ActionCreatorFactory {
4486
5258
  * A factory that assists in creating an action
4487
5259
  *
4488
5260
  */
4489
- declare class ActionCreator<T$1 extends IActionConfiguration = IActionConfiguration> {
5261
+ declare class ActionCreator<T extends IActionConfiguration = IActionConfiguration> {
4490
5262
  private readonly factory;
4491
- actionConfig: T$1;
5263
+ actionConfig: T;
4492
5264
  /**
4493
5265
  *
4494
5266
  * Initializes an action configuration with the given name
@@ -4519,7 +5291,7 @@ declare class ActionCreator<T$1 extends IActionConfiguration = IActionConfigurat
4519
5291
  * @param callBack
4520
5292
  * @returns
4521
5293
  */
4522
- getConfiguration(callBack: (config: T$1) => T$1): this;
5294
+ getConfiguration(callBack: (config: T) => T): this;
4523
5295
  /**
4524
5296
  *
4525
5297
  * Adds the operation data for a start operation specified by the given type
@@ -4528,7 +5300,7 @@ declare class ActionCreator<T$1 extends IActionConfiguration = IActionConfigurat
4528
5300
  * @param operationData
4529
5301
  * @returns
4530
5302
  */
4531
- addStartOperationByType<T$1 extends TOperationType, Dt extends Partial<ExtractOperationDataType<T$1>>>(operationClass: T$1, operationData: Dt): this;
5303
+ addStartOperationByType<T extends TOperationType, Dt extends Partial<ExtractOperationDataType<T>>>(operationClass: T, operationData: Dt): this;
4532
5304
  /**
4533
5305
  *
4534
5306
  * Adds the operation data for a start operation specified by the given system name
@@ -4537,7 +5309,7 @@ declare class ActionCreator<T$1 extends IActionConfiguration = IActionConfigurat
4537
5309
  * @param operationData
4538
5310
  * @returns
4539
5311
  */
4540
- addStartOperation<T$1 extends TOperationName, O extends Partial<ExtractOperationDataType<GetOperationByName<T$1>>>>(systemName: T$1, operationData: O): this;
5312
+ addStartOperation<T extends TOperationName, O extends Partial<ExtractOperationDataType<GetOperationByName<T>>>>(systemName: T, operationData: O): this;
4541
5313
  /**
4542
5314
  *
4543
5315
  * Returns the fluent scope back to the `ActionCreatorFactory`
@@ -4551,7 +5323,7 @@ declare class ActionCreator<T$1 extends IActionConfiguration = IActionConfigurat
4551
5323
  * A factory that assists in creating an endable action
4552
5324
  *
4553
5325
  */
4554
- declare class EndableActionCreator<T$1 extends IEndableActionConfiguration = IEndableActionConfiguration> extends ActionCreator<T$1> {
5326
+ declare class EndableActionCreator<T extends IEndableActionConfiguration = IEndableActionConfiguration> extends ActionCreator<T> {
4555
5327
  constructor(name: string | undefined, factory: ActionCreatorFactory);
4556
5328
  /**
4557
5329
  *
@@ -4561,7 +5333,7 @@ declare class EndableActionCreator<T$1 extends IEndableActionConfiguration = IEn
4561
5333
  * @param operationData
4562
5334
  * @returns
4563
5335
  */
4564
- addEndOperationByType<T$1 extends TOperationType, Dt extends Partial<ExtractOperationDataType<T$1>>>(operationClass: T$1, operationData: Dt): this;
5336
+ addEndOperationByType<T extends TOperationType, Dt extends Partial<ExtractOperationDataType<T>>>(operationClass: T, operationData: Dt): this;
4565
5337
  /**
4566
5338
  *
4567
5339
  * Adds the operation data for an end operation specified by the given system name
@@ -4570,7 +5342,7 @@ declare class EndableActionCreator<T$1 extends IEndableActionConfiguration = IEn
4570
5342
  * @param operationData
4571
5343
  * @returns
4572
5344
  */
4573
- addEndOperation<T$1 extends TOperationName, O extends Partial<ExtractOperationDataType<GetOperationByName<T$1>>>>(systemName: TOperationName, operationData: O): this;
5345
+ addEndOperation<T extends TOperationName, O extends Partial<ExtractOperationDataType<GetOperationByName<T>>>>(systemName: TOperationName, operationData: O): this;
4574
5346
  }
4575
5347
  /**
4576
5348
  *
@@ -4612,16 +5384,16 @@ type TConstantParametersTypes = {
4612
5384
  default?: boolean;
4613
5385
  } & THasDescription;
4614
5386
  type TPropertyMetadata = TComplexPropertyMetadata | TArrayProperyMetadata | TParameterTypes;
4615
- type TPropertiesMetadata<T$1> = { [P in keyof T$1]?: TPropertyMetadata };
4616
- interface IOperationMetadata<T$1> {
5387
+ type TPropertiesMetadata<T> = { [P in keyof T]?: TPropertyMetadata };
5388
+ interface IOperationMetadata<T> {
4617
5389
  category: TOperationCategory;
4618
5390
  description: string;
4619
- dependentProperties?: (keyof T$1)[];
4620
- properties?: TPropertiesMetadata<T$1>;
4621
- outputProperties?: TPropertiesMetadata<T$1>;
5391
+ dependentProperties?: (keyof T)[];
5392
+ properties?: TPropertiesMetadata<T>;
5393
+ outputProperties?: TPropertiesMetadata<T>;
4622
5394
  }
4623
5395
  type TParameterTypesDelimited = `${TParameterTypes}` | `${TParameterTypes}|${string}`;
4624
- type TParameterTypes = 'ParameterType:htmlElementName' | 'ParameterType:className' | 'ParameterType:selector' | 'ParameterType:string' | 'ParameterType:number' | 'ParameterType:object' | 'ParameterType:boolean' | 'ParameterType:array' | 'ParameterType:eventTopic' | 'ParameterType:eventName' | 'ParameterType:systemName' | 'ParameterType:actionName' | 'ParameterType:controllerName' | 'ParameterType:dimensions' | 'ParameterType:dimensionsModifier' | 'ParameterType:url' | 'ParameterType:htmlContent' | 'ParameterType:labelId' | 'ParameterType:ImagePath' | 'ParameterType:QuadrantPosition' | 'ParameterType:jQuery' | 'ParameterType:expression' | 'ParameterType:mathfunction' | 'ParameterType:cssProperties' | 'ParameterType:function' | 'ParameterType:Date';
5396
+ type TParameterTypes = 'ParameterType:htmlElementName' | 'ParameterType:className' | 'ParameterType:selector' | 'ParameterType:string' | 'ParameterType:number' | 'ParameterType:object' | 'ParameterType:boolean' | 'ParameterType:array' | 'ParameterType:eventTopic' | 'ParameterType:eventName' | 'ParameterType:systemName' | 'ParameterType:actionName' | 'ParameterType:controllerName' | 'ParameterType:dimensions' | 'ParameterType:dimensionsModifier' | 'ParameterType:url' | 'ParameterType:htmlContent' | 'ParameterType:labelId' | 'ParameterType:ImagePath' | 'ParameterType:QuadrantPosition' | 'ParameterType:jQuery' | 'ParameterType:expression' | 'ParameterType:mathfunction' | 'ParameterType:cssProperties' | 'ParameterType:function' | 'ParameterType:Date' | 'ParameterType:languagecode';
4625
5397
  type TOperationCategory = 'DOM' | 'Controller' | 'Data' | 'Control Flow' | 'Animation' | 'Form' | 'Scroll' | 'Focus' | 'Array' | 'String' | 'Text' | 'Date' | 'HTTP' | 'Action' | 'Utility' | 'Accessibility';
4626
5398
  //#endregion
4627
5399
  //#region src/operation/metadata/add-class.d.ts
@@ -4959,10 +5731,10 @@ declare class ConfigurationResolver implements IConfigurationResolver {
4959
5731
  }
4960
5732
  //#endregion
4961
5733
  //#region src/controllers/metadata/types.d.ts
4962
- type IControllerMetadata<T$1> = {
5734
+ type IControllerMetadata<T> = {
4963
5735
  description: string;
4964
- dependentProperties?: (keyof T$1)[];
4965
- properties?: Partial<Record<keyof T$1, TPropertyMetadata>>;
5736
+ dependentProperties?: (keyof T)[];
5737
+ properties?: Partial<Record<keyof T, TPropertyMetadata>>;
4966
5738
  };
4967
5739
  //#endregion
4968
5740
  //#region src/controllers/metadata/dom-event-listener-controller.d.ts
@@ -4992,212 +5764,20 @@ declare namespace index_d_exports {
4992
5764
  export { DOMEventListenerController$1 as DOMEventListenerController, IControllerMetadata, LabelController$1 as LabelController, LottieController$1 as LottieController, MutationObserverController$1 as MutationObserverController, NavigationController$1 as NavigationController, ProgressbarController$1 as ProgressbarController, RoutingController$1 as RoutingController, SubtitlesController$1 as SubtitlesController };
4993
5765
  }
4994
5766
  //#endregion
4995
- //#region src/diagnostics/types.d.ts
4996
- type TDevToolsEventSubscriber = (event: TEventData) => void;
4997
- type TPlayControlEventKind = 'play' | 'stop' | 'pause' | 'seek';
4998
- declare const DEV_TOOLS_KEY = "__ELIGIUS_DEV_TOOLS__";
4999
- type TWindowWithDevtools = Window & {
5000
- [DEV_TOOLS_KEY]: IDiagnosticsInfo | undefined;
5001
- };
5002
- type TDevToolsMessage = {
5003
- source: 'eligius-inspect-devtools';
5004
- name: 'event';
5005
- data: TEventData;
5006
- };
5007
- type TEventData = {
5008
- type: 'playcontrol';
5009
- data: IPlayControlEvent;
5010
- };
5011
- interface IPlayControlEvent {
5012
- kind: TPlayControlEventKind;
5013
- args?: any[];
5014
- }
5015
- interface IDiagnosticsAgent {
5016
- postMessage(name: TDiagnosticType, messageData: any): void;
5017
- subscribe(subscriber: TDevToolsEventSubscriber): () => void;
5018
- }
5019
- interface IDiagnosticsInfo {
5020
- get agent(): IDiagnosticsAgent;
5021
- }
5022
- type TDiagnosticType = 'eligius-diagnostics-factory' | 'eligius-diagnostics-engine' | 'eligius-diagnostics-event' | 'eligius-diagnostics-action' | 'eligius-diagnostics-action-error' | 'eligius-diagnostics-operation';
5023
- type TDiagnosticsMessageSource = 'eligius-inspect-agent' | 'eligius-inspect-devtools';
5767
+ //#region src/eventbus/events/metadata/before-request-timeline-uri.d.ts
5768
+ declare function beforeRequestTimelineUri(): IEventMetadata<BeforeRequestTimelineUriEvent['args']>;
5024
5769
  //#endregion
5025
- //#region src/diagnostics/devtool-event-listener.d.ts
5026
- declare class DevToolEventListener implements IEventbusListener {
5027
- private agent;
5028
- constructor(agent: IDiagnosticsAgent);
5029
- handleEvent(eventName: string, eventTopic: string | undefined, args: any[]): void;
5030
- }
5770
+ //#region src/eventbus/events/metadata/before-request-video-url.d.ts
5771
+ declare function beforeRequestVideoUrl(): IEventMetadata<BeforeRequestVideoUrlEvent['args']>;
5031
5772
  //#endregion
5032
- //#region src/diagnostics/diagnostics.d.ts
5033
- declare function send(_name: TDiagnosticType, _data: any): void;
5034
- declare function setActive(value: boolean): void;
5035
- declare function isActive(): boolean;
5036
- declare const Diagnostics: {
5037
- send: typeof send;
5038
- active: boolean;
5039
- };
5773
+ //#region src/eventbus/events/metadata/dom-mutation.d.ts
5774
+ declare function domMutation(): IEventMetadata<DomMutationEvent['args']>;
5040
5775
  //#endregion
5041
- //#region src/language-manager.d.ts
5042
- /**
5043
- * This class manages the labels for an {@link IEligiusEngine} instance.
5044
- *
5045
- * It handles the request-label-collection, request-label-collections, request-current-language and language-change events.
5046
- *
5047
- */
5048
- declare class LanguageManager {
5049
- private _currentLanguage;
5050
- private _eventbus;
5051
- private _labelLookup;
5052
- private _eventbusRemovers;
5053
- constructor(_currentLanguage: TLanguageCode, labels: ILanguageLabel[], _eventbus: IEventbus);
5054
- destroy(): void;
5055
- _addEventbusListeners(eventbus: IEventbus): void;
5056
- _handleRequestCurrentLanguage(resultCallback: TResultCallback<TLanguageCode>): void;
5057
- _handleRequestLabelCollection(labelId: string, resultCallback: TResultCallback<ILabel[]>): void;
5058
- _handleRequestLabelCollections(labelIds: string[], resultCallback: TResultCallback<ILabel[][]>): void;
5059
- _handleLanguageChange(language: TLanguageCode): void;
5060
- _setRootElementLang(language: TLanguageCode): void;
5061
- _extractPrimaryLanguage(culture: TLanguageCode): string;
5062
- _createLabelLookup(labels: ILanguageLabel[]): Record<string, ILabel[]>;
5063
- }
5776
+ //#region src/eventbus/events/metadata/highlight-navigation.d.ts
5777
+ declare function highlightNavigation(): IEventMetadata<HighlightNavigationEvent['args']>;
5064
5778
  //#endregion
5065
- //#region src/eligius-engine.d.ts
5066
- type ActionMethod = (IEndableAction['start'] & ActionMethodMetadata) | (IEndableAction['end'] & ActionMethodMetadata);
5067
- interface ActionMethodMetadata {
5068
- id: string;
5069
- isStart: boolean;
5070
- startPosition?: number;
5071
- }
5072
- /**
5073
- * This is where the magic happens. The engine is responsible for starting and stopping
5074
- * the given timeline provider and triggering the actions associated with the positions along the timeline.
5075
- */
5076
- declare class EligiusEngine implements IEligiusEngine {
5077
- private configuration;
5078
- private eventbus;
5079
- private timelineProviders;
5080
- private languageManager;
5081
- private _timeLineActionsLookup;
5082
- private _timelineLookupCache;
5083
- private _eventbusRemovers;
5084
- private _currentTimelineUri;
5085
- private _activeTimelineProvider;
5086
- private _lastPosition;
5087
- constructor(configuration: IResolvedEngineConfiguration, eventbus: IEventbus, timelineProviders: Record<TimelineTypes, ITimelineProviderInfo>, languageManager: LanguageManager);
5088
- /**
5089
- * Initializes the engine by creating the HTML layout and the first time line
5090
- * by executing its initActions.
5091
- */
5092
- init(): Promise<ITimelineProvider>;
5093
- private _createLayoutTemplate;
5094
- private _initializeTimelineProvider;
5095
- private _onCompleteCallback;
5096
- private _onFirstFrameCallback;
5097
- private _onRestartCallback;
5098
- private _cleanUp;
5099
- /**
5100
- * Cleans up all the necessary parts that the engine initialized.
5101
- * - It ends the currently active operations and the init actions.
5102
- * - It removes all its eventbus listeners, handlers and interceptors.
5103
- * - It destroys all of its timeline providers
5104
- * - It empties the HTML element indicated by the containerSelector configuration property.
5105
- *
5106
- */
5107
- destroy(): Promise<void>;
5108
- private _addEventListener;
5109
- private _addEventbusListeners;
5110
- private seekRequest;
5111
- private durationRequest;
5112
- private containerRequest;
5113
- private _pauseRequest;
5114
- private _stopRequest;
5115
- private _playRequest;
5116
- private _toggleplay;
5117
- private _createTimelineLookup;
5118
- static sortTimelines(timelines: Record<number, ActionMethod[]>[]): void;
5119
- static sortActionsPerPosition(actions: ActionMethod[]): ActionMethod[];
5120
- private _addTimelineActionStart;
5121
- private _addTimelineActionEnd;
5122
- private _initializeUriLookup;
5123
- private _initializeTimelinePosition;
5124
- private _executeActions;
5125
- private _handleRequestEngineRoot;
5126
- private _handleRequestTimelineUri;
5127
- private _cleanUpTimeline;
5128
- private _executeStartActions;
5129
- /**
5130
- * Gets all of the inactive actions whose duration falls within the given timeline position.
5131
- *
5132
- * @param position the given position
5133
- * @param actions all of the relevant actions
5134
- * @returns
5135
- */
5136
- private _getActionsForPosition;
5137
- private _getActiveActions;
5138
- private _executeRelevantActions;
5139
- private _handleRequestTimelinePosition;
5140
- private _handleTimelineComplete;
5141
- private _getTimelineActionsForCurrentTimeline;
5142
- private _requestCurrentTimeline;
5143
- private _getTimelineActionsForUri;
5144
- private _onTimeHandler;
5145
- private _executeActionsForPosition;
5146
- private _executeSeekActions;
5147
- }
5148
- //#endregion
5149
- //#region src/engine-factory.d.ts
5150
- /**
5151
- * The EngineFactory is used to create and initialize an {@link IEligiusEngine} instance.
5152
- *
5153
- * It prepares a resolved configuration and creates the engine based on the class defined in the configuration.
5154
- *
5155
- * @example Loading a configuration and creating an IEligiusEngine instance
5156
- * ```ts
5157
- * import { IEngineConfiguration, EngineFactory, WebpackResourceImporter } from 'eligius';
5158
- * import * as engineConfig from './my-eligius-config.json';
5159
- *
5160
- * const factory = new EngineFactory(new WebpackResourceImporter(), window);
5161
- *
5162
- * const engine = factory.createEngine((engineConfig as unknown) as IEngineConfiguration);
5163
- *
5164
- * engine.init().then(()=> {console.log('Eligius engine ready for business');});
5165
- * ```
5166
- */
5167
- declare class EngineFactory implements IEngineFactory {
5168
- private _actionsLookup;
5169
- private _eventbus;
5170
- private _eventRemovers;
5171
- private _importer;
5172
- private _resizeTimeout;
5173
- constructor(importer: ISimpleResourceImporter, windowRef: Window, options?: IEngineFactoryOptions);
5174
- private _handleSpacePress;
5175
- private _initializeDevtools;
5176
- destroy(): void;
5177
- private _resizeHandler;
5178
- private _importSystemEntryWithEventbusDependency;
5179
- private _importSystemEntry;
5180
- private _requestInstanceHandler;
5181
- private _requestFunctionHandler;
5182
- private _requestActionHandler;
5183
- createEngine(configuration: IEngineConfiguration, resolver?: IConfigurationResolver): IEligiusEngine;
5184
- private _createTimelineProviders;
5185
- }
5186
- //#endregion
5187
- //#region src/eventbus/events/metadata/before-request-timeline-uri.d.ts
5188
- declare function beforeRequestTimelineUri(): IEventMetadata<BeforeRequestTimelineUriEvent['args']>;
5189
- //#endregion
5190
- //#region src/eventbus/events/metadata/before-request-video-url.d.ts
5191
- declare function beforeRequestVideoUrl(): IEventMetadata<BeforeRequestVideoUrlEvent['args']>;
5192
- //#endregion
5193
- //#region src/eventbus/events/metadata/dom-mutation.d.ts
5194
- declare function domMutation(): IEventMetadata<DomMutationEvent['args']>;
5195
- //#endregion
5196
- //#region src/eventbus/events/metadata/highlight-navigation.d.ts
5197
- declare function highlightNavigation(): IEventMetadata<HighlightNavigationEvent['args']>;
5198
- //#endregion
5199
- //#region src/eventbus/events/metadata/language-change.d.ts
5200
- declare function languageChange(): IEventMetadata<LanguageChangeEvent['args']>;
5779
+ //#region src/eventbus/events/metadata/language-change.d.ts
5780
+ declare function languageChange(): IEventMetadata<LanguageChangeEvent['args']>;
5201
5781
  //#endregion
5202
5782
  //#region src/eventbus/events/metadata/navigate-to-video-url.d.ts
5203
5783
  declare function navigateToVideoUrl(): IEventMetadata<NavigateToVideoUrlEvent['args']>;
@@ -5326,81 +5906,987 @@ declare class EligiusResourceImporter implements IResourceImporter {
5326
5906
  import(name: string): Record<string, any>;
5327
5907
  }
5328
5908
  //#endregion
5329
- //#region src/timelineproviders/request-animation-frame-timeline-provider.d.ts
5330
- declare class RequestAnimationFrameTimelineProvider implements ITimelineProvider {
5331
- private _currentPosition;
5332
- private _updateBound;
5333
- private _firstFramePending;
5334
- private _currentPlaylistItem;
5335
- private _tickInterval;
5336
- private _playlist;
5337
- private _containerElement;
5338
- private _abortController;
5339
- private _onTime;
5340
- private _onComplete;
5341
- private _onRestart;
5342
- private _onFirstFrame;
5343
- loop: boolean;
5344
- private _playState;
5345
- get playState(): TPlayState;
5346
- constructor(config: IResolvedEngineConfiguration);
5347
- private _extractPlaylist;
5348
- onTime(callback: (position: number) => void): void;
5349
- onComplete(callback: () => void): void;
5350
- onRestart(callback: () => void): void;
5351
- onFirstFrame(callback: () => void): void;
5352
- playlistItem(uri: string): void;
5353
- private _update;
5354
- private _callbackPosition;
5355
- start(): void;
5356
- private _resetToStartPosition;
5357
- getContainer(): JQuery<HTMLElement> | undefined;
5358
- private _stopAnimationInterval;
5909
+ //#region src/timelineproviders/position-sources/base-position-source.d.ts
5910
+ /**
5911
+ * Abstract base class for position sources.
5912
+ *
5913
+ * Provides shared state management, lifecycle handling, and callback
5914
+ * registration for concrete position source implementations.
5915
+ *
5916
+ * Subclasses must implement:
5917
+ * - `doInit()` - Source-specific initialization
5918
+ * - `doDestroy()` - Source-specific cleanup
5919
+ * - `startTicking()` - Start emitting position updates
5920
+ * - `stopTicking()` - Stop emitting position updates
5921
+ *
5922
+ * @example
5923
+ * ```typescript
5924
+ * class MyPositionSource extends BasePositionSource {
5925
+ * protected doInit(): Promise<void> {
5926
+ * // Initialize resources
5927
+ * return Promise.resolve();
5928
+ * }
5929
+ *
5930
+ * protected doDestroy(): void {
5931
+ * // Clean up resources
5932
+ * }
5933
+ *
5934
+ * protected startTicking(): void {
5935
+ * // Start position updates
5936
+ * }
5937
+ *
5938
+ * protected stopTicking(): void {
5939
+ * // Stop position updates
5940
+ * }
5941
+ * }
5942
+ * ```
5943
+ */
5944
+ declare abstract class BasePositionSource implements IPositionSource {
5945
+ private _state;
5946
+ private _position;
5947
+ private readonly _duration;
5948
+ private _loop;
5949
+ private readonly _positionCallbacks;
5950
+ private readonly _boundaryCallbacks;
5951
+ private readonly _activatedCallbacks;
5952
+ /**
5953
+ * Create a new position source.
5954
+ *
5955
+ * @param duration - Total duration in seconds (or `Infinity` for unbounded)
5956
+ */
5957
+ constructor(duration: number);
5958
+ get state(): TSourceState;
5959
+ get loop(): boolean;
5960
+ set loop(value: boolean);
5359
5961
  init(): Promise<void>;
5360
5962
  destroy(): void;
5361
- stop(): void;
5362
- pause(): void;
5363
- seek(position: number): Promise<number>;
5963
+ activate(): Promise<void>;
5964
+ suspend(): void;
5965
+ deactivate(): void;
5364
5966
  getPosition(): number;
5365
5967
  getDuration(): number;
5968
+ onPosition(callback: (position: number) => void): void;
5969
+ onBoundaryReached(callback: (boundary: TBoundary) => void): void;
5970
+ onActivated(callback: () => void): void;
5971
+ /**
5972
+ * Set the current position and emit to callbacks.
5973
+ *
5974
+ * Only emits if the source is active.
5975
+ *
5976
+ * @param position - New position value
5977
+ */
5978
+ protected setPosition(position: number): void;
5979
+ /**
5980
+ * Emit a boundary event to all registered callbacks.
5981
+ *
5982
+ * @param boundary - The boundary type ('start' or 'end')
5983
+ */
5984
+ protected emitBoundary(boundary: TBoundary): void;
5985
+ /**
5986
+ * Perform source-specific initialization.
5987
+ *
5988
+ * Called by `init()`. Override to load resources, bind listeners, etc.
5989
+ */
5990
+ protected abstract doInit(): Promise<void>;
5991
+ /**
5992
+ * Perform source-specific cleanup.
5993
+ *
5994
+ * Called by `destroy()`. Override to release resources, unbind listeners, etc.
5995
+ */
5996
+ protected abstract doDestroy(): void;
5997
+ /**
5998
+ * Start emitting position updates.
5999
+ *
6000
+ * Called when transitioning to `active` state.
6001
+ * Override to start timers, begin listening to events, etc.
6002
+ */
6003
+ protected abstract startTicking(): void;
6004
+ /**
6005
+ * Stop emitting position updates.
6006
+ *
6007
+ * Called when transitioning from `active` to `suspended` or `inactive`.
6008
+ * Override to stop timers, pause listening, etc.
6009
+ */
6010
+ protected abstract stopTicking(): void;
5366
6011
  }
5367
6012
  //#endregion
5368
- //#region src/timelineproviders/video-js-timeline-provider.d.ts
5369
- declare class VideoJsTimelineProvider implements ITimelineProvider {
5370
- private config;
5371
- private _videoElementId;
5372
- private _eventHandlers;
5373
- private _playState;
5374
- get playState(): TPlayState;
5375
- loop: boolean;
5376
- private _urls;
5377
- private _onTime;
5378
- private _onComplete;
5379
- private _onRestart;
5380
- private _onFirstFrame;
6013
+ //#region src/timelineproviders/position-sources/raf-position-source.d.ts
6014
+ /**
6015
+ * Configuration for RafPositionSource.
6016
+ */
6017
+ interface RafPositionSourceConfig {
6018
+ /**
6019
+ * Total duration in seconds.
6020
+ */
6021
+ duration: number;
6022
+ /**
6023
+ * Interval between position ticks in milliseconds.
6024
+ * @default 1000 (1 second)
6025
+ */
6026
+ tickInterval?: number;
6027
+ }
6028
+ /**
6029
+ * RequestAnimationFrame-based position source.
6030
+ *
6031
+ * Uses the `animationInterval` utility to emit position updates at a regular
6032
+ * interval (default: 1 second). Position increments by 1 per second, making
6033
+ * position values equivalent to elapsed seconds.
6034
+ *
6035
+ * Implements both `IPositionSource` (via `BasePositionSource`) and `ISeekable`.
6036
+ *
6037
+ * @example
6038
+ * ```typescript
6039
+ * const source = new RafPositionSource({ duration: 60 });
6040
+ * await source.init();
6041
+ *
6042
+ * source.onPosition((position) => {
6043
+ * console.log(`Position: ${position}s`);
6044
+ * });
6045
+ *
6046
+ * source.onBoundaryReached((boundary) => {
6047
+ * if (boundary === 'end') {
6048
+ * console.log('Timeline complete');
6049
+ * }
6050
+ * });
6051
+ *
6052
+ * await source.activate();
6053
+ *
6054
+ * // Seek to 30 seconds
6055
+ * await source.seek(30);
6056
+ * ```
6057
+ */
6058
+ declare class RafPositionSource extends BasePositionSource implements ISeekable {
6059
+ private readonly _tickInterval;
6060
+ private _abortController;
6061
+ private _startTimeOffset;
6062
+ /**
6063
+ * Create a new RAF-based position source.
6064
+ *
6065
+ * @param config - Configuration options
6066
+ */
6067
+ constructor(config: RafPositionSourceConfig);
6068
+ protected doInit(): Promise<void>;
6069
+ protected doDestroy(): void;
6070
+ protected startTicking(): void;
6071
+ protected stopTicking(): void;
6072
+ /**
6073
+ * Seek to a specific position.
6074
+ *
6075
+ * Position is clamped to the valid range [0, duration].
6076
+ *
6077
+ * @param position - Target position in seconds
6078
+ * @returns Actual position after seek (may be clamped)
6079
+ */
6080
+ seek(position: number): Promise<number>;
6081
+ /**
6082
+ * Handle a tick from animationInterval.
6083
+ *
6084
+ * The time parameter represents elapsed milliseconds since the animation
6085
+ * interval started. Position is calculated in seconds, rounded to the
6086
+ * precision determined by tickInterval.
6087
+ *
6088
+ * @param time - Elapsed time in milliseconds from animationInterval
6089
+ */
6090
+ private _onTick;
6091
+ /**
6092
+ * Abort the current ticking session.
6093
+ */
6094
+ private _abortTicking;
6095
+ }
6096
+ //#endregion
6097
+ //#region src/timelineproviders/position-sources/scroll-position-source.d.ts
6098
+ /**
6099
+ * Configuration for ScrollPositionSource.
6100
+ */
6101
+ interface ScrollPositionSourceConfig {
6102
+ /**
6103
+ * CSS selector for the scrollable container element.
6104
+ */
6105
+ selector: string;
6106
+ /**
6107
+ * Duration in seconds that the scroll represents.
6108
+ * Position is calculated as: (scrollTop / scrollableHeight) * duration
6109
+ */
6110
+ duration: number;
6111
+ }
6112
+ /**
6113
+ * Scroll-based position source.
6114
+ *
6115
+ * Maps scroll position to a timeline position. The position is calculated
6116
+ * as a percentage of the scroll progress multiplied by the configured duration.
6117
+ *
6118
+ * Implements `IPositionSource` and `ISeekable`.
6119
+ *
6120
+ * @example
6121
+ * ```typescript
6122
+ * const source = new ScrollPositionSource({
6123
+ * selector: '#scroll-container',
6124
+ * duration: 100, // 100 seconds timeline
6125
+ * });
6126
+ *
6127
+ * await source.init();
6128
+ *
6129
+ * source.onPosition((position) => {
6130
+ * console.log(`Scroll at ${position}s of 100s`);
6131
+ * });
6132
+ *
6133
+ * source.onBoundaryReached((boundary) => {
6134
+ * if (boundary === 'end') {
6135
+ * console.log('Scrolled to bottom');
6136
+ * }
6137
+ * });
6138
+ *
6139
+ * await source.activate();
6140
+ * ```
6141
+ */
6142
+ declare class ScrollPositionSource extends BasePositionSource implements ISeekable {
6143
+ private readonly _config;
6144
+ private _element;
6145
+ private _boundScrollHandler;
6146
+ private _lastPosition;
6147
+ private _wasAtStart;
6148
+ /**
6149
+ * Create a new scroll-based position source.
6150
+ *
6151
+ * @param config - Configuration options
6152
+ */
6153
+ constructor(config: ScrollPositionSourceConfig);
6154
+ protected doInit(): Promise<void>;
6155
+ protected doDestroy(): void;
6156
+ protected startTicking(): void;
6157
+ protected stopTicking(): void;
6158
+ /**
6159
+ * Seek to a specific position by programmatically scrolling.
6160
+ *
6161
+ * @param position - Target position in seconds (0 to duration)
6162
+ * @returns Actual position after scroll
6163
+ */
6164
+ seek(position: number): Promise<number>;
6165
+ /**
6166
+ * Handle scroll events and update position.
6167
+ */
6168
+ private _handleScroll;
6169
+ /**
6170
+ * Calculate position from scroll percentage.
6171
+ */
6172
+ private _calculatePosition;
6173
+ /**
6174
+ * Get the scrollable height (total scroll distance).
6175
+ */
6176
+ private _getScrollableHeight;
6177
+ }
6178
+ //#endregion
6179
+ //#region src/timelineproviders/position-sources/video-position-source.d.ts
6180
+ /**
6181
+ * Video source configuration for VideoPositionSource.
6182
+ */
6183
+ interface VideoSource {
6184
+ /**
6185
+ * URL of the video file.
6186
+ */
6187
+ src: string;
6188
+ /**
6189
+ * MIME type of the video (e.g., 'video/mp4').
6190
+ */
6191
+ type: string;
6192
+ }
6193
+ /**
6194
+ * Configuration for VideoPositionSource.
6195
+ */
6196
+ interface VideoPositionSourceConfig {
6197
+ /**
6198
+ * CSS selector for the container where the video player will be created.
6199
+ */
6200
+ selector: string;
6201
+ /**
6202
+ * Video sources to load.
6203
+ */
6204
+ sources: VideoSource[];
6205
+ /**
6206
+ * Optional video.js player options.
6207
+ */
6208
+ options?: Record<string, unknown>;
6209
+ }
6210
+ /**
6211
+ * Video.js-based position source.
6212
+ *
6213
+ * Wraps a video.js player to provide position updates based on video playback.
6214
+ * Implements `IPositionSource`, `ISeekable`, and `IContainerProvider`.
6215
+ *
6216
+ * @example
6217
+ * ```typescript
6218
+ * const source = new VideoPositionSource({
6219
+ * selector: '#video-container',
6220
+ * sources: [
6221
+ * { src: 'video.mp4', type: 'video/mp4' },
6222
+ * { src: 'video.webm', type: 'video/webm' },
6223
+ * ],
6224
+ * });
6225
+ *
6226
+ * await source.init();
6227
+ *
6228
+ * source.onPosition((position) => {
6229
+ * console.log(`Video at ${position}s`);
6230
+ * });
6231
+ *
6232
+ * source.onContainerReady(() => {
6233
+ * console.log('Video ready for display');
6234
+ * });
6235
+ *
6236
+ * await source.activate();
6237
+ * ```
6238
+ */
6239
+ declare class VideoPositionSource extends BasePositionSource implements ISeekable, IContainerProvider {
6240
+ private readonly _config;
5381
6241
  private _player;
5382
- constructor(config: IResolvedEngineConfiguration);
5383
- init(): Promise<void>;
5384
- private _addPlayerListener;
5385
- private _handleEnded;
5386
- private _handleTimeUpdate;
5387
- start(): void;
5388
- stop(): void;
5389
- pause(): void;
6242
+ private _videoElementId;
6243
+ private readonly _containerReadyCallbacks;
6244
+ private readonly _eventHandlers;
6245
+ /**
6246
+ * Create a new video.js-based position source.
6247
+ *
6248
+ * @param config - Configuration options
6249
+ */
6250
+ constructor(config: VideoPositionSourceConfig);
6251
+ protected doInit(): Promise<void>;
6252
+ protected doDestroy(): void;
6253
+ protected startTicking(): void;
6254
+ protected stopTicking(): void;
6255
+ /**
6256
+ * Seek to a specific position in the video.
6257
+ *
6258
+ * @param position - Target position in seconds
6259
+ * @returns Actual position after seek
6260
+ */
5390
6261
  seek(position: number): Promise<number>;
5391
- playlistItem(uri: string): void;
5392
- getPosition(): number;
5393
- getDuration(): number;
6262
+ /**
6263
+ * Get the container element.
6264
+ *
6265
+ * @returns jQuery-wrapped container element
6266
+ */
5394
6267
  getContainer(): JQuery<HTMLElement> | undefined;
5395
- destroy(): void;
5396
- onTime(callback: (position: number) => void): void;
5397
- onComplete(callback: () => void): void;
5398
- onRestart(callback: () => void): void;
5399
- onFirstFrame(callback: () => void): void;
5400
- private _extractUrls;
5401
- private _addVideoElements;
5402
- _extractFileType(url: string): string;
6268
+ /**
6269
+ * Register a callback for when the container is ready.
6270
+ *
6271
+ * @param callback - Function called when container is ready
6272
+ */
6273
+ onContainerReady(callback: () => void): void;
6274
+ /**
6275
+ * Get the video duration.
6276
+ *
6277
+ * @returns Duration in seconds from video.js player
6278
+ */
6279
+ getDuration(): number;
6280
+ /**
6281
+ * Deactivate the source and reset position.
6282
+ *
6283
+ * Overrides base to also reset video currentTime.
6284
+ */
6285
+ deactivate(): void;
6286
+ /**
6287
+ * Create the video element in the container.
6288
+ */
6289
+ private _createVideoElement;
6290
+ /**
6291
+ * Add an event listener to the player and track for cleanup.
6292
+ *
6293
+ * @param event - Event name
6294
+ * @param handler - Event handler
6295
+ */
6296
+ private _addPlayerListener;
6297
+ /**
6298
+ * Handle timeupdate event from video.js.
6299
+ */
6300
+ private _handleTimeUpdate;
6301
+ /**
6302
+ * Handle ended event from video.js.
6303
+ */
6304
+ private _handleEnded;
6305
+ /**
6306
+ * Notify all container ready callbacks.
6307
+ */
6308
+ private _notifyContainerReady;
6309
+ }
6310
+ //#endregion
6311
+ //#region src/timelineproviders/container-providers/dom-container-provider.d.ts
6312
+ /**
6313
+ * Configuration for DomContainerProvider.
6314
+ */
6315
+ interface DomContainerProviderConfig {
6316
+ /**
6317
+ * CSS selector for the container element.
6318
+ */
6319
+ selector: string;
6320
+ }
6321
+ /**
6322
+ * DOM selector-based container provider.
6323
+ *
6324
+ * Provides access to a DOM container element via a CSS selector.
6325
+ * Implements `IContainerProvider` for use with position sources that
6326
+ * don't have an intrinsic container (e.g., RAF-based sources, WebSocket sources).
6327
+ *
6328
+ * @example
6329
+ * ```typescript
6330
+ * const containerProvider = new DomContainerProvider({
6331
+ * selector: '#timeline-container',
6332
+ * });
6333
+ *
6334
+ * containerProvider.onContainerReady(() => {
6335
+ * const $container = containerProvider.getContainer();
6336
+ * $container?.append('<div class="content">Ready!</div>');
6337
+ * });
6338
+ *
6339
+ * await containerProvider.init();
6340
+ * ```
6341
+ */
6342
+ declare class DomContainerProvider implements IContainerProvider {
6343
+ private readonly _config;
6344
+ private _container;
6345
+ private _isReady;
6346
+ private _isDestroyed;
6347
+ private readonly _readyCallbacks;
6348
+ /**
6349
+ * Create a new DOM container provider.
6350
+ *
6351
+ * @param config - Configuration options
6352
+ */
6353
+ constructor(config: DomContainerProviderConfig);
6354
+ /**
6355
+ * Initialize the container provider.
6356
+ *
6357
+ * Looks up the container element using the configured selector.
6358
+ *
6359
+ * @throws Error if the element is not found
6360
+ */
6361
+ init(): Promise<void>;
6362
+ /**
6363
+ * Destroy the container provider and release resources.
6364
+ */
6365
+ destroy(): void;
6366
+ /**
6367
+ * Get the container element.
6368
+ *
6369
+ * @returns jQuery-wrapped container element, or `undefined` if not initialized
6370
+ */
6371
+ getContainer(): JQuery<HTMLElement> | undefined;
6372
+ /**
6373
+ * Register a callback for when the container is ready.
6374
+ *
6375
+ * If the container is already ready, the callback is invoked immediately.
6376
+ *
6377
+ * @param callback - Function called when container is ready
6378
+ */
6379
+ onContainerReady(callback: () => void): void;
6380
+ /**
6381
+ * Notify all registered ready callbacks.
6382
+ */
6383
+ private _notifyReady;
6384
+ }
6385
+ //#endregion
6386
+ //#region src/timelineproviders/playlist/simple-playlist.d.ts
6387
+ /**
6388
+ * Configuration for SimplePlaylist.
6389
+ *
6390
+ * @typeParam TItem - Type of playlist items
6391
+ */
6392
+ interface SimplePlaylistConfig<TItem> {
6393
+ /**
6394
+ * Array of items in the playlist.
6395
+ * Must contain at least one item.
6396
+ */
6397
+ items: TItem[];
6398
+ /**
6399
+ * Key of the item to use as identifier for `selectItem()`.
6400
+ * The value at this key is coerced to a string for comparison.
6401
+ */
6402
+ identifierKey: keyof TItem;
6403
+ }
6404
+ /**
6405
+ * Simple playlist implementation.
6406
+ *
6407
+ * Manages a collection of timeline items and allows switching between them.
6408
+ * Implements `IPlaylist<TItem>` for use with timeline providers that
6409
+ * support multiple content sources.
6410
+ *
6411
+ * @typeParam TItem - Type of playlist items
6412
+ *
6413
+ * @example
6414
+ * ```typescript
6415
+ * interface VideoItem {
6416
+ * id: string;
6417
+ * uri: string;
6418
+ * title: string;
6419
+ * }
6420
+ *
6421
+ * const playlist = new SimplePlaylist<VideoItem>({
6422
+ * items: [
6423
+ * { id: 'intro', uri: '/videos/intro.mp4', title: 'Introduction' },
6424
+ * { id: 'ch1', uri: '/videos/chapter-1.mp4', title: 'Chapter 1' },
6425
+ * ],
6426
+ * identifierKey: 'id',
6427
+ * });
6428
+ *
6429
+ * playlist.onItemChange((item) => {
6430
+ * console.log(`Now playing: ${item.title}`);
6431
+ * });
6432
+ *
6433
+ * playlist.selectItem('ch1');
6434
+ * ```
6435
+ */
6436
+ declare class SimplePlaylist<TItem = unknown> implements IPlaylist<TItem> {
6437
+ private readonly _items;
6438
+ private readonly _identifierKey;
6439
+ private _currentIndex;
6440
+ private readonly _changeCallbacks;
6441
+ /**
6442
+ * Create a new simple playlist.
6443
+ *
6444
+ * @param config - Configuration options
6445
+ * @throws Error if items array is empty
6446
+ */
6447
+ constructor(config: SimplePlaylistConfig<TItem>);
6448
+ /**
6449
+ * Get the currently active item.
6450
+ */
6451
+ get currentItem(): TItem;
6452
+ /**
6453
+ * Get all items in the playlist.
6454
+ *
6455
+ * Returns a readonly array to prevent external modification.
6456
+ */
6457
+ get items(): readonly TItem[];
6458
+ /**
6459
+ * Select an item by identifier.
6460
+ *
6461
+ * Looks up the item using the configured identifier key and switches
6462
+ * to it if found. Triggers item change callbacks if the selection changes.
6463
+ *
6464
+ * @param identifier - Unique identifier for the item
6465
+ * @throws Error if no item matches the identifier
6466
+ */
6467
+ selectItem(identifier: string): void;
6468
+ /**
6469
+ * Register a callback for item changes.
6470
+ *
6471
+ * Called whenever the current item changes via `selectItem()`.
6472
+ *
6473
+ * @param callback - Function receiving the new current item
6474
+ */
6475
+ onItemChange(callback: (item: TItem) => void): void;
6476
+ /**
6477
+ * Notify all registered change callbacks.
6478
+ */
6479
+ private _notifyChange;
6480
+ }
6481
+ //#endregion
6482
+ //#region src/util/typed-event-emitter.d.ts
6483
+ /**
6484
+ * Handler function for a specific event
6485
+ */
6486
+ type EventHandler<T extends unknown[]> = (...args: T) => void;
6487
+ /**
6488
+ * Interface for a type-safe event emitter
6489
+ * @typeParam T - Event map object where keys are event names and values are argument tuples
6490
+ *
6491
+ * Note: Use `type` aliases (not `interface`) for your event maps to avoid
6492
+ * "Index signature is missing" errors. TypeScript treats them differently.
6493
+ */
6494
+ interface ITypedEventEmitter<T extends Record<keyof T, unknown[]>> {
6495
+ /**
6496
+ * Subscribe to an event
6497
+ * @param event - Event name
6498
+ * @param handler - Event handler
6499
+ * @returns Unsubscribe function
6500
+ */
6501
+ on<K$1 extends keyof T>(event: K$1, handler: EventHandler<T[K$1]>): () => void;
6502
+ /**
6503
+ * Subscribe to an event for one-time execution
6504
+ * @param event - Event name
6505
+ * @param handler - Event handler
6506
+ * @returns Unsubscribe function
6507
+ */
6508
+ once<K$1 extends keyof T>(event: K$1, handler: EventHandler<T[K$1]>): () => void;
6509
+ /**
6510
+ * Unsubscribe from an event
6511
+ * @param event - Event name
6512
+ * @param handler - Event handler to remove
6513
+ */
6514
+ off<K$1 extends keyof T>(event: K$1, handler: EventHandler<T[K$1]>): void;
6515
+ /**
6516
+ * Emit an event to all subscribers
6517
+ * @param event - Event name
6518
+ * @param args - Event arguments
6519
+ */
6520
+ emit<K$1 extends keyof T>(event: K$1, ...args: T[K$1]): void;
6521
+ /**
6522
+ * Remove all listeners for a specific event or all events
6523
+ * @param event - Optional event name. If not provided, removes all listeners.
6524
+ */
6525
+ removeAllListeners(event?: keyof T): void;
6526
+ }
6527
+ /**
6528
+ * Type-safe event emitter implementation
6529
+ *
6530
+ * Features:
6531
+ * - Generic type parameter for event map
6532
+ * - Handler execution order preserved (registration order)
6533
+ * - Errors in handlers caught and logged (don't break other handlers)
6534
+ * - Copy handlers array during emit (safe removal during iteration)
6535
+ *
6536
+ * @example
6537
+ * ```typescript
6538
+ * interface MyEvents {
6539
+ * start: [];
6540
+ * data: [value: string];
6541
+ * progress: [current: number, total: number];
6542
+ * }
6543
+ *
6544
+ * const emitter = new TypedEventEmitter<MyEvents>();
6545
+ *
6546
+ * const unsubscribe = emitter.on('data', (value) => {
6547
+ * console.log('Received:', value);
6548
+ * });
6549
+ *
6550
+ * emitter.emit('data', 'hello');
6551
+ * unsubscribe();
6552
+ * ```
6553
+ */
6554
+ declare class TypedEventEmitter<T extends Record<keyof T, unknown[]>> implements ITypedEventEmitter<T> {
6555
+ private handlers;
6556
+ /**
6557
+ * Subscribe to an event
6558
+ * @param event - Event name
6559
+ * @param handler - Event handler
6560
+ * @returns Unsubscribe function
6561
+ */
6562
+ on<K$1 extends keyof T>(event: K$1, handler: EventHandler<T[K$1]>): () => void;
6563
+ /**
6564
+ * Subscribe to an event for one-time execution
6565
+ * @param event - Event name
6566
+ * @param handler - Event handler
6567
+ * @returns Unsubscribe function
6568
+ */
6569
+ once<K$1 extends keyof T>(event: K$1, handler: EventHandler<T[K$1]>): () => void;
6570
+ /**
6571
+ * Unsubscribe from an event
6572
+ * @param event - Event name
6573
+ * @param handler - Event handler to remove
6574
+ */
6575
+ off<K$1 extends keyof T>(event: K$1, handler: EventHandler<T[K$1]>): void;
6576
+ /**
6577
+ * Emit an event to all subscribers
6578
+ *
6579
+ * Features:
6580
+ * - Copies handlers array to allow safe removal during iteration
6581
+ * - Isolates errors - one failing handler doesn't break others
6582
+ * - Logs errors to console for debugging
6583
+ *
6584
+ * @param event - Event name
6585
+ * @param args - Event arguments
6586
+ */
6587
+ emit<K$1 extends keyof T>(event: K$1, ...args: T[K$1]): void;
6588
+ /**
6589
+ * Remove all listeners for a specific event or all events
6590
+ * @param event - Optional event name. If not provided, removes all listeners.
6591
+ */
6592
+ removeAllListeners(event?: keyof T): void;
6593
+ }
6594
+ //#endregion
6595
+ //#region src/language-manager.d.ts
6596
+ /**
6597
+ * Manages multi-language labels with explicit, testable API.
6598
+ *
6599
+ * This class manages the labels for an {@link IEligiusEngine} instance.
6600
+ * It provides a pure API for language management and emits events for language changes.
6601
+ *
6602
+ * Eventbus integration is handled by LanguageEventbusAdapter.
6603
+ */
6604
+ declare class LanguageManager implements ILanguageManager {
6605
+ private _currentLanguage;
6606
+ private _labelLookup;
6607
+ private _emitter;
6608
+ private _availableLanguages;
6609
+ /** Current language code (e.g., 'en-US', 'nl-NL') */
6610
+ get language(): string;
6611
+ /** List of available language codes, derived from unique languages in label collections */
6612
+ get availableLanguages(): string[];
6613
+ constructor(_currentLanguage: TLanguageCode, labels: ILanguageLabel[]);
6614
+ /**
6615
+ * Subscribe to language manager events
6616
+ * @param event - Event name
6617
+ * @param handler - Event handler
6618
+ * @returns Unsubscribe function
6619
+ */
6620
+ on<K$1 extends keyof LanguageEvents>(event: K$1, handler: (...args: LanguageEvents[K$1]) => void): () => void;
6621
+ /**
6622
+ * Change the current language
6623
+ * @param language - New language code
6624
+ * @throws If language code is empty or null
6625
+ */
6626
+ setLanguage(language: TLanguageCode): void;
6627
+ /**
6628
+ * Get a label collection by ID
6629
+ * @param collectionId - Label collection ID
6630
+ * @returns Label array or undefined if not found
6631
+ */
6632
+ getLabelCollection(collectionId: string): ILabel[] | undefined;
6633
+ /**
6634
+ * Get multiple label collections by IDs
6635
+ * @param collectionIds - Array of label collection IDs
6636
+ * @returns Array of label arrays (undefined for not found collections)
6637
+ */
6638
+ getLabelCollections(collectionIds: string[]): (ILabel[] | undefined)[];
6639
+ /**
6640
+ * Clean up resources
6641
+ */
6642
+ destroy(): void;
6643
+ private _createLabelLookup;
6644
+ private _extractAvailableLanguages;
6645
+ }
6646
+ //#endregion
6647
+ //#region src/eligius-engine.d.ts
6648
+ type ActionMethod = (IEndableAction['start'] & ActionMethodMetadata) | (IEndableAction['end'] & ActionMethodMetadata);
6649
+ interface ActionMethodMetadata {
6650
+ id: string;
6651
+ isStart: boolean;
6652
+ startPosition?: number;
6653
+ }
6654
+ /**
6655
+ * The Eligius timeline engine with explicit, testable API.
6656
+ *
6657
+ * This engine is responsible for starting and stopping the given timeline provider
6658
+ * and triggering the actions associated with positions along the timeline.
6659
+ */
6660
+ declare class EligiusEngine implements IEligiusEngine {
6661
+ private configuration;
6662
+ private eventbus;
6663
+ private timelineProviders;
6664
+ private languageManager;
6665
+ private _timeLineActionsLookup;
6666
+ private _timelineLookupCache;
6667
+ private _eventbusRemovers;
6668
+ private _currentTimelineUri;
6669
+ private _activePositionSource;
6670
+ private _activeContainerProvider;
6671
+ private _activePlaylist;
6672
+ private _lastPosition;
6673
+ private _emitter;
6674
+ /** Current timeline position in seconds (supports fractional values) */
6675
+ get position(): number;
6676
+ /** Timeline duration in seconds, undefined if not yet available */
6677
+ get duration(): number | undefined;
6678
+ /** Current playback state (derived from position source state) */
6679
+ get playState(): 'playing' | 'paused' | 'stopped';
6680
+ /** URI of the currently active timeline */
6681
+ get currentTimelineUri(): string;
6682
+ /** Container element for the active timeline provider */
6683
+ get container(): JQuery<HTMLElement> | undefined;
6684
+ /** Root element of the engine (container selector) */
6685
+ get engineRoot(): JQuery<HTMLElement>;
6686
+ constructor(configuration: IResolvedEngineConfiguration, eventbus: IEventbus, timelineProviders: Record<TimelineTypes, ITimelineProviderInfo>, languageManager: LanguageManager);
6687
+ /**
6688
+ * Subscribe to engine events
6689
+ * @param event - Event name
6690
+ * @param handler - Event handler
6691
+ * @returns Unsubscribe function
6692
+ */
6693
+ on<K$1 extends keyof EngineEvents>(event: K$1, handler: (...args: EngineEvents[K$1]) => void): () => void;
6694
+ /**
6695
+ * Start playback
6696
+ * @throws If autoplay is blocked (video provider)
6697
+ */
6698
+ start(): Promise<void>;
6699
+ /**
6700
+ * Pause playback
6701
+ */
6702
+ pause(): void;
6703
+ /**
6704
+ * Stop playback and reset to beginning
6705
+ */
6706
+ stop(): void;
6707
+ /**
6708
+ * Seek to a specific position
6709
+ * @param position - Target position in seconds
6710
+ * @returns Actual position after seek
6711
+ */
6712
+ seek(position: number): Promise<number>;
6713
+ /**
6714
+ * Switch to a different timeline
6715
+ * @param uri - Timeline URI to switch to
6716
+ * @param position - Optional starting position
6717
+ */
6718
+ switchTimeline(uri: string, position?: number): Promise<void>;
6719
+ /**
6720
+ * Initializes the engine by creating the HTML layout and the first time line
6721
+ * by executing its initActions.
6722
+ */
6723
+ init(): Promise<IPositionSource>;
6724
+ private _createLayoutTemplate;
6725
+ private _initializeTimelineProvider;
6726
+ private _onCompleteCallback;
6727
+ private _onFirstFrameCallback;
6728
+ private _onRestartCallback;
6729
+ private _cleanUp;
6730
+ /**
6731
+ * Cleans up all the necessary parts that the engine initialized.
6732
+ * - It ends the currently active operations and the init actions.
6733
+ * - It removes all its eventbus listeners, handlers and interceptors.
6734
+ * - It destroys all of its timeline providers
6735
+ * - It empties the HTML element indicated by the containerSelector configuration property.
6736
+ *
6737
+ */
6738
+ destroy(): Promise<void>;
6739
+ private _addEventListener;
6740
+ private _addEventbusListeners;
6741
+ private _seekRequest;
6742
+ private _durationRequest;
6743
+ private _containerRequest;
6744
+ private _pauseRequest;
6745
+ private _stopRequest;
6746
+ private _playRequest;
6747
+ private _toggleplay;
6748
+ private _createTimelineLookup;
6749
+ static sortTimelines(timelines: Record<number, ActionMethod[]>[]): void;
6750
+ static sortActionsPerPosition(actions: ActionMethod[]): ActionMethod[];
6751
+ private _addTimelineActionStart;
6752
+ private _addTimelineActionEnd;
6753
+ private _initializeUriLookup;
6754
+ private _initializeTimelinePosition;
6755
+ private _executeActions;
6756
+ private _handleRequestEngineRoot;
6757
+ private _handleRequestTimelineUri;
6758
+ private _cleanUpTimeline;
6759
+ private _executeStartActions;
6760
+ /**
6761
+ * Gets all of the inactive actions whose duration falls within the given timeline position.
6762
+ *
6763
+ * @param position the given position
6764
+ * @param actions all of the relevant actions
6765
+ * @returns
6766
+ */
6767
+ private _getActionsForPosition;
6768
+ private _getActiveActions;
6769
+ private _executeRelevantActions;
6770
+ private _handleRequestTimelinePosition;
6771
+ private _handleTimelineComplete;
6772
+ private _getTimelineActionsForCurrentTimeline;
6773
+ private _requestCurrentTimeline;
6774
+ private _getTimelineActionsForUri;
6775
+ private _onTimeHandler;
6776
+ private _executeActionsForPosition;
6777
+ private _executeSeekActions;
6778
+ }
6779
+ //#endregion
6780
+ //#region src/engine-factory.d.ts
6781
+ /**
6782
+ * The EngineFactory is used to create and initialize an {@link IEligiusEngine} instance.
6783
+ *
6784
+ * It prepares a resolved configuration and creates the engine based on the class defined in the configuration.
6785
+ *
6786
+ * @example Loading a configuration and creating an IEligiusEngine instance
6787
+ * ```ts
6788
+ * import { IEngineConfiguration, EngineFactory, EligiusResourceImporter } from 'eligius';
6789
+ * import * as engineConfig from './my-eligius-config.json';
6790
+ *
6791
+ * const factory = new EngineFactory(new EligiusResourceImporter(), window);
6792
+ *
6793
+ * const { engine } = factory.createEngine((engineConfig as unknown) as IEngineConfiguration);
6794
+ *
6795
+ * engine.init().then(()=> {console.log('Eligius engine ready for business');});
6796
+ * ```
6797
+ */
6798
+ declare class EngineFactory implements IEngineFactory {
6799
+ private _actionsLookup;
6800
+ private _eventbus;
6801
+ private _eventRemovers;
6802
+ private _importer;
6803
+ private _windowRef;
6804
+ constructor(importer: ISimpleResourceImporter, windowRef: Window, options?: IEngineFactoryOptions);
6805
+ /**
6806
+ * Destroys the factory and cleans up all registered request handlers.
6807
+ */
6808
+ destroy(): void;
6809
+ private _importSystemEntryWithEventbusDependency;
6810
+ private _importSystemEntry;
6811
+ private _requestInstanceHandler;
6812
+ private _requestFunctionHandler;
6813
+ private _requestActionHandler;
6814
+ /**
6815
+ * Creates a fully wired engine with adapters and event handlers.
6816
+ *
6817
+ * This method:
6818
+ * - Resolves the configuration
6819
+ * - Creates timeline providers
6820
+ * - Instantiates the engine and language manager
6821
+ * - Creates and connects adapters for eventbus integration
6822
+ *
6823
+ * @param configuration - The engine configuration
6824
+ * @param resolver - Optional custom configuration resolver
6825
+ * @returns Engine result with engine, language manager, eventbus, and destroy function
6826
+ */
6827
+ createEngine(configuration: IEngineConfiguration, resolver?: IConfigurationResolver): IEngineFactoryResult;
6828
+ private _createTimelineProviders;
6829
+ /**
6830
+ * Creates a position source for a specific timeline based on configuration.
6831
+ *
6832
+ * The position source class is resolved dynamically via the resource importer
6833
+ * using the `systemName` property from the configuration.
6834
+ *
6835
+ * @param timeline - The resolved timeline configuration
6836
+ * @param settings - The timeline provider settings containing position source config
6837
+ * @returns A configured position source
6838
+ * @throws Error if the position source class cannot be resolved
6839
+ */
6840
+ createPositionSourceForTimeline(timeline: IResolvedEngineConfiguration['timelines'][number], settings: ITimelineProviderSettings): IPositionSource;
6841
+ /**
6842
+ * Creates a container provider based on timeline provider settings.
6843
+ *
6844
+ * The container provider class is resolved dynamically via the resource importer
6845
+ * using the `systemName` property from the configuration.
6846
+ *
6847
+ * @param settings - The timeline provider settings
6848
+ * @returns A container provider, or undefined if not configured
6849
+ * @throws Error if the container provider class cannot be resolved
6850
+ */
6851
+ createContainerProviderForTimeline(settings: ITimelineProviderSettings): IContainerProvider | undefined;
6852
+ /**
6853
+ * Creates a playlist based on timeline provider settings.
6854
+ *
6855
+ * The playlist class is resolved dynamically via the resource importer
6856
+ * using the `systemName` property from the configuration.
6857
+ *
6858
+ * @param settings - The timeline provider settings
6859
+ * @returns A playlist, or undefined if not configured
6860
+ * @throws Error if the playlist class cannot be resolved
6861
+ */
6862
+ createPlaylistForTimeline(settings: ITimelineProviderSettings): IPlaylist | undefined;
6863
+ /**
6864
+ * Assembles a complete ITimelineProviderInfo from timeline and settings.
6865
+ *
6866
+ * This is the main entry point for creating provider info with the new
6867
+ * configuration-driven architecture.
6868
+ *
6869
+ * @param timeline - The resolved timeline configuration
6870
+ * @param settings - The timeline provider settings
6871
+ * @returns A complete timeline provider info with all components
6872
+ */
6873
+ createTimelineProviderInfo(timeline: IResolvedEngineConfiguration['timelines'][number], settings: ITimelineProviderSettings): ITimelineProviderInfo;
6874
+ /**
6875
+ * Creates timeline providers for all configured timeline types using the new
6876
+ * configuration-driven architecture.
6877
+ *
6878
+ * This method iterates over timelineProviderSettings and creates a
6879
+ * ITimelineProviderInfo for each configured timeline type by:
6880
+ * 1. Finding the first timeline that matches the type
6881
+ * 2. Using the timeline's duration for the position source
6882
+ * 3. Assembling components from the settings
6883
+ *
6884
+ * @param configuration - The resolved engine configuration
6885
+ * @returns A record of timeline types to their provider info
6886
+ * @throws Error if a provider setting has no matching timeline in config
6887
+ */
6888
+ createTimelineProvidersForConfig(configuration: IResolvedEngineConfiguration): Record<TimelineTypes, ITimelineProviderInfo>;
5403
6889
  }
5404
6890
  //#endregion
5405
- export { Action, ActionCreator, ActionCreatorFactory, ActionEditor, ActionRegistryEventbusListener, AllEvents, BeforeRequestTimelineUriEvent, CompleteEvent, ConfigurationFactory, ConfigurationResolver, ContainerRequestEvent, ControllerNamesProvider, Controllers, CurrentTimelineChangeEvent, DEV_TOOLS_KEY, DOMEventListenerController, DevToolEventListener, Diagnostics, DomMutationEvent, DurationEvent, DurationRequestEvent, EligiusEngine, EligiusResourceImporter, EndableAction, EndableActionCreator, EndableActionEditor, EngineFactory, type EventMap, type EventName, Eventbus, ExtractOperationData, ExtractOperationDataType, ExtractReturnedOperationData, FirstFrameEvent, GetControllerByName, GetOperationByName, IAction, IActionConfiguration, type IAddClassOperationData, type IAddControllerToElementOperationData, type IAnimateOperationData, type IAnimateWithClassOperationData, type IAnnounceToScreenReaderOperationData, type IBroadcastEventOperationData, type ICalcOperationData, type IClearElementOperationData, type IClearOperationDataOperationData, type IClearStorageOperationData, type ICompareDateOperationData, type IConcatenateStringsOperationData, IConfigurationResolver, IController, IControllerMetadata, type ICreateElementOperationData, type ICustomFunctionOperationData, type IDOMEventListenerControllerOperationData, IDiagnosticsAgent, IDiagnosticsInfo, IDimensions, IDuration, IEligiusEngine, type IEndActionOperationData, IEndableAction, IEndableActionConfiguration, IEngineConfiguration, IEngineFactory, IEngineFactoryOptions, IEngineInfo, IEventActionConfiguration, IEventMetadata, IEventbus, IEventbusInterceptor, IEventbusListener, type IExtendControllerOperationData, type IFilterArrayOperationData, type IFindInArrayOperationData, type IForEachOperationData, type IFormatDateOperationData, type IFormatTextOperationData, type IGetAttributesFromElementOperationData, type IGetControllerFromElementOperationData, type IGetControllerInstanceOperationData, type IGetCurrentTimeOperationData, type IGetElementDimensionsOperationData, type IGetFocusedElementOperationData, type IGetFormDataOperationData, type IGetImportOperationData, type IGetQueryParamsOperationData, type IGetScrollPositionOperationData, type IGetTextContentOperationData, type IHttpDeleteOperationData, type IHttpPostOperationData, type IHttpPutOperationData, type IInvokeObjectMethodOperationData, type IIsElementInViewportOperationData, ILabel, type ILabelControllerMetadata, ILanguageLabel, type ILoadFromStorageOperationData, type ILoadJSONOperationData, type ILogOperationData, type ILottieControllerMetadata, type IMapArrayOperationData, type IMathOperationData, type IMutationEventPayload, type IMutationObserverControllerMetadata, type INavigationControllerOperationData, IOperationConfiguration, IOperationMetadata, IOperationScope, IPlayControlEvent, type IProgressbarControllerOperationData, type IRemoveClassOperationData, type IRemoveControllerFromElementOperationData, type IRemoveElementOperationData, type IRemovePropertiesFromOperationDataOperationData, type IReparentElementOperationData, type IReplaceStringOperationData, type IReplaceTextOperationData, type IRequestActionOperationData, IResolvedActionConfiguration, IResolvedEndableActionConfiguration, IResolvedEngineConfiguration, IResolvedOperation, IResolvedTimelineConfiguration, IResourceImporter, type IRoutingControllerOperationData, type ISaveToStorageOperationData, type IScrollToElementOperationData, type IScrollToPositionOperationData, type ISelectElementOperationData, type ISetDataOperationData, type ISetElementAttributesOperationData, type ISetElementContentOperationData, type ISetFocusOperationData, type ISetFormValueOperationData, type ISetGlobalDataOperationData, type ISetOperationData, type ISetStyleOperationData, type ISetVariableOperationData, ISimpleResourceImporter, type ISortArrayOperationData, type ISplitStringOperationData, type IStartActionOperationData, IStrictDuration, type ISubstringTextOperationData, ISubtitle, ISubtitleCollection, type ISubtitlesControllerOperationData, ITimelineAction, ITimelineActionConfiguration, ITimelineConfiguration, ITimelineFlow, ITimelineProvider, ITimelineProviderInfo, ITimelineProviderSettings, type IToggleClassOperationData, type IToggleElementOperationData, type IToggleFormElementOperationData, type IValidateFormOperationData, type IWaitOperationData, type IWhenOperationData, KeysOfType, LabelController, LanguageChangeEvent, LanguageManager, LottieController, MutationObserverController, NavigationController, OperationEditor, OperationMetadataProvider, OperationNamesProvider, Operations, PauseEvent, PauseRequestEvent, PlayEvent, PlayRequestEvent, PlayToggleRequestEvent, ProgressbarController, RequestActionEvent, RequestAnimationFrameTimelineProvider, RequestCurrentLanguageEvent, RequestCurrentTimelineEvent, RequestCurrentTimelinePositionEvent, RequestEngineRootEvent, RequestFunctionEvent, RequestInstanceEvent, RequestLabelCollectionEvent, RequestLabelCollectionsEvent, RequestTimelineCleanupEvent, RequestTimelineUriEvent, RequestVideoUriInterceptor, RequireKeys, ResizeEvent, ResizeRequestEvent, RestartEvent, RoutingController, SeekEvent, SeekRequestEvent, SeekedEvent, StopEvent, StopRequestEvent, type StorageType, SubtitleEditor, SubtitleImporter, SubtitlesController, TArrayProperyMetadata, TComplexPropertyMetadata, TConstantParametersTypes, TControllerName, TControllerType, TDevToolsEventSubscriber, TDevToolsMessage, TDiagnosticType, TDiagnosticsMessageSource, TEngineConfigurationLists, TEventData, TEventHandler, TEventbusRemover, THasDescription, THasErased, THasRequired, TLanguageCode, TOperation, TOperationCategory, TOperationData, TOperationName, TOperationResult, TOperationType, TParameterTypes, TParameterTypesDelimited, TPlayControlEventKind, TPlayState, TPropertiesMetadata, TPropertyMetadata, TResultCallback, TTimelineProviderSettings, TWindowWithDevtools, TimeEvent, TimeLineEventNamesProvider, TimelineAction, TimelineActionCreator, TimelineActionEditor, TimelineProviderSettingsEditor, TimelineProvidersSettingsEditor, TimelineTypes, VideoJsTimelineProvider, addClass, addControllerToElement, addGlobalsToOperation, animate, animateWithClass, announceToScreenReader, breakForEach, broadcastEvent, calc, clearElement, clearOperationData, clearStorage, compareDate, concatenateStrings, continueForEach, createElement, index_d_exports as ctrlmetadata, customFunction, endAction, endForEach, endWhen, index_d_exports$1 as eventmetadata, extendController, filterArray, findInArray, forEach, formatDate, formatText, getAttributesFromElement, getControllerFromElement, getControllerInstance, getCurrentTime, getElementDimensions, getFocusedElement, getFormData, getImport, getQueryParams, getScrollPosition, getTextContent, httpDelete, httpPost, httpPut, invokeObjectMethod, isActive, isElementInViewport, loadFromStorage, loadJson, log, mapArray, math, index_d_exports$2 as metadata, otherwise, removeClass, removeControllerFromElement, removeElement, removePropertiesFromOperationData, reparentElement, replaceString, replaceText, requestAction, saveToStorage, scrollToElement, scrollToPosition, selectElement, send, setActive, setData, setElementAttributes, setElementContent, setFocus, setFormValue, setGlobalData, setOperationData, setStyle, setVariable, sortArray, splitString, startAction, substringText, toggleClass, toggleElement, toggleFormElement, validateForm, wait, when };
6891
+ export { Action, ActionCreator, ActionCreatorFactory, ActionEditor, ActionRegistryEventbusListener, AllEvents, BasePositionSource, BeforeRequestTimelineUriEvent, CompleteEvent, ConfigurationFactory, ConfigurationResolver, ContainerRequestEvent, ControllerNamesProvider, Controllers, CurrentTimelineChangeEvent, DOMEventListenerController, DomContainerProvider, DomContainerProviderConfig, DomMutationEvent, DurationEvent, DurationRequestEvent, EligiusEngine, EligiusResourceImporter, EndableAction, EndableActionCreator, EndableActionEditor, EngineEventbusAdapter, EngineEvents, EngineFactory, EngineInputAdapter, EventHandler, type EventMap, type EventName, Eventbus, ExtractOperationData, ExtractOperationDataType, ExtractReturnedOperationData, FirstFrameEvent, GetControllerByName, GetOperationByName, IAction, IActionConfiguration, IAdapter, type IAddClassOperationData, type IAddControllerToElementOperationData, type IAnimateOperationData, type IAnimateWithClassOperationData, type IAnnounceToScreenReaderOperationData, type IBroadcastEventOperationData, type ICalcOperationData, type IClearElementOperationData, type IClearOperationDataOperationData, type IClearStorageOperationData, type ICompareDateOperationData, type IConcatenateStringsOperationData, IConfigurationResolver, IContainerProvider, IContainerProviderConfig, IController, IControllerMetadata, type ICreateElementOperationData, type ICustomFunctionOperationData, type IDOMEventListenerControllerOperationData, IDimensions, IDuration, IEligiusEngine, type IEndActionOperationData, IEndableAction, IEndableActionConfiguration, IEngineConfiguration, IEngineFactory, IEngineFactoryOptions, IEngineFactoryResult, IEngineInfo, IEventActionConfiguration, IEventMetadata, IEventbus, IEventbusInterceptor, IEventbusListener, type IExtendControllerOperationData, type IFilterArrayOperationData, type IFindInArrayOperationData, type IForEachOperationData, type IFormatDateOperationData, type IFormatTextOperationData, type IGetAttributesFromElementOperationData, type IGetControllerFromElementOperationData, type IGetControllerInstanceOperationData, type IGetCurrentTimeOperationData, type IGetElementDimensionsOperationData, type IGetFocusedElementOperationData, type IGetFormDataOperationData, type IGetImportOperationData, type IGetQueryParamsOperationData, type IGetScrollPositionOperationData, type IGetTextContentOperationData, type IHttpDeleteOperationData, type IHttpPostOperationData, type IHttpPutOperationData, type IInvokeObjectMethodOperationData, type IIsElementInViewportOperationData, ILabel, type ILabelControllerMetadata, ILanguageLabel, ILanguageManager, type ILoadFromStorageOperationData, type ILoadJSONOperationData, type ILogOperationData, type ILottieControllerMetadata, type IMapArrayOperationData, type IMathOperationData, type IMutationEventPayload, type IMutationObserverControllerMetadata, type INavigationControllerOperationData, IOperationConfiguration, IOperationMetadata, IOperationScope, IPlaylist, IPlaylistConfig, IPositionSource, IPositionSourceConfig, type IProgressbarControllerOperationData, type IRemoveClassOperationData, type IRemoveControllerFromElementOperationData, type IRemoveElementOperationData, type IRemovePropertiesFromOperationDataOperationData, type IReparentElementOperationData, type IReplaceStringOperationData, type IReplaceTextOperationData, type IRequestActionOperationData, IResolvedActionConfiguration, IResolvedEndableActionConfiguration, IResolvedEngineConfiguration, IResolvedOperation, IResolvedTimelineConfiguration, IResourceImporter, type IRoutingControllerOperationData, type ISaveToStorageOperationData, type IScrollToElementOperationData, type IScrollToPositionOperationData, ISeekable, type ISelectElementOperationData, type ISetDataOperationData, type ISetElementAttributesOperationData, type ISetElementContentOperationData, type ISetFocusOperationData, type ISetFormValueOperationData, type ISetGlobalDataOperationData, type ISetOperationData, type ISetStyleOperationData, type ISetVariableOperationData, ISimpleResourceImporter, type ISortArrayOperationData, type ISplitStringOperationData, type IStartActionOperationData, IStrictDuration, type ISubstringTextOperationData, ISubtitle, ISubtitleCollection, type ISubtitlesControllerOperationData, ITimelineAction, ITimelineActionConfiguration, ITimelineConfiguration, ITimelineFlow, ITimelineProviderInfo, ITimelineProviderSettings, type IToggleClassOperationData, type IToggleElementOperationData, type IToggleFormElementOperationData, ITypedEventEmitter, type IValidateFormOperationData, type IWaitOperationData, type IWhenOperationData, KeysOfType, LabelController, LanguageChangeEvent, LanguageEventbusAdapter, LanguageEvents, LanguageManager, LottieController, MutationObserverController, NavigationController, OperationEditor, OperationMetadataProvider, OperationNamesProvider, Operations, PauseEvent, PauseRequestEvent, PlayEvent, PlayRequestEvent, PlayToggleRequestEvent, ProgressbarController, RafPositionSource, RafPositionSourceConfig, RequestActionEvent, RequestCurrentLanguageEvent, RequestCurrentTimelineEvent, RequestCurrentTimelinePositionEvent, RequestEngineRootEvent, RequestFunctionEvent, RequestInstanceEvent, RequestLabelCollectionEvent, RequestLabelCollectionsEvent, RequestTimelineCleanupEvent, RequestTimelineUriEvent, RequestVideoUriInterceptor, RequireKeys, ResizeEvent, ResizeRequestEvent, RestartEvent, RoutingController, ScrollPositionSource, ScrollPositionSourceConfig, SeekEvent, SeekRequestEvent, SeekedEvent, SimplePlaylist, SimplePlaylistConfig, StopEvent, StopRequestEvent, type StorageType, SubtitleEditor, SubtitleImporter, SubtitlesController, TArrayProperyMetadata, TBoundary, TComplexPropertyMetadata, TConstantParametersTypes, TControllerName, TControllerType, TEngineConfigurationLists, TEventHandler, TEventbusRemover, THasDescription, THasErased, THasRequired, TLanguageCode, TOperation, TOperationCategory, TOperationData, TOperationName, TOperationResult, TOperationType, TParameterTypes, TParameterTypesDelimited, TPropertiesMetadata, TPropertyMetadata, TRequestResponder, TResultCallback, TSourceState, TTimelineProviderSettings, TimeEvent, TimeLineEventNamesProvider, TimelineAction, TimelineActionCreator, TimelineActionEditor, TimelineProviderSettingsEditor, TimelineProvidersSettingsEditor, TimelineTypes, TypedEventEmitter, VideoPositionSource, VideoPositionSourceConfig, VideoSource, addClass, addControllerToElement, addGlobalsToOperation, animate, animateWithClass, announceToScreenReader, breakForEach, broadcastEvent, calc, clearElement, clearOperationData, clearStorage, compareDate, concatenateStrings, continueForEach, createElement, index_d_exports as ctrlmetadata, customFunction, endAction, endForEach, endWhen, index_d_exports$1 as eventmetadata, extendController, filterArray, findInArray, forEach, formatDate, formatText, getAttributesFromElement, getControllerFromElement, getControllerInstance, getCurrentTime, getElementDimensions, getFocusedElement, getFormData, getImport, getQueryParams, getScrollPosition, getTextContent, httpDelete, httpPost, httpPut, invokeObjectMethod, isElementInViewport, isSeekable, loadFromStorage, loadJson, log, mapArray, math, index_d_exports$2 as metadata, 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 };
5406
6892
  //# sourceMappingURL=index.d.mts.map