diy-template-components 1.0.10 → 1.0.11
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/build/index.es.js +12 -3
- package/build/index.es.js.map +1 -1
- package/build/index.js +12 -3
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -8769,7 +8769,8 @@ function Section({
|
|
|
8769
8769
|
customHtmlData,
|
|
8770
8770
|
renderHTML = false,
|
|
8771
8771
|
isProceed = false,
|
|
8772
|
-
pixel
|
|
8772
|
+
pixel,
|
|
8773
|
+
landingLink
|
|
8773
8774
|
}) {
|
|
8774
8775
|
const header = nodeData?.components[0];
|
|
8775
8776
|
const body = nodeData?.components[1];
|
|
@@ -8946,7 +8947,7 @@ function Section({
|
|
|
8946
8947
|
// href={
|
|
8947
8948
|
// landing?.components[3]?.metadata?.text
|
|
8948
8949
|
// }
|
|
8949
|
-
href:
|
|
8950
|
+
href: landingLink,
|
|
8950
8951
|
target: "_blank",
|
|
8951
8952
|
style: {
|
|
8952
8953
|
textDecoration: 'none'
|
|
@@ -9119,12 +9120,20 @@ function EmailDripMarket({
|
|
|
9119
9120
|
extraProps = {}
|
|
9120
9121
|
}) {
|
|
9121
9122
|
const isInitialMount = useRef(true);
|
|
9123
|
+
const getLandingLink = () => {
|
|
9124
|
+
if (landing?.components[3]?.metadata?.text) {
|
|
9125
|
+
return landing?.components[3]?.metadata?.text;
|
|
9126
|
+
} else {
|
|
9127
|
+
return '{{link}}';
|
|
9128
|
+
}
|
|
9129
|
+
};
|
|
9122
9130
|
const convertToHtml = sectionData => {
|
|
9123
9131
|
const html = ReactDOMServer.renderToStaticMarkup( /*#__PURE__*/React.createElement(Section, {
|
|
9124
9132
|
nodeData: sectionData,
|
|
9125
9133
|
renderHTML: true,
|
|
9126
9134
|
isProceed: extraProps.isProceed,
|
|
9127
|
-
pixel: extraProps.pixelURL
|
|
9135
|
+
pixel: extraProps.pixelURL,
|
|
9136
|
+
landingLink: getLandingLink()
|
|
9128
9137
|
}));
|
|
9129
9138
|
return html;
|
|
9130
9139
|
};
|