@saasquatch/mint-components 1.13.0-26 → 1.13.0-28
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/sqm-big-stat_38.cjs.entry.js +4 -9
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +4 -7
- package/dist/esm/sqm-big-stat_38.entry.js +4 -9
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-d12a009a.system.entry.js → p-35a20e65.system.entry.js} +1 -1
- package/dist/mint-components/p-6b369de7.system.entry.js +1 -0
- package/dist/mint-components/{p-9aac3a46.entry.js → p-8e26e284.entry.js} +1 -1
- package/dist/mint-components/{p-b4c8315d.entry.js → p-c450a678.entry.js} +1 -1
- package/dist/mint-components/p-d671e44e.system.js +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-cba4d144.system.entry.js +0 -1
|
@@ -2025,19 +2025,13 @@ function usePortalLogin(props) {
|
|
|
2025
2025
|
const urlParams = new URLSearchParams(index_module.jn.location.search);
|
|
2026
2026
|
const nextPageOverride = urlParams.get("nextPage");
|
|
2027
2027
|
const googleSubmit = async (e) => {
|
|
2028
|
-
var _a,
|
|
2028
|
+
var _a, _c;
|
|
2029
2029
|
if (!((_a = e.detail) === null || _a === void 0 ? void 0 : _a.credential))
|
|
2030
2030
|
return;
|
|
2031
2031
|
const result = await loginWithGoogle({ idToken: e.detail.credential });
|
|
2032
2032
|
if (result instanceof Error) {
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
if ((result === null || result === void 0 ? void 0 : result.message) === "Invalid Credentials") {
|
|
2036
|
-
setError(props.googleUserNotRegisteredError);
|
|
2037
|
-
}
|
|
2038
|
-
else {
|
|
2039
|
-
setError(props.networkErrorMessage);
|
|
2040
|
-
}
|
|
2033
|
+
console.log(result, "result");
|
|
2034
|
+
setError(props.networkErrorMessage);
|
|
2041
2035
|
return;
|
|
2042
2036
|
}
|
|
2043
2037
|
if ((_c = result.authenticateManagedIdentityWithGoogle) === null || _c === void 0 ? void 0 : _c.token) {
|
|
@@ -2056,6 +2050,7 @@ function usePortalLogin(props) {
|
|
|
2056
2050
|
const variables = { email: formData.email, password: formData.password };
|
|
2057
2051
|
const result = await request(variables);
|
|
2058
2052
|
if (result instanceof Error) {
|
|
2053
|
+
console.log(result, "regular submit error");
|
|
2059
2054
|
if ((result === null || result === void 0 ? void 0 : result.message) || ((_a = result === null || result === void 0 ? void 0 : result["response"]) === null || _a === void 0 ? void 0 : _a["error"]))
|
|
2060
2055
|
setError(props.networkErrorMessage);
|
|
2061
2056
|
return;
|
|
@@ -10134,7 +10134,7 @@ const emailVerifiedTemplate = "<sqm-portal-verify-email></sqm-portal-verify-emai
|
|
|
10134
10134
|
|
|
10135
10135
|
const emailVerificationTemplate = "<sqm-portal-protected-route redirect-to=\"/login\"></sqm-portal-protected-route>\n<sqm-portal-email-verification></sqm-portal-email-verification>\n";
|
|
10136
10136
|
|
|
10137
|
-
const LoginReadme = "# sqm-portal-login\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property
|
|
10137
|
+
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?: { googleButton?: VNode; 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` | Redirect participants to this page to reset their password | `string` | `\"/forgotPassword\"` |\n| `googleUserNotRegisteredError` | `google-user-not-registered-error` | | `string` | `\"Google user has not registered on our platform. Please complete the registration process with your Google account.\"` |\n| `networkErrorMessage` | `network-error-message` | | `string` | `\"An error occurred while logging you in. Please refresh the page and try again.\"` |\n| `nextPage` | `next-page` | Redirect participants to this page after they successfully login. | `string` | `\"/\"` |\n| `pageLabel` | `page-label` | | `string` | `\"Sign in to your account\"` |\n| `passwordLabel` | `password-label` | | `string` | `\"Password\"` |\n| `registerCTA` | `register-c-t-a` | | `string` | `\"Don't have an account?\"` |\n| `registerLabel` | `register-label` | | `string` | `\"Register\"` |\n| `registerPath` | `register-path` | Redirect participants to this page to start registration. | `string` | `\"/register\"` |\n| `showGoogleLogin` | `show-google-login` | | `boolean` | `false` |\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-google-sign-in](../sqm-google-sign-in)\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-login --> sqm-google-sign-in\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";
|
|
10138
10138
|
|
|
10139
10139
|
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` | Define the height of the iframe with any valid CSS height value. Example: 100px, 5rem, or auto. | `string` | `\"100%\"` |\n| `iframeSrc` | `iframe-src` | URL of iframe to display | `string` | `undefined` |\n| `iframeWidth` | `iframe-width` | Define the width of the iframe with any valid CSS width value. Example: 100px, 5rem, or auto. | `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";
|
|
10140
10140
|
|
|
@@ -15,14 +15,10 @@ export function usePortalLogin(props) {
|
|
|
15
15
|
return;
|
|
16
16
|
const result = await loginWithGoogle({ idToken: e.detail.credential });
|
|
17
17
|
if (result instanceof Error) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
if ((result === null || result === void 0 ? void 0 : result.message) === "Invalid Credentials") {
|
|
21
|
-
setError(props.googleUserNotRegisteredError);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
setError(props.networkErrorMessage);
|
|
18
|
+
console.log(result, "result");
|
|
19
|
+
if ((result === null || result === void 0 ? void 0 : result.message) || ((_b = result === null || result === void 0 ? void 0 : result["response"]) === null || _b === void 0 ? void 0 : _b["error"])) {
|
|
25
20
|
}
|
|
21
|
+
setError(props.networkErrorMessage);
|
|
26
22
|
return;
|
|
27
23
|
}
|
|
28
24
|
if ((_c = result.authenticateManagedIdentityWithGoogle) === null || _c === void 0 ? void 0 : _c.token) {
|
|
@@ -41,6 +37,7 @@ export function usePortalLogin(props) {
|
|
|
41
37
|
const variables = { email: formData.email, password: formData.password };
|
|
42
38
|
const result = await request(variables);
|
|
43
39
|
if (result instanceof Error) {
|
|
40
|
+
console.log(result, "regular submit error");
|
|
44
41
|
if ((result === null || result === void 0 ? void 0 : result.message) || ((_a = result === null || result === void 0 ? void 0 : result["response"]) === null || _a === void 0 ? void 0 : _a["error"]))
|
|
45
42
|
setError(props.networkErrorMessage);
|
|
46
43
|
return;
|
|
@@ -2021,19 +2021,13 @@ function usePortalLogin(props) {
|
|
|
2021
2021
|
const urlParams = new URLSearchParams(jn.location.search);
|
|
2022
2022
|
const nextPageOverride = urlParams.get("nextPage");
|
|
2023
2023
|
const googleSubmit = async (e) => {
|
|
2024
|
-
var _a,
|
|
2024
|
+
var _a, _c;
|
|
2025
2025
|
if (!((_a = e.detail) === null || _a === void 0 ? void 0 : _a.credential))
|
|
2026
2026
|
return;
|
|
2027
2027
|
const result = await loginWithGoogle({ idToken: e.detail.credential });
|
|
2028
2028
|
if (result instanceof Error) {
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
if ((result === null || result === void 0 ? void 0 : result.message) === "Invalid Credentials") {
|
|
2032
|
-
setError(props.googleUserNotRegisteredError);
|
|
2033
|
-
}
|
|
2034
|
-
else {
|
|
2035
|
-
setError(props.networkErrorMessage);
|
|
2036
|
-
}
|
|
2029
|
+
console.log(result, "result");
|
|
2030
|
+
setError(props.networkErrorMessage);
|
|
2037
2031
|
return;
|
|
2038
2032
|
}
|
|
2039
2033
|
if ((_c = result.authenticateManagedIdentityWithGoogle) === null || _c === void 0 ? void 0 : _c.token) {
|
|
@@ -2052,6 +2046,7 @@ function usePortalLogin(props) {
|
|
|
2052
2046
|
const variables = { email: formData.email, password: formData.password };
|
|
2053
2047
|
const result = await request(variables);
|
|
2054
2048
|
if (result instanceof Error) {
|
|
2049
|
+
console.log(result, "regular submit error");
|
|
2055
2050
|
if ((result === null || result === void 0 ? void 0 : result.message) || ((_a = result === null || result === void 0 ? void 0 : result["response"]) === null || _a === void 0 ? void 0 : _a["error"]))
|
|
2056
2051
|
setError(props.networkErrorMessage);
|
|
2057
2052
|
return;
|
|
@@ -10130,7 +10130,7 @@ const emailVerifiedTemplate = "<sqm-portal-verify-email></sqm-portal-verify-emai
|
|
|
10130
10130
|
|
|
10131
10131
|
const emailVerificationTemplate = "<sqm-portal-protected-route redirect-to=\"/login\"></sqm-portal-protected-route>\n<sqm-portal-email-verification></sqm-portal-email-verification>\n";
|
|
10132
10132
|
|
|
10133
|
-
const LoginReadme = "# sqm-portal-login\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property
|
|
10133
|
+
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?: { googleButton?: VNode; 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` | Redirect participants to this page to reset their password | `string` | `\"/forgotPassword\"` |\n| `googleUserNotRegisteredError` | `google-user-not-registered-error` | | `string` | `\"Google user has not registered on our platform. Please complete the registration process with your Google account.\"` |\n| `networkErrorMessage` | `network-error-message` | | `string` | `\"An error occurred while logging you in. Please refresh the page and try again.\"` |\n| `nextPage` | `next-page` | Redirect participants to this page after they successfully login. | `string` | `\"/\"` |\n| `pageLabel` | `page-label` | | `string` | `\"Sign in to your account\"` |\n| `passwordLabel` | `password-label` | | `string` | `\"Password\"` |\n| `registerCTA` | `register-c-t-a` | | `string` | `\"Don't have an account?\"` |\n| `registerLabel` | `register-label` | | `string` | `\"Register\"` |\n| `registerPath` | `register-path` | Redirect participants to this page to start registration. | `string` | `\"/register\"` |\n| `showGoogleLogin` | `show-google-login` | | `boolean` | `false` |\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-google-sign-in](../sqm-google-sign-in)\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-login --> sqm-google-sign-in\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";
|
|
10134
10134
|
|
|
10135
10135
|
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` | Define the height of the iframe with any valid CSS height value. Example: 100px, 5rem, or auto. | `string` | `\"100%\"` |\n| `iframeSrc` | `iframe-src` | URL of iframe to display | `string` | `undefined` |\n| `iframeWidth` | `iframe-width` | Define the width of the iframe with any valid CSS width value. Example: 100px, 5rem, or auto. | `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";
|
|
10136
10136
|
|