@saasquatch/mint-components 1.8.0-86 → 1.8.0-88
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-banking-info-form_16.cjs.entry.js +5 -2
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -2
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +1 -1
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +5 -2
- package/dist/esm/sqm-banking-info-form_16.entry.js +5 -2
- package/dist/esm/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +4 -3
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-1d39c0bc.system.entry.js +1 -0
- package/dist/mint-components/{p-a94b22fe.entry.js → p-2543022e.entry.js} +1 -1
- package/dist/mint-components/{p-c3ddf902.system.entry.js → p-273240c3.system.entry.js} +1 -1
- package/dist/mint-components/{p-107c3f3e.entry.js → p-7689bdec.entry.js} +1 -1
- package/dist/mint-components/p-7be753b7.entry.js +1 -0
- package/dist/mint-components/p-8019e18f.system.entry.js +1 -0
- package/dist/mint-components/p-d5364cae.system.js +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-38a4816a.system.entry.js +0 -1
- package/dist/mint-components/p-785c2c05.system.entry.js +0 -1
- package/dist/mint-components/p-bedd0a2c.entry.js +0 -1
|
@@ -6041,7 +6041,7 @@ const UserInfoFormView = (props) => {
|
|
|
6041
6041
|
callbacks.setCountrySearch(e.target.value);
|
|
6042
6042
|
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
6043
6043
|
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
|
|
6044
|
-
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } })))),
|
|
6044
|
+
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
6045
6045
|
index.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || states.isPartner, helpText: text.currencyHelpText }, (((_g = formState.errors) === null || _g === void 0 ? void 0 : _g.currency) ? {
|
|
6046
6046
|
class: classes.ErrorInput,
|
|
6047
6047
|
helpText: sqmInvoiceTableView.getIsRequiredErrorMessage(text.currency, text.error.fieldRequiredError),
|
|
@@ -6057,7 +6057,10 @@ const UserInfoFormView = (props) => {
|
|
|
6057
6057
|
c.currencyCode,
|
|
6058
6058
|
" - ",
|
|
6059
6059
|
c.displayName))), (_j = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _j === void 0 ? void 0 :
|
|
6060
|
-
_j.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } }
|
|
6060
|
+
_j.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
6061
|
+
c.currencyCode,
|
|
6062
|
+
" - ",
|
|
6063
|
+
c.displayName)))),
|
|
6061
6064
|
index.h("div", { class: classes.CheckboxWrapper },
|
|
6062
6065
|
index.h("sl-checkbox", { exportparts: "label: input-label", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
6063
6066
|
e.target.value = e.target.checked;
|
|
@@ -37,7 +37,7 @@ function usePortalEmailVerification(props) {
|
|
|
37
37
|
const result = await request(variables);
|
|
38
38
|
if (result instanceof Error) {
|
|
39
39
|
if (result.message)
|
|
40
|
-
setError(
|
|
40
|
+
setError(props.networkErrorMessage);
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
43
|
if ((_a = result.requestManagedIdentityVerificationEmail) === null || _a === void 0 ? void 0 : _a.success)
|
|
@@ -15,7 +15,7 @@ const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-1e6255e
|
|
|
15
15
|
const SUBMITTED_CONTEXT = "sq:verify-submitted";
|
|
16
16
|
function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyEmailText, verifyInvalidText, networkErrorMessage, continueText, }) {
|
|
17
17
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
18
|
-
const
|
|
18
|
+
const submitted = window[SUBMITTED_CONTEXT];
|
|
19
19
|
const locale = index_module.N();
|
|
20
20
|
const userIdent = index_module.H();
|
|
21
21
|
const [request, { loading, data, errors }] = index_module.nn();
|
|
@@ -39,7 +39,7 @@ function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyE
|
|
|
39
39
|
};
|
|
40
40
|
const submit = async () => {
|
|
41
41
|
var _a;
|
|
42
|
-
|
|
42
|
+
window[SUBMITTED_CONTEXT] = true;
|
|
43
43
|
console.log("submit", { submitted });
|
|
44
44
|
if (oobCode) {
|
|
45
45
|
const result = await request({ oobCode });
|
|
@@ -60,6 +60,7 @@ function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyE
|
|
|
60
60
|
if (verified) {
|
|
61
61
|
setTimeout(() => {
|
|
62
62
|
gotoNextPage();
|
|
63
|
+
window[SUBMITTED_CONTEXT] = false;
|
|
63
64
|
}, 3000);
|
|
64
65
|
return;
|
|
65
66
|
}
|
package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js
CHANGED
|
@@ -25,7 +25,7 @@ export function usePortalEmailVerification(props) {
|
|
|
25
25
|
const result = await request(variables);
|
|
26
26
|
if (result instanceof Error) {
|
|
27
27
|
if (result.message)
|
|
28
|
-
setError(
|
|
28
|
+
setError(props.networkErrorMessage);
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
if ((_a = result.requestManagedIdentityVerificationEmail) === null || _a === void 0 ? void 0 : _a.success)
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { navigation, useLocale, useUserIdentity, useVerifyEmailMutation, } from "@saasquatch/component-boilerplate";
|
|
2
|
-
import { useDomContextState } from "@saasquatch/stencil-hooks";
|
|
3
2
|
import { useEffect } from "@saasquatch/universal-hooks";
|
|
4
3
|
import { sanitizeUrlPath } from "../../utils/utils";
|
|
5
4
|
const SUBMITTED_CONTEXT = "sq:verify-submitted";
|
|
6
5
|
export function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyEmailText, verifyInvalidText, networkErrorMessage, continueText, }) {
|
|
7
6
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
8
|
-
const
|
|
7
|
+
const submitted = window[SUBMITTED_CONTEXT];
|
|
9
8
|
const locale = useLocale();
|
|
10
9
|
const userIdent = useUserIdentity();
|
|
11
10
|
const [request, { loading, data, errors }] = useVerifyEmailMutation();
|
|
@@ -29,7 +28,7 @@ export function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText,
|
|
|
29
28
|
};
|
|
30
29
|
const submit = async () => {
|
|
31
30
|
var _a;
|
|
32
|
-
|
|
31
|
+
window[SUBMITTED_CONTEXT] = true;
|
|
33
32
|
console.log("submit", { submitted });
|
|
34
33
|
if (oobCode) {
|
|
35
34
|
const result = await request({ oobCode });
|
|
@@ -50,6 +49,7 @@ export function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText,
|
|
|
50
49
|
if (verified) {
|
|
51
50
|
setTimeout(() => {
|
|
52
51
|
gotoNextPage();
|
|
52
|
+
window[SUBMITTED_CONTEXT] = false;
|
|
53
53
|
}, 3000);
|
|
54
54
|
return;
|
|
55
55
|
}
|
package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js
CHANGED
|
@@ -167,7 +167,7 @@ export const UserInfoFormView = (props) => {
|
|
|
167
167
|
callbacks.setCountrySearch(e.target.value);
|
|
168
168
|
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
169
169
|
_e.map((c) => (h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
|
|
170
|
-
_f.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } })))),
|
|
170
|
+
_f.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
171
171
|
h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || states.isPartner, helpText: text.currencyHelpText }, (((_g = formState.errors) === null || _g === void 0 ? void 0 : _g.currency) ? {
|
|
172
172
|
class: classes.ErrorInput,
|
|
173
173
|
helpText: getIsRequiredErrorMessage(text.currency, text.error.fieldRequiredError),
|
|
@@ -183,7 +183,10 @@ export const UserInfoFormView = (props) => {
|
|
|
183
183
|
c.currencyCode,
|
|
184
184
|
" - ",
|
|
185
185
|
c.displayName))), (_j = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _j === void 0 ? void 0 :
|
|
186
|
-
_j.map((c) => (h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } }
|
|
186
|
+
_j.map((c) => (h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
187
|
+
c.currencyCode,
|
|
188
|
+
" - ",
|
|
189
|
+
c.displayName)))),
|
|
187
190
|
h("div", { class: classes.CheckboxWrapper },
|
|
188
191
|
h("sl-checkbox", { exportparts: "label: input-label", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
189
192
|
e.target.value = e.target.checked;
|
|
@@ -6037,7 +6037,7 @@ const UserInfoFormView = (props) => {
|
|
|
6037
6037
|
callbacks.setCountrySearch(e.target.value);
|
|
6038
6038
|
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
6039
6039
|
_e.map((c) => (h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
|
|
6040
|
-
_f.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } })))),
|
|
6040
|
+
_f.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
6041
6041
|
h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || states.isPartner, helpText: text.currencyHelpText }, (((_g = formState.errors) === null || _g === void 0 ? void 0 : _g.currency) ? {
|
|
6042
6042
|
class: classes.ErrorInput,
|
|
6043
6043
|
helpText: getIsRequiredErrorMessage(text.currency, text.error.fieldRequiredError),
|
|
@@ -6053,7 +6053,10 @@ const UserInfoFormView = (props) => {
|
|
|
6053
6053
|
c.currencyCode,
|
|
6054
6054
|
" - ",
|
|
6055
6055
|
c.displayName))), (_j = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _j === void 0 ? void 0 :
|
|
6056
|
-
_j.map((c) => (h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } }
|
|
6056
|
+
_j.map((c) => (h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
6057
|
+
c.currencyCode,
|
|
6058
|
+
" - ",
|
|
6059
|
+
c.displayName)))),
|
|
6057
6060
|
h("div", { class: classes.CheckboxWrapper },
|
|
6058
6061
|
h("sl-checkbox", { exportparts: "label: input-label", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
6059
6062
|
e.target.value = e.target.checked;
|
|
@@ -33,7 +33,7 @@ function usePortalEmailVerification(props) {
|
|
|
33
33
|
const result = await request(variables);
|
|
34
34
|
if (result instanceof Error) {
|
|
35
35
|
if (result.message)
|
|
36
|
-
setError(
|
|
36
|
+
setError(props.networkErrorMessage);
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
39
|
if ((_a = result.requestManagedIdentityVerificationEmail) === null || _a === void 0 ? void 0 : _a.success)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-f16aa635.js';
|
|
2
|
-
import {
|
|
2
|
+
import { f as useEffect, m as h } from './stencil-hooks.module-aa42e74f.js';
|
|
3
3
|
import { N, H, n as nn, y as yn, i as isDemo } from './index.module-a46df001.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import './mixins-f60a614c.js';
|
|
@@ -11,7 +11,7 @@ import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-fb687
|
|
|
11
11
|
const SUBMITTED_CONTEXT = "sq:verify-submitted";
|
|
12
12
|
function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyEmailText, verifyInvalidText, networkErrorMessage, continueText, }) {
|
|
13
13
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
14
|
-
const
|
|
14
|
+
const submitted = window[SUBMITTED_CONTEXT];
|
|
15
15
|
const locale = N();
|
|
16
16
|
const userIdent = H();
|
|
17
17
|
const [request, { loading, data, errors }] = nn();
|
|
@@ -35,7 +35,7 @@ function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyE
|
|
|
35
35
|
};
|
|
36
36
|
const submit = async () => {
|
|
37
37
|
var _a;
|
|
38
|
-
|
|
38
|
+
window[SUBMITTED_CONTEXT] = true;
|
|
39
39
|
console.log("submit", { submitted });
|
|
40
40
|
if (oobCode) {
|
|
41
41
|
const result = await request({ oobCode });
|
|
@@ -56,6 +56,7 @@ function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyE
|
|
|
56
56
|
if (verified) {
|
|
57
57
|
setTimeout(() => {
|
|
58
58
|
gotoNextPage();
|
|
59
|
+
window[SUBMITTED_CONTEXT] = false;
|
|
59
60
|
}, 3000);
|
|
60
61
|
return;
|
|
61
62
|
}
|