block.json
73 lines
| 1 | { |
| 2 | "name": "woocommerce/mini-cart", |
| 3 | "version": "1.0.0", |
| 4 | "title": "Mini-Cart", |
| 5 | "icon": "miniCartAlt", |
| 6 | "description": "Display a button for shoppers to quickly view their cart.", |
| 7 | "category": "woocommerce", |
| 8 | "keywords": [ "WooCommerce" ], |
| 9 | "textdomain": "woocommerce", |
| 10 | "supports": { |
| 11 | "html": false, |
| 12 | "multiple": false, |
| 13 | "typography": { |
| 14 | "fontSize": true |
| 15 | }, |
| 16 | "spacing": { |
| 17 | "margin": true, |
| 18 | "padding": true |
| 19 | } |
| 20 | }, |
| 21 | "example": { |
| 22 | "attributes": { |
| 23 | "className": "wc-block-mini-cart--preview" |
| 24 | } |
| 25 | }, |
| 26 | "attributes": { |
| 27 | "miniCartIcon": { |
| 28 | "type": "string", |
| 29 | "default": "cart" |
| 30 | }, |
| 31 | "addToCartBehaviour": { |
| 32 | "type": "string", |
| 33 | "default": "none" |
| 34 | }, |
| 35 | "onCartClickBehaviour": { |
| 36 | "type": "string", |
| 37 | "default": "open_drawer" |
| 38 | }, |
| 39 | "hasHiddenPrice": { |
| 40 | "type": "boolean", |
| 41 | "default": true |
| 42 | }, |
| 43 | "cartAndCheckoutRenderStyle": { |
| 44 | "type": "string", |
| 45 | "default": "hidden" |
| 46 | }, |
| 47 | "priceColor": { |
| 48 | "type": "object" |
| 49 | }, |
| 50 | "priceColorValue": { |
| 51 | "type": "string" |
| 52 | }, |
| 53 | "iconColor": { |
| 54 | "type": "object" |
| 55 | }, |
| 56 | "iconColorValue": { |
| 57 | "type": "string" |
| 58 | }, |
| 59 | "productCountColor": { |
| 60 | "type": "object" |
| 61 | }, |
| 62 | "productCountColorValue": { |
| 63 | "type": "string" |
| 64 | }, |
| 65 | "productCountVisibility": { |
| 66 | "type": "string", |
| 67 | "default": "greater_than_zero" |
| 68 | } |
| 69 | }, |
| 70 | "apiVersion": 3, |
| 71 | "$schema": "https://schemas.wp.org/trunk/block.json" |
| 72 | } |
| 73 |