@pelcro/react-pelcro-js 3.21.1 → 3.22.0-beta.1

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
@@ -11141,6 +11141,9 @@ const initViewFromURL = () => {
11141
11141
  if (view === "manage-members") {
11142
11142
  return showSubscriptionManageMembersFromUrl();
11143
11143
  }
11144
+ if (view === "payment-method-update") {
11145
+ return showPaymentMethodUpdateFromUrl();
11146
+ }
11144
11147
  switchView(view);
11145
11148
  });
11146
11149
  }
@@ -11349,6 +11352,43 @@ const showPasswordlessRequestFromUrl = () => {
11349
11352
  } = usePelcro.getStore();
11350
11353
  return switchView("passwordless-request");
11351
11354
  };
11355
+ const showPaymentMethodUpdateFromUrl = () => {
11356
+ const {
11357
+ isAuthenticated,
11358
+ whenSiteReady,
11359
+ whenUserReady,
11360
+ switchView
11361
+ } = usePelcro.getStore();
11362
+ whenSiteReady(() => {
11363
+ if (!isAuthenticated()) {
11364
+ return switchView("login");
11365
+ }
11366
+ whenUserReady(() => {
11367
+ const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
11368
+ const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
11369
+ if (!window.Stripe && !supportsVantiv && !supportsTap) {
11370
+ document.querySelector('script[src="https://js.stripe.com/v3"]').addEventListener("load", () => {
11371
+ return switchView("payment-method-update");
11372
+ });
11373
+ return;
11374
+ }
11375
+
11376
+ //vantiv
11377
+ if (supportsVantiv) {
11378
+ document.querySelector("#vantiv-eprotect-sdk").addEventListener("load", () => {
11379
+ return switchView("payment-method-update");
11380
+ });
11381
+ return;
11382
+ }
11383
+
11384
+ //Tap
11385
+ if (supportsTap && document.querySelector("#tap-sdk")) {
11386
+ return switchView("payment-method-update");
11387
+ }
11388
+ return switchView("payment-method-update");
11389
+ });
11390
+ });
11391
+ };
11352
11392
  const showInvoiceDetailsFromUrl = () => {
11353
11393
  const {
11354
11394
  isAuthenticated,
@@ -13261,7 +13301,7 @@ function LoginModal(_ref) {
13261
13301
  }
13262
13302
  resetView();
13263
13303
  const viewFromURL = getStableViewID(window.Pelcro.helpers.getURLParameter("view"));
13264
- const viewsURLs = ["invoice-details", "gift-redeem", "plan-select"];
13304
+ const viewsURLs = ["invoice-details", "gift-redeem", "plan-select", "payment-method-update"];
13265
13305
  if (viewsURLs.includes(viewFromURL)) {
13266
13306
  initViewFromURL();
13267
13307
  }
@@ -16803,7 +16843,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16803
16843
  const tapInstanceRef = React__default['default'].useRef(null);
16804
16844
  const tapInstanceCard = React__default['default'].useRef(null);
16805
16845
  React.useEffect(() => {
16806
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16846
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) return;
16807
16847
  if (cardProcessor === "vantiv" && !selectedPaymentMethodId) {
16808
16848
  var _window$Pelcro$site$r2, _window$Pelcro$site$r3;
16809
16849
  const payPageId = (_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.vantiv_gateway_settings.pay_page_id;
@@ -16832,7 +16872,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16832
16872
  }, [selectedPaymentMethodId]);
16833
16873
  React.useEffect(() => {
16834
16874
  whenUserReady(() => {
16835
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16875
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) return;
16836
16876
  if (cardProcessor === "tap" && !window.Tapjsli) {
16837
16877
  window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
16838
16878
  window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
@@ -16846,7 +16886,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16846
16886
  });
16847
16887
  }, [selectedPaymentMethodId]);
16848
16888
  const initPaymentRequest = (state, dispatch) => {
16849
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16889
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) return;
16850
16890
  try {
16851
16891
  const paymentRequest = stripe.paymentRequest({
16852
16892
  country: window.Pelcro.user.location.countryCode || "US",
@@ -16915,7 +16955,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16915
16955
  */
16916
16956
  const updateTotalAmountWithTax = () => {
16917
16957
  var _window$Pelcro$site$r4;
16918
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16958
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) return;
16919
16959
  const taxesEnabled = (_window$Pelcro$site$r4 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r4 === void 0 ? void 0 : _window$Pelcro$site$r4.taxes_enabled;
16920
16960
  if (taxesEnabled && type === "createPayment") {
16921
16961
  dispatch({
@@ -17510,6 +17550,29 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17510
17550
  });
17511
17551
  };
17512
17552
  const submitPayment = (state, dispatch) => {
17553
+ if (skipPayment && (order === null || order === void 0 ? void 0 : order.price) === 0) {
17554
+ const isQuickPurchase = !Array.isArray(order);
17555
+ const mappedOrderItems = isQuickPurchase ? [{
17556
+ sku_id: order.id,
17557
+ quantity: order.quantity
17558
+ }] : order.map(item => ({
17559
+ sku_id: item.id,
17560
+ quantity: item.quantity
17561
+ }));
17562
+ window.Pelcro.ecommerce.order.create({
17563
+ items: mappedOrderItems,
17564
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
17565
+ ...(selectedAddressId && {
17566
+ address_id: selectedAddressId
17567
+ })
17568
+ }, (err, res) => {
17569
+ if (err) {
17570
+ return handlePaymentError(err);
17571
+ }
17572
+ return onSuccess(res);
17573
+ });
17574
+ return;
17575
+ }
17513
17576
  stripe.createSource({
17514
17577
  type: "card"
17515
17578
  }).then(_ref8 => {
@@ -17871,10 +17934,14 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17871
17934
  state,
17872
17935
  dispatch
17873
17936
  }
17874
- }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
17875
- store: store$k,
17876
- key: i
17877
- })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
17937
+ }, children.length ? children.map((child, i) => {
17938
+ if (child) {
17939
+ return /*#__PURE__*/React__default['default'].cloneElement(child, {
17940
+ store: store$k,
17941
+ key: i
17942
+ });
17943
+ }
17944
+ }) : /*#__PURE__*/React__default['default'].cloneElement(children, {
17878
17945
  store: store$k
17879
17946
  })));
17880
17947
  };
@@ -18696,6 +18763,42 @@ const SubscriptionCreateFreePlanButton = _ref => {
18696
18763
  }, otherProps), t("buttons.subscribe"));
