@saasquatch/mint-components 1.8.5-3 → 1.8.5-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 +2 -2
- package/dist/cjs/{sqm-portal-verify-email-view-ce552bbc.js → sqm-portal-verify-email-view-4f7063ff.js} +9 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +82 -39
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +5 -3
- package/dist/collection/components/sqm-link-button/sqm-link-button-view.js +2 -2
- package/dist/collection/components/sqm-portal-verify-email/PortalVerifyEmail.stories.js +2 -0
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +9 -1
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +1 -1
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +83 -39
- package/dist/esm/sqm-big-stat_38.entry.js +2 -2
- package/dist/esm/{sqm-portal-verify-email-view-283bf637.js → sqm-portal-verify-email-view-4c562714.js} +9 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +83 -40
- package/dist/esm/sqm-stencilbook.entry.js +5 -3
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-4c562714.js +1 -0
- package/dist/esm-es5/sqm-portal-verify-email.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-561262cd.entry.js → p-1a5005fe.entry.js} +1 -1
- package/dist/mint-components/p-26a300dc.entry.js +1 -0
- package/dist/mint-components/p-2cbc3524.js +1 -0
- package/dist/mint-components/p-3248442a.system.entry.js +1 -0
- package/dist/mint-components/p-44b12b2e.system.js +1 -1
- package/dist/mint-components/p-570eaaee.system.js +1 -0
- package/dist/mint-components/{p-907c3344.system.entry.js → p-a9482c97.system.entry.js} +1 -1
- package/dist/mint-components/p-bed01771.system.entry.js +1 -0
- package/dist/mint-components/p-c33bbf65.entry.js +9 -0
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +1 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-283bf637.js +0 -1
- package/dist/mint-components/p-17bc729f.entry.js +0 -1
- package/dist/mint-components/p-463e96b9.system.entry.js +0 -1
- package/dist/mint-components/p-4d9744bf.js +0 -1
- package/dist/mint-components/p-5cd6d4ed.system.entry.js +0 -1
- package/dist/mint-components/p-b2b22a2a.entry.js +0 -9
- package/dist/mint-components/p-d4b174e1.system.js +0 -1
|
@@ -1,31 +1,37 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { f as useEffect, n as h } from './stencil-hooks.module-8032b139.js';
|
|
2
|
+
import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-8032b139.js';
|
|
3
3
|
import { Q, j as an, $ as $n, b as setUserIdentity, i as isDemo } from './index.module-ba0ed7a8.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import './mixins-f60a614c.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import { s as sanitizeUrlPath, g as getProps } from './utils-334c1e34.js';
|
|
8
8
|
import './sqm-text-span-view-8d140661.js';
|
|
9
|
-
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-
|
|
9
|
+
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-4c562714.js';
|
|
10
10
|
|
|
11
11
|
const SUBMITTED_CONTEXT = "sq:verify-submitted";
|
|
12
|
-
function
|
|
12
|
+
function setWindowSubmitted(submitted) {
|
|
13
13
|
// using window due to dom-context getting reset on re-render
|
|
14
14
|
window[SUBMITTED_CONTEXT] = submitted;
|
|
15
15
|
}
|
|
16
16
|
function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyEmailText, verifyInvalidText, networkErrorMessage, continueText, }) {
|
|
17
|
-
var
|
|
18
|
-
const submitted = window[SUBMITTED_CONTEXT];
|
|
17
|
+
var _b, _c, _d, _e, _f, _g, _h, _j;
|
|
18
|
+
const [submitted, setSubmitted] = useState(window[SUBMITTED_CONTEXT]);
|
|
19
19
|
const userIdent = Q();
|
|
20
|
+
const [verificationError, setVerificationError] = useState(null);
|
|
21
|
+
const [success, setSuccess] = useState(false);
|
|
20
22
|
const [request, { loading, data, errors }] = an();
|
|
21
23
|
const urlParams = new URLSearchParams($n.location.search);
|
|
22
24
|
const oobCode = urlParams.get("oobCode");
|
|
25
|
+
const oobEmail = urlParams.get("email");
|
|
23
26
|
const nextPageOverride = urlParams.get("nextPage");
|
|
27
|
+
const syncSubmitted = (submitted) => {
|
|
28
|
+
setSubmitted(submitted);
|
|
29
|
+
setWindowSubmitted(submitted);
|
|
30
|
+
};
|
|
24
31
|
// derived from useMutation in component boilerplate initialState
|
|
25
32
|
const disableContinue = data === undefined && errors === undefined && !!oobCode;
|
|
26
33
|
// if logged out, userIdent?.managedIdentity?.emailVerified will be falsey, even if verification was successful
|
|
27
|
-
const verified = !!((
|
|
28
|
-
console.log({ userIdent, data, verified });
|
|
34
|
+
const verified = !!((_b = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _b === void 0 ? void 0 : _b.emailVerified);
|
|
29
35
|
const failed = () => {
|
|
30
36
|
return $n.push({
|
|
31
37
|
pathname: failedPage,
|
|
@@ -37,51 +43,88 @@ function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyE
|
|
|
37
43
|
const url = sanitizeUrlPath(nextPageOverride || nextPage);
|
|
38
44
|
$n.push(url.href);
|
|
39
45
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
console.log({
|
|
47
|
+
userIdent,
|
|
48
|
+
data,
|
|
49
|
+
submitted,
|
|
50
|
+
verified,
|
|
51
|
+
verificationError,
|
|
52
|
+
success,
|
|
53
|
+
});
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
const check = async () => {
|
|
56
|
+
var _a;
|
|
57
|
+
syncSubmitted(true);
|
|
58
|
+
const response = await request({ oobCode });
|
|
59
|
+
if (response instanceof Error ||
|
|
60
|
+
!((_a = response === null || response === void 0 ? void 0 : response.verifyManagedIdentityEmail) === null || _a === void 0 ? void 0 : _a.success)) {
|
|
61
|
+
console.debug("set verification error");
|
|
62
|
+
setVerificationError({ message: true });
|
|
50
63
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
64
|
+
else {
|
|
65
|
+
console.debug("set success: true");
|
|
66
|
+
setSuccess(true);
|
|
67
|
+
}
|
|
68
|
+
console.debug("SUBMITTED", response);
|
|
69
|
+
console.debug("window", window[SUBMITTED_CONTEXT]);
|
|
70
|
+
};
|
|
71
|
+
if (!submitted)
|
|
72
|
+
check();
|
|
73
|
+
}, [submitted]);
|
|
57
74
|
useEffect(() => {
|
|
58
75
|
var _a;
|
|
59
|
-
|
|
60
|
-
// verification successful but users do not match
|
|
61
|
-
if (verified && !((_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified)) {
|
|
62
|
-
setTimeout(() => {
|
|
63
|
-
gotoNextPage();
|
|
64
|
-
setSubmitted(false);
|
|
65
|
-
setUserIdentity(undefined);
|
|
66
|
-
}, 3000);
|
|
76
|
+
if (!submitted || !(success || verificationError))
|
|
67
77
|
return;
|
|
68
|
-
|
|
78
|
+
if (!verificationError &&
|
|
79
|
+
((_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.email) === oobEmail &&
|
|
80
|
+
(success || verified)) {
|
|
81
|
+
console.log("LOGGING IN", success, verified, verificationError);
|
|
82
|
+
setTimeout(gotoNextPage, 3000);
|
|
69
83
|
}
|
|
70
|
-
else
|
|
84
|
+
else {
|
|
85
|
+
console.log("LOGGING OUT", success, verified, verificationError);
|
|
71
86
|
setTimeout(() => {
|
|
87
|
+
setUserIdentity(undefined);
|
|
72
88
|
gotoNextPage();
|
|
73
|
-
setSubmitted(false);
|
|
74
89
|
}, 3000);
|
|
75
|
-
return;
|
|
76
90
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
91
|
+
}, [verified, verificationError, success, submitted, userIdent]);
|
|
92
|
+
useEffect(() => {
|
|
93
|
+
if (errors)
|
|
94
|
+
setVerificationError(errors);
|
|
95
|
+
}, [errors, setVerificationError]);
|
|
96
|
+
// useEffect(() => {
|
|
97
|
+
// if (!data && !submitted && oobCode) {
|
|
98
|
+
// submit();
|
|
99
|
+
// return;
|
|
100
|
+
// }
|
|
101
|
+
// // verification successful but user in context is not verified
|
|
102
|
+
// // or mismatch between logged in user and user associated with oobCode
|
|
103
|
+
// if (submitted) {
|
|
104
|
+
// console.debug("in submit condition");
|
|
105
|
+
// if (email && email !== oobEmail) {
|
|
106
|
+
// console.debug("email mismatch");
|
|
107
|
+
// logout();
|
|
108
|
+
// return;
|
|
109
|
+
// // Already verified, begin redirect
|
|
110
|
+
// }
|
|
111
|
+
// if (verified) {
|
|
112
|
+
// if (!verificationError) setSuccess(true);
|
|
113
|
+
// console.debug("verified");
|
|
114
|
+
// setTimeout(() => {
|
|
115
|
+
// gotoNextPage();
|
|
116
|
+
// setSubmitted(false);
|
|
117
|
+
// }, 3000);
|
|
118
|
+
// return;
|
|
119
|
+
// }
|
|
120
|
+
// }
|
|
121
|
+
// }, [submitted, verificationError, data, email, oobCode, oobEmail, submit]);
|
|
80
122
|
return {
|
|
81
123
|
states: {
|
|
82
124
|
loading: loading || disableContinue,
|
|
83
|
-
|
|
84
|
-
|
|
125
|
+
success,
|
|
126
|
+
error: ((_f = (_e = (_d = (_c = verificationError === null || verificationError === void 0 ? void 0 : verificationError.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_j = (_h = (_g = verificationError === null || verificationError === void 0 ? void 0 : verificationError.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) ||
|
|
127
|
+
((verificationError === null || verificationError === void 0 ? void 0 : verificationError.message) && networkErrorMessage),
|
|
85
128
|
verified,
|
|
86
129
|
},
|
|
87
130
|
data: {
|
|
@@ -23,7 +23,7 @@ import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view
|
|
|
23
23
|
import { P as PortalProfileView } from './sqm-portal-profile-view-13f0ef79.js';
|
|
24
24
|
import './utilities-21d8a4df.js';
|
|
25
25
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-d3e726a9.js';
|
|
26
|
-
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-
|
|
26
|
+
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-4c562714.js';
|
|
27
27
|
import { S as ShareButtonView, L as LeaderboardView, C as CopyTextView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, j as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, k as RewardExchangeView, r as rewardExchangeCustomErrorMsg, l as rewardExchangeLongText, m as rewardExchangeSelected, n as chooseAmountFixed, o as chooseAmountFixedNoDescription, p as chooseAmountVariable, q as chooseAmountVariableNoDescription, s as chooseAmountVariableDisabled, t as chooseAmountVariableUnavailable, v as confirmFixed, w as confirmVariable, x as redemptionError, y as queryError, z as success, A as successVariable, F as loading, G as empty$1, J as rewardExchange, K as CardFeedView, M as CouponCodeView, O as ProgressBar$2, Q as autoColorScaleCss, U as ShadowViewAddon } from './ShadowViewAddon-c22043d9.js';
|
|
28
28
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-ab89c6cc.js';
|
|
29
29
|
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-d00894ce.js';
|
|
@@ -7601,7 +7601,7 @@ const PortalResetPassword = /*#__PURE__*/Object.freeze({
|
|
|
7601
7601
|
CodeValidating: CodeValidating
|
|
7602
7602
|
});
|
|
7603
7603
|
|
|
7604
|
-
const scenario$9 = "@author:derek\n@owner:ian\nFeature: Verify Email\n\n
|
|
7604
|
+
const scenario$9 = "@author:derek\n@owner:ian\nFeature: Verify Email\n\n Background: A user is on the email verification page\n Given a user who has been redirected to the email verification page\n\n @motivating\n Scenario: Verifying your email takes you to the portal login page\n Given a user has a valid oob code as a url query parameter\n When they click \"Verify Email\"\n Then the button enters a loading state\n When their email is validated\n Then a button that says \"Continue\" appears\n When they click \"Continue\"\n Then they are redirected to login\n\n @motivating\n Scenario: Users are automatically redirected if they dont click \"Continue\"\n Given a user has a valid oob code as a url query parameter\n When they click \"Verify Email\"\n Then the button enters a loading state\n When their email is validated\n Then a button that says \"Continue\" appears\n When they wait 5 seconds\n Then they are redirected to login\n\n @motivating\n Scenario: Users are notified if verifying their email has failed\n Given a user has a valid oob code as a url query parameter\n When they click \"Verify Email\"\n Then the button enters a loading state\n When their email fails to be validated\n Then an banner is shown stating that an error occured\n\n @motivating\n Scenario Outline: Users cannot verify their email with an invalid or missing oob code\n Given a user has a <oobCode> as a url query parameter\n And the component <mayHave> \"failed-page\" with <value>\n Then they see an error message saying that their verification code is invalid/expired\n When they click \"Continue\"\n Then they are redirected to <redirectPath>\n Examples:\n | oobCode | mayHave | value | redirectPath |\n | invalid oob code | doesn't have | N/A | / |\n | non existant oob code | doesn't have | N/A | / |\n | invalid oob code | has | /login | /login |\n | non existant oob code | has | /login | /login |\n\n @motivating\n Scenario: Users are redirected to \"/\" by default\n Given the component does not have prop \"nextPage\"\n And the users url does not contain a \"nextPage\" query parameter\n And a user has verified their email\n When they click \"Continue\"\n Then they are redirected to \"/\"\n\n @motivating\n Scenario: Custom redirection can be configured\n Given the component has prop \"nextPage\" with value \"/activity\"\n And the users url does not contain a \"nextPage\" query parameter\n And a user has verified their email\n When they click \"Continue\"\n Then they are redirected to \"/activity\"\n\n @motivating\n Scenario Outline: Users are redirected to the value of the nextPage url parameter if it exists\n Given the component <mayHave> prop \"nextPage\" with <nextPageValue>\n And the users url contains a \"nextPage\" query paramater with <nextPageParamValue>\n And the user has verified their email\n When they click \"Continue\"\n Then they are redirected to <nextPageParamValue>\n Examples:\n | mayHave | nextPageValue | nextPageParamValue |\n | has | /dashboard | /activity |\n | does not have | N/A | /activity |\n\n @motivating\n Scenario Outline: Users are redirected to the value of the nextPage url parameter as if it were a relative path\n Given the component is loaded at <currentUrl>\n And the user has verified their email\n When they click \"Continue\"\n And they are redirected to <url>\n Examples:\n | currentUrl | url |\n | https://www.example.com?nextPage=./activity | https://www.example.com/activity |\n | https://www.example.com?nextPage=activity | https://www.example.com/activity |\n | https://www.example.com?nextPage=/activity | https://www.example.com/activity |\n | https://www.example.com?nextPage=www.google.com | https://www.example.com/www.google.com |\n | https://www.example.com?nextPage=//foo.com | https://www.example.com/ |\n | https://www.example.com?nextPage=https://malicious.example.com | https://www.example.com/ |\n | http://www.example.com/nest/page?oob=123&other&nextPage=activity#heading-1 | http://www.example.com/activity |\n | https://www.example.com?nextPage=activity?foo=bar | https://www.example.com/activity?foo=bar |\n | https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar | https://www.example.com/activity?foo=bar |\n | https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar#hash | https://www.example.com/activity?foo=bar |\n | https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar%23hash | https://www.example.com/activity?foo=bar#hash |\n | https://www.example.com:1337?nextPage=activity | https://www.example.com:1337/activity |\n | http://1.1.1.1:1111?nextPage=activity | http://1.1.1.1:1111/activity |\n\n @landmine\n Scenario Outline: Username and password are not persisted on redirects\n Given the component is loaded at <currentUrl>\n And the user has verified their email\n When they click \"Continue\"\n And they are redirected to <url>\n Examples:\n | currentUrl | url |\n | https://user:pass@www.example.com:444?nextPage=activity | https://www.example.com:444/activity |\n\n\n @minutia\n Scenario Outline: Users may be logged in or logged out depending on the verified status and logged in email\n Given an oobCode with email <oobCodeEmail> as a url query parameter\n And the user is logged in as <loggedInEmail>\n And the logged in user <isVerified>\n When the oobCode is submitted\n And the oobCode <isValid>\n Then the <submitState> screen is shown\n And after 3 seconds pass\n Then the user is redirected to <redirect>\n Examples:\n | oobCodeEmail | loggedInEmail | isVerified | isValid | submitState | redirect |\n | user1@example.com | N/A | false | is valid | success | /login |\n | user1@example.com | N/A | false | is not valid | error | /login |\n | user1@example.com | user1@example.com | false | is valid | success | /activity |\n | user1@example.com | user1@example.com | false | is not valid | error | N/A |\n | user1@example.com | user2@example.com | false | is valid | success | /login |\n | user1@example.com | user2@example.com | false | is not valid | error | /login |\n | user1@example.com | user1@example.com | true | is valid | success | /activity |\n | user1@example.com | user1@example.com | true | is not valid | success | /activity |\n | user1@example.com | user2@example.com | true | is not valid | error | /login |\n | N/A | N/A | false | is not valid | error | N/A |\n";
|
|
7605
7605
|
|
|
7606
7606
|
const PortalVerifyEmail_stories = {
|
|
7607
7607
|
title: "Components/Microsite Verify Email",
|
|
@@ -7614,6 +7614,7 @@ const errorProps$5 = {
|
|
|
7614
7614
|
error: "Something went wrong. Please try again.",
|
|
7615
7615
|
loading: false,
|
|
7616
7616
|
verified: false,
|
|
7617
|
+
success: false,
|
|
7617
7618
|
},
|
|
7618
7619
|
data: {
|
|
7619
7620
|
oobCode: "abc123",
|
|
@@ -7633,6 +7634,7 @@ const verifiedProps = {
|
|
|
7633
7634
|
error: "",
|
|
7634
7635
|
loading: false,
|
|
7635
7636
|
verified: true,
|
|
7637
|
+
success: true,
|
|
7636
7638
|
},
|
|
7637
7639
|
data: {
|
|
7638
7640
|
oobCode: "abc123",
|
|
@@ -9951,7 +9953,7 @@ const ResetPasswordReadme = "# sqm-portal-reset-password\n\n\n\n<!-- Auto Genera
|
|
|
9951
9953
|
|
|
9952
9954
|
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; isVerified?: boolean; loadingVerification?: boolean; countdown?: number; }; content?: { email: string; verifyMessage: string; emailVerificationHeader: string; resendEmailButtonText: string; verificationStatusMessage?: string; verificationLoadingMessage?: string; verificationResentMessage?: string; }; }` | `undefined` |\n| `emailVerificationHeader` | `email-verification-header` | | `string` | `\"Verify your email\"` |\n| `networkErrorMessage` | `network-error-message` | | `string` | `\"An error occurred while verifying your password. Please refresh the page.\"` |\n| `redirectPath` | `redirect-path` | Redirect participants to this page from their verification email. | `string` | `\"/verifyEmail\"` |\n| `resendEmailButtonText` | `resend-email-button-text` | | `string` | `\"Re-send Email\"` |\n| `verificationLoadingMessage` | `verification-loading-message` | | `string` | `\"Checking verification status\"` |\n| `verificationResentMessage` | `verification-resent-message` | | `string` | `\"Your verification email has been resent successfully\"` |\n| `verificationStatusMessage` | `verification-status-message` | | `string` | `\"Checking verification status in {countdown}\"` |\n| `verifyMessage` | `verify-message` | | `string` | `\"A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email will 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";
|
|
9953
9955
|
|
|
9954
|
-
const EmailVerifiedReadme = "# sqm-portal-verify-email\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type
|
|
9956
|
+
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| `continueText` | `continue-text` | | `string` | `\"Continue\"` |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; verified: boolean; }; data?: { oobCode: string; }; content?: { verifySuccessText?: string; verifyEmailText?: string; verifyInvalidText?: string; continueText?: string; }; }` | `undefined` |\n| `failedPage` | `failed-page` | Redirect participants to this page if verification fails due to an outdated verification attempt. | `string` | `\"/\"` |\n| `networkErrorMessage` | `network-error-message` | | `string` | `\"An error occurred while verifying your email. Please refresh the page and try again.\"` |\n| `nextPage` | `next-page` | Redirect participants to this page when they successfully verify their email. | `string` | `\"/\"` |\n| `verifyEmailText` | `verify-email-text` | | `string` | `\"Verify your email\"` |\n| `verifyInvalidText` | `verify-invalid-text` | | `string` | `\"The email verification code is invalid or has expired, please try again.\"` |\n| `verifySuccessText` | `verify-success-text` | | `string` | `\"Your email has been verified and you are being redirected. If you are not redirected, please click Continue.\"` |\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";
|
|
9955
9957
|
|
|
9956
9958
|
const PortalTemplates_stories = {
|
|
9957
9959
|
title: "Templates / Microsite",
|