block.json
1 year ago
index.asset.php
1 month ago
index.js
1 month ago
style-index-rtl.css
1 year ago
style-index.css
1 year ago
view.php
1 year ago
block.json
60 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "surecart/product-page", |
| 5 | "title": "Product Form", |
| 6 | "description": "Display product form.", |
| 7 | "version": "1.0.0", |
| 8 | "category": "surecart-product-page", |
| 9 | "providesContext": { |
| 10 | "surecart/product_id": "product_id" |
| 11 | }, |
| 12 | "usesContext": [ |
| 13 | "queryId", |
| 14 | "query", |
| 15 | "displayLayout", |
| 16 | "templateSlug", |
| 17 | "previewPostType", |
| 18 | "enhancedPagination", |
| 19 | "postType" |
| 20 | ], |
| 21 | "attributes": { |
| 22 | "product_id": { |
| 23 | "type": "string" |
| 24 | }, |
| 25 | "product_post_id": { |
| 26 | "type": "integer" |
| 27 | } |
| 28 | }, |
| 29 | "supports": { |
| 30 | "interactivity": true, |
| 31 | "anchor": true, |
| 32 | "align": true, |
| 33 | "layout": true, |
| 34 | "currencyConversion": true, |
| 35 | "spacing": { |
| 36 | "padding": true, |
| 37 | "margin": true, |
| 38 | "blockGap": true |
| 39 | } |
| 40 | }, |
| 41 | "textdomain": "surecart", |
| 42 | "render": "file:./view.php", |
| 43 | "editorScript": "file:./index.js", |
| 44 | "editorStyle": "file:./editor.css", |
| 45 | "style": [ |
| 46 | "file:./style-index.css", |
| 47 | "surecart-theme-base", |
| 48 | "surecart-prose" |
| 49 | ], |
| 50 | "viewScript": [ |
| 51 | "wp-url", |
| 52 | "wp-api-fetch", |
| 53 | "wp-i18n", |
| 54 | "wp-a11y" |
| 55 | ], |
| 56 | "viewScriptModule": [ |
| 57 | "@surecart/checkout", |
| 58 | "@surecart/product-page" |
| 59 | ] |
| 60 | } |