@saasquatch/mint-components 2.0.2-14 → 2.0.2-16
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 +12 -14
- 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-user-info-form/useUserInfoForm.js +12 -14
- package/dist/esm/sqm-banking-info-form_10.entry.js +12 -14
- 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-9dc5dd82.entry.js → p-5aa1abc8.entry.js} +4 -6
- package/dist/mint-components/p-7fb4470e.entry.js +1 -0
- package/dist/mint-components/{p-8a681478.system.entry.js → p-7fe673c5.system.entry.js} +1 -1
- 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/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
|
@@ -6339,16 +6339,14 @@ const UserInfoFormView = (props) => {
|
|
|
6339
6339
|
|
|
6340
6340
|
const GET_INDIRECT_TAX_COUNTRY_CODE = index_module.dist.gql `
|
|
6341
6341
|
query getIndirectTaxCountryCode {
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
impactBrandIndirectTaxCountryCode
|
|
6346
|
-
}
|
|
6342
|
+
tenantSettings {
|
|
6343
|
+
impactBrandCountryCode
|
|
6344
|
+
impactBrandIndirectTaxCountryCode
|
|
6347
6345
|
}
|
|
6348
6346
|
}
|
|
6349
6347
|
`;
|
|
6350
6348
|
function useUserInfoForm(props) {
|
|
6351
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
6349
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6352
6350
|
const currencyRef = domContextHooks_module.useRef(undefined);
|
|
6353
6351
|
const phoneCountryRef = domContextHooks_module.useRef(undefined);
|
|
6354
6352
|
const formRef = domContextHooks_module.useRef(null);
|
|
@@ -6572,14 +6570,14 @@ function useUserInfoForm(props) {
|
|
|
6572
6570
|
const nextStep = context.overrideNextStep || skipNextStep ? "/3" : "/2";
|
|
6573
6571
|
setStep(nextStep);
|
|
6574
6572
|
}
|
|
6575
|
-
const
|
|
6576
|
-
const hasIndirectTax = !!
|
|
6573
|
+
const indirectTaxCountry = (_a = tenantData === null || tenantData === void 0 ? void 0 : tenantData.tenantSettings) === null || _a === void 0 ? void 0 : _a.impactBrandIndirectTaxCountryCode;
|
|
6574
|
+
const hasIndirectTax = !!indirectTaxCountry;
|
|
6577
6575
|
function getSkipNextStep(userData) {
|
|
6578
|
-
if (userData.countryCode === "US")
|
|
6579
|
-
return true;
|
|
6580
6576
|
if (!hasIndirectTax)
|
|
6581
6577
|
return true;
|
|
6582
|
-
if (
|
|
6578
|
+
if (userData.countryCode === "US")
|
|
6579
|
+
return true;
|
|
6580
|
+
if (hasIndirectTax && userData.countryCode !== indirectTaxCountry)
|
|
6583
6581
|
return true;
|
|
6584
6582
|
return false;
|
|
6585
6583
|
}
|
|
@@ -6610,7 +6608,7 @@ function useUserInfoForm(props) {
|
|
|
6610
6608
|
allCountries: countries,
|
|
6611
6609
|
regionLabelEnum: regionObj === null || regionObj === void 0 ? void 0 : regionObj.labelEnum,
|
|
6612
6610
|
regions: (regionObj === null || regionObj === void 0 ? void 0 : regionObj.regions) || [],
|
|
6613
|
-
partnerData: (
|
|
6611
|
+
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
6612
|
},
|
|
6615
6613
|
states: {
|
|
6616
6614
|
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
@@ -6619,8 +6617,8 @@ function useUserInfoForm(props) {
|
|
|
6619
6617
|
disabled: loading || connectLoading,
|
|
6620
6618
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
6621
6619
|
loading: loading || connectLoading,
|
|
6622
|
-
isPartner: !!((
|
|
6623
|
-
isUser: !!((
|
|
6620
|
+
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),
|
|
6621
|
+
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
6622
|
formState: {
|
|
6625
6623
|
...userFormContext,
|
|
6626
6624
|
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
|
},
|
|
@@ -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,14 +240,14 @@ export function useUserInfoForm(props) {
|
|
|
242
240
|
const nextStep = context.overrideNextStep || skipNextStep ? "/3" : "/2";
|
|
243
241
|
setStep(nextStep);
|
|
244
242
|
}
|
|
245
|
-
const
|
|
246
|
-
const hasIndirectTax = !!
|
|
243
|
+
const indirectTaxCountry = (_a = tenantData === null || tenantData === void 0 ? void 0 : tenantData.tenantSettings) === null || _a === void 0 ? void 0 : _a.impactBrandIndirectTaxCountryCode;
|
|
244
|
+
const hasIndirectTax = !!indirectTaxCountry;
|
|
247
245
|
function getSkipNextStep(userData) {
|
|
248
|
-
if (userData.countryCode === "US")
|
|
249
|
-
return true;
|
|
250
246
|
if (!hasIndirectTax)
|
|
251
247
|
return true;
|
|
252
|
-
if (
|
|
248
|
+
if (userData.countryCode === "US")
|
|
249
|
+
return true;
|
|
250
|
+
if (hasIndirectTax && userData.countryCode !== indirectTaxCountry)
|
|
253
251
|
return true;
|
|
254
252
|
return false;
|
|
255
253
|
}
|
|
@@ -280,7 +278,7 @@ export function useUserInfoForm(props) {
|
|
|
280
278
|
allCountries: countries,
|
|
281
279
|
regionLabelEnum: regionObj === null || regionObj === void 0 ? void 0 : regionObj.labelEnum,
|
|
282
280
|
regions: (regionObj === null || regionObj === void 0 ? void 0 : regionObj.regions) || [],
|
|
283
|
-
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,
|
|
284
282
|
},
|
|
285
283
|
states: {
|
|
286
284
|
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
@@ -289,8 +287,8 @@ export function useUserInfoForm(props) {
|
|
|
289
287
|
disabled: loading || connectLoading,
|
|
290
288
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
291
289
|
loading: loading || connectLoading,
|
|
292
|
-
isPartner: !!((
|
|
293
|
-
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),
|
|
294
292
|
formState: {
|
|
295
293
|
...userFormContext,
|
|
296
294
|
errors: formErrors,
|
|
@@ -6335,16 +6335,14 @@ const UserInfoFormView = (props) => {
|
|
|
6335
6335
|
|
|
6336
6336
|
const GET_INDIRECT_TAX_COUNTRY_CODE = dist.gql `
|
|
6337
6337
|
query getIndirectTaxCountryCode {
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
impactBrandIndirectTaxCountryCode
|
|
6342
|
-
}
|
|
6338
|
+
tenantSettings {
|
|
6339
|
+
impactBrandCountryCode
|
|
6340
|
+
impactBrandIndirectTaxCountryCode
|
|
6343
6341
|
}
|
|
6344
6342
|
}
|
|
6345
6343
|
`;
|
|
6346
6344
|
function useUserInfoForm(props) {
|
|
6347
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
6345
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6348
6346
|
const currencyRef = useRef(undefined);
|
|
6349
6347
|
const phoneCountryRef = useRef(undefined);
|
|
6350
6348
|
const formRef = useRef(null);
|
|
@@ -6568,14 +6566,14 @@ function useUserInfoForm(props) {
|
|
|
6568
6566
|
const nextStep = context.overrideNextStep || skipNextStep ? "/3" : "/2";
|
|
6569
6567
|
setStep(nextStep);
|
|
6570
6568
|
}
|
|
6571
|
-
const
|
|
6572
|
-
const hasIndirectTax = !!
|
|
6569
|
+
const indirectTaxCountry = (_a = tenantData === null || tenantData === void 0 ? void 0 : tenantData.tenantSettings) === null || _a === void 0 ? void 0 : _a.impactBrandIndirectTaxCountryCode;
|
|
6570
|
+
const hasIndirectTax = !!indirectTaxCountry;
|
|
6573
6571
|
function getSkipNextStep(userData) {
|
|
6574
|
-
if (userData.countryCode === "US")
|
|
6575
|
-
return true;
|
|
6576
6572
|
if (!hasIndirectTax)
|
|
6577
6573
|
return true;
|
|
6578
|
-
if (
|
|
6574
|
+
if (userData.countryCode === "US")
|
|
6575
|
+
return true;
|
|
6576
|
+
if (hasIndirectTax && userData.countryCode !== indirectTaxCountry)
|
|
6579
6577
|
return true;
|
|
6580
6578
|
return false;
|
|
6581
6579
|
}
|
|
@@ -6606,7 +6604,7 @@ function useUserInfoForm(props) {
|
|
|
6606
6604
|
allCountries: countries,
|
|
6607
6605
|
regionLabelEnum: regionObj === null || regionObj === void 0 ? void 0 : regionObj.labelEnum,
|
|
6608
6606
|
regions: (regionObj === null || regionObj === void 0 ? void 0 : regionObj.regions) || [],
|
|
6609
|
-
partnerData: (
|
|
6607
|
+
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
6608
|
},
|
|
6611
6609
|
states: {
|
|
6612
6610
|
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
@@ -6615,8 +6613,8 @@ function useUserInfoForm(props) {
|
|
|
6615
6613
|
disabled: loading || connectLoading,
|
|
6616
6614
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
6617
6615
|
loading: loading || connectLoading,
|
|
6618
|
-
isPartner: !!((
|
|
6619
|
-
isUser: !!((
|
|
6616
|
+
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),
|
|
6617
|
+
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
6618
|
formState: {
|
|
6621
6619
|
...userFormContext,
|
|
6622
6620
|
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
|
};
|