block.json
61 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "woocommerce/product-template", |
| 5 | "title": "Product Template", |
| 6 | "category": "woocommerce", |
| 7 | "description": "Contains the block elements used to render a product.", |
| 8 | "keywords": [ "WooCommerce" ], |
| 9 | "textdomain": "woocommerce", |
| 10 | "usesContext": [ |
| 11 | "queryId", |
| 12 | "query", |
| 13 | "queryContext", |
| 14 | "displayLayout", |
| 15 | "templateSlug", |
| 16 | "postId", |
| 17 | "queryContextIncludes", |
| 18 | "collection", |
| 19 | "__privateProductCollectionPreviewState" |
| 20 | ], |
| 21 | "supports": { |
| 22 | "interactivity": true, |
| 23 | "inserter": false, |
| 24 | "reusable": false, |
| 25 | "html": false, |
| 26 | "align": [ "wide", "full" ], |
| 27 | "anchor": true, |
| 28 | "color": { |
| 29 | "gradients": true, |
| 30 | "link": true, |
| 31 | "__experimentalDefaultControls": { |
| 32 | "background": true, |
| 33 | "text": true |
| 34 | } |
| 35 | }, |
| 36 | "typography": { |
| 37 | "fontSize": true, |
| 38 | "lineHeight": true, |
| 39 | "__experimentalFontFamily": true, |
| 40 | "__experimentalFontWeight": true, |
| 41 | "__experimentalFontStyle": true, |
| 42 | "__experimentalTextTransform": true, |
| 43 | "__experimentalTextDecoration": true, |
| 44 | "__experimentalLetterSpacing": true, |
| 45 | "__experimentalDefaultControls": { |
| 46 | "fontSize": true |
| 47 | } |
| 48 | }, |
| 49 | "layout": { |
| 50 | "allowEditing": false, |
| 51 | "allowSwitching": false, |
| 52 | "allowInheriting": false, |
| 53 | "allowSizingOnChildren": false, |
| 54 | "allowVerticalAlignment": false |
| 55 | }, |
| 56 | "email": true |
| 57 | }, |
| 58 | "editorStyle": "file:../woocommerce/product-template-editor.css", |
| 59 | "style": "file:../woocommerce/product-template-style.css" |
| 60 | } |
| 61 |