@saasquatch/mint-components 1.6.2-21 → 1.6.2-22
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/cjs/{ShadowViewAddon-312e517f.js → ShadowViewAddon-4b75a331.js} +28 -17
- package/dist/cjs/sqm-big-stat_35.cjs.entry.js +54 -42
- package/dist/cjs/sqm-password-field.cjs.entry.js +6 -8
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -0
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +40 -20
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +9 -7
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +4 -4
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +66 -33
- package/dist/cjs/{useRegistrationFormState-d0e43ca9.js → useRegistrationFormState-bee054d6.js} +0 -9
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +12 -5
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +6 -2
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +3 -3
- package/dist/collection/components/sqm-checkbox-field/useCheckboxField.js +3 -3
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +2 -2
- package/dist/collection/components/sqm-dropdown-field/DropdownField.stories.js +13 -6
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +6 -2
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +3 -3
- package/dist/collection/components/sqm-dropdown-field/useDropdownField.js +3 -3
- package/dist/collection/components/sqm-input-field/InputField.stories.js +12 -5
- package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +6 -2
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +3 -3
- package/dist/collection/components/sqm-input-field/useInputField.js +3 -3
- package/dist/collection/components/sqm-name-fields/NameFields.stories.js +8 -4
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +6 -6
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -1
- package/dist/collection/components/sqm-name-fields/useNameFields.js +0 -3
- package/dist/collection/components/sqm-password-field/PasswordField.stories.js +9 -6
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +4 -3
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +1 -2
- package/dist/collection/components/sqm-password-field/usePasswordField.js +0 -3
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +10 -10
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +4 -4
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +4 -4
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +10 -12
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +2 -2
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +3 -1
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +4 -4
- package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +5 -0
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +4 -5
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +20 -18
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +20 -6
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -0
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +4 -5
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +23 -21
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +24 -6
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +17 -15
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +8 -8
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +4 -4
- package/dist/collection/components/sqm-route/sqm-route.js +1 -1
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +5 -5
- package/dist/esm/{ShadowViewAddon-b7ca4ee5.js → ShadowViewAddon-c201908c.js} +28 -17
- package/dist/esm/sqm-big-stat_35.entry.js +54 -42
- package/dist/esm/sqm-password-field.entry.js +6 -8
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/sqm-portal-forgot-password.entry.js +2 -2
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -0
- package/dist/esm/sqm-portal-protected-route.entry.js +2 -2
- package/dist/esm/sqm-portal-registration-form.entry.js +40 -20
- package/dist/esm/sqm-portal-reset-password.entry.js +9 -7
- package/dist/esm/sqm-portal-verify-email.entry.js +4 -4
- package/dist/esm/sqm-stencilbook.entry.js +66 -33
- package/dist/esm/{useRegistrationFormState-e94eec81.js → useRegistrationFormState-3cdf2939.js} +1 -8
- package/dist/esm-es5/ShadowViewAddon-c201908c.js +1 -0
- package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/useRegistrationFormState-3cdf2939.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-11a4a003.system.js +1 -1
- package/dist/mint-components/p-1287215d.js +1 -0
- package/dist/mint-components/p-2c805081.system.js +1 -0
- package/dist/mint-components/p-33cf5799.entry.js +9 -0
- package/dist/mint-components/p-4a2238b1.system.entry.js +1 -0
- package/dist/mint-components/p-5a78d954.system.js +1 -0
- package/dist/mint-components/p-8dfebcc6.js +268 -0
- package/dist/mint-components/p-a400c8c6.entry.js +13 -0
- package/dist/mint-components/p-a837750f.system.entry.js +1 -0
- package/dist/mint-components/p-ab5a8bf0.system.entry.js +1 -0
- package/dist/mint-components/{p-b36802a0.entry.js → p-c83ec898.entry.js} +12 -12
- package/dist/mint-components/p-dcf30408.entry.js +1 -0
- package/dist/mint-components/p-e58e454d.system.entry.js +1 -0
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +2 -2
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +0 -1
- package/dist/types/components/sqm-checkbox-field/useCheckboxField.d.ts +2 -1
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +1 -1
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field-view.d.ts +2 -2
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +0 -1
- package/dist/types/components/sqm-dropdown-field/useDropdownField.d.ts +2 -1
- package/dist/types/components/sqm-input-field/sqm-input-field-view.d.ts +2 -2
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +1 -1
- package/dist/types/components/sqm-input-field/useInputField.d.ts +2 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +0 -2
- package/dist/types/components/sqm-name-fields/useNameFields.d.ts +0 -1
- package/dist/types/components/sqm-password-field/sqm-password-field-view.d.ts +0 -1
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +0 -1
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +5 -5
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +2 -2
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +2 -2
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +4 -6
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +1 -1
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +2 -0
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +2 -2
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +2 -2
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +10 -8
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -1
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +0 -2
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +12 -10
- package/dist/types/components/sqm-portal-registration-form/usePortalRegistrationForm.d.ts +0 -1
- package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +2 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +9 -7
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +4 -4
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +2 -2
- package/dist/types/components/sqm-route/sqm-route.d.ts +0 -1
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +2 -2
- package/dist/types/components.d.ts +110 -112
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +1 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/docs/docs.docx +0 -0
- package/docs/grapesjs.js +54 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/collection/components/sqm-portal-register/useValidationState.js +0 -8
- package/dist/esm-es5/ShadowViewAddon-b7ca4ee5.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-e94eec81.js +0 -1
- package/dist/mint-components/p-16280a8d.entry.js +0 -9
- package/dist/mint-components/p-233e784a.js +0 -1
- package/dist/mint-components/p-3435cd60.system.entry.js +0 -1
- package/dist/mint-components/p-41994f1b.system.entry.js +0 -1
- package/dist/mint-components/p-5d815633.system.entry.js +0 -1
- package/dist/mint-components/p-5d86baae.entry.js +0 -13
- package/dist/mint-components/p-aa893634.entry.js +0 -1
- package/dist/mint-components/p-b01e28dd.system.js +0 -1
- package/dist/mint-components/p-b17ec97c.system.js +0 -1
- package/dist/mint-components/p-d5e7f5e3.system.entry.js +0 -1
- package/dist/mint-components/p-eb5835b3.js +0 -268
- package/dist/types/components/sqm-portal-register/useValidationState.d.ts +0 -18
|
@@ -1619,18 +1619,17 @@ function PortalRegisterView(props) {
|
|
|
1619
1619
|
if (!value.includes("@")) {
|
|
1620
1620
|
return "Must be a valid email address";
|
|
1621
1621
|
}
|
|
1622
|
-
} }, (((_b = (_a = states.
|
|
1622
|
+
} }, (((_b = (_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
1623
1623
|
class: sheet$5.classes.ErrorStyle,
|
|
1624
|
-
helpText: ((_d = (_c = states.
|
|
1624
|
+
helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
1625
1625
|
"Cannot be empty",
|
|
1626
1626
|
}
|
|
1627
1627
|
: [])))),
|
|
1628
1628
|
!states.hideInputs && (index.h("sqm-password-field", { fieldLabel: content.passwordLabel, "disable-validation": states.disablePasswordValidation })),
|
|
1629
1629
|
content.passwordField,
|
|
1630
|
-
!states.hideInputs && states.confirmPassword && (index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading, required: true }, (((_f = (_e = states.
|
|
1630
|
+
!states.hideInputs && states.confirmPassword && (index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading, required: true }, (((_f = (_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f.confirmPassword) ? {
|
|
1631
1631
|
class: sheet$5.classes.ErrorStyle,
|
|
1632
|
-
helpText: ((_h = (_g = states.
|
|
1633
|
-
"Cannot be empty",
|
|
1632
|
+
helpText: ((_h = (_g = states.registrationFormState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) || "Cannot be empty",
|
|
1634
1633
|
}
|
|
1635
1634
|
: [])))),
|
|
1636
1635
|
content.terms,
|
|
@@ -2446,23 +2445,23 @@ sl-input::part(label){
|
|
|
2446
2445
|
const sheet$9 = JSS.createStyleSheet(style$9);
|
|
2447
2446
|
const styleString$9 = sheet$9.toString();
|
|
2448
2447
|
function NameFieldsView(props) {
|
|
2449
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2448
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2450
2449
|
const { states } = props;
|
|
2451
|
-
const validationErrors = states === null || states === void 0 ? void 0 : states.validationErrors;
|
|
2450
|
+
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2452
2451
|
return (index.h("div", { class: sheet$9.classes.FieldsContainer },
|
|
2453
2452
|
index.h("style", { type: "text/css" },
|
|
2454
2453
|
vanillaStyle$3,
|
|
2455
2454
|
styleString$9),
|
|
2456
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((
|
|
2457
|
-
value: (
|
|
2455
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e.firstName) ? {
|
|
2456
|
+
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
|
|
2458
2457
|
}
|
|
2459
2458
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
2460
2459
|
class: sheet$9.classes.ErrorStyle,
|
|
2461
2460
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
2462
2461
|
}
|
|
2463
2462
|
: []))),
|
|
2464
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label", name: "/lastName", type: "text", label: states.content.lastNameLabel, required: true, disabled: ((
|
|
2465
|
-
value: (
|
|
2463
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label", name: "/lastName", type: "text", label: states.content.lastNameLabel, required: true, disabled: ((_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.loading) || ((_j = states.registrationFormState) === null || _j === void 0 ? void 0 : _j.disabled) }, (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.initialData) === null || _l === void 0 ? void 0 : _l.lastName) ? {
|
|
2464
|
+
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
2466
2465
|
}
|
|
2467
2466
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
|
|
2468
2467
|
class: sheet$9.classes.ErrorStyle,
|
|
@@ -2513,8 +2512,9 @@ JSS.jss.setup(JSS.create());
|
|
|
2513
2512
|
const sheet$a = JSS.jss.createStyleSheet(style$a);
|
|
2514
2513
|
const styleString$a = sheet$a.toString();
|
|
2515
2514
|
function CheckboxFieldView(props) {
|
|
2515
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2516
2516
|
const { states, content, callbacks } = props;
|
|
2517
|
-
const validationErrors = states === null || states === void 0 ? void 0 : states.validationErrors;
|
|
2517
|
+
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2518
2518
|
return (index.h("div", { class: sheet$a.classes.FieldContainer },
|
|
2519
2519
|
index.h("style", { type: "text/css" },
|
|
2520
2520
|
vanillaStyle$4,
|
|
@@ -2522,7 +2522,10 @@ function CheckboxFieldView(props) {
|
|
|
2522
2522
|
index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
2523
2523
|
e.target.value = e.target.checked;
|
|
2524
2524
|
callbacks.setChecked(e.target.value);
|
|
2525
|
-
} }, (!content.checkboxOptional ? { required: true } : []), (
|
|
2525
|
+
} }, (!content.checkboxOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.checkboxName]) ? {
|
|
2526
|
+
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.checkboxName],
|
|
2527
|
+
}
|
|
2528
|
+
: {}), (!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName])
|
|
2526
2529
|
? {
|
|
2527
2530
|
class: sheet$a.classes.ErrorStyle,
|
|
2528
2531
|
}
|
|
@@ -2570,13 +2573,17 @@ JSS.jss.setup(JSS.create());
|
|
|
2570
2573
|
const sheet$b = JSS.jss.createStyleSheet(style$b);
|
|
2571
2574
|
const styleString$b = sheet$b.toString();
|
|
2572
2575
|
function DropdownFieldView(props) {
|
|
2576
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2573
2577
|
const { states, content } = props;
|
|
2574
|
-
const validationErrors = states === null || states === void 0 ? void 0 : states.validationErrors;
|
|
2578
|
+
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2575
2579
|
return (index.h("div", { class: sheet$b.classes.FieldContainer },
|
|
2576
2580
|
index.h("style", { type: "text/css" },
|
|
2577
2581
|
vanillaStyle$5,
|
|
2578
2582
|
styleString$b),
|
|
2579
|
-
index.h("sl-select", Object.assign({ exportparts: "label: input-label", label: content.dropdownLabel, name: `/${content.dropdownName}` }, (!content.dropdownOptional ? { required: true } : []), ((
|
|
2583
|
+
index.h("sl-select", Object.assign({ exportparts: "label: input-label", label: content.dropdownLabel, name: `/${content.dropdownName}` }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.dropdownName]) ? {
|
|
2584
|
+
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
|
|
2585
|
+
}
|
|
2586
|
+
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
|
|
2580
2587
|
class: sheet$b.classes.ErrorStyle,
|
|
2581
2588
|
}
|
|
2582
2589
|
: [])), content.selectOptions),
|
|
@@ -2603,13 +2610,17 @@ JSS.jss.setup(JSS.create());
|
|
|
2603
2610
|
const sheet$c = JSS.jss.createStyleSheet(style$c);
|
|
2604
2611
|
const styleString$c = sheet$c.toString();
|
|
2605
2612
|
function InputFieldView(props) {
|
|
2613
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2606
2614
|
const { states, content } = props;
|
|
2607
|
-
const validationErrors = states === null || states === void 0 ? void 0 : states.validationErrors;
|
|
2615
|
+
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2608
2616
|
return (index.h("div", { class: sheet$c.classes.FieldContainer },
|
|
2609
2617
|
index.h("style", { type: "text/css" },
|
|
2610
2618
|
vanillaStyle$6,
|
|
2611
2619
|
styleString$c),
|
|
2612
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label", name: `/${content.fieldName}`, type: content.fieldType, label: content.fieldLabel }, (!content.fieldOptional ? { required: true } : []), ((
|
|
2620
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label", name: `/${content.fieldName}`, type: content.fieldType, label: content.fieldLabel }, (!content.fieldOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.fieldName]) ? {
|
|
2621
|
+
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
|
|
2622
|
+
}
|
|
2623
|
+
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
|
|
2613
2624
|
class: sheet$c.classes.ErrorStyle,
|
|
2614
2625
|
helpText: global.intl.formatMessage({
|
|
2615
2626
|
id: `errorMessage-${content.fieldName}`,
|
|
@@ -18,8 +18,8 @@ const utils = require('./utils-6847bc06.js');
|
|
|
18
18
|
require('./sqm-text-span-view-b318af73.js');
|
|
19
19
|
require('./sqm-portal-container-view-2ddcaa12.js');
|
|
20
20
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
21
|
-
const useRegistrationFormState = require('./useRegistrationFormState-
|
|
22
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
21
|
+
const useRegistrationFormState = require('./useRegistrationFormState-bee054d6.js');
|
|
22
|
+
const ShadowViewAddon = require('./ShadowViewAddon-4b75a331.js');
|
|
23
23
|
require('./sqm-portal-section-view-1e5bbcb1.js');
|
|
24
24
|
|
|
25
25
|
const BigStat = class {
|
|
@@ -186,11 +186,11 @@ function RequiredPropsError({ missingProps, heading = "There was a problem loadi
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
function useCheckboxField() {
|
|
189
|
-
const
|
|
189
|
+
const registrationFormState = stencilHooks_module.d(useRegistrationFormState.REGISTRATION_FORM_STATE_CONTEXT);
|
|
190
190
|
const [checked, setChecked] = stencilHooks_module.useState(false);
|
|
191
191
|
return {
|
|
192
192
|
states: {
|
|
193
|
-
|
|
193
|
+
registrationFormState,
|
|
194
194
|
checked,
|
|
195
195
|
},
|
|
196
196
|
callbacks: {
|
|
@@ -251,7 +251,7 @@ const CheckboxField = class {
|
|
|
251
251
|
function useCheckboxFieldDemo(props) {
|
|
252
252
|
return cjs.cjs({
|
|
253
253
|
states: {
|
|
254
|
-
|
|
254
|
+
registrationFormState: {},
|
|
255
255
|
checked: false,
|
|
256
256
|
},
|
|
257
257
|
callbacks: {
|
|
@@ -315,7 +315,7 @@ const DividedLayout = class {
|
|
|
315
315
|
constructor(hostRef) {
|
|
316
316
|
index.registerInstance(this, hostRef);
|
|
317
317
|
/**
|
|
318
|
-
* Uses Shorthand CSS border syntax
|
|
318
|
+
* Uses Shorthand CSS border syntax
|
|
319
319
|
* @uiName Border Style
|
|
320
320
|
*/
|
|
321
321
|
this.dividerStyle = "1px solid #EAEAEA";
|
|
@@ -328,10 +328,10 @@ const DividedLayout = class {
|
|
|
328
328
|
};
|
|
329
329
|
|
|
330
330
|
function useDropdownField() {
|
|
331
|
-
const
|
|
331
|
+
const registrationFormState = stencilHooks_module.d(useRegistrationFormState.REGISTRATION_FORM_STATE_CONTEXT);
|
|
332
332
|
return {
|
|
333
333
|
states: {
|
|
334
|
-
|
|
334
|
+
registrationFormState,
|
|
335
335
|
},
|
|
336
336
|
};
|
|
337
337
|
}
|
|
@@ -379,7 +379,7 @@ const DropdownField = class {
|
|
|
379
379
|
function useDropdownFieldDemo(props) {
|
|
380
380
|
return cjs.cjs({
|
|
381
381
|
states: {
|
|
382
|
-
|
|
382
|
+
registrationFormState: {},
|
|
383
383
|
},
|
|
384
384
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
385
385
|
}
|
|
@@ -819,10 +819,10 @@ const SqmHookStoryContainer = class {
|
|
|
819
819
|
};
|
|
820
820
|
|
|
821
821
|
function useInputField() {
|
|
822
|
-
const
|
|
822
|
+
const registrationFormState = stencilHooks_module.d(useRegistrationFormState.REGISTRATION_FORM_STATE_CONTEXT);
|
|
823
823
|
return {
|
|
824
824
|
states: {
|
|
825
|
-
|
|
825
|
+
registrationFormState: registrationFormState,
|
|
826
826
|
},
|
|
827
827
|
};
|
|
828
828
|
}
|
|
@@ -870,7 +870,7 @@ const InputField = class {
|
|
|
870
870
|
function useInputFieldDemo(props) {
|
|
871
871
|
return cjs.cjs({
|
|
872
872
|
states: {
|
|
873
|
-
|
|
873
|
+
registrationFormState: {},
|
|
874
874
|
},
|
|
875
875
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
876
876
|
}
|
|
@@ -1112,10 +1112,8 @@ function useLeaderboardDemo(props) {
|
|
|
1112
1112
|
|
|
1113
1113
|
function useNameFields(props) {
|
|
1114
1114
|
const registrationFormState = stencilHooks_module.d(useRegistrationFormState.REGISTRATION_FORM_STATE_CONTEXT);
|
|
1115
|
-
const validationState = stencilHooks_module.d(useRegistrationFormState.FORM_VALIDATION_CONTEXT);
|
|
1116
1115
|
return {
|
|
1117
1116
|
states: {
|
|
1118
|
-
validationErrors: validationState === null || validationState === void 0 ? void 0 : validationState.validationErrors,
|
|
1119
1117
|
registrationFormState,
|
|
1120
1118
|
content: {
|
|
1121
1119
|
lastNameLabel: props.lastNameLabel,
|
|
@@ -1294,25 +1292,25 @@ const PortalChangePassword = class {
|
|
|
1294
1292
|
*/
|
|
1295
1293
|
this.modalChangePasswordHeader = "Change Password";
|
|
1296
1294
|
/**
|
|
1297
|
-
*
|
|
1295
|
+
* Modal cancel button text
|
|
1298
1296
|
*
|
|
1299
1297
|
* @uiName Cancel Button Text
|
|
1300
1298
|
*/
|
|
1301
1299
|
this.cancelText = "Cancel";
|
|
1302
1300
|
/**
|
|
1303
|
-
*
|
|
1301
|
+
* Modal change password button text
|
|
1304
1302
|
*
|
|
1305
1303
|
* @uiName Change Password Button Text
|
|
1306
1304
|
*/
|
|
1307
1305
|
this.changePasswordButtonText = "Change Password";
|
|
1308
1306
|
/**
|
|
1309
|
-
*
|
|
1307
|
+
* Password input field label
|
|
1310
1308
|
*
|
|
1311
|
-
* @uiName
|
|
1309
|
+
* @uiName Password Label
|
|
1312
1310
|
*/
|
|
1313
1311
|
this.passwordFieldLabel = "New Password";
|
|
1314
1312
|
/**
|
|
1315
|
-
*
|
|
1313
|
+
* Password confirmation input field label
|
|
1316
1314
|
*
|
|
1317
1315
|
* @uiName Confirm Password Label
|
|
1318
1316
|
*/
|
|
@@ -1458,9 +1456,9 @@ const PortalLogin = class {
|
|
|
1458
1456
|
index.registerInstance(this, hostRef);
|
|
1459
1457
|
this.ignored = true;
|
|
1460
1458
|
/**
|
|
1461
|
-
*
|
|
1459
|
+
* Page participants are navigated to after login.
|
|
1462
1460
|
*
|
|
1463
|
-
* @uiName Login Redirect
|
|
1461
|
+
* @uiName Login Redirect Path
|
|
1464
1462
|
* @uiWidget pageSelect
|
|
1465
1463
|
*/
|
|
1466
1464
|
this.nextPage = "/";
|
|
@@ -1477,8 +1475,7 @@ const PortalLogin = class {
|
|
|
1477
1475
|
*/
|
|
1478
1476
|
this.submitLabel = "Sign In";
|
|
1479
1477
|
/**
|
|
1480
|
-
*
|
|
1481
|
-
* @uiName Forgot Password Redirect
|
|
1478
|
+
* @uiName Forgot Password Redirect Path
|
|
1482
1479
|
* @uiWidget pageSelect
|
|
1483
1480
|
*/
|
|
1484
1481
|
this.forgotPasswordPath = "/forgotPassword";
|
|
@@ -1491,8 +1488,7 @@ const PortalLogin = class {
|
|
|
1491
1488
|
*/
|
|
1492
1489
|
this.registerLabel = "Register";
|
|
1493
1490
|
/**
|
|
1494
|
-
*
|
|
1495
|
-
* @uiName Register Button Redirect
|
|
1491
|
+
* @uiName Register Button Redirect Path
|
|
1496
1492
|
* @uiWidget pageSelect
|
|
1497
1493
|
*/
|
|
1498
1494
|
this.registerPath = "/register";
|
|
@@ -1538,7 +1534,7 @@ function useLoginDemo(props) {
|
|
|
1538
1534
|
function usePortalRegister(props) {
|
|
1539
1535
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1540
1536
|
const formRef = stencilHooks_module.useRef(null);
|
|
1541
|
-
const {
|
|
1537
|
+
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState.useRegistrationFormState({});
|
|
1542
1538
|
const [request, { loading, errors, data }] = index_module.je();
|
|
1543
1539
|
stencilHooks_module.useEffect(() => {
|
|
1544
1540
|
if (!formRef.current)
|
|
@@ -1579,11 +1575,16 @@ function usePortalRegister(props) {
|
|
|
1579
1575
|
confirmPassword: "Passwords do not match.",
|
|
1580
1576
|
};
|
|
1581
1577
|
}
|
|
1582
|
-
setValidationState({ error: "", validationErrors });
|
|
1583
1578
|
if (Object.keys(validationErrors).length) {
|
|
1579
|
+
setRegistrationFormState({ loading: false, error: "", validationErrors });
|
|
1584
1580
|
// early return for validation errors
|
|
1585
1581
|
return;
|
|
1586
1582
|
}
|
|
1583
|
+
setRegistrationFormState({
|
|
1584
|
+
loading: true,
|
|
1585
|
+
error: "",
|
|
1586
|
+
validationErrors: {},
|
|
1587
|
+
});
|
|
1587
1588
|
const { email, password } = formData;
|
|
1588
1589
|
delete formData.email;
|
|
1589
1590
|
delete formData.password;
|
|
@@ -1601,12 +1602,21 @@ function usePortalRegister(props) {
|
|
|
1601
1602
|
if (result instanceof Error) {
|
|
1602
1603
|
throw result;
|
|
1603
1604
|
}
|
|
1605
|
+
setRegistrationFormState({
|
|
1606
|
+
loading: false,
|
|
1607
|
+
error: "",
|
|
1608
|
+
validationErrors: {},
|
|
1609
|
+
});
|
|
1604
1610
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
1605
1611
|
index_module.fn.push(props.nextPage);
|
|
1606
1612
|
}
|
|
1607
1613
|
}
|
|
1608
1614
|
catch (error) {
|
|
1609
|
-
|
|
1615
|
+
setRegistrationFormState({
|
|
1616
|
+
loading: false,
|
|
1617
|
+
error: "Network request failed.",
|
|
1618
|
+
validationErrors: {},
|
|
1619
|
+
});
|
|
1610
1620
|
}
|
|
1611
1621
|
};
|
|
1612
1622
|
const inputFunction = useCallback.useCallback((e) => {
|
|
@@ -1626,13 +1636,13 @@ function usePortalRegister(props) {
|
|
|
1626
1636
|
}
|
|
1627
1637
|
else {
|
|
1628
1638
|
errorMessage =
|
|
1629
|
-
((_f = (_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_j = (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || (
|
|
1639
|
+
((_f = (_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_j = (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || (registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.error);
|
|
1630
1640
|
}
|
|
1631
1641
|
return {
|
|
1632
1642
|
states: {
|
|
1633
1643
|
loading,
|
|
1634
1644
|
error: errorMessage,
|
|
1635
|
-
|
|
1645
|
+
registrationFormState,
|
|
1636
1646
|
confirmPassword: props.confirmPassword,
|
|
1637
1647
|
hideInputs: props.hideInputs,
|
|
1638
1648
|
loginPath: props.loginPath,
|
|
@@ -1653,16 +1663,16 @@ const PortalRegister = class {
|
|
|
1653
1663
|
index.registerInstance(this, hostRef);
|
|
1654
1664
|
this.ignored = true;
|
|
1655
1665
|
/**
|
|
1656
|
-
*
|
|
1666
|
+
* Page participants are navigated to after registration.
|
|
1657
1667
|
*
|
|
1658
|
-
* @uiName Registration Redirect
|
|
1668
|
+
* @uiName Registration Redirect Path
|
|
1659
1669
|
* @uiWidget pageSelect
|
|
1660
1670
|
*/
|
|
1661
1671
|
this.nextPage = "/";
|
|
1662
1672
|
/**
|
|
1663
1673
|
* The page that participants are redirected to from the verification email.
|
|
1664
1674
|
*
|
|
1665
|
-
* @uiName Email
|
|
1675
|
+
* @uiName Email Redirection Path
|
|
1666
1676
|
* @uiWidget pageSelect
|
|
1667
1677
|
*/
|
|
1668
1678
|
this.redirectPath = "/verifyEmail";
|
|
@@ -1683,10 +1693,12 @@ const PortalRegister = class {
|
|
|
1683
1693
|
*/
|
|
1684
1694
|
this.loginLabel = "Sign in";
|
|
1685
1695
|
/**
|
|
1686
|
-
* @uiName Confirm Password
|
|
1696
|
+
* @uiName Confirm Password Label
|
|
1687
1697
|
*/
|
|
1688
1698
|
this.confirmPasswordLabel = "Confirm Password";
|
|
1689
1699
|
/**
|
|
1700
|
+
* Show or hide the confirm password input.
|
|
1701
|
+
*
|
|
1690
1702
|
* @uiName Show Confirm Password Field
|
|
1691
1703
|
*/
|
|
1692
1704
|
this.confirmPassword = false;
|
|
@@ -1695,9 +1707,9 @@ const PortalRegister = class {
|
|
|
1695
1707
|
*/
|
|
1696
1708
|
this.disablePasswordValidation = false;
|
|
1697
1709
|
/**
|
|
1698
|
-
*
|
|
1710
|
+
* Hide default input fields to use custom fields.
|
|
1699
1711
|
*
|
|
1700
|
-
* @uiName Hide Default
|
|
1712
|
+
* @uiName Hide Default Inputs
|
|
1701
1713
|
*/
|
|
1702
1714
|
this.hideInputs = false;
|
|
1703
1715
|
/**
|
|
@@ -1705,9 +1717,9 @@ const PortalRegister = class {
|
|
|
1705
1717
|
*/
|
|
1706
1718
|
this.pageLabel = "Register";
|
|
1707
1719
|
/**
|
|
1708
|
-
*
|
|
1720
|
+
* Login button redirection path.
|
|
1709
1721
|
*
|
|
1710
|
-
* @uiName Login Redirect
|
|
1722
|
+
* @uiName Login Redirect Path
|
|
1711
1723
|
* @uiWidget pageSelect
|
|
1712
1724
|
*/
|
|
1713
1725
|
this.loginPath = "/login";
|
|
@@ -2031,12 +2043,12 @@ const SqmReferralIframe = class {
|
|
|
2031
2043
|
index.registerInstance(this, hostRef);
|
|
2032
2044
|
this.ignored = true;
|
|
2033
2045
|
/**
|
|
2034
|
-
*
|
|
2046
|
+
* Height of the iframe container
|
|
2035
2047
|
* @uiName Iframe Height
|
|
2036
2048
|
*/
|
|
2037
2049
|
this.iframeHeight = "100%";
|
|
2038
2050
|
/**
|
|
2039
|
-
* Width of the iframe container
|
|
2051
|
+
* Width of the iframe container
|
|
2040
2052
|
* @uiName Iframe Width
|
|
2041
2053
|
*/
|
|
2042
2054
|
this.iframeWidth = "100%";
|
|
@@ -3835,11 +3847,11 @@ const UserName = class {
|
|
|
3835
3847
|
index.registerInstance(this, hostRef);
|
|
3836
3848
|
this.ignored = true;
|
|
3837
3849
|
/**
|
|
3838
|
-
*
|
|
3850
|
+
* Fallback name for unknown users
|
|
3851
|
+
* @uiName Fallback Name
|
|
3839
3852
|
*/
|
|
3840
3853
|
this.fallback = "Anonymous User";
|
|
3841
3854
|
/**
|
|
3842
|
-
* Text displayed while the participant’s name is loading.
|
|
3843
3855
|
* @uiName Loading Text
|
|
3844
3856
|
*/
|
|
3845
3857
|
this.loadingText = "...";
|
|
@@ -9,7 +9,7 @@ const index_module = require('./index.module-93c78ac7.js');
|
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
const mixins = require('./mixins-fe9d4112.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
|
-
const useRegistrationFormState = require('./useRegistrationFormState-
|
|
12
|
+
const useRegistrationFormState = require('./useRegistrationFormState-bee054d6.js');
|
|
13
13
|
|
|
14
14
|
var constants = {
|
|
15
15
|
error: {
|
|
@@ -487,7 +487,7 @@ const vanillaStyle = `
|
|
|
487
487
|
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
488
488
|
const styleString$1 = sheet$1.toString();
|
|
489
489
|
function PortalResetPasswordView(props) {
|
|
490
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
490
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
491
491
|
const { states, callbacks } = props;
|
|
492
492
|
return (index.h("div", { class: sheet$1.classes.InputContainer },
|
|
493
493
|
index.h("style", { type: "text/css" },
|
|
@@ -500,16 +500,16 @@ function PortalResetPasswordView(props) {
|
|
|
500
500
|
} }, (((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.initialData) === null || _d === void 0 ? void 0 : _d.password) ? {
|
|
501
501
|
value: (_f = (_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.initialData) === null || _f === void 0 ? void 0 : _f.password,
|
|
502
502
|
}
|
|
503
|
-
: {}), (((_g = states.
|
|
503
|
+
: {}), (((_h = (_g = states.registrationFormState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.password) ? {
|
|
504
504
|
class: sheet$1.classes.ErrorStyle,
|
|
505
|
-
helpText: ((
|
|
505
|
+
helpText: ((_k = (_j = states.registrationFormState) === null || _j === void 0 ? void 0 : _j.validationErrors) === null || _k === void 0 ? void 0 : _k.password) ||
|
|
506
|
+
"Cannot be empty",
|
|
506
507
|
}
|
|
507
508
|
: []), { onInput: (input) => states.enableValidation && callbacks.onInput(input) })),
|
|
508
509
|
states.dynamicValidation));
|
|
509
510
|
}
|
|
510
511
|
|
|
511
512
|
function usePasswordField(props) {
|
|
512
|
-
const validationState = stencilHooks_module.d(useRegistrationFormState.FORM_VALIDATION_CONTEXT);
|
|
513
513
|
const registrationFormState = stencilHooks_module.d(useRegistrationFormState.REGISTRATION_FORM_STATE_CONTEXT);
|
|
514
514
|
const [dynamicValidation, setDynamicValidation] = stencilHooks_module.useState("");
|
|
515
515
|
function onInput(input) {
|
|
@@ -521,7 +521,6 @@ function usePasswordField(props) {
|
|
|
521
521
|
enableValidation: !props.disableValidation,
|
|
522
522
|
dynamicValidation,
|
|
523
523
|
registrationFormState,
|
|
524
|
-
validationErrors: validationState === null || validationState === void 0 ? void 0 : validationState.validationErrors,
|
|
525
524
|
content: {
|
|
526
525
|
fieldLabel: props.fieldLabel,
|
|
527
526
|
},
|
|
@@ -574,8 +573,7 @@ function usePasswordFieldDemo(props) {
|
|
|
574
573
|
states: {
|
|
575
574
|
enableValidation: !props.disableValidation,
|
|
576
575
|
dynamicValidation,
|
|
577
|
-
|
|
578
|
-
registrationFormState: {},
|
|
576
|
+
registrationFormState: ((_f = (_e = props === null || props === void 0 ? void 0 : props.demoData) === null || _e === void 0 ? void 0 : _e.states) === null || _f === void 0 ? void 0 : _f.registrationFormState) || {},
|
|
579
577
|
content: {
|
|
580
578
|
fieldLabel: props.fieldLabel,
|
|
581
579
|
},
|
|
@@ -64,9 +64,9 @@ const PortalEmailVerification = class {
|
|
|
64
64
|
index.registerInstance(this, hostRef);
|
|
65
65
|
this.ignored = true;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* The microsite page that participants are redirected to from the verification email.
|
|
68
68
|
*
|
|
69
|
-
* @uiName Email
|
|
69
|
+
* @uiName Email Redirection Path
|
|
70
70
|
* @uiWidget pageSelect
|
|
71
71
|
*/
|
|
72
72
|
this.redirectPath = "/verifyEmail";
|
|
@@ -62,9 +62,9 @@ const PortalForgotPassword = class {
|
|
|
62
62
|
index.registerInstance(this, hostRef);
|
|
63
63
|
this.ignored = true;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* The microsite page that participants are redirected to from the password reset email.
|
|
66
66
|
*
|
|
67
|
-
* @uiName Email
|
|
67
|
+
* @uiName Email Redirection Path
|
|
68
68
|
* @uiWidget pageSelect
|
|
69
69
|
*/
|
|
70
70
|
this.redirectPath = "/resetPassword";
|
|
@@ -17,7 +17,7 @@ const PortalLogout = class {
|
|
|
17
17
|
index.registerInstance(this, hostRef);
|
|
18
18
|
this.ignored = true;
|
|
19
19
|
/**
|
|
20
|
-
* Redirect participants to this
|
|
20
|
+
* Redirect participants to this path when they log out
|
|
21
21
|
*
|
|
22
22
|
* @uiName Logout Redirect Path
|
|
23
23
|
* @uiWidget pageSelect
|
|
@@ -37,7 +37,7 @@ const PortalProtectedRoute = class {
|
|
|
37
37
|
index.registerInstance(this, hostRef);
|
|
38
38
|
this.ignored = true;
|
|
39
39
|
/**
|
|
40
|
-
* Redirect participants to this
|
|
40
|
+
* Redirect participants to this path they are not logged in.
|
|
41
41
|
*
|
|
42
42
|
* @uiName Redirect Path
|
|
43
43
|
*/
|
|
@@ -47,7 +47,7 @@ const PortalProtectedRoute = class {
|
|
|
47
47
|
*/
|
|
48
48
|
this.requireEmailVerification = false;
|
|
49
49
|
/**
|
|
50
|
-
* Redirect participants to this
|
|
50
|
+
* Redirect participants to this path when email verification is required but they have not verified their email.
|
|
51
51
|
*
|
|
52
52
|
* @uiName Unverified Participant Redirect Path
|
|
53
53
|
*/
|