eligius 1.5.1 → 1.5.3

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 (58) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +309 -311
  3. package/dist/chunk-C6wwvPpM.mjs +18 -0
  4. package/dist/index.d.mts +168 -181
  5. package/dist/index.mjs +896 -955
  6. package/dist/index.mjs.map +1 -1
  7. package/jsonschema/eligius-configuration.json +122 -122
  8. package/jsonschema/engine-config.json +21 -21
  9. package/jsonschema/mediaplayer-timeline-provider-settings.json +40 -40
  10. package/jsonschema/operation-templates/animate-with-class.json +1 -3
  11. package/jsonschema/operation-templates/break-for-each.json +1 -1
  12. package/jsonschema/operation-templates/clear-operation-data.json +1 -3
  13. package/jsonschema/operation-templates/clear-storage.json +1 -3
  14. package/jsonschema/operation-templates/concatenate-strings.json +1 -3
  15. package/jsonschema/operation-templates/continue-for-each.json +1 -1
  16. package/jsonschema/operation-templates/create-element.json +1 -3
  17. package/jsonschema/operation-templates/filter-array.json +2 -6
  18. package/jsonschema/operation-templates/find-in-array.json +2 -6
  19. package/jsonschema/operation-templates/get-query-params.json +1 -3
  20. package/jsonschema/operation-templates/http-delete.json +1 -3
  21. package/jsonschema/operation-templates/http-post.json +1 -3
  22. package/jsonschema/operation-templates/http-put.json +1 -3
  23. package/jsonschema/operation-templates/invoke-object-method.json +1 -3
  24. package/jsonschema/operation-templates/load-json.json +1 -3
  25. package/jsonschema/operation-templates/log.json +1 -3
  26. package/jsonschema/operation-templates/select-element.json +1 -3
  27. package/jsonschema/operation-templates/set-operation-data.json +1 -3
  28. package/jsonschema/operation-templates/sort-array.json +2 -6
  29. package/jsonschema/operation-templates/split-string.json +1 -3
  30. package/jsonschema/operation-templates/substring-text.json +1 -3
  31. package/jsonschema/operation-templates/validate-form.json +1 -3
  32. package/jsonschema/operations/animate-with-class.json +1 -3
  33. package/jsonschema/operations/break-for-each.json +1 -1
  34. package/jsonschema/operations/clear-operation-data.json +1 -3
  35. package/jsonschema/operations/clear-storage.json +1 -3
  36. package/jsonschema/operations/concatenate-strings.json +1 -3
  37. package/jsonschema/operations/continue-for-each.json +1 -1
  38. package/jsonschema/operations/create-element.json +1 -3
  39. package/jsonschema/operations/filter-array.json +2 -6
  40. package/jsonschema/operations/find-in-array.json +2 -6
  41. package/jsonschema/operations/get-query-params.json +1 -3
  42. package/jsonschema/operations/http-delete.json +1 -3
  43. package/jsonschema/operations/http-post.json +1 -3
  44. package/jsonschema/operations/http-put.json +1 -3
  45. package/jsonschema/operations/invoke-object-method.json +1 -3
  46. package/jsonschema/operations/load-json.json +1 -3
  47. package/jsonschema/operations/log.json +1 -3
  48. package/jsonschema/operations/select-element.json +1 -3
  49. package/jsonschema/operations/set-operation-data.json +1 -3
  50. package/jsonschema/operations/sort-array.json +2 -6
  51. package/jsonschema/operations/split-string.json +1 -3
  52. package/jsonschema/operations/substring-text.json +1 -3
  53. package/jsonschema/operations/validate-form.json +1 -3
  54. package/jsonschema/raf-timeline-provider-settings.json +29 -29
  55. package/jsonschema/timeline-provider-settings.json +16 -16
  56. package/jsonschema/timeline.json +52 -52
  57. package/package.json +13 -16
  58. package/dist/chunk-z5eko27R.mjs +0 -13
