eligius 1.1.6 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.6",
4
+ "version": "1.2.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://rolandzwaga.github.io/eligius/",
7
7
  "bugs": {
@@ -22,18 +22,17 @@
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"
29
30
  },
30
31
  "scripts": {
31
32
  "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",
33
+ "test": "vitest --config src/vitest.config.ts --poolOptions.threads.singleThread --no-file-parallelism",
34
34
  "test:ci": "vitest run --config src/vitest.config.ts --reporter=verbose",
35
35
  "coverage": "vitest --config src/vitest.config.ts --coverage",
36
- "prepublish": "npm run build",
37
36
  "generate-readmes": "tsx ./src/tools/doc-tools/generate-readmes",
38
37
  "generate-schema": "tsx ./src/tools/schema-tools/generate-operation-schemas",
39
38
  "typedoc": "typedoc --options typedoc-metadata.json & typedoc --options typedoc.json",