eligius 1.4.0 → 1.4.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 (70) hide show
  1. package/dist/index.d.ts +840 -16
  2. package/dist/index.js +927 -32
  3. package/dist/index.js.map +1 -1
  4. package/jsonschema/endable-action-template.json +186 -0
  5. package/jsonschema/endable-action.json +186 -0
  6. package/jsonschema/event-action.json +93 -0
  7. package/jsonschema/operation-templates/announce-to-screen-reader.json +43 -0
  8. package/jsonschema/operation-templates/clear-storage.json +43 -0
  9. package/jsonschema/operation-templates/compare-date.json +41 -0
  10. package/jsonschema/operation-templates/concatenate-strings.json +45 -0
  11. package/jsonschema/operation-templates/filter-array.json +51 -0
  12. package/jsonschema/operation-templates/find-in-array.json +51 -0
  13. package/jsonschema/operation-templates/format-date.json +39 -0
  14. package/jsonschema/operation-templates/format-text.json +37 -0
  15. package/jsonschema/operation-templates/get-current-time.json +26 -0
  16. package/jsonschema/operation-templates/get-focused-element.json +26 -0
  17. package/jsonschema/operation-templates/get-form-data.json +26 -0
  18. package/jsonschema/operation-templates/get-scroll-position.json +26 -0
  19. package/jsonschema/operation-templates/get-text-content.json +26 -0
  20. package/jsonschema/operation-templates/http-delete.json +45 -0
  21. package/jsonschema/operation-templates/http-post.json +51 -0
  22. package/jsonschema/operation-templates/http-put.json +51 -0
  23. package/jsonschema/operation-templates/is-element-in-viewport.json +26 -0
  24. package/jsonschema/operation-templates/load-from-storage.json +43 -0
  25. package/jsonschema/operation-templates/map-array.json +39 -0
  26. package/jsonschema/operation-templates/replace-string.json +43 -0
  27. package/jsonschema/operation-templates/replace-text.json +43 -0
  28. package/jsonschema/operation-templates/save-to-storage.json +49 -0
  29. package/jsonschema/operation-templates/scroll-to-element.json +45 -0
  30. package/jsonschema/operation-templates/scroll-to-position.json +49 -0
  31. package/jsonschema/operation-templates/set-focus.json +26 -0
  32. package/jsonschema/operation-templates/set-form-value.json +37 -0
  33. package/jsonschema/operation-templates/sort-array.json +49 -0
  34. package/jsonschema/operation-templates/split-string.json +43 -0
  35. package/jsonschema/operation-templates/substring-text.json +45 -0
  36. package/jsonschema/operation-templates/toggle-form-element.json +39 -0
  37. package/jsonschema/operation-templates/validate-form.json +39 -0
  38. package/jsonschema/operations/announce-to-screen-reader.json +47 -0
  39. package/jsonschema/operations/clear-storage.json +47 -0
  40. package/jsonschema/operations/compare-date.json +46 -0
  41. package/jsonschema/operations/concatenate-strings.json +49 -0
  42. package/jsonschema/operations/filter-array.json +53 -0
  43. package/jsonschema/operations/find-in-array.json +53 -0
  44. package/jsonschema/operations/format-date.json +43 -0
  45. package/jsonschema/operations/format-text.json +41 -0
  46. package/jsonschema/operations/get-current-time.json +26 -0
  47. package/jsonschema/operations/get-focused-element.json +26 -0
  48. package/jsonschema/operations/get-form-data.json +26 -0
  49. package/jsonschema/operations/get-scroll-position.json +26 -0
  50. package/jsonschema/operations/get-text-content.json +26 -0
  51. package/jsonschema/operations/http-delete.json +49 -0
  52. package/jsonschema/operations/http-post.json +55 -0
  53. package/jsonschema/operations/http-put.json +55 -0
  54. package/jsonschema/operations/is-element-in-viewport.json +26 -0
  55. package/jsonschema/operations/load-from-storage.json +48 -0
  56. package/jsonschema/operations/map-array.json +43 -0
  57. package/jsonschema/operations/replace-string.json +48 -0
  58. package/jsonschema/operations/replace-text.json +48 -0
  59. package/jsonschema/operations/save-to-storage.json +55 -0
  60. package/jsonschema/operations/scroll-to-element.json +47 -0
  61. package/jsonschema/operations/scroll-to-position.json +54 -0
  62. package/jsonschema/operations/set-focus.json +26 -0
  63. package/jsonschema/operations/set-form-value.json +41 -0
  64. package/jsonschema/operations/sort-array.json +51 -0
  65. package/jsonschema/operations/split-string.json +47 -0
  66. package/jsonschema/operations/substring-text.json +49 -0
  67. package/jsonschema/operations/toggle-form-element.json +43 -0
  68. package/jsonschema/operations/validate-form.json +41 -0
  69. package/jsonschema/timeline-action.json +186 -0
  70. package/package.json +1 -1
