block.json
44 lines
| 1 | { |
| 2 | "apiVersion": 3, |
| 3 | "name": "surecart/product-collection-image", |
| 4 | "title": "Product Collection Image", |
| 5 | "description": "Displays the product collection image.", |
| 6 | "category": "surecart", |
| 7 | "textdomain": "surecart", |
| 8 | "keywords": ["image", "collection", "product"], |
| 9 | "attributes": { |
| 10 | "aspectRatio": { |
| 11 | "type": "string" |
| 12 | }, |
| 13 | "width": { |
| 14 | "type": "string" |
| 15 | }, |
| 16 | "height": { |
| 17 | "type": "string" |
| 18 | }, |
| 19 | "scale": { |
| 20 | "type": "string", |
| 21 | "default": "cover" |
| 22 | } |
| 23 | }, |
| 24 | "supports": { |
| 25 | "reusable": false, |
| 26 | "html": false, |
| 27 | "multiple": false, |
| 28 | "align": ["left", "right", "center", "wide", "full"], |
| 29 | "filter": { |
| 30 | "duotone": true |
| 31 | }, |
| 32 | "color": { |
| 33 | "__experimentalDuotone": "img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before", |
| 34 | "text": false, |
| 35 | "background": false |
| 36 | }, |
| 37 | "spacing": { |
| 38 | "margin": true, |
| 39 | "padding": true |
| 40 | } |
| 41 | }, |
| 42 | "style": "file:./style.css" |
| 43 | } |
| 44 |