@saasquatch/mint-components 2.0.2-15 → 2.0.2-17
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_10.cjs.entry.js +15 -11
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +5 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +7 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +8 -11
- package/dist/esm/sqm-banking-info-form_10.entry.js +15 -11
- package/dist/esm/sqm-header-logo.entry.js +2 -2
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-99e1c8c7.system.entry.js → p-03bae206.system.entry.js} +1 -1
- package/dist/mint-components/p-7fb4470e.entry.js +1 -0
- package/dist/mint-components/{p-09ab53fb.system.entry.js → p-8fa77acf.system.entry.js} +1 -1
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/{p-54d07b05.entry.js → p-deecea66.entry.js} +10 -12
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-ab111e29.entry.js +0 -1
|
@@ -4395,8 +4395,14 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4395
4395
|
domContextHooks_module.useEffect(() => {
|
|
4396
4396
|
// Clear override context once on submitted
|
|
4397
4397
|
setContext({});
|
|
4398
|
-
if (window.location.hash)
|
|
4398
|
+
if (window.location.hash) {
|
|
4399
|
+
setContext({
|
|
4400
|
+
overrideNextStep: "/dashboard",
|
|
4401
|
+
overrideBackStep: "/dashboard",
|
|
4402
|
+
hideSteps: true,
|
|
4403
|
+
});
|
|
4399
4404
|
setStep(`/${window.location.hash.replace("#", "")}`);
|
|
4405
|
+
}
|
|
4400
4406
|
}, []);
|
|
4401
4407
|
const { data, loading, errors: userError, refetch, } = index_module.$n(usePayoutStatus.USER_QUERY_NAMESPACE);
|
|
4402
4408
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
@@ -6339,16 +6345,14 @@ const UserInfoFormView = (props) => {
|
|
|
6339
6345
|
|
|
6340
6346
|
const GET_INDIRECT_TAX_COUNTRY_CODE = index_module.dist.gql `
|
|
6341
6347
|
query getIndirectTaxCountryCode {
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
impactBrandIndirectTaxCountryCode
|
|
6346
|
-
}
|
|
6348
|
+
tenantSettings {
|
|
6349
|
+
impactBrandCountryCode
|
|
6350
|
+
impactBrandIndirectTaxCountryCode
|
|
6347
6351
|
}
|
|
6348
6352
|
}
|
|
6349
6353
|
`;
|
|
6350
6354
|
function useUserInfoForm(props) {
|
|
6351
|
-
var _c, _d, _e, _f, _g
|
|
6355
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6352
6356
|
const currencyRef = domContextHooks_module.useRef(undefined);
|
|
6353
6357
|
const phoneCountryRef = domContextHooks_module.useRef(undefined);
|
|
6354
6358
|
const formRef = domContextHooks_module.useRef(null);
|
|
@@ -6572,7 +6576,7 @@ function useUserInfoForm(props) {
|
|
|
6572
6576
|
const nextStep = context.overrideNextStep || skipNextStep ? "/3" : "/2";
|
|
6573
6577
|
setStep(nextStep);
|
|
6574
6578
|
}
|
|
6575
|
-
const indirectTaxCountry = (
|
|
6579
|
+
const indirectTaxCountry = (_a = tenantData === null || tenantData === void 0 ? void 0 : tenantData.tenantSettings) === null || _a === void 0 ? void 0 : _a.impactBrandIndirectTaxCountryCode;
|
|
6576
6580
|
const hasIndirectTax = !!indirectTaxCountry;
|
|
6577
6581
|
function getSkipNextStep(userData) {
|
|
6578
6582
|
if (!hasIndirectTax)
|
|
@@ -6610,7 +6614,7 @@ function useUserInfoForm(props) {
|
|
|
6610
6614
|
allCountries: countries,
|
|
6611
6615
|
regionLabelEnum: regionObj === null || regionObj === void 0 ? void 0 : regionObj.labelEnum,
|
|
6612
6616
|
regions: (regionObj === null || regionObj === void 0 ? void 0 : regionObj.regions) || [],
|
|
6613
|
-
partnerData: (
|
|
6617
|
+
partnerData: (_c = (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher,
|
|
6614
6618
|
},
|
|
6615
6619
|
states: {
|
|
6616
6620
|
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
@@ -6619,8 +6623,8 @@ function useUserInfoForm(props) {
|
|
|
6619
6623
|
disabled: loading || connectLoading,
|
|
6620
6624
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
6621
6625
|
loading: loading || connectLoading,
|
|
6622
|
-
isPartner: !!((
|
|
6623
|
-
isUser: !!((
|
|
6626
|
+
isPartner: !!((_e = (_d = data === null || data === void 0 ? void 0 : data.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher),
|
|
6627
|
+
isUser: !!((_g = (_f = data === null || data === void 0 ? void 0 : data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.user),
|
|
6624
6628
|
formState: {
|
|
6625
6629
|
...userFormContext,
|
|
6626
6630
|
errors: formErrors,
|
|
@@ -15,6 +15,7 @@ const HeroImage = class {
|
|
|
15
15
|
/**
|
|
16
16
|
* @uiWidget color
|
|
17
17
|
* @uiName Logo text color
|
|
18
|
+
* @default #555555
|
|
18
19
|
*/
|
|
19
20
|
this.logoTextColor = "#555555";
|
|
20
21
|
/**
|
|
@@ -32,10 +33,9 @@ const HeroImage = class {
|
|
|
32
33
|
}
|
|
33
34
|
disconnectedCallback() { }
|
|
34
35
|
render() {
|
|
35
|
-
return (index.h(index.Host, null, index.h("a", { href: this.nextPage, part: "sqm-link" }, this.imageUrl ? (index.h("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl })) : (index.h("h3", { style: {
|
|
36
|
+
return (index.h(index.Host, null, index.h("a", { href: this.nextPage, part: "sqm-link", style: { textDecoration: "none" } }, this.imageUrl ? (index.h("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl })) : (index.h("h3", { style: {
|
|
36
37
|
fontSize: `${this.logoTextSize}px`,
|
|
37
38
|
color: this.logoTextColor || "#555555",
|
|
38
|
-
textDecoration: "none",
|
|
39
39
|
} }, this.logoText)))));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
@@ -13,6 +13,7 @@ export class HeroImage {
|
|
|
13
13
|
/**
|
|
14
14
|
* @uiWidget color
|
|
15
15
|
* @uiName Logo text color
|
|
16
|
+
* @default #555555
|
|
16
17
|
*/
|
|
17
18
|
this.logoTextColor = "#555555";
|
|
18
19
|
/**
|
|
@@ -31,10 +32,9 @@ export class HeroImage {
|
|
|
31
32
|
disconnectedCallback() { }
|
|
32
33
|
render() {
|
|
33
34
|
return (h(Host, null,
|
|
34
|
-
h("a", { href: this.nextPage, part: "sqm-link" }, this.imageUrl ? (h("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl })) : (h("h3", { style: {
|
|
35
|
+
h("a", { href: this.nextPage, part: "sqm-link", style: { textDecoration: "none" } }, this.imageUrl ? (h("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl })) : (h("h3", { style: {
|
|
35
36
|
fontSize: `${this.logoTextSize}px`,
|
|
36
37
|
color: this.logoTextColor || "#555555",
|
|
37
|
-
textDecoration: "none",
|
|
38
38
|
} }, this.logoText)))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "sqm-header-logo"; }
|
|
@@ -124,6 +124,9 @@ export class HeroImage {
|
|
|
124
124
|
}, {
|
|
125
125
|
"text": "Logo text color",
|
|
126
126
|
"name": "uiName"
|
|
127
|
+
}, {
|
|
128
|
+
"text": "#555555",
|
|
129
|
+
"name": "default"
|
|
127
130
|
}],
|
|
128
131
|
"text": ""
|
|
129
132
|
},
|
package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js
CHANGED
|
@@ -60,8 +60,14 @@ export const useTaxAndCashDashboard = (props) => {
|
|
|
60
60
|
useEffect(() => {
|
|
61
61
|
// Clear override context once on submitted
|
|
62
62
|
setContext({});
|
|
63
|
-
if (window.location.hash)
|
|
63
|
+
if (window.location.hash) {
|
|
64
|
+
setContext({
|
|
65
|
+
overrideNextStep: "/dashboard",
|
|
66
|
+
overrideBackStep: "/dashboard",
|
|
67
|
+
hideSteps: true,
|
|
68
|
+
});
|
|
64
69
|
setStep(`/${window.location.hash.replace("#", "")}`);
|
|
70
|
+
}
|
|
65
71
|
}, []);
|
|
66
72
|
const { data, loading, errors: userError, refetch, } = useParentQueryValue(USER_QUERY_NAMESPACE);
|
|
67
73
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
@@ -9,16 +9,14 @@ import { CONNECT_PARTNER, } from "../sqm-indirect-tax-form/useIndirectTaxForm";
|
|
|
9
9
|
import { gql } from "graphql-request";
|
|
10
10
|
const GET_INDIRECT_TAX_COUNTRY_CODE = gql `
|
|
11
11
|
query getIndirectTaxCountryCode {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
impactBrandIndirectTaxCountryCode
|
|
16
|
-
}
|
|
12
|
+
tenantSettings {
|
|
13
|
+
impactBrandCountryCode
|
|
14
|
+
impactBrandIndirectTaxCountryCode
|
|
17
15
|
}
|
|
18
16
|
}
|
|
19
17
|
`;
|
|
20
18
|
export function useUserInfoForm(props) {
|
|
21
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
19
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
22
20
|
const currencyRef = useRef(undefined);
|
|
23
21
|
const phoneCountryRef = useRef(undefined);
|
|
24
22
|
const formRef = useRef(null);
|
|
@@ -242,8 +240,7 @@ export function useUserInfoForm(props) {
|
|
|
242
240
|
const nextStep = context.overrideNextStep || skipNextStep ? "/3" : "/2";
|
|
243
241
|
setStep(nextStep);
|
|
244
242
|
}
|
|
245
|
-
const
|
|
246
|
-
const indirectTaxCountry = (_d = (_c = tenantData === null || tenantData === void 0 ? void 0 : tenantData.tenant) === null || _c === void 0 ? void 0 : _c.settings) === null || _d === void 0 ? void 0 : _d.impactBrandIndirectTaxCountryCode;
|
|
243
|
+
const indirectTaxCountry = (_a = tenantData === null || tenantData === void 0 ? void 0 : tenantData.tenantSettings) === null || _a === void 0 ? void 0 : _a.impactBrandIndirectTaxCountryCode;
|
|
247
244
|
const hasIndirectTax = !!indirectTaxCountry;
|
|
248
245
|
function getSkipNextStep(userData) {
|
|
249
246
|
if (!hasIndirectTax)
|
|
@@ -281,7 +278,7 @@ export function useUserInfoForm(props) {
|
|
|
281
278
|
allCountries: countries,
|
|
282
279
|
regionLabelEnum: regionObj === null || regionObj === void 0 ? void 0 : regionObj.labelEnum,
|
|
283
280
|
regions: (regionObj === null || regionObj === void 0 ? void 0 : regionObj.regions) || [],
|
|
284
|
-
partnerData: (
|
|
281
|
+
partnerData: (_c = (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher,
|
|
285
282
|
},
|
|
286
283
|
states: {
|
|
287
284
|
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
@@ -290,8 +287,8 @@ export function useUserInfoForm(props) {
|
|
|
290
287
|
disabled: loading || connectLoading,
|
|
291
288
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
292
289
|
loading: loading || connectLoading,
|
|
293
|
-
isPartner: !!((
|
|
294
|
-
isUser: !!((
|
|
290
|
+
isPartner: !!((_e = (_d = data === null || data === void 0 ? void 0 : data.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher),
|
|
291
|
+
isUser: !!((_g = (_f = data === null || data === void 0 ? void 0 : data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.user),
|
|
295
292
|
formState: {
|
|
296
293
|
...userFormContext,
|
|
297
294
|
errors: formErrors,
|
|
@@ -4391,8 +4391,14 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4391
4391
|
useEffect(() => {
|
|
4392
4392
|
// Clear override context once on submitted
|
|
4393
4393
|
setContext({});
|
|
4394
|
-
if (window.location.hash)
|
|
4394
|
+
if (window.location.hash) {
|
|
4395
|
+
setContext({
|
|
4396
|
+
overrideNextStep: "/dashboard",
|
|
4397
|
+
overrideBackStep: "/dashboard",
|
|
4398
|
+
hideSteps: true,
|
|
4399
|
+
});
|
|
4395
4400
|
setStep(`/${window.location.hash.replace("#", "")}`);
|
|
4401
|
+
}
|
|
4396
4402
|
}, []);
|
|
4397
4403
|
const { data, loading, errors: userError, refetch, } = $n(USER_QUERY_NAMESPACE);
|
|
4398
4404
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
@@ -6335,16 +6341,14 @@ const UserInfoFormView = (props) => {
|
|
|
6335
6341
|
|
|
6336
6342
|
const GET_INDIRECT_TAX_COUNTRY_CODE = dist.gql `
|
|
6337
6343
|
query getIndirectTaxCountryCode {
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
impactBrandIndirectTaxCountryCode
|
|
6342
|
-
}
|
|
6344
|
+
tenantSettings {
|
|
6345
|
+
impactBrandCountryCode
|
|
6346
|
+
impactBrandIndirectTaxCountryCode
|
|
6343
6347
|
}
|
|
6344
6348
|
}
|
|
6345
6349
|
`;
|
|
6346
6350
|
function useUserInfoForm(props) {
|
|
6347
|
-
var _c, _d, _e, _f, _g
|
|
6351
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6348
6352
|
const currencyRef = useRef(undefined);
|
|
6349
6353
|
const phoneCountryRef = useRef(undefined);
|
|
6350
6354
|
const formRef = useRef(null);
|
|
@@ -6568,7 +6572,7 @@ function useUserInfoForm(props) {
|
|
|
6568
6572
|
const nextStep = context.overrideNextStep || skipNextStep ? "/3" : "/2";
|
|
6569
6573
|
setStep(nextStep);
|
|
6570
6574
|
}
|
|
6571
|
-
const indirectTaxCountry = (
|
|
6575
|
+
const indirectTaxCountry = (_a = tenantData === null || tenantData === void 0 ? void 0 : tenantData.tenantSettings) === null || _a === void 0 ? void 0 : _a.impactBrandIndirectTaxCountryCode;
|
|
6572
6576
|
const hasIndirectTax = !!indirectTaxCountry;
|
|
6573
6577
|
function getSkipNextStep(userData) {
|
|
6574
6578
|
if (!hasIndirectTax)
|
|
@@ -6606,7 +6610,7 @@ function useUserInfoForm(props) {
|
|
|
6606
6610
|
allCountries: countries,
|
|
6607
6611
|
regionLabelEnum: regionObj === null || regionObj === void 0 ? void 0 : regionObj.labelEnum,
|
|
6608
6612
|
regions: (regionObj === null || regionObj === void 0 ? void 0 : regionObj.regions) || [],
|
|
6609
|
-
partnerData: (
|
|
6613
|
+
partnerData: (_c = (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher,
|
|
6610
6614
|
},
|
|
6611
6615
|
states: {
|
|
6612
6616
|
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
@@ -6615,8 +6619,8 @@ function useUserInfoForm(props) {
|
|
|
6615
6619
|
disabled: loading || connectLoading,
|
|
6616
6620
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
6617
6621
|
loading: loading || connectLoading,
|
|
6618
|
-
isPartner: !!((
|
|
6619
|
-
isUser: !!((
|
|
6622
|
+
isPartner: !!((_e = (_d = data === null || data === void 0 ? void 0 : data.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher),
|
|
6623
|
+
isUser: !!((_g = (_f = data === null || data === void 0 ? void 0 : data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.user),
|
|
6620
6624
|
formState: {
|
|
6621
6625
|
...userFormContext,
|
|
6622
6626
|
errors: formErrors,
|
|
@@ -11,6 +11,7 @@ const HeroImage = class {
|
|
|
11
11
|
/**
|
|
12
12
|
* @uiWidget color
|
|
13
13
|
* @uiName Logo text color
|
|
14
|
+
* @default #555555
|
|
14
15
|
*/
|
|
15
16
|
this.logoTextColor = "#555555";
|
|
16
17
|
/**
|
|
@@ -28,10 +29,9 @@ const HeroImage = class {
|
|
|
28
29
|
}
|
|
29
30
|
disconnectedCallback() { }
|
|
30
31
|
render() {
|
|
31
|
-
return (h$1(Host, null, h$1("a", { href: this.nextPage, part: "sqm-link" }, this.imageUrl ? (h$1("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl })) : (h$1("h3", { style: {
|
|
32
|
+
return (h$1(Host, null, h$1("a", { href: this.nextPage, part: "sqm-link", style: { textDecoration: "none" } }, this.imageUrl ? (h$1("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl })) : (h$1("h3", { style: {
|
|
32
33
|
fontSize: `${this.logoTextSize}px`,
|
|
33
34
|
color: this.logoTextColor || "#555555",
|
|
34
|
-
textDecoration: "none",
|
|
35
35
|
} }, this.logoText)))));
|
|
36
36
|
}
|
|
37
37
|
};
|