@maily-to/render 2.0.0-beta.13 → 2.0.0-beta.14
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.cjs +20 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +20 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -767,16 +767,19 @@ const image = (node, ctx) => {
|
|
|
767
767
|
title: title ?? void 0,
|
|
768
768
|
width: absoluteWidth
|
|
769
769
|
});
|
|
770
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_react_email_components.Row, {
|
|
771
|
-
|
|
772
|
-
children:
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
770
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_react_email_components.Row, {
|
|
771
|
+
"data-skip-in-text": "true",
|
|
772
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_react_email_components.Column, {
|
|
773
|
+
align,
|
|
774
|
+
children: resolvedExternalLink ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
775
|
+
href: resolvedExternalLink,
|
|
776
|
+
rel: "noopener noreferrer nofollow",
|
|
777
|
+
style: { display: "block" },
|
|
778
|
+
target: "_blank",
|
|
779
|
+
children: img
|
|
780
|
+
}) : img
|
|
781
|
+
})
|
|
782
|
+
});
|
|
780
783
|
};
|
|
781
784
|
//#endregion
|
|
782
785
|
//#region src/nodes/inline-image.tsx
|
|
@@ -1029,10 +1032,13 @@ const section = (node, ctx) => {
|
|
|
1029
1032
|
//#region src/nodes/spacer.tsx
|
|
1030
1033
|
const spacer = (node) => {
|
|
1031
1034
|
if (!_maily_to_shared.is.spacer(node)) return null;
|
|
1032
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_react_email_components.Container, {
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1035
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_react_email_components.Container, {
|
|
1036
|
+
"data-skip-in-text": "true",
|
|
1037
|
+
style: {
|
|
1038
|
+
height: `${node.attrs.height}px`,
|
|
1039
|
+
...getNodeStyle(node.attrs.style)
|
|
1040
|
+
}
|
|
1041
|
+
});
|
|
1036
1042
|
};
|
|
1037
1043
|
//#endregion
|
|
1038
1044
|
//#region src/lib/table.ts
|