@pelcro/react-pelcro-js 3.26.0-beta.7 → 3.26.0-beta.8

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/dist/index.cjs.js CHANGED
@@ -3452,7 +3452,7 @@ var labels$15 = {
3452
3452
  code: "Coupon code",
3453
3453
  "for": "for",
3454
3454
  interval: "{{count}} {{interval}}",
3455
- interval_plural: "{{count}} {{interval}}s",
3455
+ interval_plural: "{{count}} {{interval}}",
3456
3456
  tax: "Tax",
3457
3457
  removeCoupon: "REMOVE",
3458
3458
  firstName: "First name",
@@ -4378,7 +4378,7 @@ var labels$P = {
4378
4378
  code: "Code promo",
4379
4379
  "for": "pour",
4380
4380
  interval: "{{count}} {{interval}}",
4381
- interval_plural: "{{count}} {{interval}}s",
4381
+ interval_plural: "{{count}} {{interval}}",
4382
4382
  tax: "Taxe",
4383
4383
  removeCoupon: "RETIRER",
4384
4384
  firstName: "Prénom",
@@ -6333,7 +6333,7 @@ var labels$f = {
6333
6333
  code: "Código de cupón",
6334
6334
  "for": "por",
6335
6335
  interval: "{{count}} {{interval}}",
6336
- interval_plural: "{{count}} {{interval}}s",
6336
+ interval_plural: "{{count}} {{interval}}",
6337
6337
  tax: "Impuesto",
6338
6338
  removeCoupon: "ELIMINAR",
6339
6339
  firstName: "Nombre",
@@ -15166,7 +15166,7 @@ class SelectModal extends React.Component {
15166
15166
  startingPlan = plan;
15167
15167
  }
15168
15168
  }
15169
- return `${startingPlan.amount_formatted}/${startingPlan.interval_count > 1 ? `${startingPlan.interval_count} ${startingPlan.interval}s` : `${startingPlan.interval}`}`;
15169
+ return `${startingPlan.amount_formatted}/${startingPlan.interval_count > 1 ? `${startingPlan.interval_count} ${startingPlan.interval_translated}` : `${startingPlan.interval_translated}`}`;
15170
15170
  });
