From 12ee83007798d05753f61639946615d47c6dc1ac Mon Sep 17 00:00:00 2001 From: Tetsuaki Hamano Date: Thu, 15 Feb 2024 17:44:05 +0900 Subject: [PATCH] Block JSON schema: Add `viewScriptModule` field --- schemas/json/block.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/schemas/json/block.json b/schemas/json/block.json index 7ac384db798ca..299327a96a64b 100644 --- a/schemas/json/block.json +++ b/schemas/json/block.json @@ -798,6 +798,20 @@ } ] }, + "viewScriptModule": { + "description": "Block type frontend script module definition. It will be enqueued only when viewing the content on the front of the site.", + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ] + }, "editorStyle": { "description": "Block type editor style definition. It will only be enqueued in the context of the editor.", "oneOf": [