| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | 3 | "apiVersion": 3, |
| 4 | 4 | "name": "jetpack/calendly", |
| 5 | 5 | "title": "Calendly", |
| 6 | - "description": "Embed a calendar for customers to schedule appointments", | |
| 6 | + "description": "Embed a calendar for customers to schedule appointments.", | |
| 7 | 7 | "keywords": [ |
| 8 | 8 | "calendar", |
| 9 | 9 | "schedule", |
| 10 | 10 | "appointments", |
| @@ -19,9 +19,53 @@ | ||
| 19 | 19 | "align": true, |
| 20 | 20 | "alignWide": false, |
| 21 | 21 | "html": false |
| 22 | 22 | }, |
| 23 | - "editorScript": "file:../editor.js", | |
| 24 | - "editorStyle": "file:../editor.css", | |
| 25 | - "viewScript": "file:./view.js", | |
| 26 | - "style": "file:./view.css" | |
| 23 | + "attributes": { | |
| 24 | + "backgroundColor": { | |
| 25 | + "type": "string", | |
| 26 | + "default": "ffffff" | |
| 27 | + }, | |
| 28 | + "hideEventTypeDetails": { | |
| 29 | + "type": "boolean", | |
| 30 | + "default": false | |
| 31 | + }, | |
| 32 | + "primaryColor": { | |
| 33 | + "type": "string", | |
| 34 | + "default": "00A2FF" | |
| 35 | + }, | |
| 36 | + "textColor": { | |
| 37 | + "type": "string", | |
| 38 | + "default": "4D5055" | |
| 39 | + }, | |
| 40 | + "style": { | |
| 41 | + "type": "string", | |
| 42 | + "default": "inline", | |
| 43 | + "enum": [ | |
| 44 | + "inline", | |
| 45 | + "link" | |
| 46 | + ] | |
| 47 | + }, | |
| 48 | + "url": { | |
| 49 | + "type": "string" | |
| 50 | + } | |
| 51 | + }, | |
| 52 | + "example": { | |
| 53 | + "attributes": { | |
| 54 | + "hideEventTypeDetails": false, | |
| 55 | + "style": "inline", | |
| 56 | + "url": "https://calendly.com/wpcom/jetpack-block-example" | |
| 57 | + }, | |
| 58 | + "innerBlocks": [ | |
| 59 | + { | |
| 60 | + "name": "jetpack/button", | |
| 61 | + "attributes": { | |
| 62 | + "element": "a", | |
| 63 | + "text": "Schedule time with me", | |
| 64 | + "uniqueId": "calendly-widget-id", | |
| 65 | + "url": "https://calendly.com/wpcom/jetpack-block-example" | |
| 66 | + } | |
| 67 | + } | |
| 68 | + ] | |
| 69 | + }, | |
| 70 | + "editorScript": "jetpack-blocks-editor" | |
| 27 | 71 | } |