@pelcro/react-pelcro-js 3.6.0-beta.27 → 3.6.0-beta.29
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 +25 -6
- package/dist/index.esm.js +25 -6
- 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",
|
|
@@ -5138,9 +5139,10 @@ var labels$g = {
|
|
|
5138
5139
|
status: {
|
|
5139
5140
|
title: "Statut",
|
|
5140
5141
|
active: "Active",
|
|
5141
|
-
inTrial: "
|
|
5142
|
-
endingSoon: "
|
|
5143
|
-
scheduled: "Programmé"
|
|
5142
|
+
inTrial: "En essai",
|
|
5143
|
+
endingSoon: "Expire bientôt",
|
|
5144
|
+
scheduled: "Programmé",
|
|
5145
|
+
incomplete: "Incomplet"
|
|
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({
|
|
@@ -25365,7 +25370,7 @@ const SubscriptionsItems = ({
|
|
|
25365
25370
|
onClick: onReactivateClick,
|
|
25366
25371
|
disabled: disableSubmit,
|
|
25367
25372
|
"data-key": sub.id
|
|
25368
|
-
}, t("labels.reactivate")), sub.cancel_at_period_end === 1 && /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
25373
|
+
}, t("labels.reactivate")), sub.cancel_at_period_end === 1 && sub.status !== "incomplete" && /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
25369
25374
|
variant: "ghost",
|
|
25370
25375
|
className: "plc-text-blue-400 pelcro-dashboard-sub-renew-button",
|
|
25371
25376
|
icon: /*#__PURE__*/React__default['default'].createElement(SvgRefresh, null),
|
|
@@ -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",
|
|
@@ -5108,9 +5109,10 @@ var labels$g = {
|
|
|
5108
5109
|
status: {
|
|
5109
5110
|
title: "Statut",
|
|
5110
5111
|
active: "Active",
|
|
5111
|
-
inTrial: "
|
|
5112
|
-
endingSoon: "
|
|
5113
|
-
scheduled: "Programmé"
|
|
5112
|
+
inTrial: "En essai",
|
|
5113
|
+
endingSoon: "Expire bientôt",
|
|
5114
|
+
scheduled: "Programmé",
|
|
5115
|
+
incomplete: "Incomplet"
|
|
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({
|
|
@@ -25335,7 +25340,7 @@ const SubscriptionsItems = ({
|
|
|
25335
25340
|
onClick: onReactivateClick,
|
|
25336
25341
|
disabled: disableSubmit,
|
|
25337
25342
|
"data-key": sub.id
|
|
25338
|
-
}, t("labels.reactivate")), sub.cancel_at_period_end === 1 && /*#__PURE__*/React__default.createElement(Button, {
|
|
25343
|
+
}, t("labels.reactivate")), sub.cancel_at_period_end === 1 && sub.status !== "incomplete" && /*#__PURE__*/React__default.createElement(Button, {
|
|
25339
25344
|
variant: "ghost",
|
|
25340
25345
|
className: "plc-text-blue-400 pelcro-dashboard-sub-renew-button",
|
|
25341
25346
|
icon: /*#__PURE__*/React__default.createElement(SvgRefresh, null),
|
|
@@ -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),
|