@@ -29,9 +29,7 @@
29
29
  "properties": {
30
30
  "validationRules": {
31
31
  "$id": "#/properties/operationData/validationRules",
32
- "type": [
33
- "object"
34
- ]
32
+ "type": "array"
35
33
  }
36
34
  }
37
35
  }
@@ -40,9 +40,7 @@
40
40
  },
41
41
  "removeClass": {
42
42
  "$id": "#/properties/operationData/removeClass",
43
- "type": [
44
- "boolean"
45
- ]
43
+ "type": "array"
46
44
  }
47
45
  }
48
46
  }
@@ -4,7 +4,7 @@
4
4
  "$id": "http://eligius.com/schema/break-for-each-operation.json",
5
5
  "type": "object",
6
6
  "title": "The breakForEach schema",
7
- "description": "\nThis operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}\noperation. This operation immediately moves to the loop end index, effectively stopping the loop.",
7
+ "description": "This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}\noperation. This operation immediately moves to the loop end index, effectively stopping the loop.",
8
8
  "required": [
9
9
  "systemName"
10
10
  ],
@@ -31,9 +31,7 @@
31
31
  "properties": {
32
32
  "properties": {
33
33
  "$id": "#/properties/operationData/properties",
34
- "type": [
35
- "array"
36
- ]
34
+ "type": "array"
37
35
  }
38
36
  }
39
37
  }
@@ -33,9 +33,7 @@
33
33
  "properties": {
34
34
  "key": {
35
35
  "$id": "#/properties/operationData/key",
36
- "type": [
37
- "string"
38
- ]
36
+ "type": "array"
39
37
  },
40
38
  "storageType": {
41
39
  "$id": "#/properties/operationData/storageType",
@@ -39,9 +39,7 @@
39
39
  },
40
40
  "separator": {
41
41
  "$id": "#/properties/operationData/separator",
42
- "type": [
43
- "string"
44
- ]
42
+ "type": "array"
45
43
  }
46
44
  }
47
45
  }
@@ -4,7 +4,7 @@
4
4
  "$id": "http://eligius.com/schema/continue-for-each-operation.json",
5
5
  "type": "object",
6
6
  "title": "The continueForEach schema",
7
- "description": "\nThis operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}\noperation. This operation immediately moves to the next loop index, effectively canceling the rest\nof the operations in the current iteration.",
7
+ "description": "This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}\noperation. This operation immediately moves to the next loop index, effectively canceling the rest\nof the operations in the current iteration.",
8
8
  "required": [
9
9
  "systemName"
10
10
  ],
@@ -146,9 +146,7 @@
146
146
  },
147
147
  "text": {
148
148
  "$id": "#/properties/operationData/text",
149
- "type": [
150
- "string"
151
- ]
149
+ "type": "array"
152
150
  },
153
151
  "attributes": {
154
152
  "$id": "#/properties/operationData/attributes",
@@ -31,9 +31,7 @@
31
31
  "properties": {
32
32
  "filterProperty": {
33
33
  "$id": "#/properties/operationData/filterProperty",
34
- "type": [
35
- "string"
36
- ]
34
+ "type": "array"
37
35
  },
38
36
  "filterValue": {
39
37
  "$id": "#/properties/operationData/filterValue",
@@ -43,9 +41,7 @@
43
41
  },
44
42
  "filterPredicate": {
45
43
  "$id": "#/properties/operationData/filterPredicate",
46
- "type": [
47
- "string"
48
- ]
44
+ "type": "array"
49
45
  }
50
46
  }
51
47
  }
@@ -31,9 +31,7 @@
31
31
  "properties": {
32
32
  "findProperty": {
33
33
  "$id": "#/properties/operationData/findProperty",
34
- "type": [
35
- "string"
36
- ]
34
+ "type": "array"
37
35
  },
38
36
  "findValue": {
39
37
  "$id": "#/properties/operationData/findValue",
@@ -43,9 +41,7 @@
43
41
  },
44
42
  "findPredicate": {
45
43
  "$id": "#/properties/operationData/findPredicate",
46
- "type": [
47
- "string"
48
- ]
44
+ "type": "array"
49
45
  }
50
46
  }
