payload-plugin-newsletter 0.20.5 → 0.20.6
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 +14 -0
- package/dist/admin.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [0.20.6] - 2025-08-01
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
- **Preview Content Path** - Fixed preview component to correctly access nested content fields
|
|
5
|
+
- Changed from trying multiple access patterns to using the correct flattened field name
|
|
6
|
+
- Content is now accessed via `fields?.['contentSection.content']` using dot notation
|
|
7
|
+
- Removed debug logging and simplified content access logic
|
|
8
|
+
- Preview now properly finds content in the nested `contentSection.content` field structure
|
|
9
|
+
|
|
10
|
+
### Technical Changes
|
|
11
|
+
- Updated field access pattern to match Payload's flattened field naming convention
|
|
12
|
+
- Simplified content value retrieval by using the correct dot notation path
|
|
13
|
+
- Removed unnecessary fallback patterns that were trying incorrect field paths
|
|
14
|
+
|
|
1
15
|
## [0.20.5] - 2025-08-01
|
|
2
16
|
|
|
3
17
|
### Fixed
|
package/dist/admin.js
CHANGED
|
@@ -15,8 +15,8 @@ var BroadcastInlinePreview = () => {
|
|
|
15
15
|
try {
|
|
16
16
|
setLoading(true);
|
|
17
17
|
setError(null);
|
|
18
|
-
const
|
|
19
|
-
const contentValue =
|
|
18
|
+
const contentField = fields?.["contentSection.content"];
|
|
19
|
+
const contentValue = contentField?.value;
|
|
20
20
|
if (!contentValue) {
|
|
21
21
|
setError("No content available to preview");
|
|
22
22
|
setLoading(false);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "payload-plugin-newsletter",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.6",
|
|
4
4
|
"description": "Complete newsletter management plugin for Payload CMS with subscriber management, magic link authentication, and email service integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|