diy-template-components 0.2.14 → 0.2.16

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 CHANGED
@@ -8081,9 +8081,6 @@ function Section({
8081
8081
  emailRef,
8082
8082
  customHtmlData
8083
8083
  }) {
8084
- const {
8085
- isEdit
8086
- } = useContext(PageContext);
8087
8084
  const header = nodeData?.components[0];
8088
8085
  const body = nodeData?.components[1];
8089
8086
  const landing = nodeData?.components[2];
@@ -8253,7 +8250,13 @@ function Section({
8253
8250
  textAlign: 'left'
8254
8251
  },
8255
8252
  ref: landing?.components[1]?.refSetter
8256
- }, landing?.components[1]?.metadata?.text), /*#__PURE__*/React.createElement("p", {
8253
+ }, landing?.components[1]?.metadata?.text), /*#__PURE__*/React.createElement("a", {
8254
+ href: landing?.components[3]?.metadata?.text,
8255
+ target: "_blank",
8256
+ style: {
8257
+ textDecoration: 'none'
8258
+ }
8259
+ }, /*#__PURE__*/React.createElement("p", {
8257
8260
  style: {
8258
8261
  background: '#009AE0',
8259
8262
  borderRadius: '7.18333px',
@@ -8269,11 +8272,8 @@ function Section({
8269
8272
  textTransform: 'uppercase',
8270
8273
  color: '#fafafa'
8271
8274
  },
8272
- onClick: () => {
8273
- !isEdit ? window.open(landing?.components[3]?.metadata?.text, '_blank') : null;
8274
- },
8275
8275
  ref: landing?.components[2]?.refSetter
8276
- }, landing?.components[2]?.metadata?.text))))))))) : null, footer?.isActive ? /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("table", {
8276
+ }, landing?.components[2]?.metadata?.text)))))))))) : null, footer?.isActive ? /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("table", {
8277
8277
  style: {
8278
8278
  width: '100%',
8279
8279
  background: '#e3f0ff',
@@ -8296,7 +8296,13 @@ function Section({
8296
8296
  marginTop: '8px',
8297
8297
  marginBottom: '16px'
8298
8298
  }
8299
- }, /*#__PURE__*/React.createElement("tbody", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("img", {
8299
+ }, /*#__PURE__*/React.createElement("tbody", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("a", {
8300
+ href: footer?.components[0]?.metadata?.text,
8301
+ target: "_blank",
8302
+ style: {
8303
+ textDecoration: 'none'
8304
+ }
8305
+ }, /*#__PURE__*/React.createElement("img", {
8300
8306
  src: footer?.components[0]?.metadata?.text ? footer?.components[0]?.metadata?.iconUrlColor : footer?.components[0]?.metadata?.iconUrl,
8301
8307
  alt: "",
8302
8308
  style: {
@@ -8304,11 +8310,14 @@ function Section({
8304
8310
  height: '36px',
8305
8311
  cursor: 'pointer'
8306
8312
  },
8307
- ref: footer?.components[0]?.refSetter,
8308
- onClick: () => {
8309
- isEdit ? null : window.open(footer?.components[0]?.metadata?.text, '_blank');
8313
+ ref: footer?.components[0]?.refSetter
8314
+ })), /*#__PURE__*/React.createElement("a", {
8315
+ href: footer?.components[1]?.metadata?.text,
8316
+ target: "_blank",
8317
+ style: {
8318
+ textDecoration: 'none'
8310
8319
  }
8311
- }), /*#__PURE__*/React.createElement("img", {
8320
+ }, /*#__PURE__*/React.createElement("img", {
8312
8321
  src: footer?.components[1]?.metadata?.text ? footer?.components[1]?.metadata?.iconUrlColor : footer?.components[1]?.metadata?.iconUrl,
8313
8322
  alt: "",
8314
8323
  style: {
@@ -8317,11 +8326,14 @@ function Section({
8317
8326
  margin: '0px 12px',
8318
8327
  cursor: 'pointer'
8319
8328
  },
8320
- onClick: () => {
8321
- isEdit ? null : window.open(footer?.components[1]?.metadata?.text, '_blank');
8322
- },
8323
8329
  ref: footer?.components[1]?.refSetter
8324
- }), /*#__PURE__*/React.createElement("img", {
8330
+ })), /*#__PURE__*/React.createElement("a", {
8331
+ href: footer?.components[2]?.metadata?.text,
8332
+ target: "_blank",
8333
+ style: {
8334
+ textDecoration: 'none'
8335
+ }
8336
+ }, /*#__PURE__*/React.createElement("img", {
8325
8337
  src: footer?.components[2]?.metadata?.text ? footer?.components[2]?.metadata?.iconUrlColor : footer?.components[2]?.metadata?.iconUrl,
8326
8338
  alt: "",
8327
8339
  style: {
@@ -8329,11 +8341,14 @@ function Section({
8329
8341
  height: '36px',
8330
8342
  cursor: 'pointer'
8331
8343
  },
8332
- onClick: () => {
8333
- isEdit ? null : window.open(footer?.components[2]?.metadata?.text, '_blank');
8334
- },
8335
8344
  ref: footer?.components[2]?.refSetter
8336
- }), /*#__PURE__*/React.createElement("img", {
8345
+ })), /*#__PURE__*/React.createElement("a", {
8346
+ href: footer?.components[3]?.metadata?.text,
8347
+ target: "_blank",
8348
+ style: {
8349
+ textDecoration: 'none'
8350
+ }
8351
+ }, /*#__PURE__*/React.createElement("img", {
8337
8352
  src: footer?.components[3]?.metadata?.text ? footer?.components[3]?.metadata?.iconUrlColor : footer?.components[3]?.metadata?.iconUrl,
8338
8353
  alt: "",
8339
8354
  style: {
@@ -8342,11 +8357,14 @@ function Section({
8342
8357
  margin: '0px 12px',
8343
8358
  cursor: 'pointer'
8344
8359
  },
8345
- ref: footer?.components[3]?.refSetter,
8346
- onClick: () => {
8347
- isEdit ? null : window.open(footer?.components[3]?.metadata?.text, '_blank');
8360
+ ref: footer?.components[3]?.refSetter
8361
+ })), /*#__PURE__*/React.createElement("a", {
8362
+ href: footer?.components[4]?.metadata?.text,
8363
+ target: "_blank",
8364
+ style: {
8365
+ textDecoration: 'none'
8348
8366
  }
8349
- }), /*#__PURE__*/React.createElement("img", {
8367
+ }, /*#__PURE__*/React.createElement("img", {
8350
8368
  src: footer?.components[4]?.metadata?.text ? footer?.components[4]?.metadata?.iconUrlColor : footer?.components[4]?.metadata?.iconUrl,
8351
8369
  alt: "",
8352
8370
  style: {
@@ -8354,11 +8372,8 @@ function Section({
8354
8372
  height: '36px',
8355
8373
  cursor: 'pointer'
8356
8374
  },
8357
- ref: footer?.components[4]?.refSetter,
8358
- onClick: () => {
8359
- isEdit ? null : window.open(footer?.components[4]?.metadata?.text, '_blank');
8360
- }
8361
- }), /*#__PURE__*/React.createElement("table", {
8375
+ ref: footer?.components[4]?.refSetter
8376
+ })), /*#__PURE__*/React.createElement("table", {
8362
8377
  style: {
8363
8378
  width: '100%',
8364
8379
  marginTop: '13px'