@saasquatch/mint-components 1.13.0-29 → 1.13.0-30
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 -2
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +4 -2
- package/dist/esm/sqm-big-stat_38.entry.js +4 -2
- 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-b60231bd.system.entry.js +1 -0
- package/dist/mint-components/{p-e243a356.entry.js → p-c1a73197.entry.js} +9 -9
- 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-c145c8be.system.entry.js +0 -1
|
@@ -2029,13 +2029,14 @@ 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, "resultGoogle");
|
|
2033
2032
|
if (result instanceof Error) {
|
|
2033
|
+
console.log(result, "resultGoogleError");
|
|
2034
2034
|
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"]))
|
|
2035
2035
|
setError(props.networkErrorMessage);
|
|
2036
2036
|
return;
|
|
2037
2037
|
}
|
|
2038
2038
|
if ((_c = result.authenticateManagedIdentityWithGoogle) === null || _c === void 0 ? void 0 : _c.token) {
|
|
2039
|
+
console.log(result, "resultGoogle");
|
|
2039
2040
|
urlParams.delete("nextPage");
|
|
2040
2041
|
const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
2041
2042
|
index_module.jn.push(url.href);
|
|
@@ -2050,13 +2051,14 @@ function usePortalLogin(props) {
|
|
|
2050
2051
|
});
|
|
2051
2052
|
const variables = { email: formData.email, password: formData.password };
|
|
2052
2053
|
const result = await request(variables);
|
|
2053
|
-
console.log(result, "resultRegular");
|
|
2054
2054
|
if (result instanceof Error) {
|
|
2055
|
+
console.log(result, "resultRegular");
|
|
2055
2056
|
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
2057
|
setError(props.networkErrorMessage);
|
|
2057
2058
|
return;
|
|
2058
2059
|
}
|
|
2059
2060
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
2061
|
+
console.log(result, "resultRegular");
|
|
2060
2062
|
urlParams.delete("nextPage");
|
|
2061
2063
|
const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
2062
2064
|
index_module.jn.push(url.href);
|
|
@@ -14,13 +14,14 @@ 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, "resultGoogle");
|
|
18
17
|
if (result instanceof Error) {
|
|
18
|
+
console.log(result, "resultGoogleError");
|
|
19
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"]))
|
|
20
20
|
setError(props.networkErrorMessage);
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
23
|
if ((_c = result.authenticateManagedIdentityWithGoogle) === null || _c === void 0 ? void 0 : _c.token) {
|
|
24
|
+
console.log(result, "resultGoogle");
|
|
24
25
|
urlParams.delete("nextPage");
|
|
25
26
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
26
27
|
navigation.push(url.href);
|
|
@@ -35,13 +36,14 @@ export function usePortalLogin(props) {
|
|
|
35
36
|
});
|
|
36
37
|
const variables = { email: formData.email, password: formData.password };
|
|
37
38
|
const result = await request(variables);
|
|
38
|
-
console.log(result, "resultRegular");
|
|
39
39
|
if (result instanceof Error) {
|
|
40
|
+
console.log(result, "resultRegular");
|
|
40
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"]))
|
|
41
42
|
setError(props.networkErrorMessage);
|
|
42
43
|
return;
|
|
43
44
|
}
|
|
44
45
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
46
|
+
console.log(result, "resultRegular");
|
|
45
47
|
urlParams.delete("nextPage");
|
|
46
48
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
47
49
|
navigation.push(url.href);
|
|
@@ -2025,13 +2025,14 @@ 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, "resultGoogle");
|
|
2029
2028
|
if (result instanceof Error) {
|
|
2029
|
+
console.log(result, "resultGoogleError");
|
|
2030
2030
|
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"]))
|
|
2031
2031
|
setError(props.networkErrorMessage);
|
|
2032
2032
|
return;
|
|
2033
2033
|
}
|
|
2034
2034
|
if ((_c = result.authenticateManagedIdentityWithGoogle) === null || _c === void 0 ? void 0 : _c.token) {
|
|
2035
|
+
console.log(result, "resultGoogle");
|
|
2035
2036
|
urlParams.delete("nextPage");
|
|
2036
2037
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
2037
2038
|
jn.push(url.href);
|
|
@@ -2046,13 +2047,14 @@ function usePortalLogin(props) {
|
|
|
2046
2047
|
});
|
|
2047
2048
|
const variables = { email: formData.email, password: formData.password };
|
|
2048
2049
|
const result = await request(variables);
|
|
2049
|
-
console.log(result, "resultRegular");
|
|
2050
2050
|
if (result instanceof Error) {
|
|
2051
|
+
console.log(result, "resultRegular");
|
|
2051
2052
|
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"]))
|
|
2052
2053
|
setError(props.networkErrorMessage);
|
|
2053
2054
|
return;
|
|
2054
2055
|
}
|
|
2055
2056
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
2057
|
+
console.log(result, "resultRegular");
|
|
2056
2058
|
urlParams.delete("nextPage");
|
|
2057
2059
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
2058
2060
|
jn.push(url.href);
|