surecart
/
packages
/
blocks-next
/
build
/
blocks
/
product-review-form-submit-button
Last commit date
block.json
6 months ago
controller.php
6 months ago
index.asset.php
6 months ago
index.js
6 months ago
view.php
6 months ago
block.json
109 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "surecart/product-review-form-submit-button", |
| 5 | "title": "Review Form Submit Button", |
| 6 | "description": "Provide a submit button for the product review form.", |
| 7 | "version": "1.0.0", |
| 8 | "icon": "button", |
| 9 | "category": "surecart-product-page", |
| 10 | "example": {}, |
| 11 | "ancestor": [ |
| 12 | "surecart/product-review-form" |
| 13 | ], |
| 14 | "attributes": { |
| 15 | "text": { |
| 16 | "type": "string" |
| 17 | }, |
| 18 | "width": { |
| 19 | "type": "number", |
| 20 | "default": 100 |
| 21 | } |
| 22 | }, |
| 23 | "supports": { |
| 24 | "interactivity": true, |
| 25 | "anchor": true, |
| 26 | "spacing": { |
| 27 | "__experimentalSkipSerialization": true, |
| 28 | "padding": [ |
| 29 | "horizontal", |
| 30 | "vertical" |
| 31 | ], |
| 32 | "margin": [ |
| 33 | "top", |
| 34 | "bottom" |
| 35 | ] |
| 36 | }, |
| 37 | "color": { |
| 38 | "__experimentalSkipSerialization": true, |
| 39 | "gradients": true, |
| 40 | "__experimentalDefaultControls": { |
| 41 | "background": true, |
| 42 | "text": true |
| 43 | } |
| 44 | }, |
| 45 | "__experimentalSelector": ".wp-block-button .wp-block-button__link", |
| 46 | "typography": { |
| 47 | "fontSize": true, |
| 48 | "__experimentalFontFamily": true, |
| 49 | "__experimentalFontWeight": true, |
| 50 | "__experimentalFontStyle": true, |
| 51 | "__experimentalTextTransform": true |
| 52 | }, |
| 53 | "reusable": false, |
| 54 | "__experimentalBorder": { |
| 55 | "color": true, |
| 56 | "radius": true, |
| 57 | "style": true, |
| 58 | "width": true, |
| 59 | "__experimentalSkipSerialization": true, |
| 60 | "__experimentalDefaultControls": { |
| 61 | "color": true, |
| 62 | "radius": true, |
| 63 | "style": true, |
| 64 | "width": true |
| 65 | } |
| 66 | }, |
| 67 | "__experimentalStyle": { |
| 68 | "variations": { |
| 69 | "outline": { |
| 70 | "border": { |
| 71 | "color": "currentColor", |
| 72 | "width": "2px", |
| 73 | "style": "solid" |
| 74 | }, |
| 75 | "color": { |
| 76 | "text": "currentColor", |
| 77 | "gradient": "transparent none" |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | } |
| 82 | }, |
| 83 | "styles": [ |
| 84 | { |
| 85 | "name": "fill", |
| 86 | "label": "Fill", |
| 87 | "isDefault": true |
| 88 | }, |
| 89 | { |
| 90 | "name": "outline", |
| 91 | "label": "Outline" |
| 92 | } |
| 93 | ], |
| 94 | "textdomain": "surecart", |
| 95 | "render": "file:./view.php", |
| 96 | "editorScript": "file:./index.js", |
| 97 | "editorStyle": [ |
| 98 | "surecart-wp-button" |
| 99 | ], |
| 100 | "style": [ |
| 101 | "surecart-wp-buttons", |
| 102 | "surecart-wp-button", |
| 103 | "wp-block-button", |
| 104 | "surecart-spinner" |
| 105 | ], |
| 106 | "viewScriptModule": [ |
| 107 | "@surecart/product-review-form" |
| 108 | ] |
| 109 | } |