payload-plugin-newsletter 0.10.0 → 0.12.0
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/CHANGELOG.md +56 -0
- package/README.md +5 -0
- package/dist/components.cjs +548 -26
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +33 -1
- package/dist/components.d.ts +33 -1
- package/dist/components.js +553 -26
- package/dist/components.js.map +1 -1
- package/dist/fields.cjs +109 -9
- package/dist/fields.cjs.map +1 -1
- package/dist/fields.js +113 -9
- package/dist/fields.js.map +1 -1
- package/dist/index.cjs +235 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +239 -57
- package/dist/index.js.map +1 -1
- package/dist/utils.cjs +104 -26
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +1 -0
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +104 -26
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,59 @@
|
|
|
1
|
+
## [0.12.0] - 2025-07-20
|
|
2
|
+
|
|
3
|
+
### Added
|
|
4
|
+
- Email preview feature for broadcasts with inline preview component
|
|
5
|
+
- React Email integration for reliable email template rendering
|
|
6
|
+
- Custom email template support
|
|
7
|
+
- Desktop and mobile preview modes
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Broadcast collection now includes inline email preview below content editor
|
|
11
|
+
|
|
12
|
+
## [0.11.0] - 2025-07-20
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- Enhanced rich text editor for broadcast emails with:
|
|
16
|
+
- Fixed toolbar showing available formatting options
|
|
17
|
+
- Inline toolbar for text selection
|
|
18
|
+
- Image upload support with Media collection integration
|
|
19
|
+
- Custom email blocks (Button and Divider)
|
|
20
|
+
- Enhanced link feature with "open in new tab" option
|
|
21
|
+
- Email preview feature for broadcasts:
|
|
22
|
+
- Live preview with manual update button
|
|
23
|
+
- Desktop and mobile responsive views
|
|
24
|
+
- React Email template rendering
|
|
25
|
+
- Custom template support via `email-templates/broadcast-template.tsx`
|
|
26
|
+
- Inline preview below content editor
|
|
27
|
+
- Comprehensive image handling in email HTML conversion:
|
|
28
|
+
- Responsive images with proper email-safe HTML
|
|
29
|
+
- Support for captions and alt text
|
|
30
|
+
- Automatic media URL handling for different storage backends
|
|
31
|
+
- New utilities and components:
|
|
32
|
+
- `contentTransformer` for preview content processing
|
|
33
|
+
- `templateLoader` for custom template discovery
|
|
34
|
+
- `DefaultBroadcastTemplate` bundled email template
|
|
35
|
+
- `BroadcastInlinePreview` component
|
|
36
|
+
- Documentation:
|
|
37
|
+
- Media collection setup guide (`docs/guides/media-collection-setup.md`)
|
|
38
|
+
- Email preview feature guide (`docs/features/email-preview.md`)
|
|
39
|
+
- Prerequisites section in README mentioning Media collection requirement
|
|
40
|
+
|
|
41
|
+
### Changed
|
|
42
|
+
- Removed 'name' field from Broadcasts collection (now uses 'subject' as title)
|
|
43
|
+
- Updated Broadcast collection admin UI:
|
|
44
|
+
- Uses subject as the display title
|
|
45
|
+
- Shows recipientCount in default columns instead of name
|
|
46
|
+
- Enhanced `convertToEmailSafeHtml` utility to handle:
|
|
47
|
+
- Upload nodes for images
|
|
48
|
+
- Custom block nodes (button and divider)
|
|
49
|
+
- Media URL configuration
|
|
50
|
+
- Improved link handling with target attribute support
|
|
51
|
+
- Broadcast API sync now uses subject as the name field
|
|
52
|
+
|
|
53
|
+
### Fixed
|
|
54
|
+
- Broadcast hooks now properly handle the absence of name field
|
|
55
|
+
- Email preview components updated to work without channel references
|
|
56
|
+
|
|
1
57
|
## [0.10.0] - 2025-07-20
|
|
2
58
|
|
|
3
59
|
### Changed
|
package/README.md
CHANGED
|
@@ -22,6 +22,11 @@ A complete newsletter management plugin for [Payload CMS](https://github.com/pay
|
|
|
22
22
|
- ✅ **Email Validation** - Built-in validation for email client compatibility (v0.9.0+)
|
|
23
23
|
- 📝 **Email-Safe Editor** - Rich text editor limited to email-compatible features (v0.9.0+)
|
|
24
24
|
|
|
25
|
+
## Prerequisites
|
|
26
|
+
|
|
27
|
+
- Payload CMS v3.0.0 or higher
|
|
28
|
+
- A Media collection configured in your Payload project (required for image support in broadcasts)
|
|
29
|
+
|
|
25
30
|
## Quick Start
|
|
26
31
|
|
|
27
32
|
### 1. Install the plugin
|