payload-plugin-newsletter 0.20.2 → 0.20.4
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 +71 -0
- package/dist/admin.js +199 -1750
- package/dist/collections.cjs +1 -0
- package/dist/collections.cjs.map +1 -1
- package/dist/collections.js +1 -0
- package/dist/collections.js.map +1 -1
- package/dist/server.js +1 -0
- package/package.json +3 -2
- package/dist/admin.d.ts +0 -706
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,74 @@
|
|
|
1
|
+
## [0.20.4] - 2025-07-31
|
|
2
|
+
|
|
3
|
+
### Added
|
|
4
|
+
- **Email Preview Functionality Restored** - Full email preview functionality in admin interface
|
|
5
|
+
- Interactive preview component with live content updates
|
|
6
|
+
- Real-time iframe rendering of email HTML using the preview endpoint
|
|
7
|
+
- Debounced API calls to prevent excessive requests during content editing
|
|
8
|
+
- Auto-resizing iframe that adjusts to email content height
|
|
9
|
+
- Comprehensive error handling with user-friendly error messages
|
|
10
|
+
- Loading states and empty content placeholders for better UX
|
|
11
|
+
- Subject line display in preview header
|
|
12
|
+
- Preview updates automatically when content, subject, or preheader changes
|
|
13
|
+
|
|
14
|
+
### Enhanced
|
|
15
|
+
- **BroadcastInlinePreview Component**
|
|
16
|
+
- Replaced placeholder component with fully functional preview
|
|
17
|
+
- Added React hooks for state management (useState, useEffect, useRef)
|
|
18
|
+
- Integrated with existing `/api/broadcasts/preview` endpoint
|
|
19
|
+
- Added proper TypeScript types and interfaces
|
|
20
|
+
- Includes responsive iframe with cross-origin safety measures
|
|
21
|
+
- 500ms debounce to optimize API calls during content editing
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
- **Preview Endpoint Response Format** - Updated to include both `html` and `preview.html` fields for compatibility
|
|
25
|
+
- **ESLint Compliance** - Resolved all linting errors in admin components
|
|
26
|
+
- **Admin Bundle Integrity** - Maintained separation of server dependencies while restoring functionality
|
|
27
|
+
|
|
28
|
+
### Technical Changes
|
|
29
|
+
- Updated admin component exports to use direct type imports from components
|
|
30
|
+
- Removed redundant admin/types.ts file in favor of component-level type exports
|
|
31
|
+
- Enhanced preview endpoint to return HTML in multiple response formats
|
|
32
|
+
- Added proper error boundaries and loading states in preview component
|
|
33
|
+
- Maintained all architectural improvements from v0.20.3 bundle separation
|
|
34
|
+
|
|
35
|
+
### Validation
|
|
36
|
+
- ✅ Preview component fetches and displays email HTML correctly
|
|
37
|
+
- ✅ Preview updates in real-time as content changes
|
|
38
|
+
- ✅ Error states handled gracefully with retry capability
|
|
39
|
+
- ✅ Loading states provide good user experience
|
|
40
|
+
- ✅ Admin bundle contains no server dependencies
|
|
41
|
+
- ✅ All linting errors resolved
|
|
42
|
+
- ✅ Build and bundle validation passes
|
|
43
|
+
- ✅ TypeScript types are properly exported and available
|
|
44
|
+
|
|
45
|
+
## [0.20.3] - 2025-07-31
|
|
46
|
+
|
|
47
|
+
### Fixed
|
|
48
|
+
- **CRITICAL: Admin Bundle Server Dependencies** - Eliminated all Node.js server dependencies from admin bundle
|
|
49
|
+
- Reorganized source code into strict server/, client/, admin/, shared/ separation
|
|
50
|
+
- Created pure React admin components that don't depend on Node.js built-ins
|
|
51
|
+
- Updated build system with strict external dependencies for admin bundle
|
|
52
|
+
- Added bundle validation script to prevent server dependencies in browser bundles
|
|
53
|
+
- Fixed Next.js App Router compatibility issues with worker_threads, node:assert, and pino dependencies
|
|
54
|
+
|
|
55
|
+
### Breaking Changes (None)
|
|
56
|
+
- Import paths remain unchanged - full backward compatibility maintained
|
|
57
|
+
- All existing functionality preserved with improved bundle separation
|
|
58
|
+
|
|
59
|
+
### Technical Changes
|
|
60
|
+
- Reorganized source structure: server/, client/, admin/, shared/ directories
|
|
61
|
+
- Created browser-only admin components without server dependencies
|
|
62
|
+
- Updated tsup config to strictly external Node.js modules in admin bundle
|
|
63
|
+
- Added automated bundle validation in build process
|
|
64
|
+
- Reduced admin bundle size by eliminating server code
|
|
65
|
+
|
|
66
|
+
### Validation
|
|
67
|
+
- ✅ Admin bundle contains no worker_threads, node:assert, pino dependencies
|
|
68
|
+
- ✅ Client bundle contains no server-side modules
|
|
69
|
+
- ✅ Server bundle maintains full server functionality
|
|
70
|
+
- ✅ All existing APIs and components work unchanged
|
|
71
|
+
|
|
1
72
|
## [0.20.2] - 2025-07-31
|
|
2
73
|
|
|
3
74
|
### Fixed
|