2020-06-26 09:33:47 -04:00
|
|
|
{
|
2022-04-12 11:12:47 -04:00
|
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
2023-06-27 10:24:19 -04:00
|
|
|
"apiVersion": 3,
|
2020-06-26 09:33:47 -04:00
|
|
|
"name": "core/search",
|
2021-05-19 11:09:27 -04:00
|
|
|
"title": "Search",
|
2020-06-26 09:33:47 -04:00
|
|
|
"category": "widgets",
|
2021-05-19 11:09:27 -04:00
|
|
|
"description": "Help visitors find your content.",
|
|
|
|
"keywords": [ "find" ],
|
|
|
|
"textdomain": "default",
|
2020-06-26 09:33:47 -04:00
|
|
|
"attributes": {
|
|
|
|
"label": {
|
2021-05-07 07:48:27 -04:00
|
|
|
"type": "string",
|
|
|
|
"__experimentalRole": "content"
|
2020-06-26 09:33:47 -04:00
|
|
|
},
|
2020-10-13 09:10:30 -04:00
|
|
|
"showLabel": {
|
2020-10-20 09:36:16 -04:00
|
|
|
"type": "boolean",
|
2020-10-13 09:10:30 -04:00
|
|
|
"default": true
|
|
|
|
},
|
2020-06-26 09:33:47 -04:00
|
|
|
"placeholder": {
|
|
|
|
"type": "string",
|
2021-05-07 07:48:27 -04:00
|
|
|
"default": "",
|
|
|
|
"__experimentalRole": "content"
|
2020-06-26 09:33:47 -04:00
|
|
|
},
|
2020-10-13 09:10:30 -04:00
|
|
|
"width": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"widthUnit": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2020-06-26 09:33:47 -04:00
|
|
|
"buttonText": {
|
2021-05-07 07:48:27 -04:00
|
|
|
"type": "string",
|
|
|
|
"__experimentalRole": "content"
|
2020-10-13 09:10:30 -04:00
|
|
|
},
|
|
|
|
"buttonPosition": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "button-outside"
|
|
|
|
},
|
|
|
|
"buttonUseIcon": {
|
2020-10-20 09:36:16 -04:00
|
|
|
"type": "boolean",
|
2020-10-13 09:10:30 -04:00
|
|
|
"default": false
|
2022-09-20 11:43:29 -04:00
|
|
|
},
|
|
|
|
"query": {
|
|
|
|
"type": "object",
|
|
|
|
"default": {}
|
2023-06-27 10:24:19 -04:00
|
|
|
},
|
|
|
|
"buttonBehavior": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "expand-searchfield"
|
|
|
|
},
|
|
|
|
"isSearchFieldHidden": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
2020-06-26 09:33:47 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"supports": {
|
2020-10-13 09:10:30 -04:00
|
|
|
"align": [ "left", "center", "right" ],
|
2021-11-08 09:29:21 -05:00
|
|
|
"color": {
|
|
|
|
"gradients": true,
|
2022-04-12 11:12:47 -04:00
|
|
|
"__experimentalSkipSerialization": true,
|
|
|
|
"__experimentalDefaultControls": {
|
|
|
|
"background": true,
|
|
|
|
"text": true
|
|
|
|
}
|
2021-11-08 09:29:21 -05:00
|
|
|
},
|
2023-09-26 10:23:26 -04:00
|
|
|
"interactivity": true,
|
2022-09-20 11:43:29 -04: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 11:19:43 -04:00
|
|
|
"__experimentalBorder": {
|
2021-11-08 09:29:21 -05:00
|
|
|
"color": true,
|
2021-04-15 11:19:43 -04:00
|
|
|
"radius": true,
|
2022-04-12 11:12:47 -04:00
|
|
|
"width": true,
|
|
|
|
"__experimentalSkipSerialization": true,
|
|
|
|
"__experimentalDefaultControls": {
|
|
|
|
"color": true,
|
|
|
|
"radius": true,
|
|
|
|
"width": true
|
|
|
|
}
|
2021-04-15 11:19:43 -04:00
|
|
|
},
|
2020-10-20 09:36:16 -04:00
|
|
|
"html": false
|
2021-01-27 21:04:13 -05:00
|
|
|
},
|
2023-07-18 03:20:48 -04:00
|
|
|
"viewScript": "file:./view.min.js",
|
2021-01-27 21:04:13 -05:00
|
|
|
"editorStyle": "wp-block-search-editor",
|
|
|
|
"style": "wp-block-search"
|
2020-06-26 09:33:47 -04:00
|
|
|
}
|