@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
|
@@ -23,7 +23,7 @@ import { P as PortalContainerView } from './sqm-portal-container-view-228f2b65.j
|
|
|
23
23
|
import { P as PortalProfileView } from './sqm-portal-profile-view-ec58906b.js';
|
|
24
24
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-06f6ffac.js';
|
|
25
25
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-833644ac.js';
|
|
26
|
-
import { S as ShareButtonView, L as LeaderboardView, a as ShareLinkView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, b as useShareButton, c as useDemoBigStat, d as StatContainerView, e as PortalChangePasswordView, f as PortalLoginView, g as PortalRegisterView, T as TaskCardView, h as ProgressBarView, R as ReferralIframeView, N as NameFieldsView, C as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as CardFeedView, H as autoColorScaleCss, J as ShadowViewAddon } from './ShadowViewAddon-
|
|
26
|
+
import { S as ShareButtonView, L as LeaderboardView, a as ShareLinkView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, b as useShareButton, c as useDemoBigStat, d as StatContainerView, e as PortalChangePasswordView, f as PortalLoginView, g as PortalRegisterView, T as TaskCardView, h as ProgressBarView, R as ReferralIframeView, N as NameFieldsView, C as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as CardFeedView, H as autoColorScaleCss, J as ShadowViewAddon } from './ShadowViewAddon-c201908c.js';
|
|
27
27
|
import { P as PortalSectionView } from './sqm-portal-section-view-a991e019.js';
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -4053,6 +4053,7 @@ const PortalRegister_stories = {
|
|
|
4053
4053
|
};
|
|
4054
4054
|
const defaultProps$3 = {
|
|
4055
4055
|
states: {
|
|
4056
|
+
registrationFormState: {},
|
|
4056
4057
|
error: "",
|
|
4057
4058
|
loading: false,
|
|
4058
4059
|
confirmPassword: true,
|
|
@@ -4071,6 +4072,7 @@ const defaultProps$3 = {
|
|
|
4071
4072
|
const errorProps$1 = {
|
|
4072
4073
|
states: {
|
|
4073
4074
|
error: "Something went wrong. Please try again.",
|
|
4075
|
+
registrationFormState: {},
|
|
4074
4076
|
loading: false,
|
|
4075
4077
|
confirmPassword: true,
|
|
4076
4078
|
hideInputs: false,
|
|
@@ -4090,6 +4092,7 @@ const errorProps$1 = {
|
|
|
4090
4092
|
};
|
|
4091
4093
|
const loadingProps$1 = {
|
|
4092
4094
|
states: {
|
|
4095
|
+
registrationFormState: {},
|
|
4093
4096
|
error: "",
|
|
4094
4097
|
loading: true,
|
|
4095
4098
|
confirmPassword: true,
|
|
@@ -4107,6 +4110,7 @@ const loadingProps$1 = {
|
|
|
4107
4110
|
};
|
|
4108
4111
|
const slottedProps = {
|
|
4109
4112
|
states: {
|
|
4113
|
+
registrationFormState: {},
|
|
4110
4114
|
error: "",
|
|
4111
4115
|
loading: false,
|
|
4112
4116
|
confirmPassword: true,
|
|
@@ -4134,6 +4138,7 @@ const RegisterLoading = () => h(PortalRegisterView, Object.assign({}, loadingPro
|
|
|
4134
4138
|
const FieldsHidden = () => {
|
|
4135
4139
|
return (h("sqm-portal-register", { demoData: {
|
|
4136
4140
|
states: {
|
|
4141
|
+
registrationFormState: {},
|
|
4137
4142
|
error: "",
|
|
4138
4143
|
loading: true,
|
|
4139
4144
|
confirmPassword: true,
|
|
@@ -5981,8 +5986,9 @@ const Start = () => {
|
|
|
5981
5986
|
initValue: "",
|
|
5982
5987
|
states: {
|
|
5983
5988
|
enableValidation: true,
|
|
5984
|
-
registrationFormState: {
|
|
5985
|
-
|
|
5989
|
+
registrationFormState: {
|
|
5990
|
+
validationErrors: {},
|
|
5991
|
+
},
|
|
5986
5992
|
content: {
|
|
5987
5993
|
fieldLabel: "Password",
|
|
5988
5994
|
},
|
|
@@ -5994,8 +6000,9 @@ const EmptyError = () => {
|
|
|
5994
6000
|
initValue: "",
|
|
5995
6001
|
states: {
|
|
5996
6002
|
enableValidation: true,
|
|
5997
|
-
|
|
5998
|
-
|
|
6003
|
+
registrationFormState: {
|
|
6004
|
+
validationErrors: { password: "Cannot be empty" },
|
|
6005
|
+
},
|
|
5999
6006
|
content: {
|
|
6000
6007
|
fieldLabel: "Password",
|
|
6001
6008
|
},
|
|
@@ -6007,8 +6014,9 @@ const ValidationError = () => {
|
|
|
6007
6014
|
initValue: "asdf",
|
|
6008
6015
|
states: {
|
|
6009
6016
|
enableValidation: true,
|
|
6010
|
-
registrationFormState: {
|
|
6011
|
-
|
|
6017
|
+
registrationFormState: {
|
|
6018
|
+
validationErrors: { password: "Incomplete" },
|
|
6019
|
+
},
|
|
6012
6020
|
content: {
|
|
6013
6021
|
fieldLabel: "Password",
|
|
6014
6022
|
},
|
|
@@ -9576,21 +9584,21 @@ var marked = createCommonjsModule(function (module, exports) {
|
|
|
9576
9584
|
})));
|
|
9577
9585
|
});
|
|
9578
9586
|
|
|
9579
|
-
const LoginReadme = "# sqm-portal-login\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description
|
|
9587
|
+
const LoginReadme = "# sqm-portal-login\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| --------------------- | ----------------------- | ----------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; forgotPasswordPath: string; registerPath: string; }; content?: { forgotPasswordButton?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; }; }` | `undefined` |\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\n| `forgotPasswordLabel` | `forgot-password-label` | | `string` | `\"Forgot Password?\"` |\n| `forgotPasswordPath` | `forgot-password-path` | | `string` | `\"/forgotPassword\"` |\n| `nextPage` | `next-page` | Page participants are navigated to after login. | `string` | `\"/\"` |\n| `pageLabel` | `page-label` | | `string` | `\"Sign in to your account\"` |\n| `passwordLabel` | `password-label` | | `string` | `\"Password\"` |\n| `registerLabel` | `register-label` | | `string` | `\"Register\"` |\n| `registerPath` | `register-path` | | `string` | `\"/register\"` |\n| `submitLabel` | `submit-label` | | `string` | `\"Sign In\"` |\n\n\n## Dependencies\n\n### Used by\n\n - [sqm-stencilbook](../sqm-stencilbook)\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-login --> sqm-form-message\n sqm-stencilbook --> sqm-portal-login\n style sqm-portal-login fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9580
9588
|
|
|
9581
9589
|
const ReferralIframeReadme = "# sqm-referral-iframe\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| -------------- | --------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ----------- |\n| `demoData` | -- | | `{ states?: { content: { iframeSrc: string; iframeHeight: string; iframeWidth: string; }; }; data?: { shareCode: string; }; }` | `undefined` |\n| `iframeHeight` | `iframe-height` | Height of the iframe container | `string` | `\"100%\"` |\n| `iframeSrc` | `iframe-src` | URL of iframe to display | `string` | `undefined` |\n| `iframeWidth` | `iframe-width` | Width of the iframe container | `string` | `\"100%\"` |\n\n\n## Dependencies\n\n### Used by\n\n - [sqm-stencilbook](../sqm-stencilbook)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-stencilbook --> sqm-referral-iframe\n style sqm-referral-iframe fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9582
9590
|
|
|
9583
|
-
const ForgotPasswordReadme = "# sqm-portal-forgot-password\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description
|
|
9591
|
+
const ForgotPasswordReadme = "# sqm-portal-forgot-password\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| -------------- | --------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; loginPath: string; }; content?: { secondaryButton: any; messageSlot: any; emailLabel?: string; submitLabel?: string; }; }` | `undefined` |\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\n| `headerText` | `header-text` | | `string` | `\"Enter your email below to receive a password reset link.\"` |\n| `loginPath` | `login-path` | | `string` | `\"/login\"` |\n| `loginText` | `login-text` | Sign In Link Text | `string` | `\"Sign In\"` |\n| `redirectPath` | `redirect-path` | The microsite page that participants are redirected to from the password reset email. | `string` | `\"/resetPassword\"` |\n| `submitLabel` | `submit-label` | | `string` | `\"Request Password Reset\"` |\n\n\n## Dependencies\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-forgot-password --> sqm-form-message\n style sqm-portal-forgot-password fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9584
9592
|
|
|
9585
|
-
const RegisterReadme = "# sqm-portal-register\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type
|
|
9593
|
+
const RegisterReadme = "# sqm-portal-register\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| --------------------------- | ----------------------------- | ------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |\n| `confirmPassword` | `confirm-password` | Show or hide the confirm password input. | `boolean` | `false` |\n| `confirmPasswordLabel` | `confirm-password-label` | | `string` | `\"Confirm Password\"` |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; registrationFormState: RegistrationFormState; disablePasswordValidation?: boolean; loginPath: string; }; refs?: { formRef: any; }; content?: { formData?: VNode; terms?: VNode; passwordField?: VNode; secondaryButton?: VNode; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; }` | `undefined` |\n| `disablePasswordValidation` | `disable-password-validation` | | `boolean` | `false` |\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\n| `hideInputs` | `hide-inputs` | Hide default input fields to use custom fields. | `boolean` | `false` |\n| `loginLabel` | `login-label` | | `string` | `\"Sign in\"` |\n| `loginPath` | `login-path` | Login button redirection path. | `string` | `\"/login\"` |\n| `nextPage` | `next-page` | Page participants are navigated to after registration. | `string` | `\"/\"` |\n| `pageLabel` | `page-label` | | `string` | `\"Register\"` |\n| `passwordLabel` | `password-label` | | `string` | `\"Password\"` |\n| `redirectPath` | `redirect-path` | The page that participants are redirected to from the verification email. | `string` | `\"/verifyEmail\"` |\n| `submitLabel` | `submit-label` | | `string` | `\"Register\"` |\n\n\n## Dependencies\n\n### Used by\n\n - [sqm-stencilbook](../sqm-stencilbook)\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n- [sqm-password-field](../sqm-password-field)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-register --> sqm-form-message\n sqm-portal-register --> sqm-password-field\n sqm-stencilbook --> sqm-portal-register\n style sqm-portal-register fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9586
9594
|
|
|
9587
|
-
const EditProfileReadme = "# sqm-portal-profile\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description
|
|
9595
|
+
const EditProfileReadme = "# sqm-portal-profile\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| ------------------------ | --------------------------- | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |\n| `countrytext` | `countrytext` | | `string` | `\"Country\"` |\n| `demoData` | -- | | `{ states?: { success: boolean; loading: boolean; submitDisabled: boolean; showCountry: boolean; formState: { country: string; firstName: string; lastName: string; errors: any; error: string; }; user: { id: string; accountId: string; firstName: string; lastName: string; email: string; countryCode: string; }; text: { firstnametext: string; lastnametext: string; emailtext: string; countrytext: string; editProfileHeader: string; editProfileSubHeader: string; submitChangeButtonText: string; }; }; }` | `undefined` |\n| `editProfileHeader` | `edit-profile-header` | | `string` | `\"Edit your profile\"` |\n| `editProfileSubHeader` | `edit-profile-sub-header` | | `string` | `\"Personal Information\"` |\n| `emailtext` | `emailtext` | | `string` | `\"Email\"` |\n| `firstnametext` | `firstnametext` | | `string` | `\"First Name\"` |\n| `hideCountry` | `hide-country` | Show or hide the country field. | `boolean` | `false` |\n| `lastnametext` | `lastnametext` | | `string` | `\"Last Name\"` |\n| `submitChangeButtonText` | `submit-change-button-text` | | `string` | `\"Submit Changes\"` |\n\n\n## Dependencies\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-profile --> sqm-form-message\n style sqm-portal-profile fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9588
9596
|
|
|
9589
|
-
const ResetPasswordReadme = "# sqm-portal-reset-password\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description
|
|
9597
|
+
const ResetPasswordReadme = "# sqm-portal-reset-password\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| --------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |\n| `confirmPassword` | `confirm-password` | Show or hide confirm password field. | `boolean` | `false` |\n| `confirmPasswordFieldLabel` | `confirm-password-field-label` | | `string` | `\"Confirm Password\"` |\n| `continueButtonText` | `continue-button-text` | Button text displayed after a successful password reset. | `string` | `\"Continue\"` |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; reset: boolean; confirmPassword: boolean; oobCodeValidating: boolean; oobCodeValid: boolean; passwordDemoData?: PasswordFieldViewDemoProps; content: { passwordResetHeader: string; resetPasswordHeader: string; continueButtonText: string; resetPasswordButtonText: string; confirmPasswordFieldLabel: string; passwordFieldLabel: string; }; }; }` | `undefined` |\n| `failedPage` | `failed-page` | The page that participants are redirected to if the reset fails due to outdated password reset attempt. | `string` | `\"/\"` |\n| `nextPage` | `next-page` | The page that participants are redirected to when the password reset succeeds. | `string` | `\"/\"` |\n| `passwordFieldLabel` | `password-field-label` | | `string` | `\"New Password\"` |\n| `passwordResetHeader` | `password-reset-header` | Displayed after a successful password reset. | `string` | `\"Password reset\"` |\n| `resetPasswordButtonText` | `reset-password-button-text` | | `string` | `\"Reset Password\"` |\n| `resetPasswordHeader` | `reset-password-header` | | `string` | `\"Reset your password\"` |\n\n\n## Dependencies\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n- [sqm-password-field](../sqm-password-field)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-reset-password --> sqm-form-message\n sqm-portal-reset-password --> sqm-password-field\n style sqm-portal-reset-password fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9590
9598
|
|
|
9591
9599
|
const EmailVerificationReadme = "# sqm-portal-email-verification\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| ------------------------- | --------------------------- | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; }; content?: { email: string; verifyMessage: string; emailVerificationHeader: string; resendEmailButtonText: string; }; }` | `undefined` |\n| `emailVerificationHeader` | `email-verification-header` | | `string` | `\"Verify your email\"` |\n| `redirectPath` | `redirect-path` | The microsite page that participants are redirected to from the verification email. | `string` | `\"/verifyEmail\"` |\n| `resendEmailButtonText` | `resend-email-button-text` | | `string` | `\"Re-send Email\"` |\n| `verifyMessage` | `verify-message` | | `string` | `\"A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email with invalidate the previous email.\"` |\n\n\n## Dependencies\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-email-verification --> sqm-form-message\n style sqm-portal-email-verification fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9592
9600
|
|
|
9593
|
-
const EmailVerifiedReadme = "# sqm-portal-verify-email\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description
|
|
9601
|
+
const EmailVerifiedReadme = "# sqm-portal-verify-email\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| ------------ | ------------- | -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ----------- |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; verified: boolean; }; data?: { oobCode: string; }; }` | `undefined` |\n| `failedPage` | `failed-page` | The page that participants are redirected to if verification fails due to outdated verification attempt. | `string` | `\"/\"` |\n| `nextPage` | `next-page` | The page that participants are redirected to when the verification succeeds. | `string` | `\"/\"` |\n\n\n## Dependencies\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-verify-email --> sqm-form-message\n style sqm-portal-verify-email fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9594
9602
|
|
|
9595
9603
|
const PortalTemplates_stories = {
|
|
9596
9604
|
title: "Templates / Portal",
|
|
@@ -10061,7 +10069,9 @@ const NameFields_stories = {
|
|
|
10061
10069
|
};
|
|
10062
10070
|
const props$1 = {
|
|
10063
10071
|
states: {
|
|
10064
|
-
|
|
10072
|
+
registrationFormState: {
|
|
10073
|
+
validationErrors: undefined,
|
|
10074
|
+
},
|
|
10065
10075
|
content: {
|
|
10066
10076
|
firstNameLabel: "First Name",
|
|
10067
10077
|
lastNameLabel: "Last Name",
|
|
@@ -10070,9 +10080,11 @@ const props$1 = {
|
|
|
10070
10080
|
};
|
|
10071
10081
|
const errorProps$8 = {
|
|
10072
10082
|
states: {
|
|
10073
|
-
|
|
10074
|
-
|
|
10075
|
-
|
|
10083
|
+
registrationFormState: {
|
|
10084
|
+
validationErrors: {
|
|
10085
|
+
firstName: "Cannot be empty",
|
|
10086
|
+
lastName: "Cannot be empty",
|
|
10087
|
+
},
|
|
10076
10088
|
},
|
|
10077
10089
|
content: {
|
|
10078
10090
|
firstNameLabel: "First Name",
|
|
@@ -10104,7 +10116,9 @@ const CheckboxField_stories = {
|
|
|
10104
10116
|
};
|
|
10105
10117
|
const defaultProps$a = {
|
|
10106
10118
|
states: {
|
|
10107
|
-
|
|
10119
|
+
registrationFormState: {
|
|
10120
|
+
validationErrors: {},
|
|
10121
|
+
},
|
|
10108
10122
|
checked: false,
|
|
10109
10123
|
},
|
|
10110
10124
|
content: {
|
|
@@ -10120,6 +10134,7 @@ const defaultProps$a = {
|
|
|
10120
10134
|
};
|
|
10121
10135
|
const defaultRegisterProps = {
|
|
10122
10136
|
states: {
|
|
10137
|
+
registrationFormState: {},
|
|
10123
10138
|
error: "",
|
|
10124
10139
|
loading: false,
|
|
10125
10140
|
confirmPassword: true,
|
|
@@ -10146,14 +10161,18 @@ const CustomLabel = createHookStory(() => (h(CheckboxFieldView, Object.assign({}
|
|
|
10146
10161
|
} }))));
|
|
10147
10162
|
const Error$3 = createHookStory(() => (h(CheckboxFieldView, Object.assign({}, defaultProps$a, { states: {
|
|
10148
10163
|
...defaultProps$a.states,
|
|
10149
|
-
|
|
10150
|
-
|
|
10164
|
+
registrationFormState: {
|
|
10165
|
+
validationErrors: {
|
|
10166
|
+
agree: "Must be checked",
|
|
10167
|
+
},
|
|
10151
10168
|
},
|
|
10152
10169
|
} }))));
|
|
10153
10170
|
const CustomError = createHookStory(() => (h(CheckboxFieldView, Object.assign({}, defaultProps$a, { states: {
|
|
10154
10171
|
...defaultProps$a.states,
|
|
10155
|
-
|
|
10156
|
-
|
|
10172
|
+
registrationFormState: {
|
|
10173
|
+
validationErrors: {
|
|
10174
|
+
agree: "Must be checked",
|
|
10175
|
+
},
|
|
10157
10176
|
},
|
|
10158
10177
|
}, content: {
|
|
10159
10178
|
...defaultProps$a.content,
|
|
@@ -10275,7 +10294,7 @@ const DropdownField_stories = {
|
|
|
10275
10294
|
};
|
|
10276
10295
|
const defaultProps$b = {
|
|
10277
10296
|
states: {
|
|
10278
|
-
|
|
10297
|
+
registrationFormState: {},
|
|
10279
10298
|
},
|
|
10280
10299
|
content: {
|
|
10281
10300
|
dropdownName: "options",
|
|
@@ -10295,14 +10314,21 @@ const CustomLabel$1 = createHookStory(() => (h(DropdownFieldView, Object.assign(
|
|
|
10295
10314
|
} }))));
|
|
10296
10315
|
const Error$4 = createHookStory(() => (h(DropdownFieldView, Object.assign({}, defaultProps$b, { states: {
|
|
10297
10316
|
...defaultProps$b.states,
|
|
10298
|
-
|
|
10299
|
-
|
|
10317
|
+
registrationFormState: {
|
|
10318
|
+
validationErrors: {
|
|
10319
|
+
options: "Must select an option",
|
|
10320
|
+
},
|
|
10300
10321
|
},
|
|
10301
10322
|
} }))));
|
|
10302
|
-
const CustomError$1 = createHookStory(() => (h(DropdownFieldView, Object.assign({}, defaultProps$b, { content: {
|
|
10323
|
+
const CustomError$1 = createHookStory(() => (h(DropdownFieldView, Object.assign({}, defaultProps$b, { content: {
|
|
10324
|
+
...defaultProps$b.content,
|
|
10325
|
+
errorMessage: "An option must be selected to continue",
|
|
10326
|
+
}, states: {
|
|
10303
10327
|
...defaultProps$b.states,
|
|
10304
|
-
|
|
10305
|
-
|
|
10328
|
+
registrationFormState: {
|
|
10329
|
+
validationErrors: {
|
|
10330
|
+
options: "Must select an option",
|
|
10331
|
+
},
|
|
10306
10332
|
},
|
|
10307
10333
|
} }))));
|
|
10308
10334
|
|
|
@@ -10384,7 +10410,9 @@ const InputField_stories = {
|
|
|
10384
10410
|
};
|
|
10385
10411
|
const defaultProps$c = {
|
|
10386
10412
|
states: {
|
|
10387
|
-
|
|
10413
|
+
registrationFormState: {
|
|
10414
|
+
validationErrors: {},
|
|
10415
|
+
},
|
|
10388
10416
|
},
|
|
10389
10417
|
content: {
|
|
10390
10418
|
fieldName: "field",
|
|
@@ -10396,6 +10424,7 @@ const defaultProps$c = {
|
|
|
10396
10424
|
};
|
|
10397
10425
|
const defaultRegisterProps$1 = {
|
|
10398
10426
|
states: {
|
|
10427
|
+
registrationFormState: {},
|
|
10399
10428
|
error: "",
|
|
10400
10429
|
loading: false,
|
|
10401
10430
|
confirmPassword: true,
|
|
@@ -10415,8 +10444,10 @@ const Default$d = () => h(InputFieldView, Object.assign({}, defaultProps$c));
|
|
|
10415
10444
|
const CustomLabel$2 = () => (h(InputFieldView, Object.assign({}, defaultProps$c, { content: { ...defaultProps$c.content, fieldLabel: "My Label" } })));
|
|
10416
10445
|
const Error$5 = () => (h(InputFieldView, Object.assign({}, defaultProps$c, { states: {
|
|
10417
10446
|
...defaultProps$c.states,
|
|
10418
|
-
|
|
10419
|
-
|
|
10447
|
+
registrationFormState: {
|
|
10448
|
+
validationErrors: {
|
|
10449
|
+
field: "Cannot be empty",
|
|
10450
|
+
},
|
|
10420
10451
|
},
|
|
10421
10452
|
} })));
|
|
10422
10453
|
const CustomError$2 = () => (h(InputFieldView, Object.assign({}, defaultProps$c, { content: {
|
|
@@ -10424,8 +10455,10 @@ const CustomError$2 = () => (h(InputFieldView, Object.assign({}, defaultProps$c,
|
|
|
10424
10455
|
errorMessage: "A value must be entered to continue",
|
|
10425
10456
|
}, states: {
|
|
10426
10457
|
...defaultProps$c.states,
|
|
10427
|
-
|
|
10428
|
-
|
|
10458
|
+
registrationFormState: {
|
|
10459
|
+
validationErrors: {
|
|
10460
|
+
field: "Cannot be empty",
|
|
10461
|
+
},
|
|
10429
10462
|
},
|
|
10430
10463
|
} })));
|
|
10431
10464
|
const DateType = () => {
|
package/dist/esm/{useRegistrationFormState-e94eec81.js → useRegistrationFormState-3cdf2939.js}
RENAMED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { y } from './stencil-hooks.module-eefa3570.js';
|
|
2
2
|
import { R } from './index.module-25496635.js';
|
|
3
3
|
|
|
4
|
-
const FORM_VALIDATION_CONTEXT = "sq:validation-state";
|
|
5
|
-
function useValidationState(formState) {
|
|
6
|
-
const host = R();
|
|
7
|
-
const [validationState, setValidationState] = y(host, FORM_VALIDATION_CONTEXT, formState);
|
|
8
|
-
return { validationState, setValidationState };
|
|
9
|
-
}
|
|
10
|
-
|
|
11
4
|
const REGISTRATION_FORM_STATE_CONTEXT = "sq:registration-form-state";
|
|
12
5
|
function useRegistrationFormState(formState) {
|
|
13
6
|
const host = R();
|
|
@@ -15,4 +8,4 @@ function useRegistrationFormState(formState) {
|
|
|
15
8
|
return { registrationFormState, setRegistrationFormState };
|
|
16
9
|
}
|
|
17
10
|
|
|
18
|
-
export {
|
|
11
|
+
export { REGISTRATION_FORM_STATE_CONTEXT as R, useRegistrationFormState as u };
|