@@ -0,0 +1,45 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://eligius.com/schema/substring-text-operation.json",
5
+ "type": "object",
6
+ "title": "The substringText schema",
7
+ "description": "Extracts a substring from text between start and end indices.",
8
+ "required": [
9
+ "systemName"
10
+ ],
11
+ "properties": {
12
+ "id": {
13
+ "$id": "#/properties/id",
14
+ "type": "string",
15
+ "title": "The Id Schema",
16
+ "examples": [
17
+ "123e4567-e89b-12d3-a456-426614174000"
18
+ ],
19
+ "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}$"
20
+ },
21
+ "systemName": {
22
+ "$id": "#/properties/systemName",
23
+ "const": "substringText"
24
+ },
25
+ "operationData": {
26
+ "$id": "#/properties/operationData",
27
+ "type": "object",
28
+ "title": "The Operationdata Schema",
29
+ "properties": {
30
+ "start": {
31
+ "$id": "#/properties/operationData/start",
32
+ "type": [
33
+ "number"
34
+ ]
35
+ },
36
+ "end": {
37
+ "$id": "#/properties/operationData/end",
38
+ "type": [
39
+ "number"
40
+ ]
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://eligius.com/schema/toggle-form-element-operation.json",
5
+ "type": "object",
6
+ "title": "The toggleFormElement schema",
7
+ "description": "Enables or disables form input elements (inputs, selects, textareas, buttons).\n\nSets the `disabled` property on the element. When `enabled` is true, removes the disabled\nattribute; when false, adds the disabled attribute.",
8
+ "required": [
9
+ "systemName"
10
+ ],
11
+ "properties": {
12
+ "id": {
13
+ "$id": "#/properties/id",
14
+ "type": "string",
15
+ "title": "The Id Schema",
16
+ "examples": [
17
+ "123e4567-e89b-12d3-a456-426614174000"
18
+ ],
19
+ "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}$"
20
+ },
21
+ "systemName": {
22
+ "$id": "#/properties/systemName",
23
+ "const": "toggleFormElement"
24
+ },
25
+ "operationData": {
26
+ "$id": "#/properties/operationData",
27
+ "type": "object",
28
+ "title": "The Operationdata Schema",
29
+ "properties": {
30
+ "enabled": {
31
+ "$id": "#/properties/operationData/enabled",
32
+ "type": [
33
+ "boolean"
34
+ ]
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://eligius.com/schema/validate-form-operation.json",
5
+ "type": "object",
6
+ "title": "The validateForm schema",
7
+ "description": "Validates form fields against HTML5 validation and custom rules.\n\nUses HTML5 validation API (checkValidity()) for native validation, and supports\ncustom validation rules for: required, minLength, maxLength, pattern (regex), and email format.",
8
+ "required": [
9
+ "systemName"
10
+ ],
11
+ "properties": {
12
+ "id": {
13
+ "$id": "#/properties/id",
14
+ "type": "string",
15
+ "title": "The Id Schema",
16
+ "examples": [
17
+ "123e4567-e89b-12d3-a456-426614174000"
18
+ ],
19
+ "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}$"
20
+ },
21
+ "systemName": {
22
+ "$id": "#/properties/systemName",
23
+ "const": "validateForm"
24
+ },
25
+ "operationData": {
26
+ "$id": "#/properties/operationData",
27
+ "type": "object",
28
+ "title": "The Operationdata Schema",
29
+ "properties": {
30
+ "validationRules": {
31
+ "$id": "#/properties/operationData/validationRules",
32
+ "type": [
33
+ "object"
34
+ ]
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://eligius.com/schema/announce-to-screen-reader-operation.json",
5
+ "type": "object",
6
+ "title": "The announceToScreenReader schema",
7
+ "description": "Announces a message to screen readers using an ARIA live region.",
8
+ "required": [
9
+ "systemName",
10
+ "operationData"
11
+ ],
12
+ "properties": {
13
+ "id": {
14
+ "$id": "#/properties/id",
15
+ "type": "string",
16
+ "title": "The Id Schema",
17
+ "examples": [
18
+ "123e4567-e89b-12d3-a456-426614174000"
19
+ ],
20
+ "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}$"
21
+ },
22
+ "systemName": {
23
+ "$id": "#/properties/systemName",
24
+ "const": "announceToScreenReader"
25
+ },
26
+ "operationData": {
27
+ "$id": "#/properties/operationData",
28
+ "type": "object",
29
+ "title": "The Operationdata Schema",
30
+ "required": [
31
+ "message"
32
+ ],
33
+ "properties": {
34
+ "message": {
35
+ "$id": "#/properties/operationData/message",
36
+ "type": [
37
+ "string"
38
+ ]
39
+ },
40
+ "priority": {
41
+ "$id": "#/properties/operationData/priority",
42
+ "type": "array"
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://eligius.com/schema/clear-storage-operation.json",
5
+ "type": "object",
6
+ "title": "The clearStorage schema",
7
+ "description": "Clears data from browser storage (localStorage or sessionStorage).\n\nIf `key` is provided, removes only that key. If `key` is omitted, clears all storage.",
8
+ "required": [
9
+ "systemName",
10
+ "operationData"
11
+ ],
12
+ "properties": {
13
+ "id": {
14
+ "$id": "#/properties/id",
15
+ "type": "string",
16
+ "title": "The Id Schema",
17
+ "examples": [
18
+ "123e4567-e89b-12d3-a456-426614174000"
19
+ ],
20
+ "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}$"
21
+ },
22
+ "systemName": {
23
+ "$id": "#/properties/systemName",
24
+ "const": "clearStorage"
25
+ },
26
+ "operationData": {
27
+ "$id": "#/properties/operationData",
28
+ "type": "object",
29
+ "title": "The Operationdata Schema",
30
+ "required": [
31
+ "storageType"
32
+ ],
33
+ "properties": {
34
+ "key": {
35
+ "$id": "#/properties/operationData/key",
36
+ "type": [
37
+ "string"
38
+ ]
39
+ },
40
+ "storageType": {
41
+ "$id": "#/properties/operationData/storageType",
42
+ "type": "array"
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://eligius.com/schema/compare-date-operation.json",
5
+ "type": "object",
6
+ "title": "The compareDate schema",
7
+ "description": "Compares two dates.\ncomparison: -1 (before), 0 (equal), 1 (after)",
8
+ "required": [
9
+ "systemName",
10
+ "operationData"
11
+ ],
12
+ "properties": {
13
+ "id": {
14
+ "$id": "#/properties/id",
15
+ "type": "string",
16
+ "title": "The Id Schema",
17
+ "examples": [
18
+ "123e4567-e89b-12d3-a456-426614174000"
19
+ ],
20
+ "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}$"
21
+ },
22
+ "systemName": {
23
+ "$id": "#/properties/systemName",
24
+ "const": "compareDate"
25
+ },
26
+ "operationData": {
27
+ "$id": "#/properties/operationData",
28
+ "type": "object",
29
+ "title": "The Operationdata Schema",
30
+ "required": [
31
+ "date1",
32
+ "date2"
33
+ ],
34
+ "properties": {
35
+ "date1": {
36
+ "$id": "#/properties/operationData/date1",
37
+ "type": "array"
38
+ },
39
+ "date2": {
40
+ "$id": "#/properties/operationData/date2",
41
+ "type": "array"
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://eligius.com/schema/concatenate-strings-operation.json",
5
+ "type": "object",
6
+ "title": "The concatenateStrings schema",
7
+ "description": "Concatenates multiple strings with an optional separator.",
8
+ "required": [
9
+ "systemName",
10
+ "operationData"
11
+ ],
12
+ "properties": {
13
+ "id": {
14
+ "$id": "#/properties/id",
15
+ "type": "string",
16
+ "title": "The Id Schema",
17
+ "examples": [
18
+ "123e4567-e89b-12d3-a456-426614174000"
19
+ ],
20
+ "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}$"
21
+ },
22
+ "systemName": {
23
+ "$id": "#/properties/systemName",
24
+ "const": "concatenateStrings"
25
+ },
26
+ "operationData": {
27
+ "$id": "#/properties/operationData",
28
+ "type": "object",
29
+ "title": "The Operationdata Schema",
30
+ "required": [
31
+ "strings"
32
+ ],
33
+ "properties": {
34
+ "strings": {
35
+ "$id": "#/properties/operationData/strings",
36
+ "type": [
37
+ "array"
38
+ ]
39
+ },
40
+ "separator": {
41
+ "$id": "#/properties/operationData/separator",
42
+ "type": [
43
+ "string"
44
+ ]
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://eligius.com/schema/filter-array-operation.json",
5
+ "type": "object",
6
+ "title": "The filterArray schema",
7
+ "description": "Filters an array based on property equality or custom predicate function.\n\nOperates on arrayData passed from previous operations.\nSupports two filtering modes:\n1. Property equality: `filterProperty` and `filterValue` to filter by property match\n2. Custom predicate: `filterPredicate` function for complex filtering logic",
8
+ "required": [
9
+ "systemName",
10
+ "operationData"
11
+ ],
12
+ "properties": {
13
+ "id": {
14
+ "$id": "#/properties/id",
15
+ "type": "string",
16
+ "title": "The Id Schema",
17
+ "examples": [
18
+ "123e4567-e89b-12d3-a456-426614174000"
19
+ ],
20
+ "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}$"
21
+ },
22
+ "systemName": {
23
+ "$id": "#/properties/systemName",
24
+ "const": "filterArray"
25
+ },
26
+ "operationData": {
27
+ "$id": "#/properties/operationData",
28
+ "type": "object",
29
+ "title": "The Operationdata Schema",
30
+ "required": [],
31
+ "properties": {
32
+ "filterProperty": {
33
+ "$id": "#/properties/operationData/filterProperty",
34
+ "type": [
35
+ "string"
36
+ ]
37
+ },
38
+ "filterValue": {
39
+ "$id": "#/properties/operationData/filterValue",
40
+ "type": [
41
+ "object"
42
+ ]
43
+ },
44
+ "filterPredicate": {
45
+ "$id": "#/properties/operationData/filterPredicate",
46
+ "type": [
47
+ "string"
48
+ ]
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://eligius.com/schema/find-in-array-operation.json",
5
+ "type": "object",
6
+ "title": "The findInArray schema",
7
+ "description": "Finds the first element in an array matching criteria.\n\nOperates on arrayData passed from previous operations.\nSupports two search modes:\n1. Property equality: `findProperty` and `findValue` to find by property match\n2. Custom predicate: `findPredicate` function for complex search logic\n\nReturns `undefined` for `foundItem` and `-1` for `foundIndex` if no match found.",
8
+ "required": [
9
+ "systemName",
10
+ "operationData"
11
+ ],
12
+ "properties": {
13
+ "id": {
14
+ "$id": "#/properties/id",
15
+ "type": "string",
16
+ "title": "The Id Schema",
17
+ "examples": [
18
+ "123e4567-e89b-12d3-a456-426614174000"
19
+ ],
20
+ "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}$"
21
+ },
22
+ "systemName": {
23
+ "$id": "#/properties/systemName",
24
+ "const": "findInArray"
25
+ },
26
+ "operationData": {
27
+ "$id": "#/properties/operationData",
28
+ "type": "object",
29
+ "title": "The Operationdata Schema",
30
+ "required": [],
31
+ "properties": {
32
+ "findProperty": {
33
+ "$id": "#/properties/operationData/findProperty",
34
+ "type": [
35
+ "string"
36
+ ]
37
+ },
38
+ "findValue": {
39
+ "$id": "#/properties/operationData/findValue",
40
+ "type": [
41
+ "object"
42
+ ]
43
+ },
44
+ "findPredicate": {
45
+ "$id": "#/properties/operationData/findPredicate",
46
+ "type": [
47
+ "string"
48
+ ]
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://eligius.com/schema/format-date-operation.json",
5
+ "type": "object",
6
+ "title": "The formatDate schema",
7
+ "description": "Formats a date using Intl.DateTimeFormat or simple patterns.",
8
+ "required": [
9
+ "systemName",
10
+ "operationData"
11
+ ],
12
+ "properties": {
13
+ "id": {
14
+ "$id": "#/properties/id",
15
+ "type": "string",
16
+ "title": "The Id Schema",
17
+ "examples": [
18
+ "123e4567-e89b-12d3-a456-426614174000"
19
+ ],
20
+ "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}$"
21
+ },
22
+ "systemName": {
23
+ "$id": "#/properties/systemName",
24
+ "const": "formatDate"
25
+ },
26
+ "operationData": {
27
+ "$id": "#/properties/operationData",
28
+ "type": "object",
29
+ "title": "The Operationdata Schema",
30
+ "required": [
31
+ "format"
32
+ ],
33
+ "properties": {
34
+ "format": {
35
+ "$id": "#/properties/operationData/format",
36
+ "type": [
37
+ "string"
38
+ ]
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://eligius.com/schema/format-text-operation.json",
5
+ "type": "object",
6
+ "title": "The formatText schema",
7
+ "description": "Transforms text using format operations: uppercase, lowercase, capitalize, titlecase, or trim.\n\nOperates on textContent passed from previous operations (e.g., getTextContent).\n\nTransformations:\n- `uppercase`: Convert all characters to uppercase\n- `lowercase`: Convert all characters to lowercase\n- `capitalize`: Capitalize only the first letter\n- `titlecase`: Capitalize first letter of each word\n- `trim`: Remove leading and trailing whitespace",
8
+ "required": [
9
+ "systemName",
10
+ "operationData"
11
+ ],
12
+ "properties": {
13
+ "id": {
14
+ "$id": "#/properties/id",
15
+ "type": "string",
16
+ "title": "The Id Schema",
17
+ "examples": [
18
+ "123e4567-e89b-12d3-a456-426614174000"
19
+ ],
20
+ "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}$"
21
+ },
22
+ "systemName": {
23
+ "$id": "#/properties/systemName",
24
+ "const": "formatText"
25
+ },
26
+ "operationData": {
27
+ "$id": "#/properties/operationData",
28
+ "type": "object",
29
+ "title": "The Operationdata Schema",
30
+ "required": [
31
+ "transformation"
32
+ ],
33
+ "properties": {
34
+ "transformation": {
35
+ "$id": "#/properties/operationData/transformation",
36
+ "type": "array"
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://eligius.com/schema/get-current-time-operation.json",
5
+ "type": "object",
6
+ "title": "The getCurrentTime schema",
7
+ "description": "Gets the current time as timestamp and Date object.",
8
+ "required": [
9
+ "systemName"
10
+ ],
11
+ "properties": {
12
+ "id": {
13
+ "$id": "#/properties/id",
14
+ "type": "string",
15
+ "title": "The Id Schema",
16
+ "examples": [
17
+ "123e4567-e89b-12d3-a456-426614174000"
18
+ ],
19
+ "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}$"
20
+ },
21
+ "systemName": {
22
+ "$id": "#/properties/systemName",
23
+ "const": "getCurrentTime"
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://eligius.com/schema/get-focused-element-operation.json",
5
+ "type": "object",
6
+ "title": "The getFocusedElement schema",
7
+ "description": "Gets the currently focused element.",
8
+ "required": [
9
+ "systemName"
10
+ ],
11
+ "properties": {
12
+ "id": {
13
+ "$id": "#/properties/id",
14
+ "type": "string",
15
+ "title": "The Id Schema",
16
+ "examples": [
17
+ "123e4567-e89b-12d3-a456-426614174000"
18
+ ],
19
+ "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}$"
20
+ },
21
+ "systemName": {
22
+ "$id": "#/properties/systemName",
23
+ "const": "getFocusedElement"
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://eligius.com/schema/get-form-data-operation.json",
5
+ "type": "object",
6
+ "title": "The getFormData schema",
7
+ "description": "Extracts all input, select, and textarea values from form element into operation data.\n\nThis operation reads form field values and returns them as an object with field names as keys.\nOnly processes form elements that are enabled and not hidden. Handles checkboxes, radio buttons,\nselect elements, textareas, and text inputs.",
8
+ "required": [
9
+ "systemName"
10
+ ],
11
+ "properties": {
12
+ "id": {
13
+ "$id": "#/properties/id",
14
+ "type": "string",
15
+ "title": "The Id Schema",
16
+ "examples": [
17
+ "123e4567-e89b-12d3-a456-426614174000"
18
+ ],
19
+ "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}$"
20
+ },
21
+ "systemName": {
22
+ "$id": "#/properties/systemName",
23
+ "const": "getFormData"
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://eligius.com/schema/get-scroll-position-operation.json",
5
+ "type": "object",
6
+ "title": "The getScrollPosition schema",
7
+ "description": "Gets the current scroll position of the viewport.\n\nReturns x (horizontal) and y (vertical) scroll positions in pixels.\nUses cross-browser compatible methods to retrieve scroll position.",
8
+ "required": [
9
+ "systemName"
10
+ ],
11
+ "properties": {
12
+ "id": {
13
+ "$id": "#/properties/id",
14
+ "type": "string",
15
+ "title": "The Id Schema",
16
+ "examples": [
17
+ "123e4567-e89b-12d3-a456-426614174000"
18
+ ],
19
+ "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}$"
20
+ },
21
+ "systemName": {
22
+ "$id": "#/properties/systemName",
23
+ "const": "getScrollPosition"
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "definitions": {},
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "http://eligius.com/schema/get-text-content-operation.json",
5
+ "type": "object",
6
+ "title": "The getTextContent schema",
7
+ "description": "Extracts text content from element, stripping all HTML markup.\n\nUses jQuery's `.text()` method which is XSS-safe and returns only the text content\nwithout any HTML tags. Preserves whitespace and text from nested elements.",
8
+ "required": [
9
+ "systemName"
10
+ ],
11
+ "properties": {
12
+ "id": {
13
+ "$id": "#/properties/id",
14
+ "type": "string",
15
+ "title": "The Id Schema",
16
+ "examples": [
17
+ "123e4567-e89b-12d3-a456-426614174000"
18
+ ],
19
+ "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}$"
20
+ },
21
+ "systemName": {
22
+ "$id": "#/properties/systemName",
23
+ "const": "getTextContent"
24
+ }
25
+ }
26
+ }