18697
18764
  };
18698
18765
 
18766
+ const OrderCreateFreeButton = _ref => {
18767
+ let {
18768
+ name,
18769
+ onClick,
18770
+ ...otherProps
18771
+ } = _ref;
18772
+ const {
18773
+ state: {
18774
+ disableSubmit
18775
+ },
18776
+ dispatch
18777
+ } = React.useContext(store$k);
18778
+ const {
18779
+ t
18780
+ } = useTranslation("checkoutForm");
18781
+ const [isDisabled, setDisabled] = React.useState(true);
18782
+ React.useEffect(() => {
18783
+ setDisabled(disableSubmit);
18784
+ }, [disableSubmit]);
18785
+ return /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
18786
+ className: "plc-w-full",
18787
+ onClick: () => {
18788
+ dispatch({
18789
+ type: DISABLE_SUBMIT,
18790
+ payload: true
18791
+ });
18792
+ dispatch({
18793
+ type: SUBMIT_PAYMENT
18794
+ });
18795
+ onClick === null || onClick === void 0 ? void 0 : onClick();
18796
+ },
18797
+ disabled: isDisabled,
18798
+ isLoading: disableSubmit
18799
+ }, otherProps), t("labels.submit"));
18800
+ };
18801
+
18699
18802
  /**
18700
18803
  *
18701
18804
  */
@@ -18708,7 +18811,8 @@ function PaymentMethodView(_ref) {
18708
18811
  type,
18709
18812
  showCoupon,
18710
18813
  showExternalPaymentMethods,
18711
- showSubscriptionButton
18814
+ showSubscriptionButton,
18815
+ showOrderButton
18712
18816
  } = _ref;
