surecart
/
packages
/
blocks-next
/
build
/
blocks
/
product-selected-variant-image
Last commit date
block.json
11 months ago
controller.php
11 months ago
index.asset.php
1 week ago
index.js
1 week ago
style-index-rtl.css
11 months ago
style-index.css
11 months ago
view.php
1 year ago
block.json
68 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "surecart/product-selected-variant-image", |
| 5 | "title": "Product Selected Variant Image", |
| 6 | "description": "Shows the image for the currently selected product variant.", |
| 7 | "version": "1.0.0", |
| 8 | "category": "surecart-product-page", |
| 9 | "icon": "tag", |
| 10 | "ancestor": [ |
| 11 | "surecart/product-page", |
| 12 | "surecart/product-template", |
| 13 | "surecart/sticky-purchase", |
| 14 | "surecart/product-quick-view" |
| 15 | ], |
| 16 | "example": { |
| 17 | "attributes": {} |
| 18 | }, |
| 19 | "attributes": { |
| 20 | "sizing": { |
| 21 | "type": "string", |
| 22 | "default": "cover" |
| 23 | }, |
| 24 | "aspectRatio": { |
| 25 | "type": "string" |
| 26 | }, |
| 27 | "width": { |
| 28 | "type": "string" |
| 29 | }, |
| 30 | "height": { |
| 31 | "type": "string" |
| 32 | }, |
| 33 | "hide_on_mobile": { |
| 34 | "type": "boolean", |
| 35 | "default": false |
| 36 | } |
| 37 | }, |
| 38 | "supports": { |
| 39 | "interactivity": true, |
| 40 | "anchor": true, |
| 41 | "spacing": { |
| 42 | "padding": true, |
| 43 | "margin": true, |
| 44 | "__experimentalDefaultControls": { |
| 45 | "padding": true, |
| 46 | "margin": true |
| 47 | } |
| 48 | }, |
| 49 | "color": { |
| 50 | "text": false, |
| 51 | "background": false |
| 52 | }, |
| 53 | "__experimentalBorder": { |
| 54 | "width": true, |
| 55 | "color": true, |
| 56 | "radius": true, |
| 57 | "__experimentalDefaultControls": { |
| 58 | "width": true, |
| 59 | "color": true, |
| 60 | "radius": true |
| 61 | } |
| 62 | } |
| 63 | }, |
| 64 | "textdomain": "surecart", |
| 65 | "render": "file:./view.php", |
| 66 | "editorScript": "file:./index.js", |
| 67 | "style": "file:./style-index.css" |
| 68 | } |