2020-06-26 15:33:47 +02:00
|
|
|
{
|
2022-04-12 17:12:47 +02:00
|
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
2023-06-27 16:24:19 +02:00
|
|
|
"apiVersion": 3,
|
2020-06-26 15:33:47 +02:00
|
|
|
"name": "core/search",
|
2021-05-19 17:09:27 +02:00
|
|
|
"title": "Search",
|
2020-06-26 15:33:47 +02:00
|
|
|
"category": "widgets",
|
2021-05-19 17:09:27 +02:00
|
|
|
"description": "Help visitors find your content.",
|
|
|
|
"keywords": [ "find" ],
|
|
|
|
"textdomain": "default",
|
2020-06-26 15:33:47 +02:00
|
|
|
"attributes": {
|
|
|
|
"label": {
|
2021-05-07 13:48:27 +02:00
|
|
|
"type": "string",
|
|
|
|
"__experimentalRole": "content"
|
2020-06-26 15:33:47 +02:00
|
|
|
},
|
2020-10-13 15:10:30 +02:00
|
|
|
"showLabel": {
|
2020-10-20 15:36:16 +02:00
|
|
|
"type": "boolean",
|
2020-10-13 15:10:30 +02:00
|
|
|
"default": true
|
|
|
|
},
|
2020-06-26 15:33:47 +02:00
|
|
|
"placeholder": {
|
|
|
|
"type": "string",
|
2021-05-07 13:48:27 +02:00
|
|
|
"default": "",
|
|
|
|
"__experimentalRole": "content"
|
2020-06-26 15:33:47 +02:00
|
|
|
},
|
2020-10-13 15:10:30 +02:00
|
|
|
"width": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"widthUnit": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2020-06-26 15:33:47 +02:00
|
|
|
"buttonText": {
|
2021-05-07 13:48:27 +02:00
|
|
|
"type": "string",
|
|
|
|
"__experimentalRole": "content"
|
2020-10-13 15:10:30 +02:00
|
|
|
},
|
|
|
|
"buttonPosition": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "button-outside"
|
|
|
|
},
|
|
|
|
"buttonUseIcon": {
|
2020-10-20 15:36:16 +02:00
|
|
|
"type": "boolean",
|
2020-10-13 15:10:30 +02:00
|
|
|
"default": false
|
2022-09-20 17:43:29 +02:00
|
|
|
},
|
|
|
|
"query": {
|
|
|
|
"type": "object",
|
|
|
|
"default": {}
|
2023-06-27 16:24:19 +02:00
|
|
|
},
|
|
|
|
"isSearchFieldHidden": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
2020-06-26 15:33:47 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"supports": {
|
2020-10-13 15:10:30 +02:00
|
|
|
"align": [ "left", "center", "right" ],
|
2021-11-08 15:29:21 +01:00
|
|
|
"color": {
|
|
|
|
"gradients": true,
|
2022-04-12 17:12:47 +02:00
|
|
|
"__experimentalSkipSerialization": true,
|
|
|
|
"__experimentalDefaultControls": {
|
|
|
|
"background": true,
|
|
|
|
"text": true
|
|
|
|
}
|
2021-11-08 15:29:21 +01:00
|
|
|
},
|
2023-09-26 16:23:26 +02:00
|
|
|
"interactivity": true,
|
2022-09-20 17:43:29 +02:00
|
|
|
"typography": {
|
|
|
|
"__experimentalSkipSerialization": true,
|
|
|
|
"__experimentalSelector": ".wp-block-search__label, .wp-block-search__input, .wp-block-search__button",
|
|
|
|
"fontSize": true,
|
|
|
|
"lineHeight": true,
|
|
|
|
"__experimentalFontFamily": true,
|
|
|
|
"__experimentalFontWeight": true,
|
|
|
|
"__experimentalFontStyle": true,
|
|
|
|
"__experimentalTextTransform": true,
|
|
|
|
"__experimentalTextDecoration": true,
|
|
|
|
"__experimentalLetterSpacing": true,
|
|
|
|
"__experimentalDefaultControls": {
|
|
|
|
"fontSize": true
|
|
|
|
}
|
|
|
|
},
|
2021-04-15 17:19:43 +02:00
|
|
|
"__experimentalBorder": {
|
2021-11-08 15:29:21 +01:00
|
|
|
"color": true,
|
2021-04-15 17:19:43 +02:00
|
|
|
"radius": true,
|
2022-04-12 17:12:47 +02:00
|
|
|
"width": true,
|
|
|
|
"__experimentalSkipSerialization": true,
|
|
|
|
"__experimentalDefaultControls": {
|
|
|
|
"color": true,
|
|
|
|
"radius": true,
|
|
|
|
"width": true
|
|
|
|
}
|
2021-04-15 17:19:43 +02:00
|
|
|
},
|
2020-10-20 15:36:16 +02:00
|
|
|
"html": false
|
2021-01-28 03:04:13 +01:00
|
|
|
},
|
|
|
|
"editorStyle": "wp-block-search-editor",
|
|
|
|
"style": "wp-block-search"
|
2020-06-26 15:33:47 +02:00
|
|
|
}
|