51
47
  }
@@ -31,9 +31,7 @@
31
31
  "properties": {
32
32
  "defaultValues": {
33
33
  "$id": "#/properties/operationData/defaultValues",
34
- "type": [
35
- "object"
36
- ]
34
+ "type": "array"
37
35
  }
38
36
  }
39
37
  }
@@ -39,9 +39,7 @@
39
39
  },
40
40
  "headers": {
41
41
  "$id": "#/properties/operationData/headers",
42
- "type": [
43
- "object"
44
- ]
42
+ "type": "array"
45
43
  }
46
44
  }
47
45
  }
@@ -45,9 +45,7 @@
45
45
  },
46
46
  "headers": {
47
47
  "$id": "#/properties/operationData/headers",
48
- "type": [
49
- "object"
50
- ]
48
+ "type": "array"
51
49
  }
52
50
  }
53
51
  }
@@ -45,9 +45,7 @@
45
45
  },
46
46
  "headers": {
47
47
  "$id": "#/properties/operationData/headers",
48
- "type": [
49
- "object"
50
- ]
48
+ "type": "array"
51
49
  }
52
50
  }
53
51
  }
@@ -39,9 +39,7 @@
39
39
  },
40
40
  "methodArguments": {
41
41
  "$id": "#/properties/operationData/methodArguments",
42
- "type": [
43
- "array"
44
- ]
42
+ "type": "array"
45
43
  }
46
44
  }
47
45
  }
@@ -39,9 +39,7 @@
39
39
  },
40
40
  "cache": {
41
41
  "$id": "#/properties/operationData/cache",
42
- "type": [
43
- "boolean"
44
- ]
42
+ "type": "array"
45
43
  }
46
44
  }
47
45
  }
@@ -41,9 +41,7 @@
41
41
  },
42
42
  "logName": {
43
43
  "$id": "#/properties/operationData/logName",
44
- "type": [
45
- "string"
46
- ]
44
+ "type": "array"
47
45
  }
48
46
  }
49
47
  }
@@ -39,9 +39,7 @@
39
39
  },
40
40
  "useSelectedElementAsRoot": {
41
41
  "$id": "#/properties/operationData/useSelectedElementAsRoot",
42
- "type": [
43
- "boolean"
44
- ]
42
+ "type": "array"
45
43
  }
46
44
  }
47
45
  }
@@ -33,9 +33,7 @@
33
33
  "properties": {
34
34
  "override": {
35
35
  "$id": "#/properties/operationData/override",
36
- "type": [
37
- "boolean"
38
- ]
36
+ "type": "array"
39
37
  },
40
38
  "properties": {
41
39
  "$id": "#/properties/operationData/properties",
@@ -31,9 +31,7 @@
31
31
  "properties": {
32
32
  "sortProperty": {
33
33
  "$id": "#/properties/operationData/sortProperty",
34
- "type": [
35
- "string"
36
- ]
34
+ "type": "array"
37
35
  },
38
36
  "sortOrder": {
39
37
  "$id": "#/properties/operationData/sortOrder",
@@ -41,9 +39,7 @@
41
39
  },
42
40
  "sortComparator": {
43
41
  "$id": "#/properties/operationData/sortComparator",
44
- "type": [
45
- "string"
46
- ]
42
+ "type": "array"
47
43
  }
48
44
  }
49
45
  }
@@ -37,9 +37,7 @@
37
37
  },
38
38
  "limit": {
39
39
  "$id": "#/properties/operationData/limit",
40
- "type": [
41
- "number"
42
- ]
40
+ "type": "array"
43
41
  }
44
42
  }
45
43
  }
@@ -39,9 +39,7 @@
39
39
  },
