| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"textdomain": "getwid", |
| 5 |
"name": "getwid/person", |
| 6 |
"description": "Introduces a person with image and details.", |
| 7 |
"category": "getwid-blocks", |
| 8 |
"title": "Person", |
| 9 |
"keywords": [ |
| 10 |
"team", |
| 11 |
"member" |
| 12 |
], |
| 13 |
"supports": { |
| 14 |
"html": false |
| 15 |
}, |
| 16 |
"attributes": { |
| 17 |
"imageSize": { |
| 18 |
"type": "string", |
| 19 |
"default": "full" |
| 20 |
}, |
| 21 |
"imageCrop": { |
| 22 |
"type": "boolean", |
| 23 |
"default": true |
| 24 |
}, |
| 25 |
"title": { |
| 26 |
"type": "string", |
| 27 |
"source": "html", |
| 28 |
"selector": ".wp-block-getwid-person__title" |
| 29 |
}, |
| 30 |
"subtitle": { |
| 31 |
"type": "string", |
| 32 |
"source": "html", |
| 33 |
"selector": ".wp-block-getwid-person__subtitle" |
| 34 |
}, |
| 35 |
"content": { |
| 36 |
"type": "string", |
| 37 |
"source": "html", |
| 38 |
"selector": ".wp-block-getwid-person__content" |
| 39 |
}, |
| 40 |
"imgId": { |
| 41 |
"type": "number" |
| 42 |
}, |
| 43 |
"imgUrl": { |
| 44 |
"type": "string", |
| 45 |
"source": "attribute", |
| 46 |
"attribute": "src", |
| 47 |
"selector": ".wp-block-getwid-person__image img" |
| 48 |
}, |
| 49 |
"imgAlt": { |
| 50 |
"type": "string", |
| 51 |
"source": "attribute", |
| 52 |
"attribute": "alt", |
| 53 |
"selector": ".wp-block-getwid-person__image img" |
| 54 |
} |
| 55 |
}, |
| 56 |
"editorScript": "file:./index.js", |
| 57 |
"editorStyle": "file:./index.css", |
| 58 |
"style": "file:./style-index.css" |
| 59 |
} |