15171
15171
  _defineProperty$3(this, "renderOneProduct", (product, index, options) => {
15172
15172
  const isPlanMode = Boolean(this.state.mode === "plan");
@@ -21593,11 +21593,11 @@ const SubscriptionRenewView = _ref => {
21593
21593
  const getPricingText = plan => {
21594
21594
  const autoRenewed = plan.auto_renew;
21595
21595
  const {
21596
- interval,
21596
+ interval_translated,
21597
21597
  interval_count
21598
21598
  } = plan;
21599
21599
  const intervalText = t("labels.interval", {
21600
- interval,
21600
+ interval: interval_translated,
21601
21601
  count: interval_count
21602
21602
  });
21603
21603
  return /*#__PURE__*/React__default['default'].createElement("p", {
@@ -21927,6 +21927,7 @@ const SubscriptionCancelButton = _ref => {
21927
21927
  }, t("labels.cancel"));
21928
21928
  };
21929
21929
 
21930
+ // New cancellation option modal
21930
21931
  const SubscriptionCancelOptions = _ref => {
21931
21932
  var _subscription$schedul;
21932
21933
  let {
@@ -22965,11 +22966,11 @@ const SubscriptionCreateView = _ref => {
22965
22966
  var _plan$quantity, _plan$quantity2, _plan$quantity3;
22966
22967
  const autoRenewed = plan.auto_renew;
22967
22968
  const {
22968
- interval,
22969
+ interval_translated,
22969
22970
  interval_count
22970
22971
  } = plan;
22971
22972
  const intervalText = t("labels.interval", {
22972
- interval,
22973
+ interval: interval_translated,
22973
22974
  count: interval_count
22974
22975
  });
22975
22976
  const priceFormatted = plan.type === "donation" && (selectedDonationAmount || customDonationAmount) ? getFormattedPriceByLocal(selectedDonationAmount ? selectedDonationAmount * (plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1) : customDonationAmount * (plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity2 = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity2 !== void 0 ? _plan$quantity2 : 1), plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage()) : getFormattedPriceByLocal((plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity3 = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity3 !== void 0 ? _plan$quantity3 : 1), plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
package/dist/index.esm.js CHANGED
@@ -3422,7 +3422,7 @@ var labels$15 = {
3422
3422
  code: "Coupon code",
3423
3423
  "for": "for",
3424
3424
  interval: "{{count}} {{interval}}",
3425
- interval_plural: "{{count}} {{interval}}s",
3425
+ interval_plural: "{{count}} {{interval}}",
3426
3426
  tax: "Tax",
3427
3427
  removeCoupon: "REMOVE",
3428
3428
  firstName: "First name",
@@ -4348,7 +4348,7 @@ var labels$P = {
4348
4348
  code: "Code promo",
4349
4349
  "for": "pour",
4350
4350
  interval: "{{count}} {{interval}}",
4351
- interval_plural: "{{count}} {{interval}}s",
4351
+ interval_plural: "{{count}} {{interval}}",
4352
4352
  tax: "Taxe",
4353
4353
  removeCoupon: "RETIRER",
4354
4354
  firstName: "Prénom",
@@ -6303,7 +6303,7 @@ var labels$f = {
6303
6303
  code: "Código de cupón",
6304
6304
  "for": "por",
6305
6305
  interval: "{{count}} {{interval}}",
6306
- interval_plural: "{{count}} {{interval}}s",
6306
+ interval_plural: "{{count}} {{interval}}",
6307
6307
  tax: "Impuesto",
6308
6308
  removeCoupon: "ELIMINAR",
6309
6309
  firstName: "Nombre",
@@ -15136,7 +15136,7 @@ class SelectModal extends Component {
15136
15136
  startingPlan = plan;
15137
15137
  }
15138
15138
  }
15139
- return `${startingPlan.amount_formatted}/${startingPlan.interval_count > 1 ? `${startingPlan.interval_count} ${startingPlan.interval}s` : `${startingPlan.interval}`}`;
15139
+ return `${startingPlan.amount_formatted}/${startingPlan.interval_count > 1 ? `${startingPlan.interval_count} ${startingPlan.interval_translated}` : `${startingPlan.interval_translated}`}`;
15140
15140
  });
15141
15141
  _defineProperty$3(this, "renderOneProduct", (product, index, options) => {
15142
15142
  const isPlanMode = Boolean(this.state.mode === "plan");
@@ -21563,11 +21563,11 @@ const SubscriptionRenewView = _ref => {
21563
21563
  const getPricingText = plan => {
21564
21564
  const autoRenewed = plan.auto_renew;
21565
21565
  const {
21566
- interval,
21566
+ interval_translated,
21567
21567
  interval_count
21568
21568
  } = plan;
21569
21569
  const intervalText = t("labels.interval", {
21570
- interval,
21570
+ interval: interval_translated,
21571
21571
  count: interval_count
21572
21572
  });
21573
21573
  return /*#__PURE__*/React__default.createElement("p", {
@@ -21897,6 +21897,7 @@ const SubscriptionCancelButton = _ref => {
21897
21897
  }, t("labels.cancel"));
21898
21898
  };
21899
21899
 
21900
+ // New cancellation option modal
21900
21901
  const SubscriptionCancelOptions = _ref => {
21901
21902
  var _subscription$schedul;
21902
21903
  let {
@@ -22935,11 +22936,11 @@ const SubscriptionCreateView = _ref => {
22935
22936
  var _plan$quantity, _plan$quantity2, _plan$quantity3;
22936
22937
  const autoRenewed = plan.auto_renew;
22937
22938
  const {
22938
- interval,
22939
+ interval_translated,
22939
22940
  interval_count
22940
22941
  } = plan;
22941
22942
  const intervalText = t("labels.interval", {
22942
- interval,
22943
+ interval: interval_translated,
22943
22944
  count: interval_count
22944
22945
  });
22945
22946
  const priceFormatted = plan.type === "donation" && (selectedDonationAmount || customDonationAmount) ? getFormattedPriceByLocal(selectedDonationAmount ? selectedDonationAmount * (plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1) : customDonationAmount * (plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity2 = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity2 !== void 0 ? _plan$quantity2 : 1), plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage()) : getFormattedPriceByLocal((plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity3 = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity3 !== void 0 ? _plan$quantity3 : 1), plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "3.26.0-beta.7",
4
+ "version": "3.26.0-beta.8",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",