block.json
1 year ago
controller.php
1 year ago
index.asset.php
5 months ago
index.js
5 months ago
style-index-rtl.css
1 year ago
style-index.css
1 year ago
view.php
3 months ago
block.json
56 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "surecart/cart-menu-icon-button", |
| 5 | "title": "Cart Toggle Icon", |
| 6 | "description": "The cart menu icon that shows your cart quantity.", |
| 7 | "version": "1.0.0", |
| 8 | "category": "surecart-cart", |
| 9 | "example": {}, |
| 10 | "attributes": { |
| 11 | "cart_icon": { |
| 12 | "type": "string", |
| 13 | "default": "shopping-bag" |
| 14 | }, |
| 15 | "cart_menu_always_shown": { |
| 16 | "type": "boolean", |
| 17 | "default": true |
| 18 | } |
| 19 | }, |
| 20 | "supports": { |
| 21 | "interactivity": true, |
| 22 | "spacing": { |
| 23 | "padding": true, |
| 24 | "margin": true, |
| 25 | "__experimentalDefaultControls": { |
| 26 | "padding": true, |
| 27 | "margin": true |
| 28 | } |
| 29 | }, |
| 30 | "color": { |
| 31 | "text": true, |
| 32 | "background": false |
| 33 | }, |
| 34 | "__experimentalBorder": { |
| 35 | "width": true, |
| 36 | "color": true, |
| 37 | "__experimentalDefaultControls": { |
| 38 | "width": true, |
| 39 | "color": true |
| 40 | } |
| 41 | } |
| 42 | }, |
| 43 | "render": "file:./view.php", |
| 44 | "textdomain": "surecart", |
| 45 | "editorScript": "file:./index.js", |
| 46 | "style": [ |
| 47 | "file:./style-index.css" |
| 48 | ], |
| 49 | "editorStyle": [ |
| 50 | "surecart-choice", |
| 51 | "file:./index.css" |
| 52 | ], |
| 53 | "viewScriptModule": [ |
| 54 | "@surecart/checkout" |
| 55 | ] |
| 56 | } |