eligius 2.3.2 → 3.0.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 (92) hide show
  1. package/README.md +158 -33
  2. package/dist/configuration-api.d.mts +6110 -0
  3. package/dist/configuration-api.mjs +3876 -0
  4. package/dist/configuration-api.mjs.map +1 -0
  5. package/dist/index.d.mts +3980 -1278
  6. package/dist/index.mjs +10476 -4825
  7. package/dist/index.mjs.map +1 -1
  8. package/dist/metadata.d.mts +1060 -282
  9. package/dist/metadata.mjs +592 -278
  10. package/dist/metadata.mjs.map +1 -1
  11. package/dist/{chunk-w6R9maHv.mjs → rolldown-runtime-BOlb2svz.mjs} +1 -0
  12. package/jsonschema/eligius-configuration.json +120 -9
  13. package/jsonschema/operations/add-class.json +2 -7
  14. package/jsonschema/operations/add-controller-to-element.json +4 -3
  15. package/jsonschema/operations/add-globals-to-operation.json +40 -0
  16. package/jsonschema/operations/animate-with-class.json +8 -8
  17. package/jsonschema/operations/animate.json +10 -9
  18. package/jsonschema/operations/announce-to-screen-reader.json +2 -2
  19. package/jsonschema/operations/break-for-each.json +27 -0
  20. package/jsonschema/operations/broadcast-event.json +2 -2
  21. package/jsonschema/operations/calc.json +16 -3
  22. package/jsonschema/operations/clear-element.json +5 -14
  23. package/jsonschema/operations/clear-operation-data.json +3 -4
  24. package/jsonschema/operations/clear-storage.json +48 -0
  25. package/jsonschema/operations/compare-date.json +2 -2
  26. package/jsonschema/operations/concatenate-strings.json +2 -2
  27. package/jsonschema/operations/continue-for-each.json +27 -0
  28. package/jsonschema/operations/create-element.json +21 -5
  29. package/jsonschema/operations/custom-function.json +2 -2
  30. package/jsonschema/operations/end-action.json +5 -13
  31. package/jsonschema/operations/end-for-each.json +27 -0
  32. package/jsonschema/operations/end-when.json +27 -0
  33. package/jsonschema/operations/extend-controller.json +9 -7
  34. package/jsonschema/operations/filter-array.json +4 -12
  35. package/jsonschema/operations/find-in-array.json +4 -12
  36. package/jsonschema/operations/for-each.json +2 -3
  37. package/jsonschema/operations/format-date.json +2 -17
  38. package/jsonschema/operations/format-text.json +15 -7
  39. package/jsonschema/operations/get-attributes-from-element.json +9 -8
  40. package/jsonschema/operations/get-controller-from-element.json +2 -7
  41. package/jsonschema/operations/get-controller-instance.json +18 -5
  42. package/jsonschema/operations/get-current-time.json +3 -4
  43. package/jsonschema/operations/get-element-dimensions.json +4 -12
  44. package/jsonschema/operations/get-focused-element.json +3 -4
  45. package/jsonschema/operations/get-form-data.json +4 -12
  46. package/jsonschema/operations/get-import.json +2 -2
  47. package/jsonschema/operations/get-query-params.json +12 -5
  48. package/jsonschema/operations/get-scroll-position.json +3 -4
  49. package/jsonschema/operations/get-text-content.json +4 -12
  50. package/jsonschema/operations/http-delete.json +11 -3
  51. package/jsonschema/operations/http-post.json +11 -3
  52. package/jsonschema/operations/http-put.json +11 -3
  53. package/jsonschema/operations/invoke-object-method.json +2 -6
  54. package/jsonschema/operations/is-element-in-viewport.json +4 -12
  55. package/jsonschema/operations/load-from-storage.json +12 -3
  56. package/jsonschema/operations/load-json.json +5 -5
  57. package/jsonschema/operations/log.json +4 -7
  58. package/jsonschema/operations/map-array.json +2 -7
  59. package/jsonschema/operations/math.json +18 -3
  60. package/jsonschema/operations/otherwise.json +27 -0
  61. package/jsonschema/operations/remove-class.json +2 -7
  62. package/jsonschema/operations/remove-controller-from-element.json +2 -7
  63. package/jsonschema/operations/remove-element.json +5 -14
  64. package/jsonschema/operations/remove-properties-from-operation-data.json +2 -2
  65. package/jsonschema/operations/reparent-element.json +2 -7
  66. package/jsonschema/operations/replace-string.json +2 -6
  67. package/jsonschema/operations/replace-text.json +2 -6
  68. package/jsonschema/operations/request-action.json +2 -2
  69. package/jsonschema/operations/save-to-storage.json +12 -3
  70. package/jsonschema/operations/scroll-to-element.json +23 -13
  71. package/jsonschema/operations/scroll-to-position.json +12 -3
  72. package/jsonschema/operations/select-element.json +2 -2
  73. package/jsonschema/operations/set-data.json +8 -3
  74. package/jsonschema/operations/set-element-attributes.json +10 -9
  75. package/jsonschema/operations/set-element-content.json +5 -15
  76. package/jsonschema/operations/set-focus.json +5 -14
  77. package/jsonschema/operations/set-form-value.json +2 -7
  78. package/jsonschema/operations/set-global-data.json +2 -2
  79. package/jsonschema/operations/{set.json → set-operation-data.json} +12 -7
  80. package/jsonschema/operations/set-style.json +3 -8
  81. package/jsonschema/operations/set-variable.json +3 -5
  82. package/jsonschema/operations/sort-array.json +14 -13
  83. package/jsonschema/operations/split-string.json +2 -6
  84. package/jsonschema/operations/start-action.json +4 -12
  85. package/jsonschema/operations/substring-text.json +2 -6
  86. package/jsonschema/operations/toggle-class.json +2 -7
  87. package/jsonschema/operations/toggle-element.json +5 -14
  88. package/jsonschema/operations/toggle-form-element.json +2 -7
  89. package/jsonschema/operations/validate-form.json +41 -13
  90. package/jsonschema/operations/wait.json +2 -2
  91. package/jsonschema/operations/when.json +2 -2
  92. package/package.json +49 -24
