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.
@@ -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": "The Timeline Schema",
7
- "required": ["uri", "type", "duration", "selector"],
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": "The Id Schema",
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": "The uri Schema",
20
- "description": "The URI for the video or audio file, only used when type is set to mediaplayer"
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": "The type Schema"
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": "The duration schema"
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": "The loop schema"
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": "The selector schema"
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": "The timelineActions schema",
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
  }
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.0.0",
4
+ "version": "2.1.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://rolandzwaga.github.io/eligius/",
7
7
  "bugs": {