@pelcro/react-pelcro-js 3.26.0-beta.30 → 3.26.0-beta.32
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 +21 -5
- package/dist/index.esm.js +21 -5
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3866,6 +3866,7 @@ var messages$$ = {
|
|
|
3866
3866
|
cancel: "Cancel your subscription online at anytime.",
|
|
3867
3867
|
giftSent: "Subscription gift has been sent to",
|
|
3868
3868
|
successfully: "successfully",
|
|
3869
|
+
sourceCreated: "Payment information has been added",
|
|
3869
3870
|
sourceUpdated: "Your payment information has been updated",
|
|
3870
3871
|
cardAuthFailed: "We are unable to authenticate your payment method. Please choose a different payment method and try again.",
|
|
3871
3872
|
cardAuthNotSupported: "Updating your payment method to one that requires authentication is currently not possible. Please use a different payment method or contact customer service.",
|
|
@@ -4819,6 +4820,7 @@ var messages$I = {
|
|
|
4819
4820
|
cancel: "Annuler votre abonnement en ligne à tout moment.",
|
|
4820
4821
|
giftSent: "Le cadeau d’abonnement a été envoyé à",
|
|
4821
4822
|
successfully: "avec succès.",
|
|
4823
|
+
sourceCreated: "Les informations de paiement ont été ajoutées",
|
|
4822
4824
|
sourceUpdated: "Vos informations de paiement ont été mises à jour",
|
|
4823
4825
|
cardAuthFailed: "Nous ne parvenons pas à authentifier votre mode de paiement. Veuillez choisir un autre mode de paiement et essayer à nouveau.",
|
|
4824
4826
|
cardAuthNotSupported: "Votre carte ne peut être mise à jour puisqu'elle nécessite une authentification. Veuillez utiliser un autre mode de paiement ou contacter le service client.",
|
|
@@ -5760,6 +5762,7 @@ var messages$p = {
|
|
|
5760
5762
|
cancel: "유료 멤버십은 언제든 온라인으로 취소가 가능합니다.",
|
|
5761
5763
|
giftSent: "유료 멤버십 선물이 ",
|
|
5762
5764
|
successfully: "님께 성공적으로 전송되었습니다.",
|
|
5765
|
+
sourceCreated: "결제 정보가 추가되었습니다.",
|
|
5763
5766
|
sourceUpdated: "귀하의 결제 정보가 업데이트되었습니다.",
|
|
5764
5767
|
cardAuthFailed: "해당 결제 수단은 인증할 수 없습니다. 다른 결제 수단을 선택하여 다시 시도해보시기 바랍니다.",
|
|
5765
5768
|
cardAuthNotSupported: "인증이 요구되는 결제 수단으로의 업데이트는 현재 지원되지 않습니다. 다른 결제 수단을 이용하거나 고객센터로 문의하시기 바랍니다.",
|
|
@@ -6804,6 +6807,7 @@ var messages$6 = {
|
|
|
6804
6807
|
cancel: "Cancela tu suscripción en línea en cualquier momento.",
|
|
6805
6808
|
giftSent: "La suscripción de regalo se ha enviado a",
|
|
6806
6809
|
successfully: "exitosamente",
|
|
6810
|
+
sourceCreated: "Se ha añadido la información de pago",
|
|
6807
6811
|
sourceUpdated: "Tu información de pago se ha actualizado",
|
|
6808
6812
|
cardAuthFailed: "No pudimos autenticar tu método de pago. Por favor, elige un método de pago diferente e intenta de nuevo.",
|
|
6809
6813
|
cardAuthNotSupported: "Actualmente no es posible actualizar tu método de pago a uno que requiere autenticación. Por favor, utiliza un método de pago diferente o contacta a atención al cliente.",
|
|
@@ -19913,7 +19917,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19913
19917
|
type: SHOW_ALERT,
|
|
19914
19918
|
payload: {
|
|
19915
19919
|
type: "success",
|
|
19916
|
-
content: t("messages.
|
|
19920
|
+
content: t("messages.sourceCreated")
|
|
19917
19921
|
}
|
|
19918
19922
|
});
|
|
19919
19923
|
onSuccess(res);
|
|
@@ -20782,7 +20786,8 @@ const CheckoutForm = _ref => {
|
|
|
20782
20786
|
type
|
|
20783
20787
|
} = _ref;
|
|
20784
20788
|
const {
|
|
20785
|
-
selectedPaymentMethodId
|
|
20789
|
+
selectedPaymentMethodId,
|
|
20790
|
+
paymentMethodToEdit
|
|
20786
20791
|
} = usePelcro();
|
|
20787
20792
|
const cardProcessor = getSiteCardProcessor();
|
|
20788
20793
|
if (selectedPaymentMethodId) {
|
|
@@ -20818,7 +20823,14 @@ const CheckoutForm = _ref => {
|
|
|
20818
20823
|
}
|
|
20819
20824
|
if (cardProcessor === "stripe") {
|
|
20820
20825
|
if (type === "updatePaymentSource") {
|
|
20821
|
-
|
|
20826
|
+
var _paymentMethodToEdit$;
|
|
20827
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, paymentMethodToEdit ? /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(Input, {
|
|
20828
|
+
className: "plc-tracking-widest plc-flex-grow plc-text-center",
|
|
20829
|
+
value: `•••• •••• •••• ${paymentMethodToEdit === null || paymentMethodToEdit === void 0 ? void 0 : (_paymentMethodToEdit$ = paymentMethodToEdit.properties) === null || _paymentMethodToEdit$ === void 0 ? void 0 : _paymentMethodToEdit$.last4}`,
|
|
20830
|
+
disabled: true
|
|
20831
|
+
})) : /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(Input, {
|
|
20832
|
+
className: "plc-bg-gray-300 plc-animate-pulse"
|
|
20833
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20822
20834
|
className: "plc-flex plc-items-end plc-justify-between plc-my-2"
|
|
20823
20835
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20824
20836
|
className: "plc-w-6/12 plc-pr-4"
|
|
@@ -20830,7 +20842,7 @@ const CheckoutForm = _ref => {
|
|
|
20830
20842
|
}, /*#__PURE__*/React__default['default'].createElement(YearSelect, {
|
|
20831
20843
|
store: store$l,
|
|
20832
20844
|
placeholder: "Exp Year *"
|
|
20833
|
-
})));
|
|
20845
|
+
}))));
|
|
20834
20846
|
}
|
|
20835
20847
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(PelcroCardNumber, {
|
|
20836
20848
|
autoFocus: true
|
|
@@ -25592,7 +25604,11 @@ const AddressCreateModal = _ref => {
|
|
|
25592
25604
|
id: "pelcro-address-create-modal",
|
|
25593
25605
|
onDisplay: onDisplay,
|
|
25594
25606
|
onClose: onClose
|
|
25595
|
-
}, /*#__PURE__*/React__default['default'].createElement(ModalBody, null, addressView === "billing" ? /*#__PURE__*/React__default['default'].createElement(AddressCreateBillingView,
|
|
25607
|
+
}, /*#__PURE__*/React__default['default'].createElement(ModalBody, null, addressView === "billing" ? /*#__PURE__*/React__default['default'].createElement(AddressCreateBillingView, Object.assign({}, otherProps, {
|
|
25608
|
+
onSuccess: onSuccess,
|
|
25609
|
+
onGiftRedemptionSuccess: onGiftRedemptionSuccess,
|
|
25610
|
+
onMembershipAdressUpdateSuccess: onMembershipAdressUpdateSuccess
|
|
25611
|
+
})) : /*#__PURE__*/React__default['default'].createElement(AddressCreateView, Object.assign({}, otherProps, {
|
|
25596
25612
|
onSuccess: onSuccess,
|
|
25597
25613
|
onGiftRedemptionSuccess: onGiftRedemptionSuccess,
|
|
25598
25614
|
onMembershipAdressUpdateSuccess: onMembershipAdressUpdateSuccess
|
package/dist/index.esm.js
CHANGED
|
@@ -3836,6 +3836,7 @@ var messages$$ = {
|
|
|
3836
3836
|
cancel: "Cancel your subscription online at anytime.",
|
|
3837
3837
|
giftSent: "Subscription gift has been sent to",
|
|
3838
3838
|
successfully: "successfully",
|
|
3839
|
+
sourceCreated: "Payment information has been added",
|
|
3839
3840
|
sourceUpdated: "Your payment information has been updated",
|
|
3840
3841
|
cardAuthFailed: "We are unable to authenticate your payment method. Please choose a different payment method and try again.",
|
|
3841
3842
|
cardAuthNotSupported: "Updating your payment method to one that requires authentication is currently not possible. Please use a different payment method or contact customer service.",
|
|
@@ -4789,6 +4790,7 @@ var messages$I = {
|
|
|
4789
4790
|
cancel: "Annuler votre abonnement en ligne à tout moment.",
|
|
4790
4791
|
giftSent: "Le cadeau d’abonnement a été envoyé à",
|
|
4791
4792
|
successfully: "avec succès.",
|
|
4793
|
+
sourceCreated: "Les informations de paiement ont été ajoutées",
|
|
4792
4794
|
sourceUpdated: "Vos informations de paiement ont été mises à jour",
|
|
4793
4795
|
cardAuthFailed: "Nous ne parvenons pas à authentifier votre mode de paiement. Veuillez choisir un autre mode de paiement et essayer à nouveau.",
|
|
4794
4796
|
cardAuthNotSupported: "Votre carte ne peut être mise à jour puisqu'elle nécessite une authentification. Veuillez utiliser un autre mode de paiement ou contacter le service client.",
|
|
@@ -5730,6 +5732,7 @@ var messages$p = {
|
|
|
5730
5732
|
cancel: "유료 멤버십은 언제든 온라인으로 취소가 가능합니다.",
|
|
5731
5733
|
giftSent: "유료 멤버십 선물이 ",
|
|
5732
5734
|
successfully: "님께 성공적으로 전송되었습니다.",
|
|
5735
|
+
sourceCreated: "결제 정보가 추가되었습니다.",
|
|
5733
5736
|
sourceUpdated: "귀하의 결제 정보가 업데이트되었습니다.",
|
|
5734
5737
|
cardAuthFailed: "해당 결제 수단은 인증할 수 없습니다. 다른 결제 수단을 선택하여 다시 시도해보시기 바랍니다.",
|
|
5735
5738
|
cardAuthNotSupported: "인증이 요구되는 결제 수단으로의 업데이트는 현재 지원되지 않습니다. 다른 결제 수단을 이용하거나 고객센터로 문의하시기 바랍니다.",
|
|
@@ -6774,6 +6777,7 @@ var messages$6 = {
|
|
|
6774
6777
|
cancel: "Cancela tu suscripción en línea en cualquier momento.",
|
|
6775
6778
|
giftSent: "La suscripción de regalo se ha enviado a",
|
|
6776
6779
|
successfully: "exitosamente",
|
|
6780
|
+
sourceCreated: "Se ha añadido la información de pago",
|
|
6777
6781
|
sourceUpdated: "Tu información de pago se ha actualizado",
|
|
6778
6782
|
cardAuthFailed: "No pudimos autenticar tu método de pago. Por favor, elige un método de pago diferente e intenta de nuevo.",
|
|
6779
6783
|
cardAuthNotSupported: "Actualmente no es posible actualizar tu método de pago a uno que requiere autenticación. Por favor, utiliza un método de pago diferente o contacta a atención al cliente.",
|
|
@@ -19883,7 +19887,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19883
19887
|
type: SHOW_ALERT,
|
|
19884
19888
|
payload: {
|
|
19885
19889
|
type: "success",
|
|
19886
|
-
content: t("messages.
|
|
19890
|
+
content: t("messages.sourceCreated")
|
|
19887
19891
|
}
|
|
19888
19892
|
});
|
|
19889
19893
|
onSuccess(res);
|
|
@@ -20752,7 +20756,8 @@ const CheckoutForm = _ref => {
|
|
|
20752
20756
|
type
|
|
20753
20757
|
} = _ref;
|
|
20754
20758
|
const {
|
|
20755
|
-
selectedPaymentMethodId
|
|
20759
|
+
selectedPaymentMethodId,
|
|
20760
|
+
paymentMethodToEdit
|
|
20756
20761
|
} = usePelcro();
|
|
20757
20762
|
const cardProcessor = getSiteCardProcessor();
|
|
20758
20763
|
if (selectedPaymentMethodId) {
|
|
@@ -20788,7 +20793,14 @@ const CheckoutForm = _ref => {
|
|
|
20788
20793
|
}
|
|
20789
20794
|
if (cardProcessor === "stripe") {
|
|
20790
20795
|
if (type === "updatePaymentSource") {
|
|
20791
|
-
|
|
20796
|
+
var _paymentMethodToEdit$;
|
|
20797
|
+
return /*#__PURE__*/React__default.createElement("div", null, paymentMethodToEdit ? /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Input, {
|
|
20798
|
+
className: "plc-tracking-widest plc-flex-grow plc-text-center",
|
|
20799
|
+
value: `•••• •••• •••• ${paymentMethodToEdit === null || paymentMethodToEdit === void 0 ? void 0 : (_paymentMethodToEdit$ = paymentMethodToEdit.properties) === null || _paymentMethodToEdit$ === void 0 ? void 0 : _paymentMethodToEdit$.last4}`,
|
|
20800
|
+
disabled: true
|
|
20801
|
+
})) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Input, {
|
|
20802
|
+
className: "plc-bg-gray-300 plc-animate-pulse"
|
|
20803
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
20792
20804
|
className: "plc-flex plc-items-end plc-justify-between plc-my-2"
|
|
20793
20805
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20794
20806
|
className: "plc-w-6/12 plc-pr-4"
|
|
@@ -20800,7 +20812,7 @@ const CheckoutForm = _ref => {
|
|
|
20800
20812
|
}, /*#__PURE__*/React__default.createElement(YearSelect, {
|
|
20801
20813
|
store: store$l,
|
|
20802
20814
|
placeholder: "Exp Year *"
|
|
20803
|
-
})));
|
|
20815
|
+
}))));
|
|
20804
20816
|
}
|
|
20805
20817
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(PelcroCardNumber, {
|
|
20806
20818
|
autoFocus: true
|
|
@@ -25562,7 +25574,11 @@ const AddressCreateModal = _ref => {
|
|
|
25562
25574
|
id: "pelcro-address-create-modal",
|
|
25563
25575
|
onDisplay: onDisplay,
|
|
25564
25576
|
onClose: onClose
|
|
25565
|
-
}, /*#__PURE__*/React__default.createElement(ModalBody, null, addressView === "billing" ? /*#__PURE__*/React__default.createElement(AddressCreateBillingView,
|
|
25577
|
+
}, /*#__PURE__*/React__default.createElement(ModalBody, null, addressView === "billing" ? /*#__PURE__*/React__default.createElement(AddressCreateBillingView, Object.assign({}, otherProps, {
|
|
25578
|
+
onSuccess: onSuccess,
|
|
25579
|
+
onGiftRedemptionSuccess: onGiftRedemptionSuccess,
|
|
25580
|
+
onMembershipAdressUpdateSuccess: onMembershipAdressUpdateSuccess
|
|
25581
|
+
})) : /*#__PURE__*/React__default.createElement(AddressCreateView, Object.assign({}, otherProps, {
|
|
25566
25582
|
onSuccess: onSuccess,
|
|
25567
25583
|
onGiftRedemptionSuccess: onGiftRedemptionSuccess,
|
|
25568
25584
|
onMembershipAdressUpdateSuccess: onMembershipAdressUpdateSuccess
|