| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/contact-form", |
| 5 |
"title": "Contact Form", |
| 6 |
"category": "bkbg-business", |
| 7 |
"icon": "email-alt", |
| 8 |
"description": "A fully styled contact form that sends emails via your WordPress site — no plugin required.", |
| 9 |
"keywords": [ |
| 10 |
"contact", |
| 11 |
"form", |
| 12 |
"email", |
| 13 |
"message" |
| 14 |
], |
| 15 |
"textdomain": "blockenberg", |
| 16 |
"editorScript": "bkbg-contact-form-editor", |
| 17 |
"style": "bkbg-contact-form-style", |
| 18 |
"viewScript": "bkbg-contact-form-frontend", |
| 19 |
"supports": { |
| 20 |
"html": false |
| 21 |
}, |
| 22 |
"attributes": { |
| 23 |
"showName": { |
| 24 |
"type": "boolean", |
| 25 |
"default": true |
| 26 |
}, |
| 27 |
"showEmail": { |
| 28 |
"type": "boolean", |
| 29 |
"default": true |
| 30 |
}, |
| 31 |
"showPhone": { |
| 32 |
"type": "boolean", |
| 33 |
"default": false |
| 34 |
}, |
| 35 |
"showMessage": { |
| 36 |
"type": "boolean", |
| 37 |
"default": true |
| 38 |
}, |
| 39 |
"showGdpr": { |
| 40 |
"type": "boolean", |
| 41 |
"default": false |
| 42 |
}, |
| 43 |
"labelName": { |
| 44 |
"type": "string", |
| 45 |
"default": "Your Name" |
| 46 |
}, |
| 47 |
"labelEmail": { |
| 48 |
"type": "string", |
| 49 |
"default": "Email Address" |
| 50 |
}, |
| 51 |
"labelPhone": { |
| 52 |
"type": "string", |
| 53 |
"default": "Phone Number" |
| 54 |
}, |
| 55 |
"labelMessage": { |
| 56 |
"type": "string", |
| 57 |
"default": "Your Message" |
| 58 |
}, |
| 59 |
"labelGdpr": { |
| 60 |
"type": "string", |
| 61 |
"default": "I agree to the privacy policy" |
| 62 |
}, |
| 63 |
"placeholderName": { |
| 64 |
"type": "string", |
| 65 |
"default": "John Doe" |
| 66 |
}, |
| 67 |
"placeholderEmail": { |
| 68 |
"type": "string", |
| 69 |
"default": "hello@example.com" |
| 70 |
}, |
| 71 |
"placeholderPhone": { |
| 72 |
"type": "string", |
| 73 |
"default": "+1 (555) 000-0000" |
| 74 |
}, |
| 75 |
"placeholderMessage": { |
| 76 |
"type": "string", |
| 77 |
"default": "Write your message here…" |
| 78 |
}, |
| 79 |
"submitLabel": { |
| 80 |
"type": "string", |
| 81 |
"default": "Send Message" |
| 82 |
}, |
| 83 |
"successMessage": { |
| 84 |
"type": "string", |
| 85 |
"default": "Thank you! Your message has been sent." |
| 86 |
}, |
| 87 |
"errorMessage": { |
| 88 |
"type": "string", |
| 89 |
"default": "Something went wrong. Please try again." |
| 90 |
}, |
| 91 |
"recipientEmail": { |
| 92 |
"type": "string", |
| 93 |
"default": "" |
| 94 |
}, |
| 95 |
"emailSubject": { |
| 96 |
"type": "string", |
| 97 |
"default": "New message from your website" |
| 98 |
}, |
| 99 |
"btnStyle": { |
| 100 |
"type": "string", |
| 101 |
"default": "primary" |
| 102 |
}, |
| 103 |
"bgColor": { |
| 104 |
"type": "string", |
| 105 |
"default": "#ffffff" |
| 106 |
}, |
| 107 |
"labelColor": { |
| 108 |
"type": "string", |
| 109 |
"default": "#374151" |
| 110 |
}, |
| 111 |
"fieldBg": { |
| 112 |
"type": "string", |
| 113 |
"default": "#f9fafb" |
| 114 |
}, |
| 115 |
"fieldBorderColor": { |
| 116 |
"type": "string", |
| 117 |
"default": "#d1d5db" |
| 118 |
}, |
| 119 |
"fieldFocusColor": { |
| 120 |
"type": "string", |
| 121 |
"default": "#3b82f6" |
| 122 |
}, |
| 123 |
"btnBg": { |
| 124 |
"type": "string", |
| 125 |
"default": "#2563eb" |
| 126 |
}, |
| 127 |
"btnColor": { |
| 128 |
"type": "string", |
| 129 |
"default": "#ffffff" |
| 130 |
}, |
| 131 |
"fieldRadius": { |
| 132 |
"type": "number", |
| 133 |
"default": 8 |
| 134 |
}, |
| 135 |
"btnRadius": { |
| 136 |
"type": "number", |
| 137 |
"default": 8 |
| 138 |
}, |
| 139 |
"fieldPadding": { |
| 140 |
"type": "number", |
| 141 |
"default": 12 |
| 142 |
}, |
| 143 |
"labelSize": { |
| 144 |
"type": "number", |
| 145 |
"default": 14 |
| 146 |
}, |
| 147 |
"fieldSize": { |
| 148 |
"type": "number", |
| 149 |
"default": 15 |
| 150 |
}, |
| 151 |
"maxWidth": { |
| 152 |
"type": "number", |
| 153 |
"default": 660 |
| 154 |
}, |
| 155 |
"typoLabel": { |
| 156 |
"type": "object", |
| 157 |
"default": {} |
| 158 |
}, |
| 159 |
"typoButton": { |
| 160 |
"type": "object", |
| 161 |
"default": {} |
| 162 |
} |
| 163 |
} |
| 164 |
} |
| 165 |
|