@pelcro/react-pelcro-js 4.0.0-alpha.116 → 4.0.0-alpha.118
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 +9 -4
- package/dist/index.esm.js +9 -4
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -14406,7 +14406,7 @@ const RegisterLastName = props => /*#__PURE__*/React__default['default'].createE
|
|
|
14406
14406
|
*
|
|
14407
14407
|
*/
|
|
14408
14408
|
function RegisterView(props) {
|
|
14409
|
-
var _window$Pelcro$site$r, _window$Pelcro$site$r2, _window$Pelcro$site$r3, _window$Pelcro, _window$Pelcro$uiSett;
|
|
14409
|
+
var _window$Pelcro$site$r, _window$Pelcro$site$r2, _window$Pelcro$site$r3, _window$Pelcro, _window$Pelcro$uiSett, _window$Pelcro2, _window$Pelcro2$uiSet;
|
|
14410
14410
|
const {
|
|
14411
14411
|
t
|
|
14412
14412
|
} = useTranslation("register");
|
|
@@ -14414,6 +14414,7 @@ function RegisterView(props) {
|
|
|
14414
14414
|
const auth0LoginEnabled = (_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.auth0_client_id;
|
|
14415
14415
|
const socialLoginEnabled = ((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.facebook_app_id) || ((_window$Pelcro$site$r3 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r3 === void 0 ? void 0 : _window$Pelcro$site$r3.google_app_id) || auth0LoginEnabled;
|
|
14416
14416
|
const showNameFields = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableNameFieldsInRegister;
|
|
14417
|
+
const nameFieldsRequired = (_window$Pelcro2 = window.Pelcro) === null || _window$Pelcro2 === void 0 ? void 0 : (_window$Pelcro2$uiSet = _window$Pelcro2.uiSettings) === null || _window$Pelcro2$uiSet === void 0 ? void 0 : _window$Pelcro2$uiSet.requireNameFieldsInRegister;
|
|
14417
14418
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14418
14419
|
id: "pelcro-register-view"
|
|
14419
14420
|
}, /*#__PURE__*/React__default['default'].createElement("form", {
|
|
@@ -14441,11 +14442,15 @@ function RegisterView(props) {
|
|
|
14441
14442
|
className: "plc-flex plc-items-start"
|
|
14442
14443
|
}, /*#__PURE__*/React__default['default'].createElement(RegisterFirstName, {
|
|
14443
14444
|
id: "pelcro-input-first-name",
|
|
14444
|
-
label: t("labels.firstName")
|
|
14445
|
+
label: `${t("labels.firstName")}${nameFieldsRequired ? " *" : ""}`,
|
|
14446
|
+
errorId: "pelcro-input-firstName-error",
|
|
14447
|
+
required: nameFieldsRequired
|
|
14445
14448
|
}), /*#__PURE__*/React__default['default'].createElement(RegisterLastName, {
|
|
14446
14449
|
wrapperClassName: "plc-ml-3",
|
|
14447
14450
|
id: "pelcro-input-last-name",
|
|
14448
|
-
label: t("labels.lastName")
|
|
14451
|
+
label: `${t("labels.lastName")}${nameFieldsRequired ? " *" : ""}`,
|
|
14452
|
+
errorId: "pelcro-input-lastName-error",
|
|
14453
|
+
required: nameFieldsRequired
|
|
14449
14454
|
})), /*#__PURE__*/React__default['default'].createElement(RegisterEmail, {
|
|
14450
14455
|
id: "pelcro-input-email",
|
|
14451
14456
|
errorId: "pelcro-input-email-error",
|
|
@@ -26068,7 +26073,7 @@ function SelectModalWithHook(props) {
|
|
|
26068
26073
|
const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
|
|
26069
26074
|
return /*#__PURE__*/React__default['default'].createElement(SelectModalWithTrans, {
|
|
26070
26075
|
isGift: isGift,
|
|
26071
|
-
disableGifting: isRenewingGift,
|
|
26076
|
+
disableGifting: isRenewingGift || props.hideGiftButton,
|
|
26072
26077
|
plan: plan,
|
|
26073
26078
|
product: product,
|
|
26074
26079
|
onClose: () => {
|
package/dist/index.esm.js
CHANGED
|
@@ -14364,7 +14364,7 @@ const RegisterLastName = props => /*#__PURE__*/React__default.createElement(Last
|
|
|
14364
14364
|
*
|
|
14365
14365
|
*/
|
|
14366
14366
|
function RegisterView(props) {
|
|
14367
|
-
var _window$Pelcro$site$r, _window$Pelcro$site$r2, _window$Pelcro$site$r3, _window$Pelcro, _window$Pelcro$uiSett;
|
|
14367
|
+
var _window$Pelcro$site$r, _window$Pelcro$site$r2, _window$Pelcro$site$r3, _window$Pelcro, _window$Pelcro$uiSett, _window$Pelcro2, _window$Pelcro2$uiSet;
|
|
14368
14368
|
const {
|
|
14369
14369
|
t
|
|
14370
14370
|
} = useTranslation("register");
|
|
@@ -14372,6 +14372,7 @@ function RegisterView(props) {
|
|
|
14372
14372
|
const auth0LoginEnabled = (_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.auth0_client_id;
|
|
14373
14373
|
const socialLoginEnabled = ((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.facebook_app_id) || ((_window$Pelcro$site$r3 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r3 === void 0 ? void 0 : _window$Pelcro$site$r3.google_app_id) || auth0LoginEnabled;
|
|
14374
14374
|
const showNameFields = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableNameFieldsInRegister;
|
|
14375
|
+
const nameFieldsRequired = (_window$Pelcro2 = window.Pelcro) === null || _window$Pelcro2 === void 0 ? void 0 : (_window$Pelcro2$uiSet = _window$Pelcro2.uiSettings) === null || _window$Pelcro2$uiSet === void 0 ? void 0 : _window$Pelcro2$uiSet.requireNameFieldsInRegister;
|
|
14375
14376
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
14376
14377
|
id: "pelcro-register-view"
|
|
14377
14378
|
}, /*#__PURE__*/React__default.createElement("form", {
|
|
@@ -14399,11 +14400,15 @@ function RegisterView(props) {
|
|
|
14399
14400
|
className: "plc-flex plc-items-start"
|
|
14400
14401
|
}, /*#__PURE__*/React__default.createElement(RegisterFirstName, {
|
|
14401
14402
|
id: "pelcro-input-first-name",
|
|
14402
|
-
label: t("labels.firstName")
|
|
14403
|
+
label: `${t("labels.firstName")}${nameFieldsRequired ? " *" : ""}`,
|
|
14404
|
+
errorId: "pelcro-input-firstName-error",
|
|
14405
|
+
required: nameFieldsRequired
|
|
14403
14406
|
}), /*#__PURE__*/React__default.createElement(RegisterLastName, {
|
|
14404
14407
|
wrapperClassName: "plc-ml-3",
|
|
14405
14408
|
id: "pelcro-input-last-name",
|
|
14406
|
-
label: t("labels.lastName")
|
|
14409
|
+
label: `${t("labels.lastName")}${nameFieldsRequired ? " *" : ""}`,
|
|
14410
|
+
errorId: "pelcro-input-lastName-error",
|
|
14411
|
+
required: nameFieldsRequired
|
|
14407
14412
|
})), /*#__PURE__*/React__default.createElement(RegisterEmail, {
|
|
14408
14413
|
id: "pelcro-input-email",
|
|
14409
14414
|
errorId: "pelcro-input-email-error",
|
|
@@ -26026,7 +26031,7 @@ function SelectModalWithHook(props) {
|
|
|
26026
26031
|
const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
|
|
26027
26032
|
return /*#__PURE__*/React__default.createElement(SelectModalWithTrans, {
|
|
26028
26033
|
isGift: isGift,
|
|
26029
|
-
disableGifting: isRenewingGift,
|
|
26034
|
+
disableGifting: isRenewingGift || props.hideGiftButton,
|
|
26030
26035
|
plan: plan,
|
|
26031
26036
|
product: product,
|
|
26032
26037
|
onClose: () => {
|