build/scripts/block-library/search
block.json
2.5 KB
4 months ago
block.json in Gutenberg 23.2.0, at build/scripts/block-library/search/block.json
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "core/search", |
| 5 | "title": "Search", |
| 6 | "category": "widgets", |
| 7 | "description": "Help visitors find your content.", |
| 8 | "keywords": [ "find" ], |
| 9 | "textdomain": "default", |
| 10 | "attributes": { |
| 11 | "label": { |
| 12 | "type": "string", |
| 13 | "role": "content" |
| 14 | }, |
| 15 | "showLabel": { |
| 16 | "type": "boolean", |
| 17 | "default": true |
| 18 | }, |
| 19 | "placeholder": { |
| 20 | "type": "string", |
| 21 | "default": "", |
| 22 | "role": "content" |
| 23 | }, |
| 24 | "width": { |
| 25 | "type": "number" |
| 26 | }, |
| 27 | "widthUnit": { |
| 28 | "type": "string" |
| 29 | }, |
| 30 | "buttonText": { |
| 31 | "type": "string", |
| 32 | "role": "content" |
| 33 | }, |
| 34 | "buttonPosition": { |
| 35 | "type": "string", |
| 36 | "default": "button-outside" |
| 37 | }, |
| 38 | "buttonUseIcon": { |
| 39 | "type": "boolean", |
| 40 | "default": false |
| 41 | }, |
| 42 | "query": { |
| 43 | "type": "object", |
| 44 | "default": {} |
| 45 | } |
| 46 | }, |
| 47 | "supports": { |
| 48 | "anchor": true, |
| 49 | "align": [ "left", "center", "right" ], |
| 50 | "color": { |
| 51 | "gradients": true, |
| 52 | "__experimentalSkipSerialization": true, |
| 53 | "__experimentalDefaultControls": { |
| 54 | "background": true, |
| 55 | "text": true |
| 56 | } |
| 57 | }, |
| 58 | "interactivity": true, |
| 59 | "typography": { |
| 60 | "__experimentalSkipSerialization": true, |
| 61 | "__experimentalSelector": ".wp-block-search__label, .wp-block-search__input, .wp-block-search__button", |
| 62 | "fontSize": true, |
| 63 | "lineHeight": true, |
| 64 | "__experimentalFontFamily": true, |
| 65 | "__experimentalFontWeight": true, |
| 66 | "__experimentalFontStyle": true, |
| 67 | "__experimentalTextTransform": true, |
| 68 | "__experimentalTextDecoration": true, |
| 69 | "__experimentalLetterSpacing": true, |
| 70 | "__experimentalDefaultControls": { |
| 71 | "fontSize": true |
| 72 | } |
| 73 | }, |
| 74 | "__experimentalBorder": { |
| 75 | "color": true, |
| 76 | "radius": true, |
| 77 | "width": true, |
| 78 | "__experimentalSkipSerialization": true, |
| 79 | "__experimentalDefaultControls": { |
| 80 | "color": true, |
| 81 | "radius": true, |
| 82 | "width": true |
| 83 | } |
| 84 | }, |
| 85 | "spacing": { |
| 86 | "margin": true |
| 87 | }, |
| 88 | "html": false |
| 89 | }, |
| 90 | "editorStyle": "wp-block-search-editor", |
| 91 | "style": "wp-block-search", |
| 92 | "selectors": { |
| 93 | "color": ".wp-block-search .wp-block-search__button, .wp-block-search.wp-block-search__no-button .wp-block-search__input", |
| 94 | "border": ".wp-block-search.wp-block-search__button-outside .wp-block-search__input, .wp-block-search.wp-block-search__button-outside .wp-block-search__button, .wp-block-search.wp-block-search__no-button .wp-block-search__input, .wp-block-search.wp-block-search__button-only .wp-block-search__input, .wp-block-search.wp-block-search__button-only .wp-block-search__button, .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper" |
| 95 | } |
| 96 | } |
| 97 |