| @@ -1,114 +1,137 @@ | ||
| 1 | 1 | { |
| 2 | - "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | - "apiVersion": 3, | |
| 4 | - "name": "jetpack/subscriptions", | |
| 5 | - "title": "Subscribe", | |
| 6 | - "description": "Let readers subscribe to this blog's posts as a newsletter.", | |
| 7 | - "keywords": [ "newsletter", "email", "follow" ], | |
| 8 | - "version": "12.5.0", | |
| 9 | - "textdomain": "jetpack", | |
| 10 | - "category": "grow", | |
| 11 | - "icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M20.9997 6.96749L21 7V17C21 18.1046 20.1046 19 19 19H5C3.89543 19 3 18.1046 3 17V7L3.00026 6.96747L3 6.96092C3 5.87793 3.87793 5 4.96092 5H19.0391C20.1221 5 21 5.87793 21 6.96092L20.9997 6.96749ZM19.3044 17.3967L13.9142 12.9048L13.2804 13.433C12.5387 14.0511 11.4613 14.0511 10.7196 13.433L10.0858 12.9048L4.69555 17.3967C4.77987 17.4615 4.88543 17.5 5 17.5H19C19.1146 17.5 19.2201 17.4615 19.3044 17.3967ZM19.5 15.6071V8.25L15.0858 11.9285L19.5 15.6071ZM4.5 8.25V15.6071L8.91424 11.9285L4.5 8.25ZM4.79543 6.54363C4.85788 6.51559 4.92712 6.5 5 6.5H19C19.0729 6.5 19.1421 6.51559 19.2046 6.54363L12.3201 12.2807C12.1347 12.4352 11.8653 12.4352 11.6799 12.2807L4.79543 6.54363Z' fill-rule='evenodd' clip-rule='evenodd'/></svg>", | |
| 12 | - "supports": { | |
| 13 | - "spacing": { | |
| 14 | - "margin": true, | |
| 15 | - "padding": true | |
| 16 | - }, | |
| 17 | - "align": [ "wide", "full" ] | |
| 18 | - }, | |
| 19 | - "styles": [ | |
| 20 | - { | |
| 21 | - "name": "compact", | |
| 22 | - "label": "Compact" | |
| 23 | - }, | |
| 24 | - { | |
| 25 | - "name": "split", | |
| 26 | - "label": "Split", | |
| 27 | - "isDefault": true | |
| 28 | - } | |
| 29 | - ], | |
| 30 | - "attributes": { | |
| 31 | - "subscribePlaceholder": { | |
| 32 | - "type": "string", | |
| 33 | - "default": "Type your email…" | |
| 34 | - }, | |
| 35 | - "showSubscribersTotal": { | |
| 36 | - "type": "boolean", | |
| 37 | - "default": false | |
| 38 | - }, | |
| 39 | - "includeSocialFollowers": { | |
| 40 | - "type": "boolean", | |
| 41 | - "default": true | |
| 42 | - }, | |
| 43 | - "buttonOnNewLine": { | |
| 44 | - "type": "boolean", | |
| 45 | - "default": false | |
| 46 | - }, | |
| 47 | - "buttonWidth": { | |
| 48 | - "type": "string" | |
| 49 | - }, | |
| 50 | - "submitButtonText": { | |
| 51 | - "type": "string", | |
| 52 | - "default": "Subscribe" | |
| 53 | - }, | |
| 54 | - "emailFieldBackgroundColor": { | |
| 55 | - "type": "string" | |
| 56 | - }, | |
| 57 | - "customEmailFieldBackgroundColor": { | |
| 58 | - "type": "string" | |
| 59 | - }, | |
| 60 | - "emailFieldGradient": { | |
| 61 | - "type": "string" | |
| 62 | - }, | |
| 63 | - "customEmailFieldGradient": { | |
| 64 | - "type": "string" | |
| 65 | - }, | |
| 66 | - "buttonBackgroundColor": { | |
| 67 | - "type": "string" | |
| 68 | - }, | |
| 69 | - "customButtonBackgroundColor": { | |
| 70 | - "type": "string" | |
| 71 | - }, | |
| 72 | - "buttonGradient": { | |
| 73 | - "type": "string" | |
| 74 | - }, | |
| 75 | - "customButtonGradient": { | |
| 76 | - "type": "string" | |
| 77 | - }, | |
| 78 | - "textColor": { | |
| 79 | - "type": "string" | |
| 80 | - }, | |
| 81 | - "customTextColor": { | |
| 82 | - "type": "string" | |
| 83 | - }, | |
| 84 | - "fontSize": { | |
| 85 | - "type": "string" | |
| 86 | - }, | |
| 87 | - "customFontSize": { | |
| 88 | - "type": "string" | |
| 89 | - }, | |
| 90 | - "borderRadius": { | |
| 91 | - "type": "number" | |
| 92 | - }, | |
| 93 | - "borderWeight": { | |
| 94 | - "type": "number" | |
| 95 | - }, | |
| 96 | - "borderColor": { | |
| 97 | - "type": "string" | |
| 98 | - }, | |
| 99 | - "customBorderColor": { | |
| 100 | - "type": "string" | |
| 101 | - }, | |
| 102 | - "padding": { | |
| 103 | - "type": "number" | |
| 104 | - }, | |
| 105 | - "spacing": { | |
| 106 | - "type": "number" | |
| 107 | - }, | |
| 108 | - "successMessage": { | |
| 109 | - "type": "string", | |
| 110 | - "default": "Success! An email was just sent to confirm your subscription. Please find the email now and click 'Confirm Follow' to start subscribing." | |
| 111 | - } | |
| 112 | - }, | |
| 113 | - "editorScript": "file:../editor.js" | |
| 114 | -} | |
| 2 | + "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | + "apiVersion": 3, | |
| 4 | + "name": "jetpack/subscriptions", | |
| 5 | + "title": "Subscribe", | |
| 6 | + "description": "Subscribe to this blog's posts as a newsletter.", | |
| 7 | + "keywords": [ | |
| 8 | + "newsletter", | |
| 9 | + "email", | |
| 10 | + "follow" | |
| 11 | + ], | |
| 12 | + "version": "12.5.0", | |
| 13 | + "textdomain": "jetpack", | |
| 14 | + "category": "grow", | |
| 15 | + "icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='m19.02,5H4.98c-1.09,0-1.98.89-1.98,1.98v10.04c0,1.09.89,1.98,1.98,1.98h14.04c1.09,0,1.98-.89,1.98-1.98V6.98c0-1.09-.89-1.98-1.98-1.98Zm.48,11.92c0,.32-.26.58-.58.58H5.08c-.32,0-.58-.26-.58-.58V7.08c0-.32.26-.58.58-.58h13.84c.32,0,.58.26.58.58v9.84Z'/><path d='m4.38,17.69l5.71-4.79s.96,1,1.91.99,1.91-.99,1.91-.99l5.59,4.79v-2.03l-4.41-3.73,4.41-3.72v-1.91l-7.14,5.76c-.24.19-.59.19-.83,0l-7.14-5.88v1.98l4.3,3.67-4.3,3.78v2.08Z'/></svg>", | |
| 16 | + "supports": { | |
| 17 | + "spacing": { | |
| 18 | + "margin": true, | |
| 19 | + "padding": true | |
| 20 | + }, | |
| 21 | + "align": [ | |
| 22 | + "wide", | |
| 23 | + "full" | |
| 24 | + ] | |
| 25 | + }, | |
| 26 | + "styles": [ | |
| 27 | + { | |
| 28 | + "name": "split", | |
| 29 | + "label": "Split", | |
| 30 | + "isDefault": true | |
| 31 | + }, | |
| 32 | + { | |
| 33 | + "name": "compact", | |
| 34 | + "label": "Compact" | |
| 35 | + }, | |
| 36 | + { | |
| 37 | + "name": "button", | |
| 38 | + "label": "Button only" | |
| 39 | + } | |
| 40 | + ], | |
| 41 | + "attributes": { | |
| 42 | + "subscribePlaceholder": { | |
| 43 | + "type": "string" | |
| 44 | + }, | |
| 45 | + "showSubscribersTotal": { | |
| 46 | + "type": "boolean", | |
| 47 | + "default": false | |
| 48 | + }, | |
| 49 | + "includeSocialFollowers": { | |
| 50 | + "type": "boolean" | |
| 51 | + }, | |
| 52 | + "buttonOnNewLine": { | |
| 53 | + "type": "boolean", | |
| 54 | + "default": false | |
| 55 | + }, | |
| 56 | + "buttonWidth": { | |
| 57 | + "type": "string" | |
| 58 | + }, | |
| 59 | + "submitButtonText": { | |
| 60 | + "type": "string" | |
| 61 | + }, | |
| 62 | + "emailFieldBackgroundColor": { | |
| 63 | + "type": "string" | |
| 64 | + }, | |
| 65 | + "customEmailFieldBackgroundColor": { | |
| 66 | + "type": "string" | |
| 67 | + }, | |
| 68 | + "emailFieldGradient": { | |
| 69 | + "type": "string" | |
| 70 | + }, | |
| 71 | + "customEmailFieldGradient": { | |
| 72 | + "type": "string" | |
| 73 | + }, | |
| 74 | + "buttonBackgroundColor": { | |
| 75 | + "type": "string" | |
| 76 | + }, | |
| 77 | + "customButtonBackgroundColor": { | |
| 78 | + "type": "string" | |
| 79 | + }, | |
| 80 | + "buttonGradient": { | |
| 81 | + "type": "string" | |
| 82 | + }, | |
| 83 | + "customButtonGradient": { | |
| 84 | + "type": "string" | |
| 85 | + }, | |
| 86 | + "textColor": { | |
| 87 | + "type": "string" | |
| 88 | + }, | |
| 89 | + "customTextColor": { | |
| 90 | + "type": "string" | |
| 91 | + }, | |
| 92 | + "fontSize": { | |
| 93 | + "type": "string" | |
| 94 | + }, | |
| 95 | + "customFontSize": { | |
| 96 | + "type": "string" | |
| 97 | + }, | |
| 98 | + "borderRadius": { | |
| 99 | + "type": "number" | |
| 100 | + }, | |
| 101 | + "borderWeight": { | |
| 102 | + "type": "number" | |
| 103 | + }, | |
| 104 | + "borderColor": { | |
| 105 | + "type": "string" | |
| 106 | + }, | |
| 107 | + "customBorderColor": { | |
| 108 | + "type": "string" | |
| 109 | + }, | |
| 110 | + "padding": { | |
| 111 | + "type": "number" | |
| 112 | + }, | |
| 113 | + "spacing": { | |
| 114 | + "type": "number" | |
| 115 | + }, | |
| 116 | + "successMessage": { | |
| 117 | + "type": "string", | |
| 118 | + "default": "Success! An email was just sent to confirm your subscription. Please find the email now and click 'Confirm' to start subscribing." | |
| 119 | + }, | |
| 120 | + "appSource": { | |
| 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": [] | |
| 133 | + } | |
| 134 | + }, | |
| 135 | + "example": {}, | |
| 136 | + "editorScript": "jetpack-blocks-editor" | |
| 137 | +} | |