From f69f2d670ad37c48d750e293bde34dc3f1431459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Ka=CC=88gy?= Date: Mon, 19 Feb 2024 07:46:58 +0100 Subject: [PATCH] fix move interactivity schema to supports property instead of selectors property --- schemas/json/block.json | 50 ++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/schemas/json/block.json b/schemas/json/block.json index 0d3fca0b8fd61..ca059291340cc 100644 --- a/schemas/json/block.json +++ b/schemas/json/block.json @@ -594,6 +594,31 @@ "default": false } } + }, + "interactivity": { + "description": "Indicates if the block is using Interactivity API features.", + "oneOf": [ + { + "type": "boolean", + "description": "Indicates whether the block is using the Interactivity API directives.", + "default": false + }, + { + "type": "object", + "properties": { + "clientNavigation": { + "type": "boolean", + "description": "Indicates whether a block is compatible with the Interactivity API client-side navigation.\n\nSet it to true only if the block is not interactive or if it is interactive using the Interactivity API. Set it to false if the block is interactive but uses vanilla JS, jQuery or another JS framework/library other than the Interactivity API.", + "default": false + }, + "interactive": { + "type": "boolean", + "description": "Indicates whether the block is using the Interactivity API directives.", + "default": false + } + } + } + ] } }, "additionalProperties": true @@ -694,31 +719,6 @@ } } ] - }, - "interactivity": { - "description": "Indicates if the block is using Interactivity API features.", - "oneOf": [ - { - "type": "boolean", - "description": "Indicates whether the block is using the Interactivity API directives.", - "default": false - }, - { - "type": "object", - "properties": { - "clientNavigation": { - "type": "boolean", - "description": "Indicates whether a block is compatible with the Interactivity API client-side navigation.\n\nSet it to true only if the block is not interactive or if it is interactive using the Interactivity API. Set it to false if the block is interactive but uses vanilla JS, jQuery or another JS framework/library other than the Interactivity API.", - "default": false - }, - "interactive": { - "type": "boolean", - "description": "Indicates whether the block is using the Interactivity API directives.", - "default": false - } - } - } - ] } } },