@pelcro/react-pelcro-js 3.26.0-beta.50 → 3.26.0-beta.52
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 +18 -12
- package/dist/index.esm.js +17 -13
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -19720,6 +19720,10 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19720
19720
|
}).then(res => {
|
|
19721
19721
|
var _response$data4;
|
|
19722
19722
|
if (res.error) {
|
|
19723
|
+
dispatch({
|
|
19724
|
+
type: DISABLE_SUBMIT,
|
|
19725
|
+
payload: false
|
|
19726
|
+
});
|
|
19723
19727
|
dispatch({
|
|
19724
19728
|
type: LOADING,
|
|
19725
19729
|
payload: false
|
|
@@ -19746,10 +19750,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19746
19750
|
return;
|
|
19747
19751
|
}
|
|
19748
19752
|
if (flow === "create") {
|
|
19749
|
-
dispatch({
|
|
19750
|
-
type: DISABLE_SUBMIT,
|
|
19751
|
-
payload: false
|
|
19752
|
-
});
|
|
19753
19753
|
dispatch({
|
|
19754
19754
|
type: LOADING,
|
|
19755
19755
|
payload: false
|
|
@@ -20128,15 +20128,15 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20128
20128
|
token: source.id
|
|
20129
20129
|
}, (err, res) => {
|
|
20130
20130
|
var _res$data, _res$data$setup_inten, _res$data2, _res$data2$setup_inte;
|
|
20131
|
-
dispatch({
|
|
20132
|
-
type: DISABLE_SUBMIT,
|
|
20133
|
-
payload: false
|
|
20134
|
-
});
|
|
20135
|
-
dispatch({
|
|
20136
|
-
type: LOADING,
|
|
20137
|
-
payload: false
|
|
20138
|
-
});
|
|
20139
20131
|
if (err) {
|
|
20132
|
+
dispatch({
|
|
20133
|
+
type: DISABLE_SUBMIT,
|
|
20134
|
+
payload: false
|
|
20135
|
+
});
|
|
20136
|
+
dispatch({
|
|
20137
|
+
type: LOADING,
|
|
20138
|
+
payload: false
|
|
20139
|
+
});
|
|
20140
20140
|
onFailure(err);
|
|
20141
20141
|
return dispatch({
|
|
20142
20142
|
type: SHOW_ALERT,
|
|
@@ -20149,6 +20149,10 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20149
20149
|
if (((_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$setup_inten = _res$data.setup_intent) === null || _res$data$setup_inten === void 0 ? void 0 : _res$data$setup_inten.status) === "requires_action" || ((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : (_res$data2$setup_inte = _res$data2.setup_intent) === null || _res$data2$setup_inte === void 0 ? void 0 : _res$data2$setup_inte.status) === "requires_confirmation") {
|
|
20150
20150
|
confirmStripeIntentSetup(res, "create");
|
|
20151
20151
|
} else {
|
|
20152
|
+
dispatch({
|
|
20153
|
+
type: LOADING,
|
|
20154
|
+
payload: false
|
|
20155
|
+
});
|
|
20152
20156
|
dispatch({
|
|
20153
20157
|
type: SHOW_ALERT,
|
|
20154
20158
|
payload: {
|
|
@@ -36723,6 +36727,8 @@ exports.authenticatedButtons = authenticatedButtons;
|
|
|
36723
36727
|
exports.i18n = i18next;
|
|
36724
36728
|
exports.initButtons = init$1;
|
|
36725
36729
|
exports.initContentEntitlement = init;
|
|
36730
|
+
exports.initPaywalls = initPaywalls;
|
|
36731
|
+
exports.initViewFromURL = initViewFromURL;
|
|
36726
36732
|
exports.invoicePaymentSubmitButton = invoicePaymentSubmitButton;
|
|
36727
36733
|
exports.notify = notify;
|
|
36728
36734
|
exports.unauthenticatedButtons = unauthenticatedButtons;
|
package/dist/index.esm.js
CHANGED
|
@@ -19690,6 +19690,10 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19690
19690
|
}).then(res => {
|
|
19691
19691
|
var _response$data4;
|
|
19692
19692
|
if (res.error) {
|
|
19693
|
+
dispatch({
|
|
19694
|
+
type: DISABLE_SUBMIT,
|
|
19695
|
+
payload: false
|
|
19696
|
+
});
|
|
19693
19697
|
dispatch({
|
|
19694
19698
|
type: LOADING,
|
|
19695
19699
|
payload: false
|
|
@@ -19716,10 +19720,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19716
19720
|
return;
|
|
19717
19721
|
}
|
|
19718
19722
|
if (flow === "create") {
|
|
19719
|
-
dispatch({
|
|
19720
|
-
type: DISABLE_SUBMIT,
|
|
19721
|
-
payload: false
|
|
19722
|
-
});
|
|
19723
19723
|
dispatch({
|
|
19724
19724
|
type: LOADING,
|
|
19725
19725
|
payload: false
|
|
@@ -20098,15 +20098,15 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20098
20098
|
token: source.id
|
|
20099
20099
|
}, (err, res) => {
|
|
20100
20100
|
var _res$data, _res$data$setup_inten, _res$data2, _res$data2$setup_inte;
|
|
20101
|
-
dispatch({
|
|
20102
|
-
type: DISABLE_SUBMIT,
|
|
20103
|
-
payload: false
|
|
20104
|
-
});
|
|
20105
|
-
dispatch({
|
|
20106
|
-
type: LOADING,
|
|
20107
|
-
payload: false
|
|
20108
|
-
});
|
|
20109
20101
|
if (err) {
|
|
20102
|
+
dispatch({
|
|
20103
|
+
type: DISABLE_SUBMIT,
|
|
20104
|
+
payload: false
|
|
20105
|
+
});
|
|
20106
|
+
dispatch({
|
|
20107
|
+
type: LOADING,
|
|
20108
|
+
payload: false
|
|
20109
|
+
});
|
|
20110
20110
|
onFailure(err);
|
|
20111
20111
|
return dispatch({
|
|
20112
20112
|
type: SHOW_ALERT,
|
|
@@ -20119,6 +20119,10 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20119
20119
|
if (((_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$setup_inten = _res$data.setup_intent) === null || _res$data$setup_inten === void 0 ? void 0 : _res$data$setup_inten.status) === "requires_action" || ((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : (_res$data2$setup_inte = _res$data2.setup_intent) === null || _res$data2$setup_inte === void 0 ? void 0 : _res$data2$setup_inte.status) === "requires_confirmation") {
|
|
20120
20120
|
confirmStripeIntentSetup(res, "create");
|
|
20121
20121
|
} else {
|
|
20122
|
+
dispatch({
|
|
20123
|
+
type: LOADING,
|
|
20124
|
+
payload: false
|
|
20125
|
+
});
|
|
20122
20126
|
dispatch({
|
|
20123
20127
|
type: SHOW_ALERT,
|
|
20124
20128
|
payload: {
|
|
@@ -36446,4 +36450,4 @@ const QrCodeModal = _ref => {
|
|
|
36446
36450
|
};
|
|
36447
36451
|
QrCodeModal.viewId = "qrcode";
|
|
36448
36452
|
|
|
36449
|
-
export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateSetDefault, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateSetDefault, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplePayButton, ApplyCouponButton, Auth0LoginButton, Badge, BankAuthenticationSuccess, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, DonationModalWithHook as DonationModal, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, IncludeFirstName, IncludeLastName, IncludePhone, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginUsername, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateFreeButton, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PasswordlessRequestContainer, PasswordlessRequestEmail, PasswordlessRequestModal, PasswordlessRequestView, PasswordlessRequestViewButton, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodCreateContainer, PaymentMethodCreateModal, PaymentMethodCreateView, PaymentMethodDeleteContainer, PaymentMethodDeleteList, PaymentMethodDeleteModal, PaymentMethodDeleteOptions, PaymentMethodDeleteSubmit, PaymentMethodDeleteView, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateSetDefault, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, QrCodeModal, QrCodeView, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCancelModal, SubscriptionCreateContainer, SubscriptionCreateFreePlanButton, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionManageMembersButton, SubscriptionManageMembersContainer, SubscriptionManageMembersEmails, SubscriptionManageMembersList, SubscriptionManageMembersModal, SubscriptionManageMembersView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, SubscriptionSuspendContainer, SubscriptionSuspendModal, SubscriptionSuspendView, TaxAmount, TextArea, TextInput, Tooltip, UserNameInput, UserUpdateButton, UserUpdateCompany, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateJobTitle, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateTin, UserUpdateUsername, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
|
|
36453
|
+
export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateSetDefault, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateSetDefault, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplePayButton, ApplyCouponButton, Auth0LoginButton, Badge, BankAuthenticationSuccess, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, DonationModalWithHook as DonationModal, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, IncludeFirstName, IncludeLastName, IncludePhone, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginUsername, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateFreeButton, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PasswordlessRequestContainer, PasswordlessRequestEmail, PasswordlessRequestModal, PasswordlessRequestView, PasswordlessRequestViewButton, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodCreateContainer, PaymentMethodCreateModal, PaymentMethodCreateView, PaymentMethodDeleteContainer, PaymentMethodDeleteList, PaymentMethodDeleteModal, PaymentMethodDeleteOptions, PaymentMethodDeleteSubmit, PaymentMethodDeleteView, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateSetDefault, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, QrCodeModal, QrCodeView, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCancelModal, SubscriptionCreateContainer, SubscriptionCreateFreePlanButton, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionManageMembersButton, SubscriptionManageMembersContainer, SubscriptionManageMembersEmails, SubscriptionManageMembersList, SubscriptionManageMembersModal, SubscriptionManageMembersView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, SubscriptionSuspendContainer, SubscriptionSuspendModal, SubscriptionSuspendView, TaxAmount, TextArea, TextInput, Tooltip, UserNameInput, UserUpdateButton, UserUpdateCompany, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateJobTitle, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateTin, UserUpdateUsername, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, initPaywalls, initViewFromURL, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
|