@openlettermarketing/olc-vue-sdk 1.6.1 → 1.6.2

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
@@ -159458,7 +159458,7 @@ const $65bf2ecf319e656d$var$initialState = {
159458
159458
  {
159459
159459
  value: "Property Written Offer",
159460
159460
  key: "{{ROS.WRITTEN_OFFER}}",
159461
- defaultValue: "One hundred twenty three thousand four hundred and fifty-six and 00/100"
159461
+ defaultValue: "One hundred twenty-three thousand four hundred fifty-six and 00/100"
159462
159462
  }
159463
159463
  ],
159464
159464
  defaultMiscFields: [
@@ -160482,7 +160482,7 @@ const $0b51cdcdcd2b1339$export$af7faffe10421f14 = {
160482
160482
  }
160483
160483
  }
160484
160484
  },
160485
- DOWNLOAD_PROOF_BUTTON: "Download View Proof",
160485
+ DOWNLOAD_PROOF_BUTTON: "Download Mailer Proof",
160486
160486
  DOWNLOAD_ENVELOPE_BUTTON: "Download Envelope Proof",
160487
160487
  CANCEL_BUTTON: "Cancel",
160488
160488
  SUBMIT_BUTTON: "Save"
@@ -164490,12 +164490,12 @@ const $dd071d7635be500b$var$CreateTemplate = ({ onReturnAndNavigate: onReturnAnd
164490
164490
  children: [
164491
164491
  /*#__PURE__*/ (0, jsx_runtime.jsx)((0, $10fe05b81a81fb3f$export$2e2bcd8739ae039), {
164492
164492
  fill: "var(--primary-color)",
164493
- className: `productTooltipIcon-${index} olc-hidden`
164493
+ className: `productTooltipIcon-${index}`
164494
164494
  }),
164495
164495
  /*#__PURE__*/ (0, jsx_runtime.jsx)((0, $7d1ce187c1ab3d01$export$2e2bcd8739ae039), {
164496
164496
  anchorSelect: `.productTooltipIcon-${index}`,
164497
164497
  place: "right",
164498
- className: "customTooltipClass olc-hidden",
164498
+ className: "customTooltipClass",
164499
164499
  title: /*#__PURE__*/ (0, jsx_runtime.jsx)(ProductTooltipContent, {
164500
164500
  product: prod
164501
164501
  })
@@ -165695,26 +165695,6 @@ var $788118b6d825ecfe$export$2e2bcd8739ae039 = $788118b6d825ecfe$var$OrderDownlo
165695
165695
 
165696
165696
 
165697
165697
 
165698
- const $850382ceb18dc2bd$var$MailIcon = (props)=>/*#__PURE__*/ (0, $lt6Ts$jsx)("svg", {
165699
- version: "1.0",
165700
- id: "Layer_1",
165701
- xmlns: "http://www.w3.org/2000/svg",
165702
- xmlnsXlink: "http://www.w3.org/1999/xlink",
165703
- width: "25",
165704
- height: "24",
165705
- viewBox: "0 0 64 64",
165706
- xmlSpace: "preserve",
165707
- ...props,
165708
- children: /*#__PURE__*/ (0, $lt6Ts$jsx)("path", {
165709
- fill: "#231F20",
165710
- d: "M60,8H4c-2.211,0-4,1.789-4,4v40c0,2.211,1.789,4,4,4h56c2.211,0,4-1.789,4-4V12C64,9.789,62.211,8,60,8z M4,10h56c1.104,0,2,0.896,2,2v2.469L32,36.754L2,14.469V12C2,10.896,2.896,10,4,10z M60,54H4c-1.104,0-2-0.896-2-2v-2.808 l18.584-13.381c0.448-0.322,0.55-0.947,0.228-1.396c-0.322-0.447-0.946-0.549-1.396-0.228L2,46.729V16.961l29.403,21.842 C31.581,38.935,31.79,39,32,39s0.419-0.065,0.597-0.197L62,16.961v29.768l-17.416-12.54c-0.448-0.322-1.074-0.221-1.396,0.228 c-0.322,0.448-0.221,1.073,0.228,1.396L62,49.192V52C62,53.104,61.104,54,60,54z"
165711
- })
165712
- });
165713
- var $850382ceb18dc2bd$export$2e2bcd8739ae039 = (/* unused pure expression or super */ null && ($850382ceb18dc2bd$var$MailIcon));
165714
-
165715
-
165716
-
165717
-
165718
165698
  const $beb12c725a41a350$var$TemplateCopy = (props)=>{
165719
165699
  const { fill: fill } = props;
165720
165700
  return /*#__PURE__*/ (0, jsx_runtime.jsx)((0, jsx_runtime.Fragment), {
@@ -165880,7 +165860,7 @@ const $d31b9bd88e5dcf67$var$TopNavigation = ({ store: store, createTemplateRoute
165880
165860
  // Create an Object URL for the Blob
165881
165861
  const url = URL.createObjectURL(blob);
165882
165862
  (0, $ad01ab85e9f42d02$export$3c4ee5ffa62bdd4b)(title.substring(0, 20), url);
165883
- dispatch((0, $6ca040a325a745aa$export$fe7c49d056ea1d88)("Download Proof generated successfully"));
165863
+ dispatch((0, $6ca040a325a745aa$export$fe7c49d056ea1d88)("Mailer Proof generated successfully"));
165884
165864
  } else dispatch((0, $6ca040a325a745aa$export$af2dba6db4e9e1f0)(response?.data?.message || response?.message || (0, $0b51cdcdcd2b1339$export$af7faffe10421f14).DOWNLOAD_ERROR));
165885
165865
  } catch (error) {
165886
165866
  dispatch((0, $6ca040a325a745aa$export$af2dba6db4e9e1f0)(error?.response?.data?.message || error?.message || "Error while downloading proof"));
@@ -166119,7 +166099,6 @@ const $d31b9bd88e5dcf67$var$TopNavigation = ({ store: store, createTemplateRoute
166119
166099
  place: "bottom",
166120
166100
  anchorSelect: ".clone"
166121
166101
  }),
166122
- product?.hasEnvelope && false,
166123
166102
  /*#__PURE__*/ (0, jsx_runtime.jsx)("div", {
166124
166103
  className: "download",
166125
166104
  onClick: handleViewProofWithLamda,
@@ -169028,9 +169007,10 @@ var $394f63d6507afbac$export$2e2bcd8739ae039 = $394f63d6507afbac$var$EPO;
169028
169007
 
169029
169008
  const $52be5db9307c4332$var$iconButtonStyles = {
169030
169009
  backgroundColor: "transparent",
169031
- marginLeft: "70%",
169032
- marginTop: "-40%",
169033
- position: "absolute"
169010
+ position: "absolute",
169011
+ top: "10px",
169012
+ right: "10px",
169013
+ height: "auto"
169034
169014
  };
169035
169015
  // define the new custom section
169036
169016
  const $52be5db9307c4332$var$CustomAddOns = {
@@ -169105,6 +169085,7 @@ const $52be5db9307c4332$var$CustomAddOns = {
169105
169085
  ros_custom_value: customRosValue
169106
169086
  }
169107
169087
  });
169088
+ setCustomRosValue("");
169108
169089
  }
169109
169090
  };
169110
169091
  const percentageRequired = ()=>dispatch((0, $6ca040a325a745aa$export$af2dba6db4e9e1f0)(`Please enter the offer percentage`));
@@ -169166,42 +169147,45 @@ const $52be5db9307c4332$var$CustomAddOns = {
169166
169147
  })
169167
169148
  ]
169168
169149
  }),
169169
- allowedAddOns?.includes("property_offer") && /*#__PURE__*/ (0, jsx_runtime.jsx)("div", {
169170
- children: /*#__PURE__*/ (0, jsx_runtime.jsxs)("div", {
169171
- className: "addonBox",
169172
- onClick: (event)=>handleAddElementOnScreen(event, PropertyOfferfieldValue, "rpo"),
169173
- children: [
169174
- /*#__PURE__*/ (0, jsx_runtime.jsx)((0, $468b2e43c10c77f3$export$2e2bcd8739ae039), {
169175
- style: $52be5db9307c4332$var$iconButtonStyles,
169176
- onClick: copyPropertyOfferField,
169177
- backdrop: false,
169178
- children: /*#__PURE__*/ (0, jsx_runtime.jsx)((0, $e06bdfe75163a118$export$2e2bcd8739ae039), {
169179
- className: "copy"
169180
- })
169181
- }),
169182
- /*#__PURE__*/ (0, jsx_runtime.jsx)((0, $394f63d6507afbac$export$2e2bcd8739ae039), {}),
169183
- /*#__PURE__*/ (0, jsx_runtime.jsx)((0, $5a8c8921b86c6a58$export$2e2bcd8739ae039), {
169184
- children: (0, $0b51cdcdcd2b1339$export$af7faffe10421f14).TEMPLATE.CUSTOM_ADD_ONS.PROPERTY_OFFER.TITLE
169185
- }),
169186
- /*#__PURE__*/ (0, jsx_runtime.jsx)((0, $5a8c8921b86c6a58$export$2e2bcd8739ae039), {
169187
- className: "no-margin",
169188
- children: (0, $0b51cdcdcd2b1339$export$af7faffe10421f14).TEMPLATE.CUSTOM_ADD_ONS.PROPERTY_OFFER.DESCRIPTION
169189
- }),
169190
- /*#__PURE__*/ (0, jsx_runtime.jsx)((0, $5a8c8921b86c6a58$export$2e2bcd8739ae039), {
169191
- children: (0, $0b51cdcdcd2b1339$export$af7faffe10421f14).TEMPLATE.CUSTOM_ADD_ONS.PROPERTY_OFFER.PRICE
169150
+ allowedAddOns?.includes("property_offer") && /*#__PURE__*/ (0, jsx_runtime.jsxs)("div", {
169151
+ className: "addonBox",
169152
+ style: {
169153
+ position: "relative"
169154
+ },
169155
+ onClick: (event)=>handleAddElementOnScreen(event, PropertyOfferfieldValue, "rpo"),
169156
+ children: [
169157
+ /*#__PURE__*/ (0, jsx_runtime.jsx)((0, $468b2e43c10c77f3$export$2e2bcd8739ae039), {
169158
+ style: $52be5db9307c4332$var$iconButtonStyles,
169159
+ onClick: copyPropertyOfferField,
169160
+ backdrop: false,
169161
+ children: /*#__PURE__*/ (0, jsx_runtime.jsx)((0, $e06bdfe75163a118$export$2e2bcd8739ae039), {
169162
+ className: "copy"
169192
169163
  })
169193
- ]
169194
- })
169164
+ }),
169165
+ /*#__PURE__*/ (0, jsx_runtime.jsx)((0, $394f63d6507afbac$export$2e2bcd8739ae039), {}),
169166
+ /*#__PURE__*/ (0, jsx_runtime.jsx)((0, $5a8c8921b86c6a58$export$2e2bcd8739ae039), {
169167
+ children: (0, $0b51cdcdcd2b1339$export$af7faffe10421f14).TEMPLATE.CUSTOM_ADD_ONS.PROPERTY_OFFER.TITLE
169168
+ }),
169169
+ /*#__PURE__*/ (0, jsx_runtime.jsx)((0, $5a8c8921b86c6a58$export$2e2bcd8739ae039), {
169170
+ className: "no-margin",
169171
+ children: (0, $0b51cdcdcd2b1339$export$af7faffe10421f14).TEMPLATE.CUSTOM_ADD_ONS.PROPERTY_OFFER.DESCRIPTION
169172
+ }),
169173
+ /*#__PURE__*/ (0, jsx_runtime.jsx)((0, $5a8c8921b86c6a58$export$2e2bcd8739ae039), {
169174
+ children: (0, $0b51cdcdcd2b1339$export$af7faffe10421f14).TEMPLATE.CUSTOM_ADD_ONS.PROPERTY_OFFER.PRICE
169175
+ })
169176
+ ]
169195
169177
  }),
169196
169178
  allowedAddOns?.includes("custom_property_offer") && /*#__PURE__*/ (0, jsx_runtime.jsxs)("div", {
169197
169179
  className: "addonBox",
169180
+ style: {
169181
+ position: "relative"
169182
+ },
169198
169183
  onClick: (event)=>handleAddElementOnScreen(event, PropertyOfferfieldValue, "custom_rpo"),
169199
169184
  children: [
169200
169185
  /*#__PURE__*/ (0, jsx_runtime.jsx)((0, $468b2e43c10c77f3$export$2e2bcd8739ae039), {
169201
169186
  style: $52be5db9307c4332$var$iconButtonStyles,
169202
169187
  onClick: customRosValue ? copyPropertyOfferField : percentageRequired,
169203
169188
  backdrop: false,
169204
- className: "custom-po",
169205
169189
  children: /*#__PURE__*/ (0, jsx_runtime.jsx)((0, $e06bdfe75163a118$export$2e2bcd8739ae039), {
169206
169190
  className: "copy"
169207
169191
  })
@@ -169795,6 +169779,10 @@ const $6248df0c26b0b2d9$var$TemplateBuilder = ({ store: store, platformName: pla
169795
169779
  store.history.clear();
169796
169780
  store.clear();
169797
169781
  dispatch((0, $bbef8ecdaaf79b6e$export$7cdbec44919c75ac)());
169782
+ dispatch({
169783
+ type: (0, $e496cac0faa1ff17$export$ec8156c566eb37cd),
169784
+ payload: ""
169785
+ });
169798
169786
  off();
169799
169787
  };
169800
169788
  }
@@ -169904,6 +169892,10 @@ const $6248df0c26b0b2d9$var$TemplateBuilder = ({ store: store, platformName: pla
169904
169892
  (0, $729142c3e2d905ee$export$4e7e1f53e01e76b7)(product.id, store);
169905
169893
  if (currentTemplateType === "Real Penned Letter") handleRealPennedLetters();
169906
169894
  dispatch((0, $bbef8ecdaaf79b6e$export$7cdbec44919c75ac)());
169895
+ dispatch({
169896
+ type: (0, $e496cac0faa1ff17$export$ec8156c566eb37cd),
169897
+ payload: ""
169898
+ });
169907
169899
  store.history.clear();
169908
169900
  }
169909
169901
  setIsStoreUpdated(false);
@@ -169952,6 +169944,10 @@ const $6248df0c26b0b2d9$var$TemplateBuilder = ({ store: store, platformName: pla
169952
169944
  dispatch({
169953
169945
  type: (0, $e496cac0faa1ff17$export$f632fb3a4986e34d)
169954
169946
  });
169947
+ dispatch({
169948
+ type: (0, $e496cac0faa1ff17$export$ec8156c566eb37cd),
169949
+ payload: ""
169950
+ });
169955
169951
  store.clear();
169956
169952
  store.history.clear();
169957
169953
  dispatch((0, $dbaee5ca78364d67$export$c7c994d6f1f97f07)("title", designerTemplateQuery?.title));
@@ -170157,7 +170153,7 @@ var $edeafd00018ca857$export$2e2bcd8739ae039 = $edeafd00018ca857$var$App;
170157
170153
 
170158
170154
 
170159
170155
 
170160
- const $23c375345222aadb$export$31499a9cd224b78c = "1.9.0";
170156
+ const $23c375345222aadb$export$31499a9cd224b78c = "1.9.5";
170161
170157
 
170162
170158
 
170163
170159
  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, allowedTemplateSections: allowedTemplateSections, env: env, restrictedProducts: restrictedProducts, onReturnAndNavigate: onReturnAndNavigate, onCreateCustomTemplateQuery: onCreateCustomTemplateQuery, onGetOneTemplate: onGetOneTemplate, onGetTemplates: onGetTemplates, onGetCustomFields: onGetCustomFields, onDuplicateTemplate: onDuplicateTemplate, onSubmit: onSubmit, styles: styles })=>{