| @@ -15,6 +15,35 @@ | ||
| 15 | 15 | "supports": { |
| 16 | 16 | "html": false, |
| 17 | 17 | "align": true |
| 18 | 18 | }, |
| 19 | - "editorScript": "file:../editor.js" | |
| 19 | + "attributes": { | |
| 20 | + "url": { | |
| 21 | + "type": "string" | |
| 22 | + }, | |
| 23 | + "eventId": { | |
| 24 | + "type": "number" | |
| 25 | + }, | |
| 26 | + "style": { | |
| 27 | + "type": "string", | |
| 28 | + "default": "inline" | |
| 29 | + } | |
| 30 | + }, | |
| 31 | + "example": { | |
| 32 | + "attributes": { | |
| 33 | + "url": "https://www.eventbrite.com/e/test-event-tickets-123456789", | |
| 34 | + "eventId": 123456789, | |
| 35 | + "style": "modal" | |
| 36 | + }, | |
| 37 | + "innerBlocks": [ | |
| 38 | + { | |
| 39 | + "name": "jetpack/button", | |
| 40 | + "attributes": { | |
| 41 | + "element": "a", | |
| 42 | + "text": "Register", | |
| 43 | + "uniqueId": "eventbrite-widget-id" | |
| 44 | + } | |
| 45 | + } | |
| 46 | + ] | |
| 47 | + }, | |
| 48 | + "editorScript": "jetpack-blocks-editor" | |
| 20 | 49 | } |