eligius 1.5.3 → 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.
@@ -1,90 +1,131 @@
1
1
  {
2
- "definitions": {},
2
+ "definitions": {
3
+ "label": {
4
+ "type": "object",
5
+ "title": "Label",
6
+ "description": "A localized label with language code",
7
+ "required": ["id", "languageCode", "label"],
8
+ "properties": {
9
+ "id": {
10
+ "type": "string",
11
+ "title": "Id",
12
+ "description": "Unique identifier for the label"
13
+ },
14
+ "languageCode": {
15
+ "type": "string",
16
+ "title": "Language Code",
17
+ "description": "IETF language tag (e.g., en-US, nl-NL)",
18
+ "examples": ["en-US", "nl-NL", "de-DE"]
19
+ },
20
+ "label": {
21
+ "type": "string",
22
+ "title": "Label",
23
+ "description": "The localized label text"
24
+ }
25
+ }
26
+ },
27
+ "languageLabel": {
28
+ "type": "object",
29
+ "title": "Language Label Collection",
30
+ "description": "A collection of labels for different languages",
31
+ "required": ["id", "labels"],
32
+ "properties": {
33
+ "id": {
34
+ "type": "string",
35
+ "title": "Id",
36
+ "description": "Unique identifier for the label collection"
37
+ },
38
+ "labels": {
39
+ "type": "array",
40
+ "title": "Labels",
41
+ "description": "Array of localized labels",
42
+ "items": {
43
+ "$ref": "#/definitions/label"
44
+ }
45
+ }
46
+ }
47
+ }
48
+ },
3
49
  "$schema": "http://json-schema.org/draft-07/schema#",
4
50
  "$id": "https://rolandzwaga.github.io/eligius/jsonschema/eligius-configuration.json",
5
51
  "type": "object",
6
- "title": "The Eligius Configuration Schema",
52
+ "title": "Eligius Configuration Schema",
53
+ "description": "Configuration schema for the Eligius timeline engine",
7
54
  "required": [
8
55
  "id",
9
56
  "engine",
10
57
  "containerSelector",
11
- "timelineProviderSettings",
58
+ "cssFiles",
12
59
  "language",
13
60
  "layoutTemplate",
14
61
  "availableLanguages",
15
- "timelines"
62
+ "initActions",
63
+ "actions",
64
+ "timelines",
65
+ "labels"
16
66
  ],
17
67
  "properties": {
18
68
  "id": {
19
69
  "$id": "#/properties/id",
20
70
  "type": "string",
21
- "title": "The Id Schema",
71
+ "title": "Id",
72
+ "description": "Unique identifier for the configuration",
22
73
  "examples": ["123e4567-e89b-12d3-a456-426614174000"],
23
74
  "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}$"
24
75
  },
25
76
  "engine": {
26
- "$ref": "engine-config.json"
77
+ "$ref": "engine-config.json",
78
+ "description": "Engine configuration"
27
79
  },
28
80
  "timelineProviderSettings": {
29
- "$ref": "timeline-provider-settings.json"
81
+ "$ref": "timeline-provider-settings.json",
82
+ "description": "Optional settings for timeline providers by type"
30
83
  },
31
84
  "containerSelector": {
32
85
  "$id": "#/properties/containerSelector",
33
86
  "type": "string",
34
- "title": "The Containerselector Schema",
35
- "default": "",
36
- "examples": ["#eligius-container"],
37
- "pattern": "^(.*)$"
87
+ "title": "Container Selector",
88
+ "description": "CSS selector for the main container element",
89
+ "examples": ["#eligius-container"]
90
+ },
91
+ "cssFiles": {
92
+ "$id": "#/properties/cssFiles",
93
+ "type": "array",
94
+ "title": "CSS Files",
95
+ "description": "Array of CSS file paths to load",
96
+ "items": {
97
+ "type": "string"
98
+ },
99
+ "examples": [["styles/main.css", "styles/theme.css"]]
38
100
  },
39
101
  "language": {
40
102
  "$id": "#/properties/language",
41
103
  "type": "string",
42
- "title": "The Language Schema",
43
- "default": "",
44
- "examples": ["en-US"],
45
- "pattern": "^(.*)$"
104
+ "title": "Language",
105
+ "description": "Default language code (IETF language tag)",
106
+ "examples": ["en-US", "nl-NL"]
46
107
  },
47
108
  "layoutTemplate": {
48
109
  "$id": "#/properties/layoutTemplate",
49
110
  "type": "string",
50
- "title": "The Layouttemplate Schema",
51
- "default": "",
52
- "examples": ["template:layoutTemplate", "<div></div>"],
53
- "pattern": "^(.*)$"
111
+ "title": "Layout Template",
112
+ "description": "HTML template for the layout, can be inline HTML or a template reference",
113
+ "examples": ["template:layoutTemplate", "<div class=\"container\"></div>"]
54
114
  },
55
115
  "availableLanguages": {
56
116
  "$id": "#/properties/availableLanguages",
57
117
  "type": "array",
58
- "title": "The Availablelanguages Schema",
118
+ "title": "Available Languages",
119
+ "description": "List of available languages for the application",
59
120
  "items": {
60
- "$id": "#/properties/availableLanguages/items",
61
- "type": "object",
62
- "title": "The Items Schema",
63
- "required": ["languageCode", "label"],
64
- "properties": {
65
- "languageCode": {
66
- "$id": "#/properties/availableLanguages/items/properties/languageCode",
67
- "type": "string",
68
- "title": "The Code Schema",
69
- "default": "",
70
- "examples": ["en-US"],
71
- "pattern": "^(.*)$"
72
- },
73
- "label": {
74
- "$id": "#/properties/availableLanguages/items/properties/label",
75
- "type": "string",
76
- "title": "The Label Schema",
77
- "default": "",
78
- "examples": ["English"],
79
- "pattern": "^(.*)$"
80
- }
81
- }
121
+ "$ref": "#/definitions/label"
82
122
  }
83
123
  },
84
124
  "initActions": {
85
125
  "$id": "#/properties/initActions",
86
126
  "type": "array",
87
- "title": "The init actions Schema",
127
+ "title": "Init Actions",
128
+ "description": "Actions to execute during engine initialization",
88
129
  "items": {
89
130
  "$ref": "endable-action.json"
90
131
  }
@@ -92,7 +133,8 @@
92
133
  "actions": {
93
134
  "$id": "#/properties/actions",
94
135
  "type": "array",
95
- "title": "The actions Schema",
136
+ "title": "Actions",
137
+ "description": "Reusable action templates",
96
138
  "items": {
97
139
  "$ref": "endable-action-template.json"
98
140
  }
@@ -100,7 +142,8 @@
100
142
  "eventActions": {
101
143
  "$id": "#/properties/eventActions",
102
144
  "type": "array",
103
- "title": "The event actions Schema",
145
+ "title": "Event Actions",
146
+ "description": "Actions triggered by events",
104
147
  "items": {
105
148
  "$ref": "event-action.json"
106
149
  }
@@ -108,15 +151,26 @@
108
151
  "timelines": {
109
152
  "$id": "#/properties/timelines",
110
153
  "type": "array",
111
- "title": "The timelines schema",
154
+ "title": "Timelines",
155
+ "description": "Timeline configurations",
112
156
  "items": {
113
157
  "$ref": "timeline.json"
114
158
  }
115
159
  },
160
+ "timelineFlow": {
161
+ "$id": "#/properties/timelineFlow",
162
+ "type": "object",
163
+ "title": "Timeline Flow",
164
+ "description": "Optional timeline flow configuration for navigation between timelines"
165
+ },
116
166
  "labels": {
117
167
  "$id": "#/properties/labels",
118
168
  "type": "array",
119
- "title": "The Labels Schema"
169
+ "title": "Labels",
170
+ "description": "Label collections for multi-language support",
171
+ "items": {
172
+ "$ref": "#/definitions/languageLabel"
173
+ }
120
174
  }
121
175
  }
122
176
  }
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "definitions": {},
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "$id": "https://rolandzwaga.github.io/eligius/jsonschema/endable-action.json",
4
+ "$id": "https://rolandzwaga.github.io/eligius/jsonschema/endable-action-template.json",
5
5
  "type": "object",
6
- "title": "The Endable Action Schema",
6
+ "title": "Endable Action Template Schema",
7
+ "description": "A reusable action template with start and end operations",
7
8
  "required": [
9
+ "id",
8
10
  "name",
9
11
  "startOperations",
10
12
  "endOperations"
@@ -3,8 +3,10 @@
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "$id": "https://rolandzwaga.github.io/eligius/jsonschema/endable-action.json",
5
5
  "type": "object",
6
- "title": "The Endable Action Schema",
6
+ "title": "Endable Action Schema",
7
+ "description": "An action with start and end operations",
7
8
  "required": [
9
+ "id",
8
10
  "name",
9
11
  "startOperations",
10
12
  "endOperations"
@@ -3,8 +3,10 @@
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "$id": "https://rolandzwaga.github.io/eligius/jsonschema/event-action.json",
5
5
  "type": "object",
6
- "title": "The Event Action Schema",
6
+ "title": "Event Action Schema",
7
+ "description": "An action triggered by an event",
7
8
  "required": [
9
+ "id",
8
10
  "name",
9
11
  "startOperations",
10
12
  "eventName"
@@ -1,40 +1,95 @@
1
1
  {
2
- "definitions": {},
2
+ "definitions": {
3
+ "positionSourceConfig": {
4
+ "type": "object",
5
+ "title": "Position Source Configuration",
6
+ "description": "Configuration for a video-based 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": ["VideoPositionSource"]
14
+ },
15
+ "selector": {
16
+ "type": "string",
17
+ "title": "Selector",
18
+ "description": "CSS selector for the video player element"
19
+ },
20
+ "poster": {
21
+ "type": "string",
22
+ "title": "Poster",
23
+ "description": "Optional poster image URL for video sources"
24
+ }
25
+ },
26
+ "additionalProperties": true
27
+ },
28
+ "containerProviderConfig": {
29
+ "type": "object",
30
+ "title": "Container Provider Configuration",
31
+ "description": "Configuration for a container provider that manages DOM elements",
32
+ "required": ["systemName", "selector"],
33
+ "properties": {
34
+ "systemName": {
35
+ "type": "string",
36
+ "title": "System Name",
37
+ "description": "Name of the container provider class to instantiate",
38
+ "examples": ["DomContainerProvider"]
39
+ },
40
+ "selector": {
41
+ "type": "string",
42
+ "title": "Selector",
43
+ "description": "CSS selector for the container element"
44
+ }
45
+ },
46
+ "additionalProperties": true
47
+ },
48
+ "playlistConfig": {
49
+ "type": "object",
50
+ "title": "Playlist Configuration",
51
+ "description": "Configuration for a playlist that manages collections of items",
52
+ "required": ["systemName", "items", "identifierKey"],
53
+ "properties": {
54
+ "systemName": {
55
+ "type": "string",
56
+ "title": "System Name",
57
+ "description": "Name of the playlist class to instantiate",
58
+ "examples": ["SimplePlaylist"]
59
+ },
60
+ "items": {
61
+ "type": "array",
62
+ "title": "Items",
63
+ "description": "The items in the playlist"
64
+ },
65
+ "identifierKey": {
66
+ "type": "string",
67
+ "title": "Identifier Key",
68
+ "description": "Property key used to identify items",
69
+ "examples": ["uri", "id", "chapterId"]
70
+ }
71
+ },
72
+ "additionalProperties": true
73
+ }
74
+ },
3
75
  "$schema": "http://json-schema.org/draft-07/schema#",
4
76
  "$id": "https://rolandzwaga.github.io/eligius/jsonschema/mediaplayer-timeline-provider-settings.json",
5
77
  "type": "object",
6
- "title": "The TimelineProviderSettings Schema",
7
- "required": ["id", "vendor", "selector", "systemName"],
78
+ "title": "Media Player Timeline Provider Settings",
79
+ "description": "Settings for mediaplayer-type timeline providers using video.js or similar",
80
+ "required": ["positionSource"],
8
81
  "properties": {
9
- "id": {
10
- "$id": "#/properties/id",
11
- "type": "string",
12
- "title": "The Id Schema",
13
- "examples": ["123e4567-e89b-12d3-a456-426614174000"],
14
- "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
- },
16
- "vendor": {
17
- "$id": "#/properties/vendor",
18
- "type": "string",
19
- "title": "The Vendor Schema",
20
- "examples": ["jwplayer"]
21
- },
22
- "selector": {
23
- "$id": "#/properties/selector",
24
- "type": "string",
25
- "title": "The Selector Schema"
82
+ "positionSource": {
83
+ "$ref": "#/definitions/positionSourceConfig",
84
+ "description": "Configuration for the video position source (required)"
26
85
  },
27
- "systemName": {
28
- "$id": "#/properties/systemName",
29
- "type": "string",
30
- "title": "The Systemname Schema",
31
- "examples": ["MediaElementTimelineProvider"]
86
+ "container": {
87
+ "$ref": "#/definitions/containerProviderConfig",
88
+ "description": "Optional container provider configuration"
32
89
  },
33
- "playerApiKey": {
34
- "$id": "#/properties/playerApiKey",
35
- "type": "string",
36
- "title": "The Playerapikey Schema",
37
- "examples": ["QRa1gzd9/l8kw5567O0lneCUr7L3woHSc/=="]
90
+ "playlist": {
91
+ "$ref": "#/definitions/playlistConfig",
92
+ "description": "Optional playlist configuration for multi-video timelines"
38
93
  }
39
94
  }
40
95
  }
@@ -1,29 +1,141 @@
1
1
  {
2
- "definitions": {},
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
+ },
3
121
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "$id": "https://rolandzwaga.github.io/eligius/jsonschema/mediaplayer-timeline-provider-settings.json",
122
+ "$id": "https://rolandzwaga.github.io/eligius/jsonschema/raf-timeline-provider-settings.json",
5
123
  "type": "object",
6
- "title": "The TimelineProviderSettings Schema",
7
- "required": ["id", "vendor", "systemName"],
124
+ "title": "RAF Timeline Provider Settings",
125
+ "description": "Settings for animation-type timeline providers using RequestAnimationFrame",
126
+ "required": ["positionSource"],
8
127
  "properties": {
9
- "id": {
10
- "$id": "#/properties/id",
11
- "type": "string",
12
- "title": "The Id Schema",
13
- "examples": ["123e4567-e89b-12d3-a456-426614174000"],
14
- "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}$"
128
+ "positionSource": {
129
+ "$ref": "#/definitions/positionSourceConfig",
130
+ "description": "Configuration for the position source (required)"
15
131
  },
16
- "vendor": {
17
- "$id": "#/properties/vendor",
18
- "type": "string",
19
- "title": "The Vendor Schema",
20
- "examples": ["jwplayer"]
132
+ "container": {
133
+ "$ref": "#/definitions/containerProviderConfig",
134
+ "description": "Optional container provider configuration"
21
135
  },
22
- "systemName": {
23
- "$id": "#/properties/systemName",
24
- "type": "string",
25
- "title": "The Systemname Schema",
26
- "examples": ["RequestAnimationFrameTimelineProvider"]
136
+ "playlist": {
137
+ "$ref": "#/definitions/playlistConfig",
138
+ "description": "Optional playlist configuration"
27
139
  }
28
140
  }
29
141
  }
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "definitions": {},
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "$id": "https://rolandzwaga.github.io/eligius/jsonschema/endable-action.json",
4
+ "$id": "https://rolandzwaga.github.io/eligius/jsonschema/timeline-action.json",
5
5
  "type": "object",
6
- "title": "The Timeline Action Schema",
6
+ "title": "Timeline Action Schema",
7
+ "description": "An action that executes at a specific timeline position",
7
8
  "required": [
9
+ "id",
8
10
  "name",
9
11
  "startOperations",
10
12
  "endOperations",
@@ -3,14 +3,17 @@
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "$id": "https://rolandzwaga.github.io/eligius/jsonschema/timeline-provider-settings.json",
5
5
  "type": "object",
6
- "title": "The TimelineProviderSettings Schema",
6
+ "title": "Timeline Provider Settings",
7
+ "description": "Configuration for timeline providers by type. Both properties are optional.",
7
8
  "required": [],
8
9
  "properties": {
9
10
  "animation": {
10
- "$ref": "raf-timeline-provider-settings.json"
11
+ "$ref": "raf-timeline-provider-settings.json",
12
+ "description": "Settings for animation-type timelines using RequestAnimationFrame"
11
13
  },
12
14
  "mediaplayer": {
13
- "$ref": "mediaplayer-timeline-provider-settings.json"
15
+ "$ref": "mediaplayer-timeline-provider-settings.json",
16
+ "description": "Settings for mediaplayer-type timelines using video.js or similar"
14
17
  }
15
18
  }
16
19
  }