@saasquatch/mint-components 2.3.0-5 → 2.3.0-7
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 +28 -721
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +4 -4
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +17 -32
- package/dist/cjs/{sqm-partner-info-modal-view-2eb52318.js → sqm-partner-info-modal-view-65cc677a.js} +1 -0
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +254 -77
- package/dist/cjs/{sqm-user-info-form-view-0e1ddbe4.js → sqm-user-info-form-view-42323dc5.js} +743 -38
- package/dist/cjs/{useIndirectTaxForm-c3c1ec56.js → useIndirectTaxForm-d1cd23f7.js} +5 -5
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +1 -0
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +16 -31
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +6 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +13 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +151 -0
- package/dist/esm/sqm-banking-info-form_10.entry.js +16 -709
- package/dist/esm/sqm-big-stat_47.entry.js +2 -2
- package/dist/esm/sqm-email-verification_2.entry.js +17 -32
- package/dist/esm/{sqm-partner-info-modal-view-e8efbef1.js → sqm-partner-info-modal-view-136c443d.js} +1 -0
- package/dist/esm/sqm-stencilbook.entry.js +218 -41
- package/dist/esm/{sqm-user-info-form-view-e1ba6009.js → sqm-user-info-form-view-dc473cb8.js} +721 -17
- package/dist/esm/{useIndirectTaxForm-b2888ea5.js → useIndirectTaxForm-27668ad4.js} +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-136c443d.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-dc473cb8.js +1 -0
- package/dist/esm-es5/subregions-24c1c137.js +1 -0
- package/dist/esm-es5/{useIndirectTaxForm-b2888ea5.js → useIndirectTaxForm-27668ad4.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-1f387c7b.system.js +1 -1
- package/dist/mint-components/{p-abe9f5b1.js → p-2e462dd9.js} +5 -5
- package/dist/mint-components/{p-b419f9ac.entry.js → p-3c052d3d.entry.js} +1 -1
- package/dist/mint-components/p-3f68e4e3.js +1 -0
- package/dist/mint-components/{p-a38eece5.system.entry.js → p-4575f71b.system.entry.js} +1 -1
- package/dist/mint-components/{p-fa227290.entry.js → p-459c4251.entry.js} +6 -31
- package/dist/mint-components/p-4c6ab282.js +1 -0
- package/dist/mint-components/p-547f8243.system.entry.js +1 -0
- package/dist/mint-components/p-66cb8bec.system.js +1 -0
- package/dist/mint-components/p-b21c53cb.system.entry.js +1 -0
- package/dist/mint-components/p-b24bb1ee.system.js +1 -0
- package/dist/mint-components/p-c2903e7d.entry.js +83 -0
- package/dist/mint-components/p-cb58a2c6.js +1 -0
- package/dist/mint-components/p-d30c8cb3.entry.js +9 -0
- package/dist/mint-components/p-df74f653.system.entry.js +1 -0
- package/dist/mint-components/p-ec58628f.system.js +1 -0
- package/dist/mint-components/{p-58c24352.system.js → p-ed945efe.system.js} +1 -1
- package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.d.ts +19 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-e8efbef1.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-e1ba6009.js +0 -1
- package/dist/esm-es5/utils-4f5cd04c.js +0 -1
- package/dist/mint-components/p-1e6a2945.js +0 -1
- package/dist/mint-components/p-25b32748.system.entry.js +0 -1
- package/dist/mint-components/p-41415f9a.system.entry.js +0 -1
- package/dist/mint-components/p-58c525ce.system.js +0 -1
- package/dist/mint-components/p-7f1bc92b.entry.js +0 -9
- package/dist/mint-components/p-b0177b7f.js +0 -1
- package/dist/mint-components/p-b222bace.system.entry.js +0 -1
- package/dist/mint-components/p-b96ed8eb.js +0 -1
- package/dist/mint-components/p-cdabd9de.system.js +0 -1
- package/dist/mint-components/p-ebc519bc.system.js +0 -1
- package/dist/mint-components/p-ffcebe78.entry.js +0 -83
- package/dist/cjs/{utils-a3b3d05b.js → subregions-e7273457.js} +44 -44
- package/dist/esm/{utils-4f5cd04c.js → subregions-24c1c137.js} +44 -44
|
@@ -25,11 +25,11 @@ import { i as isEmpty } from './utilities-cbd8f2eb.js';
|
|
|
25
25
|
import { E as ErrorView } from './ErrorView-74cb3af8.js';
|
|
26
26
|
import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as LeadDropdownFieldView, Q as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalFrameView, c as BaseRegistrationFormView, R as ReferralIframeView, i as RewardExchangeView, Y as demoRewardExchange, G as useShareButton, a as ShareButtonView, K as useShareLink, J as ShareLinkView, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-e115fa1c.js';
|
|
27
27
|
import './sqm-portal-container-view-200c9df8.js';
|
|
28
|
-
import { g as getCountryObj, L as LoadingView } from './
|
|
28
|
+
import { g as getCountryObj, L as LoadingView } from './subregions-24c1c137.js';
|
|
29
29
|
import { T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, b as COUNTRIES_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, G as GET_USER$2, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, f as FINANCE_NETWORK_SETTINGS_NAMESPACE, g as GET_FINANCE_NETWORK_SETTINGS, h as CURRENCIES_QUERY_NAMESPACE, i as GET_CURRENCIES } from './data-8698cbc6.js';
|
|
30
30
|
import { S as SHOW_CODE_NAMESPACE, a as VERIFICATION_EMAIL_NAMESPACE, b as SHOW_PARTNER_MODAL_NAMESPACE, P as PARTNER_CREATED_NAMESPACE, V as VERIFICATION_PARENT_NAMESPACE } from './keys-1054056a.js';
|
|
31
31
|
import './eventKeys-f76b6a03.js';
|
|
32
|
-
import { u as usePayoutStatus, C as COMPLETE_PARTNER } from './useIndirectTaxForm-
|
|
32
|
+
import { u as usePayoutStatus, C as COMPLETE_PARTNER } from './useIndirectTaxForm-27668ad4.js';
|
|
33
33
|
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -7,7 +7,7 @@ import { g as getProps } from './utils-334c1e34.js';
|
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
8
|
import { T as TextSpanView } from './sqm-text-span-view-72f43dff.js';
|
|
9
9
|
import { g as GET_FINANCE_NETWORK_SETTINGS } from './data-8698cbc6.js';
|
|
10
|
-
import { a as PartnerInfoModalContentView, P as PartnerInfoModalView } from './sqm-partner-info-modal-view-
|
|
10
|
+
import { a as PartnerInfoModalContentView, P as PartnerInfoModalView } from './sqm-partner-info-modal-view-136c443d.js';
|
|
11
11
|
import { S as SHOW_CODE_NAMESPACE, a as VERIFICATION_EMAIL_NAMESPACE, P as PARTNER_CREATED_NAMESPACE } from './keys-1054056a.js';
|
|
12
12
|
import { T as TAX_FORM_UPDATED_EVENT_KEY } from './eventKeys-f76b6a03.js';
|
|
13
13
|
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
@@ -467,32 +467,6 @@ const GET_CURRENCIES = dist.gql `
|
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
`;
|
|
470
|
-
const CONNECT_PARTNER = dist.gql `
|
|
471
|
-
mutation createImpactConnection($vars: ImpactConnectionInput!) {
|
|
472
|
-
createImpactConnection(impactConnectionInput: $vars) {
|
|
473
|
-
success
|
|
474
|
-
validationErrors {
|
|
475
|
-
field
|
|
476
|
-
message
|
|
477
|
-
}
|
|
478
|
-
user {
|
|
479
|
-
id
|
|
480
|
-
accountId
|
|
481
|
-
impactConnection {
|
|
482
|
-
connected
|
|
483
|
-
publisher {
|
|
484
|
-
brandedSignup
|
|
485
|
-
requiredTaxDocumentType
|
|
486
|
-
currentTaxDocument {
|
|
487
|
-
type
|
|
488
|
-
status
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
`;
|
|
496
470
|
const START_IMPACT_CONNECTION = dist.gql `
|
|
497
471
|
mutation startImpactConnection($vars: ImpactConnectionInput!) {
|
|
498
472
|
startImpactConnection(impactConnectionInput: $vars) {
|
|
@@ -520,7 +494,7 @@ const START_IMPACT_CONNECTION = dist.gql `
|
|
|
520
494
|
}
|
|
521
495
|
`;
|
|
522
496
|
function usePartnerInfoModal(props) {
|
|
523
|
-
var _a, _b, _c, _d, _e
|
|
497
|
+
var _a, _b, _c, _d, _e;
|
|
524
498
|
const locale = L();
|
|
525
499
|
const setPartnerCreated = En(PARTNER_CREATED_NAMESPACE);
|
|
526
500
|
const { data: userData, loading: userLoading, refetch, } = wn(GET_USER_PARTNER_INFO, {});
|
|
@@ -535,8 +509,20 @@ function usePartnerInfoModal(props) {
|
|
|
535
509
|
});
|
|
536
510
|
const [startImpactConnection, { loading: connectLoading }] = $e(START_IMPACT_CONNECTION);
|
|
537
511
|
const [allowBankingCollection, setAllowBankingCollection] = useState(false);
|
|
538
|
-
const countries = ((
|
|
539
|
-
|
|
512
|
+
const countries = useMemo(() => {
|
|
513
|
+
var _a;
|
|
514
|
+
const data = (_a = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data;
|
|
515
|
+
if (!data)
|
|
516
|
+
return [];
|
|
517
|
+
return [...data].sort((a, b) => {
|
|
518
|
+
if (a.countryCode === "US")
|
|
519
|
+
return -1;
|
|
520
|
+
if (b.countryCode === "US")
|
|
521
|
+
return 1;
|
|
522
|
+
return a.displayName.localeCompare(b.displayName);
|
|
523
|
+
});
|
|
524
|
+
}, [countriesData]);
|
|
525
|
+
const isExistingPartner = !!((_e = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher);
|
|
540
526
|
const _currencies = useMemo(() => {
|
|
541
527
|
var _a, _b, _c;
|
|
542
528
|
// if isExistingPartner, grab all currencies since select is disabled anyways
|
|
@@ -559,7 +545,7 @@ function usePartnerInfoModal(props) {
|
|
|
559
545
|
const currencies = useMemo(() => [..._currencies].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
560
546
|
const [countrySearch, setCountrySearch] = useState("");
|
|
561
547
|
const [currencySearch, setCurrencySearch] = useState("");
|
|
562
|
-
const [filteredCountries, setFilteredCountries] = useState(
|
|
548
|
+
const [filteredCountries, setFilteredCountries] = useState(countries || []);
|
|
563
549
|
const [filteredCurrencies, setFilteredCurrencies] = useState(currencies || []);
|
|
564
550
|
const [error, setError] = useState("");
|
|
565
551
|
const [success, setSuccess] = useState(false);
|
|
@@ -662,7 +648,6 @@ function usePartnerInfoModal(props) {
|
|
|
662
648
|
setError(props.networkErrorText);
|
|
663
649
|
}
|
|
664
650
|
}
|
|
665
|
-
console.log(impactConnection, "impactConnection in partner modal");
|
|
666
651
|
const showModal = !success &&
|
|
667
652
|
!userLoading &&
|
|
668
653
|
(impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.connectionStatus) === "NOT_STARTED";
|