eligius 1.1.7 → 1.2.1

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 (106) hide show
  1. package/dist/index.d.ts +139 -64
  2. package/dist/index.js +326 -339
  3. package/dist/index.js.map +1 -1
  4. package/jsonschema/eligius-configuration.json +122 -0
  5. package/jsonschema/endable-action-template.json +327 -0
  6. package/jsonschema/endable-action.json +327 -0
  7. package/jsonschema/engine-config.json +21 -0
  8. package/jsonschema/event-action.json +194 -0
  9. package/jsonschema/mediaplayer-timeline-provider-settings.json +40 -0
  10. package/jsonschema/operation-templates/add-class.json +40 -0
  11. package/jsonschema/operation-templates/add-controller-to-element.json +26 -0
  12. package/jsonschema/operation-templates/add-globals-to-operation.json +39 -0
  13. package/jsonschema/operation-templates/animate-with-class.json +46 -0
  14. package/jsonschema/operation-templates/animate.json +51 -0
  15. package/jsonschema/operation-templates/broadcast-event.json +51 -0
  16. package/jsonschema/operation-templates/calc.json +49 -0
  17. package/jsonschema/operation-templates/clear-element.json +26 -0
  18. package/jsonschema/operation-templates/clear-operation-data.json +39 -0
  19. package/jsonschema/operation-templates/create-element.json +158 -0
  20. package/jsonschema/operation-templates/custom-function.json +39 -0
  21. package/jsonschema/operation-templates/end-action.json +39 -0
  22. package/jsonschema/operation-templates/end-for-each.json +26 -0
  23. package/jsonschema/operation-templates/end-when.json +26 -0
  24. package/jsonschema/operation-templates/extend-controller.json +39 -0
  25. package/jsonschema/operation-templates/for-each.json +40 -0
  26. package/jsonschema/operation-templates/get-attributes-from-element.json +39 -0
  27. package/jsonschema/operation-templates/get-controller-from-element.json +50 -0
  28. package/jsonschema/operation-templates/get-controller-instance.json +37 -0
  29. package/jsonschema/operation-templates/get-element-dimensions.json +39 -0
  30. package/jsonschema/operation-templates/get-import.json +39 -0
  31. package/jsonschema/operation-templates/get-query-params.json +39 -0
  32. package/jsonschema/operation-templates/invoke-object-method.json +45 -0
  33. package/jsonschema/operation-templates/load-json.json +45 -0
  34. package/jsonschema/operation-templates/log.json +39 -0
  35. package/jsonschema/operation-templates/math.json +45 -0
  36. package/jsonschema/operation-templates/otherwise.json +26 -0
  37. package/jsonschema/operation-templates/remove-class.json +40 -0
  38. package/jsonschema/operation-templates/remove-controller-from-element.json +50 -0
  39. package/jsonschema/operation-templates/remove-element.json +26 -0
  40. package/jsonschema/operation-templates/remove-properties-from-operation-data.json +39 -0
  41. package/jsonschema/operation-templates/reparent-element.json +39 -0
  42. package/jsonschema/operation-templates/request-action.json +39 -0
  43. package/jsonschema/operation-templates/select-element.json +45 -0
  44. package/jsonschema/operation-templates/set-data.json +39 -0
  45. package/jsonschema/operation-templates/set-element-attributes.json +39 -0
  46. package/jsonschema/operation-templates/set-element-content.json +41 -0
  47. package/jsonschema/operation-templates/set-global-data.json +39 -0
  48. package/jsonschema/operation-templates/set-operation-data.json +45 -0
  49. package/jsonschema/operation-templates/set-style.json +39 -0
  50. package/jsonschema/operation-templates/set-variable.json +45 -0
  51. package/jsonschema/operation-templates/start-action.json +39 -0
  52. package/jsonschema/operation-templates/toggle-class.json +40 -0
  53. package/jsonschema/operation-templates/toggle-element.json +26 -0
  54. package/jsonschema/operation-templates/wait.json +39 -0
  55. package/jsonschema/operation-templates/when.json +39 -0
  56. package/jsonschema/operations/add-class.json +44 -0
  57. package/jsonschema/operations/add-controller-to-element.json +26 -0
  58. package/jsonschema/operations/add-globals-to-operation.json +43 -0
  59. package/jsonschema/operations/animate-with-class.json +50 -0
  60. package/jsonschema/operations/animate.json +56 -0
  61. package/jsonschema/operations/broadcast-event.json +56 -0
  62. package/jsonschema/operations/calc.json +55 -0
  63. package/jsonschema/operations/clear-element.json +26 -0
  64. package/jsonschema/operations/clear-operation-data.json +41 -0
  65. package/jsonschema/operations/create-element.json +162 -0
  66. package/jsonschema/operations/custom-function.json +43 -0
  67. package/jsonschema/operations/end-action.json +43 -0
  68. package/jsonschema/operations/end-for-each.json +26 -0
  69. package/jsonschema/operations/end-when.json +26 -0
  70. package/jsonschema/operations/extend-controller.json +43 -0
  71. package/jsonschema/operations/for-each.json +44 -0
  72. package/jsonschema/operations/get-attributes-from-element.json +43 -0
  73. package/jsonschema/operations/get-controller-from-element.json +54 -0
  74. package/jsonschema/operations/get-controller-instance.json +41 -0
  75. package/jsonschema/operations/get-element-dimensions.json +41 -0
  76. package/jsonschema/operations/get-import.json +43 -0
  77. package/jsonschema/operations/get-query-params.json +41 -0
  78. package/jsonschema/operations/invoke-object-method.json +49 -0
  79. package/jsonschema/operations/load-json.json +49 -0
  80. package/jsonschema/operations/log.json +41 -0
  81. package/jsonschema/operations/math.json +50 -0
  82. package/jsonschema/operations/otherwise.json +26 -0
  83. package/jsonschema/operations/remove-class.json +44 -0
  84. package/jsonschema/operations/remove-controller-from-element.json +54 -0
  85. package/jsonschema/operations/remove-element.json +26 -0
  86. package/jsonschema/operations/remove-properties-from-operation-data.json +43 -0
  87. package/jsonschema/operations/reparent-element.json +43 -0
  88. package/jsonschema/operations/request-action.json +43 -0
  89. package/jsonschema/operations/select-element.json +49 -0
  90. package/jsonschema/operations/set-data.json +43 -0
  91. package/jsonschema/operations/set-element-attributes.json +43 -0
  92. package/jsonschema/operations/set-element-content.json +43 -0
  93. package/jsonschema/operations/set-global-data.json +43 -0
  94. package/jsonschema/operations/set-operation-data.json +49 -0
  95. package/jsonschema/operations/set-style.json +43 -0
  96. package/jsonschema/operations/set-variable.json +50 -0
  97. package/jsonschema/operations/start-action.json +41 -0
  98. package/jsonschema/operations/toggle-class.json +44 -0
  99. package/jsonschema/operations/toggle-element.json +26 -0
  100. package/jsonschema/operations/wait.json +43 -0
  101. package/jsonschema/operations/when.json +43 -0
  102. package/jsonschema/raf-timeline-provider-settings.json +29 -0
  103. package/jsonschema/timeline-action.json +342 -0
  104. package/jsonschema/timeline-provider-settings.json +16 -0
  105. package/jsonschema/timeline.json +52 -0
  106. package/package.json +4 -3