@@ -5,14 +5,14 @@
5
5
  "title": "substringText Operation",
6
6
  "description": "Schema for the substringText operation",
7
7
  "required": [
8
+ "id",
8
9
  "systemName",
9
10
  "operationData"
10
11
  ],
11
12
  "properties": {
12
13
  "id": {
13
14
  "type": "string",
14
- "description": "Unique identifier for the operation (UUID format)",
15
- "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
+ "description": "Unique identifier for the operation"
16
16
  },
17
17
  "systemName": {
18
18
  "const": "substringText",
@@ -22,9 +22,6 @@
22
22
  "type": "object",
23
23
  "description": "Operation-specific configuration data",
24
24
  "properties": {
25
- "textContent": {
26
- "type": "string"
27
- },
28
25
  "start": {
29
26
  "type": "number"
30
27
  },
@@ -37,7 +34,6 @@
37
34
  },
38
35
  "additionalProperties": true,
39
36
  "required": [
40
- "textContent",
41
37
  "start"
42
38
  ]
43
39
  }
@@ -5,14 +5,14 @@
5
5
  "title": "toggleClass Operation",
6
6
  "description": "Schema for the toggleClass operation",
7
7
  "required": [
8
+ "id",
8
9
  "systemName",
9
10
  "operationData"
10
11
  ],
11
12
  "properties": {
12
13
  "id": {
13
14
  "type": "string",
14
- "description": "Unique identifier for the operation (UUID format)",
15
- "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
+ "description": "Unique identifier for the operation"
16
16
  },
17
17
  "systemName": {
18
18
  "const": "toggleClass",
@@ -22,10 +22,6 @@
22
22
  "type": "object",
23
23
  "description": "Operation-specific configuration data",
24
24
  "properties": {
25
- "selectedElement": {
26
- "description": "The element on which the class will be toggled",
27
- "type": "object"
28
- },
29
25
  "className": {
30
26
  "type": "string",
31
27
  "description": "The class that will be toggled"
@@ -33,7 +29,6 @@
33
29
  },
34
30
  "additionalProperties": true,
35
31
  "required": [
36
- "selectedElement",
37
32
  "className"
38
33
  ]
39
34
  }
@@ -5,14 +5,13 @@
5
5
  "title": "toggleElement Operation",
6
6
  "description": "Schema for the toggleElement operation",
7
7
  "required": [
8
- "systemName",
9
- "operationData"
8
+ "id",
9
+ "systemName"
10
10
  ],
11
11
  "properties": {
12
12
  "id": {
13
13
  "type": "string",
14
- "description": "Unique identifier for the operation (UUID format)",
15
- "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}$"
14
+ "description": "Unique identifier for the operation"
16
15
  },
17
16
  "systemName": {
18
17
  "const": "toggleElement",
@@ -21,16 +20,8 @@
21
20
  "operationData": {
22
21
  "type": "object",
23
22
  "description": "Operation-specific configuration data",
24
- "properties": {
25
- "selectedElement": {
26
- "description": "The element whose visibility will be toggled",
27
- "type": "object"
28
- }
29
- },
30
- "additionalProperties": true,
31
- "required": [
32
- "selectedElement"
33
- ]
23
+ "properties": {},
24
+ "additionalProperties": true
34
25
  }
35
26
  },
36
27
  "additionalProperties": false
@@ -5,14 +5,14 @@
5
5
  "title": "toggleFormElement Operation",
6
6
  "description": "Schema for the toggleFormElement operation",
7
7
  "required": [
8
+ "id",
8
9
  "systemName",
9
10
  "operationData"
10
11
  ],
11
12
  "properties": {
12
13
  "id": {
13
14
  "type": "string",
14
- "description": "Unique identifier for the operation (UUID format)",
15
- "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
+ "description": "Unique identifier for the operation"
16
16
  },
17
17
  "systemName": {
18
18
  "const": "toggleFormElement",
@@ -22,17 +22,12 @@
22
22
  "type": "object",
23
23
  "description": "Operation-specific configuration data",
24
24
  "properties": {
25
- "selectedElement": {
26
- "type": "object",
27
- "description": "DOM element (JQuery)"
28
- },
29
25
  "enabled": {
30
26
  "type": "boolean"
31
27
  }
32
28
  },
33
29
  "additionalProperties": true,
34
30
  "required": [
35
- "selectedElement",
36
31
  "enabled"
37
32
  ]
38
33
  }
@@ -5,14 +5,13 @@
5
5
  "title": "validateForm Operation",
6
6
  "description": "Schema for the validateForm operation",
7
7
  "required": [
8
- "systemName",
9
- "operationData"
8
+ "id",
9
+ "systemName"
10
10
  ],
11
11
  "properties": {
12
12
  "id": {
13
13
  "type": "string",
14
- "description": "Unique identifier for the operation (UUID format)",
15
- "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}$"
14
+ "description": "Unique identifier for the operation"
16
15
  },
17
16
  "systemName": {
18
17
  "const": "validateForm",
@@ -22,10 +21,6 @@
22
21
  "type": "object",
23
22
  "description": "Operation-specific configuration data",
24
23
  "properties": {
25
- "selectedElement": {
26
- "type": "object",
27
- "description": "DOM element (JQuery)"
28
- },
29
24
  "validationRules": {
30
25
  "$ref": "#/definitions/Record%3Cstring%2CIValidationRules%3E"
31
26
  },
@@ -36,11 +31,44 @@
36
31
  "type": "boolean"
37
32
  }
38
33
  },
39
- "additionalProperties": true,
40
- "required": [
41
- "selectedElement"
42
- ]
34
+ "additionalProperties": true
43
35
  }
44
36
  },
45
- "additionalProperties": false
37
+ "additionalProperties": false,
38
+ "definitions": {
39
+ "Record<string,IValidationRules>": {
40
+ "type": "object",
41
+ "additionalProperties": {
42
+ "$ref": "#/definitions/IValidationRules"
43
+ }
44
+ },
45
+ "IValidationRules": {
46
+ "type": "object",
47
+ "properties": {
48
+ "required": {
49
+ "type": "boolean"
50
+ },
51
+ "minLength": {
52
+ "type": "number"
53
+ },
54
+ "maxLength": {
55
+ "type": "number"
56
+ },
57
+ "pattern": {
58
+ "anyOf": [
59
+ {
60
+ "type": "string"
61
+ },
62
+ {
63
+ "type": "string",
64
+ "format": "regex"
65
+ }
66
+ ]
67
+ },
68
+ "email": {
69
+ "type": "boolean"
70
+ }
71
+ }
72
+ }
73
+ }
46
74
  }
@@ -5,14 +5,14 @@
5
5
  "title": "wait Operation",
6
6
  "description": "Schema for the wait operation",
7
7
  "required": [
8
+ "id",
8
9
  "systemName",
9
10
  "operationData"
10
11
  ],
11
12
  "properties": {
12
13
  "id": {
13
14
  "type": "string",
14
- "description": "Unique identifier for the operation (UUID format)",
15
- "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
+ "description": "Unique identifier for the operation"
16
16
  },
17
17
  "systemName": {
18
18
  "const": "wait",
@@ -5,14 +5,14 @@
5
5
  "title": "when Operation",
6
6
  "description": "Schema for the when operation",
7
7
  "required": [
8
+ "id",
8
9
  "systemName",
9
10
  "operationData"
10
11
  ],
11
12
  "properties": {
12
13
  "id": {
13
14
  "type": "string",
14
- "description": "Unique identifier for the operation (UUID format)",
15
- "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
+ "description": "Unique identifier for the operation"
16
16
  },
17
17
  "systemName": {
18
18
  "const": "when",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eligius",
3
3
  "author": "Roland Zwaga <rbzwaga@gmail.com>",
4
- "version": "2.3.2",
4
+ "version": "3.0.1",
5
5
  "license": "MIT",
6
6
  "homepage": "https://rolandzwaga.github.io/eligius/",
7
7
  "bugs": {
@@ -13,18 +13,30 @@
13
13
  },
14
14
  "type": "module",
15
15
  "exports": {
16
- ".": "./dist/index.mjs",
17
- "./metadata": "./dist/metadata.mjs",
16
+ ".": {
17
+ "types": "./dist/index.d.mts",
18
+ "default": "./dist/index.mjs"
19
+ },
20
+ "./metadata": {
21
+ "types": "./dist/metadata.d.mts",
22
+ "default": "./dist/metadata.mjs"
23
+ },
24
+ "./configuration-api": {
25
+ "types": "./dist/configuration-api.d.mts",
26
+ "default": "./dist/configuration-api.mjs"
27
+ },
18
28
  "./package.json": "./package.json"
19
29
  },
20
30
  "typesVersions": {
21
31
  "*": {
22
- "*": [
23
- "dist/*"
32
+ "metadata": [
33
+ "dist/metadata.d.mts"
34
+ ],
35
+ "configuration-api": [
36
+ "dist/configuration-api.d.mts"
24
37
  ]
25
38
  }
26
39
  },
27
- "typings": "dist/index.d.ts",
28
40
  "files": [
29
41
  "dist",
30
42
  "jsonschema"
@@ -39,7 +51,7 @@
39
51
  "test:coverage": "vitest --config src/vitest.config.ts --coverage",
40
52
  "generate-readmes": "tsx ./src/tools/doc-tools/generate-readmes",
41
53
  "generate-schema": "tsx ./src/tools/schema-tools/generate-schemas",
42
- "typedoc": "typedoc --options typedoc-metadata.json & typedoc --options typedoc.json",
54
+ "typedoc": "typedoc --options typedoc-metadata.json && typedoc --options typedoc.json",
43
55
  "docs": "npm run generate-schema && npm run typedoc && node copy-schema && npm run generate-readmes",
44
56
  "opers-metadata": "tsx src/tools/code-generator/metadata-generator.ts",
45
57
  "ctrls-metadata": "tsx src/tools/code-generator/ctrls-metadata-generator.ts",
@@ -47,45 +59,58 @@
47
59
  "metadata": "npm run opers-metadata && npm run ctrls-metadata && npm run events-metadata",
48
60
  "ts-types": " tsc --noEmit false --emitDeclarationOnly --outDir dist",
49
61
  "build": "rimraf dist && npm run metadata && npm run generate-schema && tsdown",
50
- "codemod": "tsx src/tools/code-generator/uvu2vitest-codemod.ts",
62
+ "check:types": "tsx src/tools/type-tools/check-dist-types.ts",
51
63
  "lint": "biome lint --write .",
52
64
  "format": "biome format --write .",
53
65
  "fix": "biome check --write ."
54
66
  },
55
67
  "devDependencies": {
56
- "@biomejs/biome": "2.5.0",
68
+ "@biomejs/biome": "2.5.15",
57
69
  "@rollup/plugin-alias": "6.0.0",
58
70
  "@types/fs-extra": "11.0.4",
59
71
  "@types/jquery": "4.0.1",
60
- "@types/jsdom": "28.0.3",
61
- "@types/node": "25.9.3",
72
+ "@types/jsdom": "30.0.0",
73
+ "@types/node": "26.6.5",
62
74
  "@types/uuid": "11.0.0",
63
- "@typescript/native-preview": "7.0.0-dev.20260616.1",
64
- "@vitest/coverage-istanbul": "4.1.9",
65
- "fs-extra": "11.3.5",
75
+ "@typescript/native-preview": "7.0.0-dev.20260707.2",
76
+ "@vitest/coverage-istanbul": "5.0.5",
77
+ "ajv": "8.20.0",
78
+ "fs-extra": "11.4.1",
66
79
  "jquery": "4.0.0",
67
- "jsdom": "29.1.1",
80
+ "jsdom": "30.1.3",
68
81
  "lottie-web": "5.13.0",
69
82
  "rimraf": "6.1.3",
70
83
  "ts-json-schema-generator": "2.9.0",
71
84
  "ts-morph": "28.0.0",
72
- "tsdown": "0.22.2",
73
- "tsx": "4.22.4",
74
- "typedoc": "0.28.19",
75
- "video.js": "8.23.7",
76
- "vite-tsconfig-paths": "6.1.1",
77
- "vitest": "4.1.9"
85
+ "tsdown": "0.23.1",
86
+ "tsx": "4.23.15",
87
+ "typedoc": "0.28.20",
88
+ "typegraph-mcp": "^0.9.56",
89
+ "video.js": "8.24.2",
90
+ "vitest": "5.0.5"
78
91
  },
79
92
  "peerDependencies": {
93
+ "@types/jquery": "^4.0.1",
80
94
  "jquery": "4.0.0",
81
95
  "lottie-web": "5.13.0",
82
- "video.js": "8.23.7"
96
+ "video.js": "8.24.2"
97
+ },
98
+ "peerDependenciesMeta": {
99
+ "@types/jquery": {
100
+ "optional": true
101
+ },
102
+ "lottie-web": {
103
+ "optional": true
104
+ },
105
+ "video.js": {
106
+ "optional": true
107
+ }
83
108
  },
84
109
  "dependencies": {
85
- "hotkeys-js": "4.0.4",
110
+ "hotkeys-js": "4.0.8",
86
111
  "rosetta": "1.1.0",
87
112
  "ts-is-present": "1.2.2",
88
- "uuid": "14.0.0"
113
+ "uuid": "14.0.3"
89
114
  },
90
115
  "types": "./dist/index.d.mts"
91
116
  }