block.json
8 months ago
controller.php
11 months ago
index-rtl.css
11 months ago
index.asset.php
6 months ago
index.css
11 months ago
index.js
6 months ago
style-index-rtl.css
10 months ago
style-index.css
10 months ago
view.php
11 months ago
block.json
66 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "surecart/product-quick-view", |
| 5 | "title": "Product Quick Add", |
| 6 | "description": "Display the product quick add button.", |
| 7 | "version": "1.0.0", |
| 8 | "category": "surecart-product-list", |
| 9 | "example": {}, |
| 10 | "attributes": { |
| 11 | "alignment": { |
| 12 | "type": "string" |
| 13 | }, |
| 14 | "width": { |
| 15 | "type": "string" |
| 16 | }, |
| 17 | "height": { |
| 18 | "type": "string" |
| 19 | } |
| 20 | }, |
| 21 | "supports": { |
| 22 | "inserter": false, |
| 23 | "interactivity": true, |
| 24 | "color": { |
| 25 | "__experimentalSkipSerialization": true, |
| 26 | "gradients": true, |
| 27 | "link": false, |
| 28 | "__experimentalDefaultControls": { |
| 29 | "background": true, |
| 30 | "text": true |
| 31 | } |
| 32 | }, |
| 33 | "spacing": { |
| 34 | "__experimentalSkipSerialization": true, |
| 35 | "margin": true, |
| 36 | "padding": true |
| 37 | }, |
| 38 | "typography": { |
| 39 | "fontSize": true, |
| 40 | "lineHeight": true, |
| 41 | "__experimentalFontWeight": true |
| 42 | } |
| 43 | }, |
| 44 | "textdomain": "surecart", |
| 45 | "render": "file:./view.php", |
| 46 | "editorScript": "file:./index.js", |
| 47 | "viewScript": [ |
| 48 | "wp-url", |
| 49 | "wp-api-fetch" |
| 50 | ], |
| 51 | "viewScriptModule": [ |
| 52 | "@surecart/checkout", |
| 53 | "@surecart/cart", |
| 54 | "@surecart/product-page", |
| 55 | "@surecart/product-quick-view", |
| 56 | "surecart/lightbox" |
| 57 | ], |
| 58 | "editorStyle": [ |
| 59 | "file:./index.css" |
| 60 | ], |
| 61 | "style": [ |
| 62 | "file:./style-index.css", |
| 63 | "surecart-block-ui", |
| 64 | "surecart-spinner" |
| 65 | ] |
| 66 | } |