--- a/wp/wp-includes/blocks/search/block.json Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-includes/blocks/search/block.json Wed Sep 21 18:19:35 2022 +0200
@@ -1,33 +1,52 @@
{
+ "apiVersion": 2,
"name": "core/search",
+ "title": "Search",
"category": "widgets",
+ "description": "Help visitors find your content.",
+ "keywords": [ "find" ],
+ "textdomain": "default",
"attributes": {
- "align": {
+ "label": {
"type": "string",
- "enum": [
- "left",
- "center",
- "right",
- "wide",
- "full"
- ]
+ "__experimentalRole": "content"
},
- "className": {
- "type": "string"
- },
- "label": {
- "type": "string"
+ "showLabel": {
+ "type": "boolean",
+ "default": true
},
"placeholder": {
"type": "string",
- "default": ""
+ "default": "",
+ "__experimentalRole": "content"
+ },
+ "width": {
+ "type": "number"
+ },
+ "widthUnit": {
+ "type": "string"
},
"buttonText": {
- "type": "string"
+ "type": "string",
+ "__experimentalRole": "content"
+ },
+ "buttonPosition": {
+ "type": "string",
+ "default": "button-outside"
+ },
+ "buttonUseIcon": {
+ "type": "boolean",
+ "default": false
}
},
"supports": {
- "align": true,
+ "align": [ "left", "center", "right" ],
+ "__experimentalBorder": {
+ "radius": true,
+ "__experimentalSkipSerialization": true
+ },
"html": false
- }
+ },
+ "editorStyle": "wp-block-search-editor",
+ "style": "wp-block-search"
}