| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/newsletter-popup", |
| 5 |
"title": "Newsletter Popup", |
| 6 |
"category": "bkbg-marketing", |
| 7 |
"description": "Email capture popup that triggers on scroll, time delay, or exit intent. Cookie-based dismissal, image support, and success state.", |
| 8 |
"keywords": [ |
| 9 |
"newsletter", |
| 10 |
"popup", |
| 11 |
"email", |
| 12 |
"subscribe", |
| 13 |
"lead capture", |
| 14 |
"modal", |
| 15 |
"exit intent" |
| 16 |
], |
| 17 |
"textdomain": "blockenberg", |
| 18 |
"editorScript": "bkbg-newsletter-popup-editor", |
| 19 |
"editorStyle": "bkbg-newsletter-popup-style", |
| 20 |
"style": "bkbg-newsletter-popup-style", |
| 21 |
"viewScript": "bkbg-newsletter-popup-frontend", |
| 22 |
"supports": { |
| 23 |
"html": false, |
| 24 |
"anchor": true, |
| 25 |
"className": true |
| 26 |
}, |
| 27 |
"attributes": { |
| 28 |
"heading": { |
| 29 |
"type": "string", |
| 30 |
"default": "Don't miss out! 🎁" |
| 31 |
}, |
| 32 |
"subtext": { |
| 33 |
"type": "string", |
| 34 |
"default": "Join 10,000+ readers. Get the best content delivered to your inbox every week." |
| 35 |
}, |
| 36 |
"emailPlaceholder": { |
| 37 |
"type": "string", |
| 38 |
"default": "Enter your email address" |
| 39 |
}, |
| 40 |
"buttonLabel": { |
| 41 |
"type": "string", |
| 42 |
"default": "Subscribe Now" |
| 43 |
}, |
| 44 |
"successMessage": { |
| 45 |
"type": "string", |
| 46 |
"default": "🎉 You're in! Check your inbox for a welcome email." |
| 47 |
}, |
| 48 |
"successSubtext": { |
| 49 |
"type": "string", |
| 50 |
"default": "You can unsubscribe at any time." |
| 51 |
}, |
| 52 |
"imageUrl": { |
| 53 |
"type": "string", |
| 54 |
"default": "" |
| 55 |
}, |
| 56 |
"imageId": { |
| 57 |
"type": "number", |
| 58 |
"default": 0 |
| 59 |
}, |
| 60 |
"imagePosition": { |
| 61 |
"type": "string", |
| 62 |
"default": "none" |
| 63 |
}, |
| 64 |
"triggerType": { |
| 65 |
"type": "string", |
| 66 |
"default": "delay" |
| 67 |
}, |
| 68 |
"delaySeconds": { |
| 69 |
"type": "number", |
| 70 |
"default": 5 |
| 71 |
}, |
| 72 |
"scrollPercent": { |
| 73 |
"type": "number", |
| 74 |
"default": 40 |
| 75 |
}, |
| 76 |
"exitIntent": { |
| 77 |
"type": "boolean", |
| 78 |
"default": false |
| 79 |
}, |
| 80 |
"cookieName": { |
| 81 |
"type": "string", |
| 82 |
"default": "bkbg-nlpop" |
| 83 |
}, |
| 84 |
"cookieDays": { |
| 85 |
"type": "number", |
| 86 |
"default": 7 |
| 87 |
}, |
| 88 |
"showClose": { |
| 89 |
"type": "boolean", |
| 90 |
"default": true |
| 91 |
}, |
| 92 |
"overlayClickClose": { |
| 93 |
"type": "boolean", |
| 94 |
"default": true |
| 95 |
}, |
| 96 |
"maxWidth": { |
| 97 |
"type": "number", |
| 98 |
"default": 520 |
| 99 |
}, |
| 100 |
"borderRadius": { |
| 101 |
"type": "number", |
| 102 |
"default": 16 |
| 103 |
}, |
| 104 |
"padding": { |
| 105 |
"type": "number", |
| 106 |
"default": 40 |
| 107 |
}, |
| 108 |
"headingSize": { |
| 109 |
"type": "number", |
| 110 |
"default": 26 |
| 111 |
}, |
| 112 |
"textSize": { |
| 113 |
"type": "number", |
| 114 |
"default": 15 |
| 115 |
}, |
| 116 |
"ctaSize": { |
| 117 |
"type": "number", |
| 118 |
"default": 15 |
| 119 |
}, |
| 120 |
"overlayOpacity": { |
| 121 |
"type": "number", |
| 122 |
"default": 60 |
| 123 |
}, |
| 124 |
"overlayBg": { |
| 125 |
"type": "string", |
| 126 |
"default": "#000000" |
| 127 |
}, |
| 128 |
"popupBg": { |
| 129 |
"type": "string", |
| 130 |
"default": "#ffffff" |
| 131 |
}, |
| 132 |
"headingColor": { |
| 133 |
"type": "string", |
| 134 |
"default": "#111827" |
| 135 |
}, |
| 136 |
"textColor": { |
| 137 |
"type": "string", |
| 138 |
"default": "#6b7280" |
| 139 |
}, |
| 140 |
"inputBg": { |
| 141 |
"type": "string", |
| 142 |
"default": "#f9fafb" |
| 143 |
}, |
| 144 |
"inputBorder": { |
| 145 |
"type": "string", |
| 146 |
"default": "#d1d5db" |
| 147 |
}, |
| 148 |
"inputColor": { |
| 149 |
"type": "string", |
| 150 |
"default": "#374151" |
| 151 |
}, |
| 152 |
"buttonBg": { |
| 153 |
"type": "string", |
| 154 |
"default": "#6366f1" |
| 155 |
}, |
| 156 |
"buttonColor": { |
| 157 |
"type": "string", |
| 158 |
"default": "#ffffff" |
| 159 |
}, |
| 160 |
"closeBg": { |
| 161 |
"type": "string", |
| 162 |
"default": "#f3f4f6" |
| 163 |
}, |
| 164 |
"closeColor": { |
| 165 |
"type": "string", |
| 166 |
"default": "#6b7280" |
| 167 |
}, |
| 168 |
"headingTypo": { |
| 169 |
"type": "object", |
| 170 |
"default": {} |
| 171 |
}, |
| 172 |
"subtextTypo": { |
| 173 |
"type": "object", |
| 174 |
"default": {} |
| 175 |
} |
| 176 |
} |
| 177 |
} |
| 178 |
|