@pelcro/react-pelcro-js 4.0.0-alpha.90 → 4.0.0-alpha.92
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 +17 -9
- package/dist/index.esm.js +17 -9
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -20480,10 +20480,10 @@ class SelectModal extends React.Component {
|
|
|
20480
20480
|
return /*#__PURE__*/React__default['default'].createElement(Modal, {
|
|
20481
20481
|
className: "plc-max-w-full sm:plc-max-w-90% md:plc-max-w-70% plc-w-auto",
|
|
20482
20482
|
hideCloseButton: !this.closeButton,
|
|
20483
|
-
onClose: this.props.onClose,
|
|
20484
20483
|
id: "pelcro-selection-modal"
|
|
20485
20484
|
}, /*#__PURE__*/React__default['default'].createElement(ModalHeader, {
|
|
20486
|
-
className: "plc-pl-20"
|
|
20485
|
+
className: "plc-pl-20",
|
|
20486
|
+
onCloseModal: this.props.onClose
|
|
20487
20487
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20488
20488
|
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
20489
20489
|
}, this.state.mode === "plan" && /*#__PURE__*/React__default['default'].createElement("button", {
|
|
@@ -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
|
}
|
|
@@ -30723,9 +30728,10 @@ const AddressCreateModal = ({
|
|
|
30723
30728
|
|
|
30724
30729
|
return /*#__PURE__*/React__default['default'].createElement(Modal, {
|
|
30725
30730
|
id: "pelcro-address-create-modal",
|
|
30726
|
-
onDisplay: onDisplay
|
|
30727
|
-
|
|
30728
|
-
|
|
30731
|
+
onDisplay: onDisplay
|
|
30732
|
+
}, /*#__PURE__*/React__default['default'].createElement(ModalHeader, {
|
|
30733
|
+
onCloseModal: onClose
|
|
30734
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30729
30735
|
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
30730
30736
|
}, showBackButton && /*#__PURE__*/React__default['default'].createElement("button", {
|
|
30731
30737
|
type: "button",
|
|
@@ -32959,9 +32965,10 @@ const CartModal = ({
|
|
|
32959
32965
|
return /*#__PURE__*/React__default['default'].createElement(Modal, {
|
|
32960
32966
|
id: "pelcro-cart-modal",
|
|
32961
32967
|
onDisplay: onDisplay,
|
|
32962
|
-
onClose: onClose,
|
|
32963
32968
|
hideCloseButton: false
|
|
32964
|
-
}, /*#__PURE__*/React__default['default'].createElement(ModalHeader,
|
|
32969
|
+
}, /*#__PURE__*/React__default['default'].createElement(ModalHeader, {
|
|
32970
|
+
onCloseModal: onClose
|
|
32971
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
32965
32972
|
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
32966
32973
|
}, /*#__PURE__*/React__default['default'].createElement("h4", {
|
|
32967
32974
|
className: "plc-text-xl plc-font-bold "
|
|
@@ -34354,9 +34361,10 @@ const AddressSelectModal = ({
|
|
|
34354
34361
|
|
|
34355
34362
|
return /*#__PURE__*/React__default['default'].createElement(Modal, {
|
|
34356
34363
|
onDisplay: onDisplay,
|
|
34357
|
-
onClose: onClose,
|
|
34358
34364
|
id: "pelcro-address-select-modal"
|
|
34359
|
-
}, /*#__PURE__*/React__default['default'].createElement(ModalHeader,
|
|
34365
|
+
}, /*#__PURE__*/React__default['default'].createElement(ModalHeader, {
|
|
34366
|
+
onCloseModal: onClose
|
|
34367
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
34360
34368
|
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
34361
34369
|
}, showBackButton && /*#__PURE__*/React__default['default'].createElement("button", {
|
|
34362
34370
|
type: "button",
|
package/dist/index.esm.js
CHANGED
|
@@ -20450,10 +20450,10 @@ class SelectModal extends Component {
|
|
|
20450
20450
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
20451
20451
|
className: "plc-max-w-full sm:plc-max-w-90% md:plc-max-w-70% plc-w-auto",
|
|
20452
20452
|
hideCloseButton: !this.closeButton,
|
|
20453
|
-
onClose: this.props.onClose,
|
|
20454
20453
|
id: "pelcro-selection-modal"
|
|
20455
20454
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, {
|
|
20456
|
-
className: "plc-pl-20"
|
|
20455
|
+
className: "plc-pl-20",
|
|
20456
|
+
onCloseModal: this.props.onClose
|
|
20457
20457
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20458
20458
|
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
20459
20459
|
}, this.state.mode === "plan" && /*#__PURE__*/React__default.createElement("button", {
|
|
@@ -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
|
}
|
|
@@ -30693,9 +30698,10 @@ const AddressCreateModal = ({
|
|
|
30693
30698
|
|
|
30694
30699
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
30695
30700
|
id: "pelcro-address-create-modal",
|
|
30696
|
-
onDisplay: onDisplay
|
|
30697
|
-
|
|
30698
|
-
|
|
30701
|
+
onDisplay: onDisplay
|
|
30702
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, {
|
|
30703
|
+
onCloseModal: onClose
|
|
30704
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
30699
30705
|
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
30700
30706
|
}, showBackButton && /*#__PURE__*/React__default.createElement("button", {
|
|
30701
30707
|
type: "button",
|
|
@@ -32929,9 +32935,10 @@ const CartModal = ({
|
|
|
32929
32935
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
32930
32936
|
id: "pelcro-cart-modal",
|
|
32931
32937
|
onDisplay: onDisplay,
|
|
32932
|
-
onClose: onClose,
|
|
32933
32938
|
hideCloseButton: false
|
|
32934
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader,
|
|
32939
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, {
|
|
32940
|
+
onCloseModal: onClose
|
|
32941
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
32935
32942
|
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
32936
32943
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
32937
32944
|
className: "plc-text-xl plc-font-bold "
|
|
@@ -34324,9 +34331,10 @@ const AddressSelectModal = ({
|
|
|
34324
34331
|
|
|
34325
34332
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
34326
34333
|
onDisplay: onDisplay,
|
|
34327
|
-
onClose: onClose,
|
|
34328
34334
|
id: "pelcro-address-select-modal"
|
|
34329
|
-
}, /*#__PURE__*/React__default.createElement(ModalHeader,
|
|
34335
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, {
|
|
34336
|
+
onCloseModal: onClose
|
|
34337
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
34330
34338
|
className: "plc-text-left plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
34331
34339
|
}, showBackButton && /*#__PURE__*/React__default.createElement("button", {
|
|
34332
34340
|
type: "button",
|