@pelcro/react-pelcro-js 3.9.0-beta.7 → 3.9.0-beta.9

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
@@ -12381,10 +12381,6 @@ function FirstName({
12381
12381
  loadFirstNameIntoField();
12382
12382
  return () => {
12383
12383
  document.removeEventListener("PelcroUserLoaded", handleInputChange);
12384
- dispatch({
12385
- type: SET_FIRST_NAME,
12386
- payload: ""
12387
- });
12388
12384
  };
12389
12385
  }
12390
12386
  }, []);
@@ -12463,10 +12459,6 @@ function LastName({
12463
12459
  loadLastNameIntoField();
12464
12460
  return () => {
12465
12461
  document.removeEventListener("PelcroUserLoaded", handleInputChange);
12466
- dispatch({
12467
- type: SET_LAST_NAME,
12468
- payload: ""
12469
- });
12470
12462
  };
12471
12463
  }
12472
12464
  }, []);
@@ -12545,10 +12537,6 @@ function Phone({
12545
12537
  loadPhoneIntoField();
12546
12538
  return () => {
12547
12539
  document.removeEventListener("PelcroUserLoaded", handleInputChange);
12548
- dispatch({
12549
- type: SET_PHONE,
12550
- payload: ""
12551
- });
12552
12540
  };
12553
12541
  }
12554
12542
  }, []);
@@ -17299,14 +17287,6 @@ const SubmitPaymentMethod = ({
17299
17287
  const isUserPhone = Boolean(window.Pelcro.user.read().phone);
17300
17288
  const [isDisabled, setDisabled] = React.useState(true);
17301
17289
  React.useEffect(() => {
17302
- console.log("Support Tap", supportsTap);
17303
- console.log("firstNameError", firstNameError);
17304
- console.log("lastNameError", lastNameError);
17305
- console.log("phoneError", phoneError);
17306
- console.log("firstName", firstName);
17307
- console.log("lastName", lastName);
17308
- console.log("phone", phone);
17309
-
17310
17290
  if (supportsTap && isUserFirstName && isUserLastName && isUserPhone) {
17311
17291
  setDisabled(disableSubmit);
17312
17292
  } else {
@@ -30919,6 +30899,9 @@ exports.GiftRedeemModal = GiftRedeemModal;
30919
30899
  exports.GiftRedeemSubmitButton = GiftRedeemSubmitButton;
30920
30900
  exports.GiftRedeemView = GiftRedeemView;
30921
30901
  exports.GoogleLoginButton = GoogleLoginButton;
30902
+ exports.IncludeFirstName = IncludeFirstName;
30903
+ exports.IncludeLastName = IncludeLastName;
30904
+ exports.IncludePhone = IncludePhone;
30922
30905
  exports.Input = Input;
30923
30906
  exports.InvoiceDetailsContainer = InvoiceDetailsContainer;
30924
30907
  exports.InvoiceDetailsDownloadButton = InvoiceDetailsDownloadButton;
package/dist/index.esm.js CHANGED
@@ -12351,10 +12351,6 @@ function FirstName({
12351
12351
  loadFirstNameIntoField();
12352
12352
  return () => {
12353
12353
  document.removeEventListener("PelcroUserLoaded", handleInputChange);
12354
- dispatch({
12355
- type: SET_FIRST_NAME,
12356
- payload: ""
12357
- });
12358
12354
  };
12359
12355
  }
12360
12356
  }, []);
@@ -12433,10 +12429,6 @@ function LastName({
12433
12429
  loadLastNameIntoField();
12434
12430
  return () => {
12435
12431
  document.removeEventListener("PelcroUserLoaded", handleInputChange);
12436
- dispatch({
12437
- type: SET_LAST_NAME,
12438
- payload: ""
12439
- });
12440
12432
  };
12441
12433
  }
12442
12434
  }, []);
@@ -12515,10 +12507,6 @@ function Phone({
12515
12507
  loadPhoneIntoField();
12516
12508
  return () => {
12517
12509
  document.removeEventListener("PelcroUserLoaded", handleInputChange);
12518
- dispatch({
12519
- type: SET_PHONE,
12520
- payload: ""
12521
- });
12522
12510
  };
12523
12511
  }
12524
12512
  }, []);
@@ -17269,14 +17257,6 @@ const SubmitPaymentMethod = ({
17269
17257
  const isUserPhone = Boolean(window.Pelcro.user.read().phone);
17270
17258
  const [isDisabled, setDisabled] = useState(true);
17271
17259
  useEffect(() => {
17272
- console.log("Support Tap", supportsTap);
17273
- console.log("firstNameError", firstNameError);
17274
- console.log("lastNameError", lastNameError);
17275
- console.log("phoneError", phoneError);
17276
- console.log("firstName", firstName);
17277
- console.log("lastName", lastName);
17278
- console.log("phone", phone);
17279
-
17280
17260
  if (supportsTap && isUserFirstName && isUserLastName && isUserPhone) {
17281
17261
  setDisabled(disableSubmit);
17282
17262
  } else {
@@ -30813,4 +30793,4 @@ const QrCodeModal = ({
30813
30793
  };
30814
30794
  QrCodeModal.viewId = "qrcode";
30815
30795
 
30816
- 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, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, 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, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, 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, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, SubscriptionSuspendContainer, SubscriptionSuspendModal, SubscriptionSuspendView, TaxAmount, TextArea, Tooltip, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
30796
+ 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, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, 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, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, 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, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, 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, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, SubscriptionSuspendContainer, SubscriptionSuspendModal, SubscriptionSuspendView, TaxAmount, TextArea, Tooltip, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
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.9.0-beta.7",
4
+ "version": "3.9.0-beta.9",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",