hivewrite-sdk 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/assets/hivewrite-icon.png +0 -0
- package/bundle.min.js +1 -1
- package/index.d.ts +0 -0
- package/index.js +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ A powerful, flexible, and easy-to-integrate drag-and-drop email builder for Reac
|
|
|
9
9
|
|
|
10
10
|
- 📧 **Drag & Drop Editor** - Intuitive block-based email building
|
|
11
11
|
- 🎨 **Rich Block Types** - Text, images, buttons, videos, countdown timers, social icons, and more
|
|
12
|
-
- 📱 **Mobile Preview** - Real-time mobile (
|
|
12
|
+
- 📱 **Mobile Preview** - Real-time mobile (350px) and desktop preview modes
|
|
13
13
|
- 🌙 **Dark/Light Theme** - Built-in theme support
|
|
14
14
|
- 📤 **HTML/MJML Export** - Export responsive HTML emails compatible with all email clients
|
|
15
15
|
- 🎯 **Merge Tags** - Dynamic content placeholders for personalization
|
|
@@ -106,7 +106,7 @@ Initializes and mounts the editor.
|
|
|
106
106
|
| `locale` | `string` | No | `'en'` (default), `'es'`, or `'fr'` |
|
|
107
107
|
| `branding` | `object` | No | Custom white-labeling options |
|
|
108
108
|
| `permissions` | `object` | No | Toggle features: `exportHTML`, `aiMagic`, `uploadImages` |
|
|
109
|
-
| `mergeTags` | `array` | No | Array of `{
|
|
109
|
+
| `mergeTags` | `array` | No | Array of `{ label, value }` for dynamic content |
|
|
110
110
|
| `callbacks` | `object` | No | Event hooks for SDK actions |
|
|
111
111
|
|
|
112
112
|
---
|
|
@@ -205,9 +205,9 @@ Add dynamic content placeholders:
|
|
|
205
205
|
|
|
206
206
|
```javascript
|
|
207
207
|
mergeTags: [
|
|
208
|
-
{
|
|
209
|
-
{
|
|
210
|
-
{
|
|
208
|
+
{ label: 'First Name', value: '{{first_name}}' },
|
|
209
|
+
{ label: 'Company', value: '{{company}}' },
|
|
210
|
+
{ label: 'Unsubscribe Link', value: '{{unsubscribe_url}}' }
|
|
211
211
|
]
|
|
212
212
|
```
|
|
213
213
|
|
|
@@ -240,7 +240,7 @@ callbacks: {
|
|
|
240
240
|
|
|
241
241
|
## 📱 Mobile Preview
|
|
242
242
|
|
|
243
|
-
The editor includes a mobile preview mode (
|
|
243
|
+
The editor includes a mobile preview mode (350px width) with automatic scaling:
|
|
244
244
|
- Font sizes scale proportionally
|
|
245
245
|
- Images adapt to container width
|
|
246
246
|
- Spacing adjusts for mobile screens
|
|
File without changes
|