40
40
  "end": {
41
41
  "$id": "#/properties/operationData/end",
42
- "type": [
43
- "number"
44
- ]
42
+ "type": "array"
45
43
  }
46
44
  }
47
45
  }
@@ -31,9 +31,7 @@
31
31
  "properties": {
32
32
  "validationRules": {
33
33
  "$id": "#/properties/operationData/validationRules",
34
- "type": [
35
- "object"
36
- ]
34
+ "type": "array"
37
35
  }
38
36
  }
39
37
  }
@@ -1,29 +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
- }
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
+ }
@@ -1,16 +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
- }
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
+ }
@@ -1,52 +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
- }
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.5.1",
4
+ "version": "1.5.3",
5
5
  "license": "MIT",
6
6
  "homepage": "https://rolandzwaga.github.io/eligius/",
7
7
  "bugs": {
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "scripts": {
32
32
  "typecheck": "tsc --pretty --noEmit",
33
- "test": "vitest --config src/vitest.config.ts --no-file-parallelism",
33
+ "test": "vitest --config src/vitest.config.ts",
34
34
  "test:ci": "vitest run --config src/vitest.config.ts --reporter=verbose",
35
35
  "coverage": "vitest --config src/vitest.config.ts --coverage",
36
36
  "generate-readmes": "tsx ./src/tools/doc-tools/generate-readmes",
@@ -49,35 +49,32 @@
49
49
  "fix": "biome check --write ."
50
50
  },
51
51
  "devDependencies": {
52
- "@biomejs/biome": "2.3.4",
52
+ "@biomejs/biome": "2.3.8",
53
+ "@rollup/plugin-alias": "^6.0.0",
53
54
  "@ts-morph/bootstrap": "0.28.1",
54
- "@types/chai": "5.2.3",
55
55
  "@types/fs-extra": "11.0.4",
56
56
  "@types/jquery": "3.5.33",
57
57
  "@types/jsdom": "27.0.0",
58
- "@types/node": "24.10.0",
59
- "@types/sinon": "17.0.4",
58
+ "@types/node": "24.10.1",
60
59
  "@types/uuid": "11.0.0",
61
- "@vitest/coverage-istanbul": "4.0.8",
62
- "canvas": "3.2.0",
63
- "chai": "6.2.0",
60
+ "@vitest/coverage-istanbul": "4.0.14",
64
61
  "fs-extra": "11.3.2",
65
62
  "jquery": "3.7.1",
66
- "jsdom": "27.1.0",
63
+ "jsdom": "27.2.0",
67
64
  "jsdom-global": "3.0.2",
68
65
  "lottie-web": "5.13.0",
69
- "rimraf": "6.1.0",
70
- "sinon": "21.0.0",
66
+ "rimraf": "6.1.2",
71
67
  "ts-morph": "27.0.2",
72
68
  "tsconfig-paths": "4.2.0",
73
- "tsdown": "0.16.1",
69
+ "tsdown": "0.16.6",
74
70
  "tslib": "2.8.1",
75
- "tsx": "4.20.6",
76
- "typedoc": "0.28.14",
71
+ "tsx": "4.21.0",
72
+ "typedoc": "0.28.15",
77
73
  "typedoc-plugin-missing-exports": "4.1.2",
78
74
  "typescript": "5.9.3",
79
75
  "video.js": "8.23.4",
80
- "vitest": "4.0.8",
76
+ "vite-tsconfig-paths": "^5.1.4",
77
+ "vitest": "4.0.14",
81
78
  "watchlist": "0.3.1"
82
79
  },
83
80
  "peerDependencies": {
@@ -1,13 +0,0 @@
1
- //#region rolldown:runtime
2
- var __defProp = Object.defineProperty;
3
- var __export = (all) => {
4
- let target = {};
5
- for (var name in all) __defProp(target, name, {
6
- get: all[name],
7
- enumerable: true
8
- });
9
- return target;
10
- };
11
-
12
- //#endregion
13
- export { __export as t };