@saasquatch/mint-components 1.12.0-13 → 1.12.0-14
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 +1 -1
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +38 -1
- package/dist/cjs/{sqm-invoice-table-view-e92c557a.js → sqm-invoice-table-view-ed76d7bd.js} +15 -0
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +5 -1
- package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +3 -10
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +14 -0
- package/dist/esm/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm/sqm-big-stat_39.entry.js +38 -1
- package/dist/esm/{sqm-invoice-table-view-c184248a.js → sqm-invoice-table-view-6601d8f2.js} +15 -0
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-c184248a.js → sqm-invoice-table-view-6601d8f2.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-8c26c4ce.entry.js → p-21aa318a.entry.js} +1 -1
- package/dist/mint-components/{p-13ce67a3.js → p-2d836e58.js} +1 -1
- package/dist/mint-components/{p-b9e863d0.entry.js → p-30ac8e59.entry.js} +29 -11
- package/dist/mint-components/{p-b7836281.system.js → p-45a8d0fc.system.js} +1 -1
- package/dist/mint-components/{p-c520d10d.system.entry.js → p-4adff550.system.entry.js} +1 -1
- package/dist/mint-components/{p-4e21de5f.entry.js → p-856c09f1.entry.js} +1 -1
- package/dist/mint-components/p-9a21cc81.system.entry.js +1 -0
- package/dist/mint-components/p-ca809fdd.system.js +1 -1
- package/dist/mint-components/{p-9266a8fc.system.entry.js → p-e0c54a41.system.entry.js} +1 -1
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-a567ba84.system.entry.js +0 -1
- package/docs/picklesdoc--2024-01-15--11-20-00.xlsx +0 -0
- package/docs/picklesdoc--2024-01-15--11-24-04.xlsx +0 -0
|
@@ -16,7 +16,7 @@ const useChildElements = require('./useChildElements-410d2435.js');
|
|
|
16
16
|
const luxon = require('./luxon-05098e19.js');
|
|
17
17
|
const useReferralTable = require('./useReferralTable-824ac152.js');
|
|
18
18
|
const utils = require('./utils-6847bc06.js');
|
|
19
|
-
const sqmInvoiceTableView = require('./sqm-invoice-table-view-
|
|
19
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-ed76d7bd.js');
|
|
20
20
|
const keys = require('./keys-cff24974.js');
|
|
21
21
|
const usePayoutStatus = require('./usePayoutStatus-5ac536a3.js');
|
|
22
22
|
const extractProps = require('./extractProps-fd93ba62.js');
|
|
@@ -1743,6 +1743,41 @@ function PayoutButtonScrollView(props) {
|
|
|
1743
1743
|
index.h("p", { class: sheet$2.classes.PayoutButtonDescription }, text.payoutButtonDescription)));
|
|
1744
1744
|
}
|
|
1745
1745
|
|
|
1746
|
+
const GET_PAYOUT_DETAILS = index_module.dist.gql `
|
|
1747
|
+
query getPayoutDetails {
|
|
1748
|
+
user: viewer {
|
|
1749
|
+
... on User {
|
|
1750
|
+
id
|
|
1751
|
+
impactConnection {
|
|
1752
|
+
connected
|
|
1753
|
+
publisher {
|
|
1754
|
+
id
|
|
1755
|
+
payoutsAccount {
|
|
1756
|
+
hold
|
|
1757
|
+
balance
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
`;
|
|
1765
|
+
function usePayoutButton(props) {
|
|
1766
|
+
var _a, _b, _c;
|
|
1767
|
+
const { data, refetch } = index_module.En(GET_PAYOUT_DETAILS, {});
|
|
1768
|
+
stencilHooks_module.useEffect(() => {
|
|
1769
|
+
const cb = () => refetch();
|
|
1770
|
+
window.addEventListener("sqm:tax-form-updated", cb);
|
|
1771
|
+
return () => window.removeEventListener("sqm:tax-form-updated", cb);
|
|
1772
|
+
}, []);
|
|
1773
|
+
return {
|
|
1774
|
+
states: {
|
|
1775
|
+
payoutSettingsComplete: !!((_c = (_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) === null || _c === void 0 ? void 0 : _c.payoutsAccount),
|
|
1776
|
+
},
|
|
1777
|
+
text: props.getTextProps(),
|
|
1778
|
+
};
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1746
1781
|
const PayoutButtonScroll = class {
|
|
1747
1782
|
constructor(hostRef) {
|
|
1748
1783
|
index.registerInstance(this, hostRef);
|
|
@@ -1763,7 +1798,9 @@ const PayoutButtonScroll = class {
|
|
|
1763
1798
|
return utils.getProps(this);
|
|
1764
1799
|
}
|
|
1765
1800
|
render() {
|
|
1766
|
-
const props =
|
|
1801
|
+
const props = index_module.isDemo()
|
|
1802
|
+
? useDemoPayoutButtonScroll(this)
|
|
1803
|
+
: usePayoutButton(this);
|
|
1767
1804
|
return index.h(PayoutButtonScrollView, Object.assign({}, props));
|
|
1768
1805
|
}
|
|
1769
1806
|
};
|
|
@@ -1263,6 +1263,20 @@ const StepFourToPaypalChecked = () => {
|
|
|
1263
1263
|
},
|
|
1264
1264
|
} }));
|
|
1265
1265
|
};
|
|
1266
|
+
const StepFourReVerifyEmail = () => {
|
|
1267
|
+
return (index.h("sqm-banking-info-form", { demoData: {
|
|
1268
|
+
...stepFourProps,
|
|
1269
|
+
states: {
|
|
1270
|
+
...stepFourProps.states,
|
|
1271
|
+
showVerification: true,
|
|
1272
|
+
isPartner: true,
|
|
1273
|
+
formState: {
|
|
1274
|
+
...stepFourProps.states.formState,
|
|
1275
|
+
paymentMethodChecked: "toPayPalAccount",
|
|
1276
|
+
},
|
|
1277
|
+
},
|
|
1278
|
+
} }));
|
|
1279
|
+
};
|
|
1266
1280
|
const TaxAndCashDashboardActiveW9Form = () => {
|
|
1267
1281
|
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1268
1282
|
...dashboardProps,
|
|
@@ -1756,6 +1770,7 @@ const TaxForm = /*#__PURE__*/Object.freeze({
|
|
|
1756
1770
|
StepFourIsPartner: StepFourIsPartner,
|
|
1757
1771
|
StepFourDirectToBankChecked: StepFourDirectToBankChecked,
|
|
1758
1772
|
StepFourToPaypalChecked: StepFourToPaypalChecked,
|
|
1773
|
+
StepFourReVerifyEmail: StepFourReVerifyEmail,
|
|
1759
1774
|
TaxAndCashDashboardActiveW9Form: TaxAndCashDashboardActiveW9Form,
|
|
1760
1775
|
TaxAndCashDashboardActiveW8BENForm: TaxAndCashDashboardActiveW8BENForm,
|
|
1761
1776
|
TaxAndCashDashboardActiveW8BENEForm: TaxAndCashDashboardActiveW8BENEForm,
|
|
@@ -30,7 +30,7 @@ const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-96f
|
|
|
30
30
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-7ffcc0d4.js');
|
|
31
31
|
const ShadowViewAddon = require('./ShadowViewAddon-040cffad.js');
|
|
32
32
|
const sqmPortalContainerView = require('./sqm-portal-container-view-990a85a3.js');
|
|
33
|
-
const sqmInvoiceTableView = require('./sqm-invoice-table-view-
|
|
33
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-ed76d7bd.js');
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Component, h, Prop, State } from "@stencil/core";
|
|
2
2
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
|
+
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
3
4
|
import { getProps } from "../../utils/utils";
|
|
4
5
|
import { PayoutButtonScrollView, } from "./sqm-payout-button-scroll-view";
|
|
5
6
|
import deepmerge from "deepmerge";
|
|
7
|
+
import { usePayoutButton } from "./usePayoutButton";
|
|
6
8
|
/**
|
|
7
9
|
* @uiName Payout Button Scroll
|
|
8
10
|
*/
|
|
@@ -25,7 +27,9 @@ export class PayoutButtonScroll {
|
|
|
25
27
|
return getProps(this);
|
|
26
28
|
}
|
|
27
29
|
render() {
|
|
28
|
-
const props =
|
|
30
|
+
const props = isDemo()
|
|
31
|
+
? useDemoPayoutButtonScroll(this)
|
|
32
|
+
: usePayoutButton(this);
|
|
29
33
|
return h(PayoutButtonScrollView, Object.assign({}, props));
|
|
30
34
|
}
|
|
31
35
|
static get is() { return "sqm-payout-button-scroll"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
2
|
import { useQuery } from "@saasquatch/component-boilerplate";
|
|
3
|
-
import { useEffect
|
|
3
|
+
import { useEffect } from "@saasquatch/universal-hooks";
|
|
4
4
|
const GET_PAYOUT_DETAILS = gql `
|
|
5
5
|
query getPayoutDetails {
|
|
6
6
|
user: viewer {
|
|
@@ -21,15 +21,8 @@ const GET_PAYOUT_DETAILS = gql `
|
|
|
21
21
|
}
|
|
22
22
|
`;
|
|
23
23
|
export function usePayoutButton(props) {
|
|
24
|
+
var _a, _b, _c;
|
|
24
25
|
const { data, refetch } = useQuery(GET_PAYOUT_DETAILS, {});
|
|
25
|
-
const [completed, setCompleted] = useState(false);
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
var _a, _b, _c;
|
|
28
|
-
if (!data)
|
|
29
|
-
return;
|
|
30
|
-
const hasCompleted = (_c = (_b = (_a = data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.payoutAccount;
|
|
31
|
-
setCompleted(hasCompleted);
|
|
32
|
-
}, [data]);
|
|
33
26
|
useEffect(() => {
|
|
34
27
|
const cb = () => refetch();
|
|
35
28
|
window.addEventListener("sqm:tax-form-updated", cb);
|
|
@@ -37,7 +30,7 @@ export function usePayoutButton(props) {
|
|
|
37
30
|
}, []);
|
|
38
31
|
return {
|
|
39
32
|
states: {
|
|
40
|
-
payoutSettingsComplete:
|
|
33
|
+
payoutSettingsComplete: !!((_c = (_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) === null || _c === void 0 ? void 0 : _c.payoutsAccount),
|
|
41
34
|
},
|
|
42
35
|
text: props.getTextProps(),
|
|
43
36
|
};
|
|
@@ -759,6 +759,20 @@ export const StepFourToPaypalChecked = () => {
|
|
|
759
759
|
},
|
|
760
760
|
} }));
|
|
761
761
|
};
|
|
762
|
+
export const StepFourReVerifyEmail = () => {
|
|
763
|
+
return (h("sqm-banking-info-form", { demoData: {
|
|
764
|
+
...stepFourProps,
|
|
765
|
+
states: {
|
|
766
|
+
...stepFourProps.states,
|
|
767
|
+
showVerification: true,
|
|
768
|
+
isPartner: true,
|
|
769
|
+
formState: {
|
|
770
|
+
...stepFourProps.states.formState,
|
|
771
|
+
paymentMethodChecked: "toPayPalAccount",
|
|
772
|
+
},
|
|
773
|
+
},
|
|
774
|
+
} }));
|
|
775
|
+
};
|
|
762
776
|
export const TaxAndCashDashboardActiveW9Form = () => {
|
|
763
777
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
764
778
|
...dashboardProps,
|
|
@@ -12,7 +12,7 @@ import { u as useChildElements } from './useChildElements-fc84e640.js';
|
|
|
12
12
|
import { l as luxon } from './luxon-7600be8d.js';
|
|
13
13
|
import { g as generateUserError } from './useReferralTable-f6ffa103.js';
|
|
14
14
|
import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
|
|
15
|
-
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-
|
|
15
|
+
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-6601d8f2.js';
|
|
16
16
|
import { b as VERIFICATION_EVENT_KEY } from './keys-db1897ae.js';
|
|
17
17
|
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-d613ff10.js';
|
|
18
18
|
import { e as extractProps } from './extractProps-ae1afbb3.js';
|
|
@@ -1739,6 +1739,41 @@ function PayoutButtonScrollView(props) {
|
|
|
1739
1739
|
h$1("p", { class: sheet$2.classes.PayoutButtonDescription }, text.payoutButtonDescription)));
|
|
1740
1740
|
}
|
|
1741
1741
|
|
|
1742
|
+
const GET_PAYOUT_DETAILS = dist.gql `
|
|
1743
|
+
query getPayoutDetails {
|
|
1744
|
+
user: viewer {
|
|
1745
|
+
... on User {
|
|
1746
|
+
id
|
|
1747
|
+
impactConnection {
|
|
1748
|
+
connected
|
|
1749
|
+
publisher {
|
|
1750
|
+
id
|
|
1751
|
+
payoutsAccount {
|
|
1752
|
+
hold
|
|
1753
|
+
balance
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
`;
|
|
1761
|
+
function usePayoutButton(props) {
|
|
1762
|
+
var _a, _b, _c;
|
|
1763
|
+
const { data, refetch } = En(GET_PAYOUT_DETAILS, {});
|
|
1764
|
+
useEffect(() => {
|
|
1765
|
+
const cb = () => refetch();
|
|
1766
|
+
window.addEventListener("sqm:tax-form-updated", cb);
|
|
1767
|
+
return () => window.removeEventListener("sqm:tax-form-updated", cb);
|
|
1768
|
+
}, []);
|
|
1769
|
+
return {
|
|
1770
|
+
states: {
|
|
1771
|
+
payoutSettingsComplete: !!((_c = (_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) === null || _c === void 0 ? void 0 : _c.payoutsAccount),
|
|
1772
|
+
},
|
|
1773
|
+
text: props.getTextProps(),
|
|
1774
|
+
};
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1742
1777
|
const PayoutButtonScroll = class {
|
|
1743
1778
|
constructor(hostRef) {
|
|
1744
1779
|
registerInstance(this, hostRef);
|
|
@@ -1759,7 +1794,9 @@ const PayoutButtonScroll = class {
|
|
|
1759
1794
|
return getProps(this);
|
|
1760
1795
|
}
|
|
1761
1796
|
render() {
|
|
1762
|
-
const props =
|
|
1797
|
+
const props = isDemo()
|
|
1798
|
+
? useDemoPayoutButtonScroll(this)
|
|
1799
|
+
: usePayoutButton(this);
|
|
1763
1800
|
return h$1(PayoutButtonScrollView, Object.assign({}, props));
|
|
1764
1801
|
}
|
|
1765
1802
|
};
|
|
@@ -1261,6 +1261,20 @@ const StepFourToPaypalChecked = () => {
|
|
|
1261
1261
|
},
|
|
1262
1262
|
} }));
|
|
1263
1263
|
};
|
|
1264
|
+
const StepFourReVerifyEmail = () => {
|
|
1265
|
+
return (h("sqm-banking-info-form", { demoData: {
|
|
1266
|
+
...stepFourProps,
|
|
1267
|
+
states: {
|
|
1268
|
+
...stepFourProps.states,
|
|
1269
|
+
showVerification: true,
|
|
1270
|
+
isPartner: true,
|
|
1271
|
+
formState: {
|
|
1272
|
+
...stepFourProps.states.formState,
|
|
1273
|
+
paymentMethodChecked: "toPayPalAccount",
|
|
1274
|
+
},
|
|
1275
|
+
},
|
|
1276
|
+
} }));
|
|
1277
|
+
};
|
|
1264
1278
|
const TaxAndCashDashboardActiveW9Form = () => {
|
|
1265
1279
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1266
1280
|
...dashboardProps,
|
|
@@ -1754,6 +1768,7 @@ const TaxForm = /*#__PURE__*/Object.freeze({
|
|
|
1754
1768
|
StepFourIsPartner: StepFourIsPartner,
|
|
1755
1769
|
StepFourDirectToBankChecked: StepFourDirectToBankChecked,
|
|
1756
1770
|
StepFourToPaypalChecked: StepFourToPaypalChecked,
|
|
1771
|
+
StepFourReVerifyEmail: StepFourReVerifyEmail,
|
|
1757
1772
|
TaxAndCashDashboardActiveW9Form: TaxAndCashDashboardActiveW9Form,
|
|
1758
1773
|
TaxAndCashDashboardActiveW8BENForm: TaxAndCashDashboardActiveW8BENForm,
|
|
1759
1774
|
TaxAndCashDashboardActiveW8BENEForm: TaxAndCashDashboardActiveW8BENEForm,
|
|
@@ -26,7 +26,7 @@ import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-7
|
|
|
26
26
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-d7ea2c56.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-69b61037.js';
|
|
28
28
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-6c582684.js';
|
|
29
|
-
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-
|
|
29
|
+
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-6601d8f2.js';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* lodash (Custom Build) <https://lodash.com/>
|