@pagenflow/email 1.1.2 → 1.1.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/dist/index.esm.js CHANGED
@@ -17927,7 +17927,8 @@ function HeadDev({ children, backgroundColor = "#ffffff", title = "Email Preview
17927
17927
  return null;
17928
17928
  }
17929
17929
 
17930
- function Heading({ config, devMode }) {
17930
+ function Heading({ config, devMode, children }) {
17931
+ var _a;
17931
17932
  const { text, level = "h1", padding, color, textAlign, fontSize, fontWeight, fontStyle, lineHeight, letterSpacing, textTransform, textDecoration, direction, verticalAlign, backgroundColor, } = config;
17932
17933
  // 1. TD Style: Where padding, background, width, and verticalAlign are applied.
17933
17934
  const tdStyle = {
@@ -17964,7 +17965,7 @@ function Heading({ config, devMode }) {
17964
17965
  jsx("table", { "aria-label": "Heading Block Wrapper", role: "presentation", cellPadding: 0, cellSpacing: 0, border: 0, style: {
17965
17966
  width: "100%",
17966
17967
  borderCollapse: "collapse",
17967
- }, children: jsx("tbody", { children: jsx("tr", { children: jsx("td", { style: tdStyle, align: textAlign, children: jsx(HeadingTag, { style: headingStyle, dangerouslySetInnerHTML: { __html: text !== null && text !== void 0 ? text : "" } }) }) }) }) }));
17968
+ }, children: jsx("tbody", { children: jsx("tr", { children: jsx("td", { style: tdStyle, align: textAlign, children: jsx(HeadingTag, { style: headingStyle, dangerouslySetInnerHTML: { __html: (_a = text !== null && text !== void 0 ? text : children) !== null && _a !== void 0 ? _a : "" } }) }) }) }) }));
17968
17969
  }
17969
17970
  var Heading_default = memo(Heading, arePropsEqual);
17970
17971
 
@@ -18194,7 +18195,8 @@ function Spacer({ config, devNode }) {
18194
18195
  }
18195
18196
  var Spacer_default = memo(Spacer, arePropsEqual);
18196
18197
 
18197
- function Text({ config, devMode }) {
18198
+ function Text({ config, devMode, children }) {
18199
+ var _a;
18198
18200
  const { text, padding, color, textAlign, fontSize, fontWeight, fontStyle, lineHeight, letterSpacing, textTransform, textDecoration, direction, verticalAlign, backgroundColor, } = config;
18199
18201
  // 1. TD Style: Where padding and background are reliably applied.
18200
18202
  const tdStyle = {
@@ -18227,7 +18229,7 @@ function Text({ config, devMode }) {
18227
18229
  jsx("table", { "aria-label": "Text Block Wrapper", role: "presentation", cellPadding: 0, cellSpacing: 0, border: 0, style: {
18228
18230
  width: "100%",
18229
18231
  borderCollapse: "collapse",
18230
- }, children: jsx("tbody", { children: jsx("tr", { children: jsx("td", { style: tdStyle, align: textAlign, children: jsx("div", { style: contentStyle, dangerouslySetInnerHTML: { __html: text !== null && text !== void 0 ? text : "" } }) }) }) }) }));
18232
+ }, children: jsx("tbody", { children: jsx("tr", { children: jsx("td", { style: tdStyle, align: textAlign, children: jsx("div", { style: contentStyle, dangerouslySetInnerHTML: { __html: (_a = text !== null && text !== void 0 ? text : children) !== null && _a !== void 0 ? _a : "" } }) }) }) }) }));
18231
18233
  }
18232
18234
  var Text_default = memo(Text, arePropsEqual);
18233
18235