18713
18817
  const {
18714
18818
  t
@@ -18721,7 +18825,7 @@ function PaymentMethodView(_ref) {
18721
18825
  const isUserPhone = Boolean(window.Pelcro.user.read().phone);
18722
18826
  return /*#__PURE__*/React__default['default'].createElement("div", {
18723
18827
  className: "plc-flex plc-flex-col plc-items-center plc-mt-4 sm:plc-px-8 pelcro-payment-block"
18724
- }, cardProcessor === "stripe" && !showSubscriptionButton && /*#__PURE__*/React__default['default'].createElement("div", {
18828
+ }, cardProcessor === "stripe" && !showSubscriptionButton && !showOrderButton && /*#__PURE__*/React__default['default'].createElement("div", {
18725
18829
  className: "plc-flex plc-items-center plc-w-full plc-px-4 plc-py-2 plc-text-center plc-text-green-600 plc-border plc-border-green-400 plc-rounded plc-bg-green-50"
18726
18830
  }, /*#__PURE__*/React__default['default'].createElement(SvgLock, {
18727
18831
  className: "plc-w-5 plc-h-5 plc-mr-1"
@@ -18740,7 +18844,7 @@ function PaymentMethodView(_ref) {
18740
18844
  onFailure: onFailure
18741
18845
  }, /*#__PURE__*/React__default['default'].createElement(AlertWithContext, {
18742
18846
  className: "plc-mb-2"
18743
- }), showSubscriptionButton ? /*#__PURE__*/React__default['default'].createElement(SubscriptionCreateFreePlanButton, null) : /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(BankRedirection, null), /*#__PURE__*/React__default['default'].createElement(BankAuthenticationSuccess, null), /*#__PURE__*/React__default['default'].createElement(SelectedPaymentMethod, null), supportsTap && (!isUserFirstName || !isUserLastName || !isUserPhone) && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
18847
+ }), showSubscriptionButton && /*#__PURE__*/React__default['default'].createElement(SubscriptionCreateFreePlanButton, null), showOrderButton && /*#__PURE__*/React__default['default'].createElement(OrderCreateFreeButton, null), !showSubscriptionButton && !showOrderButton && /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(BankRedirection, null), /*#__PURE__*/React__default['default'].createElement(BankAuthenticationSuccess, null), /*#__PURE__*/React__default['default'].createElement(SelectedPaymentMethod, null), supportsTap && (!isUserFirstName || !isUserLastName || !isUserPhone) && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
18744
18848
  className: "plc-flex plc-items-start"
18745
18849
  }, /*#__PURE__*/React__default['default'].createElement(IncludeFirstName, {
18746
18850
  id: "pelcro-input-first-name",
@@ -20531,27 +20635,32 @@ function SubscriptionManageMembersList(props) {
20531
20635
  type: HANDLE_REMOVE_MEMBER
20532
20636
  });
20533
20637
  };
20534
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, members === null || members === void 0 ? void 0 : members.map(member => /*#__PURE__*/React__default['default'].createElement("tr", {
20535
- key: member.id,
20536
- className: `plc-w-full plc-align-middle plc-cursor-pointer accordion-header hover:plc-bg-gray-50 plc-text-center`
20537
- }, /*#__PURE__*/React__default['default'].createElement("td", {
20538
- className: "plc-truncate plc-text-left",
20539
- title: member === null || member === void 0 ? void 0 : member.invitation_email
20540
- }, /*#__PURE__*/React__default['default'].createElement("span", {
20541
- className: "plc-font-semibold plc-text-gray-500"
20542
- }, member === null || member === void 0 ? void 0 : member.invitation_email)), /*#__PURE__*/React__default['default'].createElement("td", {
20543
- className: "plc-py-2"
20544
- }, /*#__PURE__*/React__default['default'].createElement("span", {
20545
- className: `plc-inline-flex plc-p-1 plc-text-xs plc-font-semibold ${getMemberStatus(member).bgColor} plc-uppercase ${getMemberStatus(member).textColor} plc-rounded-lg`
20546
- }, getMemberStatus(member).icon, getMemberStatus(member).title)), /*#__PURE__*/React__default['default'].createElement("td", null, /*#__PURE__*/React__default['default'].createElement(Button, {
20547
- variant: "ghost",
20548
- className: "plc-text-red-500 focus:plc-ring-red-500 pelcro-dashboard-sub-cancel-button",
20549
- icon: /*#__PURE__*/React__default['default'].createElement(SvgXIconSolid, null),
20550
- onClick: () => onRemoveClick(member.id),
20551
- disabled: member.id === removeMemberId,
20552
- isLoading: member.id === removeMemberId,
20553
- "data-key": member.id
20554
- }, t("labels.remove"))))));
20638
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, members === null || members === void 0 ? void 0 : members.map(member => {
20639
+ var _member$customer;
20640
+ return /*#__PURE__*/React__default['default'].createElement("tr", {
20641
+ key: member.id,
20642
+ className: `plc-w-full plc-align-middle plc-cursor-pointer accordion-header hover:plc-bg-gray-50 plc-text-center`
20643
+ }, /*#__PURE__*/React__default['default'].createElement("td", {
20644
+ className: "plc-truncate plc-text-left",
20645
+ title: member === null || member === void 0 ? void 0 : member.invitation_email
20646
+ }, member.status === "active" ? /*#__PURE__*/React__default['default'].createElement("span", {
20647
+ className: "plc-font-semibold plc-text-gray-500"
20648
+ }, member === null || member === void 0 ? void 0 : (_member$customer = member.customer) === null || _member$customer === void 0 ? void 0 : _member$customer.email) : /*#__PURE__*/React__default['default'].createElement("span", {
20649
+ className: "plc-font-semibold plc-text-gray-500"
20650
+ }, member === null || member === void 0 ? void 0 : member.invitation_email)), /*#__PURE__*/React__default['default'].createElement("td", {
20651
+ className: "plc-py-2"
20652
+ }, /*#__PURE__*/React__default['default'].createElement("span", {
20653
+ className: `plc-inline-flex plc-p-1 plc-text-xs plc-font-semibold ${getMemberStatus(member).bgColor} plc-uppercase ${getMemberStatus(member).textColor} plc-rounded-lg`
20654
+ }, getMemberStatus(member).icon, getMemberStatus(member).title)), /*#__PURE__*/React__default['default'].createElement("td", null, /*#__PURE__*/React__default['default'].createElement(Button, {
20655
+ variant: "ghost",
20656
+ className: "plc-text-red-500 focus:plc-ring-red-500 pelcro-dashboard-sub-cancel-button",
20657
+ icon: /*#__PURE__*/React__default['default'].createElement(SvgXIconSolid, null),
20658
+ onClick: () => onRemoveClick(member.id),
20659
+ disabled: member.id === removeMemberId,
20660
+ isLoading: member.id === removeMemberId,
20661
+ "data-key": member.id
20662
+ }, t("labels.remove"))));
20663
+ }));
20555
20664
  }
20556
20665
 
20557
20666
  /**
@@ -24145,9 +24254,15 @@ const OrderCreateContainer = props => /*#__PURE__*/React__default['default'].cre
24145
24254
  }, props));
