@saasquatch/mint-components 1.13.0-39 → 1.13.0-40
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 +3 -5
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +2 -2
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +2 -4
- package/dist/esm/sqm-big-stat_38.entry.js +3 -5
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-9f368ffb.entry.js → p-bc2fdf20.entry.js} +1 -1
- package/dist/mint-components/p-d671e44e.system.js +1 -1
- package/dist/mint-components/p-ea2257f8.system.entry.js +1 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-d73bbafd.system.entry.js +0 -1
|
@@ -2029,12 +2029,10 @@ function usePortalLogin(props) {
|
|
|
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
|
-
console.log(result, "googleResult");
|
|
2033
2032
|
if (result instanceof Error) {
|
|
2034
|
-
await console.log(result === null || result === void 0 ? void 0 : result["message"], "googleResultErrorMessage2222");
|
|
2035
|
-
await console.log(result === null || result === void 0 ? void 0 : result.message, "googleResultErrorMessage");
|
|
2036
2033
|
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"]))
|
|
2037
|
-
if ((_d = (_c = result === null || result === void 0 ? void 0 : result["response"]) === null || _c === void 0 ? void 0 : _c["errors"][0]) === null || _d === void 0 ? void 0 : _d["message"]
|
|
2034
|
+
if (((_d = (_c = result === null || result === void 0 ? void 0 : result["response"]) === null || _c === void 0 ? void 0 : _c["errors"][0]) === null || _d === void 0 ? void 0 : _d["message"]) ===
|
|
2035
|
+
"Invalid Credentials.") {
|
|
2038
2036
|
setError(props.googleUserNotRegisteredError);
|
|
2039
2037
|
}
|
|
2040
2038
|
else {
|
|
@@ -2143,7 +2141,7 @@ const PortalLogin = class {
|
|
|
2143
2141
|
* @uiName Google account error message
|
|
2144
2142
|
* Displayed when user tries to sign in with Google account but has not registered.
|
|
2145
2143
|
*/
|
|
2146
|
-
this.googleUserNotRegisteredError = "
|
|
2144
|
+
this.googleUserNotRegisteredError = "Your google account has not registered on our platform. Please complete the registration process with your Google account.";
|
|
2147
2145
|
/**
|
|
2148
2146
|
* @uiName Register CTA
|
|
2149
2147
|
*/
|
|
@@ -64,7 +64,7 @@ export class PortalLogin {
|
|
|
64
64
|
* @uiName Google account error message
|
|
65
65
|
* Displayed when user tries to sign in with Google account but has not registered.
|
|
66
66
|
*/
|
|
67
|
-
this.googleUserNotRegisteredError = "
|
|
67
|
+
this.googleUserNotRegisteredError = "Your google account has not registered on our platform. Please complete the registration process with your Google account.";
|
|
68
68
|
/**
|
|
69
69
|
* @uiName Register CTA
|
|
70
70
|
*/
|
|
@@ -350,7 +350,7 @@ export class PortalLogin {
|
|
|
350
350
|
},
|
|
351
351
|
"attribute": "google-user-not-registered-error",
|
|
352
352
|
"reflect": false,
|
|
353
|
-
"defaultValue": "\"
|
|
353
|
+
"defaultValue": "\"Your google account has not registered on our platform. Please complete the registration process with your Google account.\""
|
|
354
354
|
},
|
|
355
355
|
"registerCTA": {
|
|
356
356
|
"type": "string",
|
|
@@ -14,12 +14,10 @@ export function usePortalLogin(props) {
|
|
|
14
14
|
if (!((_a = e.detail) === null || _a === void 0 ? void 0 : _a.credential))
|
|
15
15
|
return;
|
|
16
16
|
const result = await loginWithGoogle({ idToken: e.detail.credential });
|
|
17
|
-
console.log(result, "googleResult");
|
|
18
17
|
if (result instanceof Error) {
|
|
19
|
-
await console.log(result === null || result === void 0 ? void 0 : result["message"], "googleResultErrorMessage2222");
|
|
20
|
-
await console.log(result === null || result === void 0 ? void 0 : result.message, "googleResultErrorMessage");
|
|
21
18
|
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"]))
|
|
22
|
-
if ((_d = (_c = result === null || result === void 0 ? void 0 : result["response"]) === null || _c === void 0 ? void 0 : _c["errors"][0]) === null || _d === void 0 ? void 0 : _d["message"]
|
|
19
|
+
if (((_d = (_c = result === null || result === void 0 ? void 0 : result["response"]) === null || _c === void 0 ? void 0 : _c["errors"][0]) === null || _d === void 0 ? void 0 : _d["message"]) ===
|
|
20
|
+
"Invalid Credentials.") {
|
|
23
21
|
setError(props.googleUserNotRegisteredError);
|
|
24
22
|
}
|
|
25
23
|
else {
|
|
@@ -2025,12 +2025,10 @@ function usePortalLogin(props) {
|
|
|
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
|
-
console.log(result, "googleResult");
|
|
2029
2028
|
if (result instanceof Error) {
|
|
2030
|
-
await console.log(result === null || result === void 0 ? void 0 : result["message"], "googleResultErrorMessage2222");
|
|
2031
|
-
await console.log(result === null || result === void 0 ? void 0 : result.message, "googleResultErrorMessage");
|
|
2032
2029
|
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"]))
|
|
2033
|
-
if ((_d = (_c = result === null || result === void 0 ? void 0 : result["response"]) === null || _c === void 0 ? void 0 : _c["errors"][0]) === null || _d === void 0 ? void 0 : _d["message"]
|
|
2030
|
+
if (((_d = (_c = result === null || result === void 0 ? void 0 : result["response"]) === null || _c === void 0 ? void 0 : _c["errors"][0]) === null || _d === void 0 ? void 0 : _d["message"]) ===
|
|
2031
|
+
"Invalid Credentials.") {
|
|
2034
2032
|
setError(props.googleUserNotRegisteredError);
|
|
2035
2033
|
}
|
|
2036
2034
|
else {
|
|
@@ -2139,7 +2137,7 @@ const PortalLogin = class {
|
|
|
2139
2137
|
* @uiName Google account error message
|
|
2140
2138
|
* Displayed when user tries to sign in with Google account but has not registered.
|
|
2141
2139
|
*/
|
|
2142
|
-
this.googleUserNotRegisteredError = "
|
|
2140
|
+
this.googleUserNotRegisteredError = "Your google account has not registered on our platform. Please complete the registration process with your Google account.";
|
|
2143
2141
|
/**
|
|
2144
2142
|
* @uiName Register CTA
|
|
2145
2143
|
*/
|