eligius 3.0.1 → 4.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.
- package/README.md +22 -5
- package/dist/configuration-api.d.mts +149 -25
- package/dist/configuration-api.mjs +51 -3
- package/dist/configuration-api.mjs.map +1 -1
- package/dist/index.d.mts +438 -234
- package/dist/index.mjs +749 -282
- package/dist/index.mjs.map +1 -1
- package/dist/metadata.d.mts +135 -20
- package/dist/metadata.mjs +47 -1
- package/dist/metadata.mjs.map +1 -1
- package/jsonschema/eligius-configuration.json +53 -7
- package/package.json +4 -9
package/dist/index.d.mts
CHANGED
|
@@ -800,6 +800,155 @@ export type TOperation<T extends TOperationData = TOperationData, RT = T> = (thi
|
|
|
800
800
|
export type ExtractOperationData<T extends TOperation<TOperationData>> = T extends TOperation<infer K> ? K : never;
|
|
801
801
|
export type ExtractReturnedOperationData<T extends TOperation<TOperationData, TOperationData>> = T extends TOperation<any, infer K> ? unknown extends K ? ExtractOperationData<T> : K : never;
|
|
802
802
|
//#endregion
|
|
803
|
+
//#region src/controllers/types.d.ts
|
|
804
|
+
export interface IController<T extends TOperationData> {
|
|
805
|
+
name: string;
|
|
806
|
+
init(operationData: T): void;
|
|
807
|
+
attach(eventbus: IEventbus): Promise<any> | void;
|
|
808
|
+
detach(eventbus: IEventbus): void;
|
|
809
|
+
}
|
|
810
|
+
/** A start and end frame. Mirrors lottie-web's `AnimationSegment`. */
|
|
811
|
+
export type TLottieAnimationSegment = [number, number];
|
|
812
|
+
/** Playback direction: forward or backward. Mirrors lottie-web's `AnimationDirection`. */
|
|
813
|
+
export type TLottieAnimationDirection = 1 | -1;
|
|
814
|
+
/** The events a lottie animation emits. Mirrors lottie-web's `AnimationEventName`. */
|
|
815
|
+
export type TLottieAnimationEventName = 'drawnFrame' | 'enterFrame' | 'loopComplete' | 'complete' | 'segmentStart' | 'destroy' | 'config_ready' | 'data_ready' | 'DOMLoaded' | 'error' | 'data_failed' | 'loaded_images';
|
|
816
|
+
/** Mirrors lottie-web's `AnimationEventCallback`. */
|
|
817
|
+
export type TLottieAnimationEventCallback<T = any> = (args: T) => void;
|
|
818
|
+
/** Payload of the `complete` event. Mirrors lottie-web's `BMCompleteEvent`. */
|
|
819
|
+
export interface ILottieCompleteEvent {
|
|
820
|
+
direction: number;
|
|
821
|
+
type: 'complete';
|
|
822
|
+
}
|
|
823
|
+
/** Payload of the `loopComplete` event. Mirrors lottie-web's `BMCompleteLoopEvent`. */
|
|
824
|
+
export interface ILottieCompleteLoopEvent {
|
|
825
|
+
currentLoop: number;
|
|
826
|
+
direction: number;
|
|
827
|
+
totalLoops: number;
|
|
828
|
+
type: 'loopComplete';
|
|
829
|
+
}
|
|
830
|
+
/** Payload of the `destroy` event. Mirrors lottie-web's `BMDestroyEvent`. */
|
|
831
|
+
export interface ILottieDestroyEvent {
|
|
832
|
+
type: 'destroy';
|
|
833
|
+
}
|
|
834
|
+
/** Payload of the `enterFrame` and `drawnFrame` events. Mirrors lottie-web's `BMEnterFrameEvent`. */
|
|
835
|
+
export interface ILottieEnterFrameEvent {
|
|
836
|
+
/** The current time in frames. */
|
|
837
|
+
currentTime: number;
|
|
838
|
+
direction: number;
|
|
839
|
+
/** The total number of frames. */
|
|
840
|
+
totalTime: number;
|
|
841
|
+
type: 'enterFrame';
|
|
842
|
+
}
|
|
843
|
+
/** Payload of the `segmentStart` event. Mirrors lottie-web's `BMSegmentStartEvent`. */
|
|
844
|
+
export interface ILottieSegmentStartEvent {
|
|
845
|
+
firstFrame: number;
|
|
846
|
+
totalFrames: number;
|
|
847
|
+
type: 'segmentStart';
|
|
848
|
+
}
|
|
849
|
+
/** The payload of each lottie animation event. Mirrors lottie-web's `AnimationEvents`. */
|
|
850
|
+
export interface ILottieAnimationEvents {
|
|
851
|
+
DOMLoaded: undefined;
|
|
852
|
+
complete: ILottieCompleteEvent;
|
|
853
|
+
config_ready: undefined;
|
|
854
|
+
data_failed: undefined;
|
|
855
|
+
data_ready: undefined;
|
|
856
|
+
destroy: ILottieDestroyEvent;
|
|
857
|
+
drawnFrame: ILottieEnterFrameEvent;
|
|
858
|
+
enterFrame: ILottieEnterFrameEvent;
|
|
859
|
+
error: undefined;
|
|
860
|
+
loaded_images: undefined;
|
|
861
|
+
loopComplete: ILottieCompleteLoopEvent;
|
|
862
|
+
segmentStart: ILottieSegmentStartEvent;
|
|
863
|
+
}
|
|
864
|
+
/**
|
|
865
|
+
* A loaded lottie animation, as created by `LottieController`. Mirrors
|
|
866
|
+
* lottie-web's `AnimationItem`.
|
|
867
|
+
*/
|
|
868
|
+
export interface ILottieAnimationItem {
|
|
869
|
+
name: string;
|
|
870
|
+
isLoaded: boolean;
|
|
871
|
+
currentFrame: number;
|
|
872
|
+
currentRawFrame: number;
|
|
873
|
+
firstFrame: number;
|
|
874
|
+
totalFrames: number;
|
|
875
|
+
frameRate: number;
|
|
876
|
+
frameMult: number;
|
|
877
|
+
playSpeed: number;
|
|
878
|
+
playDirection: number;
|
|
879
|
+
playCount: number;
|
|
880
|
+
isPaused: boolean;
|
|
881
|
+
autoplay: boolean;
|
|
882
|
+
loop: boolean | number;
|
|
883
|
+
renderer: any;
|
|
884
|
+
animationID: string;
|
|
885
|
+
assetsPath: string;
|
|
886
|
+
timeCompleted: number;
|
|
887
|
+
segmentPos: number;
|
|
888
|
+
isSubframeEnabled: boolean;
|
|
889
|
+
segments: TLottieAnimationSegment | TLottieAnimationSegment[];
|
|
890
|
+
play(name?: string): void;
|
|
891
|
+
stop(name?: string): void;
|
|
892
|
+
togglePause(name?: string): void;
|
|
893
|
+
destroy(name?: string): void;
|
|
894
|
+
pause(name?: string): void;
|
|
895
|
+
goToAndStop(value: number | string, isFrame?: boolean, name?: string): void;
|
|
896
|
+
goToAndPlay(value: number | string, isFrame?: boolean, name?: string): void;
|
|
897
|
+
includeLayers(data: any): void;
|
|
898
|
+
setSegment(init: number, end: number): void;
|
|
899
|
+
resetSegments(forceFlag: boolean): void;
|
|
900
|
+
hide(): void;
|
|
901
|
+
show(): void;
|
|
902
|
+
resize(width?: number, height?: number): void;
|
|
903
|
+
setSpeed(speed: number): void;
|
|
904
|
+
setDirection(direction: TLottieAnimationDirection): void;
|
|
905
|
+
setLoop(isLooping: boolean): void;
|
|
906
|
+
playSegments(segments: TLottieAnimationSegment | TLottieAnimationSegment[], forceFlag?: boolean): void;
|
|
907
|
+
setSubframe(useSubFrames: boolean): void;
|
|
908
|
+
getDuration(inFrames?: boolean): number;
|
|
909
|
+
triggerEvent<T extends TLottieAnimationEventName>(name: T, args: ILottieAnimationEvents[T]): void;
|
|
910
|
+
addEventListener<T extends TLottieAnimationEventName>(name: T, callback: TLottieAnimationEventCallback<ILottieAnimationEvents[T]>): () => void;
|
|
911
|
+
removeEventListener<T extends TLottieAnimationEventName>(name: T, callback?: TLottieAnimationEventCallback<ILottieAnimationEvents[T]>): void;
|
|
912
|
+
}
|
|
913
|
+
/** Mirrors lottie-web's `FilterSizeConfig`. */
|
|
914
|
+
export interface ILottieFilterSizeConfig {
|
|
915
|
+
width: string;
|
|
916
|
+
height: string;
|
|
917
|
+
x: string;
|
|
918
|
+
y: string;
|
|
919
|
+
}
|
|
920
|
+
/** Settings shared by all renderers. Mirrors lottie-web's `BaseRendererConfig`. */
|
|
921
|
+
export interface ILottieBaseRendererConfig {
|
|
922
|
+
imagePreserveAspectRatio?: string;
|
|
923
|
+
className?: string;
|
|
924
|
+
}
|
|
925
|
+
/** SVG renderer settings. Mirrors lottie-web's `SVGRendererConfig`. */
|
|
926
|
+
export interface ILottieSVGRendererConfig extends ILottieBaseRendererConfig {
|
|
927
|
+
title?: string;
|
|
928
|
+
description?: string;
|
|
929
|
+
preserveAspectRatio?: string;
|
|
930
|
+
progressiveLoad?: boolean;
|
|
931
|
+
hideOnTransparent?: boolean;
|
|
932
|
+
viewBoxOnly?: boolean;
|
|
933
|
+
viewBoxSize?: string;
|
|
934
|
+
focusable?: boolean;
|
|
935
|
+
filterSize?: ILottieFilterSizeConfig;
|
|
936
|
+
}
|
|
937
|
+
/** Canvas renderer settings. Mirrors lottie-web's `CanvasRendererConfig`. */
|
|
938
|
+
export interface ILottieCanvasRendererConfig extends ILottieBaseRendererConfig {
|
|
939
|
+
clearCanvas?: boolean;
|
|
940
|
+
context?: CanvasRenderingContext2D;
|
|
941
|
+
progressiveLoad?: boolean;
|
|
942
|
+
preserveAspectRatio?: string;
|
|
943
|
+
dpr?: number;
|
|
944
|
+
}
|
|
945
|
+
/** HTML renderer settings. Mirrors lottie-web's `HTMLRendererConfig`. */
|
|
946
|
+
export interface ILottieHTMLRendererConfig extends ILottieBaseRendererConfig {
|
|
947
|
+
hideOnTransparent?: boolean;
|
|
948
|
+
}
|
|
949
|
+
/** The renderer settings a `LottieController` accepts. */
|
|
950
|
+
export type TLottieRendererConfig = ILottieSVGRendererConfig | ILottieCanvasRendererConfig | ILottieHTMLRendererConfig;
|
|
951
|
+
//#endregion
|
|
803
952
|
//#region src/timelineproviders/types.d.ts
|
|
804
953
|
/**
|
|
805
954
|
* Position source state.
|
|
@@ -1446,6 +1595,10 @@ export interface IEngineInputOptions {
|
|
|
1446
1595
|
* The key is bound in the hotkeys-js `'all'` scope, so it keeps working
|
|
1447
1596
|
* whatever scope a KeyboardStepSource or the host page sets. The
|
|
1448
1597
|
* hotkeys-js global `filter` still applies.
|
|
1598
|
+
*
|
|
1599
|
+
* A `KeyboardController` of the engine that binds the same key takes it
|
|
1600
|
+
* over: a press the controller handles runs its actions and does not
|
|
1601
|
+
* toggle playback.
|
|
1449
1602
|
*/
|
|
1450
1603
|
playToggle?: string | false;
|
|
1451
1604
|
/**
|
|
@@ -1966,160 +2119,20 @@ export interface IEventbusInterceptor {
|
|
|
1966
2119
|
intercept(eventArgs: any[]): any[];
|
|
1967
2120
|
}
|
|
1968
2121
|
//#endregion
|
|
1969
|
-
//#region src/controllers/
|
|
1970
|
-
export interface IController<T extends TOperationData> {
|
|
1971
|
-
name: string;
|
|
1972
|
-
init(operationData: T): void;
|
|
1973
|
-
attach(eventbus: IEventbus): Promise<any> | void;
|
|
1974
|
-
detach(eventbus: IEventbus): void;
|
|
1975
|
-
}
|
|
1976
|
-
/** A start and end frame. Mirrors lottie-web's `AnimationSegment`. */
|
|
1977
|
-
export type TLottieAnimationSegment = [number, number];
|
|
1978
|
-
/** Playback direction: forward or backward. Mirrors lottie-web's `AnimationDirection`. */
|
|
1979
|
-
export type TLottieAnimationDirection = 1 | -1;
|
|
1980
|
-
/** The events a lottie animation emits. Mirrors lottie-web's `AnimationEventName`. */
|
|
1981
|
-
export type TLottieAnimationEventName = 'drawnFrame' | 'enterFrame' | 'loopComplete' | 'complete' | 'segmentStart' | 'destroy' | 'config_ready' | 'data_ready' | 'DOMLoaded' | 'error' | 'data_failed' | 'loaded_images';
|
|
1982
|
-
/** Mirrors lottie-web's `AnimationEventCallback`. */
|
|
1983
|
-
export type TLottieAnimationEventCallback<T = any> = (args: T) => void;
|
|
1984
|
-
/** Payload of the `complete` event. Mirrors lottie-web's `BMCompleteEvent`. */
|
|
1985
|
-
export interface ILottieCompleteEvent {
|
|
1986
|
-
direction: number;
|
|
1987
|
-
type: 'complete';
|
|
1988
|
-
}
|
|
1989
|
-
/** Payload of the `loopComplete` event. Mirrors lottie-web's `BMCompleteLoopEvent`. */
|
|
1990
|
-
export interface ILottieCompleteLoopEvent {
|
|
1991
|
-
currentLoop: number;
|
|
1992
|
-
direction: number;
|
|
1993
|
-
totalLoops: number;
|
|
1994
|
-
type: 'loopComplete';
|
|
1995
|
-
}
|
|
1996
|
-
/** Payload of the `destroy` event. Mirrors lottie-web's `BMDestroyEvent`. */
|
|
1997
|
-
export interface ILottieDestroyEvent {
|
|
1998
|
-
type: 'destroy';
|
|
1999
|
-
}
|
|
2000
|
-
/** Payload of the `enterFrame` and `drawnFrame` events. Mirrors lottie-web's `BMEnterFrameEvent`. */
|
|
2001
|
-
export interface ILottieEnterFrameEvent {
|
|
2002
|
-
/** The current time in frames. */
|
|
2003
|
-
currentTime: number;
|
|
2004
|
-
direction: number;
|
|
2005
|
-
/** The total number of frames. */
|
|
2006
|
-
totalTime: number;
|
|
2007
|
-
type: 'enterFrame';
|
|
2008
|
-
}
|
|
2009
|
-
/** Payload of the `segmentStart` event. Mirrors lottie-web's `BMSegmentStartEvent`. */
|
|
2010
|
-
export interface ILottieSegmentStartEvent {
|
|
2011
|
-
firstFrame: number;
|
|
2012
|
-
totalFrames: number;
|
|
2013
|
-
type: 'segmentStart';
|
|
2014
|
-
}
|
|
2015
|
-
/** The payload of each lottie animation event. Mirrors lottie-web's `AnimationEvents`. */
|
|
2016
|
-
export interface ILottieAnimationEvents {
|
|
2017
|
-
DOMLoaded: undefined;
|
|
2018
|
-
complete: ILottieCompleteEvent;
|
|
2019
|
-
config_ready: undefined;
|
|
2020
|
-
data_failed: undefined;
|
|
2021
|
-
data_ready: undefined;
|
|
2022
|
-
destroy: ILottieDestroyEvent;
|
|
2023
|
-
drawnFrame: ILottieEnterFrameEvent;
|
|
2024
|
-
enterFrame: ILottieEnterFrameEvent;
|
|
2025
|
-
error: undefined;
|
|
2026
|
-
loaded_images: undefined;
|
|
2027
|
-
loopComplete: ILottieCompleteLoopEvent;
|
|
2028
|
-
segmentStart: ILottieSegmentStartEvent;
|
|
2029
|
-
}
|
|
2122
|
+
//#region src/controllers/helper/controller-actions.d.ts
|
|
2030
2123
|
/**
|
|
2031
|
-
*
|
|
2032
|
-
*
|
|
2124
|
+
* Helpers shared by the controllers that run configured actions in response
|
|
2125
|
+
* to an input (`DOMEventListenerController`, `KeyboardController`).
|
|
2033
2126
|
*/
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
currentRawFrame: number;
|
|
2039
|
-
firstFrame: number;
|
|
2040
|
-
totalFrames: number;
|
|
2041
|
-
frameRate: number;
|
|
2042
|
-
frameMult: number;
|
|
2043
|
-
playSpeed: number;
|
|
2044
|
-
playDirection: number;
|
|
2045
|
-
playCount: number;
|
|
2046
|
-
isPaused: boolean;
|
|
2047
|
-
autoplay: boolean;
|
|
2048
|
-
loop: boolean | number;
|
|
2049
|
-
renderer: any;
|
|
2050
|
-
animationID: string;
|
|
2051
|
-
assetsPath: string;
|
|
2052
|
-
timeCompleted: number;
|
|
2053
|
-
segmentPos: number;
|
|
2054
|
-
isSubframeEnabled: boolean;
|
|
2055
|
-
segments: TLottieAnimationSegment | TLottieAnimationSegment[];
|
|
2056
|
-
play(name?: string): void;
|
|
2057
|
-
stop(name?: string): void;
|
|
2058
|
-
togglePause(name?: string): void;
|
|
2059
|
-
destroy(name?: string): void;
|
|
2060
|
-
pause(name?: string): void;
|
|
2061
|
-
goToAndStop(value: number | string, isFrame?: boolean, name?: string): void;
|
|
2062
|
-
goToAndPlay(value: number | string, isFrame?: boolean, name?: string): void;
|
|
2063
|
-
includeLayers(data: any): void;
|
|
2064
|
-
setSegment(init: number, end: number): void;
|
|
2065
|
-
resetSegments(forceFlag: boolean): void;
|
|
2066
|
-
hide(): void;
|
|
2067
|
-
show(): void;
|
|
2068
|
-
resize(width?: number, height?: number): void;
|
|
2069
|
-
setSpeed(speed: number): void;
|
|
2070
|
-
setDirection(direction: TLottieAnimationDirection): void;
|
|
2071
|
-
setLoop(isLooping: boolean): void;
|
|
2072
|
-
playSegments(segments: TLottieAnimationSegment | TLottieAnimationSegment[], forceFlag?: boolean): void;
|
|
2073
|
-
setSubframe(useSubFrames: boolean): void;
|
|
2074
|
-
getDuration(inFrames?: boolean): number;
|
|
2075
|
-
triggerEvent<T extends TLottieAnimationEventName>(name: T, args: ILottieAnimationEvents[T]): void;
|
|
2076
|
-
addEventListener<T extends TLottieAnimationEventName>(name: T, callback: TLottieAnimationEventCallback<ILottieAnimationEvents[T]>): () => void;
|
|
2077
|
-
removeEventListener<T extends TLottieAnimationEventName>(name: T, callback?: TLottieAnimationEventCallback<ILottieAnimationEvents[T]>): void;
|
|
2078
|
-
}
|
|
2079
|
-
/** Mirrors lottie-web's `FilterSizeConfig`. */
|
|
2080
|
-
export interface ILottieFilterSizeConfig {
|
|
2081
|
-
width: string;
|
|
2082
|
-
height: string;
|
|
2083
|
-
x: string;
|
|
2084
|
-
y: string;
|
|
2085
|
-
}
|
|
2086
|
-
/** Settings shared by all renderers. Mirrors lottie-web's `BaseRendererConfig`. */
|
|
2087
|
-
export interface ILottieBaseRendererConfig {
|
|
2088
|
-
imagePreserveAspectRatio?: string;
|
|
2089
|
-
className?: string;
|
|
2090
|
-
}
|
|
2091
|
-
/** SVG renderer settings. Mirrors lottie-web's `SVGRendererConfig`. */
|
|
2092
|
-
export interface ILottieSVGRendererConfig extends ILottieBaseRendererConfig {
|
|
2093
|
-
title?: string;
|
|
2094
|
-
description?: string;
|
|
2095
|
-
preserveAspectRatio?: string;
|
|
2096
|
-
progressiveLoad?: boolean;
|
|
2097
|
-
hideOnTransparent?: boolean;
|
|
2098
|
-
viewBoxOnly?: boolean;
|
|
2099
|
-
viewBoxSize?: string;
|
|
2100
|
-
focusable?: boolean;
|
|
2101
|
-
filterSize?: ILottieFilterSizeConfig;
|
|
2102
|
-
}
|
|
2103
|
-
/** Canvas renderer settings. Mirrors lottie-web's `CanvasRendererConfig`. */
|
|
2104
|
-
export interface ILottieCanvasRendererConfig extends ILottieBaseRendererConfig {
|
|
2105
|
-
clearCanvas?: boolean;
|
|
2106
|
-
context?: CanvasRenderingContext2D;
|
|
2107
|
-
progressiveLoad?: boolean;
|
|
2108
|
-
preserveAspectRatio?: string;
|
|
2109
|
-
dpr?: number;
|
|
2110
|
-
}
|
|
2111
|
-
/** HTML renderer settings. Mirrors lottie-web's `HTMLRendererConfig`. */
|
|
2112
|
-
export interface ILottieHTMLRendererConfig extends ILottieBaseRendererConfig {
|
|
2113
|
-
hideOnTransparent?: boolean;
|
|
2114
|
-
}
|
|
2115
|
-
/** The renderer settings a `LottieController` accepts. */
|
|
2116
|
-
export type TLottieRendererConfig = ILottieSVGRendererConfig | ILottieCanvasRendererConfig | ILottieHTMLRendererConfig;
|
|
2117
|
-
//#endregion
|
|
2118
|
-
//#region src/controllers/dom-event-listener-controller.d.ts
|
|
2119
|
-
interface IActionInstanceInfo {
|
|
2127
|
+
/**
|
|
2128
|
+
* An action to run, and whether its `start` (or `end`) operations run.
|
|
2129
|
+
*/
|
|
2130
|
+
interface IControllerAction {
|
|
2120
2131
|
start: boolean;
|
|
2121
2132
|
action: IEndableAction;
|
|
2122
2133
|
}
|
|
2134
|
+
//#endregion
|
|
2135
|
+
//#region src/controllers/dom-event-listener-controller.d.ts
|
|
2123
2136
|
interface IDOMEventListenerControllerOperationData {
|
|
2124
2137
|
/**
|
|
2125
2138
|
* @dependency
|
|
@@ -2143,14 +2156,16 @@ interface IDOMEventListenerControllerOperationData {
|
|
|
2143
2156
|
* By default the `start` operations of the specified actions are executed. To execute the `end` operations instead,
|
|
2144
2157
|
* prefix the action name with `end:`.
|
|
2145
2158
|
*
|
|
2146
|
-
* The actions
|
|
2159
|
+
* The actions receive a copy of `actionOperationData` plus `eventTarget` (the event's target) and, for key events,
|
|
2160
|
+
* `eventKey` (the `KeyboardEvent.key`). They run in order, each receiving the operation data the previous one
|
|
2161
|
+
* returned. When an action fails, the
|
|
2147
2162
|
* remaining actions are skipped and the failure is reported through the eventbus's `reportError` (an error naming
|
|
2148
2163
|
* this controller, the action and the DOM event, with the original error as `cause`), or logged with
|
|
2149
2164
|
* `console.error` when the eventbus has no `reportError`.
|
|
2150
2165
|
*/
|
|
2151
2166
|
export declare class DOMEventListenerController implements IController<IDOMEventListenerControllerOperationData> {
|
|
2152
2167
|
operationData?: IDOMEventListenerControllerOperationData;
|
|
2153
|
-
actionInstanceInfos?:
|
|
2168
|
+
actionInstanceInfos?: IControllerAction[];
|
|
2154
2169
|
name: string;
|
|
2155
2170
|
private _boundEventHandler;
|
|
2156
2171
|
/** The eventbus passed to attach(), used to report failing actions */
|
|
@@ -2165,27 +2180,128 @@ export declare class DOMEventListenerController implements IController<IDOMEvent
|
|
|
2165
2180
|
* DOM event, and keeps the responder's "did you mean" hint
|
|
2166
2181
|
*/
|
|
2167
2182
|
attach(eventbus: IEventbus): void;
|
|
2168
|
-
private _isStartAction;
|
|
2169
2183
|
private _eventHandler;
|
|
2170
2184
|
/**
|
|
2171
|
-
*
|
|
2172
|
-
*
|
|
2173
|
-
*
|
|
2174
|
-
* naming this controller, the action, the phase and the DOM event (see
|
|
2175
|
-
* `_reportFailure`). The operation data is never logged.
|
|
2185
|
+
* Removes only the handler this controller registered, so other handlers for
|
|
2186
|
+
* the same event on the element keep working, and resets the action
|
|
2187
|
+
* instances so a later attach registers again.
|
|
2176
2188
|
*/
|
|
2177
|
-
|
|
2189
|
+
detach(_eventbus: IEventbus): void;
|
|
2190
|
+
}
|
|
2191
|
+
//#endregion
|
|
2192
|
+
//#region src/controllers/keyboard-controller.d.ts
|
|
2193
|
+
/**
|
|
2194
|
+
* Where a {@link KeyboardController} listens:
|
|
2195
|
+
* - `'document'`: while the focus is inside the engine root, or while
|
|
2196
|
+
* nothing has focus. With several engines on a page, a press while
|
|
2197
|
+
* nothing has focus runs the actions of one engine only: the engine the
|
|
2198
|
+
* user last clicked or focused inside, otherwise the first one that bound
|
|
2199
|
+
* the key.
|
|
2200
|
+
* - `'element'`: only while the focus is inside the selected element.
|
|
2201
|
+
*/
|
|
2202
|
+
type TKeyboardControllerScope = 'document' | 'element';
|
|
2203
|
+
interface IKeyboardControllerOperationData {
|
|
2178
2204
|
/**
|
|
2179
|
-
*
|
|
2180
|
-
* application's `onHandlerError` sees it; otherwise logs it.
|
|
2205
|
+
* @dependency
|
|
2181
2206
|
*/
|
|
2182
|
-
|
|
2207
|
+
selectedElement: JQuery;
|
|
2183
2208
|
/**
|
|
2184
|
-
*
|
|
2185
|
-
*
|
|
2186
|
-
*
|
|
2209
|
+
* The keys that run the actions, in hotkeys-js syntax: comma separated
|
|
2210
|
+
* shortcuts such as `'right'`, `'shift+right'` or `'space, enter'`. Key
|
|
2211
|
+
* names are case insensitive. Accepted are the hotkeys-js names (`left`,
|
|
2212
|
+
* `up`, `right`, `down`, `space`, `enter`, `esc`, `tab`, `backspace`,
|
|
2213
|
+
* `del`, `ins`, `home`, `end`, `pageup`, `pagedown`, `f1` to `f19`,
|
|
2214
|
+
* `num_0` to `num_9`), the `KeyboardEvent.key` names of the same keys
|
|
2215
|
+
* (`ArrowLeft`, `ArrowUp`, `ArrowRight`, `ArrowDown`, `Enter`, `Escape`,
|
|
2216
|
+
* `Tab`, `Backspace`, `Delete`, `Insert`, `Home`, `End`, `PageUp`,
|
|
2217
|
+
* `PageDown`, `F1`), a single letter or digit, and the punctuation keys
|
|
2218
|
+
* `,` `.` `/` `;` `'` `[` `]` `-` `=`.
|
|
2219
|
+
* `' '` (the `KeyboardEvent.key` of the space bar) means `space`.
|
|
2220
|
+
* Modifiers: `shift`, `alt` (`option`), `ctrl` (`control`) and `meta`
|
|
2221
|
+
* (`cmd`, `command`).
|
|
2222
|
+
*
|
|
2223
|
+
* @type=ParameterType:string
|
|
2224
|
+
* @required
|
|
2225
|
+
*/
|
|
2226
|
+
keys: string;
|
|
2227
|
+
actions: string[];
|
|
2228
|
+
/**
|
|
2229
|
+
* @type=ParameterType:object
|
|
2230
|
+
*/
|
|
2231
|
+
actionOperationData?: TOperationData;
|
|
2232
|
+
/**
|
|
2233
|
+
* Defaults to `'document'`; see {@link TKeyboardControllerScope}.
|
|
2234
|
+
*/
|
|
2235
|
+
scope?: TKeyboardControllerScope;
|
|
2236
|
+
}
|
|
2237
|
+
/**
|
|
2238
|
+
* This controller runs the given actions when one of the given keys is pressed.
|
|
2239
|
+
*
|
|
2240
|
+
* By default the `start` operations of the specified actions are executed. To execute the `end` operations instead,
|
|
2241
|
+
* prefix the action name with `end:`.
|
|
2242
|
+
*
|
|
2243
|
+
* The actions receive a copy of `actionOperationData` plus `eventTarget` (the focused element, or the body when
|
|
2244
|
+
* nothing has focus) and `eventKey` (the `KeyboardEvent.key`). They run in order, each receiving the operation data
|
|
2245
|
+
* the previous one returned. When an action fails, the remaining actions are skipped and the failure is reported
|
|
2246
|
+
* through the eventbus's `reportError`, or logged with `console.error` when the eventbus has no `reportError`.
|
|
2247
|
+
*
|
|
2248
|
+
* With `scope: 'document'` (the default) the keys work while the focus is inside the engine root, or while nothing
|
|
2249
|
+
* has focus. With `scope: 'element'` they only work while the focus is inside the selected element. Presses in
|
|
2250
|
+
* `input`, `select`, `textarea` and contenteditable elements are ignored, so typing keeps working. A handled press
|
|
2251
|
+
* has its default action prevented (no scrolling for arrow keys and space); a held key runs the actions once, not
|
|
2252
|
+
* again for every key repeat.
|
|
2253
|
+
*
|
|
2254
|
+
* When the keys include the play toggle hotkey of the engine (space by default), or a key that the engine's
|
|
2255
|
+
* KeyboardStepSource binds (the arrow keys, `shift+left`/`shift+right`, `home` and `end`), the controller wins: a
|
|
2256
|
+
* press it handles runs its actions and does not toggle playback or step the timeline. A press it ignores (for
|
|
2257
|
+
* example outside the selected element with `scope: 'element'`) still does.
|
|
2258
|
+
*
|
|
2259
|
+
* The keys are bound in the hotkeys-js `'all'` scope, so they work whatever scope a KeyboardStepSource sets. The
|
|
2260
|
+
* hotkeys-js global `filter` still applies. Detaching removes only this controller's handler.
|
|
2261
|
+
*
|
|
2262
|
+
* @example
|
|
2263
|
+
* ```json
|
|
2264
|
+
* {"systemName": "addControllerToElement", "operationData": {"keys": "ArrowRight", "actions": ["NextChapter"]}}
|
|
2265
|
+
* ```
|
|
2266
|
+
*/
|
|
2267
|
+
export declare class KeyboardController implements IController<IKeyboardControllerOperationData> {
|
|
2268
|
+
operationData?: IKeyboardControllerOperationData;
|
|
2269
|
+
actionInstanceInfos?: IControllerAction[];
|
|
2270
|
+
name: string;
|
|
2271
|
+
private _handler;
|
|
2272
|
+
private _leaveRegistry;
|
|
2273
|
+
/** The eventbus passed to attach(), used to report failing actions */
|
|
2274
|
+
private _eventbus;
|
|
2275
|
+
/**
|
|
2276
|
+
* @param operationData - The keys, actions and scope
|
|
2277
|
+
* @throws when `keys` is empty or names a key hotkeys-js can't match, or
|
|
2278
|
+
* when `scope` is not `'document'` or `'element'`
|
|
2279
|
+
*/
|
|
2280
|
+
init(operationData: IKeyboardControllerOperationData): void;
|
|
2281
|
+
/**
|
|
2282
|
+
* Looks up the configured actions and starts listening for the keys.
|
|
2283
|
+
*
|
|
2284
|
+
* @param eventbus - The eventbus to request the actions and the engine root
|
|
2285
|
+
* from
|
|
2286
|
+
* @throws when an action name is unknown (`request-action` throws or
|
|
2287
|
+
* returns nothing); the message names the controller, the action and the
|
|
2288
|
+
* keys, and keeps the responder's "did you mean" hint
|
|
2289
|
+
*/
|
|
2290
|
+
attach(eventbus: IEventbus): void;
|
|
2291
|
+
/**
|
|
2292
|
+
* Removes only the handler this controller bound, so other bindings of the
|
|
2293
|
+
* same keys keep working, and resets the action instances so a later
|
|
2294
|
+
* attach binds again.
|
|
2187
2295
|
*/
|
|
2188
2296
|
detach(_eventbus: IEventbus): void;
|
|
2297
|
+
private _handleKey;
|
|
2298
|
+
private _trigger;
|
|
2299
|
+
private _requestEngineRoot;
|
|
2300
|
+
/**
|
|
2301
|
+
* @returns The keys with `' '` replaced by `space`
|
|
2302
|
+
* @throws when the keys are empty or name a key hotkeys-js can't match
|
|
2303
|
+
*/
|
|
2304
|
+
private _normalizeKeys;
|
|
2189
2305
|
}
|
|
2190
2306
|
//#endregion
|
|
2191
2307
|
//#region src/controllers/base-controller.d.ts
|
|
@@ -2908,7 +3024,7 @@ export declare class SubtitlesController extends BaseController<ISubtitlesContro
|
|
|
2908
3024
|
init(operationData: ISubtitlesControllerOperationData): void;
|
|
2909
3025
|
}
|
|
2910
3026
|
declare namespace index_d_exports$4 {
|
|
2911
|
-
export { DOMEventListenerController, IDOMEventListenerControllerOperationData, ILabelControllerMetadata, ILottieControllerMetadata, IMutationEventPayload, IMutationObserverControllerMetadata, INavigationControllerOperationData, IProgressbarControllerOperationData, IRoutingControllerOperationData, ISubtitlesControllerOperationData, LabelController, LottieController, MutationObserverController, NavigationController, ProgressbarController, RoutingController, SubtitlesController };
|
|
3027
|
+
export { DOMEventListenerController, IDOMEventListenerControllerOperationData, IKeyboardControllerOperationData, ILabelControllerMetadata, ILottieControllerMetadata, IMutationEventPayload, IMutationObserverControllerMetadata, INavigationControllerOperationData, IProgressbarControllerOperationData, IRoutingControllerOperationData, ISubtitlesControllerOperationData, KeyboardController, LabelController, LottieController, MutationObserverController, NavigationController, ProgressbarController, RoutingController, SubtitlesController, TKeyboardControllerScope };
|
|
2912
3028
|
}
|
|
2913
3029
|
//#endregion
|
|
2914
3030
|
//#region src/operation/add-class.d.ts
|
|
@@ -5708,7 +5824,7 @@ export type ITimelineFlow = Record<string, never>;
|
|
|
5708
5824
|
* Built-in position sources:
|
|
5709
5825
|
* - `RafPositionSource`: RAF-based, drives timeline by elapsed time
|
|
5710
5826
|
* - `ScrollPositionSource`: Scroll-based, drives timeline by scroll position
|
|
5711
|
-
* - `VideoPositionSource`:
|
|
5827
|
+
* - `VideoPositionSource`: native HTML video element, drives timeline by media playback
|
|
5712
5828
|
*
|
|
5713
5829
|
* @example
|
|
5714
5830
|
* ```typescript
|
|
@@ -5757,8 +5873,10 @@ export interface IPositionSourceConfig {
|
|
|
5757
5873
|
*/
|
|
5758
5874
|
tickInterval?: number;
|
|
5759
5875
|
/**
|
|
5760
|
-
* Media to load (video sources), each with its URL and MIME type
|
|
5761
|
-
* `VideoPositionSource` requires a non-empty list
|
|
5876
|
+
* Media to load (video sources), each with its URL and MIME type, in order
|
|
5877
|
+
* of preference. `VideoPositionSource` requires a non-empty list of
|
|
5878
|
+
* browser-playable media files (video or audio, for example MP4, WebM or
|
|
5879
|
+
* MP3).
|
|
5762
5880
|
*/
|
|
5763
5881
|
sources?: Array<{
|
|
5764
5882
|
src: string;
|
|
@@ -5768,9 +5886,17 @@ export interface IPositionSourceConfig {
|
|
|
5768
5886
|
* Optional poster image URL (video sources).
|
|
5769
5887
|
*/
|
|
5770
5888
|
poster?: string;
|
|
5889
|
+
/**
|
|
5890
|
+
* Milliseconds `VideoPositionSource` waits for a source to become playable
|
|
5891
|
+
* before `init()` rejects. `0` disables the limit.
|
|
5892
|
+
*
|
|
5893
|
+
* @default 30000
|
|
5894
|
+
*/
|
|
5895
|
+
loadTimeout?: number;
|
|
5771
5896
|
/**
|
|
5772
5897
|
* Additional configuration options passed to the position source constructor.
|
|
5773
5898
|
* Use this for custom position source implementations.
|
|
5899
|
+
* `VideoPositionSource` rejects an `options` key (removed in 4.0.0).
|
|
5774
5900
|
*/
|
|
5775
5901
|
[key: string]: unknown;
|
|
5776
5902
|
}
|
|
@@ -5955,7 +6081,7 @@ export interface ITimelineConfiguration {
|
|
|
5955
6081
|
* A source that renders its own container (`VideoPositionSource`) is
|
|
5956
6082
|
* shared by every timeline of the type with the same effective settings,
|
|
5957
6083
|
* so only an override that changes the video settings creates a second
|
|
5958
|
-
*
|
|
6084
|
+
* video element. Other sources are created once per timeline, as without an
|
|
5959
6085
|
* override.
|
|
5960
6086
|
*
|
|
5961
6087
|
* @example
|
|
@@ -6272,7 +6398,9 @@ interface IEngineInputAdapterOptions extends IEngineInputOptions {
|
|
|
6272
6398
|
* When several engines on a page could handle an unfocused press, only
|
|
6273
6399
|
* one toggles: the engine the user last clicked or focused inside,
|
|
6274
6400
|
* otherwise the first connected one. With `scope: 'engineRoot'` it only
|
|
6275
|
-
* handles presses while the focus is inside the engine root.
|
|
6401
|
+
* handles presses while the focus is inside the engine root. A press that
|
|
6402
|
+
* a KeyboardController of the same engine handles is left to that
|
|
6403
|
+
* controller.
|
|
6276
6404
|
* - Handles window resize events with debouncing, unless `resize` is
|
|
6277
6405
|
* `false`.
|
|
6278
6406
|
*/
|
|
@@ -6307,12 +6435,6 @@ export declare class EngineInputAdapter implements IAdapter {
|
|
|
6307
6435
|
disconnect(): void;
|
|
6308
6436
|
private _registerHotkeys;
|
|
6309
6437
|
private _handlePlayToggle;
|
|
6310
|
-
/**
|
|
6311
|
-
* Where the focus is for a key press with this target: nowhere (the
|
|
6312
|
-
* target is missing, the document or its body), on an interactive
|
|
6313
|
-
* element, inside the engine root, or elsewhere on the page.
|
|
6314
|
-
*/
|
|
6315
|
-
private _focusLocation;
|
|
6316
6438
|
private _root;
|
|
6317
6439
|
private _document;
|
|
6318
6440
|
private _registerResizeHandler;
|
|
@@ -6517,7 +6639,7 @@ export declare class EndableActionEditor<T extends IEndableActionConfiguration =
|
|
|
6517
6639
|
* @returns
|
|
6518
6640
|
* @throws Error when `systemName` is neither a built-in nor a declared custom operation
|
|
6519
6641
|
*/
|
|
6520
|
-
addEndOperation<T extends TFluentOperationName, O extends TFluentOperationData<T>>(systemName: T, operationData: O): OperationEditor<this, TOperation<ILoadJSONOperationData, Omit<ILoadJSONOperationData, "url" | "cache">> | TOperation<
|
|
6642
|
+
addEndOperation<T extends TFluentOperationName, O extends TFluentOperationData<T>>(systemName: T, operationData: O): OperationEditor<this, TOperation<ILoadJSONOperationData, Omit<ILoadJSONOperationData, "url" | "cache">> | TOperation<IForEachOperationData> | TOperation<IAddClassOperationData, Omit<IAddClassOperationData, "className">> | TOperation<IAddControllerToElementOperationData<TOperationData>> | TOperation<IAddGlobalsToOperationData, Omit<IAddGlobalsToOperationData, "globalProperties">> | TOperation<IAnimateOperationData, Omit<IAnimateOperationData, "animationEasing" | "animationProperties" | "animationDuration">> | TOperation<IAnimateWithClassOperationData, Omit<IAnimateWithClassOperationData, "removeClass" | "className" | "includeDescendants">> | 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<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, "url" | "body" | "headers">> | TOperation<IHttpPutOperationData, Omit<IHttpPutOperationData, "url" | "body" | "headers">> | TOperation<IInvokeObjectMethodOperationData, Omit<IInvokeObjectMethodOperationData, "methodName" | "methodArguments">> | TOperation<IIsElementInViewportOperationData, IIsElementInViewportOperationData> | TOperation<ILoadFromStorageOperationData, Omit<ILoadFromStorageOperationData, "key" | "storageType">> | 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, "key" | "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">>>;
|
|
6521
6643
|
/**
|
|
6522
6644
|
*
|
|
6523
6645
|
* Starts an editor for the end operation associated with the given id
|
|
@@ -7017,7 +7139,8 @@ export declare class ConfigurationFactory {
|
|
|
7017
7139
|
*
|
|
7018
7140
|
* @param name
|
|
7019
7141
|
* @param eventName the event that starts the action. Without it the action can
|
|
7020
|
-
* only be started by name (for example by a `DOMEventListenerController`
|
|
7142
|
+
* only be started by name (for example by a `DOMEventListenerController` or
|
|
7143
|
+
* `KeyboardController`).
|
|
7021
7144
|
* @param eventTopic optional topic of the event
|
|
7022
7145
|
* @returns
|
|
7023
7146
|
*
|
|
@@ -7169,7 +7292,8 @@ export declare class ActionCreatorFactory {
|
|
|
7169
7292
|
*
|
|
7170
7293
|
* @param name
|
|
7171
7294
|
* @param eventName the event that starts the action. Without it the action can
|
|
7172
|
-
* only be started by name (for example by a `DOMEventListenerController`
|
|
7295
|
+
* only be started by name (for example by a `DOMEventListenerController` or
|
|
7296
|
+
* `KeyboardController`).
|
|
7173
7297
|
* @param eventTopic optional topic of the event
|
|
7174
7298
|
* @returns
|
|
7175
7299
|
*/
|
|
@@ -7714,6 +7838,9 @@ export declare class SubtitleEditor {
|
|
|
7714
7838
|
* names a `systemName` the importer does not provide, or leaves out a setting that the provider
|
|
7715
7839
|
* requires (for example `selector` of `ScrollPositionSource`) once it is merged over the type's
|
|
7716
7840
|
* settings.
|
|
7841
|
+
* @throws When a VideoPositionSource has an 'options' key, at timelineProviderSettings.<type>.positionSource
|
|
7842
|
+
* or at a timeline's positionSource override (also when the override inherits VideoPositionSource from its
|
|
7843
|
+
* type). 4.0.0 removed the video.js player options.
|
|
7717
7844
|
* @throws When a `template:`, `json:` or `config:` placeholder cannot be resolved.
|
|
7718
7845
|
*/
|
|
7719
7846
|
export declare class ConfigurationResolver implements IConfigurationResolver {
|
|
@@ -7733,6 +7860,9 @@ export type IControllerMetadata<T> = {
|
|
|
7733
7860
|
//#region src/controllers/metadata/dom-event-listener-controller.d.ts
|
|
7734
7861
|
declare function DOMEventListenerController$1(): IControllerMetadata<IDOMEventListenerControllerOperationData>;
|
|
7735
7862
|
//#endregion
|
|
7863
|
+
//#region src/controllers/metadata/keyboard-controller.d.ts
|
|
7864
|
+
declare function KeyboardController$1(): IControllerMetadata<IKeyboardControllerOperationData>;
|
|
7865
|
+
//#endregion
|
|
7736
7866
|
//#region src/controllers/metadata/label-controller.d.ts
|
|
7737
7867
|
declare function LabelController$1(): IControllerMetadata<ILabelControllerMetadata>;
|
|
7738
7868
|
//#endregion
|
|
@@ -7754,7 +7884,7 @@ declare function RoutingController$1(): IControllerMetadata<IRoutingControllerOp
|
|
|
7754
7884
|
//#region src/controllers/metadata/subtitles-controller.d.ts
|
|
7755
7885
|
declare function SubtitlesController$1(): IControllerMetadata<ISubtitlesControllerOperationData>;
|
|
7756
7886
|
declare namespace index_d_exports {
|
|
7757
|
-
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 };
|
|
7887
|
+
export { DOMEventListenerController$1 as DOMEventListenerController, IControllerMetadata, KeyboardController$1 as KeyboardController, 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 };
|
|
7758
7888
|
}
|
|
7759
7889
|
//#endregion
|
|
7760
7890
|
//#region src/eventbus/events/metadata/before-request-timeline-uri.d.ts
|
|
@@ -8219,6 +8349,11 @@ interface KeyboardStepSourceConfig {
|
|
|
8219
8349
|
* one on suspend, deactivate and destroy. The source never changes the
|
|
8220
8350
|
* global hotkeys-js scope.
|
|
8221
8351
|
*
|
|
8352
|
+
* A key that a KeyboardController of the owning engine handles is left to
|
|
8353
|
+
* that controller: the press runs the controller's actions and does not step
|
|
8354
|
+
* the timeline. The engine tells the source its root through
|
|
8355
|
+
* {@link KeyboardStepSource.setEngineRoot}.
|
|
8356
|
+
*
|
|
8222
8357
|
* Supports:
|
|
8223
8358
|
* - Left/Right arrows: step by `stepSize` (default 1s)
|
|
8224
8359
|
* - Shift+Left/Right: large step by `largeStepSize` (default 10s)
|
|
@@ -8254,6 +8389,8 @@ export declare class KeyboardStepSource extends BasePositionSource implements IS
|
|
|
8254
8389
|
private _markers;
|
|
8255
8390
|
private readonly _targetElementConfig?;
|
|
8256
8391
|
private _targetElement?;
|
|
8392
|
+
/** Returns the root element of the owning engine, see setEngineRoot() */
|
|
8393
|
+
private _getEngineRoot;
|
|
8257
8394
|
/** Handlers currently bound in hotkeys-js, for exact removal. */
|
|
8258
8395
|
private _bindings;
|
|
8259
8396
|
private _timelineChangeCallbacks;
|
|
@@ -8290,6 +8427,17 @@ export declare class KeyboardStepSource extends BasePositionSource implements IS
|
|
|
8290
8427
|
* @returns A function that unregisters the callback
|
|
8291
8428
|
*/
|
|
8292
8429
|
onTimelineChangeRequest(callback: (direction: 'prev' | 'next') => void): () => void;
|
|
8430
|
+
/**
|
|
8431
|
+
* Tells the source the root element of the engine that owns it, so a key
|
|
8432
|
+
* press that a KeyboardController of that engine handles is left to the
|
|
8433
|
+
* controller instead of stepping the timeline. EligiusEngine calls this
|
|
8434
|
+
* for every source it wires; a source without an engine root handles
|
|
8435
|
+
* every press of its keys.
|
|
8436
|
+
*
|
|
8437
|
+
* @param getRoot - Returns the engine root, or `undefined` before the
|
|
8438
|
+
* engine is initialised
|
|
8439
|
+
*/
|
|
8440
|
+
setEngineRoot(getRoot: () => Element | undefined): void;
|
|
8293
8441
|
/**
|
|
8294
8442
|
* Register callback for marker jumps (chapter-navigation mode).
|
|
8295
8443
|
*
|
|
@@ -8589,15 +8737,18 @@ export declare class ScrollPositionSource extends BasePositionSource implements
|
|
|
8589
8737
|
//#endregion
|
|
8590
8738
|
//#region src/timelineproviders/position-sources/video-position-source.d.ts
|
|
8591
8739
|
/**
|
|
8592
|
-
*
|
|
8740
|
+
* Media source configuration for VideoPositionSource.
|
|
8593
8741
|
*/
|
|
8594
8742
|
interface VideoSource {
|
|
8595
8743
|
/**
|
|
8596
|
-
* URL of the
|
|
8744
|
+
* URL of the media file.
|
|
8597
8745
|
*/
|
|
8598
8746
|
src: string;
|
|
8599
8747
|
/**
|
|
8600
|
-
* MIME type of the
|
|
8748
|
+
* MIME type of the media (for example 'video/mp4', 'video/webm' or
|
|
8749
|
+
* 'audio/mpeg'). Written as the `type` attribute of the `<source>`
|
|
8750
|
+
* element; a source whose type the browser reports it cannot play is
|
|
8751
|
+
* left out without being requested.
|
|
8601
8752
|
*/
|
|
8602
8753
|
type: string;
|
|
8603
8754
|
}
|
|
@@ -8606,34 +8757,51 @@ interface VideoSource {
|
|
|
8606
8757
|
*/
|
|
8607
8758
|
interface VideoPositionSourceConfig {
|
|
8608
8759
|
/**
|
|
8609
|
-
* CSS selector for the container
|
|
8760
|
+
* CSS selector for the container the video element is appended to. When
|
|
8761
|
+
* it matches several elements, the first one is used.
|
|
8610
8762
|
*/
|
|
8611
8763
|
selector: string;
|
|
8612
8764
|
/**
|
|
8613
|
-
*
|
|
8614
|
-
*
|
|
8765
|
+
* Media sources, in order of preference. Each becomes a `<source>` child
|
|
8766
|
+
* of the video element; the browser plays the first one it supports and
|
|
8767
|
+
* falls back to the next when one fails. Browser-playable media files
|
|
8768
|
+
* only (video or audio, for example MP4, WebM or MP3); HLS (.m3u8) and
|
|
8769
|
+
* DASH (.mpd) play only where the browser supports them natively.
|
|
8770
|
+
* Required: `init()` rejects when this is not a non-empty array.
|
|
8615
8771
|
*/
|
|
8616
8772
|
sources: VideoSource[];
|
|
8617
8773
|
/**
|
|
8618
|
-
* Optional poster image URL, shown
|
|
8774
|
+
* Optional poster image URL, shown until the first frame is available.
|
|
8619
8775
|
*/
|
|
8620
8776
|
poster?: string;
|
|
8621
8777
|
/**
|
|
8622
|
-
*
|
|
8623
|
-
* `
|
|
8778
|
+
* Milliseconds `init()` waits for a source to become playable
|
|
8779
|
+
* (`canplay`) before it rejects. Guards against media the browser accepts
|
|
8780
|
+
* but never finishes loading or reports as failed. `0` disables the limit.
|
|
8781
|
+
*
|
|
8782
|
+
* @default 30000
|
|
8624
8783
|
*/
|
|
8625
|
-
|
|
8784
|
+
loadTimeout?: number;
|
|
8626
8785
|
}
|
|
8627
8786
|
/**
|
|
8628
|
-
*
|
|
8787
|
+
* Position source driven by a native HTML `<video>` element.
|
|
8629
8788
|
*
|
|
8630
|
-
*
|
|
8631
|
-
*
|
|
8789
|
+
* `init()` creates `<video id="video-…" class="eligius-video" preload="auto"
|
|
8790
|
+
* playsinline>` with one `<source>` child per playable entry of `sources`,
|
|
8791
|
+
* and appends it to the first element matching `selector`. The element has
|
|
8792
|
+
* no controls and no styling: size it with CSS on `.eligius-video`. Host
|
|
8793
|
+
* code can reach it as `container.querySelector('video.eligius-video')`.
|
|
8794
|
+
*
|
|
8795
|
+
* Only browser-playable media files are supported (video or audio); there
|
|
8796
|
+
* is no HLS or DASH player. `init()` resolves on the first `canplay` and
|
|
8797
|
+
* rejects when no source can be played, on a media error, when no source
|
|
8798
|
+
* becomes playable within `loadTimeout` (30 s by default), when the
|
|
8799
|
+
* container or the sources are missing, when an entry has no `src`, or when
|
|
8800
|
+
* the removed `options` key is present. `getContainer()` returns the
|
|
8801
|
+
* selector's element. Browser autoplay policies may reject `activate()`
|
|
8802
|
+
* with a `NotAllowedError`.
|
|
8632
8803
|
*
|
|
8633
|
-
*
|
|
8634
|
-
* `import()` during the first `init()`, so applications that never create a
|
|
8635
|
-
* video timeline do not need it installed. `init()` rejects with an error
|
|
8636
|
-
* naming the package when it cannot be loaded.
|
|
8804
|
+
* Implements `IPositionSource`, `ISeekable`, and `IContainerProvider`.
|
|
8637
8805
|
*
|
|
8638
8806
|
* @example
|
|
8639
8807
|
* ```typescript
|
|
@@ -8660,15 +8828,21 @@ interface VideoPositionSourceConfig {
|
|
|
8660
8828
|
*/
|
|
8661
8829
|
export declare class VideoPositionSource extends BasePositionSource implements ISeekable, IContainerProvider {
|
|
8662
8830
|
private readonly _config;
|
|
8663
|
-
private
|
|
8664
|
-
private
|
|
8831
|
+
private readonly _videoElementId;
|
|
8832
|
+
private _video;
|
|
8833
|
+
/** Only the appended (playable) source elements, in document order */
|
|
8834
|
+
private _sourceElements;
|
|
8835
|
+
private _initPromise;
|
|
8836
|
+
private _pendingInit;
|
|
8837
|
+
/** timeupdate, ended, playing and seek listeners */
|
|
8838
|
+
private readonly _listeners;
|
|
8839
|
+
/** canplay and the capture-phase error listener of a pending init */
|
|
8840
|
+
private readonly _initListeners;
|
|
8665
8841
|
private readonly _containerReadyCallbacks;
|
|
8666
|
-
private readonly _eventHandlers;
|
|
8667
8842
|
private _containerReady;
|
|
8668
|
-
private _pendingInit;
|
|
8669
8843
|
private readonly _pendingSeeks;
|
|
8670
8844
|
/**
|
|
8671
|
-
* Create a new video
|
|
8845
|
+
* Create a new video position source.
|
|
8672
8846
|
*
|
|
8673
8847
|
* @param config - Configuration options
|
|
8674
8848
|
*/
|
|
@@ -8678,14 +8852,21 @@ export declare class VideoPositionSource extends BasePositionSource implements I
|
|
|
8678
8852
|
protected startTicking(): Promise<void>;
|
|
8679
8853
|
protected stopTicking(): void;
|
|
8680
8854
|
/**
|
|
8681
|
-
* Seek to a specific position in the
|
|
8855
|
+
* Seek to a specific position in the media.
|
|
8682
8856
|
*
|
|
8683
|
-
* Resolves on 'seeked' with the position the
|
|
8684
|
-
* that cannot complete also settles, with the
|
|
8685
|
-
* media 'error', when the media is reset
|
|
8686
|
-
* load), or when the source is
|
|
8687
|
-
* as the engine, which ignores
|
|
8688
|
-
* therefore never left waiting.
|
|
8857
|
+
* Resolves on 'seeked' with the position the media landed on. A seek
|
|
8858
|
+
* that cannot complete also settles, with the media's current time: on a
|
|
8859
|
+
* media 'error' (also at a `<source>`), when the media is reset
|
|
8860
|
+
* ('emptied', for example by a new load), or when the source is
|
|
8861
|
+
* destroyed. Callers awaiting the seek (such as the engine, which ignores
|
|
8862
|
+
* position updates while seeking) are therefore never left waiting.
|
|
8863
|
+
*
|
|
8864
|
+
* Seeks that the media would never complete settle at once:
|
|
8865
|
+
* - before `init()` or after `destroy()`: with `getPosition()`;
|
|
8866
|
+
* - after a fatal media error, or when nothing is seekable: with the
|
|
8867
|
+
* media's current time;
|
|
8868
|
+
* - before the media metadata is loaded: with the requested position,
|
|
8869
|
+
* which the element keeps as the position playback starts from.
|
|
8689
8870
|
*
|
|
8690
8871
|
* @param position - Target position in seconds
|
|
8691
8872
|
* @returns Actual position after seek
|
|
@@ -8707,51 +8888,69 @@ export declare class VideoPositionSource extends BasePositionSource implements I
|
|
|
8707
8888
|
*/
|
|
8708
8889
|
onContainerReady(callback: () => void): void;
|
|
8709
8890
|
/**
|
|
8710
|
-
* Get the
|
|
8891
|
+
* Get the media duration.
|
|
8711
8892
|
*
|
|
8712
|
-
* @returns Duration in seconds from
|
|
8893
|
+
* @returns Duration in seconds from the media: 0 until its metadata is
|
|
8894
|
+
* loaded, `Infinity` for unbounded media
|
|
8713
8895
|
*/
|
|
8714
8896
|
getDuration(): number;
|
|
8715
8897
|
/**
|
|
8716
8898
|
* Deactivate the source and reset position.
|
|
8717
8899
|
*
|
|
8718
|
-
* Overrides base to also reset
|
|
8900
|
+
* Overrides base to also reset the media's currentTime.
|
|
8719
8901
|
*/
|
|
8720
8902
|
deactivate(): void;
|
|
8721
8903
|
/**
|
|
8722
|
-
*
|
|
8723
|
-
*
|
|
8724
|
-
*
|
|
8725
|
-
|
|
8904
|
+
* Validate the configuration, create the video element with its sources
|
|
8905
|
+
* and start loading. Resolves on 'canplay', rejects when no source can be
|
|
8906
|
+
* played or on a media error.
|
|
8907
|
+
*/
|
|
8908
|
+
private _load;
|
|
8909
|
+
private _sourceList;
|
|
8910
|
+
/**
|
|
8911
|
+
* Create the video element (DOM APIs, so `src` and `poster` need no
|
|
8912
|
+
* escaping).
|
|
8913
|
+
*/
|
|
8914
|
+
private _createVideoElement;
|
|
8915
|
+
/**
|
|
8916
|
+
* Add an event listener and record its remover in `group`. The only
|
|
8917
|
+
* place that calls addEventListener.
|
|
8918
|
+
*/
|
|
8919
|
+
private _listen;
|
|
8920
|
+
/**
|
|
8921
|
+
* Attach the media listeners. Each handler first checks that its element
|
|
8922
|
+
* is still the current one, so nothing from an old element can drive a
|
|
8923
|
+
* new attempt.
|
|
8726
8924
|
*/
|
|
8727
|
-
private
|
|
8925
|
+
private _attachListeners;
|
|
8728
8926
|
/**
|
|
8729
|
-
*
|
|
8730
|
-
*
|
|
8927
|
+
* Reject the pending init when no source has become playable within
|
|
8928
|
+
* `ms`. The timer is an init listener, so settling or tearing down init
|
|
8929
|
+
* clears it.
|
|
8731
8930
|
*/
|
|
8732
|
-
private
|
|
8931
|
+
private _startLoadTimer;
|
|
8932
|
+
private _handleInitError;
|
|
8733
8933
|
/**
|
|
8734
8934
|
* Settle the pending init promise once: resolve without an error, reject
|
|
8735
|
-
* with one.
|
|
8935
|
+
* with one. Removes the init listeners either way.
|
|
8736
8936
|
*/
|
|
8737
8937
|
private _settleInit;
|
|
8738
8938
|
/**
|
|
8739
|
-
*
|
|
8939
|
+
* Reject the pending init and remove the element, so no element or
|
|
8940
|
+
* listener survives a failed init.
|
|
8740
8941
|
*/
|
|
8741
|
-
private
|
|
8942
|
+
private _failInit;
|
|
8742
8943
|
/**
|
|
8743
|
-
*
|
|
8744
|
-
*
|
|
8745
|
-
* @param event - Event name
|
|
8746
|
-
* @param handler - Event handler
|
|
8944
|
+
* Settle pending seeks, remove every listener and release the media
|
|
8945
|
+
* element.
|
|
8747
8946
|
*/
|
|
8748
|
-
private
|
|
8947
|
+
private _teardown;
|
|
8749
8948
|
/**
|
|
8750
|
-
* Handle timeupdate event
|
|
8949
|
+
* Handle the media's timeupdate event.
|
|
8751
8950
|
*/
|
|
8752
8951
|
private _handleTimeUpdate;
|
|
8753
8952
|
/**
|
|
8754
|
-
* Handle ended event
|
|
8953
|
+
* Handle the media's ended event.
|
|
8755
8954
|
*/
|
|
8756
8955
|
private _handleEnded;
|
|
8757
8956
|
/**
|
|
@@ -9379,6 +9578,11 @@ export declare class EligiusEngine implements IEligiusEngine {
|
|
|
9379
9578
|
* Registers the engine callbacks on a source, once per source.
|
|
9380
9579
|
*/
|
|
9381
9580
|
private _wireSource;
|
|
9581
|
+
/**
|
|
9582
|
+
* Sources that bind keys (KeyboardStepSource) get the engine root, so they
|
|
9583
|
+
* leave a key to a KeyboardController of this engine that handles it.
|
|
9584
|
+
*/
|
|
9585
|
+
private _wireEngineRoot;
|
|
9382
9586
|
/**
|
|
9383
9587
|
* Sources that ask for timeline changes (KeyboardStepSource in
|
|
9384
9588
|
* `timeline-switch` mode) switch to the previous or next configured
|
|
@@ -9712,9 +9916,9 @@ export declare class EngineFactory implements IEngineFactory {
|
|
|
9712
9916
|
* `IContainerProvider`, like VideoPositionSource) take their duration from
|
|
9713
9917
|
* the media rather than from the timeline. They are shared by all timelines
|
|
9714
9918
|
* of a type with the same effective settings, so switching timelines does
|
|
9715
|
-
* not create a second
|
|
9716
|
-
* settings gets a
|
|
9717
|
-
* shared the same way.
|
|
9919
|
+
* not create a second video element; a timeline whose override changes the
|
|
9920
|
+
* video settings gets a video element of its own. Overridden container
|
|
9921
|
+
* providers are shared the same way.
|
|
9718
9922
|
*
|
|
9719
9923
|
* @param configuration - The resolved engine configuration
|
|
9720
9924
|
* @param providersByType - The providers created per timeline type
|
|
@@ -9940,5 +10144,5 @@ export declare class LocaleManager implements ILocaleManager {
|
|
|
9940
10144
|
private _emit;
|
|
9941
10145
|
}
|
|
9942
10146
|
//#endregion
|
|
9943
|
-
export { type BeforeRequestTimelineUriEvent, type BeforeRequestVideoUrlEvent, type CompleteEvent, type ContainerRequestEvent, type CurrentTimelineChangeEvent, type DomContainerProviderConfig, type DomMutationEvent, type DurationEvent, type DurationRequestEvent, type EngineCommandErrorEvent, type EngineErrorEvent, type FirstFrameEvent, type HighlightNavigationEvent, type 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, type ICreateElementOperationData, type ICustomFunctionOperationData, type IDOMEventListenerControllerOperationData, type IEndActionOperationData, type IEngineInputAdapterOptions, 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, type ILabelControllerMetadata, type ILoadFromStorageOperationData, type ILoadJSONOperationData, type ILocaleLoadResult, type ILocaleLoader, type ILocaleLoaderOptions, type ILocaleManager, type ILocaleManagerOptions, type ILocaleReference, type ILocalesConfiguration, type ILogOperationData, type ILottieControllerMetadata, type IMapArrayOperationData, type IMathOperationData, type IMutationEventPayload, type IMutationObserverControllerMetadata, type INavigationControllerOperationData, type IProgressbarControllerOperationData, type IRemoveClassOperationData, type IRemoveControllerFromElementOperationData, type IRemoveElementOperationData, type IRemovePropertiesFromOperationDataOperationData, type IReparentElementOperationData, type IReplaceStringOperationData, type IReplaceTextOperationData, type IRequestActionOperationData, 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, type ISortArrayOperationData, type ISplitStringOperationData, type IStartActionOperationData, type ISubstringTextOperationData, type ISubtitlesControllerOperationData, type IToggleClassOperationData, type IToggleElementOperationData, type IToggleFormElementOperationData, type IValidateFormOperationData, type IWaitOperationData, type IWhenOperationData, type KeyboardStepSourceConfig, type LanguageChangeEvent, type LocaleEvents, type NavigateToVideoUrlEvent, type PauseEvent, type PauseRequestEvent, type PlayEvent, type PlayRequestEvent, type PlayToggleRequestEvent, type PushHistoryStateEvent, type RafPositionSourceConfig, type RequestActionEvent, type RequestCurrentLanguageEvent, type RequestCurrentNavigationEvent, type RequestCurrentTimelineEvent, type RequestCurrentTimelinePositionEvent, type RequestCurrentVideoPositionEvent, type RequestEngineRootEvent, type RequestFunctionEvent, type RequestInstanceEvent, type RequestLabelCollectionEvent, type RequestLabelCollectionsEvent, type RequestTimelineCleanupEvent, type RequestTimelineUriEvent, type RequestTranslationEvent, type RequestVideoCleanupEvent, type RequestVideoUrlEvent, type ResizeEvent, type ResizeRequestEvent, type RestartEvent, type ScrollPositionSourceConfig, type SeekEvent, type SeekRequestEvent, type SeekedEvent, type SimplePlaylistConfig, type StopEvent, type StopRequestEvent, type StorageType, type TLanguageCode, type TLocaleData, type TLocaleEntry, type TLocaleValue, type TVerticalMode, type TimeEvent, type VideoCompleteEvent, type VideoPositionSourceConfig, type VideoSource, index_d_exports as ctrlmetadata, index_d_exports$1 as eventmetadata, index_d_exports$2 as metadata };
|
|
10147
|
+
export { type BeforeRequestTimelineUriEvent, type BeforeRequestVideoUrlEvent, type CompleteEvent, type ContainerRequestEvent, type CurrentTimelineChangeEvent, type DomContainerProviderConfig, type DomMutationEvent, type DurationEvent, type DurationRequestEvent, type EngineCommandErrorEvent, type EngineErrorEvent, type FirstFrameEvent, type HighlightNavigationEvent, type 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, type ICreateElementOperationData, type ICustomFunctionOperationData, type IDOMEventListenerControllerOperationData, type IEndActionOperationData, type IEngineInputAdapterOptions, 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, type IKeyboardControllerOperationData, type ILabelControllerMetadata, type ILoadFromStorageOperationData, type ILoadJSONOperationData, type ILocaleLoadResult, type ILocaleLoader, type ILocaleLoaderOptions, type ILocaleManager, type ILocaleManagerOptions, type ILocaleReference, type ILocalesConfiguration, type ILogOperationData, type ILottieControllerMetadata, type IMapArrayOperationData, type IMathOperationData, type IMutationEventPayload, type IMutationObserverControllerMetadata, type INavigationControllerOperationData, type IProgressbarControllerOperationData, type IRemoveClassOperationData, type IRemoveControllerFromElementOperationData, type IRemoveElementOperationData, type IRemovePropertiesFromOperationDataOperationData, type IReparentElementOperationData, type IReplaceStringOperationData, type IReplaceTextOperationData, type IRequestActionOperationData, 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, type ISortArrayOperationData, type ISplitStringOperationData, type IStartActionOperationData, type ISubstringTextOperationData, type ISubtitlesControllerOperationData, type IToggleClassOperationData, type IToggleElementOperationData, type IToggleFormElementOperationData, type IValidateFormOperationData, type IWaitOperationData, type IWhenOperationData, type KeyboardStepSourceConfig, type LanguageChangeEvent, type LocaleEvents, type NavigateToVideoUrlEvent, type PauseEvent, type PauseRequestEvent, type PlayEvent, type PlayRequestEvent, type PlayToggleRequestEvent, type PushHistoryStateEvent, type RafPositionSourceConfig, type RequestActionEvent, type RequestCurrentLanguageEvent, type RequestCurrentNavigationEvent, type RequestCurrentTimelineEvent, type RequestCurrentTimelinePositionEvent, type RequestCurrentVideoPositionEvent, type RequestEngineRootEvent, type RequestFunctionEvent, type RequestInstanceEvent, type RequestLabelCollectionEvent, type RequestLabelCollectionsEvent, type RequestTimelineCleanupEvent, type RequestTimelineUriEvent, type RequestTranslationEvent, type RequestVideoCleanupEvent, type RequestVideoUrlEvent, type ResizeEvent, type ResizeRequestEvent, type RestartEvent, type ScrollPositionSourceConfig, type SeekEvent, type SeekRequestEvent, type SeekedEvent, type SimplePlaylistConfig, type StopEvent, type StopRequestEvent, type StorageType, type TKeyboardControllerScope, type TLanguageCode, type TLocaleData, type TLocaleEntry, type TLocaleValue, type TVerticalMode, type TimeEvent, type VideoCompleteEvent, type VideoPositionSourceConfig, type VideoSource, index_d_exports as ctrlmetadata, index_d_exports$1 as eventmetadata, index_d_exports$2 as metadata };
|
|
9944
10148
|
//# sourceMappingURL=index.d.mts.map
|