block.json
71 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 | "keywords": [ |
| 9 | "products", |
| 10 | "product", |
| 11 | "archive", |
| 12 | "list", |
| 13 | "store", |
| 14 | "collections" |
| 15 | ], |
| 16 | "supports": { |
| 17 | "align": true, |
| 18 | "reusable": false, |
| 19 | "html": false, |
| 20 | "multiple": false, |
| 21 | "spacing": { |
| 22 | "blockGap": true, |
| 23 | "__experimentalDefaultControls": { |
| 24 | "blockGap": true |
| 25 | } |
| 26 | } |
| 27 | }, |
| 28 | "attributes": { |
| 29 | "columns": { |
| 30 | "type": "number", |
| 31 | "default": 4 |
| 32 | }, |
| 33 | "limit": { |
| 34 | "type": "number", |
| 35 | "default": 15 |
| 36 | }, |
| 37 | "pagination_enabled": { |
| 38 | "type": "boolean", |
| 39 | "default": true |
| 40 | }, |
| 41 | "ajax_pagination": { |
| 42 | "type": "boolean", |
| 43 | "default": true |
| 44 | }, |
| 45 | "pagination_auto_scroll": { |
| 46 | "type": "boolean", |
| 47 | "default": true |
| 48 | }, |
| 49 | "search_enabled": { |
| 50 | "type": "boolean", |
| 51 | "default": true |
| 52 | }, |
| 53 | "sort_enabled": { |
| 54 | "type": "boolean", |
| 55 | "default": true |
| 56 | }, |
| 57 | "pagination_alignment": { |
| 58 | "type": "string", |
| 59 | "default": "center" |
| 60 | }, |
| 61 | "pagination_size": { |
| 62 | "type": "string", |
| 63 | "default": "14px" |
| 64 | }, |
| 65 | "collection_id": { |
| 66 | "type": "string", |
| 67 | "default": "" |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 |