@openlettermarketing/olc-vue-sdk 1.5.5-beta.2 → 1.5.5-beta.3

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.js CHANGED
@@ -164776,7 +164776,7 @@ const $14dc1102dd22ee0f$export$fac40f04596fc189 = (store)=>{
164776
164776
  resizable: false,
164777
164777
  contentEditable: true,
164778
164778
  styleEditable: false,
164779
- text: "Thanks!,, \n ((SPF.FIRST_NAME))",
164779
+ text: "Thanks! \n ((SPF.FIRST_NAME))",
164780
164780
  fontSize: 20,
164781
164781
  fontFamily: "lexi Regular",
164782
164782
  fontStyle: "normal",
@@ -168524,11 +168524,11 @@ const $34a18093efad5ac0$var$CustomQRCode = {
168524
168524
  // if selection is changed we need to update input value
168525
168525
  (0, react.useEffect)(()=>{
168526
168526
  if (el?.name === "qr") {
168527
- setUrl(el?.custom.url);
168528
- setUtmSource(el?.custom.utm_source);
168529
- setUtmMedium(el?.custom.utm_medium);
168530
- setUtmCampaignName(el?.custom.utm_campaign_name);
168531
- setCustomUtms(el?.custom.custom_utms);
168527
+ setUrl(el?.custom?.url || el?.custom?.value || "");
168528
+ setUtmSource(el?.custom?.utm_source || "direct mail");
168529
+ setUtmMedium(el?.custom?.utm_medium || "QR Code");
168530
+ setUtmCampaignName(el?.custom?.utm_campaign_name || "");
168531
+ Object.values(el?.custom?.custom_utms || {}).length ? setCustomUtms(el?.custom?.custom_utms) : setCustomUtms({});
168532
168532
  } else {
168533
168533
  setUrl("");
168534
168534
  setUtmSource("direct mail");
@@ -168559,7 +168559,7 @@ const $34a18093efad5ac0$var$CustomQRCode = {
168559
168559
  }),
168560
168560
  /*#__PURE__*/ (0, jsx_runtime.jsxs)("div", {
168561
168561
  style: {
168562
- marginTop: "20px"
168562
+ marginTop: "15px"
168563
168563
  },
168564
168564
  children: [
168565
168565
  /*#__PURE__*/ (0, jsx_runtime.jsx)("label", {
@@ -168577,7 +168577,7 @@ const $34a18093efad5ac0$var$CustomQRCode = {
168577
168577
  }),
168578
168578
  /*#__PURE__*/ (0, jsx_runtime.jsxs)("div", {
168579
168579
  style: {
168580
- marginTop: "20px"
168580
+ marginTop: "15px"
168581
168581
  },
168582
168582
  children: [
168583
168583
  /*#__PURE__*/ (0, jsx_runtime.jsx)("label", {
@@ -168595,7 +168595,7 @@ const $34a18093efad5ac0$var$CustomQRCode = {
168595
168595
  }),
168596
168596
  /*#__PURE__*/ (0, jsx_runtime.jsxs)("div", {
168597
168597
  style: {
168598
- marginTop: "20px"
168598
+ marginTop: "15px"
168599
168599
  },
168600
168600
  children: [
168601
168601
  /*#__PURE__*/ (0, jsx_runtime.jsx)("label", {
@@ -168611,10 +168611,10 @@ const $34a18093efad5ac0$var$CustomQRCode = {
168611
168611
  })
168612
168612
  ]
168613
168613
  }),
168614
- utms.map((utm, idx)=>{
168614
+ utms?.map((utm, idx)=>{
168615
168615
  return /*#__PURE__*/ (0, jsx_runtime.jsxs)("div", {
168616
168616
  style: {
168617
- marginTop: "20px"
168617
+ marginTop: "15px"
168618
168618
  },
168619
168619
  children: [
168620
168620
  /*#__PURE__*/ (0, jsx_runtime.jsxs)("label", {
@@ -168643,8 +168643,9 @@ const $34a18093efad5ac0$var$CustomQRCode = {
168643
168643
  onClick: isQR ? updateQRCode : addNewQRCode,
168644
168644
  style: {
168645
168645
  width: "100%",
168646
- padding: "5px",
168647
- marginTop: "10px",
168646
+ padding: "10px",
168647
+ marginTop: "20px",
168648
+ marginBottom: "10px",
168648
168649
  backgroundColor: "#f6f7f9",
168649
168650
  boxShadow: "inset 0 0 0 1px #11141833,0 1px 2px #1114181a",
168650
168651
  color: "#1c2127",
@@ -169125,7 +169126,7 @@ var $edeafd00018ca857$export$2e2bcd8739ae039 = $edeafd00018ca857$var$App;
169125
169126
 
169126
169127
 
169127
169128
 
169128
- const $23c375345222aadb$export$31499a9cd224b78c = "1.7.5";
169129
+ const $23c375345222aadb$export$31499a9cd224b78c = "1.7.6";
169129
169130
 
169130
169131
 
169131
169132
  const $24075a5d702d64b3$var$TemplateBuilder = ({ container: container, secretKey: secretKey, publicApiKey: publicApiKey, platformName: platformName, templateGalleryModal: templateGalleryModal = true, createTemplateRoute: createTemplateRoute, templateBuilderRoute: templateBuilderRoute, olcTemplate: olcTemplate, designerTemplateQuery: designerTemplateQuery, sandbox: sandbox, allowSenderFields: allowSenderFields, allowPropertyFields: allowPropertyFields, excludedFields: excludedFields, designerQueryAmount: designerQueryAmount, allowedAddOns: allowedAddOns, env: env, restrictedProducts: restrictedProducts, onReturnAndNavigate: onReturnAndNavigate, onCreateCustomTemplateQuery: onCreateCustomTemplateQuery, onGetOneTemplate: onGetOneTemplate, onGetTemplates: onGetTemplates, onGetCustomFields: onGetCustomFields, onSubmit: onSubmit, styles: styles })=>{