@pelcro/react-pelcro-js 2.7.0-beta.11 → 2.7.0-beta.12
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 +13 -20
- package/dist/index.esm.js +13 -20
- package/dist/pelcro.css +4 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -4603,13 +4603,13 @@ var notification_fr = {
|
|
|
4603
4603
|
};
|
|
4604
4604
|
|
|
4605
4605
|
var labels$1 = {
|
|
4606
|
-
title: "Verify your
|
|
4607
|
-
instructions: "
|
|
4608
|
-
resend: "Resend
|
|
4606
|
+
title: "Verify your email",
|
|
4607
|
+
instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
|
|
4608
|
+
resend: "Resend email"
|
|
4609
4609
|
};
|
|
4610
4610
|
var messages$1 = {
|
|
4611
4611
|
resent: "Resent successfully",
|
|
4612
|
-
success: "
|
|
4612
|
+
success: "Email verified successfully!"
|
|
4613
4613
|
};
|
|
4614
4614
|
var verifyEmail_en = {
|
|
4615
4615
|
labels: labels$1,
|
|
@@ -4617,13 +4617,13 @@ var verifyEmail_en = {
|
|
|
4617
4617
|
};
|
|
4618
4618
|
|
|
4619
4619
|
var labels = {
|
|
4620
|
-
title: "
|
|
4621
|
-
instructions: "
|
|
4622
|
-
resend: "
|
|
4620
|
+
title: "Vérifiez votre e-mail",
|
|
4621
|
+
instructions: "Vous êtes en route!\nConfirmons votre adresse e-mail.\nCliquez sur le lien de vérification que nous vous avons envoyé par e-mail:",
|
|
4622
|
+
resend: "Ré-envoyer l'email"
|
|
4623
4623
|
};
|
|
4624
4624
|
var messages = {
|
|
4625
|
-
resent: "
|
|
4626
|
-
success: "
|
|
4625
|
+
resent: "Renvoyé avec succès",
|
|
4626
|
+
success: "Email vérifié avec succès!"
|
|
4627
4627
|
};
|
|
4628
4628
|
var verifyEmail_fr = {
|
|
4629
4629
|
labels: labels,
|
|
@@ -8973,7 +8973,7 @@ const verifyEmailTokenFromUrl = () => {
|
|
|
8973
8973
|
var _window$Pelcro$site$r5, _window$Pelcro$site$r6;
|
|
8974
8974
|
|
|
8975
8975
|
const {
|
|
8976
|
-
|
|
8976
|
+
whenSiteReady
|
|
8977
8977
|
} = usePelcro.getStore();
|
|
8978
8978
|
const translations = i18next.t("verifyEmail:messages", {
|
|
8979
8979
|
returnObjects: true
|
|
@@ -8981,14 +8981,7 @@ const verifyEmailTokenFromUrl = () => {
|
|
|
8981
8981
|
const emailToken = window.Pelcro.helpers.getURLParameter("token");
|
|
8982
8982
|
const isEmailVerificationEnabled = (_window$Pelcro$site$r5 = (_window$Pelcro$site$r6 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r6 === void 0 ? void 0 : _window$Pelcro$site$r6.email_verify_enabled) !== null && _window$Pelcro$site$r5 !== void 0 ? _window$Pelcro$site$r5 : false;
|
|
8983
8983
|
if (!emailToken || !isEmailVerificationEnabled) return;
|
|
8984
|
-
|
|
8985
|
-
using whenUserReady means that the verification link needs to be
|
|
8986
|
-
opened on the same device that was used for registeration to guarantee
|
|
8987
|
-
that the user is authenticated. if that's not the case, nothing would show up,
|
|
8988
|
-
this is a limitation caused by the SDK and it's events
|
|
8989
|
-
*/
|
|
8990
|
-
|
|
8991
|
-
whenUserReady(() => {
|
|
8984
|
+
whenSiteReady(() => {
|
|
8992
8985
|
window.Pelcro.user.verifyEmailToken({
|
|
8993
8986
|
token: emailToken
|
|
8994
8987
|
}, (err, res) => {
|
|
@@ -24348,7 +24341,7 @@ const EmailVerifyContainer = ({
|
|
|
24348
24341
|
} = useTranslation("verifyEmail");
|
|
24349
24342
|
|
|
24350
24343
|
const submit = () => {
|
|
24351
|
-
window.Pelcro.user.
|
|
24344
|
+
window.Pelcro.user.resendEmailVerification((err, res) => {
|
|
24352
24345
|
dispatch({
|
|
24353
24346
|
type: LOADING,
|
|
24354
24347
|
payload: false
|
|
@@ -24475,7 +24468,7 @@ const EmailVerifyView = props => {
|
|
|
24475
24468
|
}, /*#__PURE__*/React__default['default'].createElement(SvgEmailVerify, {
|
|
24476
24469
|
className: "plc-w-32 plc-h-32"
|
|
24477
24470
|
}), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
24478
|
-
className: "plc-mb-1 plc-text-gray-900"
|
|
24471
|
+
className: "plc-mb-1 plc-text-gray-900 plc-text-center plc-whitespace-pre-line"
|
|
24479
24472
|
}, t("labels.instructions"), " ", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
24480
24473
|
className: "plc-font-bold"
|
|
24481
24474
|
}, (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email))), /*#__PURE__*/React__default['default'].createElement(EmailVerifyResendButton, {
|
package/dist/index.esm.js
CHANGED
|
@@ -4573,13 +4573,13 @@ var notification_fr = {
|
|
|
4573
4573
|
};
|
|
4574
4574
|
|
|
4575
4575
|
var labels$1 = {
|
|
4576
|
-
title: "Verify your
|
|
4577
|
-
instructions: "
|
|
4578
|
-
resend: "Resend
|
|
4576
|
+
title: "Verify your email",
|
|
4577
|
+
instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
|
|
4578
|
+
resend: "Resend email"
|
|
4579
4579
|
};
|
|
4580
4580
|
var messages$1 = {
|
|
4581
4581
|
resent: "Resent successfully",
|
|
4582
|
-
success: "
|
|
4582
|
+
success: "Email verified successfully!"
|
|
4583
4583
|
};
|
|
4584
4584
|
var verifyEmail_en = {
|
|
4585
4585
|
labels: labels$1,
|
|
@@ -4587,13 +4587,13 @@ var verifyEmail_en = {
|
|
|
4587
4587
|
};
|
|
4588
4588
|
|
|
4589
4589
|
var labels = {
|
|
4590
|
-
title: "
|
|
4591
|
-
instructions: "
|
|
4592
|
-
resend: "
|
|
4590
|
+
title: "Vérifiez votre e-mail",
|
|
4591
|
+
instructions: "Vous êtes en route!\nConfirmons votre adresse e-mail.\nCliquez sur le lien de vérification que nous vous avons envoyé par e-mail:",
|
|
4592
|
+
resend: "Ré-envoyer l'email"
|
|
4593
4593
|
};
|
|
4594
4594
|
var messages = {
|
|
4595
|
-
resent: "
|
|
4596
|
-
success: "
|
|
4595
|
+
resent: "Renvoyé avec succès",
|
|
4596
|
+
success: "Email vérifié avec succès!"
|
|
4597
4597
|
};
|
|
4598
4598
|
var verifyEmail_fr = {
|
|
4599
4599
|
labels: labels,
|
|
@@ -8943,7 +8943,7 @@ const verifyEmailTokenFromUrl = () => {
|
|
|
8943
8943
|
var _window$Pelcro$site$r5, _window$Pelcro$site$r6;
|
|
8944
8944
|
|
|
8945
8945
|
const {
|
|
8946
|
-
|
|
8946
|
+
whenSiteReady
|
|
8947
8947
|
} = usePelcro.getStore();
|
|
8948
8948
|
const translations = i18next.t("verifyEmail:messages", {
|
|
8949
8949
|
returnObjects: true
|
|
@@ -8951,14 +8951,7 @@ const verifyEmailTokenFromUrl = () => {
|
|
|
8951
8951
|
const emailToken = window.Pelcro.helpers.getURLParameter("token");
|
|
8952
8952
|
const isEmailVerificationEnabled = (_window$Pelcro$site$r5 = (_window$Pelcro$site$r6 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r6 === void 0 ? void 0 : _window$Pelcro$site$r6.email_verify_enabled) !== null && _window$Pelcro$site$r5 !== void 0 ? _window$Pelcro$site$r5 : false;
|
|
8953
8953
|
if (!emailToken || !isEmailVerificationEnabled) return;
|
|
8954
|
-
|
|
8955
|
-
using whenUserReady means that the verification link needs to be
|
|
8956
|
-
opened on the same device that was used for registeration to guarantee
|
|
8957
|
-
that the user is authenticated. if that's not the case, nothing would show up,
|
|
8958
|
-
this is a limitation caused by the SDK and it's events
|
|
8959
|
-
*/
|
|
8960
|
-
|
|
8961
|
-
whenUserReady(() => {
|
|
8954
|
+
whenSiteReady(() => {
|
|
8962
8955
|
window.Pelcro.user.verifyEmailToken({
|
|
8963
8956
|
token: emailToken
|
|
8964
8957
|
}, (err, res) => {
|
|
@@ -24318,7 +24311,7 @@ const EmailVerifyContainer = ({
|
|
|
24318
24311
|
} = useTranslation("verifyEmail");
|
|
24319
24312
|
|
|
24320
24313
|
const submit = () => {
|
|
24321
|
-
window.Pelcro.user.
|
|
24314
|
+
window.Pelcro.user.resendEmailVerification((err, res) => {
|
|
24322
24315
|
dispatch({
|
|
24323
24316
|
type: LOADING,
|
|
24324
24317
|
payload: false
|
|
@@ -24445,7 +24438,7 @@ const EmailVerifyView = props => {
|
|
|
24445
24438
|
}, /*#__PURE__*/React__default.createElement(SvgEmailVerify, {
|
|
24446
24439
|
className: "plc-w-32 plc-h-32"
|
|
24447
24440
|
}), /*#__PURE__*/React__default.createElement("p", {
|
|
24448
|
-
className: "plc-mb-1 plc-text-gray-900"
|
|
24441
|
+
className: "plc-mb-1 plc-text-gray-900 plc-text-center plc-whitespace-pre-line"
|
|
24449
24442
|
}, t("labels.instructions"), " ", /*#__PURE__*/React__default.createElement("span", {
|
|
24450
24443
|
className: "plc-font-bold"
|
|
24451
24444
|
}, (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email))), /*#__PURE__*/React__default.createElement(EmailVerifyResendButton, {
|
package/dist/pelcro.css
CHANGED
|
@@ -2759,6 +2759,10 @@ in order to scope selectors under pelcro-root
|
|
|
2759
2759
|
vertical-align: middle;
|
|
2760
2760
|
}
|
|
2761
2761
|
|
|
2762
|
+
.pelcro-root .plc-whitespace-pre-line {
|
|
2763
|
+
white-space: pre-line;
|
|
2764
|
+
}
|
|
2765
|
+
|
|
2762
2766
|
.pelcro-root .plc-break-words {
|
|
2763
2767
|
overflow-wrap: break-word;
|
|
2764
2768
|
}
|