eligius 1.1.3 → 1.1.5

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 (274) hide show
  1. package/README.md +8 -7
  2. package/dist/chunk-CTAAG5j7.js +13 -0
  3. package/dist/index.d.ts +2984 -22
  4. package/dist/index.js +5857 -7
  5. package/dist/index.js.map +1 -0
  6. package/package.json +61 -46
  7. package/dist/action/action.d.ts +0 -17
  8. package/dist/action/endable-action.d.ts +0 -9
  9. package/dist/action/index.d.ts +0 -3
  10. package/dist/action/timeline-action.d.ts +0 -14
  11. package/dist/action/types.d.ts +0 -17
  12. package/dist/build/generate-importer-source-code.d.ts +0 -15
  13. package/dist/build/index.d.ts +0 -1
  14. package/dist/configuration/api/action-creator-factory.d.ts +0 -31
  15. package/dist/configuration/api/action-editor.d.ts +0 -44
  16. package/dist/configuration/api/configuration-factory.d.ts +0 -135
  17. package/dist/configuration/api/index.d.ts +0 -7
  18. package/dist/configuration/api/label-editor.d.ts +0 -11
  19. package/dist/configuration/api/name-providers.d.ts +0 -13
  20. package/dist/configuration/api/subtitle-converter.d.ts +0 -11
  21. package/dist/configuration/api/subtitle-editor.d.ts +0 -24
  22. package/dist/configuration/api/timeline-provider-settings-editor.d.ts +0 -22
  23. package/dist/configuration/configuration-resolver.d.ts +0 -18
  24. package/dist/configuration/types.d.ts +0 -102
  25. package/dist/controllers/event-listener-controller.d.ts +0 -36
  26. package/dist/controllers/index.d.ts +0 -7
  27. package/dist/controllers/label-controller.d.ts +0 -31
  28. package/dist/controllers/lottie-controller.d.ts +0 -47
  29. package/dist/controllers/metadata/event-listener-controller.d.ts +0 -4
  30. package/dist/controllers/metadata/index.d.ts +0 -7
  31. package/dist/controllers/metadata/label-controller.d.ts +0 -4
  32. package/dist/controllers/metadata/lottie-controller.d.ts +0 -4
  33. package/dist/controllers/metadata/navigation-controller.d.ts +0 -4
  34. package/dist/controllers/metadata/progressbar-controller.d.ts +0 -4
  35. package/dist/controllers/metadata/routing-controller.d.ts +0 -4
  36. package/dist/controllers/metadata/subtitles-controller.d.ts +0 -4
  37. package/dist/controllers/metadata/types.d.ts +0 -6
  38. package/dist/controllers/navigation-controller.d.ts +0 -39
  39. package/dist/controllers/progressbar-controller.d.ts +0 -26
  40. package/dist/controllers/routing-controller.d.ts +0 -27
  41. package/dist/controllers/subtitles-controller.d.ts +0 -27
  42. package/dist/controllers/types.d.ts +0 -8
  43. package/dist/diagnostics/devtool-event-listener.d.ts +0 -7
  44. package/dist/diagnostics/diagnostics.d.ts +0 -5
  45. package/dist/diagnostics/index.d.ts +0 -3
  46. package/dist/diagnostics/types.d.ts +0 -28
  47. package/dist/eligius-engine.d.ts +0 -88
  48. package/dist/eligius-flow-controller.d.ts +0 -8
  49. package/dist/engine-factory.d.ts +0 -38
  50. package/dist/eventbus/actionregistry-eventbus-listener.d.ts +0 -11
  51. package/dist/eventbus/eventbus.d.ts +0 -18
  52. package/dist/eventbus/index.d.ts +0 -4
  53. package/dist/eventbus/request-video-uri-interceptor.d.ts +0 -6
  54. package/dist/eventbus/types.d.ts +0 -18
  55. package/dist/importer/eligius-resource-importer.d.ts +0 -9
  56. package/dist/importer/index.d.ts +0 -1
  57. package/dist/index.cjs +0 -6417
  58. package/dist/index.cjs.map +0 -7
  59. package/dist/index.cjs.min.js +0 -8
  60. package/dist/index.cjs.min.js.map +0 -7
  61. package/dist/index.esm.js +0 -8
  62. package/dist/index.esm.js.map +0 -7
  63. package/dist/language-manager.d.ts +0 -24
  64. package/dist/operation/add-class.d.ts +0 -14
  65. package/dist/operation/add-controller-to-element.d.ts +0 -15
  66. package/dist/operation/add-globals-to-operation.d.ts +0 -12
  67. package/dist/operation/animate-with-class.d.ts +0 -17
  68. package/dist/operation/animate.d.ts +0 -17
  69. package/dist/operation/broadcast-event.d.ts +0 -13
  70. package/dist/operation/calc.d.ts +0 -14
  71. package/dist/operation/clear-element.d.ts +0 -11
  72. package/dist/operation/clear-operation-data.d.ts +0 -10
  73. package/dist/operation/create-element.d.ts +0 -18
  74. package/dist/operation/custom-function.d.ts +0 -12
  75. package/dist/operation/end-action.d.ts +0 -17
  76. package/dist/operation/end-for-each.d.ts +0 -8
  77. package/dist/operation/end-when.d.ts +0 -8
  78. package/dist/operation/extend-controller.d.ts +0 -10
  79. package/dist/operation/for-each.d.ts +0 -19
  80. package/dist/operation/get-attributes-from-element.d.ts +0 -21
  81. package/dist/operation/get-controller-from-element.d.ts +0 -16
  82. package/dist/operation/get-controller-instance.d.ts +0 -17
  83. package/dist/operation/get-element-dimensions.d.ts +0 -30
  84. package/dist/operation/get-import.d.ts +0 -13
  85. package/dist/operation/get-query-params.d.ts +0 -28
  86. package/dist/operation/helper/attach-controller-to-element.d.ts +0 -3
  87. package/dist/operation/helper/deep-copy.d.ts +0 -1
  88. package/dist/operation/helper/find-matching-operation-index.d.ts +0 -35
  89. package/dist/operation/helper/get-element-data.d.ts +0 -7
  90. package/dist/operation/helper/get-property-chain-value.d.ts +0 -24
  91. package/dist/operation/helper/globals.d.ts +0 -4
  92. package/dist/operation/helper/internal-resolve.d.ts +0 -2
  93. package/dist/operation/helper/merge-operation-data.d.ts +0 -2
  94. package/dist/operation/helper/modify-dimensions.d.ts +0 -20
  95. package/dist/operation/helper/remove-event-data-from-operation-data.d.ts +0 -2
  96. package/dist/operation/helper/remove-global.d.ts +0 -1
  97. package/dist/operation/helper/resolve-event-arguments.d.ts +0 -2
  98. package/dist/operation/helper/resolve-external-property-chain.d.ts +0 -14
  99. package/dist/operation/helper/resolve-property-chain.d.ts +0 -23
  100. package/dist/operation/helper/resolve-property-values.d.ts +0 -11
  101. package/dist/operation/helper/set-global.d.ts +0 -1
  102. package/dist/operation/index.d.ts +0 -46
  103. package/dist/operation/invoke-object-method.d.ts +0 -28
  104. package/dist/operation/load-json.d.ts +0 -28
  105. package/dist/operation/log.d.ts +0 -8
  106. package/dist/operation/math.d.ts +0 -12
  107. package/dist/operation/metadata/add-class.d.ts +0 -4
  108. package/dist/operation/metadata/add-controller-to-element.d.ts +0 -4
  109. package/dist/operation/metadata/add-globals-to-operation.d.ts +0 -4
  110. package/dist/operation/metadata/animate-with-class.d.ts +0 -4
  111. package/dist/operation/metadata/animate.d.ts +0 -4
  112. package/dist/operation/metadata/broadcast-event.d.ts +0 -4
  113. package/dist/operation/metadata/calc.d.ts +0 -4
  114. package/dist/operation/metadata/clear-element.d.ts +0 -4
  115. package/dist/operation/metadata/clear-operation-data.d.ts +0 -4
  116. package/dist/operation/metadata/create-element.d.ts +0 -4
  117. package/dist/operation/metadata/custom-function.d.ts +0 -4
  118. package/dist/operation/metadata/end-action.d.ts +0 -4
  119. package/dist/operation/metadata/end-for-each.d.ts +0 -3
  120. package/dist/operation/metadata/end-when.d.ts +0 -3
  121. package/dist/operation/metadata/extend-controller.d.ts +0 -4
  122. package/dist/operation/metadata/for-each.d.ts +0 -4
  123. package/dist/operation/metadata/get-attributes-from-element.d.ts +0 -4
  124. package/dist/operation/metadata/get-controller-from-element.d.ts +0 -4
  125. package/dist/operation/metadata/get-controller-instance.d.ts +0 -4
  126. package/dist/operation/metadata/get-element-dimensions.d.ts +0 -4
  127. package/dist/operation/metadata/get-import.d.ts +0 -4
  128. package/dist/operation/metadata/get-query-params.d.ts +0 -4
  129. package/dist/operation/metadata/index.d.ts +0 -45
  130. package/dist/operation/metadata/invoke-object-method.d.ts +0 -4
  131. package/dist/operation/metadata/load-json.d.ts +0 -4
  132. package/dist/operation/metadata/log.d.ts +0 -3
  133. package/dist/operation/metadata/math.d.ts +0 -4
  134. package/dist/operation/metadata/otherwise.d.ts +0 -3
  135. package/dist/operation/metadata/remove-class.d.ts +0 -4
  136. package/dist/operation/metadata/remove-controller-from-element.d.ts +0 -4
  137. package/dist/operation/metadata/remove-element.d.ts +0 -4
  138. package/dist/operation/metadata/remove-properties-from-operation-data.d.ts +0 -4
  139. package/dist/operation/metadata/reparent-element.d.ts +0 -4
  140. package/dist/operation/metadata/request-action.d.ts +0 -4
  141. package/dist/operation/metadata/resize-action.d.ts +0 -4
  142. package/dist/operation/metadata/select-element.d.ts +0 -4
  143. package/dist/operation/metadata/set-data.d.ts +0 -4
  144. package/dist/operation/metadata/set-element-attributes.d.ts +0 -4
  145. package/dist/operation/metadata/set-element-content.d.ts +0 -4
  146. package/dist/operation/metadata/set-global-data.d.ts +0 -4
  147. package/dist/operation/metadata/set-operation-data.d.ts +0 -4
  148. package/dist/operation/metadata/set-style.d.ts +0 -4
  149. package/dist/operation/metadata/start-action.d.ts +0 -4
  150. package/dist/operation/metadata/toggle-class.d.ts +0 -4
  151. package/dist/operation/metadata/toggle-element.d.ts +0 -4
  152. package/dist/operation/metadata/types.d.ts +0 -29
  153. package/dist/operation/metadata/wait.d.ts +0 -4
  154. package/dist/operation/metadata/when.d.ts +0 -4
  155. package/dist/operation/otherwise.d.ts +0 -9
  156. package/dist/operation/remove-class.d.ts +0 -14
  157. package/dist/operation/remove-controller-from-element.d.ts +0 -14
  158. package/dist/operation/remove-element.d.ts +0 -13
  159. package/dist/operation/remove-properties-from-operation-data.d.ts +0 -12
  160. package/dist/operation/reparent-element.d.ts +0 -15
  161. package/dist/operation/request-action.d.ts +0 -14
  162. package/dist/operation/resize-action.d.ts +0 -12
  163. package/dist/operation/select-element.d.ts +0 -19
  164. package/dist/operation/set-data.d.ts +0 -21
  165. package/dist/operation/set-element-attributes.d.ts +0 -14
  166. package/dist/operation/set-element-content.d.ts +0 -21
  167. package/dist/operation/set-global-data.d.ts +0 -11
  168. package/dist/operation/set-operation-data.d.ts +0 -13
  169. package/dist/operation/set-style.d.ts +0 -15
  170. package/dist/operation/start-action.d.ts +0 -17
  171. package/dist/operation/toggle-class.d.ts +0 -23
  172. package/dist/operation/toggle-element.d.ts +0 -19
  173. package/dist/operation/types.d.ts +0 -55
  174. package/dist/operation/wait.d.ts +0 -14
  175. package/dist/operation/when.d.ts +0 -21
  176. package/dist/test/integration/create-language-selector.spec.d.ts +0 -1
  177. package/dist/test/integration/end-in-correct-order.spec.d.ts +0 -1
  178. package/dist/test/integration/for-each-loop.spec.d.ts +0 -1
  179. package/dist/test/integration/re-use-image-action.spec.d.ts +0 -1
  180. package/dist/test/integration/when-construction.spec.d.ts +0 -1
  181. package/dist/test/unit/action/action.spec.d.ts +0 -1
  182. package/dist/test/unit/build/generate-importer-source-code.spec.d.ts +0 -1
  183. package/dist/test/unit/chrono-trigger-engine.spec.d.ts +0 -1
  184. package/dist/test/unit/configuration/api/action-editor.spec.d.ts +0 -1
  185. package/dist/test/unit/configuration/api/configuration-factory.spec.d.ts +0 -1
  186. package/dist/test/unit/configuration/api/endable-action-editor.spec.d.ts +0 -1
  187. package/dist/test/unit/configuration/api/name-providers.spec.d.ts +0 -1
  188. package/dist/test/unit/configuration/api/subtitle-editor.spec.d.ts +0 -1
  189. package/dist/test/unit/configuration/api/timeline-action-editor.spec.d.ts +0 -1
  190. package/dist/test/unit/configuration/api/timeline-provider-settings-editor.spec.d.ts +0 -1
  191. package/dist/test/unit/configuration/configuration-resolver.spec.d.ts +0 -1
  192. package/dist/test/unit/controllers/EventListenerController.spec.d.ts +0 -1
  193. package/dist/test/unit/controllers/LabelController.spec.d.ts +0 -1
  194. package/dist/test/unit/engine-factory.spec.d.ts +0 -1
  195. package/dist/test/unit/eventbus/eventbus.spec.d.ts +0 -1
  196. package/dist/test/unit/importer/eligius-resource-importer.spec.d.ts +0 -1
  197. package/dist/test/unit/language-manager.spec.d.ts +0 -1
  198. package/dist/test/unit/operation/_operation-metadata.spec.d.ts +0 -1
  199. package/dist/test/unit/operation/add-class.spec.d.ts +0 -1
  200. package/dist/test/unit/operation/add-controller-to-element.spec.d.ts +0 -1
  201. package/dist/test/unit/operation/add-globals-to-operation.spec.d.ts +0 -1
  202. package/dist/test/unit/operation/animate-with-class.spec.d.ts +0 -1
  203. package/dist/test/unit/operation/animate.spec.d.ts +0 -1
  204. package/dist/test/unit/operation/broadcast-event.spec.d.ts +0 -1
  205. package/dist/test/unit/operation/calc.spec.d.ts +0 -1
  206. package/dist/test/unit/operation/clear-element.spec.d.ts +0 -1
  207. package/dist/test/unit/operation/clear-operation-data.spec.d.ts +0 -1
  208. package/dist/test/unit/operation/create-element.spec.d.ts +0 -1
  209. package/dist/test/unit/operation/custom-function.spec.d.ts +0 -1
  210. package/dist/test/unit/operation/end-action.spec.d.ts +0 -1
  211. package/dist/test/unit/operation/end-for-each.spec.d.ts +0 -1
  212. package/dist/test/unit/operation/end-when.spec.d.ts +0 -1
  213. package/dist/test/unit/operation/extend-controller.spec.d.ts +0 -1
  214. package/dist/test/unit/operation/for-each.spec.d.ts +0 -1
  215. package/dist/test/unit/operation/get-attributes-from-element.spec.d.ts +0 -1
  216. package/dist/test/unit/operation/get-controller-from-element.spec.d.ts +0 -1
  217. package/dist/test/unit/operation/get-controller-instance.spec.d.ts +0 -1
  218. package/dist/test/unit/operation/get-element-dimensions.spec.d.ts +0 -1
  219. package/dist/test/unit/operation/get-query-params.spec.d.ts +0 -1
  220. package/dist/test/unit/operation/helper/attach-controller-to-element.spec.d.ts +0 -1
  221. package/dist/test/unit/operation/helper/get-element-data.spec.d.ts +0 -1
  222. package/dist/test/unit/operation/helper/get-property-chain-value.spec.d.ts +0 -1
  223. package/dist/test/unit/operation/helper/globals.spec.d.ts +0 -1
  224. package/dist/test/unit/operation/helper/internal-resolve.spec.d.ts +0 -1
  225. package/dist/test/unit/operation/helper/merge-operation-data.spec.d.ts +0 -1
  226. package/dist/test/unit/operation/helper/modify-dimensions.spec.d.ts +0 -1
  227. package/dist/test/unit/operation/helper/remove-event-data-from-operation-data.spec.d.ts +0 -1
  228. package/dist/test/unit/operation/helper/remove-global.spec.d.ts +0 -1
  229. package/dist/test/unit/operation/helper/resolve-event-arguments.spec.d.ts +0 -1
  230. package/dist/test/unit/operation/helper/resolve-external-property-chain.spec.d.ts +0 -1
  231. package/dist/test/unit/operation/helper/resolve-property-values.spec.d.ts +0 -1
  232. package/dist/test/unit/operation/helper/set-global.spec.d.ts +0 -1
  233. package/dist/test/unit/operation/invoke-object-method.spec.d.ts +0 -1
  234. package/dist/test/unit/operation/load-json.spec.d.ts +0 -1
  235. package/dist/test/unit/operation/log.spec.d.ts +0 -1
  236. package/dist/test/unit/operation/math.spec.d.ts +0 -1
  237. package/dist/test/unit/operation/otherwise.spec.d.ts +0 -1
  238. package/dist/test/unit/operation/remove-class.spec.d.ts +0 -1
  239. package/dist/test/unit/operation/remove-properties-from-operation-data.spec.d.ts +0 -1
  240. package/dist/test/unit/operation/reparent-element.spec.d.ts +0 -1
  241. package/dist/test/unit/operation/request-action.spec.d.ts +0 -1
  242. package/dist/test/unit/operation/resize-action.spec.d.ts +0 -1
  243. package/dist/test/unit/operation/select-element.spec.d.ts +0 -1
  244. package/dist/test/unit/operation/set-data.spec.d.ts +0 -1
  245. package/dist/test/unit/operation/set-element-attributes.spec.d.ts +0 -1
  246. package/dist/test/unit/operation/set-element-content.spec.d.ts +0 -1
  247. package/dist/test/unit/operation/set-global-data.spec.d.ts +0 -1
  248. package/dist/test/unit/operation/set-operation-data.spec.d.ts +0 -1
  249. package/dist/test/unit/operation/set-style.spec.d.ts +0 -1
  250. package/dist/test/unit/operation/start-action.spec.d.ts +0 -1
  251. package/dist/test/unit/operation/toggle-class.spec.d.ts +0 -1
  252. package/dist/test/unit/operation/toggle-element.spec.d.ts +0 -1
  253. package/dist/test/unit/operation/wait.spec.d.ts +0 -1
  254. package/dist/test/unit/operation/when.spec.d.ts +0 -1
  255. package/dist/test/unit/timelineproviders/request-animation-frame-timeline-provider.spec.d.ts +0 -1
  256. package/dist/test/unit/util/prepare-value-for-serialization.spec.d.ts +0 -1
  257. package/dist/timeline-event-names.d.ts +0 -81
  258. package/dist/timelineproviders/index.d.ts +0 -2
  259. package/dist/timelineproviders/request-animation-frame-timeline-provider.d.ts +0 -40
  260. package/dist/timelineproviders/types.d.ts +0 -21
  261. package/dist/timelineproviders/video-js-timeline-provider.d.ts +0 -39
  262. package/dist/tools/doc-tools/generate-readmes.d.ts +0 -1
  263. package/dist/tools/schema-tools/generate-operation-schemas.d.ts +0 -1
  264. package/dist/tools/schema-tools/html-tag-names.d.ts +0 -1
  265. package/dist/types.d.ts +0 -103
  266. package/dist/util/animation-interval.d.ts +0 -1
  267. package/dist/util/apply-operation.d.ts +0 -3
  268. package/dist/util/camel-case-to-dash.d.ts +0 -1
  269. package/dist/util/dash-to-camel-case.d.ts +0 -1
  270. package/dist/util/guards/is-function.d.ts +0 -1
  271. package/dist/util/guards/is-object.d.ts +0 -1
  272. package/dist/util/guards/is-promise.d.ts +0 -1
  273. package/dist/util/guards/is-string.d.ts +0 -1
  274. package/dist/util/prepare-value-for-serialization.d.ts +0 -1
