eligius 1.1.4 → 1.1.6
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 +8 -7
- package/dist/chunk-CTAAG5j7.js +13 -0
- package/dist/index.d.ts +2984 -22
- package/dist/index.js +5857 -7
- package/dist/index.js.map +1 -0
- package/package.json +95 -91
- package/dist/action/action.d.ts +0 -17
- package/dist/action/endable-action.d.ts +0 -9
- package/dist/action/index.d.ts +0 -3
- package/dist/action/timeline-action.d.ts +0 -14
- package/dist/action/types.d.ts +0 -17
- package/dist/build/generate-importer-source-code.d.ts +0 -15
- package/dist/build/index.d.ts +0 -1
- package/dist/configuration/api/action-creator-factory.d.ts +0 -31
- package/dist/configuration/api/action-editor.d.ts +0 -44
- package/dist/configuration/api/configuration-factory.d.ts +0 -135
- package/dist/configuration/api/index.d.ts +0 -7
- package/dist/configuration/api/label-editor.d.ts +0 -11
- package/dist/configuration/api/name-providers.d.ts +0 -13
- package/dist/configuration/api/subtitle-converter.d.ts +0 -11
- package/dist/configuration/api/subtitle-editor.d.ts +0 -24
- package/dist/configuration/api/timeline-provider-settings-editor.d.ts +0 -22
- package/dist/configuration/configuration-resolver.d.ts +0 -18
- package/dist/configuration/types.d.ts +0 -102
- package/dist/controllers/event-listener-controller.d.ts +0 -36
- package/dist/controllers/index.d.ts +0 -7
- package/dist/controllers/label-controller.d.ts +0 -31
- package/dist/controllers/lottie-controller.d.ts +0 -47
- package/dist/controllers/metadata/event-listener-controller.d.ts +0 -4
- package/dist/controllers/metadata/index.d.ts +0 -7
- package/dist/controllers/metadata/label-controller.d.ts +0 -4
- package/dist/controllers/metadata/lottie-controller.d.ts +0 -4
- package/dist/controllers/metadata/navigation-controller.d.ts +0 -4
- package/dist/controllers/metadata/progressbar-controller.d.ts +0 -4
- package/dist/controllers/metadata/routing-controller.d.ts +0 -4
- package/dist/controllers/metadata/subtitles-controller.d.ts +0 -4
- package/dist/controllers/metadata/types.d.ts +0 -6
- package/dist/controllers/navigation-controller.d.ts +0 -39
- package/dist/controllers/progressbar-controller.d.ts +0 -26
- package/dist/controllers/routing-controller.d.ts +0 -27
- package/dist/controllers/subtitles-controller.d.ts +0 -27
- package/dist/controllers/types.d.ts +0 -8
- package/dist/diagnostics/devtool-event-listener.d.ts +0 -7
- package/dist/diagnostics/diagnostics.d.ts +0 -5
- package/dist/diagnostics/index.d.ts +0 -3
- package/dist/diagnostics/types.d.ts +0 -28
- package/dist/eligius-engine.d.ts +0 -88
- package/dist/eligius-flow-controller.d.ts +0 -8
- package/dist/engine-factory.d.ts +0 -38
- package/dist/eventbus/actionregistry-eventbus-listener.d.ts +0 -11
- package/dist/eventbus/eventbus.d.ts +0 -18
- package/dist/eventbus/index.d.ts +0 -4
- package/dist/eventbus/request-video-uri-interceptor.d.ts +0 -6
- package/dist/eventbus/types.d.ts +0 -18
- package/dist/importer/eligius-resource-importer.d.ts +0 -9
- package/dist/importer/index.d.ts +0 -1
- package/dist/index.cjs +0 -6417
- package/dist/index.cjs.map +0 -7
- package/dist/index.cjs.min.js +0 -8
- package/dist/index.cjs.min.js.map +0 -7
- package/dist/index.esm.js +0 -8
- package/dist/index.esm.js.map +0 -7
- package/dist/language-manager.d.ts +0 -24
- package/dist/operation/add-class.d.ts +0 -14
- package/dist/operation/add-controller-to-element.d.ts +0 -15
- package/dist/operation/add-globals-to-operation.d.ts +0 -12
- package/dist/operation/animate-with-class.d.ts +0 -17
- package/dist/operation/animate.d.ts +0 -17
- package/dist/operation/broadcast-event.d.ts +0 -13
- package/dist/operation/calc.d.ts +0 -14
- package/dist/operation/clear-element.d.ts +0 -11
- package/dist/operation/clear-operation-data.d.ts +0 -10
- package/dist/operation/create-element.d.ts +0 -18
- package/dist/operation/custom-function.d.ts +0 -12
- package/dist/operation/end-action.d.ts +0 -17
- package/dist/operation/end-for-each.d.ts +0 -8
- package/dist/operation/end-when.d.ts +0 -8
- package/dist/operation/extend-controller.d.ts +0 -10
- package/dist/operation/for-each.d.ts +0 -19
- package/dist/operation/get-attributes-from-element.d.ts +0 -21
- package/dist/operation/get-controller-from-element.d.ts +0 -16
- package/dist/operation/get-controller-instance.d.ts +0 -17
- package/dist/operation/get-element-dimensions.d.ts +0 -30
- package/dist/operation/get-import.d.ts +0 -13
- package/dist/operation/get-query-params.d.ts +0 -28
- package/dist/operation/helper/attach-controller-to-element.d.ts +0 -3
- package/dist/operation/helper/deep-copy.d.ts +0 -1
- package/dist/operation/helper/find-matching-operation-index.d.ts +0 -35
- package/dist/operation/helper/get-element-data.d.ts +0 -7
- package/dist/operation/helper/get-property-chain-value.d.ts +0 -24
- package/dist/operation/helper/globals.d.ts +0 -4
- package/dist/operation/helper/internal-resolve.d.ts +0 -2
- package/dist/operation/helper/merge-operation-data.d.ts +0 -2
- package/dist/operation/helper/modify-dimensions.d.ts +0 -20
- package/dist/operation/helper/remove-event-data-from-operation-data.d.ts +0 -2
- package/dist/operation/helper/remove-global.d.ts +0 -1
- package/dist/operation/helper/resolve-event-arguments.d.ts +0 -2
- package/dist/operation/helper/resolve-external-property-chain.d.ts +0 -14
- package/dist/operation/helper/resolve-property-chain.d.ts +0 -23
- package/dist/operation/helper/resolve-property-values.d.ts +0 -11
- package/dist/operation/helper/set-global.d.ts +0 -1
- package/dist/operation/index.d.ts +0 -46
- package/dist/operation/invoke-object-method.d.ts +0 -28
- package/dist/operation/load-json.d.ts +0 -28
- package/dist/operation/log.d.ts +0 -8
- package/dist/operation/math.d.ts +0 -12
- package/dist/operation/metadata/add-class.d.ts +0 -4
- package/dist/operation/metadata/add-controller-to-element.d.ts +0 -4
- package/dist/operation/metadata/add-globals-to-operation.d.ts +0 -4
- package/dist/operation/metadata/animate-with-class.d.ts +0 -4
- package/dist/operation/metadata/animate.d.ts +0 -4
- package/dist/operation/metadata/broadcast-event.d.ts +0 -4
- package/dist/operation/metadata/calc.d.ts +0 -4
- package/dist/operation/metadata/clear-element.d.ts +0 -4
- package/dist/operation/metadata/clear-operation-data.d.ts +0 -4
- package/dist/operation/metadata/create-element.d.ts +0 -4
- package/dist/operation/metadata/custom-function.d.ts +0 -4
- package/dist/operation/metadata/end-action.d.ts +0 -4
- package/dist/operation/metadata/end-for-each.d.ts +0 -3
- package/dist/operation/metadata/end-when.d.ts +0 -3
- package/dist/operation/metadata/extend-controller.d.ts +0 -4
- package/dist/operation/metadata/for-each.d.ts +0 -4
- package/dist/operation/metadata/get-attributes-from-element.d.ts +0 -4
- package/dist/operation/metadata/get-controller-from-element.d.ts +0 -4
- package/dist/operation/metadata/get-controller-instance.d.ts +0 -4
- package/dist/operation/metadata/get-element-dimensions.d.ts +0 -4
- package/dist/operation/metadata/get-import.d.ts +0 -4
- package/dist/operation/metadata/get-query-params.d.ts +0 -4
- package/dist/operation/metadata/index.d.ts +0 -45
- package/dist/operation/metadata/invoke-object-method.d.ts +0 -4
- package/dist/operation/metadata/load-json.d.ts +0 -4
- package/dist/operation/metadata/log.d.ts +0 -3
- package/dist/operation/metadata/math.d.ts +0 -4
- package/dist/operation/metadata/otherwise.d.ts +0 -3
- package/dist/operation/metadata/remove-class.d.ts +0 -4
- package/dist/operation/metadata/remove-controller-from-element.d.ts +0 -4
- package/dist/operation/metadata/remove-element.d.ts +0 -4
- package/dist/operation/metadata/remove-properties-from-operation-data.d.ts +0 -4
- package/dist/operation/metadata/reparent-element.d.ts +0 -4
- package/dist/operation/metadata/request-action.d.ts +0 -4
- package/dist/operation/metadata/resize-action.d.ts +0 -4
- package/dist/operation/metadata/select-element.d.ts +0 -4
- package/dist/operation/metadata/set-data.d.ts +0 -4
- package/dist/operation/metadata/set-element-attributes.d.ts +0 -4
- package/dist/operation/metadata/set-element-content.d.ts +0 -4
- package/dist/operation/metadata/set-global-data.d.ts +0 -4
- package/dist/operation/metadata/set-operation-data.d.ts +0 -4
- package/dist/operation/metadata/set-style.d.ts +0 -4
- package/dist/operation/metadata/start-action.d.ts +0 -4
- package/dist/operation/metadata/toggle-class.d.ts +0 -4
- package/dist/operation/metadata/toggle-element.d.ts +0 -4
- package/dist/operation/metadata/types.d.ts +0 -29
- package/dist/operation/metadata/wait.d.ts +0 -4
- package/dist/operation/metadata/when.d.ts +0 -4
- package/dist/operation/otherwise.d.ts +0 -9
- package/dist/operation/remove-class.d.ts +0 -14
- package/dist/operation/remove-controller-from-element.d.ts +0 -14
- package/dist/operation/remove-element.d.ts +0 -13
- package/dist/operation/remove-properties-from-operation-data.d.ts +0 -12
- package/dist/operation/reparent-element.d.ts +0 -15
- package/dist/operation/request-action.d.ts +0 -14
- package/dist/operation/resize-action.d.ts +0 -12
- package/dist/operation/select-element.d.ts +0 -19
- package/dist/operation/set-data.d.ts +0 -21
- package/dist/operation/set-element-attributes.d.ts +0 -14
- package/dist/operation/set-element-content.d.ts +0 -21
- package/dist/operation/set-global-data.d.ts +0 -11
- package/dist/operation/set-operation-data.d.ts +0 -13
- package/dist/operation/set-style.d.ts +0 -15
- package/dist/operation/start-action.d.ts +0 -17
- package/dist/operation/toggle-class.d.ts +0 -23
- package/dist/operation/toggle-element.d.ts +0 -19
- package/dist/operation/types.d.ts +0 -55
- package/dist/operation/wait.d.ts +0 -14
- package/dist/operation/when.d.ts +0 -21
- package/dist/test/integration/create-language-selector.spec.d.ts +0 -1
- package/dist/test/integration/end-in-correct-order.spec.d.ts +0 -1
- package/dist/test/integration/for-each-loop.spec.d.ts +0 -1
- package/dist/test/integration/re-use-image-action.spec.d.ts +0 -1
- package/dist/test/integration/when-construction.spec.d.ts +0 -1
- package/dist/test/unit/action/action.spec.d.ts +0 -1
- package/dist/test/unit/build/generate-importer-source-code.spec.d.ts +0 -1
- package/dist/test/unit/chrono-trigger-engine.spec.d.ts +0 -1
- package/dist/test/unit/configuration/api/action-editor.spec.d.ts +0 -1
- package/dist/test/unit/configuration/api/configuration-factory.spec.d.ts +0 -1
- package/dist/test/unit/configuration/api/endable-action-editor.spec.d.ts +0 -1
- package/dist/test/unit/configuration/api/name-providers.spec.d.ts +0 -1
- package/dist/test/unit/configuration/api/subtitle-editor.spec.d.ts +0 -1
- package/dist/test/unit/configuration/api/timeline-action-editor.spec.d.ts +0 -1
- package/dist/test/unit/configuration/api/timeline-provider-settings-editor.spec.d.ts +0 -1
- package/dist/test/unit/configuration/configuration-resolver.spec.d.ts +0 -1
- package/dist/test/unit/controllers/EventListenerController.spec.d.ts +0 -1
- package/dist/test/unit/controllers/LabelController.spec.d.ts +0 -1
- package/dist/test/unit/engine-factory.spec.d.ts +0 -1
- package/dist/test/unit/eventbus/eventbus.spec.d.ts +0 -1
- package/dist/test/unit/importer/eligius-resource-importer.spec.d.ts +0 -1
- package/dist/test/unit/language-manager.spec.d.ts +0 -1
- package/dist/test/unit/operation/_operation-metadata.spec.d.ts +0 -1
- package/dist/test/unit/operation/add-class.spec.d.ts +0 -1
- package/dist/test/unit/operation/add-controller-to-element.spec.d.ts +0 -1
- package/dist/test/unit/operation/add-globals-to-operation.spec.d.ts +0 -1
- package/dist/test/unit/operation/animate-with-class.spec.d.ts +0 -1
- package/dist/test/unit/operation/animate.spec.d.ts +0 -1
- package/dist/test/unit/operation/broadcast-event.spec.d.ts +0 -1
- package/dist/test/unit/operation/calc.spec.d.ts +0 -1
- package/dist/test/unit/operation/clear-element.spec.d.ts +0 -1
- package/dist/test/unit/operation/clear-operation-data.spec.d.ts +0 -1
- package/dist/test/unit/operation/create-element.spec.d.ts +0 -1
- package/dist/test/unit/operation/custom-function.spec.d.ts +0 -1
- package/dist/test/unit/operation/end-action.spec.d.ts +0 -1
- package/dist/test/unit/operation/end-for-each.spec.d.ts +0 -1
- package/dist/test/unit/operation/end-when.spec.d.ts +0 -1
- package/dist/test/unit/operation/extend-controller.spec.d.ts +0 -1
- package/dist/test/unit/operation/for-each.spec.d.ts +0 -1
- package/dist/test/unit/operation/get-attributes-from-element.spec.d.ts +0 -1
- package/dist/test/unit/operation/get-controller-from-element.spec.d.ts +0 -1
- package/dist/test/unit/operation/get-controller-instance.spec.d.ts +0 -1
- package/dist/test/unit/operation/get-element-dimensions.spec.d.ts +0 -1
- package/dist/test/unit/operation/get-query-params.spec.d.ts +0 -1
- package/dist/test/unit/operation/helper/attach-controller-to-element.spec.d.ts +0 -1
- package/dist/test/unit/operation/helper/get-element-data.spec.d.ts +0 -1
- package/dist/test/unit/operation/helper/get-property-chain-value.spec.d.ts +0 -1
- package/dist/test/unit/operation/helper/globals.spec.d.ts +0 -1
- package/dist/test/unit/operation/helper/internal-resolve.spec.d.ts +0 -1
- package/dist/test/unit/operation/helper/merge-operation-data.spec.d.ts +0 -1
- package/dist/test/unit/operation/helper/modify-dimensions.spec.d.ts +0 -1
- package/dist/test/unit/operation/helper/remove-event-data-from-operation-data.spec.d.ts +0 -1
- package/dist/test/unit/operation/helper/remove-global.spec.d.ts +0 -1
- package/dist/test/unit/operation/helper/resolve-event-arguments.spec.d.ts +0 -1
- package/dist/test/unit/operation/helper/resolve-external-property-chain.spec.d.ts +0 -1
- package/dist/test/unit/operation/helper/resolve-property-values.spec.d.ts +0 -1
- package/dist/test/unit/operation/helper/set-global.spec.d.ts +0 -1
- package/dist/test/unit/operation/invoke-object-method.spec.d.ts +0 -1
- package/dist/test/unit/operation/load-json.spec.d.ts +0 -1
- package/dist/test/unit/operation/log.spec.d.ts +0 -1
- package/dist/test/unit/operation/math.spec.d.ts +0 -1
- package/dist/test/unit/operation/otherwise.spec.d.ts +0 -1
- package/dist/test/unit/operation/remove-class.spec.d.ts +0 -1
- package/dist/test/unit/operation/remove-properties-from-operation-data.spec.d.ts +0 -1
- package/dist/test/unit/operation/reparent-element.spec.d.ts +0 -1
- package/dist/test/unit/operation/request-action.spec.d.ts +0 -1
- package/dist/test/unit/operation/resize-action.spec.d.ts +0 -1
- package/dist/test/unit/operation/select-element.spec.d.ts +0 -1
- package/dist/test/unit/operation/set-data.spec.d.ts +0 -1
- package/dist/test/unit/operation/set-element-attributes.spec.d.ts +0 -1
- package/dist/test/unit/operation/set-element-content.spec.d.ts +0 -1
- package/dist/test/unit/operation/set-global-data.spec.d.ts +0 -1
- package/dist/test/unit/operation/set-operation-data.spec.d.ts +0 -1
- package/dist/test/unit/operation/set-style.spec.d.ts +0 -1
- package/dist/test/unit/operation/start-action.spec.d.ts +0 -1
- package/dist/test/unit/operation/toggle-class.spec.d.ts +0 -1
- package/dist/test/unit/operation/toggle-element.spec.d.ts +0 -1
- package/dist/test/unit/operation/wait.spec.d.ts +0 -1
- package/dist/test/unit/operation/when.spec.d.ts +0 -1
- package/dist/test/unit/timelineproviders/request-animation-frame-timeline-provider.spec.d.ts +0 -1
- package/dist/test/unit/util/prepare-value-for-serialization.spec.d.ts +0 -1
- package/dist/timeline-event-names.d.ts +0 -81
- package/dist/timelineproviders/index.d.ts +0 -2
- package/dist/timelineproviders/request-animation-frame-timeline-provider.d.ts +0 -40
- package/dist/timelineproviders/types.d.ts +0 -21
- package/dist/timelineproviders/video-js-timeline-provider.d.ts +0 -39
- package/dist/tools/doc-tools/generate-readmes.d.ts +0 -1
- package/dist/tools/schema-tools/generate-operation-schemas.d.ts +0 -1
- package/dist/tools/schema-tools/html-tag-names.d.ts +0 -1
- package/dist/types.d.ts +0 -103
- package/dist/util/animation-interval.d.ts +0 -1
- package/dist/util/apply-operation.d.ts +0 -3
- package/dist/util/camel-case-to-dash.d.ts +0 -1
- package/dist/util/dash-to-camel-case.d.ts +0 -1
- package/dist/util/guards/is-function.d.ts +0 -1
- package/dist/util/guards/is-object.d.ts +0 -1
- package/dist/util/guards/is-promise.d.ts +0 -1
- package/dist/util/guards/is-string.d.ts +0 -1
- package/dist/util/prepare-value-for-serialization.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,91 +1,95 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "eligius",
|
|
3
|
-
"author": "Roland Zwaga <rbzwaga@gmail.com>",
|
|
4
|
-
"version": "1.1.
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"homepage": "https://rolandzwaga.github.io/eligius/",
|
|
7
|
-
"bugs": {
|
|
8
|
-
"url": "https://github.com/rolandzwaga/eligius/issues?q=is%3Aissue+is%3Aopen+label%3ABug"
|
|
9
|
-
},
|
|
10
|
-
"
|
|
11
|
-
"module": "dist/index.
|
|
12
|
-
"exports": {
|
|
13
|
-
".":
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@types/
|
|
54
|
-
"@types/
|
|
55
|
-
"@types/
|
|
56
|
-
"@types/
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "eligius",
|
|
3
|
+
"author": "Roland Zwaga <rbzwaga@gmail.com>",
|
|
4
|
+
"version": "1.1.6",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://rolandzwaga.github.io/eligius/",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/rolandzwaga/eligius/issues?q=is%3Aissue+is%3Aopen+label%3ABug"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"module": "./dist/index.js",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./dist/index.js",
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"typesVersions": {
|
|
17
|
+
"*": {
|
|
18
|
+
"*": [
|
|
19
|
+
"dist/*"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"typings": "dist/index.d.ts",
|
|
24
|
+
"files": [
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=20"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"typecheck": "tsc --pretty --noEmit",
|
|
32
|
+
"test": "vitest --config src/vitest.config.ts",
|
|
33
|
+
"test:debug": "npx vitest run --config src/vitest.config.ts --coverage --reporter=verbose --no-truncate 2>&1 | tee test-output.log",
|
|
34
|
+
"test:ci": "vitest run --config src/vitest.config.ts --reporter=verbose",
|
|
35
|
+
"coverage": "vitest --config src/vitest.config.ts --coverage",
|
|
36
|
+
"prepublish": "npm run build",
|
|
37
|
+
"generate-readmes": "tsx ./src/tools/doc-tools/generate-readmes",
|
|
38
|
+
"generate-schema": "tsx ./src/tools/schema-tools/generate-operation-schemas",
|
|
39
|
+
"typedoc": "typedoc --options typedoc-metadata.json & typedoc --options typedoc.json",
|
|
40
|
+
"docs": "npm run generate-schema && npm run typedoc && node copy-schema && npm run generate-readmes",
|
|
41
|
+
"opers-metadata": "tsx src/tools/code-generator/metadata-generator.ts",
|
|
42
|
+
"ctrls-metadata": "tsx src/tools/code-generator/ctrls-metadata-generator.ts",
|
|
43
|
+
"metadata": "npm run opers-metadata && npm run ctrls-metadata",
|
|
44
|
+
"ts-types": " tsc --noEmit false --emitDeclarationOnly --outDir dist",
|
|
45
|
+
"build": "rimraf dist && npm run metadata && tsdown",
|
|
46
|
+
"codemod": "tsx src/tools/code-generator/uvu2vitest-codemod.ts",
|
|
47
|
+
"format": "biome format --write .",
|
|
48
|
+
"fix": "biome check --write ."
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@biomejs/biome": "2.2.6",
|
|
52
|
+
"@ts-morph/bootstrap": "0.28.1",
|
|
53
|
+
"@types/chai": "5.2.2",
|
|
54
|
+
"@types/fs-extra": "11.0.4",
|
|
55
|
+
"@types/jquery": "3.5.33",
|
|
56
|
+
"@types/jsdom": "27.0.0",
|
|
57
|
+
"@types/node": "24.7.2",
|
|
58
|
+
"@types/sinon": "17.0.4",
|
|
59
|
+
"@types/uuid": "11.0.0",
|
|
60
|
+
"@vitest/coverage-istanbul": "3.2.4",
|
|
61
|
+
"canvas": "3.2.0",
|
|
62
|
+
"chai": "6.2.0",
|
|
63
|
+
"fs-extra": "11.3.2",
|
|
64
|
+
"jquery": "3.7.1",
|
|
65
|
+
"jsdom": "27.0.0",
|
|
66
|
+
"jsdom-global": "3.0.2",
|
|
67
|
+
"lottie-web": "5.13.0",
|
|
68
|
+
"rimraf": "6.0.1",
|
|
69
|
+
"sinon": "21.0.0",
|
|
70
|
+
"ts-morph": "27.0.2",
|
|
71
|
+
"tsconfig-paths": "4.2.0",
|
|
72
|
+
"tsdown": "0.15.7",
|
|
73
|
+
"tslib": "2.8.1",
|
|
74
|
+
"tsx": "4.20.6",
|
|
75
|
+
"typedoc": "0.28.14",
|
|
76
|
+
"typedoc-plugin-missing-exports": "4.1.2",
|
|
77
|
+
"typescript": "5.9.3",
|
|
78
|
+
"uvu": "0.5.6",
|
|
79
|
+
"video.js": "8.23.4",
|
|
80
|
+
"vitest": "3.2.4",
|
|
81
|
+
"watchlist": "0.3.1"
|
|
82
|
+
},
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"jquery": "3.7.1",
|
|
85
|
+
"lottie-web": "5.13.0",
|
|
86
|
+
"video.js": "8.21.0"
|
|
87
|
+
},
|
|
88
|
+
"dependencies": {
|
|
89
|
+
"hotkeys-js": "3.13.15",
|
|
90
|
+
"ts-is-present": "1.2.2",
|
|
91
|
+
"uuid": "13.0.0"
|
|
92
|
+
},
|
|
93
|
+
"main": "./dist/index.js",
|
|
94
|
+
"types": "./dist/index.d.ts"
|
|
95
|
+
}
|
package/dist/action/action.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IResolvedOperation } from '../configuration/types';
|
|
2
|
-
import { IEventbus } from '../eventbus/types';
|
|
3
|
-
import { IOperationContext, TOperationData } from '../operation/types';
|
|
4
|
-
import { IAction } from './types';
|
|
5
|
-
export declare class Action implements IAction {
|
|
6
|
-
name: string;
|
|
7
|
-
startOperations: IResolvedOperation[];
|
|
8
|
-
protected eventbus: IEventbus;
|
|
9
|
-
id: string;
|
|
10
|
-
protected _contextStack: IOperationContext[];
|
|
11
|
-
constructor(name: string, startOperations: IResolvedOperation[], eventbus: IEventbus);
|
|
12
|
-
start(initOperationData?: TOperationData): Promise<TOperationData>;
|
|
13
|
-
protected _initializeContextStack(): void;
|
|
14
|
-
private _pushContext;
|
|
15
|
-
private _popContext;
|
|
16
|
-
executeOperation(operations: IResolvedOperation[], operationIndex: number, resolve: (value?: any | PromiseLike<any>) => void, reject: (reason?: any) => void, previousOperationData?: TOperationData | undefined): void;
|
|
17
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IResolvedOperation } from '../configuration/types';
|
|
2
|
-
import { IEventbus } from '../eventbus/types';
|
|
3
|
-
import { TOperationData } from '../operation/types';
|
|
4
|
-
import { Action } from './action';
|
|
5
|
-
export declare class EndableAction extends Action {
|
|
6
|
-
endOperations: IResolvedOperation[];
|
|
7
|
-
constructor(name: string, startOperations: IResolvedOperation[], endOperations: IResolvedOperation[], eventBus: IEventbus);
|
|
8
|
-
end(initOperationData?: TOperationData): Promise<TOperationData>;
|
|
9
|
-
}
|
package/dist/action/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IResolvedOperation } from '../configuration/types';
|
|
2
|
-
import { IEventbus } from '../eventbus/types';
|
|
3
|
-
import { TOperationData } from '../operation/types';
|
|
4
|
-
import { IStrictDuration } from '../types';
|
|
5
|
-
import { EndableAction } from './endable-action';
|
|
6
|
-
import { ITimelineAction } from './types';
|
|
7
|
-
export declare class TimelineAction extends EndableAction implements ITimelineAction {
|
|
8
|
-
duration: IStrictDuration;
|
|
9
|
-
private _active;
|
|
10
|
-
get active(): boolean;
|
|
11
|
-
constructor(name: string, startOperations: IResolvedOperation[], endOperations: IResolvedOperation[], duration: IStrictDuration, eventBus: IEventbus);
|
|
12
|
-
start(initOperationData?: TOperationData): Promise<TOperationData>;
|
|
13
|
-
end(initOperationData: TOperationData): Promise<TOperationData>;
|
|
14
|
-
}
|
package/dist/action/types.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IResolvedOperation } from '../configuration/types';
|
|
2
|
-
import { TOperationData } from '../operation/types';
|
|
3
|
-
import { IStrictDuration } from '../types';
|
|
4
|
-
export interface IAction {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
startOperations: IResolvedOperation[];
|
|
8
|
-
start(initOperationData?: TOperationData): Promise<TOperationData>;
|
|
9
|
-
}
|
|
10
|
-
export interface IEndableAction extends IAction {
|
|
11
|
-
endOperations: IResolvedOperation[];
|
|
12
|
-
end(initOperationData?: TOperationData): Promise<TOperationData>;
|
|
13
|
-
}
|
|
14
|
-
export interface ITimelineAction extends IEndableAction {
|
|
15
|
-
get active(): boolean;
|
|
16
|
-
duration: IStrictDuration;
|
|
17
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IEngineConfiguration } from '../configuration/types';
|
|
2
|
-
export interface IAssetInfo {
|
|
3
|
-
path: string;
|
|
4
|
-
extension: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* This function takes an Eligius engine configuration, a root path for the configuration file and an arbitrary list of asset info.
|
|
8
|
-
* The asset info determines a number of subdirectories in the root path that contain the different assets used by the presentation.
|
|
9
|
-
* I.e. html, json, etc.
|
|
10
|
-
*
|
|
11
|
-
* @param config
|
|
12
|
-
* @param configPath
|
|
13
|
-
* @param assetInfo
|
|
14
|
-
*/
|
|
15
|
-
export declare function generateImporterSourceCode(config: IEngineConfiguration, configPath: string, assetInfo: IAssetInfo[]): string;
|
package/dist/build/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { generateImporterSourceCode } from './generate-importer-source-code';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { TOperation, TOperationData } from '../../operation/types';
|
|
2
|
-
import { ExtractDataType, IActionConfiguration, IEndableActionConfiguration, ITimelineActionConfiguration } from '../types';
|
|
3
|
-
import { ConfigurationFactory } from './configuration-factory';
|
|
4
|
-
export declare class ActionCreatorFactory {
|
|
5
|
-
private readonly configurationfactory;
|
|
6
|
-
constructor(configurationfactory: ConfigurationFactory);
|
|
7
|
-
createAction(name: string): EndableActionCreator;
|
|
8
|
-
createInitAction(name: string): EndableActionCreator;
|
|
9
|
-
createEventAction(name: string): ActionCreator;
|
|
10
|
-
createTimelineAction(uri: string, name: string): TimelineActionCreator;
|
|
11
|
-
end(): ConfigurationFactory;
|
|
12
|
-
}
|
|
13
|
-
export declare class ActionCreator<T extends IActionConfiguration = IActionConfiguration> {
|
|
14
|
-
private readonly factory;
|
|
15
|
-
actionConfig: T;
|
|
16
|
-
constructor(name: string | undefined, factory: ActionCreatorFactory);
|
|
17
|
-
getId(): string;
|
|
18
|
-
setName(name: string): this;
|
|
19
|
-
getConfiguration(callBack: (config: T) => T): this;
|
|
20
|
-
addStartOperationByType<T extends TOperation<any>>(operationClass: T, operationData: Partial<ExtractDataType<T>>): this;
|
|
21
|
-
addStartOperation(systemName: string, operationData: TOperationData): this;
|
|
22
|
-
next(): ActionCreatorFactory;
|
|
23
|
-
}
|
|
24
|
-
export declare class EndableActionCreator<T extends IEndableActionConfiguration = IEndableActionConfiguration> extends ActionCreator<T> {
|
|
25
|
-
constructor(name: string | undefined, factory: ActionCreatorFactory);
|
|
26
|
-
addEndOperationByType<T extends TOperation<any>>(operationClass: T, operationData: Partial<ExtractDataType<T>>): this;
|
|
27
|
-
addEndOperation(systemName: string, operationData: TOperationData): this;
|
|
28
|
-
}
|
|
29
|
-
export declare class TimelineActionCreator extends EndableActionCreator<ITimelineActionConfiguration> {
|
|
30
|
-
addDuration(start: number, end?: number): this;
|
|
31
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as operations from '../../operation';
|
|
2
|
-
import { TOperation, TOperationData } from '../../operation/types';
|
|
3
|
-
import { ExtractDataType, IActionConfiguration, IEndableActionConfiguration, IOperationConfiguration, ITimelineActionConfiguration } from '../types';
|
|
4
|
-
import { ConfigurationFactory } from './configuration-factory';
|
|
5
|
-
type TOperationName = keyof typeof operations;
|
|
6
|
-
export declare class ActionEditor<T extends IActionConfiguration = IActionConfiguration> {
|
|
7
|
-
protected actionConfig: T;
|
|
8
|
-
protected readonly configurationFactory: ConfigurationFactory;
|
|
9
|
-
constructor(actionConfig: T, configurationFactory: ConfigurationFactory);
|
|
10
|
-
updateConfiguration(): void;
|
|
11
|
-
getConfiguration(callBack: (config: T) => T | undefined): this;
|
|
12
|
-
setName(name: string): this;
|
|
13
|
-
getName(): string;
|
|
14
|
-
addStartOperationByType<T extends TOperation<any>>(operationClass: T, operationData: Partial<ExtractDataType<T>>): OperationEditor<this>;
|
|
15
|
-
addStartOperation(systemName: TOperationName, operationData: TOperationData, id?: string): OperationEditor<this>;
|
|
16
|
-
editStartOperation(id: string): OperationEditor<ActionEditor<T>>;
|
|
17
|
-
removeStartOperation(id: string): this;
|
|
18
|
-
moveStartOperation(id: string, direction: 'up' | 'down'): this;
|
|
19
|
-
next(): ConfigurationFactory;
|
|
20
|
-
}
|
|
21
|
-
export declare class EndableActionEditor<T extends IEndableActionConfiguration = IEndableActionConfiguration> extends ActionEditor<T> {
|
|
22
|
-
addEndOperationByType<T extends TOperation<any>>(operationClass: T, operationData: Partial<ExtractDataType<T>>): OperationEditor<this>;
|
|
23
|
-
addEndOperation(systemName: string, operationData: TOperationData): OperationEditor<this>;
|
|
24
|
-
editEndOperation(id: string): OperationEditor<this>;
|
|
25
|
-
removeEndOperation(id: string): this;
|
|
26
|
-
moveEndOperation(id: string, direction: 'up' | 'down'): this;
|
|
27
|
-
}
|
|
28
|
-
export declare class TimelineActionEditor extends EndableActionEditor<ITimelineActionConfiguration> {
|
|
29
|
-
setDuration(start: number, end?: number): this;
|
|
30
|
-
}
|
|
31
|
-
export declare class OperationEditor<T extends ActionEditor> {
|
|
32
|
-
private operationConfig;
|
|
33
|
-
private actionEditor;
|
|
34
|
-
constructor(operationConfig: IOperationConfiguration, actionEditor: T);
|
|
35
|
-
getConfiguration(callBack: (config: IOperationConfiguration) => IOperationConfiguration): this;
|
|
36
|
-
getSystemName(): string;
|
|
37
|
-
setSystemName(systemName: TOperationName): this;
|
|
38
|
-
setOperationData(operationData: TOperationData): this;
|
|
39
|
-
setOperationDataItem(key: string, value: any): this;
|
|
40
|
-
getOperationDataKeys(): string[];
|
|
41
|
-
getOperationDataValue(key: string): any;
|
|
42
|
-
next(): T;
|
|
43
|
-
}
|
|
44
|
-
export {};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { TimelineTypes, TLanguageCode } from '../../types';
|
|
2
|
-
import { IActionConfiguration, IEngineConfiguration, ITimelineActionConfiguration, ITimelineConfiguration } from '../types';
|
|
3
|
-
import { ActionCreatorFactory } from './action-creator-factory';
|
|
4
|
-
import { ActionEditor, EndableActionEditor, TimelineActionEditor } from './action-editor';
|
|
5
|
-
import { LabelEditor } from './label-editor';
|
|
6
|
-
import { TimelineProvidersSettingsEditor } from './timeline-provider-settings-editor';
|
|
7
|
-
export type TEngineConfigurationLists = Pick<IEngineConfiguration, 'availableLanguages' | 'initActions' | 'actions' | 'eventActions' | 'timelines' | 'labels'>;
|
|
8
|
-
type ConfigurationFactoryExtension = (this: ConfigurationFactory, ...rest: any[]) => void;
|
|
9
|
-
/**
|
|
10
|
-
* This class offers a fluent, extensible and strongly typed DSL for creating Eligius configurations.
|
|
11
|
-
*
|
|
12
|
-
* @example Building a configuration using the factory
|
|
13
|
-
* To initialize a basic configuration to start off of:
|
|
14
|
-
* ```ts
|
|
15
|
-
* const factory = new ConfigurationFactory()
|
|
16
|
-
* .init("en-US") // Define the default language
|
|
17
|
-
* .addLanguage("en-US", "English") // Add English as a supported language
|
|
18
|
-
* .addLanguage("nl-NL", "Nederlands") // Add Dutch as a supported language
|
|
19
|
-
* .setLayoutTemplate("<div class=\"main.container\"></div>") // Add the main container for the presentation
|
|
20
|
-
* .setContainerSelector("#ct-container") // Selector for the element in the body that will contain the presentation
|
|
21
|
-
* .addTimeline( // Add a first timeline
|
|
22
|
-
* 'timeline-1', // Give it a name
|
|
23
|
-
* "animation", // This is RAF based timeline
|
|
24
|
-
* 200, // The duration of the timeline in seconds
|
|
25
|
-
* false, // The presentation does NOT play in a loop
|
|
26
|
-
* ".timeline-container" // The element within the main layout (defined by the layoutTemplate) in which the timeline will be rendered
|
|
27
|
-
* )
|
|
28
|
-
* .editTimelineProviderSettings() // Add a timeline provider
|
|
29
|
-
* .addProvider("animation") // One that provides timelines for type 'animation'
|
|
30
|
-
* .setSystemName("RequestAnimationFrameTimelineProvider") // The system name of the provider
|
|
31
|
-
* .setVendor("eligius") // Eligius is the vendor in this case
|
|
32
|
-
* .end(); // This finally returns the ConfigurationFactory instance
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* Then to add an init action:
|
|
36
|
-
* ```ts
|
|
37
|
-
* factory
|
|
38
|
-
* .createInitAction("GetUserName")
|
|
39
|
-
* .addStartOperationByType(getQueryParams, {
|
|
40
|
-
* defaultValues: { username: "guest" },
|
|
41
|
-
* })
|
|
42
|
-
* .addStartOperationByType(setGlobalData, { properties: ["queryParams"] });
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* After that, add a timeline action:
|
|
46
|
-
* ```ts
|
|
47
|
-
* factory.createTimelineAction("timeline-1", "AddIntroContainer")
|
|
48
|
-
* .addDuration(0, 10)
|
|
49
|
-
* .addStartOperationByType(selectElement, { selector: ".timeline-container" })
|
|
50
|
-
* .addStartOperationByType(setElementContent, {
|
|
51
|
-
* template: '<div class="intro-text"></div>',
|
|
52
|
-
* })
|
|
53
|
-
* .addEndOperationByType(selectElement, { selector: ".intro-text" })
|
|
54
|
-
* .addEndOperationByType(removeElement, {});
|
|
55
|
-
* ```
|
|
56
|
-
*
|
|
57
|
-
* It also possible to extend the factory with specialized creation methods for the particular
|
|
58
|
-
* configuration you are building:
|
|
59
|
-
* ```ts
|
|
60
|
-
* function addImage(this: ConfigurationFactory, actionName: string, imageSrc: string, imageId: string) {
|
|
61
|
-
* this.createInitAction(actionName)
|
|
62
|
-
* .addStartOperationByType(selectElement, { selector: ".timeline-container" })
|
|
63
|
-
* .addStartOperationByType(createElement, { element: 'img', attributes: {src: imageSrc, imageId} })
|
|
64
|
-
* .addStartOperationByType(setElementContent, { insertionType: "append" })
|
|
65
|
-
* .addEndOperationByType(selectElement, { selector: `#${imageId}` })
|
|
66
|
-
* .addEndOperationByType(removeElement, {});
|
|
67
|
-
* }
|
|
68
|
-
*
|
|
69
|
-
* const customFactory = ConfigurationFactory.extend(factory, "addImage", addImage);
|
|
70
|
-
*
|
|
71
|
-
* customFactory.addImage("MyImageActionName", "my-image.png", "my-image-id");
|
|
72
|
-
* ```
|
|
73
|
-
*
|
|
74
|
-
* Finally, retrieve the configuration and save it:
|
|
75
|
-
* ```ts
|
|
76
|
-
* import fs from "fs";
|
|
77
|
-
*
|
|
78
|
-
* const configuration = customFactory.getConfiguration();
|
|
79
|
-
*
|
|
80
|
-
* fs.writeFileSync("/my/path/configuration.json", JSON.stringify(configuration), {encoding:'utf-8'})
|
|
81
|
-
* ```
|
|
82
|
-
*
|
|
83
|
-
* The `ConfigurationFactory` can also be used to edit an existing configuration. In this case, simply
|
|
84
|
-
* pass the JSON configuration to the `ConfigurationFactory`'s constructor:
|
|
85
|
-
* ```ts
|
|
86
|
-
* import myConfiguration from './my-configuration.json';
|
|
87
|
-
*
|
|
88
|
-
* const factory = new ConfigurationFactory(myConfiguration);
|
|
89
|
-
*
|
|
90
|
-
* factory.editInitAction("existingActionName")
|
|
91
|
-
* .removeEndOperation("475fd0ab-5755-4e60-8f7c-e1988a109678");
|
|
92
|
-
* ```
|
|
93
|
-
*
|
|
94
|
-
*/
|
|
95
|
-
export declare class ConfigurationFactory {
|
|
96
|
-
actionCreatorFactory: ActionCreatorFactory;
|
|
97
|
-
configuration: IEngineConfiguration;
|
|
98
|
-
constructor(config?: IEngineConfiguration);
|
|
99
|
-
static extend<T extends ConfigurationFactory, K extends string | number | symbol, C extends ConfigurationFactoryExtension>(factory: T, extensionMethodName: K, extensionMethod: C): T & { [k in K]: C; };
|
|
100
|
-
static extendMultiple<T extends ConfigurationFactory, C extends ConfigurationFactoryExtension, D extends {
|
|
101
|
-
[name: string]: C;
|
|
102
|
-
}>(factory: T, extensions: D): T & D;
|
|
103
|
-
init(defaultLanguage: TLanguageCode): this;
|
|
104
|
-
setEngine(systemName: string): this;
|
|
105
|
-
setLayoutTemplate(layoutTemplate: string): this;
|
|
106
|
-
setDefaultLanguage(defaultLanguage: string): this;
|
|
107
|
-
setContainerSelector(selector: string): this;
|
|
108
|
-
editTimelineProviderSettings(): TimelineProvidersSettingsEditor;
|
|
109
|
-
getConfiguration(callBack?: (copy: IEngineConfiguration) => IEngineConfiguration): IEngineConfiguration;
|
|
110
|
-
addLanguage(languageCode: TLanguageCode, languageLabel: string): this;
|
|
111
|
-
private _internalAddAction;
|
|
112
|
-
private _initializeCollection;
|
|
113
|
-
addAction(action: IActionConfiguration): void;
|
|
114
|
-
addInitAction(action: IActionConfiguration): void;
|
|
115
|
-
addEventAction(action: IActionConfiguration): void;
|
|
116
|
-
addTimelineAction(uri: string, action: ITimelineActionConfiguration): void;
|
|
117
|
-
createAction(name: string): import("./action-creator-factory").EndableActionCreator<import("../types").IEndableActionConfiguration>;
|
|
118
|
-
createInitAction(name: string): import("./action-creator-factory").EndableActionCreator<import("../types").IEndableActionConfiguration>;
|
|
119
|
-
createEventAction(name: string): import("./action-creator-factory").ActionCreator<IActionConfiguration>;
|
|
120
|
-
createTimelineAction(uri: string, name: string): import("./action-creator-factory").TimelineActionCreator;
|
|
121
|
-
addTimeline(uri: string, type: TimelineTypes, duration: number, loop: boolean, selector: string): this;
|
|
122
|
-
getTimeline(uri: string): ITimelineConfiguration | undefined;
|
|
123
|
-
removeTimeline(uri: string): this;
|
|
124
|
-
private _initializeLabel;
|
|
125
|
-
private _getLabelTranslation;
|
|
126
|
-
editLabel(id: string): LabelEditor;
|
|
127
|
-
addLabel(id: string, code: TLanguageCode, translation: string): this;
|
|
128
|
-
addLabels(id: string, translations: Record<TLanguageCode, string>): this;
|
|
129
|
-
removeLabel(id: string): this;
|
|
130
|
-
editAction(id: string): EndableActionEditor<import("../types").IEndableActionConfiguration>;
|
|
131
|
-
editEventAction(id: string): ActionEditor<import("../types").IEventActionConfiguration>;
|
|
132
|
-
editInitAction(id: string): EndableActionEditor<import("../types").IEndableActionConfiguration>;
|
|
133
|
-
editTimelineAction(uri: string, id: string): TimelineActionEditor;
|
|
134
|
-
}
|
|
135
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './action-creator-factory';
|
|
2
|
-
export * from './action-editor';
|
|
3
|
-
export * from './configuration-factory';
|
|
4
|
-
export * from './name-providers';
|
|
5
|
-
export * from './subtitle-converter';
|
|
6
|
-
export * from './subtitle-editor';
|
|
7
|
-
export * from './timeline-provider-settings-editor';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ILanguageLabel } from '../../types';
|
|
2
|
-
import { ConfigurationFactory } from './configuration-factory';
|
|
3
|
-
export declare class LabelEditor {
|
|
4
|
-
private factory;
|
|
5
|
-
private languageLabel;
|
|
6
|
-
constructor(factory: ConfigurationFactory, languageLabel: ILanguageLabel);
|
|
7
|
-
private _internalGetLabel;
|
|
8
|
-
setLabel(languageCode: string, translation: string): this;
|
|
9
|
-
removeLabel(languageCode: string): this;
|
|
10
|
-
end(): ConfigurationFactory;
|
|
11
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IOperationMetadata } from '../../operation/metadata/types';
|
|
2
|
-
export declare class OperationNamesProvider {
|
|
3
|
-
getOperationNames(): string[];
|
|
4
|
-
}
|
|
5
|
-
export declare class ControllerNamesProvider {
|
|
6
|
-
getControllerNames(): string[];
|
|
7
|
-
}
|
|
8
|
-
export declare class OperationMetadataProvider {
|
|
9
|
-
getOperationMetadata(operationName: string): IOperationMetadata<any>;
|
|
10
|
-
}
|
|
11
|
-
export declare class TimeLineEventNamesProvider {
|
|
12
|
-
getEventNames(): any[];
|
|
13
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IStrictDuration, ISubtitle } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* This class converts an AVID subtitle file to an `ISubtitle` array.
|
|
4
|
-
*/
|
|
5
|
-
export declare class SubtitleImporter {
|
|
6
|
-
importSubtitles(rawLines: string[]): ISubtitle[];
|
|
7
|
-
stripNewlineChars(str: string): string;
|
|
8
|
-
isValidLine(line: string): boolean;
|
|
9
|
-
convertDuration(time: string): IStrictDuration;
|
|
10
|
-
convertTimeToSeconds(time: string): number;
|
|
11
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { IStrictDuration, ISubtitle, ISubtitleCollection, TLanguageCode } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Used to edit and add to an {@link ISubtitleCollection}.
|
|
4
|
-
*/
|
|
5
|
-
export declare class SubtitleEditor {
|
|
6
|
-
private collection;
|
|
7
|
-
constructor(collection?: ISubtitleCollection[]);
|
|
8
|
-
private _getLanguage;
|
|
9
|
-
/**
|
|
10
|
-
* Adds a new {@link ISubtitleCollection} for the given `languageCode`.
|
|
11
|
-
*
|
|
12
|
-
* If collections already exist for existing language codes then a duplicate
|
|
13
|
-
* of these collections is created with the same duration info but all of the
|
|
14
|
-
* text is left empty.
|
|
15
|
-
*
|
|
16
|
-
* @param languageCode
|
|
17
|
-
* @returns
|
|
18
|
-
*/
|
|
19
|
-
addLanguage(languageCode: TLanguageCode): this;
|
|
20
|
-
addSubtitle(languageCode: TLanguageCode, subtitle: ISubtitle): this;
|
|
21
|
-
addSubtitles(duration: IStrictDuration, subtitles: Record<TLanguageCode, string>): this;
|
|
22
|
-
setSubtitle(languageCode: TLanguageCode, subtitle: ISubtitle): this;
|
|
23
|
-
export(): ISubtitleCollection[];
|
|
24
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { TimelineTypes } from '../../types';
|
|
2
|
-
import { ITimelineProviderSettings, TTimelineProviderSettings } from '../types';
|
|
3
|
-
import { ConfigurationFactory } from './configuration-factory';
|
|
4
|
-
export declare class TimelineProvidersSettingsEditor {
|
|
5
|
-
private providersSettings;
|
|
6
|
-
private configurationFactory;
|
|
7
|
-
constructor(providersSettings: TTimelineProviderSettings, configurationFactory: ConfigurationFactory);
|
|
8
|
-
addProvider(timelineType: TimelineTypes): TimelineProviderSettingsEditor;
|
|
9
|
-
editProvider(timelineType: TimelineTypes): TimelineProviderSettingsEditor;
|
|
10
|
-
next(): ConfigurationFactory;
|
|
11
|
-
}
|
|
12
|
-
export declare class TimelineProviderSettingsEditor {
|
|
13
|
-
private providerSettings;
|
|
14
|
-
private providersSettingsEditor;
|
|
15
|
-
private configurationFactory;
|
|
16
|
-
constructor(providerSettings: ITimelineProviderSettings, providersSettingsEditor: TimelineProvidersSettingsEditor, configurationFactory: ConfigurationFactory);
|
|
17
|
-
setVendor(vendor: string): this;
|
|
18
|
-
setSelector(selector: string): this;
|
|
19
|
-
setSystemName(systemName: string): this;
|
|
20
|
-
next(): TimelineProvidersSettingsEditor;
|
|
21
|
-
end(): ConfigurationFactory;
|
|
22
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IAction } from '../action/types';
|
|
2
|
-
import { ActionRegistryEventbusListener } from '../eventbus';
|
|
3
|
-
import { IEventbus } from '../eventbus/types';
|
|
4
|
-
import { IConfigurationResolver, ISimpleResourceImporter } from '../types';
|
|
5
|
-
import { IEngineConfiguration, IResolvedEngineConfiguration } from './types';
|
|
6
|
-
/**
|
|
7
|
-
* Takes an `IEngineConfiguration` instance and return an `IResolvedEngineConfiguration`.
|
|
8
|
-
* This means all system names within the configuration will be resolved to their associated instances.
|
|
9
|
-
*
|
|
10
|
-
* If the given configuration includes event actions, then those will be registered in the given `ActionRegistryEventbusListener`.
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
export declare class ConfigurationResolver implements IConfigurationResolver {
|
|
14
|
-
private importer;
|
|
15
|
-
private eventbus;
|
|
16
|
-
constructor(importer: ISimpleResourceImporter, eventbus: IEventbus);
|
|
17
|
-
process(configuration: IEngineConfiguration, actionRegistryListener?: ActionRegistryEventbusListener): [Record<string, IAction>, IResolvedEngineConfiguration];
|
|
18
|
-
}
|