eligius 2.0.0 → 2.1.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.
- package/dist/index.d.mts +152 -10
- package/dist/index.mjs +284 -49
- package/dist/index.mjs.map +1 -1
- package/jsonschema/eligius-configuration.json +101 -47
- package/jsonschema/endable-action-template.json +4 -2
- package/jsonschema/endable-action.json +3 -1
- package/jsonschema/event-action.json +3 -1
- package/jsonschema/mediaplayer-timeline-provider-settings.json +85 -30
- package/jsonschema/raf-timeline-provider-settings.json +132 -20
- package/jsonschema/timeline-action.json +4 -2
- package/jsonschema/timeline-provider-settings.json +6 -3
- package/jsonschema/timeline.json +31 -10
- package/package.json +1 -1
package/jsonschema/timeline.json
CHANGED
|
@@ -3,47 +3,68 @@
|
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"$id": "https://rolandzwaga.github.io/eligius/jsonschema/timeline.json",
|
|
5
5
|
"type": "object",
|
|
6
|
-
"title": "
|
|
7
|
-
"
|
|
6
|
+
"title": "Timeline Schema",
|
|
7
|
+
"description": "Configuration for a timeline within the engine",
|
|
8
|
+
"required": [
|
|
9
|
+
"id",
|
|
10
|
+
"uri",
|
|
11
|
+
"type",
|
|
12
|
+
"duration",
|
|
13
|
+
"loop",
|
|
14
|
+
"selector",
|
|
15
|
+
"timelineActions"
|
|
16
|
+
],
|
|
8
17
|
"properties": {
|
|
9
18
|
"id": {
|
|
10
19
|
"$id": "#/properties/id",
|
|
11
20
|
"type": "string",
|
|
12
|
-
"title": "
|
|
21
|
+
"title": "Id",
|
|
22
|
+
"description": "Unique identifier for the timeline",
|
|
13
23
|
"examples": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
14
24
|
"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
25
|
},
|
|
16
26
|
"uri": {
|
|
17
27
|
"$id": "#/properties/uri",
|
|
18
28
|
"type": "string",
|
|
19
|
-
"title": "
|
|
20
|
-
"description": "The URI for the
|
|
29
|
+
"title": "URI",
|
|
30
|
+
"description": "The URI for the timeline. For mediaplayer type, this is the video/audio source. For animation type, this is a unique identifier."
|
|
21
31
|
},
|
|
22
32
|
"type": {
|
|
23
33
|
"$id": "#/properties/type",
|
|
24
34
|
"type": "string",
|
|
25
35
|
"enum": ["animation", "mediaplayer"],
|
|
26
|
-
"title": "
|
|
36
|
+
"title": "Type",
|
|
37
|
+
"description": "The type of timeline provider to use"
|
|
27
38
|
},
|
|
28
39
|
"duration": {
|
|
29
40
|
"$id": "#/properties/duration",
|
|
30
41
|
"type": "number",
|
|
31
|
-
"title": "
|
|
42
|
+
"title": "Duration",
|
|
43
|
+
"description": "Duration of the timeline in seconds"
|
|
32
44
|
},
|
|
33
45
|
"loop": {
|
|
34
46
|
"$id": "#/properties/loop",
|
|
35
47
|
"type": "boolean",
|
|
36
|
-
"title": "
|
|
48
|
+
"title": "Loop",
|
|
49
|
+
"description": "Whether the timeline should loop when it reaches the end"
|
|
37
50
|
},
|
|
38
51
|
"selector": {
|
|
39
52
|
"$id": "#/properties/selector",
|
|
40
53
|
"type": "string",
|
|
41
|
-
"title": "
|
|
54
|
+
"title": "Selector",
|
|
55
|
+
"description": "CSS selector for the timeline's target element"
|
|
56
|
+
},
|
|
57
|
+
"container": {
|
|
58
|
+
"$id": "#/properties/container",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"title": "Container",
|
|
61
|
+
"description": "Optional CSS selector for the container element. Defaults to the timeline selector if not specified."
|
|
42
62
|
},
|
|
43
63
|
"timelineActions": {
|
|
44
64
|
"$id": "#/properties/timelineActions",
|
|
45
65
|
"type": "array",
|
|
46
|
-
"title": "
|
|
66
|
+
"title": "Timeline Actions",
|
|
67
|
+
"description": "Array of actions to execute at specific timeline positions",
|
|
47
68
|
"items": {
|
|
48
69
|
"$ref": "timeline-action.json"
|
|
49
70
|
}
|