build/scripts/block-library/query-title
block.json
1.5 KB
6 months ago
block.json in Gutenberg 23.2.0, at build/scripts/block-library/query-title/block.json
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "core/query-title", |
| 5 | "title": "Query Title", |
| 6 | "category": "theme", |
| 7 | "description": "Display the query title.", |
| 8 | "textdomain": "default", |
| 9 | "attributes": { |
| 10 | "type": { |
| 11 | "type": "string" |
| 12 | }, |
| 13 | "level": { |
| 14 | "type": "number", |
| 15 | "default": 1 |
| 16 | }, |
| 17 | "levelOptions": { |
| 18 | "type": "array" |
| 19 | }, |
| 20 | "showPrefix": { |
| 21 | "type": "boolean", |
| 22 | "default": true |
| 23 | }, |
| 24 | "showSearchTerm": { |
| 25 | "type": "boolean", |
| 26 | "default": true |
| 27 | } |
| 28 | }, |
| 29 | "example": { |
| 30 | "attributes": { |
| 31 | "type": "search" |
| 32 | } |
| 33 | }, |
| 34 | "usesContext": [ "query" ], |
| 35 | "supports": { |
| 36 | "anchor": true, |
| 37 | "align": [ "wide", "full" ], |
| 38 | "html": false, |
| 39 | "color": { |
| 40 | "gradients": true, |
| 41 | "__experimentalDefaultControls": { |
| 42 | "background": true, |
| 43 | "text": true |
| 44 | } |
| 45 | }, |
| 46 | "spacing": { |
| 47 | "margin": true, |
| 48 | "padding": true |
| 49 | }, |
| 50 | "typography": { |
| 51 | "fontSize": true, |
| 52 | "lineHeight": true, |
| 53 | "textAlign": true, |
| 54 | "__experimentalFontFamily": true, |
| 55 | "__experimentalFontStyle": true, |
| 56 | "__experimentalFontWeight": true, |
| 57 | "__experimentalLetterSpacing": true, |
| 58 | "__experimentalTextTransform": true, |
| 59 | "__experimentalTextDecoration": true, |
| 60 | "__experimentalDefaultControls": { |
| 61 | "fontSize": true |
| 62 | } |
| 63 | }, |
| 64 | "interactivity": { |
| 65 | "clientNavigation": true |
| 66 | }, |
| 67 | "__experimentalBorder": { |
| 68 | "radius": true, |
| 69 | "color": true, |
| 70 | "width": true, |
| 71 | "style": true, |
| 72 | "__experimentalDefaultControls": { |
| 73 | "radius": true, |
| 74 | "color": true, |
| 75 | "width": true, |
| 76 | "style": true |
| 77 | } |
| 78 | } |
| 79 | }, |
| 80 | "style": "wp-block-query-title" |
| 81 | } |
| 82 |