@@ -0,0 +1,29 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "https://rolandzwaga.github.io/eligius/jsonschema/mediaplayer-timeline-provider-settings.json",
5
+ "type": "object",
6
+ "title": "The TimelineProviderSettings Schema",
7
+ "required": ["id", "vendor", "systemName"],
8
+ "properties": {
9
+ "id": {
10
+ "$id": "#/properties/id",
11
+ "type": "string",
12
+ "title": "The Id Schema",
13
+ "examples": ["123e4567-e89b-12d3-a456-426614174000"],
14
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
15
+ },
16
+ "vendor": {
17
+ "$id": "#/properties/vendor",
18
+ "type": "string",
19
+ "title": "The Vendor Schema",
20
+ "examples": ["jwplayer"]
21
+ },
22
+ "systemName": {
23
+ "$id": "#/properties/systemName",
24
+ "type": "string",
25
+ "title": "The Systemname Schema",
26
+ "examples": ["RequestAnimationFrameTimelineProvider"]
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,342 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "https://rolandzwaga.github.io/eligius/jsonschema/endable-action.json",
5
+ "type": "object",
6
+ "title": "The Timeline Action Schema",
7
+ "required": [
8
+ "name",
9
+ "startOperations",
10
+ "endOperations",
11
+ "duration"
12
+ ],
13
+ "properties": {
14
+ "id": {
15
+ "$id": "#/properties/id",
16
+ "type": "string",
17
+ "title": "The Id Schema",
18
+ "examples": [
19
+ "123e4567-e89b-12d3-a456-426614174000"
20
+ ],
21
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
22
+ },
23
+ "duration": {
24
+ "$id": "#/properties/duration",
25
+ "type": "object",
26
+ "title": "The duration Schema",
27
+ "required": [
28
+ "start"
29
+ ],
30
+ "properties": {
31
+ "start": {
32
+ "type": "number"
33
+ },
34
+ "end": {
35
+ "type": "number"
36
+ }
37
+ }
38
+ },
39
+ "name": {
40
+ "$id": "#/properties/name",
41
+ "type": "string",
42
+ "title": "The Name Schema",
43
+ "examples": [
44
+ "ProgressbarSetup"
45
+ ]
46
+ },
47
+ "startOperations": {
48
+ "$id": "#/properties/startOperations",
49
+ "type": "array",
50
+ "title": "The Startoperations Schema",
51
+ "items": {
52
+ "anyOf": [
53
+ {
54
+ "$ref": "operations/add-class.json"
55
+ },
56
+ {
57
+ "$ref": "operations/add-controller-to-element.json"
58
+ },
59
+ {
60
+ "$ref": "operations/add-globals-to-operation.json"
61
+ },
62
+ {
63
+ "$ref": "operations/animate.json"
64
+ },
65
+ {
66
+ "$ref": "operations/animate-with-class.json"
67
+ },
68
+ {
69
+ "$ref": "operations/broadcast-event.json"
70
+ },
71
+ {
72
+ "$ref": "operations/calc.json"
73
+ },
74
+ {
75
+ "$ref": "operations/clear-element.json"
76
+ },
77
+ {
78
+ "$ref": "operations/clear-operation-data.json"
79
+ },
80
+ {
81
+ "$ref": "operations/create-element.json"
82
+ },
83
+ {
84
+ "$ref": "operations/custom-function.json"
85
+ },
86
+ {
87
+ "$ref": "operations/end-action.json"
88
+ },
89
+ {
90
+ "$ref": "operations/end-for-each.json"
91
+ },
92
+ {
93
+ "$ref": "operations/end-when.json"
94
+ },
95
+ {
96
+ "$ref": "operations/extend-controller.json"
97
+ },
98
+ {
99
+ "$ref": "operations/for-each.json"
100
+ },
101
+ {
102
+ "$ref": "operations/get-attributes-from-element.json"
103
+ },
104
+ {
105
+ "$ref": "operations/get-controller-from-element.json"
106
+ },
107
+ {
108
+ "$ref": "operations/get-controller-instance.json"
109
+ },
110
+ {
111
+ "$ref": "operations/get-element-dimensions.json"
112
+ },
113
+ {
114
+ "$ref": "operations/get-import.json"
115
+ },
116
+ {
117
+ "$ref": "operations/get-query-params.json"
118
+ },
119
+ {
120
+ "$ref": "operations/invoke-object-method.json"
121
+ },
122
+ {
123
+ "$ref": "operations/load-json.json"
124
+ },
125
+ {
126
+ "$ref": "operations/log.json"
127
+ },
128
+ {
129
+ "$ref": "operations/math.json"
130
+ },
131
+ {
132
+ "$ref": "operations/otherwise.json"
133
+ },
134
+ {
135
+ "$ref": "operations/remove-class.json"
136
+ },
137
+ {
138
+ "$ref": "operations/remove-controller-from-element.json"
139
+ },
140
+ {
141
+ "$ref": "operations/remove-element.json"
142
+ },
143
+ {
144
+ "$ref": "operations/remove-properties-from-operation-data.json"
145
+ },
146
+ {
147
+ "$ref": "operations/reparent-element.json"
148
+ },
149
+ {
150
+ "$ref": "operations/request-action.json"
151
+ },
152
+ {
153
+ "$ref": "operations/select-element.json"
154
+ },
155
+ {
156
+ "$ref": "operations/set-data.json"
157
+ },
158
+ {
159
+ "$ref": "operations/set-element-attributes.json"
160
+ },
161
+ {
162
+ "$ref": "operations/set-element-content.json"
163
+ },
164
+ {
165
+ "$ref": "operations/set-global-data.json"
166
+ },
167
+ {
168
+ "$ref": "operations/set-operation-data.json"
169
+ },
170
+ {
171
+ "$ref": "operations/set-style.json"
172
+ },
173
+ {
174
+ "$ref": "operations/set-variable.json"
175
+ },
176
+ {
177
+ "$ref": "operations/start-action.json"
178
+ },
179
+ {
180
+ "$ref": "operations/toggle-class.json"
181
+ },
182
+ {
183
+ "$ref": "operations/toggle-element.json"
184
+ },
185
+ {
186
+ "$ref": "operations/wait.json"
187
+ },
188
+ {
189
+ "$ref": "operations/when.json"
190
+ }
191
+ ]
192
+ }
193
+ },
194
+ "endOperations": {
195
+ "$id": "#/properties/endOperations",
196
+ "type": "array",
197
+ "title": "The Endoperations Schema",
198
+ "items": {
199
+ "anyOf": [
200
+ {
201
+ "$ref": "operations/add-class.json"
202
+ },
203
+ {
204
+ "$ref": "operations/add-controller-to-element.json"
205
+ },
206
+ {
207
+ "$ref": "operations/add-globals-to-operation.json"
208
+ },
209
+ {
210
+ "$ref": "operations/animate.json"
211
+ },
212
+ {
213
+ "$ref": "operations/animate-with-class.json"
214
+ },
215
+ {
216
+ "$ref": "operations/broadcast-event.json"
217
+ },
218
+ {
219
+ "$ref": "operations/calc.json"
220
+ },
221
+ {
222
+ "$ref": "operations/clear-element.json"
223
+ },
224
+ {
225
+ "$ref": "operations/clear-operation-data.json"
226
+ },
227
+ {
228
+ "$ref": "operations/create-element.json"
229
+ },
230
+ {
231
+ "$ref": "operations/custom-function.json"
232
+ },
233
+ {
234
+ "$ref": "operations/end-action.json"
235
+ },
236
+ {
237
+ "$ref": "operations/end-for-each.json"
238
+ },
239
+ {
240
+ "$ref": "operations/end-when.json"
241
+ },
242
+ {
243
+ "$ref": "operations/extend-controller.json"
244
+ },
245
+ {
246
+ "$ref": "operations/for-each.json"
247
+ },
248
+ {
249
+ "$ref": "operations/get-attributes-from-element.json"
250
+ },
251
+ {
252
+ "$ref": "operations/get-controller-from-element.json"
253
+ },
254
+ {
255
+ "$ref": "operations/get-controller-instance.json"
256
+ },
257
+ {
258
+ "$ref": "operations/get-element-dimensions.json"
259
+ },
260
+ {
261
+ "$ref": "operations/get-import.json"
262
+ },
263
+ {
264
+ "$ref": "operations/get-query-params.json"
265
+ },
266
+ {
267
+ "$ref": "operations/invoke-object-method.json"
268
+ },
269
+ {
270
+ "$ref": "operations/load-json.json"
271
+ },
272
+ {
273
+ "$ref": "operations/log.json"
274
+ },
275
+ {
276
+ "$ref": "operations/math.json"
277
+ },
278
+ {
279
+ "$ref": "operations/otherwise.json"
280
+ },
281
+ {
282
+ "$ref": "operations/remove-class.json"
283
+ },
284
+ {
285
+ "$ref": "operations/remove-controller-from-element.json"
286
+ },
287
+ {
288
+ "$ref": "operations/remove-element.json"
289
+ },
290
+ {
291
+ "$ref": "operations/remove-properties-from-operation-data.json"
292
+ },
293
+ {
294
+ "$ref": "operations/reparent-element.json"
295
+ },
296
+ {
297
+ "$ref": "operations/request-action.json"
298
+ },
299
+ {
300
+ "$ref": "operations/select-element.json"
301
+ },
302
+ {
303
+ "$ref": "operations/set-data.json"
304
+ },
305
+ {
306
+ "$ref": "operations/set-element-attributes.json"
307
+ },
308
+ {
309
+ "$ref": "operations/set-element-content.json"
310
+ },
311
+ {
312
+ "$ref": "operations/set-global-data.json"
313
+ },
314
+ {
315
+ "$ref": "operations/set-operation-data.json"
316
+ },
317
+ {
318
+ "$ref": "operations/set-style.json"
319
+ },
320
+ {
321
+ "$ref": "operations/set-variable.json"
322
+ },
323
+ {
324
+ "$ref": "operations/start-action.json"
325
+ },
326
+ {
327
+ "$ref": "operations/toggle-class.json"
328
+ },
329
+ {
330
+ "$ref": "operations/toggle-element.json"
331
+ },
332
+ {
333
+ "$ref": "operations/wait.json"
334
+ },
335
+ {
336
+ "$ref": "operations/when.json"
337
+ }
338
+ ]
339
+ }
340
+ }
341
+ }
342
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "https://rolandzwaga.github.io/eligius/jsonschema/timeline-provider-settings.json",
5
+ "type": "object",
6
+ "title": "The TimelineProviderSettings Schema",
7
+ "required": [],
8
+ "properties": {
9
+ "animation": {
10
+ "$ref": "raf-timeline-provider-settings.json"
11
+ },
12
+ "mediaplayer": {
13
+ "$ref": "mediaplayer-timeline-provider-settings.json"
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "https://rolandzwaga.github.io/eligius/jsonschema/timeline.json",
5
+ "type": "object",
6
+ "title": "The Timeline Schema",
7
+ "required": ["uri", "type", "duration", "selector"],
8
+ "properties": {
9
+ "id": {
10
+ "$id": "#/properties/id",
11
+ "type": "string",
12
+ "title": "The Id Schema",
13
+ "examples": ["123e4567-e89b-12d3-a456-426614174000"],
14
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
15
+ },
16
+ "uri": {
17
+ "$id": "#/properties/uri",
18
+ "type": "string",
19
+ "title": "The uri Schema",
20
+ "description": "The URI for the video or audio file, only used when type is set to mediaplayer"
21
+ },
22
+ "type": {
23
+ "$id": "#/properties/type",
24
+ "type": "string",
25
+ "enum": ["animation", "mediaplayer"],
26
+ "title": "The type Schema"
27
+ },
28
+ "duration": {
29
+ "$id": "#/properties/duration",
30
+ "type": "number",
31
+ "title": "The duration schema"
32
+ },
33
+ "loop": {
34
+ "$id": "#/properties/loop",
35
+ "type": "boolean",
36
+ "title": "The loop schema"
37
+ },
38
+ "selector": {
39
+ "$id": "#/properties/selector",
40
+ "type": "string",
41
+ "title": "The selector schema"
42
+ },
43
+ "timelineActions": {
44
+ "$id": "#/properties/timelineActions",
45
+ "type": "array",
46
+ "title": "The timelineActions schema",
47
+ "items": {
48
+ "$ref": "timeline-action.json"
49
+ }
50
+ }
51
+ }
52
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eligius",
3
3
  "author": "Roland Zwaga <rbzwaga@gmail.com>",
4
- "version": "1.1.7",
4
+ "version": "1.2.1",
5
5
  "license": "MIT",
6
6
  "homepage": "https://rolandzwaga.github.io/eligius/",
7
7
  "bugs": {
@@ -22,7 +22,8 @@
22
22
  },
23
23
  "typings": "dist/index.d.ts",
24
24
  "files": [
25
- "dist"
25
+ "dist",
26
+ "jsonschema"
26
27
  ],
27
28
  "engines": {
28
29
  "node": ">=20"
@@ -40,7 +41,7 @@
40
41
  "ctrls-metadata": "tsx src/tools/code-generator/ctrls-metadata-generator.ts",
41
42
  "metadata": "npm run opers-metadata && npm run ctrls-metadata",
42
43
  "ts-types": " tsc --noEmit false --emitDeclarationOnly --outDir dist",
43
- "build": "rimraf dist && npm run metadata && tsdown",
44
+ "build": "rimraf dist && npm run metadata && npm run generate-schema && tsdown",
44
45
  "codemod": "tsx src/tools/code-generator/uvu2vitest-codemod.ts",
45
46
  "format": "biome format --write .",
46
47
  "fix": "biome check --write ."