| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | - "apiVersion": 1, | |
| 3 | + "apiVersion": 3, | |
| 4 | 4 | "name": "jetpack/subscriptions", |
| 5 | 5 | "title": "Subscribe", |
| 6 | 6 | "description": "Subscribe to this blog's posts as a newsletter.", |
| 7 | 7 | "keywords": [ |
| @@ -24,21 +24,24 @@ | ||
| 24 | 24 | ] |
| 25 | 25 | }, |
| 26 | 26 | "styles": [ |
| 27 | 27 | { |
| 28 | + "name": "split", | |
| 29 | + "label": "Split", | |
| 30 | + "isDefault": true | |
| 31 | + }, | |
| 32 | + { | |
| 28 | 33 | "name": "compact", |
| 29 | 34 | "label": "Compact" |
| 30 | 35 | }, |
| 31 | 36 | { |
| 32 | - "name": "split", | |
| 33 | - "label": "Split", | |
| 34 | - "isDefault": true | |
| 37 | + "name": "button", | |
| 38 | + "label": "Button only" | |
| 35 | 39 | } |
| 36 | 40 | ], |
| 37 | 41 | "attributes": { |
| 38 | 42 | "subscribePlaceholder": { |
| 39 | - "type": "string", | |
| 40 | - "default": "Type your email…" | |
| 43 | + "type": "string" | |
| 41 | 44 | }, |
| 42 | 45 | "showSubscribersTotal": { |
| 43 | 46 | "type": "boolean", |
| 44 | 47 | "default": false |
| @@ -53,10 +56,9 @@ | ||
| 53 | 56 | "buttonWidth": { |
| 54 | 57 | "type": "string" |
| 55 | 58 | }, |
| 56 | 59 | "submitButtonText": { |
| 57 | - "type": "string", | |
| 58 | - "default": "Subscribe" | |
| 60 | + "type": "string" | |
| 59 | 61 | }, |
| 60 | 62 | "emailFieldBackgroundColor": { |
| 61 | 63 | "type": "string" |
| 62 | 64 | }, |
| @@ -112,13 +114,24 @@ | ||
| 112 | 114 | "type": "number" |
| 113 | 115 | }, |
| 114 | 116 | "successMessage": { |
| 115 | 117 | "type": "string", |
| 116 | - "default": "Success! An email was just sent to confirm your subscription. Please find the email now and click 'Confirm Follow' to start subscribing." | |
| 118 | + "default": "Success! An email was just sent to confirm your subscription. Please find the email now and click 'Confirm' to start subscribing." | |
| 117 | 119 | }, |
| 118 | 120 | "appSource": { |
| 119 | 121 | "type": "string" |
| 122 | + }, | |
| 123 | + "className": { | |
| 124 | + "type": "string" | |
| 125 | + }, | |
| 126 | + "preselectNewsletterCategories": { | |
| 127 | + "type": "boolean", | |
| 128 | + "default": false | |
| 129 | + }, | |
| 130 | + "selectedNewsletterCategoryIds": { | |
| 131 | + "type": "array", | |
| 132 | + "default": [] | |
| 120 | 133 | } |
| 121 | 134 | }, |
| 122 | 135 | "example": {}, |
| 123 | 136 | "editorScript": "jetpack-blocks-editor" |
| 124 | 137 | } |