@pelcro/react-pelcro-js 3.6.0-beta.27 → 3.6.0-beta.28
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 +22 -3
- package/dist/index.esm.js +22 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -5038,7 +5038,8 @@ var labels$h = {
|
|
|
5038
5038
|
active: "Active",
|
|
5039
5039
|
inTrial: "In trial",
|
|
5040
5040
|
endingSoon: "Ending soon",
|
|
5041
|
-
scheduled: "Scheduled"
|
|
5041
|
+
scheduled: "Scheduled",
|
|
5042
|
+
incomplete: "incomplete"
|
|
5042
5043
|
},
|
|
5043
5044
|
shipments: "Shipments remaining",
|
|
5044
5045
|
logout: "Logout",
|
|
@@ -5140,7 +5141,8 @@ var labels$g = {
|
|
|
5140
5141
|
active: "Active",
|
|
5141
5142
|
inTrial: "Dans l'essai",
|
|
5142
5143
|
endingSoon: "Fin bientôt",
|
|
5143
|
-
scheduled: "Programmé"
|
|
5144
|
+
scheduled: "Programmé",
|
|
5145
|
+
incomplete: "incomplète"
|
|
5144
5146
|
},
|
|
5145
5147
|
shipments: "Expéditions restantes",
|
|
5146
5148
|
logout: "Déconnexion",
|
|
@@ -5242,7 +5244,8 @@ var labels$f = {
|
|
|
5242
5244
|
active: "활성화",
|
|
5243
5245
|
inTrial: "체험판 사용",
|
|
5244
5246
|
endingSoon: "만료 예정",
|
|
5245
|
-
scheduled: "예약"
|
|
5247
|
+
scheduled: "예약",
|
|
5248
|
+
incomplete: "불완전한"
|
|
5246
5249
|
},
|
|
5247
5250
|
shipments: "남은 배송 일정",
|
|
5248
5251
|
logout: "로그아웃",
|
|
@@ -16084,6 +16087,8 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
16084
16087
|
content: t("messages.cardAuthFailed")
|
|
16085
16088
|
}
|
|
16086
16089
|
});
|
|
16090
|
+
} else {
|
|
16091
|
+
onSuccess(response);
|
|
16087
16092
|
}
|
|
16088
16093
|
} else {
|
|
16089
16094
|
dispatch({
|
|
@@ -26196,6 +26201,10 @@ class Dashboard extends React.Component {
|
|
|
26196
26201
|
return `${this.locale("labels.canceledOn")} ${formattedCancelDate}`;
|
|
26197
26202
|
}
|
|
26198
26203
|
|
|
26204
|
+
if (subscription.status === "incomplete") {
|
|
26205
|
+
return `${this.locale("labels.status.incomplete")}`;
|
|
26206
|
+
}
|
|
26207
|
+
|
|
26199
26208
|
if (subscription.cancel_at_period_end) {
|
|
26200
26209
|
// DateTime from BE is missing 3 zeros so we add them before instancing a date
|
|
26201
26210
|
const expiryDate = new Date(Number(`${subscription.expires_at}000`));
|
|
@@ -26261,6 +26270,16 @@ class Dashboard extends React.Component {
|
|
|
26261
26270
|
};
|
|
26262
26271
|
}
|
|
26263
26272
|
|
|
26273
|
+
if (sub.status === "incomplete") {
|
|
26274
|
+
return {
|
|
26275
|
+
title: this.locale("labels.status.incomplete"),
|
|
26276
|
+
content: this.getSubscriptionStatusText(sub),
|
|
26277
|
+
textColor: "plc-text-orange-700",
|
|
26278
|
+
bgColor: "plc-bg-orange-100",
|
|
26279
|
+
icon: /*#__PURE__*/React__default['default'].createElement(SvgExclamation, null)
|
|
26280
|
+
};
|
|
26281
|
+
}
|
|
26282
|
+
|
|
26264
26283
|
return {
|
|
26265
26284
|
title: this.locale("labels.status.active"),
|
|
26266
26285
|
content: this.getSubscriptionStatusText(sub),
|
package/dist/index.esm.js
CHANGED
|
@@ -5008,7 +5008,8 @@ var labels$h = {
|
|
|
5008
5008
|
active: "Active",
|
|
5009
5009
|
inTrial: "In trial",
|
|
5010
5010
|
endingSoon: "Ending soon",
|
|
5011
|
-
scheduled: "Scheduled"
|
|
5011
|
+
scheduled: "Scheduled",
|
|
5012
|
+
incomplete: "incomplete"
|
|
5012
5013
|
},
|
|
5013
5014
|
shipments: "Shipments remaining",
|
|
5014
5015
|
logout: "Logout",
|
|
@@ -5110,7 +5111,8 @@ var labels$g = {
|
|
|
5110
5111
|
active: "Active",
|
|
5111
5112
|
inTrial: "Dans l'essai",
|
|
5112
5113
|
endingSoon: "Fin bientôt",
|
|
5113
|
-
scheduled: "Programmé"
|
|
5114
|
+
scheduled: "Programmé",
|
|
5115
|
+
incomplete: "incomplète"
|
|
5114
5116
|
},
|
|
5115
5117
|
shipments: "Expéditions restantes",
|
|
5116
5118
|
logout: "Déconnexion",
|
|
@@ -5212,7 +5214,8 @@ var labels$f = {
|
|
|
5212
5214
|
active: "활성화",
|
|
5213
5215
|
inTrial: "체험판 사용",
|
|
5214
5216
|
endingSoon: "만료 예정",
|
|
5215
|
-
scheduled: "예약"
|
|
5217
|
+
scheduled: "예약",
|
|
5218
|
+
incomplete: "불완전한"
|
|
5216
5219
|
},
|
|
5217
5220
|
shipments: "남은 배송 일정",
|
|
5218
5221
|
logout: "로그아웃",
|
|
@@ -16054,6 +16057,8 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
16054
16057
|
content: t("messages.cardAuthFailed")
|
|
16055
16058
|
}
|
|
16056
16059
|
});
|
|
16060
|
+
} else {
|
|
16061
|
+
onSuccess(response);
|
|
16057
16062
|
}
|
|
16058
16063
|
} else {
|
|
16059
16064
|
dispatch({
|
|
@@ -26166,6 +26171,10 @@ class Dashboard extends Component {
|
|
|
26166
26171
|
return `${this.locale("labels.canceledOn")} ${formattedCancelDate}`;
|
|
26167
26172
|
}
|
|
26168
26173
|
|
|
26174
|
+
if (subscription.status === "incomplete") {
|
|
26175
|
+
return `${this.locale("labels.status.incomplete")}`;
|
|
26176
|
+
}
|
|
26177
|
+
|
|
26169
26178
|
if (subscription.cancel_at_period_end) {
|
|
26170
26179
|
// DateTime from BE is missing 3 zeros so we add them before instancing a date
|
|
26171
26180
|
const expiryDate = new Date(Number(`${subscription.expires_at}000`));
|
|
@@ -26231,6 +26240,16 @@ class Dashboard extends Component {
|
|
|
26231
26240
|
};
|
|
26232
26241
|
}
|
|
26233
26242
|
|
|
26243
|
+
if (sub.status === "incomplete") {
|
|
26244
|
+
return {
|
|
26245
|
+
title: this.locale("labels.status.incomplete"),
|
|
26246
|
+
content: this.getSubscriptionStatusText(sub),
|
|
26247
|
+
textColor: "plc-text-orange-700",
|
|
26248
|
+
bgColor: "plc-bg-orange-100",
|
|
26249
|
+
icon: /*#__PURE__*/React__default.createElement(SvgExclamation, null)
|
|
26250
|
+
};
|
|
26251
|
+
}
|
|
26252
|
+
|
|
26234
26253
|
return {
|
|
26235
26254
|
title: this.locale("labels.status.active"),
|
|
26236
26255
|
content: this.getSubscriptionStatusText(sub),
|