block.json
58 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 2, |
| 4 | "name": "woocommerce/product-collection", |
| 5 | "version": "1.0.0", |
| 6 | "title": "Product Collection (Beta)", |
| 7 | "description": "Display a collection of products from your store.", |
| 8 | "category": "woocommerce", |
| 9 | "keywords": [ "WooCommerce", "Products (Beta)" ], |
| 10 | "textdomain": "woocommerce", |
| 11 | "attributes": { |
| 12 | "queryId": { |
| 13 | "type": "number" |
| 14 | }, |
| 15 | "query": { |
| 16 | "type": "object" |
| 17 | }, |
| 18 | "tagName": { |
| 19 | "type": "string" |
| 20 | }, |
| 21 | "displayLayout": { |
| 22 | "type": "object" |
| 23 | }, |
| 24 | "convertedFromProducts": { |
| 25 | "type": "boolean", |
| 26 | "default": false |
| 27 | }, |
| 28 | "collection": { |
| 29 | "type": "string" |
| 30 | }, |
| 31 | "hideControls": { |
| 32 | "default": [], |
| 33 | "type": "array" |
| 34 | }, |
| 35 | "queryContextIncludes": { |
| 36 | "type": "array" |
| 37 | }, |
| 38 | "forcePageReload": { |
| 39 | "type": "boolean", |
| 40 | "default": false |
| 41 | } |
| 42 | }, |
| 43 | "providesContext": { |
| 44 | "queryId": "queryId", |
| 45 | "query": "query", |
| 46 | "displayLayout": "displayLayout", |
| 47 | "queryContextIncludes": "queryContextIncludes", |
| 48 | "collection": "collection" |
| 49 | }, |
| 50 | "supports": { |
| 51 | "align": [ "wide", "full" ], |
| 52 | "anchor": true, |
| 53 | "html": false, |
| 54 | "__experimentalLayout": true, |
| 55 | "interactivity": true |
| 56 | } |
| 57 | } |
| 58 |