24146
24255
 
24147
24256
  const OrderCreateView = props => {
24257
+ var _window$Pelcro, _window$Pelcro$uiSett;
24148
24258
  const {
24149
24259
  t
24150
24260
  } = useTranslation("payment");
24261
+ const {
24262
+ order
24263
+ } = usePelcro();
24264
+ const skipPayment = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.skipPaymentForFreePlans;
24265
+ const showOrderButton = skipPayment && (order === null || order === void 0 ? void 0 : order.price) === 0;
24151
24266
  return /*#__PURE__*/React__default['default'].createElement("div", {
24152
24267
  id: "pelcro-order-create-view"
24153
24268
  }, /*#__PURE__*/React__default['default'].createElement("div", {
@@ -24158,7 +24273,8 @@ const OrderCreateView = props => {
24158
24273
  }, /*#__PURE__*/React__default['default'].createElement(PaymentMethodView, Object.assign({
24159
24274
  type: "orderCreate",
24160
24275
  showCoupon: true,
24161
- showExternalPaymentMethods: false
24276
+ showExternalPaymentMethods: false,
24277
+ showOrderButton: showOrderButton
24162
24278
  }, props))));
24163
24279
  };
24164
24280
 
@@ -25366,11 +25482,12 @@ const PaymentMethodSelectModal = _ref => {
25366
25482
  const {
25367
25483
  switchToCheckoutForm,
25368
25484
  set,
25369
- plan
25485
+ plan,
25486
+ order
25370
25487
  } = usePelcro();
25371
25488
  const skipPayment = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.skipPaymentForFreePlans;
25372
25489
  React.useEffect(() => {
25373
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) {
25490
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) {
25374
25491
  switchToCheckoutForm();
25375
25492
  }
25376
25493
  }, []);
@@ -32188,6 +32305,7 @@ exports.NewsletterUpdateView = NewsletterUpdateView;
32188
32305
  exports.Notification = Notification;
32189
32306
  exports.OrderConfirmModal = OrderConfirmModal;
32190
32307
  exports.OrderCreateContainer = OrderCreateContainer;
32308
+ exports.OrderCreateFreeButton = OrderCreateFreeButton;
32191
32309
  exports.OrderCreateModal = OrderCreateModal;
32192
32310
  exports.OrderCreateSubmitButton = OrderCreateSubmitButton;
32193
32311
  exports.OrderCreateView = OrderCreateView;
package/dist/index.esm.js CHANGED
@@ -11111,6 +11111,9 @@ const initViewFromURL = () => {
11111
11111
  if (view === "manage-members") {
11112
11112
  return showSubscriptionManageMembersFromUrl();
11113
11113
  }
11114
+ if (view === "payment-method-update") {
11115
+ return showPaymentMethodUpdateFromUrl();
11116
+ }
11114
11117
  switchView(view);
11115
11118
  });
