diy-template-components 0.2.7 → 0.2.9

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
@@ -7935,8 +7935,8 @@ const useEmailStyles = createUseStyles(theme => ({
7935
7935
  borderSpacing: '0'
7936
7936
  },
7937
7937
  logoimg: {
7938
- width: '28px',
7939
- height: '28px'
7938
+ width: '78px',
7939
+ height: '48px'
7940
7940
  /* margin: 18px 0px; */
7941
7941
  },
7942
7942
 
@@ -7994,7 +7994,10 @@ function Section({
7994
7994
  emailRef,
7995
7995
  customHtmlData
7996
7996
  }) {
7997
- console.log('customHtmlData', customHtmlData);
7997
+ const {
7998
+ isEdit
7999
+ } = useContext(PageContext);
8000
+ console.log('customHtmlData', isEdit);
7998
8001
  const header = nodeData?.components[0];
7999
8002
  const body = nodeData?.components[1];
8000
8003
  const landing = nodeData?.components[2];
@@ -8027,8 +8030,12 @@ function Section({
8027
8030
  }
8028
8031
  }, header?.components[0]?.metadata?.image?.length ? /*#__PURE__*/React.createElement("img", {
8029
8032
  src: header?.components[0]?.metadata?.image,
8030
- alt: "",
8031
- className: classes.logoimg
8033
+ alt: ""
8034
+ // className={classes.logoimg}
8035
+ ,
8036
+ style: {
8037
+ width: '60px'
8038
+ }
8032
8039
  }) : /*#__PURE__*/React.createElement("div", {
8033
8040
  style: {
8034
8041
  display: 'flex',
@@ -8124,7 +8131,8 @@ function Section({
8124
8131
  src: landing?.components[0]?.metadata?.image,
8125
8132
  alt: "",
8126
8133
  style: {
8127
- width: '100%'
8134
+ width: '100%',
8135
+ borderRadius: '10px'
8128
8136
  }
8129
8137
  }) : /*#__PURE__*/React.createElement("div", {
8130
8138
  style: {
@@ -8134,7 +8142,8 @@ function Section({
8134
8142
  display: 'flex',
8135
8143
  alignItems: 'center',
8136
8144
  justifyContent: 'center',
8137
- fontStyle: 'italic'
8145
+ fontStyle: 'italic',
8146
+ borderRadius: '10px'
8138
8147
  }
8139
8148
  }, "Thumbnail Image"), /*#__PURE__*/React.createElement("p", {
8140
8149
  style: {
@@ -8149,29 +8158,27 @@ function Section({
8149
8158
  textAlign: 'left'
8150
8159
  },
8151
8160
  ref: landing?.components[1]?.refSetter
8152
- }, landing?.components[1]?.metadata?.text), /*#__PURE__*/React.createElement("a", {
8153
- href: landing?.components[3]?.metadata?.text,
8154
- target: "_blank",
8155
- style: {
8156
- textDecoration: 'none'
8157
- }
8158
- }, /*#__PURE__*/React.createElement("p", {
8161
+ }, landing?.components[1]?.metadata?.text), /*#__PURE__*/React.createElement("p", {
8159
8162
  style: {
8160
- background: '#009ae0',
8163
+ background: '#009AE0',
8161
8164
  borderRadius: '7.18333px',
8162
8165
  color: 'white',
8163
8166
  textDecoration: 'none',
8164
8167
  padding: '12px 0px',
8165
8168
  // fontFamily: 'Roboto',
8169
+ cursor: 'pointer',
8166
8170
  fontStyle: 'normal',
8167
- fontWeight: '600',
8171
+ fontWeight: '600 ',
8168
8172
  fontSize: '20.55px',
8169
8173
  lineHeight: '32px',
8170
8174
  textTransform: 'uppercase',
8171
8175
  color: '#fafafa'
8172
8176
  },
8177
+ onClick: () => {
8178
+ !isEdit ? window.open(landing?.components[3]?.metadata?.text, '_blank') : null;
8179
+ },
8173
8180
  ref: landing?.components[2]?.refSetter
8174
- }, landing?.components[2]?.metadata?.text)))))))))) : null, footer?.isActive ? /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("table", {
8181
+ }, landing?.components[2]?.metadata?.text))))))))) : null, footer?.isActive ? /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("table", {
8175
8182
  style: {
8176
8183
  width: '100%',
8177
8184
  background: '#e3f0ff',
@@ -8194,79 +8201,69 @@ function Section({
8194
8201
  marginTop: '8px',
8195
8202
  marginBottom: '16px'
8196
8203
  }
8197
- }, /*#__PURE__*/React.createElement("tbody", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("a", {
8198
- href: footer?.components[0]?.metadata?.text,
8199
- target: "_blank",
8200
- style: {
8201
- textDecoration: 'none'
8202
- }
8203
- }, /*#__PURE__*/React.createElement("img", {
8204
+ }, /*#__PURE__*/React.createElement("tbody", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("img", {
8204
8205
  src: footer?.components[0]?.metadata?.text ? footer?.components[0]?.metadata?.iconUrlColor : footer?.components[0]?.metadata?.iconUrl,
8205
8206
  alt: "",
8206
8207
  style: {
8207
8208
  width: '36px',
8208
- height: '36px'
8209
+ height: '36px',
8210
+ cursor: 'pointer'
8209
8211
  },
8210
- ref: footer?.components[0]?.refSetter
8211
- })), /*#__PURE__*/React.createElement("a", {
8212
- href: footer?.components[1]?.metadata?.text,
8213
- target: "_blank",
8214
- style: {
8215
- textDecoration: 'none'
8212
+ ref: footer?.components[0]?.refSetter,
8213
+ onClick: () => {
8214
+ !isEdit ? window.open(footer?.components[0]?.metadata?.text, '_blank') : null;
8216
8215
  }
8217
- }, /*#__PURE__*/React.createElement("img", {
8216
+ }), /*#__PURE__*/React.createElement("img", {
8218
8217
  src: footer?.components[1]?.metadata?.text ? footer?.components[1]?.metadata?.iconUrlColor : footer?.components[1]?.metadata?.iconUrl,
8219
8218
  alt: "",
8220
8219
  style: {
8221
8220
  width: '36px',
8222
8221
  height: '36px',
8223
- margin: '0px 12px'
8222
+ margin: '0px 12px',
8223
+ cursor: 'pointer'
8224
+ },
8225
+ onClick: () => {
8226
+ !isEdit ? window.open(footer?.components[1]?.metadata?.text, '_blank') : null;
8224
8227
  },
8225
8228
  ref: footer?.components[1]?.refSetter
8226
- })), /*#__PURE__*/React.createElement("a", {
8227
- href: footer?.components[2]?.metadata?.text,
8228
- target: "_blank",
8229
- style: {
8230
- textDecoration: 'none'
8231
- }
8232
- }, /*#__PURE__*/React.createElement("img", {
8229
+ }), /*#__PURE__*/React.createElement("img", {
8233
8230
  src: footer?.components[2]?.metadata?.text ? footer?.components[2]?.metadata?.iconUrlColor : footer?.components[2]?.metadata?.iconUrl,
8234
8231
  alt: "",
8235
8232
  style: {
8236
8233
  width: '36px',
8237
- height: '36px'
8234
+ height: '36px',
8235
+ cursor: 'pointer'
8236
+ },
8237
+ onClick: () => {
8238
+ !isEdit ? window.open(footer?.components[2]?.metadata?.text, '_blank') : null;
8238
8239
  },
8239
8240
  ref: footer?.components[2]?.refSetter
8240
- })), /*#__PURE__*/React.createElement("a", {
8241
- href: footer?.components[3]?.metadata?.text,
8242
- target: "_blank",
8243
- style: {
8244
- textDecoration: 'none'
8245
- }
8246
- }, /*#__PURE__*/React.createElement("img", {
8241
+ }), /*#__PURE__*/React.createElement("img", {
8247
8242
  src: footer?.components[3]?.metadata?.text ? footer?.components[3]?.metadata?.iconUrlColor : footer?.components[3]?.metadata?.iconUrl,
8248
8243
  alt: "",
8249
8244
  style: {
8250
8245
  width: '36px',
8251
8246
  height: '36px',
8252
- margin: '0px 12px'
8247
+ margin: '0px 12px',
8248
+ cursor: 'pointer'
8253
8249
  },
8254
- ref: footer?.components[3]?.refSetter
8255
- })), /*#__PURE__*/React.createElement("a", {
8256
- href: footer?.components[4]?.metadata?.text,
8257
- target: "_blank",
8258
- style: {
8259
- textDecoration: 'none'
8250
+ ref: footer?.components[3]?.refSetter,
8251
+ onClick: () => {
8252
+ !isEdit ? window.open(footer?.components[3]?.metadata?.text, '_blank') : null;
8260
8253
  }
8261
- }, /*#__PURE__*/React.createElement("img", {
8254
+ }), /*#__PURE__*/React.createElement("img", {
8262
8255
  src: footer?.components[4]?.metadata?.text ? footer?.components[4]?.metadata?.iconUrlColor : footer?.components[4]?.metadata?.iconUrl,
8263
8256
  alt: "",
8264
8257
  style: {
8265
8258
  width: '36px',
8266
- height: '36px'
8259
+ height: '36px',
8260
+ cursor: 'pointer'
8267
8261
  },
8268
- ref: footer?.components[4]?.refSetter
8269
- })), /*#__PURE__*/React.createElement("table", {
8262
+ ref: footer?.components[4]?.refSetter,
8263
+ onClick: () => {
8264
+ !isEdit ? window.open(footer?.components[4]?.metadata?.text, '_blank') : null;
8265
+ }
8266
+ }), /*#__PURE__*/React.createElement("table", {
8270
8267
  style: {
8271
8268
  width: '100%',
8272
8269
  marginTop: '13px'
@@ -8281,7 +8278,7 @@ function Section({
8281
8278
  textAlign: 'center',
8282
8279
  color: '#7d8592'
8283
8280
  }
8284
- }, "For any concerns, mail us at", ' ' + footer?.components[5]?.metadata?.text ? footer?.components[5]?.metadata?.text : ''), /*#__PURE__*/React.createElement("p", {
8281
+ }, "For any concerns, mail us at\xA0", footer?.components[5]?.metadata?.text ? footer?.components[5]?.metadata?.text : ''), /*#__PURE__*/React.createElement("p", {
8285
8282
  style: {
8286
8283
  // fontFamily: 'Roboto',
8287
8284
  fontStyle: 'normal',
@@ -8291,7 +8288,7 @@ function Section({
8291
8288
  textAlign: 'center',
8292
8289
  color: '#7d8592'
8293
8290
  }
8294
- }, "Copyright \xA9 2023 |", ' ' + footer?.components[5]?.metadata?.text ? footer?.components[5]?.metadata?.text : ''), /*#__PURE__*/React.createElement("p", {
8291
+ }, "Copyright \xA9 2023 |\xA0", footer?.components[5]?.metadata?.text ? footer?.components[5]?.metadata?.text : ''), /*#__PURE__*/React.createElement("p", {
8295
8292
  style: {
8296
8293
  // fontFamily: 'Roboto',
8297
8294
  fontStyle: 'normal',
@@ -8328,7 +8325,8 @@ function EmailDripMarket({
8328
8325
  const emailRef = useRef(null);
8329
8326
  return /*#__PURE__*/React.createElement("section", {
8330
8327
  style: {
8331
- width: '95%'
8328
+ width: '95%',
8329
+ paddingBottom: '30%'
8332
8330
  }
8333
8331
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Section, {
8334
8332
  sectionRef: emailRef,