@saasquatch/mint-components 1.6.3-3 → 1.6.3-5
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-portal-email-verification-view-4419779f.js → sqm-portal-email-verification-view-bb8f5aa0.js} +8 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +7 -18
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +21 -21
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +8 -4
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +5 -5
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +3 -14
- package/dist/esm/{sqm-portal-email-verification-view-c181c9ff.js → sqm-portal-email-verification-view-0170c6d1.js} +8 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +7 -18
- package/dist/esm/sqm-stencilbook.entry.js +21 -21
- package/dist/esm-es5/{sqm-portal-email-verification-view-c181c9ff.js → sqm-portal-email-verification-view-0170c6d1.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.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-07c6faa1.system.js +1 -0
- package/dist/mint-components/p-2e308c1b.system.js +1 -1
- package/dist/mint-components/p-3f96e1c4.entry.js +1 -0
- package/dist/mint-components/p-3fff79f3.system.entry.js +1 -0
- package/dist/mint-components/p-514e7691.entry.js +9 -0
- package/dist/mint-components/p-62ed88a1.js +1 -0
- package/dist/mint-components/{p-01848cdc.system.entry.js → p-6451e5af.system.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-103274ca.system.entry.js +0 -1
- package/dist/mint-components/p-329f2ebe.entry.js +0 -9
- package/dist/mint-components/p-459c3a9c.js +0 -1
- package/dist/mint-components/p-aa5c7bc5.entry.js +0 -1
- package/dist/mint-components/p-ca97933a.system.js +0 -1
|
@@ -38,11 +38,15 @@ function PortalEmailVerificationView(props) {
|
|
|
38
38
|
}, {
|
|
39
39
|
email: (index.h("span", { style: { fontWeight: "var(--sl-font-weight-semibold)" } }, email)),
|
|
40
40
|
})),
|
|
41
|
-
index.h("sl-button", { submit: true, loading: states.loading
|
|
42
|
-
|
|
41
|
+
index.h("sl-button", { variant: "default", submit: true, loading: states.loading }, resendEmailButtonText),
|
|
42
|
+
index.h("p", { style: { color: "#BBBBBB" } }, global.intl.formatMessage({
|
|
43
43
|
id: `verificationStatus`,
|
|
44
|
-
defaultMessage:
|
|
45
|
-
|
|
44
|
+
defaultMessage: states.loadingVerification
|
|
45
|
+
? verificationLoadingMessage + " {countdown}"
|
|
46
|
+
: verificationStatusMessage,
|
|
47
|
+
}, {
|
|
48
|
+
countdown: states.loadingVerification ? (index.h("sl-spinner", null)) : (states.countdown),
|
|
49
|
+
})))));
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
exports.PortalEmailVerificationView = PortalEmailVerificationView;
|
|
@@ -11,7 +11,7 @@ const cjs = require('./cjs-1066ec21.js');
|
|
|
11
11
|
require('./mixins-fe9d4112.js');
|
|
12
12
|
require('./JSS-8503a151.js');
|
|
13
13
|
require('./sqm-text-span-view-aea267ba.js');
|
|
14
|
-
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-
|
|
14
|
+
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-bb8f5aa0.js');
|
|
15
15
|
|
|
16
16
|
// var refreshTimer;
|
|
17
17
|
function usePortalEmailVerification(props) {
|
|
@@ -44,35 +44,24 @@ function usePortalEmailVerification(props) {
|
|
|
44
44
|
if ((_a = result.requestManagedIdentityVerificationEmail) === null || _a === void 0 ? void 0 : _a.success)
|
|
45
45
|
setSuccess(true);
|
|
46
46
|
};
|
|
47
|
-
function clearTimer() {
|
|
48
|
-
console.log("clearing!", timerRef.current);
|
|
49
|
-
clearInterval(timerRef.current);
|
|
50
|
-
}
|
|
51
47
|
const checkVerification = useCallback.useCallback(async () => {
|
|
52
48
|
var _a;
|
|
53
|
-
|
|
49
|
+
setCountdown(10);
|
|
54
50
|
const data = (await getVerificationStatus());
|
|
55
51
|
if ((_a = data === null || data === void 0 ? void 0 : data.managedIdentitySession) === null || _a === void 0 ? void 0 : _a.emailVerified) {
|
|
56
|
-
|
|
57
|
-
clearTimer();
|
|
52
|
+
clearInterval(timerRef.current);
|
|
58
53
|
return index_module.fn.push({
|
|
59
54
|
pathname: props.redirectPath,
|
|
60
55
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
61
56
|
});
|
|
62
57
|
}
|
|
63
|
-
else {
|
|
64
|
-
setCountdown(10);
|
|
65
|
-
}
|
|
66
58
|
}, []);
|
|
67
59
|
stencilHooks_module.useEffect(() => {
|
|
68
60
|
if (!timerRef.current) {
|
|
69
61
|
checkVerification();
|
|
70
62
|
timerRef.current = setInterval(checkVerification, 10000);
|
|
71
63
|
}
|
|
72
|
-
return () =>
|
|
73
|
-
console.log("clear timer");
|
|
74
|
-
clearTimer();
|
|
75
|
-
};
|
|
64
|
+
return () => clearInterval(timerRef.current);
|
|
76
65
|
}, []);
|
|
77
66
|
stencilHooks_module.useEffect(() => {
|
|
78
67
|
const countdownTimer = countdown > 0 && setInterval(() => setCountdown(countdown - 1), 1000);
|
|
@@ -132,12 +121,12 @@ const PortalEmailVerification = class {
|
|
|
132
121
|
* @uiName Email Verification Status Text
|
|
133
122
|
* @uiWidget textArea
|
|
134
123
|
*/
|
|
135
|
-
this.verificationStatusMessage = "Check verification status in {countdown}";
|
|
124
|
+
this.verificationStatusMessage = "Check verification status: in {countdown}";
|
|
136
125
|
/**
|
|
137
126
|
* @uiName Email Verification Checking Text
|
|
138
127
|
* @uiWidget textArea
|
|
139
128
|
*/
|
|
140
|
-
this.verificationLoadingMessage = "
|
|
129
|
+
this.verificationLoadingMessage = "Check verification status:";
|
|
141
130
|
stencilHooks_module.h$1(this);
|
|
142
131
|
}
|
|
143
132
|
disconnectedCallback() { }
|
|
@@ -150,7 +139,7 @@ const PortalEmailVerification = class {
|
|
|
150
139
|
};
|
|
151
140
|
function usePortalEmailVerificationDemo(props) {
|
|
152
141
|
return cjs.cjs({
|
|
153
|
-
states: { error: "", loading: false, success: false },
|
|
142
|
+
states: { error: "", loading: false, success: false, countdown: 10 },
|
|
154
143
|
callbacks: {
|
|
155
144
|
submit: async (_event) => { },
|
|
156
145
|
},
|