11116
11119
  }
@@ -11319,6 +11322,43 @@ const showPasswordlessRequestFromUrl = () => {
11319
11322
  } = usePelcro.getStore();
11320
11323
  return switchView("passwordless-request");
11321
11324
  };
11325
+ const showPaymentMethodUpdateFromUrl = () => {
11326
+ const {
11327
+ isAuthenticated,
11328
+ whenSiteReady,
11329
+ whenUserReady,
11330
+ switchView
11331
+ } = usePelcro.getStore();
11332
+ whenSiteReady(() => {
11333
+ if (!isAuthenticated()) {
11334
+ return switchView("login");
11335
+ }
11336
+ whenUserReady(() => {
11337
+ const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
11338
+ const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
11339
+ if (!window.Stripe && !supportsVantiv && !supportsTap) {
11340
+ document.querySelector('script[src="https://js.stripe.com/v3"]').addEventListener("load", () => {
11341
+ return switchView("payment-method-update");
11342
+ });
11343
+ return;
11344
+ }
11345
+
11346
+ //vantiv
11347
+ if (supportsVantiv) {
11348
+ document.querySelector("#vantiv-eprotect-sdk").addEventListener("load", () => {
11349
+ return switchView("payment-method-update");
11350
+ });
11351
+ return;
11352
+ }
11353
+
11354
+ //Tap
11355
+ if (supportsTap && document.querySelector("#tap-sdk")) {
11356
+ return switchView("payment-method-update");
11357
+ }
11358
+ return switchView("payment-method-update");
11359
+ });
11360
+ });
11361
+ };
11322
11362
  const showInvoiceDetailsFromUrl = () => {
11323
11363
  const {
11324
11364
  isAuthenticated,
@@ -13231,7 +13271,7 @@ function LoginModal(_ref) {
13231
13271
  }
13232
13272
  resetView();
13233
13273
  const viewFromURL = getStableViewID(window.Pelcro.helpers.getURLParameter("view"));
13234
- const viewsURLs = ["invoice-details", "gift-redeem", "plan-select"];
13274
+ const viewsURLs = ["invoice-details", "gift-redeem", "plan-select", "payment-method-update"];
13235
13275
  if (viewsURLs.includes(viewFromURL)) {
13236
13276
  initViewFromURL();
13237
13277
  }
@@ -16773,7 +16813,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16773
16813
  const tapInstanceRef = React__default.useRef(null);
16774
16814
  const tapInstanceCard = React__default.useRef(null);
16775
16815
  useEffect(() => {
16776
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16816
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) return;
16777
16817
  if (cardProcessor === "vantiv" && !selectedPaymentMethodId) {
16778
16818
  var _window$Pelcro$site$r2, _window$Pelcro$site$r3;
16779
16819
  const payPageId = (_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.vantiv_gateway_settings.pay_page_id;
@@ -16802,7 +16842,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16802
16842
  }, [selectedPaymentMethodId]);
16803
16843
  useEffect(() => {
16804
16844
  whenUserReady(() => {
16805
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16845
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) return;
16806
16846
  if (cardProcessor === "tap" && !window.Tapjsli) {
16807
16847
  window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
16808
16848
  window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
@@ -16816,7 +16856,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16816
16856
  });
16817
16857
  }, [selectedPaymentMethodId]);
16818
16858
  const initPaymentRequest = (state, dispatch) => {
16819
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16859
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) return;
16820
16860
  try {
16821
16861
  const paymentRequest = stripe.paymentRequest({
16822
16862
  country: window.Pelcro.user.location.countryCode || "US",
@@ -16885,7 +16925,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16885
16925
  */
16886
16926
  const updateTotalAmountWithTax = () => {
16887
16927
  var _window$Pelcro$site$r4;
16888
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16928
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) return;
16889
16929
  const taxesEnabled = (_window$Pelcro$site$r4 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r4 === void 0 ? void 0 : _window$Pelcro$site$r4.taxes_enabled;
16890
16930
  if (taxesEnabled && type === "createPayment") {
16891
16931
  dispatch({
@@ -17480,6 +17520,29 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17480
17520
  });
17481
17521
  };
17482
17522
  const submitPayment = (state, dispatch) => {
17523
+ if (skipPayment && (order === null || order === void 0 ? void 0 : order.price) === 0) {
17524
+ const isQuickPurchase = !Array.isArray(order);
17525
+ const mappedOrderItems = isQuickPurchase ? [{
17526
+ sku_id: order.id,
17527
+ quantity: order.quantity
17528
+ }] : order.map(item => ({
17529
+ sku_id: item.id,
17530
+ quantity: item.quantity
17531
+ }));
17532
+ window.Pelcro.ecommerce.order.create({
17533
+ items: mappedOrderItems,
17534
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
17535
+ ...(selectedAddressId && {
17536
+ address_id: selectedAddressId
17537
+ })
17538
+ }, (err, res) => {
17539
+ if (err) {
17540
+ return handlePaymentError(err);
17541
+ }
17542
+ return onSuccess(res);
17543
+ });
17544
+ return;
17545
+ }
17483
17546
  stripe.createSource({
17484
17547
  type: "card"
17485
17548
  }).then(_ref8 => {
@@ -17841,10 +17904,14 @@ const PaymentMethodContainerWithoutStripe = _ref => {
17841
17904
  state,
17842
17905
  dispatch
17843
17906
  }
17844
- }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
17845
- store: store$k,
17846
- key: i
17847
- })) : /*#__PURE__*/React__default.cloneElement(children, {
17907
+ }, children.length ? children.map((child, i) => {
17908
+ if (child) {
17909
+ return /*#__PURE__*/React__default.cloneElement(child, {
17910
+ store: store$k,
17911
+ key: i
17912
+ });
17913
+ }
17914
+ }) : /*#__PURE__*/React__default.cloneElement(children, {
17848
17915
  store: store$k
17849
17916
  })));
17850
17917
  };
@@ -18666,6 +18733,42 @@ const SubscriptionCreateFreePlanButton = _ref => {
18666
18733
  }, otherProps), t("buttons.subscribe"));
18667
18734
  };
18668
18735
 
18736
+ const OrderCreateFreeButton = _ref => {
18737
+ let {
18738
+ name,
18739
+ onClick,
18740
+ ...otherProps
18741
+ } = _ref;
18742
+ const {
18743
+ state: {
18744
+ disableSubmit
18745
+ },
18746
+ dispatch
18747
+ } = useContext(store$k);
18748
+ const {
18749
+ t
18750
+ } = useTranslation("checkoutForm");
18751
+ const [isDisabled, setDisabled] = useState(true);
18752
+ useEffect(() => {
18753
+ setDisabled(disableSubmit);
18754
+ }, [disableSubmit]);
18755
+ return /*#__PURE__*/React__default.createElement(Button, Object.assign({
18756
+ className: "plc-w-full",
18757
+ onClick: () => {
18758
+ dispatch({
18759
+ type: DISABLE_SUBMIT,
18760
+ payload: true
18761
+ });
18762
+ dispatch({
18763
+ type: SUBMIT_PAYMENT
18764
+ });
18765
+ onClick === null || onClick === void 0 ? void 0 : onClick();
18766
+ },
18767
+ disabled: isDisabled,
18768
+ isLoading: disableSubmit
18769
+ }, otherProps), t("labels.submit"));
18770
+ };
18771
+
18669
18772
  /**
18670
18773
  *
18671
18774
  */
@@ -18678,7 +18781,8 @@ function PaymentMethodView(_ref) {
18678
18781
  type,
18679
18782
  showCoupon,
18680
18783
  showExternalPaymentMethods,
18681
- showSubscriptionButton
18784
+ showSubscriptionButton,
18785
+ showOrderButton
18682
18786
  } = _ref;
18683
18787
  const {
18684
18788
  t
@@ -18691,7 +18795,7 @@ function PaymentMethodView(_ref) {
18691
18795
  const isUserPhone = Boolean(window.Pelcro.user.read().phone);
18692
18796
  return /*#__PURE__*/React__default.createElement("div", {
18693
18797
  className: "plc-flex plc-flex-col plc-items-center plc-mt-4 sm:plc-px-8 pelcro-payment-block"
18694
- }, cardProcessor === "stripe" && !showSubscriptionButton && /*#__PURE__*/React__default.createElement("div", {
18798
+ }, cardProcessor === "stripe" && !showSubscriptionButton && !showOrderButton && /*#__PURE__*/React__default.createElement("div", {
18695
18799
  className: "plc-flex plc-items-center plc-w-full plc-px-4 plc-py-2 plc-text-center plc-text-green-600 plc-border plc-border-green-400 plc-rounded plc-bg-green-50"
18696
18800
  }, /*#__PURE__*/React__default.createElement(SvgLock, {
18697
18801
  className: "plc-w-5 plc-h-5 plc-mr-1"
@@ -18710,7 +18814,7 @@ function PaymentMethodView(_ref) {
18710
18814
  onFailure: onFailure
18711
18815
  }, /*#__PURE__*/React__default.createElement(AlertWithContext, {
18712
18816
  className: "plc-mb-2"
18713
- }), showSubscriptionButton ? /*#__PURE__*/React__default.createElement(SubscriptionCreateFreePlanButton, null) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(BankRedirection, null), /*#__PURE__*/React__default.createElement(BankAuthenticationSuccess, null), /*#__PURE__*/React__default.createElement(SelectedPaymentMethod, null), supportsTap && (!isUserFirstName || !isUserLastName || !isUserPhone) && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
18817
+ }), showSubscriptionButton && /*#__PURE__*/React__default.createElement(SubscriptionCreateFreePlanButton, null), showOrderButton && /*#__PURE__*/React__default.createElement(OrderCreateFreeButton, null), !showSubscriptionButton && !showOrderButton && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(BankRedirection, null), /*#__PURE__*/React__default.createElement(BankAuthenticationSuccess, null), /*#__PURE__*/React__default.createElement(SelectedPaymentMethod, null), supportsTap && (!isUserFirstName || !isUserLastName || !isUserPhone) && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
18714
18818
  className: "plc-flex plc-items-start"
18715
18819
  }, /*#__PURE__*/React__default.createElement(IncludeFirstName, {
18716
18820
  id: "pelcro-input-first-name",
@@ -20501,27 +20605,32 @@ function SubscriptionManageMembersList(props) {
20501
20605
  type: HANDLE_REMOVE_MEMBER
20502
20606
  });
20503
20607
  };
20504
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, members === null || members === void 0 ? void 0 : members.map(member => /*#__PURE__*/React__default.createElement("tr", {
20505
- key: member.id,
20506
- className: `plc-w-full plc-align-middle plc-cursor-pointer accordion-header hover:plc-bg-gray-50 plc-text-center`
20507
- }, /*#__PURE__*/React__default.createElement("td", {
20508
- className: "plc-truncate plc-text-left",
20509
- title: member === null || member === void 0 ? void 0 : member.invitation_email
20510
- }, /*#__PURE__*/React__default.createElement("span", {
20511
- className: "plc-font-semibold plc-text-gray-500"
20512
- }, member === null || member === void 0 ? void 0 : member.invitation_email)), /*#__PURE__*/React__default.createElement("td", {
20513
- className: "plc-py-2"
20514
- }, /*#__PURE__*/React__default.createElement("span", {
20515
- className: `plc-inline-flex plc-p-1 plc-text-xs plc-font-semibold ${getMemberStatus(member).bgColor} plc-uppercase ${getMemberStatus(member).textColor} plc-rounded-lg`
20516
- }, getMemberStatus(member).icon, getMemberStatus(member).title)), /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement(Button, {
20517
- variant: "ghost",
20518
- className: "plc-text-red-500 focus:plc-ring-red-500 pelcro-dashboard-sub-cancel-button",
20519
- icon: /*#__PURE__*/React__default.createElement(SvgXIconSolid, null),
20520
- onClick: () => onRemoveClick(member.id),
20521
- disabled: member.id === removeMemberId,
20522
- isLoading: member.id === removeMemberId,
20523
- "data-key": member.id
20524
- }, t("labels.remove"))))));
20608
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, members === null || members === void 0 ? void 0 : members.map(member => {
20609
+ var _member$customer;
20610
+ return /*#__PURE__*/React__default.createElement("tr", {
20611
+ key: member.id,
20612
+ className: `plc-w-full plc-align-middle plc-cursor-pointer accordion-header hover:plc-bg-gray-50 plc-text-center`
20613
+ }, /*#__PURE__*/React__default.createElement("td", {
20614
+ className: "plc-truncate plc-text-left",
20615
+ title: member === null || member === void 0 ? void 0 : member.invitation_email
20616
+ }, member.status === "active" ? /*#__PURE__*/React__default.createElement("span", {
20617
+ className: "plc-font-semibold plc-text-gray-500"
20618
+ }, member === null || member === void 0 ? void 0 : (_member$customer = member.customer) === null || _member$customer === void 0 ? void 0 : _member$customer.email) : /*#__PURE__*/React__default.createElement("span", {
20619
+ className: "plc-font-semibold plc-text-gray-500"
20620
+ }, member === null || member === void 0 ? void 0 : member.invitation_email)), /*#__PURE__*/React__default.createElement("td", {
20621
+ className: "plc-py-2"
20622
+ }, /*#__PURE__*/React__default.createElement("span", {
20623
+ className: `plc-inline-flex plc-p-1 plc-text-xs plc-font-semibold ${getMemberStatus(member).bgColor} plc-uppercase ${getMemberStatus(member).textColor} plc-rounded-lg`
20624
+ }, getMemberStatus(member).icon, getMemberStatus(member).title)), /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement(Button, {
20625
+ variant: "ghost",
20626
+ className: "plc-text-red-500 focus:plc-ring-red-500 pelcro-dashboard-sub-cancel-button",
20627
+ icon: /*#__PURE__*/React__default.createElement(SvgXIconSolid, null),
20628
+ onClick: () => onRemoveClick(member.id),
20629
+ disabled: member.id === removeMemberId,
20630
+ isLoading: member.id === removeMemberId,
20631
+ "data-key": member.id
20632
+ }, t("labels.remove"))));
20633
+ }));
20525
20634
  }
