payload-plugin-newsletter 0.14.0 → 0.14.2

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 CHANGED
@@ -1,3 +1,29 @@
1
+ ## [0.14.2] - 2025-07-22
2
+
3
+ ### Added
4
+ - Custom email template support for transactional emails (magic link, welcome, sign-in)
5
+ - Configure via `customTemplates` in plugin config
6
+ - Full React Email component support
7
+ - Fallback to built-in templates when custom ones not provided
8
+ - Comprehensive email template documentation
9
+ - Guide for creating custom broadcast templates
10
+ - Guide for creating custom transactional templates
11
+ - Examples and best practices for template development
12
+ - Extension patterns for advanced use cases
13
+
14
+ ### Fixed
15
+ - Custom templates now properly used when configured in plugin settings
16
+ - All email rendering functions now accept config parameter for template customization
17
+
18
+ ## [0.14.1] - 2025-07-22
19
+
20
+ ### Changed
21
+ - Improved email preview in Broadcasts collection to use full container height
22
+ - Email preview now utilizes all available vertical space
23
+ - Maintains realistic email widths (600px for desktop, 375px for mobile)
24
+ - Added scrolling within preview container for longer email content
25
+ - Better space utilization for viewing and editing broadcast emails
26
+
1
27
  ## [0.14.0] - 2025-07-22
2
28
 
3
29
  ### Added
@@ -1888,13 +1888,16 @@ var EmailRenderer = ({
1888
1888
  width: "100%",
1889
1889
  height: "100%",
1890
1890
  display: "flex",
1891
- alignItems: "center",
1892
- justifyContent: "center"
1891
+ alignItems: "flex-start",
1892
+ justifyContent: "center",
1893
+ overflow: "auto",
1894
+ padding: "2rem",
1895
+ boxSizing: "border-box"
1893
1896
  };
1894
1897
  const iframeStyle = {
1895
1898
  width: device === "mobile" ? "375px" : "600px",
1896
- maxWidth: "100%",
1897
1899
  height: "100%",
1900
+ minHeight: "600px",
1898
1901
  background: "white",
1899
1902
  boxShadow: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
1900
1903
  borderRadius: device === "mobile" ? "20px" : "8px",
@@ -2090,7 +2093,7 @@ var BroadcastInlinePreview = () => {
2090
2093
  display: "flex",
2091
2094
  flexDirection: "column",
2092
2095
  background: "#f3f4f6",
2093
- minHeight: "600px"
2096
+ overflow: "hidden"
2094
2097
  };
2095
2098
  const errorStyle = {
2096
2099
  padding: "2rem",
@@ -2146,14 +2149,14 @@ var BroadcastInlinePreview = () => {
2146
2149
  isLoading
2147
2150
  }
2148
2151
  ),
2149
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: { flex: 1, display: "flex", alignItems: "center", justifyContent: "center", padding: "2rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2152
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2150
2153
  EmailRenderer,
2151
2154
  {
2152
2155
  template: previewData.template,
2153
2156
  data: previewData.data,
2154
2157
  device
2155
2158
  }
2156
- ) })
2159
+ )
2157
2160
  ] }) : null })
2158
2161
  ] });
2159
2162
  };