build/scripts/block-library/post-author
block.json
1.9 KB
6 months ago
block.json in Gutenberg 23.2.0, at build/scripts/block-library/post-author/block.json
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "core/post-author", |
| 5 | "title": "Author (deprecated)", |
| 6 | "category": "theme", |
| 7 | "description": "This block is deprecated. Please use the Avatar block, the Author Name block, and the Author Biography block instead.", |
| 8 | "textdomain": "default", |
| 9 | "attributes": { |
| 10 | "textAlign": { |
| 11 | "type": "string" |
| 12 | }, |
| 13 | "avatarSize": { |
| 14 | "type": "number", |
| 15 | "default": 48 |
| 16 | }, |
| 17 | "showAvatar": { |
| 18 | "type": "boolean", |
| 19 | "default": true |
| 20 | }, |
| 21 | "showBio": { |
| 22 | "type": "boolean" |
| 23 | }, |
| 24 | "byline": { |
| 25 | "type": "string" |
| 26 | }, |
| 27 | "isLink": { |
| 28 | "type": "boolean", |
| 29 | "default": false, |
| 30 | "role": "content" |
| 31 | }, |
| 32 | "linkTarget": { |
| 33 | "type": "string", |
| 34 | "default": "_self", |
| 35 | "role": "content" |
| 36 | } |
| 37 | }, |
| 38 | "usesContext": [ "postType", "postId", "queryId" ], |
| 39 | "supports": { |
| 40 | "inserter": false, |
| 41 | "anchor": true, |
| 42 | "html": false, |
| 43 | "spacing": { |
| 44 | "margin": true, |
| 45 | "padding": true |
| 46 | }, |
| 47 | "typography": { |
| 48 | "fontSize": true, |
| 49 | "lineHeight": true, |
| 50 | "__experimentalFontFamily": true, |
| 51 | "__experimentalFontWeight": true, |
| 52 | "__experimentalFontStyle": true, |
| 53 | "__experimentalTextTransform": true, |
| 54 | "__experimentalTextDecoration": true, |
| 55 | "__experimentalLetterSpacing": true, |
| 56 | "__experimentalDefaultControls": { |
| 57 | "fontSize": true |
| 58 | } |
| 59 | }, |
| 60 | "color": { |
| 61 | "gradients": true, |
| 62 | "link": true, |
| 63 | "__experimentalDefaultControls": { |
| 64 | "background": true, |
| 65 | "text": true |
| 66 | } |
| 67 | }, |
| 68 | "interactivity": { |
| 69 | "clientNavigation": true |
| 70 | }, |
| 71 | "__experimentalBorder": { |
| 72 | "radius": true, |
| 73 | "color": true, |
| 74 | "width": true, |
| 75 | "style": true, |
| 76 | "__experimentalDefaultControls": { |
| 77 | "radius": true, |
| 78 | "color": true, |
| 79 | "width": true, |
| 80 | "style": true |
| 81 | } |
| 82 | }, |
| 83 | "filter": { |
| 84 | "duotone": true |
| 85 | } |
| 86 | }, |
| 87 | "selectors": { |
| 88 | "filter": { |
| 89 | "duotone": ".wp-block-post-author .wp-block-post-author__avatar img" |
| 90 | } |
| 91 | }, |
| 92 | "editorStyle": "wp-block-post-author-editor", |
| 93 | "style": "wp-block-post-author" |
| 94 | } |
| 95 |