Skip to content

Commit

Permalink
refactor : improve block.json files
Browse files Browse the repository at this point in the history
  • Loading branch information
lgersman committed Jul 12, 2024
1 parent 80ab45c commit 787b4c1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 787b4c1

Please sign in to comment.