block.json
69 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 2, |
| 4 | "name": "woocommerce/product-gallery", |
| 5 | "version": "1.0.0", |
| 6 | "title": "Product Gallery (Beta)", |
| 7 | "description": "Showcase your products relevant images and media.", |
| 8 | "category": "woocommerce", |
| 9 | "keywords": [ "WooCommerce" ], |
| 10 | "supports": { |
| 11 | "align": true, |
| 12 | "multiple": false, |
| 13 | "interactivity": true |
| 14 | }, |
| 15 | "textdomain": "woocommerce", |
| 16 | "usesContext": [ "postId" ], |
| 17 | "providesContext": { |
| 18 | "thumbnailsPosition": "thumbnailsPosition", |
| 19 | "thumbnailsNumberOfThumbnails": "thumbnailsNumberOfThumbnails", |
| 20 | "productGalleryClientId": "productGalleryClientId", |
| 21 | "nextPreviousButtonsPosition": "nextPreviousButtonsPosition", |
| 22 | "pagerDisplayMode": "pagerDisplayMode", |
| 23 | "hoverZoom": "hoverZoom", |
| 24 | "fullScreenOnClick": "fullScreenOnClick", |
| 25 | "mode": "mode", |
| 26 | "cropImages": "cropImages" |
| 27 | }, |
| 28 | "attributes": { |
| 29 | "thumbnailsPosition": { |
| 30 | "type": "string", |
| 31 | "default": "left" |
| 32 | }, |
| 33 | "thumbnailsNumberOfThumbnails": { |
| 34 | "type": "number", |
| 35 | "default": 3 |
| 36 | }, |
| 37 | "pagerDisplayMode": { |
| 38 | "type": "string", |
| 39 | "default": "dots" |
| 40 | }, |
| 41 | "productGalleryClientId": { |
| 42 | "type": "string", |
| 43 | "default": "" |
| 44 | }, |
| 45 | "cropImages": { |
| 46 | "type": "boolean", |
| 47 | "default": false |
| 48 | }, |
| 49 | "hoverZoom": { |
| 50 | "type": "boolean", |
| 51 | "default": true |
| 52 | }, |
| 53 | "fullScreenOnClick": { |
| 54 | "type": "boolean", |
| 55 | "default": true |
| 56 | }, |
| 57 | "nextPreviousButtonsPosition":{ |
| 58 | "type": "string", |
| 59 | "default": "insideTheImage" |
| 60 | }, |
| 61 | "mode": { |
| 62 | "type": "string", |
| 63 | "default": "standard" |
| 64 | } |
| 65 | }, |
| 66 | "viewScript": "wc-product-gallery-frontend", |
| 67 | "example": {} |
| 68 | } |
| 69 |