| New file |
| | |
| | | { |
| | | "$schema": "https://schemas.wp.org/trunk/block.json", |
| | | "apiVersion": 3, |
| | | "name": "jvb/forms", |
| | | "title": "Contact Forms", |
| | | "category": "jvb", |
| | | "icon": "align-center", |
| | | "description": "Our custom contact forms", |
| | | "keywords": [ "form", "forms", "contact" ], |
| | | "version": "1.0.0", |
| | | "textdomain": "jvb", |
| | | "attributes": { |
| | | "formType": { |
| | | "type": "string", |
| | | "default": "" |
| | | }, |
| | | "showLabels": { |
| | | "type": "boolean", |
| | | "default": true |
| | | }, |
| | | "customEmailTo": { |
| | | "type": "string", |
| | | "default": "" |
| | | } |
| | | }, |
| | | "supports": { |
| | | "html": false, |
| | | "align": ["wide", "full"] |
| | | }, |
| | | "selectors": { |
| | | "root": ".jvb-form-block" |
| | | }, |
| | | "styles": [ |
| | | { "name": "default", "label": "Default", "isDefault": true } |
| | | ], |
| | | "example": { |
| | | "attributes": { |
| | | "formType": "contact", |
| | | "showLabels": true |
| | | } |
| | | }, |
| | | "render": "file:./render.php", |
| | | "editorScript": "file:./index.js", |
| | | "editorStyle": "file:./index.scss", |
| | | "style": "file:./style-index.css", |
| | | "viewScript": "file:./view.js" |
| | | } |