@@ -1,102 +0,0 @@
1
- import { IEndableAction, ITimelineAction } from '../action/types';
2
- import { TOperation, TOperationData } from '../operation/types';
3
- import { IDuration, ILabel, ILanguageLabel, TimelineTypes } from '../types';
4
- export type ExtractDataType<P> = P extends TOperation<infer T> ? T : never;
5
- export interface IEngineInfo {
6
- systemName: string;
7
- }
8
- export type TTimelineProviderSettings = Partial<Record<TimelineTypes, ITimelineProviderSettings>>;
9
- export interface IEngineConfiguration {
10
- id: string;
11
- engine: IEngineInfo;
12
- timelineProviderSettings?: TTimelineProviderSettings;
13
- containerSelector: string;
14
- language: string;
15
- layoutTemplate: string;
16
- availableLanguages: ILabel[];
17
- initActions: IEndableActionConfiguration[];
18
- actions: IEndableActionConfiguration[];
19
- eventActions?: IEventActionConfiguration[];
20
- timelines: ITimelineConfiguration[];
21
- timelineFlow?: ITimelineFlow;
22
- labels: ILanguageLabel[];
23
- }
24
- export interface IResolvedEngineConfiguration {
25
- id: string;
26
- engine: IEngineInfo;
27
- timelineProviderSettings: TTimelineProviderSettings;
28
- containerSelector: string;
29
- language: string;
30
- layoutTemplate: string;
31
- availableLanguages: ILabel[];
32
- initActions: IEndableAction[];
33
- actions: IEndableAction[];
34
- timelines: IResolvedTimelineConfiguration[];
35
- timelineFlow?: ITimelineFlow;
36
- labels: ILanguageLabel[];
37
- }
38
- export interface IResolvedActionConfiguration {
39
- id: string;
40
- name: string;
41
- startOperations: IResolvedOperation[];
42
- }
43
- export interface IResolvedEndableActionConfiguration extends IResolvedActionConfiguration {
44
- endOperations: IResolvedOperation[];
45
- }
46
- export interface ITimelineFlow {
47
- }
48
- export interface ITimelineProviderSettings {
49
- id: string;
50
- vendor: string;
51
- systemName: string;
52
- selector?: string;
53
- poster?: string;
54
- }
55
- export interface IResolvedTimelineConfiguration {
56
- id: string;
57
- uri: string;
58
- type: TimelineTypes;
59
- duration: number;
60
- loop: boolean;
61
- selector: string;
62
- timelineActions: ITimelineAction[];
63
- }
64
- export interface ITimelineConfiguration {
65
- id: string;
66
- uri: string;
67
- type: TimelineTypes;
68
- duration: number;
69
- loop: boolean;
70
- selector: string;
71
- timelineActions: ITimelineActionConfiguration[];
72
- }
73
- export interface IOperationConfiguration {
74
- id: string;
75
- systemName: string;
76
- operationData?: TOperationData;
77
- }
78
- export interface IEventActionConfiguration extends IActionConfiguration {
79
- eventName: string;
80
- eventTopic?: string;
81
- }
82
- export interface IActionConfiguration {
83
- id: string;
84
- name: string;
85
- startOperations: IOperationConfiguration[];
86
- }
87
- export interface IEndableActionConfiguration extends IActionConfiguration {
88
- endOperations: IOperationConfiguration[];
89
- }
90
- export interface ITimelineActionConfiguration extends IEndableActionConfiguration {
91
- duration: IDuration;
92
- }
93
- export interface IEventActionConfiguration extends IActionConfiguration {
94
- eventName: string;
95
- eventTopic?: string;
96
- }
97
- export interface IResolvedOperation {
98
- id: string;
99
- systemName: string;
100
- operationData: TOperationData;
101
- instance: TOperation<any>;
102
- }
@@ -1,36 +0,0 @@
1
- /// <reference types="jquery" />
2
- /// <reference types="jquery" />
3
- import { IEndableAction } from '../action/types';
4
- import { IEventbus } from '../eventbus/types';
5
- import { TOperationData } from '../operation/types';
6
- import { IController } from './types';
7
- interface IActionInstanceInfo {
8
- start: boolean;
9
- action: IEndableAction;
10
- }
11
- export interface IEventListenerControllerOperationData {
12
- selectedElement: JQuery;
13
- eventName: string;
14
- actions: string[];
15
- actionOperationData?: TOperationData;
16
- }
17
- /**
18
- * This controller attaches to the given selected element and adds an event listener for the specified event name that
19
- * executes the given actions with the given operation data.
20
- *
21
- * By default the `start` operations of the specified actions are executed. To execute the `end` operations instead,
22
- * prefix the action name with `end:`.
23
- */
24
- export declare class EventListenerController implements IController<IEventListenerControllerOperationData> {
25
- operationData?: IEventListenerControllerOperationData;
26
- actionInstanceInfos?: IActionInstanceInfo[];
27
- name: string;
28
- constructor();
29
- init(operationData: IEventListenerControllerOperationData): void;
30
- attach(eventbus: IEventbus): void;
31
- private _isStartAction;
32
- private _eventHandler;
33
- private _executeAction;
34
- detach(_eventbus: IEventbus): void;
35
- }
36
- export {};
@@ -1,7 +0,0 @@
1
- export { EventListenerController } from './event-listener-controller';
2
- export { LabelController } from './label-controller';
3
- export { LottieController } from './lottie-controller';
4
- export { NavigationController } from './navigation-controller';
5
- export { ProgressbarController } from './progressbar-controller';
6
- export { RoutingController } from './routing-controller';
7
- export { SubtitlesController } from './subtitles-controller';
@@ -1,31 +0,0 @@
1
- /// <reference types="jquery" />
2
- /// <reference types="jquery" />
3
- import { IEventbus, TEventbusRemover } from '../eventbus/types';
4
- import { IController } from './types';
5
- export interface ILabelControllerMetadata {
6
- selectedElement: JQuery;
7
- labelId: string;
8
- attributeName?: string;
9
- }
10
- /**
11
- * This controller attaches to the given selected element and renders the text associated with the given label id in it.
12
- *
13
- * The controller also listen for the `LANGUAGE_CHANGE` event and re-renders the text with the new language after such an event.
14
- *
15
- */
16
- export declare class LabelController implements IController<ILabelControllerMetadata> {
17
- listeners: TEventbusRemover[];
18
- currentLanguage: string | null;
19
- operationData: ILabelControllerMetadata | null;
20
- labelData: Record<string, string>;
21
- name: string;
22
- requestLabelDataBound?: (labelId: string) => void;
23
- init(operationData: ILabelControllerMetadata): void;
24
- setLabelId(newLabelId: string): void;
25
- attach(eventbus: IEventbus): void;
26
- private _requestLabelData;
27
- private _setLabel;
28
- detach(_eventbus: IEventbus): void;
29
- private _handleLanguageChange;
30
- private _createTextDataLookup;
31
- }
@@ -1,47 +0,0 @@
1
- /// <reference types="jquery" />
2
- /// <reference types="jquery" />
3
- import { AnimationItem, CanvasRendererConfig, HTMLRendererConfig, SVGRendererConfig } from 'lottie-web';
4
- import { IEventbus, TEventbusRemover } from '../eventbus/types';
5
- import { IController } from './types';
6
- export interface IInnerMetadata {
7
- selectedElement: JQuery;
8
- renderer: SVGRendererConfig | CanvasRendererConfig | HTMLRendererConfig;
9
- loop: boolean;
10
- autoplay: boolean;
11
- animationData: any;
12
- json: any;
13
- labelIds: string[];
14
- viewBox: string;
15
- iefallback: any;
16
- }
17
- export interface ILottieControllerMetadata extends IInnerMetadata {
18
- url: string;
19
- }
20
- /**
21
- * This controller renders a [lottie-web](https://github.com/airbnb/lottie-web) animation inside the given selected element.
22
- *
23
- * The url may encode freeze and end positions like this: my-url/filename[freeze=10,end=21].json
24
- *
25
- */
26
- export declare class LottieController implements IController<ILottieControllerMetadata> {
27
- name: string;
28
- currentLanguage: string;
29
- labelData: Record<string, Record<string, string>>;
30
- eventbusRemovers: TEventbusRemover[];
31
- animationItem: AnimationItem | null;
32
- operationData: IInnerMetadata | null;
33
- serializedData: string | null;
34
- serializedIEData: string | null;
35
- freezePosition: number;
36
- endPosition: number;
37
- constructor();
38
- init(operationData: ILottieControllerMetadata): void;
39
- private _parseFilename;
40
- attach(eventbus: IEventbus): void;
41
- detach(_eventbus: IEventbus): void;
42
- private _destroy;
43
- private _createAnimation;
44
- private _createTextDataLookup;
45
- private _handleLanguageChange;
46
- private _isIE;
47
- }
@@ -1,4 +0,0 @@
1
- import { IEventListenerControllerOperationData } from '../event-listener-controller';
2
- import { IControllerMetadata } from './types';
3
- declare function EventListenerController(): IControllerMetadata<IEventListenerControllerOperationData>;
4
- export default EventListenerController;
@@ -1,7 +0,0 @@
1
- export * from './event-listener-controller';
2
- export * from './label-controller';
3
- export * from './lottie-controller';
4
- export * from './navigation-controller';
5
- export * from './progressbar-controller';
6
- export * from './routing-controller';
7
- export * from './subtitles-controller';
@@ -1,4 +0,0 @@
1
- import { ILabelControllerMetadata } from '../label-controller';
2
- import { IControllerMetadata } from './types';
3
- declare function LabelController(): IControllerMetadata<ILabelControllerMetadata>;
4
- export default LabelController;
@@ -1,4 +0,0 @@
1
- import { ILottieControllerMetadata } from '../lottie-controller';
2
- import { IControllerMetadata } from './types';
3
- declare function LottieController(): IControllerMetadata<ILottieControllerMetadata>;
4
- export default LottieController;
@@ -1,4 +0,0 @@
1
- import { INavigationControllerOperationData } from '../navigation-controller';
2
- import { IControllerMetadata } from './types';
3
- declare function NavigationController(): IControllerMetadata<INavigationControllerOperationData>;
4
- export default NavigationController;
@@ -1,4 +0,0 @@
1
- import { IProgressbarControllerOperationData } from '../progressbar-controller';
2
- import { IControllerMetadata } from './types';
3
- declare function ProgressbarController(): IControllerMetadata<IProgressbarControllerOperationData>;
4
- export default ProgressbarController;
@@ -1,4 +0,0 @@
1
- import { IRoutingControllerOperationData } from '../routing-controller';
2
- import { IControllerMetadata } from './types';
3
- declare function RoutingController(): IControllerMetadata<IRoutingControllerOperationData>;
4
- export default RoutingController;
@@ -1,4 +0,0 @@
1
- import { ISubtitlesControllerOperationData } from '../subtitles-controller';
2
- import { IControllerMetadata } from './types';
3
- declare function SubtitlesController(): IControllerMetadata<ISubtitlesControllerOperationData>;
4
- export default SubtitlesController;
@@ -1,6 +0,0 @@
1
- import { TPropertyMetadata } from '../../operation/metadata/types';
2
- export type IControllerMetadata<T> = {
3
- description: string;
4
- dependentProperties?: (keyof T)[];
5
- properties?: Partial<Record<keyof T, TPropertyMetadata>>;
6
- };
@@ -1,39 +0,0 @@
1
- /// <reference types="jquery" />
2
- /// <reference types="jquery" />
3
- import { IEventbus, TEventbusRemover } from '../eventbus/types';
4
- import { TOperationData } from '../operation/types';
5
- import { LabelController } from './label-controller';
6
- import { IController } from './types';
7
- export interface INavigationControllerOperationData {
8
- selectedElement: JQuery;
9
- json: any;
10
- }
11
- export declare class NavigationController implements IController<INavigationControllerOperationData> {
12
- name: string;
13
- navigation: any[];
14
- navLookup: Record<string, any>;
15
- navVidIdLookup: Record<string, any>;
16
- ctrlLookup: Record<string, LabelController>;
17
- activeNavigationPoint: any | null;
18
- labelControllers: LabelController[];
19
- eventhandlers: TEventbusRemover[];
20
- eventbus: IEventbus | null;
21
- container: JQuery | null;
22
- constructor();
23
- init(operationData: TOperationData): void;
24
- attach(eventbus: IEventbus): void;
25
- private _initHistory;
26
- private _getQueryVariable;
27
- private _handleRequestCurrentNavigation;
28
- detach(eventbus: IEventbus): void;
29
- private _pushCurrentState;
30
- private _buildHtml;
31
- private _addNavElement;
32
- private _addClickHandler;
33
- private _menuMouseupHandler;
34
- private _handleNavigateVideoUrl;
35
- private _highlightMenu;
36
- private _handleVideoComplete;
37
- private _addLabel;
38
- private _buildNavigationData;
39
- }
@@ -1,26 +0,0 @@
1
- /// <reference types="jquery" />
2
- /// <reference types="jquery" />
3
- import { IEventbus, TEventbusRemover } from '../eventbus/types';
4
- import { TOperationData } from '../operation/types';
5
- import { IController } from './types';
6
- export interface IProgressbarControllerOperationData {
7
- selectedElement: JQuery;
8
- textElement: JQuery;
9
- }
10
- /**
11
- * This controller renders a progressbar that displays the progress of the current timeline in the given selected element.
12
- *
13
- * The current progress as a percentage is rendered in the given text element.
14
- */
15
- export declare class ProgressbarController implements IController<IProgressbarControllerOperationData> {
16
- name: string;
17
- selectedElement: JQuery | null;
18
- textElement: JQuery | null;
19
- eventbusRemovers: TEventbusRemover[];
20
- duration: number;
21
- init(operationData: TOperationData): void;
22
- attach(eventbus: IEventbus): void;
23
- detach(_eventbus: IEventbus): void;
24
- private _positionUpdateHandler;
25
- private _clickHandler;
26
- }
@@ -1,27 +0,0 @@
1
- import { IEventbus, TEventbusRemover } from '../eventbus/types';
2
- import { TOperationData } from '../operation/types';
3
- import { IController } from './types';
4
- export interface IRoutingControllerOperationData {
5
- json: any;
6
- }
7
- /**
8
- * This is a work in progress, do not use this yet please....
9
- */
10
- export declare class RoutingController implements IController<IRoutingControllerOperationData> {
11
- name: string;
12
- navLookup: Record<string, any>;
13
- navVidIdLookup: Record<string, any>;
14
- navigation: any;
15
- eventhandlers: TEventbusRemover[];
16
- eventbus: IEventbus | null;
17
- constructor();
18
- init(operationData: TOperationData): void;
19
- attach(eventbus: IEventbus): void;
20
- private _handlePopstate;
21
- detach(_eventbus: IEventbus): void;
22
- private _handleBeforeRequestVideoUrl;
23
- private _getQueryVariable;
24
- private _handlePushHistoryState;
25
- private _pushState;
26
- private _buildNavigationData;
27
- }
@@ -1,27 +0,0 @@
1
- /// <reference types="jquery" />
2
- /// <reference types="jquery" />
3
- import { IEventbus, TEventbusRemover } from '../eventbus/types';
4
- import { IStrictDuration, ISubtitleCollection } from '../types';
5
- import { IController } from './types';
6
- export interface ISubtitlesControllerOperationData {
7
- selectedElement: JQuery;
8
- language: string;
9
- subtitleData: ISubtitleCollection[];
10
- }
11
- export declare class SubtitlesController implements IController<ISubtitlesControllerOperationData> {
12
- actionLookup: Record<string, any>;
13
- currentLanguage: string | null;
14
- lastFunc: Function | null;
15
- name: string;
16
- subtitleDurations: IStrictDuration[] | null;
17
- attach(eventbus: IEventbus): void;
18
- detach(_eventbus: IEventbus): void;
19
- internalDetach(detachMethods?: TEventbusRemover[]): void;
20
- languageChangeHandler(newLanguage: string): void;
21
- removeTitle(container?: JQuery): void;
22
- onTimeHandler(position: number): void;
23
- onSeekedHandler(args: any[]): void;
24
- setTitle(container: JQuery, titleLanguageLookup: Record<string, string>): void;
25
- createActionLookup(operationData: ISubtitlesControllerOperationData, container: JQuery): Record<number, () => void>;
26
- init(operationData: ISubtitlesControllerOperationData): void;
27
- }
@@ -1,8 +0,0 @@
1
- import { IEventbus } from '../eventbus/types';
2
- import { TOperationData } from '../operation/types';
3
- export interface IController<T extends TOperationData> {
4
- name: string;
5
- init(operationData: T): void;
6
- attach(eventbus: IEventbus): Promise<any> | void;
7
- detach(eventbus: IEventbus): void;
8
- }
@@ -1,7 +0,0 @@
1
- import { IEventbusListener } from '../eventbus';
2
- import { IDiagnosticsAgent } from './types';
3
- export declare class DevToolEventListener implements IEventbusListener {
4
- private agent;
5
- constructor(agent: IDiagnosticsAgent);
6
- handleEvent(eventName: string, eventTopic: string | undefined, args: any[]): void;
7
- }
@@ -1,5 +0,0 @@
1
- import { TDiagnosticType } from './types';
2
- export declare class Diagnostics {
3
- static send(_name: TDiagnosticType, _data: any): void;
4
- static active: boolean;
5
- }
@@ -1,3 +0,0 @@
1
- export { DevToolEventListener } from './devtool-event-listener';
2
- export * from './diagnostics';
3
- export * from './types';
@@ -1,28 +0,0 @@
1
- export type TDevToolsEventSubscriber = (event: TEventData) => void;
2
- export type TPlayControlEventKind = 'play' | 'stop' | 'pause' | 'seek';
3
- export declare const DEV_TOOLS_KEY = "__ELIGIUS_DEV_TOOLS__";
4
- export type TWindowWithDevtools = Window & {
5
- [DEV_TOOLS_KEY]: IDiagnosticsInfo | undefined;
6
- };
7
- export type TDevToolsMessage = {
8
- source: 'eligius-inspect-devtools';
9
- name: 'event';
10
- data: TEventData;
11
- };
12
- export type TEventData = {
13
- type: 'playcontrol';
14
- data: IPlayControlEvent;
15
- };
16
- export interface IPlayControlEvent {
17
- kind: TPlayControlEventKind;
18
- args?: any[];
19
- }
20
- export interface IDiagnosticsAgent {
21
- postMessage(name: TDiagnosticType, messageData: any): void;
22
- subscribe(subscriber: TDevToolsEventSubscriber): () => void;
23
- }
24
- export interface IDiagnosticsInfo {
25
- get agent(): IDiagnosticsAgent;
26
- }
27
- export type TDiagnosticType = 'eligius-diagnostics-factory' | 'eligius-diagnostics-engine' | 'eligius-diagnostics-event' | 'eligius-diagnostics-action' | 'eligius-diagnostics-action-error' | 'eligius-diagnostics-operation';
28
- export type TDiagnosticsMessageSource = 'eligius-inspect-agent' | 'eligius-inspect-devtools';
@@ -1,88 +0,0 @@
1
- import { IEndableAction } from './action/types';
2
- import { IResolvedEngineConfiguration } from './configuration/types';
3
- import { IEventbus } from './eventbus/types';
4
- import { LanguageManager } from './language-manager';
5
- import { ITimelineProvider } from './timelineproviders/types';
6
- import { IEligiusEngine, ITimelineProviderInfo, TimelineTypes } from './types';
7
- type ActionMethod = (IEndableAction['start'] & ActionMethodMetadata) | (IEndableAction['end'] & ActionMethodMetadata);
8
- interface ActionMethodMetadata {
9
- id: string;
10
- isStart: boolean;
11
- startPosition?: number;
12
- }
13
- /**
14
- * This is where the magic happens. The engine is responsible for starting and stopping
15
- * the given timeline provider and triggering the actions associated with the positions along the timeline.
16
- */
17
- export declare class EligiusEngine implements IEligiusEngine {
18
- private configuration;
19
- private eventbus;
20
- private timelineProviders;
21
- private languageManager;
22
- private _timeLineActionsLookup;
23
- private _eventbusRemovers;
24
- private _currentTimelineUri;
25
- private _activeTimelineProvider;
26
- private _lastPosition;
27
- constructor(configuration: IResolvedEngineConfiguration, eventbus: IEventbus, timelineProviders: Record<TimelineTypes, ITimelineProviderInfo>, languageManager: LanguageManager);
28
- /**
29
- * Initializes the engine by creating the HTML layout and the first time line
30
- * by executing its initActions.
31
- */
32
- init(): Promise<ITimelineProvider>;
33
- private _createLayoutTemplate;
34
- private _initializeTimelineProvider;
35
- private _onCompleteCallback;
36
- private _onFirstFrameCallback;
37
- private _onRestartCallback;
38
- private _cleanUp;
39
- /**
40
- * Cleans up all the necessary parts that the engine initialized.
41
- * - It ends the currently active operations and the init actions.
42
- * - It removes all its eventbus listeners, handlers and interceptors.
43
- * - It destroys all of its timeline providers
44
- * - It empties the HTML element indicated by the containerSelector configuration property.
45
- *
46
- */
47
- destroy(): Promise<void>;
48
- private _addEventListener;
49
- private _addEventbusListeners;
50
- private seekRequest;
51
- private durationRequest;
52
- private containerRequest;
53
- private _pauseRequest;
54
- private _stopRequest;
55
- private _playRequest;
56
- private _toggleplay;
57
- private _createTimelineLookup;
58
- static sortTimelines(timelines: Record<number, ActionMethod[]>[]): void;
59
- static sortActionsPerPosition(actions: ActionMethod[]): ActionMethod[];
60
- private _addTimelineActionStart;
61
- private _addTimelineActionEnd;
62
- private _initializeUriLookup;
63
- private _initializeTimelinePosition;
64
- private _executeActions;
65
- private _handleRequestEngineRoot;
66
- private _handleRequestTimelineUri;
67
- private _cleanUpTimeline;
68
- private _executeStartActions;
69
- /**
70
- * Gets all of the inactive actions whose duration falls within the given timeline position.
71
- *
72
- * @param position the given position
73
- * @param actions all of the relevant actions
74
- * @returns
75
- */
76
- private _getActionsForPosition;
77
- private _getActiveActions;
78
- private _executeRelevantActions;
79
- private _handleRequestTimelinePosition;
80
- private _handleTimelineComplete;
81
- private _getTimelineActionsForCurrentTimeline;
82
- private _requestCurrentTimeline;
83
- private _getTimelineActionsForUri;
84
- private _onTimeHandler;
85
- private _executeActionsForPosition;
86
- private _executeSeekActions;
87
- }
88
- export {};
@@ -1,8 +0,0 @@
1
- import { IResolvedEngineConfiguration, ITimelineFlow } from './configuration/types';
2
- import { IEventbus } from './eventbus/types';
3
- export declare class EligiusFlowController {
4
- private configuration;
5
- private eventbus;
6
- timelineFlow?: ITimelineFlow;
7
- constructor(configuration: IResolvedEngineConfiguration, eventbus: IEventbus);
8
- }
@@ -1,38 +0,0 @@
1
- import { IEngineConfiguration } from './configuration/types';
2
- import { IConfigurationResolver, IEligiusEngine, IEngineFactory, IEngineFactoryOptions, ISimpleResourceImporter } from './types';
3
- /**
4
- * The EngineFactory is used to create and initialize an {@link IEligiusEngine} instance.
5
- *
6
- * It prepares a resolved configuration and creates the engine based on the class defined in the configuration.
7
- *
8
- * @example Loading a configuration and creating an IEligiusEngine instance
9
- * ```ts
10
- * import { IEngineConfiguration, EngineFactory, WebpackResourceImporter } from 'eligius';
11
- * import * as engineConfig from './my-eligius-config.json';
12
- *
13
- * const factory = new EngineFactory(new WebpackResourceImporter(), window);
14
- *
15
- * const engine = factory.createEngine((engineConfig as unknown) as IEngineConfiguration);
16
- *
17
- * engine.init().then(()=> {console.log('Eligius engine ready for business');});
18
- * ```
19
- */
20
- export declare class EngineFactory implements IEngineFactory {
21
- private _actionsLookup;
22
- private _eventbus;
23
- private _eventRemovers;
24
- private _importer;
25
- private _resizeTimeout;
26
- constructor(importer: ISimpleResourceImporter, windowRef: Window, options?: IEngineFactoryOptions);
27
- private _handleSpacePress;
28
- private _initializeDevtools;
29
- destroy(): void;
30
- private _resizeHandler;
31
- private _importSystemEntryWithEventbusDependency;
32
- private _importSystemEntry;
33
- private _requestInstanceHandler;
34
- private _requestFunctionHandler;
35
- private _requestActionHandler;
36
- createEngine(configuration: IEngineConfiguration, resolver?: IConfigurationResolver): IEligiusEngine;
37
- private _createTimelineProviders;
38
- }
@@ -1,11 +0,0 @@
1
- import { IAction } from '../action/types';
2
- import { IEventbusListener } from './types';
3
- /**
4
- * The `IEventbusListener` first registers a number of actions that are then
5
- * executed when the specified event is broadcast.
6
- */
7
- export declare class ActionRegistryEventbusListener implements IEventbusListener {
8
- private _actionRegistry;
9
- registerAction(action: IAction, eventName: string, eventTopic?: string): void;
10
- handleEvent(eventName: string, eventTopic: string | undefined, args: any[]): void;
11
- }
@@ -1,18 +0,0 @@
1
- import { IEventbus, IEventbusInterceptor, IEventbusListener, TEventbusRemover, TEventHandler } from './types';
2
- export declare class Eventbus implements IEventbus {
3
- private eventHandlers;
4
- private eventInterceptors;
5
- private eventListeners;
6
- constructor();
7
- clear(): void;
8
- _getEventInterceptors(eventName: string, eventTopic?: string): IEventbusInterceptor[];
9
- _getEventHandlers(eventName: string, eventTopic?: string): TEventHandler[];
10
- on(eventName: string, eventHandler: TEventHandler, eventTopic?: string): TEventbusRemover;
11
- once(eventName: string, eventHandler: TEventHandler, eventTopic?: string): TEventbusRemover;
12
- off(eventName: string, eventHandler: TEventHandler, eventTopic?: string): void;
13
- broadcast(eventName: string, args: any[]): void;
14
- broadcastForTopic(eventName: string, eventTopic: string, args: any[]): void;
15
- registerEventlistener(eventbusListener: IEventbusListener): TEventbusRemover;
16
- registerInterceptor(eventName: string, interceptor: IEventbusInterceptor, eventTopic?: string): TEventbusRemover;
17
- _callHandlers(eventName: string, eventTopic: string | undefined, args?: any): void;
18
- }
@@ -1,4 +0,0 @@
1
- export { ActionRegistryEventbusListener } from './actionregistry-eventbus-listener';
2
- export { Eventbus } from './eventbus';
3
- export { RequestVideoUriInterceptor } from './request-video-uri-interceptor';
4
- export * from './types';
@@ -1,6 +0,0 @@
1
- import { IEventbus, IEventbusInterceptor } from './types';
2
- export declare class RequestVideoUriInterceptor implements IEventbusInterceptor {
3
- private eventbus;
4
- constructor(eventbus: IEventbus);
5
- intercept(args: any[]): any[];
6
- }