block.json
1 year ago
controller.php
1 year 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
1 year ago
style-index.css
1 year ago
view.php
4 months ago
block.json
76 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "surecart/sticky-purchase", |
| 5 | "title": "Sticky purchase", |
| 6 | "description": "Display the sticky purchase.", |
| 7 | "version": "1.0.0", |
| 8 | "example": {}, |
| 9 | "category": "surecart-cart", |
| 10 | "usesContext": [ |
| 11 | "showStickyPurchaseButton" |
| 12 | ], |
| 13 | "attributes": { |
| 14 | "width": { |
| 15 | "type": "string", |
| 16 | "default": "600px" |
| 17 | } |
| 18 | }, |
| 19 | "supports": { |
| 20 | "interactivity": true, |
| 21 | "multiple": false, |
| 22 | "currencyConversion": true, |
| 23 | "layout": { |
| 24 | "allowSwitching": false, |
| 25 | "allowInheriting": false, |
| 26 | "allowSizingOnChildren": true, |
| 27 | "default": { |
| 28 | "type": "flex", |
| 29 | "orientation": "horizontal", |
| 30 | "verticalAlignment": "top", |
| 31 | "flexWrap": "nowrap", |
| 32 | "wideSize": "full" |
| 33 | } |
| 34 | }, |
| 35 | "anchor": true, |
| 36 | "color": { |
| 37 | "gradients": true |
| 38 | }, |
| 39 | "spacing": { |
| 40 | "margin": true, |
| 41 | "padding": true |
| 42 | }, |
| 43 | "typography": { |
| 44 | "fontSize": true, |
| 45 | "lineHeight": true, |
| 46 | "__experimentalFontWeight": true |
| 47 | }, |
| 48 | "__experimentalBorder": { |
| 49 | "color": true, |
| 50 | "radius": true, |
| 51 | "style": true, |
| 52 | "width": true, |
| 53 | "__experimentalDefaultControls": { |
| 54 | "color": true, |
| 55 | "radius": true, |
| 56 | "style": true, |
| 57 | "width": true |
| 58 | } |
| 59 | } |
| 60 | }, |
| 61 | "textdomain": "surecart", |
| 62 | "render": "file:./view.php", |
| 63 | "editorScript": "file:./index.js", |
| 64 | "viewScriptModule": [ |
| 65 | "@surecart/product-page", |
| 66 | "@surecart/sticky-purchase" |
| 67 | ], |
| 68 | "editorStyle": [ |
| 69 | "file:./index.css" |
| 70 | ], |
| 71 | "style": [ |
| 72 | "file:./style-index.css", |
| 73 | "surecart-block-ui", |
| 74 | "surecart-spinner" |
| 75 | ] |
| 76 | } |