Add responsive player layout, captions and native terminal sizing

This commit is contained in:
2026-10-13 16:31:55 +08:00
parent 4f85e3f420
commit 2041124178
22 changed files with 633 additions and 36 deletions
+5 -1
View File
@@ -2,7 +2,7 @@
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "lamgc/asciiplayer",
"version": "1.1.0",
"version": "1.2.0",
"title": "Asciicast Player",
"category": "media",
"icon": "editor-code",
@@ -21,6 +21,9 @@
"autoPlay": { "type": "boolean", "default": false },
"preload": { "type": "boolean", "default": true },
"width": { "type": "string", "default": "100%" },
"displayAlign": { "type": "string", "default": "center", "enum": ["left", "center", "right"] },
"caption": { "type": "string", "default": "" },
"isExample": { "type": "boolean", "default": false },
"legacyStyle": { "type": "string", "default": "" },
"cols": { "type": "number" },
"rows": { "type": "number" },
@@ -29,6 +32,7 @@
"terminalLineHeight": { "type": "number" },
"poster": { "type": "string" }
},
"example": { "attributes": { "isExample": true } },
"supports": { "html": false, "align": ["wide", "full"] },
"editorScript": "lamgc-asciiplayer-editor",
"viewScript": "lamgc-asciiplayer-view",