block.json
1 year ago
controller.php
1 year ago
empty.php
1 year ago
index.asset.php
4 months ago
index.js
4 months ago
style-index-rtl.css
1 year ago
style-index.css
1 year ago
view.php
1 year ago
block.json
74 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "surecart/product-image", |
| 5 | "title": "Image", |
| 6 | "description": "Display the product image.", |
| 7 | "version": "1.0.0", |
| 8 | "category": "surecart-product-list", |
| 9 | "example": {}, |
| 10 | "usesContext": [ |
| 11 | "postId" |
| 12 | ], |
| 13 | "ancestor": [ |
| 14 | "surecart/product-list" |
| 15 | ], |
| 16 | "attributes": { |
| 17 | "sizing": { |
| 18 | "type": "string", |
| 19 | "default": "cover" |
| 20 | }, |
| 21 | "aspectRatio": { |
| 22 | "type": "string" |
| 23 | }, |
| 24 | "width": { |
| 25 | "type": "string" |
| 26 | }, |
| 27 | "height": { |
| 28 | "type": "string" |
| 29 | }, |
| 30 | "isLink": { |
| 31 | "type": "boolean", |
| 32 | "default": false |
| 33 | }, |
| 34 | "rel": { |
| 35 | "type": "string", |
| 36 | "attribute": "rel", |
| 37 | "default": "" |
| 38 | }, |
| 39 | "linkTarget": { |
| 40 | "type": "string", |
| 41 | "default": "_self" |
| 42 | } |
| 43 | }, |
| 44 | "supports": { |
| 45 | "interactivity": true, |
| 46 | "inserter": false, |
| 47 | "spacing": { |
| 48 | "padding": true, |
| 49 | "margin": true, |
| 50 | "__experimentalDefaultControls": { |
| 51 | "padding": true, |
| 52 | "margin": true |
| 53 | } |
| 54 | }, |
| 55 | "color": { |
| 56 | "text": false, |
| 57 | "background": false |
| 58 | }, |
| 59 | "__experimentalBorder": { |
| 60 | "width": true, |
| 61 | "color": true, |
| 62 | "radius": true, |
| 63 | "__experimentalDefaultControls": { |
| 64 | "width": true, |
| 65 | "color": true, |
| 66 | "radius": true |
| 67 | } |
| 68 | } |
| 69 | }, |
| 70 | "render": "file:./view.php", |
| 71 | "textdomain": "surecart", |
| 72 | "editorScript": "file:./index.js", |
| 73 | "style": "file:./style-index.css" |
| 74 | } |