@pelcro/react-pelcro-js 2.6.0-beta.10 → 2.6.0-beta.11
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 +29 -5
- package/dist/index.esm.js +29 -5
- package/dist/pelcro.css +4 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3658,12 +3658,14 @@ var cancel$1 = "Cancel your subscription online at anytime.";
|
|
|
3658
3658
|
var giftSent$1 = "Subscription gift has been sent to";
|
|
3659
3659
|
var successfully$1 = "successfully";
|
|
3660
3660
|
var entitlement$1 = "Some of the content on this page is available with one or more of our plans. <1>Subscribe</1> now to get full page access.";
|
|
3661
|
+
var recaptcha$1 = "This site is protected by reCAPTCHA and the Google <1>Privacy Policy</1> and <3>Terms of Service</3> apply.";
|
|
3661
3662
|
var messages_en = {
|
|
3662
3663
|
youAreSafe: youAreSafe$1,
|
|
3663
3664
|
cancel: cancel$1,
|
|
3664
3665
|
giftSent: giftSent$1,
|
|
3665
3666
|
successfully: successfully$1,
|
|
3666
|
-
entitlement: entitlement$1
|
|
3667
|
+
entitlement: entitlement$1,
|
|
3668
|
+
recaptcha: recaptcha$1
|
|
3667
3669
|
};
|
|
3668
3670
|
|
|
3669
3671
|
var youAreSafe = "Vous êtes en sécurité - PCI conforme 128 SSL par";
|
|
@@ -3671,12 +3673,14 @@ var cancel = "Annuler votre abonnement en ligne à tout moment.";
|
|
|
3671
3673
|
var giftSent = "Le cadeau d’abonnement a été envoyé à";
|
|
3672
3674
|
var successfully = "avec succès.";
|
|
3673
3675
|
var entitlement = "Une partie du contenu de cette page est disponible sous un ou plusieurs de nos plans. <1>Abonnez-vous</1> à l'un de nos plans disponibles pour accéder à plus de contenu";
|
|
3676
|
+
var recaptcha = "Ce site est protégé par reCAPTCHA - les <1>règles de confidentialité</1> Google ainsi que les <3>conditions d'utilisation</3> s'appliquent.";
|
|
3674
3677
|
var messages_fr = {
|
|
3675
3678
|
youAreSafe: youAreSafe,
|
|
3676
3679
|
cancel: cancel,
|
|
3677
3680
|
giftSent: giftSent,
|
|
3678
3681
|
successfully: successfully,
|
|
3679
|
-
entitlement: entitlement
|
|
3682
|
+
entitlement: entitlement,
|
|
3683
|
+
recaptcha: recaptcha
|
|
3680
3684
|
};
|
|
3681
3685
|
|
|
3682
3686
|
var labels$f = {
|
|
@@ -9783,7 +9787,7 @@ const RegisterContainer = ({
|
|
|
9783
9787
|
selectFields
|
|
9784
9788
|
} = filteredData;
|
|
9785
9789
|
|
|
9786
|
-
if (!hasSecurityTokenEnabled()) {
|
|
9790
|
+
if (!hasSecurityTokenEnabled$1()) {
|
|
9787
9791
|
sendRegisterRequest();
|
|
9788
9792
|
return;
|
|
9789
9793
|
}
|
|
@@ -9984,7 +9988,7 @@ const RegisterContainer = ({
|
|
|
9984
9988
|
* @return {boolean}
|
|
9985
9989
|
*/
|
|
9986
9990
|
|
|
9987
|
-
function hasSecurityTokenEnabled() {
|
|
9991
|
+
function hasSecurityTokenEnabled$1() {
|
|
9988
9992
|
const hasSecuritySdkLoaded = Boolean(window.grecaptcha);
|
|
9989
9993
|
return hasSecuritySdkLoaded;
|
|
9990
9994
|
}
|
|
@@ -10614,7 +10618,17 @@ function RegisterView(props) {
|
|
|
10614
10618
|
className: "plc-w-full plc-mt-2",
|
|
10615
10619
|
id: "pelcro-submit",
|
|
10616
10620
|
name: t("messages.createAccount")
|
|
10617
|
-
}),
|
|
10621
|
+
}), hasSecurityTokenEnabled() && /*#__PURE__*/React__default['default'].createElement("p", {
|
|
10622
|
+
className: "plc-text-sm plc-text-gray-500 plc-mt-1"
|
|
10623
|
+
}, /*#__PURE__*/React__default['default'].createElement(Trans, {
|
|
10624
|
+
i18nKey: "messages:recaptcha"
|
|
10625
|
+
}, "This site is protected by reCAPTCHA and the Google", /*#__PURE__*/React__default['default'].createElement(Link, {
|
|
10626
|
+
href: "https://policies.google.com/privacy",
|
|
10627
|
+
className: "plc-text-sm plc-text-gray-500"
|
|
10628
|
+
}, "Privacy Policy"), "and", /*#__PURE__*/React__default['default'].createElement(Link, {
|
|
10629
|
+
href: "https://policies.google.com/terms",
|
|
10630
|
+
className: "plc-text-sm plc-text-gray-500"
|
|
10631
|
+
}, "Terms of Service"), "apply.")), socialLoginEnabled && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10618
10632
|
className: "plc-mt-5"
|
|
10619
10633
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10620
10634
|
className: "plc-flex plc-items-center plc-justify-between "
|
|
@@ -10628,6 +10642,16 @@ function RegisterView(props) {
|
|
|
10628
10642
|
className: "plc-flex plc-justify-center plc-px-5 plc-mt-1 plc-space-x-3"
|
|
10629
10643
|
}, /*#__PURE__*/React__default['default'].createElement(GoogleLoginButton, null), /*#__PURE__*/React__default['default'].createElement(FacebookLoginButton, null))))));
|
|
10630
10644
|
}
|
|
10645
|
+
/**
|
|
10646
|
+
* Checks if the current site has security token enabled
|
|
10647
|
+
* @return {boolean}
|
|
10648
|
+
*/
|
|
10649
|
+
|
|
10650
|
+
function hasSecurityTokenEnabled() {
|
|
10651
|
+
var _window$Pelcro$site, _window$Pelcro$site$r3;
|
|
10652
|
+
|
|
10653
|
+
return Boolean((_window$Pelcro$site = window.Pelcro.site) === null || _window$Pelcro$site === void 0 ? void 0 : (_window$Pelcro$site$r3 = _window$Pelcro$site.read()) === null || _window$Pelcro$site$r3 === void 0 ? void 0 : _window$Pelcro$site$r3.security_key);
|
|
10654
|
+
}
|
|
10631
10655
|
|
|
10632
10656
|
function TextInput({
|
|
10633
10657
|
store,
|
package/dist/index.esm.js
CHANGED
|
@@ -3628,12 +3628,14 @@ var cancel$1 = "Cancel your subscription online at anytime.";
|
|
|
3628
3628
|
var giftSent$1 = "Subscription gift has been sent to";
|
|
3629
3629
|
var successfully$1 = "successfully";
|
|
3630
3630
|
var entitlement$1 = "Some of the content on this page is available with one or more of our plans. <1>Subscribe</1> now to get full page access.";
|
|
3631
|
+
var recaptcha$1 = "This site is protected by reCAPTCHA and the Google <1>Privacy Policy</1> and <3>Terms of Service</3> apply.";
|
|
3631
3632
|
var messages_en = {
|
|
3632
3633
|
youAreSafe: youAreSafe$1,
|
|
3633
3634
|
cancel: cancel$1,
|
|
3634
3635
|
giftSent: giftSent$1,
|
|
3635
3636
|
successfully: successfully$1,
|
|
3636
|
-
entitlement: entitlement$1
|
|
3637
|
+
entitlement: entitlement$1,
|
|
3638
|
+
recaptcha: recaptcha$1
|
|
3637
3639
|
};
|
|
3638
3640
|
|
|
3639
3641
|
var youAreSafe = "Vous êtes en sécurité - PCI conforme 128 SSL par";
|
|
@@ -3641,12 +3643,14 @@ var cancel = "Annuler votre abonnement en ligne à tout moment.";
|
|
|
3641
3643
|
var giftSent = "Le cadeau d’abonnement a été envoyé à";
|
|
3642
3644
|
var successfully = "avec succès.";
|
|
3643
3645
|
var entitlement = "Une partie du contenu de cette page est disponible sous un ou plusieurs de nos plans. <1>Abonnez-vous</1> à l'un de nos plans disponibles pour accéder à plus de contenu";
|
|
3646
|
+
var recaptcha = "Ce site est protégé par reCAPTCHA - les <1>règles de confidentialité</1> Google ainsi que les <3>conditions d'utilisation</3> s'appliquent.";
|
|
3644
3647
|
var messages_fr = {
|
|
3645
3648
|
youAreSafe: youAreSafe,
|
|
3646
3649
|
cancel: cancel,
|
|
3647
3650
|
giftSent: giftSent,
|
|
3648
3651
|
successfully: successfully,
|
|
3649
|
-
entitlement: entitlement
|
|
3652
|
+
entitlement: entitlement,
|
|
3653
|
+
recaptcha: recaptcha
|
|
3650
3654
|
};
|
|
3651
3655
|
|
|
3652
3656
|
var labels$f = {
|
|
@@ -9753,7 +9757,7 @@ const RegisterContainer = ({
|
|
|
9753
9757
|
selectFields
|
|
9754
9758
|
} = filteredData;
|
|
9755
9759
|
|
|
9756
|
-
if (!hasSecurityTokenEnabled()) {
|
|
9760
|
+
if (!hasSecurityTokenEnabled$1()) {
|
|
9757
9761
|
sendRegisterRequest();
|
|
9758
9762
|
return;
|
|
9759
9763
|
}
|
|
@@ -9954,7 +9958,7 @@ const RegisterContainer = ({
|
|
|
9954
9958
|
* @return {boolean}
|
|
9955
9959
|
*/
|
|
9956
9960
|
|
|
9957
|
-
function hasSecurityTokenEnabled() {
|
|
9961
|
+
function hasSecurityTokenEnabled$1() {
|
|
9958
9962
|
const hasSecuritySdkLoaded = Boolean(window.grecaptcha);
|
|
9959
9963
|
return hasSecuritySdkLoaded;
|
|
9960
9964
|
}
|
|
@@ -10584,7 +10588,17 @@ function RegisterView(props) {
|
|
|
10584
10588
|
className: "plc-w-full plc-mt-2",
|
|
10585
10589
|
id: "pelcro-submit",
|
|
10586
10590
|
name: t("messages.createAccount")
|
|
10587
|
-
}),
|
|
10591
|
+
}), hasSecurityTokenEnabled() && /*#__PURE__*/React__default.createElement("p", {
|
|
10592
|
+
className: "plc-text-sm plc-text-gray-500 plc-mt-1"
|
|
10593
|
+
}, /*#__PURE__*/React__default.createElement(Trans, {
|
|
10594
|
+
i18nKey: "messages:recaptcha"
|
|
10595
|
+
}, "This site is protected by reCAPTCHA and the Google", /*#__PURE__*/React__default.createElement(Link, {
|
|
10596
|
+
href: "https://policies.google.com/privacy",
|
|
10597
|
+
className: "plc-text-sm plc-text-gray-500"
|
|
10598
|
+
}, "Privacy Policy"), "and", /*#__PURE__*/React__default.createElement(Link, {
|
|
10599
|
+
href: "https://policies.google.com/terms",
|
|
10600
|
+
className: "plc-text-sm plc-text-gray-500"
|
|
10601
|
+
}, "Terms of Service"), "apply.")), socialLoginEnabled && /*#__PURE__*/React__default.createElement("div", {
|
|
10588
10602
|
className: "plc-mt-5"
|
|
10589
10603
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10590
10604
|
className: "plc-flex plc-items-center plc-justify-between "
|
|
@@ -10598,6 +10612,16 @@ function RegisterView(props) {
|
|
|
10598
10612
|
className: "plc-flex plc-justify-center plc-px-5 plc-mt-1 plc-space-x-3"
|
|
10599
10613
|
}, /*#__PURE__*/React__default.createElement(GoogleLoginButton, null), /*#__PURE__*/React__default.createElement(FacebookLoginButton, null))))));
|
|
10600
10614
|
}
|
|
10615
|
+
/**
|
|
10616
|
+
* Checks if the current site has security token enabled
|
|
10617
|
+
* @return {boolean}
|
|
10618
|
+
*/
|
|
10619
|
+
|
|
10620
|
+
function hasSecurityTokenEnabled() {
|
|
10621
|
+
var _window$Pelcro$site, _window$Pelcro$site$r3;
|
|
10622
|
+
|
|
10623
|
+
return Boolean((_window$Pelcro$site = window.Pelcro.site) === null || _window$Pelcro$site === void 0 ? void 0 : (_window$Pelcro$site$r3 = _window$Pelcro$site.read()) === null || _window$Pelcro$site$r3 === void 0 ? void 0 : _window$Pelcro$site$r3.security_key);
|
|
10624
|
+
}
|
|
10601
10625
|
|
|
10602
10626
|
function TextInput({
|
|
10603
10627
|
store,
|
package/dist/pelcro.css
CHANGED