eligius 1.0.71 → 1.0.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/controllers/label-controller.d.ts +2 -2
- package/dist/controllers/lottie-controller.d.ts +2 -2
- package/dist/controllers/navigation-controller.d.ts +2 -2
- package/dist/controllers/progressbar-controller.d.ts +2 -2
- package/dist/controllers/routing-controller.d.ts +2 -2
- package/dist/controllers/subtitles-controller.d.ts +2 -2
- package/dist/diagnostics/types.d.ts +22 -2
- package/dist/eligius-engine.d.ts +4 -3
- package/dist/eligius.cjs.development.js +326 -251
- package/dist/eligius.cjs.development.js.map +1 -1
- package/dist/eligius.cjs.production.min.js +1 -1
- package/dist/eligius.cjs.production.min.js.map +1 -1
- package/dist/eligius.esm.js +326 -251
- package/dist/eligius.esm.js.map +1 -1
- package/dist/engine-factory.d.ts +5 -5
- package/dist/eventbus/eventbus.d.ts +5 -5
- package/dist/eventbus/types.d.ts +5 -5
- package/dist/language-manager.d.ts +4 -3
- package/package.json +3 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="jquery" />
|
|
2
|
-
import { IEventbus,
|
|
2
|
+
import { IEventbus, TEventbusRemover } from '../eventbus/types';
|
|
3
3
|
import { ILabel } from '../types';
|
|
4
4
|
import { IController } from './types';
|
|
5
5
|
export interface ILabelControllerMetadata {
|
|
@@ -7,7 +7,7 @@ export interface ILabelControllerMetadata {
|
|
|
7
7
|
labelId: string;
|
|
8
8
|
}
|
|
9
9
|
export declare class LabelController implements IController<ILabelControllerMetadata> {
|
|
10
|
-
listeners:
|
|
10
|
+
listeners: TEventbusRemover[];
|
|
11
11
|
currentLanguage: string | null;
|
|
12
12
|
operationData: ILabelControllerMetadata | null;
|
|
13
13
|
labelData: Record<string, string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="jquery" />
|
|
2
2
|
import { AnimationItem, CanvasRendererConfig, HTMLRendererConfig, SVGRendererConfig } from 'lottie-web';
|
|
3
|
-
import { IEventbus,
|
|
3
|
+
import { IEventbus, TEventbusRemover } from '../eventbus/types';
|
|
4
4
|
import { IController } from './types';
|
|
5
5
|
export interface IInnerMetadata {
|
|
6
6
|
selectedElement: JQuery;
|
|
@@ -20,7 +20,7 @@ export declare class LottieController implements IController<ILottieControllerMe
|
|
|
20
20
|
name: string;
|
|
21
21
|
currentLanguage: string | null;
|
|
22
22
|
labelData: Record<string, Record<string, string>>;
|
|
23
|
-
listeners:
|
|
23
|
+
listeners: TEventbusRemover[];
|
|
24
24
|
animationItem: AnimationItem | null;
|
|
25
25
|
operationData: IInnerMetadata | null;
|
|
26
26
|
serializedData: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="jquery" />
|
|
2
|
-
import { IEventbus,
|
|
2
|
+
import { IEventbus, TEventbusRemover } from '../eventbus/types';
|
|
3
3
|
import { TOperationData } from '../operation/types';
|
|
4
4
|
import { TResultCallback } from '../types';
|
|
5
5
|
import { LabelController } from './label-controller';
|
|
@@ -16,7 +16,7 @@ export declare class NavigationController implements IController<INavigationCont
|
|
|
16
16
|
ctrlLookup: Record<string, LabelController>;
|
|
17
17
|
activeNavigationPoint: any | null;
|
|
18
18
|
labelControllers: LabelController[];
|
|
19
|
-
eventhandlers:
|
|
19
|
+
eventhandlers: TEventbusRemover[];
|
|
20
20
|
eventbus: IEventbus | null;
|
|
21
21
|
container: JQuery | null;
|
|
22
22
|
constructor();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="jquery" />
|
|
2
|
-
import { IEventbus,
|
|
2
|
+
import { IEventbus, TEventbusRemover } from '../eventbus/types';
|
|
3
3
|
import { TOperationData } from '../operation/types';
|
|
4
4
|
import { IController } from './types';
|
|
5
5
|
export interface IProgressbarControllerOperationData {
|
|
@@ -10,7 +10,7 @@ export declare class ProgressbarController implements IController<IProgressbarCo
|
|
|
10
10
|
name: string;
|
|
11
11
|
selectedElement: JQuery | null;
|
|
12
12
|
textElement: JQuery | null;
|
|
13
|
-
detachers:
|
|
13
|
+
detachers: TEventbusRemover[];
|
|
14
14
|
init(operationData: TOperationData): void;
|
|
15
15
|
attach(eventbus: IEventbus): void;
|
|
16
16
|
detach(_eventbus: IEventbus): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEventbus,
|
|
1
|
+
import { IEventbus, TEventbusRemover } from '../eventbus/types';
|
|
2
2
|
import { TOperationData } from '../operation/types';
|
|
3
3
|
import { IController } from './types';
|
|
4
4
|
export interface IRoutingControllerOperationData {
|
|
@@ -9,7 +9,7 @@ export declare class RoutingController implements IController<IRoutingController
|
|
|
9
9
|
navLookup: Record<string, any>;
|
|
10
10
|
navVidIdLookup: Record<string, any>;
|
|
11
11
|
navigation: any;
|
|
12
|
-
eventhandlers:
|
|
12
|
+
eventhandlers: TEventbusRemover[];
|
|
13
13
|
eventbus: IEventbus | null;
|
|
14
14
|
constructor();
|
|
15
15
|
init(operationData: TOperationData): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="jquery" />
|
|
2
|
-
import { IEventbus,
|
|
2
|
+
import { IEventbus, TEventbusRemover } from '../eventbus/types';
|
|
3
3
|
import { TOperationData } from '../operation/types';
|
|
4
4
|
import { IController } from './types';
|
|
5
5
|
export interface ISubtitlesControllerOperationData {
|
|
@@ -14,7 +14,7 @@ export declare class SubtitlesController implements IController<ISubtitlesContro
|
|
|
14
14
|
name: string;
|
|
15
15
|
attach(eventbus: IEventbus): void;
|
|
16
16
|
detach(_eventbus: IEventbus): void;
|
|
17
|
-
internalDetach(detachMethods?:
|
|
17
|
+
internalDetach(detachMethods?: TEventbusRemover[]): void;
|
|
18
18
|
languageChangeHandler(newLanguage: string): void;
|
|
19
19
|
removeTitle(container?: JQuery): void;
|
|
20
20
|
onTimeHandler(arg: any): void;
|
|
@@ -1,8 +1,28 @@
|
|
|
1
|
+
export declare type TDevToolsEventSubscriber = (event: TEventData) => void;
|
|
2
|
+
export declare type TPlayControlEventKind = 'play' | 'stop' | 'pause' | 'seek';
|
|
3
|
+
export declare const DEV_TOOLS_KEY = "__ELIGIUS_DEV_TOOLS__";
|
|
4
|
+
export declare type TWindowWithDevtools = Window & {
|
|
5
|
+
[DEV_TOOLS_KEY]: IDiagnosticsInfo | undefined;
|
|
6
|
+
};
|
|
7
|
+
export declare type TDevToolsMessage = {
|
|
8
|
+
source: 'eligius-inspect-devtools';
|
|
9
|
+
name: 'event';
|
|
10
|
+
data: TEventData;
|
|
11
|
+
};
|
|
12
|
+
export declare type TEventData = {
|
|
13
|
+
type: 'playcontrol';
|
|
14
|
+
data: IPlayControlEvent;
|
|
15
|
+
};
|
|
16
|
+
export interface IPlayControlEvent {
|
|
17
|
+
kind: TPlayControlEventKind;
|
|
18
|
+
args?: any[];
|
|
19
|
+
}
|
|
1
20
|
export interface IDiagnosticsAgent {
|
|
2
|
-
postMessage(name: TDiagnosticType,
|
|
21
|
+
postMessage(name: TDiagnosticType, messageData: any): void;
|
|
22
|
+
subscribe(subscriber: TDevToolsEventSubscriber): () => void;
|
|
3
23
|
}
|
|
4
24
|
export interface IDiagnosticsInfo {
|
|
5
25
|
get agent(): IDiagnosticsAgent;
|
|
6
26
|
}
|
|
7
27
|
export declare type TDiagnosticType = 'eligius-diagnostics-factory' | 'eligius-diagnostics-engine' | 'eligius-diagnostics-event' | 'eligius-diagnostics-action' | 'eligius-diagnostics-action-error' | 'eligius-diagnostics-operation';
|
|
8
|
-
export declare
|
|
28
|
+
export declare type TDiagnosticsMessageSource = 'eligius-inspect-agent' | 'eligius-inspect-devtools';
|
package/dist/eligius-engine.d.ts
CHANGED
|
@@ -12,18 +12,19 @@ export declare class EligiusEngine implements IEligiusEngine {
|
|
|
12
12
|
private configuration;
|
|
13
13
|
private eventbus;
|
|
14
14
|
private timelineProviders;
|
|
15
|
-
private
|
|
15
|
+
private languageManager;
|
|
16
16
|
private _timeLineActionsLookup;
|
|
17
|
-
private
|
|
17
|
+
private _eventbusRemovers;
|
|
18
18
|
private _currentTimelineUri;
|
|
19
19
|
private _activeTimelineProvider;
|
|
20
20
|
private _lastPosition;
|
|
21
|
-
constructor(configuration: IResolvedEngineConfiguration, eventbus: IEventbus, timelineProviders: Record<TimelineTypes, ITimelineProviderInfo>,
|
|
21
|
+
constructor(configuration: IResolvedEngineConfiguration, eventbus: IEventbus, timelineProviders: Record<TimelineTypes, ITimelineProviderInfo>, languageManager: LanguageManager);
|
|
22
22
|
init(): Promise<ITimelineProvider>;
|
|
23
23
|
private _createLayoutTemplate;
|
|
24
24
|
private _initializeTimelineProvider;
|
|
25
25
|
private _cleanUp;
|
|
26
26
|
destroy(): Promise<void>;
|
|
27
|
+
private _addEventListener;
|
|
27
28
|
private _addInitialisationListeners;
|
|
28
29
|
private _createTimelineLookup;
|
|
29
30
|
private _addTimelineAction;
|