@pelcro/react-pelcro-js 4.0.0-alpha.74 → 4.0.0-alpha.75

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
@@ -3427,7 +3427,8 @@ var messages$16 = {
3427
3427
  },
3428
3428
  invoicePayment: {
3429
3429
  title: "Invoice paid successfully",
3430
- content: "Please contact us if you have any questions or concerns."
3430
+ content: "Please contact us if you have any questions or concerns.",
3431
+ paymentProcessing: "Invoice payment is currently being processed"
3431
3432
  }
3432
3433
  };
3433
3434
  var errors$j = {
@@ -23862,13 +23863,10 @@ const PaymentMethodContainerWithoutStripe = ({
23862
23863
  type: LOADING,
23863
23864
  payload: false
23864
23865
  });
23865
- return dispatch({
23866
- type: SHOW_ALERT,
23867
- payload: {
23868
- type: "success",
23869
- content: t("messages.paymentProcessing")
23870
- }
23866
+ set({
23867
+ isProcessingInvoice: true
23871
23868
  });
23869
+ return onSuccess(response);
23872
23870
  } else {
23873
23871
  onSuccess(response);
23874
23872
  }
@@ -27783,7 +27781,8 @@ const getSuccessContent = i18n => {
27783
27781
 
27784
27782
  const flow = getCurrentFlow();
27785
27783
  const {
27786
- product
27784
+ product,
27785
+ isProcessingInvoice
27787
27786
  } = usePelcro.getStore();
27788
27787
  const wordingDictionary = {
27789
27788
  subscriptionSuccess: {
@@ -27811,7 +27810,7 @@ const getSuccessContent = i18n => {
27811
27810
  successIcon: /*#__PURE__*/React__default['default'].createElement(SvgCheckSolid, {
27812
27811
  className: "plc-w-32 plc-my-4 plc-text-green-500"
27813
27812
  }),
27814
- successTitle: i18n("messages.invoicePayment.title"),
27813
+ successTitle: isProcessingInvoice ? i18n("messages.invoicePayment.paymentProcessing") : i18n("messages.invoicePayment.title"),
27815
27814
  successContent: i18n("messages.invoicePayment.content")
27816
27815
  }
27817
27816
  };
@@ -27841,7 +27840,9 @@ function PaymentSuccessModal({
27841
27840
  id: "pelcro-subscription-success-modal",
27842
27841
  onDisplay: onDisplay,
27843
27842
  onClose: onClose
27844
- }, /*#__PURE__*/React__default['default'].createElement(ModalBody, null, /*#__PURE__*/React__default['default'].createElement(PaymentSuccessView, {
27843
+ }, /*#__PURE__*/React__default['default'].createElement(ModalBody, {
27844
+ className: "plc-rounded-t-lg"
27845
+ }, /*#__PURE__*/React__default['default'].createElement(PaymentSuccessView, {
27845
27846
  onClose: onClose
27846
27847
  })), /*#__PURE__*/React__default['default'].createElement(ModalFooter, null));
27847
27848
  }
package/dist/index.esm.js CHANGED
@@ -3397,7 +3397,8 @@ var messages$16 = {
3397
3397
  },
3398
3398
  invoicePayment: {
3399
3399
  title: "Invoice paid successfully",
3400
- content: "Please contact us if you have any questions or concerns."
3400
+ content: "Please contact us if you have any questions or concerns.",
3401
+ paymentProcessing: "Invoice payment is currently being processed"
3401
3402
  }
3402
3403
  };
3403
3404
  var errors$j = {
@@ -23832,13 +23833,10 @@ const PaymentMethodContainerWithoutStripe = ({
23832
23833
  type: LOADING,
23833
23834
  payload: false
23834
23835
  });
23835
- return dispatch({
23836
- type: SHOW_ALERT,
23837
- payload: {
23838
- type: "success",
23839
- content: t("messages.paymentProcessing")
23840
- }
23836
+ set({
23837
+ isProcessingInvoice: true
23841
23838
  });
23839
+ return onSuccess(response);
23842
23840
  } else {
23843
23841
  onSuccess(response);
23844
23842
  }
@@ -27753,7 +27751,8 @@ const getSuccessContent = i18n => {
27753
27751
 
27754
27752
  const flow = getCurrentFlow();
27755
27753
  const {
27756
- product
27754
+ product,
27755
+ isProcessingInvoice
27757
27756
  } = usePelcro.getStore();
27758
27757
  const wordingDictionary = {
27759
27758
  subscriptionSuccess: {
@@ -27781,7 +27780,7 @@ const getSuccessContent = i18n => {
27781
27780
  successIcon: /*#__PURE__*/React__default.createElement(SvgCheckSolid, {
27782
27781
  className: "plc-w-32 plc-my-4 plc-text-green-500"
27783
27782
  }),
27784
- successTitle: i18n("messages.invoicePayment.title"),
27783
+ successTitle: isProcessingInvoice ? i18n("messages.invoicePayment.paymentProcessing") : i18n("messages.invoicePayment.title"),
27785
27784
  successContent: i18n("messages.invoicePayment.content")
27786
27785
  }
27787
27786
  };
@@ -27811,7 +27810,9 @@ function PaymentSuccessModal({
27811
27810
  id: "pelcro-subscription-success-modal",
27812
27811
  onDisplay: onDisplay,
27813
27812
  onClose: onClose
27814
- }, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(PaymentSuccessView, {
27813
+ }, /*#__PURE__*/React__default.createElement(ModalBody, {
27814
+ className: "plc-rounded-t-lg"
27815
+ }, /*#__PURE__*/React__default.createElement(PaymentSuccessView, {
27815
27816
  onClose: onClose
27816
27817
  })), /*#__PURE__*/React__default.createElement(ModalFooter, null));
27817
27818
  }
package/dist/pelcro.css CHANGED
@@ -2911,6 +2911,11 @@ apple-pay-button {
2911
2911
  border-radius: 9999px;
2912
2912
  }
2913
2913
 
2914
+ .pelcro-root .plc-rounded-t-lg{
2915
+ border-top-left-radius: 0.5rem;
2916
+ border-top-right-radius: 0.5rem;
2917
+ }
2918
+
2914
2919
  .pelcro-root .plc-rounded-b-sm{
2915
2920
  border-bottom-right-radius: 0.125rem;
2916
2921
  border-bottom-left-radius: 0.125rem;
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": "4.0.0-alpha.74",
4
+ "version": "4.0.0-alpha.75",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",