block.json in Gutenberg 10.0.0, at build/block-library/blocks/post-author/block.json
| 1 | { |
| 2 | "apiVersion": 2, |
| 3 | "name": "core/post-author", |
| 4 | "category": "design", |
| 5 | "attributes": { |
| 6 | "textAlign": { |
| 7 | "type": "string" |
| 8 | }, |
| 9 | "avatarSize": { |
| 10 | "type": "number", |
| 11 | "default": 48 |
| 12 | }, |
| 13 | "showAvatar": { |
| 14 | "type": "boolean", |
| 15 | "default": true |
| 16 | }, |
| 17 | "showBio": { |
| 18 | "type": "boolean" |
| 19 | }, |
| 20 | "byline": { |
| 21 | "type": "string" |
| 22 | } |
| 23 | }, |
| 24 | "usesContext": [ |
| 25 | "postType", |
| 26 | "postId" |
| 27 | ], |
| 28 | "supports": { |
| 29 | "html": false, |
| 30 | "fontSize": true, |
| 31 | "color": { |
| 32 | "gradients": true, |
| 33 | "link": true |
| 34 | }, |
| 35 | "lineHeight": true |
| 36 | }, |
| 37 | "editorStyle": "wp-block-post-author-editor", |
| 38 | "style": "wp-block-post-author" |
| 39 | } |
| 40 |