20526
20635
 
20527
20636
  /**
@@ -24115,9 +24224,15 @@ const OrderCreateContainer = props => /*#__PURE__*/React__default.createElement(
24115
24224
  }, props));
24116
24225
 
24117
24226
  const OrderCreateView = props => {
24227
+ var _window$Pelcro, _window$Pelcro$uiSett;
24118
24228
  const {
24119
24229
  t
24120
24230
  } = useTranslation("payment");
24231
+ const {
24232
+ order
24233
+ } = usePelcro();
24234
+ const skipPayment = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.skipPaymentForFreePlans;
24235
+ const showOrderButton = skipPayment && (order === null || order === void 0 ? void 0 : order.price) === 0;
24121
24236
  return /*#__PURE__*/React__default.createElement("div", {
24122
24237
  id: "pelcro-order-create-view"
24123
24238
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -24128,7 +24243,8 @@ const OrderCreateView = props => {
24128
24243
  }, /*#__PURE__*/React__default.createElement(PaymentMethodView, Object.assign({
24129
24244
  type: "orderCreate",
24130
24245
  showCoupon: true,
24131
- showExternalPaymentMethods: false
24246
+ showExternalPaymentMethods: false,
24247
+ showOrderButton: showOrderButton
24132
24248
  }, props))));
24133
24249
  };
