block.json
72 lines
| 1 | { |
| 2 | "$schema": "https://json.schemastore.org/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "surecart/product-collection", |
| 5 | "title": "Product Collections", |
| 6 | "description": "Display a list of products for a collection.", |
| 7 | "category": "surecart", |
| 8 | "textdomain": "surecart", |
| 9 | "keywords": [ |
| 10 | "products", |
| 11 | "product", |
| 12 | "archive", |
| 13 | "list", |
| 14 | "store", |
| 15 | "collections" |
| 16 | ], |
| 17 | "supports": { |
| 18 | "align": true, |
| 19 | "reusable": false, |
| 20 | "html": false, |
| 21 | "multiple": false, |
| 22 | "spacing": { |
| 23 | "blockGap": true, |
| 24 | "__experimentalDefaultControls": { |
| 25 | "blockGap": true |
| 26 | } |
| 27 | } |
| 28 | }, |
| 29 | "attributes": { |
| 30 | "columns": { |
| 31 | "type": "number", |
| 32 | "default": 4 |
| 33 | }, |
| 34 | "limit": { |
| 35 | "type": "number", |
| 36 | "default": 15 |
| 37 | }, |
| 38 | "pagination_enabled": { |
| 39 | "type": "boolean", |
| 40 | "default": true |
| 41 | }, |
| 42 | "ajax_pagination": { |
| 43 | "type": "boolean", |
| 44 | "default": true |
| 45 | }, |
| 46 | "pagination_auto_scroll": { |
| 47 | "type": "boolean", |
| 48 | "default": true |
| 49 | }, |
| 50 | "search_enabled": { |
| 51 | "type": "boolean", |
| 52 | "default": true |
| 53 | }, |
| 54 | "sort_enabled": { |
| 55 | "type": "boolean", |
| 56 | "default": true |
| 57 | }, |
| 58 | "pagination_alignment": { |
| 59 | "type": "string", |
| 60 | "default": "center" |
| 61 | }, |
| 62 | "pagination_size": { |
| 63 | "type": "string", |
| 64 | "default": "14px" |
| 65 | }, |
| 66 | "collection_id": { |
| 67 | "type": "string", |
| 68 | "default": "" |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 |