From 787b4c189549721ead7a1a6bdfa81972176e3878 Mon Sep 17 00:00:00 2001 From: Lars Gersmann Date: Fri, 12 Jul 2024 18:16:29 +0200 Subject: [PATCH] refactor : improve block.json files --- .../block.json.schema.json | 5 ----- .../block.json.schema.ui.json | 12 ++++++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/packages/wp-content/plugins/jsonschema-interactivity-block/block.json.schema.json b/packages/wp-content/plugins/jsonschema-interactivity-block/block.json.schema.json index 6f47820..f3f16f6 100644 --- a/packages/wp-content/plugins/jsonschema-interactivity-block/block.json.schema.json +++ b/packages/wp-content/plugins/jsonschema-interactivity-block/block.json.schema.json @@ -23,16 +23,11 @@ "description": "The name for a block is a unique string that identifies a block. Names have to be structured as `namespace/block-name`, where namespace is the name of your plugin or theme." }, "__experimental": { - "description": "The name of the experiment this block is a part of, or boolean true if there is no specific experiment name.", "anyOf": [ { - "title": "Name of the experiment", - "description": "The name of the experiment this block is a part of", "type": "string" }, { - "title": "Mark this block as experimental", - "description": "Check this option if this a experimental block.", "type": "boolean" } ], diff --git a/packages/wp-content/plugins/jsonschema-interactivity-block/block.json.schema.ui.json b/packages/wp-content/plugins/jsonschema-interactivity-block/block.json.schema.ui.json index 2ed6625..7b1b8e4 100644 --- a/packages/wp-content/plugins/jsonschema-interactivity-block/block.json.schema.ui.json +++ b/packages/wp-content/plugins/jsonschema-interactivity-block/block.json.schema.ui.json @@ -5,6 +5,18 @@ "apiVersion": { "ui:widget": "SelectWidget" }, + "__experimental": { + "anyOf": [ + { + "ui:title": "Name of the experiment", + "ui:description": "The name of the experiment this block is a part of, or boolean true if there is no specific experiment name." + }, + { + "ui:title": "Mark this block as experimental", + "ui:description": "The name of the experiment this block is a part of, or boolean true if there is no specific experiment name." + } + ] + }, "description": { "ui:widget": "TextareaWidget", "ui:rows": 5