eligius 2.1.0 → 2.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.
- package/dist/index.d.mts +452 -227
- package/dist/index.mjs +356 -283
- package/dist/index.mjs.map +1 -1
- package/jsonschema/eligius-configuration.json +698 -125
- package/jsonschema/operations/add-class.json +20 -23
- package/jsonschema/operations/add-controller-to-element.json +13 -12
- package/jsonschema/operations/animate-with-class.json +21 -25
- package/jsonschema/operations/animate.json +23 -31
- package/jsonschema/operations/announce-to-screen-reader.json +20 -24
- package/jsonschema/operations/broadcast-event.json +19 -31
- package/jsonschema/operations/calc.json +24 -30
- package/jsonschema/operations/clear-element.json +24 -13
- package/jsonschema/operations/clear-operation-data.json +15 -18
- package/jsonschema/operations/compare-date.json +51 -23
- package/jsonschema/operations/concatenate-strings.json +22 -24
- package/jsonschema/operations/create-element.json +11 -144
- package/jsonschema/operations/custom-function.json +15 -22
- package/jsonschema/operations/end-action.json +19 -22
- package/jsonschema/operations/extend-controller.json +19 -22
- package/jsonschema/operations/filter-array.json +40 -26
- package/jsonschema/operations/find-in-array.json +40 -26
- package/jsonschema/operations/for-each.json +23 -22
- package/jsonschema/operations/format-date.json +33 -22
- package/jsonschema/operations/format-text.json +22 -20
- package/jsonschema/operations/get-attributes-from-element.json +28 -22
- package/jsonschema/operations/get-controller-from-element.json +23 -34
- package/jsonschema/operations/get-controller-instance.json +11 -25
- package/jsonschema/operations/get-current-time.json +23 -13
- package/jsonschema/operations/get-element-dimensions.json +30 -20
- package/jsonschema/operations/get-focused-element.json +20 -13
- package/jsonschema/operations/get-form-data.json +27 -13
- package/jsonschema/operations/get-import.json +17 -23
- package/jsonschema/operations/get-query-params.json +17 -18
- package/jsonschema/operations/get-scroll-position.json +23 -13
- package/jsonschema/operations/get-text-content.json +27 -13
- package/jsonschema/operations/http-delete.json +20 -24
- package/jsonschema/operations/http-post.json +21 -30
- package/jsonschema/operations/http-put.json +21 -30
- package/jsonschema/operations/invoke-object-method.json +26 -24
- package/jsonschema/operations/is-element-in-viewport.json +27 -13
- package/jsonschema/operations/load-from-storage.json +19 -26
- package/jsonschema/operations/load-json.json +21 -24
- package/jsonschema/operations/log.json +13 -26
- package/jsonschema/operations/map-array.json +39 -22
- package/jsonschema/operations/math.json +33 -27
- package/jsonschema/operations/remove-class.json +20 -23
- package/jsonschema/operations/remove-controller-from-element.json +20 -34
- package/jsonschema/operations/remove-element.json +24 -13
- package/jsonschema/operations/remove-properties-from-operation-data.json +18 -22
- package/jsonschema/operations/reparent-element.json +20 -22
- package/jsonschema/operations/replace-string.json +32 -25
- package/jsonschema/operations/replace-text.json +32 -25
- package/jsonschema/operations/request-action.json +18 -22
- package/jsonschema/operations/save-to-storage.json +19 -32
- package/jsonschema/operations/scroll-to-element.json +21 -22
- package/jsonschema/operations/scroll-to-position.json +18 -29
- package/jsonschema/operations/select-element.json +19 -24
- package/jsonschema/operations/set-data.json +15 -22
- package/jsonschema/operations/set-element-attributes.json +20 -22
- package/jsonschema/operations/set-element-content.json +36 -20
- package/jsonschema/operations/set-focus.json +24 -13
- package/jsonschema/operations/set-form-value.json +24 -20
- package/jsonschema/operations/set-global-data.json +18 -22
- package/jsonschema/operations/set-style.json +20 -22
- package/jsonschema/operations/set-variable.json +17 -31
- package/jsonschema/operations/set.json +40 -0
- package/jsonschema/operations/sort-array.json +39 -22
- package/jsonschema/operations/split-string.json +34 -22
- package/jsonschema/operations/start-action.json +19 -20
- package/jsonschema/operations/substring-text.json +23 -24
- package/jsonschema/operations/toggle-class.json +21 -23
- package/jsonschema/operations/toggle-element.json +24 -13
- package/jsonschema/operations/toggle-form-element.json +20 -22
- package/jsonschema/operations/validate-form.json +25 -18
- package/jsonschema/operations/wait.json +16 -22
- package/jsonschema/operations/when.json +15 -22
- package/package.json +9 -7
- package/jsonschema/endable-action-template.json +0 -527
- package/jsonschema/endable-action.json +0 -527
- package/jsonschema/engine-config.json +0 -21
- package/jsonschema/event-action.json +0 -295
- package/jsonschema/mediaplayer-timeline-provider-settings.json +0 -95
- package/jsonschema/operation-templates/add-class.json +0 -40
- package/jsonschema/operation-templates/add-controller-to-element.json +0 -26
- package/jsonschema/operation-templates/add-globals-to-operation.json +0 -39
- package/jsonschema/operation-templates/animate-with-class.json +0 -44
- package/jsonschema/operation-templates/animate.json +0 -51
- package/jsonschema/operation-templates/announce-to-screen-reader.json +0 -43
- package/jsonschema/operation-templates/break-for-each.json +0 -26
- package/jsonschema/operation-templates/broadcast-event.json +0 -51
- package/jsonschema/operation-templates/calc.json +0 -49
- package/jsonschema/operation-templates/clear-element.json +0 -26
- package/jsonschema/operation-templates/clear-operation-data.json +0 -37
- package/jsonschema/operation-templates/clear-storage.json +0 -41
- package/jsonschema/operation-templates/compare-date.json +0 -41
- package/jsonschema/operation-templates/concatenate-strings.json +0 -43
- package/jsonschema/operation-templates/continue-for-each.json +0 -26
- package/jsonschema/operation-templates/create-element.json +0 -156
- package/jsonschema/operation-templates/custom-function.json +0 -39
- package/jsonschema/operation-templates/end-action.json +0 -39
- package/jsonschema/operation-templates/end-for-each.json +0 -26
- package/jsonschema/operation-templates/end-when.json +0 -26
- package/jsonschema/operation-templates/extend-controller.json +0 -39
- package/jsonschema/operation-templates/filter-array.json +0 -47
- package/jsonschema/operation-templates/find-in-array.json +0 -47
- package/jsonschema/operation-templates/for-each.json +0 -40
- package/jsonschema/operation-templates/format-date.json +0 -39
- package/jsonschema/operation-templates/format-text.json +0 -37
- package/jsonschema/operation-templates/get-attributes-from-element.json +0 -39
- package/jsonschema/operation-templates/get-controller-from-element.json +0 -51
- package/jsonschema/operation-templates/get-controller-instance.json +0 -37
- package/jsonschema/operation-templates/get-current-time.json +0 -26
- package/jsonschema/operation-templates/get-element-dimensions.json +0 -39
- package/jsonschema/operation-templates/get-focused-element.json +0 -26
- package/jsonschema/operation-templates/get-form-data.json +0 -26
- package/jsonschema/operation-templates/get-import.json +0 -39
- package/jsonschema/operation-templates/get-query-params.json +0 -37
- package/jsonschema/operation-templates/get-scroll-position.json +0 -26
- package/jsonschema/operation-templates/get-text-content.json +0 -26
- package/jsonschema/operation-templates/http-delete.json +0 -43
- package/jsonschema/operation-templates/http-post.json +0 -49
- package/jsonschema/operation-templates/http-put.json +0 -49
- package/jsonschema/operation-templates/invoke-object-method.json +0 -43
- package/jsonschema/operation-templates/is-element-in-viewport.json +0 -26
- package/jsonschema/operation-templates/load-from-storage.json +0 -43
- package/jsonschema/operation-templates/load-json.json +0 -43
- package/jsonschema/operation-templates/log.json +0 -47
- package/jsonschema/operation-templates/map-array.json +0 -39
- package/jsonschema/operation-templates/math.json +0 -45
- package/jsonschema/operation-templates/otherwise.json +0 -26
- package/jsonschema/operation-templates/remove-class.json +0 -40
- package/jsonschema/operation-templates/remove-controller-from-element.json +0 -51
- package/jsonschema/operation-templates/remove-element.json +0 -26
- package/jsonschema/operation-templates/remove-properties-from-operation-data.json +0 -39
- package/jsonschema/operation-templates/reparent-element.json +0 -39
- package/jsonschema/operation-templates/replace-string.json +0 -43
- package/jsonschema/operation-templates/replace-text.json +0 -43
- package/jsonschema/operation-templates/request-action.json +0 -39
- package/jsonschema/operation-templates/save-to-storage.json +0 -49
- package/jsonschema/operation-templates/scroll-to-element.json +0 -45
- package/jsonschema/operation-templates/scroll-to-position.json +0 -49
- package/jsonschema/operation-templates/select-element.json +0 -43
- package/jsonschema/operation-templates/set-data.json +0 -39
- package/jsonschema/operation-templates/set-element-attributes.json +0 -39
- package/jsonschema/operation-templates/set-element-content.json +0 -41
- package/jsonschema/operation-templates/set-focus.json +0 -26
- package/jsonschema/operation-templates/set-form-value.json +0 -37
- package/jsonschema/operation-templates/set-global-data.json +0 -39
- package/jsonschema/operation-templates/set-operation-data.json +0 -43
- package/jsonschema/operation-templates/set-style.json +0 -39
- package/jsonschema/operation-templates/set-variable.json +0 -49
- package/jsonschema/operation-templates/sort-array.json +0 -45
- package/jsonschema/operation-templates/split-string.json +0 -41
- package/jsonschema/operation-templates/start-action.json +0 -39
- package/jsonschema/operation-templates/substring-text.json +0 -43
- package/jsonschema/operation-templates/toggle-class.json +0 -40
- package/jsonschema/operation-templates/toggle-element.json +0 -26
- package/jsonschema/operation-templates/toggle-form-element.json +0 -39
- package/jsonschema/operation-templates/validate-form.json +0 -37
- package/jsonschema/operation-templates/wait.json +0 -39
- package/jsonschema/operation-templates/when.json +0 -39
- package/jsonschema/operations/add-globals-to-operation.json +0 -43
- package/jsonschema/operations/break-for-each.json +0 -26
- package/jsonschema/operations/clear-storage.json +0 -45
- package/jsonschema/operations/continue-for-each.json +0 -26
- package/jsonschema/operations/end-for-each.json +0 -26
- package/jsonschema/operations/end-when.json +0 -26
- package/jsonschema/operations/otherwise.json +0 -26
- package/jsonschema/operations/set-operation-data.json +0 -47
- package/jsonschema/raf-timeline-provider-settings.json +0 -141
- package/jsonschema/timeline-action.json +0 -542
- package/jsonschema/timeline-provider-settings.json +0 -19
- package/jsonschema/timeline.json +0 -73
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"definitions": {},
|
|
3
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
-
"$id": "http://eligius.com/schema/set-operation-data-operation.json",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"title": "The setOperationData schema",
|
|
7
|
-
"description": "This operation assigns the specified properties to the current operation data.\nWhen override is set to true the properties replace the current operation data entirely.",
|
|
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": "setOperationData"
|
|
25
|
-
},
|
|
26
|
-
"operationData": {
|
|
27
|
-
"$id": "#/properties/operationData",
|
|
28
|
-
"type": "object",
|
|
29
|
-
"title": "The Operationdata Schema",
|
|
30
|
-
"required": [
|
|
31
|
-
"properties"
|
|
32
|
-
],
|
|
33
|
-
"properties": {
|
|
34
|
-
"override": {
|
|
35
|
-
"$id": "#/properties/operationData/override",
|
|
36
|
-
"type": "array"
|
|
37
|
-
},
|
|
38
|
-
"properties": {
|
|
39
|
-
"$id": "#/properties/operationData/properties",
|
|
40
|
-
"type": [
|
|
41
|
-
"object"
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"definitions": {
|
|
3
|
-
"positionSourceConfig": {
|
|
4
|
-
"type": "object",
|
|
5
|
-
"title": "Position Source Configuration",
|
|
6
|
-
"description": "Configuration for a position source that drives timeline position",
|
|
7
|
-
"required": ["systemName"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"systemName": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"title": "System Name",
|
|
12
|
-
"description": "Name of the position source class to instantiate",
|
|
13
|
-
"examples": ["RafPositionSource", "ScrollPositionSource", "KeyboardStepSource"]
|
|
14
|
-
},
|
|
15
|
-
"selector": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"title": "Selector",
|
|
18
|
-
"description": "CSS selector for sources that need a DOM element"
|
|
19
|
-
},
|
|
20
|
-
"tickInterval": {
|
|
21
|
-
"type": "number",
|
|
22
|
-
"title": "Tick Interval",
|
|
23
|
-
"description": "Interval between position updates in milliseconds (RafPositionSource)",
|
|
24
|
-
"default": 1000,
|
|
25
|
-
"examples": [100, 500, 1000]
|
|
26
|
-
},
|
|
27
|
-
"verticalMode": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"title": "Vertical Mode",
|
|
30
|
-
"description": "Behavior of Up/Down arrow keys (KeyboardStepSource). 'timeline-switch' emits timeline change requests, 'chapter-navigation' jumps between markers, 'disabled' ignores vertical keys",
|
|
31
|
-
"enum": ["timeline-switch", "chapter-navigation", "disabled"],
|
|
32
|
-
"examples": ["disabled", "timeline-switch", "chapter-navigation"]
|
|
33
|
-
},
|
|
34
|
-
"stepSize": {
|
|
35
|
-
"type": "number",
|
|
36
|
-
"title": "Step Size",
|
|
37
|
-
"description": "Position increment for Left/Right arrow keys in seconds (KeyboardStepSource)",
|
|
38
|
-
"default": 1,
|
|
39
|
-
"examples": [1, 0.5, 2]
|
|
40
|
-
},
|
|
41
|
-
"largeStepSize": {
|
|
42
|
-
"type": "number",
|
|
43
|
-
"title": "Large Step Size",
|
|
44
|
-
"description": "Position increment for Shift+Left/Right arrow keys in seconds (KeyboardStepSource)",
|
|
45
|
-
"default": 10,
|
|
46
|
-
"examples": [10, 5, 30]
|
|
47
|
-
},
|
|
48
|
-
"markers": {
|
|
49
|
-
"type": "array",
|
|
50
|
-
"title": "Markers",
|
|
51
|
-
"description": "Marker positions for chapter navigation mode in seconds (KeyboardStepSource). Auto-sorted ascending on init",
|
|
52
|
-
"items": {
|
|
53
|
-
"type": "number"
|
|
54
|
-
},
|
|
55
|
-
"examples": [[0, 10, 20, 30, 40, 50]]
|
|
56
|
-
},
|
|
57
|
-
"targetElement": {
|
|
58
|
-
"oneOf": [
|
|
59
|
-
{"type": "string"},
|
|
60
|
-
{"type": "object"}
|
|
61
|
-
],
|
|
62
|
-
"title": "Target Element",
|
|
63
|
-
"description": "Element to scope keyboard bindings to. Can be HTMLElement or CSS selector string (KeyboardStepSource). If not provided, bindings are global"
|
|
64
|
-
},
|
|
65
|
-
"wrapNavigation": {
|
|
66
|
-
"type": "boolean",
|
|
67
|
-
"title": "Wrap Navigation",
|
|
68
|
-
"description": "Whether navigation wraps at boundaries (KeyboardStepSource). When true, stepping past end wraps to start and vice versa",
|
|
69
|
-
"default": true
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
"additionalProperties": true
|
|
73
|
-
},
|
|
74
|
-
"containerProviderConfig": {
|
|
75
|
-
"type": "object",
|
|
76
|
-
"title": "Container Provider Configuration",
|
|
77
|
-
"description": "Configuration for a container provider that manages DOM elements",
|
|
78
|
-
"required": ["systemName", "selector"],
|
|
79
|
-
"properties": {
|
|
80
|
-
"systemName": {
|
|
81
|
-
"type": "string",
|
|
82
|
-
"title": "System Name",
|
|
83
|
-
"description": "Name of the container provider class to instantiate",
|
|
84
|
-
"examples": ["DomContainerProvider"]
|
|
85
|
-
},
|
|
86
|
-
"selector": {
|
|
87
|
-
"type": "string",
|
|
88
|
-
"title": "Selector",
|
|
89
|
-
"description": "CSS selector for the container element"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"additionalProperties": true
|
|
93
|
-
},
|
|
94
|
-
"playlistConfig": {
|
|
95
|
-
"type": "object",
|
|
96
|
-
"title": "Playlist Configuration",
|
|
97
|
-
"description": "Configuration for a playlist that manages collections of items",
|
|
98
|
-
"required": ["systemName", "items", "identifierKey"],
|
|
99
|
-
"properties": {
|
|
100
|
-
"systemName": {
|
|
101
|
-
"type": "string",
|
|
102
|
-
"title": "System Name",
|
|
103
|
-
"description": "Name of the playlist class to instantiate",
|
|
104
|
-
"examples": ["SimplePlaylist"]
|
|
105
|
-
},
|
|
106
|
-
"items": {
|
|
107
|
-
"type": "array",
|
|
108
|
-
"title": "Items",
|
|
109
|
-
"description": "The items in the playlist"
|
|
110
|
-
},
|
|
111
|
-
"identifierKey": {
|
|
112
|
-
"type": "string",
|
|
113
|
-
"title": "Identifier Key",
|
|
114
|
-
"description": "Property key used to identify items",
|
|
115
|
-
"examples": ["uri", "id", "chapterId"]
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
"additionalProperties": true
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
122
|
-
"$id": "https://rolandzwaga.github.io/eligius/jsonschema/raf-timeline-provider-settings.json",
|
|
123
|
-
"type": "object",
|
|
124
|
-
"title": "RAF Timeline Provider Settings",
|
|
125
|
-
"description": "Settings for animation-type timeline providers using RequestAnimationFrame",
|
|
126
|
-
"required": ["positionSource"],
|
|
127
|
-
"properties": {
|
|
128
|
-
"positionSource": {
|
|
129
|
-
"$ref": "#/definitions/positionSourceConfig",
|
|
130
|
-
"description": "Configuration for the position source (required)"
|
|
131
|
-
},
|
|
132
|
-
"container": {
|
|
133
|
-
"$ref": "#/definitions/containerProviderConfig",
|
|
134
|
-
"description": "Optional container provider configuration"
|
|
135
|
-
},
|
|
136
|
-
"playlist": {
|
|
137
|
-
"$ref": "#/definitions/playlistConfig",
|
|
138
|
-
"description": "Optional playlist configuration"
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|