block.json
72 lines
| 1 | { |
| 2 | "$schema": "https://json.schemastore.org/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "surecart/product-item-list", |
| 5 | "title": "Product List", |
| 6 | "description": "Display a list of products from your store.", |
| 7 | "category": "surecart", |
| 8 | "textdomain": "surecart", |
| 9 | "keywords": ["products", "product", "list", "store"], |
| 10 | "supports": { |
| 11 | "align": true, |
| 12 | "reusable": false, |
| 13 | "html": false, |
| 14 | "inserter": false, |
| 15 | "spacing": { |
| 16 | "blockGap": true, |
| 17 | "__experimentalDefaultControls": { |
| 18 | "blockGap": true |
| 19 | } |
| 20 | } |
| 21 | }, |
| 22 | "attributes": { |
| 23 | "columns": { |
| 24 | "type": "number", |
| 25 | "default": 4 |
| 26 | }, |
| 27 | "limit": { |
| 28 | "type": "number", |
| 29 | "default": 15 |
| 30 | }, |
| 31 | "pagination_enabled": { |
| 32 | "type": "boolean", |
| 33 | "default": true |
| 34 | }, |
| 35 | "ajax_pagination": { |
| 36 | "type": "boolean", |
| 37 | "default": true |
| 38 | }, |
| 39 | "pagination_auto_scroll": { |
| 40 | "type": "boolean", |
| 41 | "default": true |
| 42 | }, |
| 43 | "search_enabled": { |
| 44 | "type": "boolean", |
| 45 | "default": true |
| 46 | }, |
| 47 | "type": { |
| 48 | "type": "string" |
| 49 | }, |
| 50 | "sort_enabled": { |
| 51 | "type": "boolean", |
| 52 | "default": true |
| 53 | }, |
| 54 | "collection_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 | "ids": { |
| 67 | "type": "array", |
| 68 | "default": [] |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 |