From 47e77f9fac1155c536b2b87fec552c7fcce66fa6 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 01 Jun 2026 18:06:34 +0000
Subject: [PATCH] =Timeline block fixes. Next up: adding article schema classes

---
 src/video/block.json |   79 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 79 insertions(+), 0 deletions(-)

diff --git a/src/video/block.json b/src/video/block.json
new file mode 100644
index 0000000..24561de
--- /dev/null
+++ b/src/video/block.json
@@ -0,0 +1,79 @@
+{
+	"$schema": "https://schemas.wp.org/trunk/block.json",
+	"apiVersion": 3,
+	"name": "jvb/video",
+	"version": "1.0.0",
+	"title": "Video Cover",
+	"category": "jvb",
+	"icon": "video-alt3",
+	"description": "Self-hosted video cover with poster and multiple format support",
+	"supports": {
+		"html": false,
+		"align": ["wide", "full"],
+		"spacing": {
+			"margin": true,
+			"padding": true
+		},
+		"color": {
+			"background": true,
+			"text": true
+		}
+	},
+	"attributes": {
+		"title": {
+			"type": "string",
+			"default": ""
+		},
+		"description": {
+			"type": "string",
+			"default": ""
+		},
+		"posterId": {
+			"type": "number",
+			"default": 0
+		},
+		"posterUrl": {
+			"type": "string",
+			"default": ""
+		},
+		"videoSources": {
+			"type": "array",
+			"default": [],
+			"items": {
+				"type": "object",
+				"properties": {
+					"id": {
+						"type": "number"
+					},
+					"url": {
+						"type": "string"
+					},
+					"mime": {
+						"type": "string"
+					}
+				}
+			}
+		},
+		"fadeEffect": {
+			"type": "boolean",
+			"default": false
+		},
+		"overlayOpacity": {
+			"type": "number",
+			"default": 0
+		},
+		"contentAlignment": {
+			"type": "string",
+			"default": "center"
+		},
+		"minHeight": {
+			"type": "number",
+			"default": 0
+		}
+	},
+	"textdomain": "jvb",
+	"editorScript": "file:./index.js",
+	"viewScript": "file:./view.js",
+	"editorStyle": "file:./index.css",
+	"style": "file:./style-index.css"
+}

--
Gitblit v1.10.0