@pelcro/react-pelcro-js 4.0.0-alpha.90 → 4.0.0-alpha.91

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
@@ -28588,6 +28588,7 @@ function SubscriptionCreateModal({
28588
28588
 
28589
28589
  const isUserHasPaymentMethod = userHasPaymentMethod();
28590
28590
  const isUserHasAddress = userHasAddress();
28591
+ const view = window.Pelcro.helpers.getURLParameter("view");
28591
28592
 
28592
28593
  const goBack = () => {
28593
28594
  if (product && plan && isUserHasPaymentMethod) {
@@ -28598,6 +28599,10 @@ function SubscriptionCreateModal({
28598
28599
  return switchView("address-select");
28599
28600
  }
28600
28601
 
28602
+ if (product && plan && view == "offer") {
28603
+ return switchView("offer");
28604
+ }
28605
+
28601
28606
  if (product && plan) {
28602
28607
  return switchView("plan-select");
28603
28608
  }
package/dist/index.esm.js CHANGED
@@ -28558,6 +28558,7 @@ function SubscriptionCreateModal({
28558
28558
 
28559
28559
  const isUserHasPaymentMethod = userHasPaymentMethod();
28560
28560
  const isUserHasAddress = userHasAddress();
28561
+ const view = window.Pelcro.helpers.getURLParameter("view");
28561
28562
 
28562
28563
  const goBack = () => {
28563
28564
  if (product && plan && isUserHasPaymentMethod) {
@@ -28568,6 +28569,10 @@ function SubscriptionCreateModal({
28568
28569
  return switchView("address-select");
28569
28570
  }
28570
28571
 
28572
+ if (product && plan && view == "offer") {
28573
+ return switchView("offer");
28574
+ }
28575
+
28571
28576
  if (product && plan) {
28572
28577
  return switchView("plan-select");
28573
28578
  }
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.90",
4
+ "version": "4.0.0-alpha.91",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",