24134
24250
 
@@ -25336,11 +25452,12 @@ const PaymentMethodSelectModal = _ref => {
25336
25452
  const {
25337
25453
  switchToCheckoutForm,
25338
25454
  set,
25339
- plan
25455
+ plan,
25456
+ order
25340
25457
  } = usePelcro();
25341
25458
  const skipPayment = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.skipPaymentForFreePlans;
25342
25459
  useEffect(() => {
25343
- if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) {
25460
+ if (skipPayment && ((plan === null || plan === void 0 ? void 0 : plan.amount) === 0 || (order === null || order === void 0 ? void 0 : order.price) === 0)) {
25344
25461
  switchToCheckoutForm();
25345
25462
  }
25346
25463
  }, []);
@@ -32045,4 +32162,4 @@ const QrCodeModal = _ref => {
32045
32162
  };
32046
32163
  QrCodeModal.viewId = "qrcode";
32047
32164
 
32048
- 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, BankAuthenticationSuccess, 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, LoginUsername, 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, SubscriptionCreateFreePlanButton, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionManageMembersButton, SubscriptionManageMembersContainer, SubscriptionManageMembersEmails, SubscriptionManageMembersList, SubscriptionManageMembersModal, SubscriptionManageMembersView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, SubscriptionSuspendContainer, SubscriptionSuspendModal, SubscriptionSuspendView, TaxAmount, TextArea, Tooltip, UserNameInput, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, 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$1 as notify, unauthenticatedButtons, usePelcro };
32165
+ 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, BankAuthenticationSuccess, 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, 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, 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, SubscriptionCreateFreePlanButton, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionManageMembersButton, SubscriptionManageMembersContainer, SubscriptionManageMembersEmails, SubscriptionManageMembersList, SubscriptionManageMembersModal, SubscriptionManageMembersView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, SubscriptionSuspendContainer, SubscriptionSuspendModal, SubscriptionSuspendView, TaxAmount, TextArea, Tooltip, UserNameInput, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, 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$1 as 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.21.1",
4
+ "version": "3.22.0-beta.1",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",