@uurtech/jdf-cli 0.1.26 → 0.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.
@@ -130,9 +130,10 @@
130
130
  "type": "object",
131
131
  "properties": {
132
132
  "fonts": { "type": "array", "items": { "$ref": "#/definitions/FontResource" } },
133
- "images": { "type": "object", "additionalProperties": { "$ref": "#/definitions/ImageResource" } }
133
+ "images": { "type": "object", "additionalProperties": { "$ref": "#/definitions/ImageResource" } },
134
+ "videos": { "type": "object", "additionalProperties": { "$ref": "#/definitions/ImageResource" } }
134
135
  },
135
- "additionalProperties": { "$ref": "#/definitions/ImageResource" }
136
+ "additionalProperties": true
136
137
  },
137
138
  "FontResource": {
138
139
  "type": "object",
@@ -184,6 +185,7 @@
184
185
  { "$ref": "#/definitions/TextElement" },
185
186
  { "$ref": "#/definitions/RichTextElement" },
186
187
  { "$ref": "#/definitions/ImageElement" },
188
+ { "$ref": "#/definitions/VideoElement" },
187
189
  { "$ref": "#/definitions/TableElement" },
188
190
  { "$ref": "#/definitions/ListElement" },
189
191
  { "$ref": "#/definitions/ShapeElement" },
@@ -349,6 +351,35 @@
349
351
  "style": { "$ref": "#/definitions/StyleRef" }
350
352
  }
351
353
  },
354
+ "VideoElement": {
355
+ "type": "object",
356
+ "required": ["type"],
357
+ "anyOf": [{ "required": ["resource"] }, { "required": ["src"] }],
358
+ "properties": {
359
+ "type": { "const": "video" },
360
+ "id": { "type": "string" },
361
+ "resource": { "type": "string", "description": "Id in resources.videos (a .jdfx stores the file under assets/)" },
362
+ "transcript": {
363
+ "type": "object",
364
+ "required": ["segments"],
365
+ "properties": {
366
+ "language": { "type": "string" },
367
+ "source": { "type": "string" },
368
+ "created": { "type": "string" },
369
+ "segments": { "type": "array", "items": { "type": "object", "required": ["t0", "t1", "text"], "properties": { "t0": { "type": "number", "minimum": 0 }, "t1": { "type": "number", "minimum": 0 }, "text": { "type": "string" }, "speaker": { "type": "string" } } } }
370
+ }
371
+ },
372
+ "chapters": { "type": "array", "items": { "type": "object", "required": ["t", "title"], "properties": { "t": { "type": "number", "minimum": 0 }, "title": { "type": "string" } } } },
373
+ "src": { "type": "string", "description": "URL, relative path or data: URL" },
374
+ "poster": { "type": "string", "description": "Still frame: URL, data URL or image resource id" },
375
+ "title": { "type": "string" },
376
+ "position": { "$ref": "#/definitions/Position" },
377
+ "width": { "type": "number" }, "height": { "type": "number" },
378
+ "fit": { "type": "string", "enum": ["contain","cover","fill","none"] },
379
+ "controls": { "type": "boolean" }, "autoplay": { "type": "boolean" }, "loop": { "type": "boolean" }, "muted": { "type": "boolean" },
380
+ "style": { "$ref": "#/definitions/StyleRef" }
381
+ }
382
+ },
352
383
  "TableElement": {
353
384
  "type": "object",
354
385
  "required": ["type", "rows"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uurtech/jdf-cli",
3
- "version": "0.1.26",
3
+ "version": "0.2.1",
4
4
  "description": "Command-line tool for the JDF (JSON Document Format) — validate and convert documents.",
5
5
  "license": "MIT",
6
6
  "author": "Ugur Kazdal",