@saasquatch/mint-components 2.3.0-6 → 2.3.0-8
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 +50 -743
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +4 -4
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +16 -31
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +253 -76
- package/dist/cjs/sqm-user-info-form-view-374a3f01.js +1427 -0
- package/dist/cjs/subregions-984e30d7.js +1505 -0
- package/dist/cjs/{useIndirectTaxForm-c3c1ec56.js → useIndirectTaxForm-112914a0.js} +5 -5
- 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/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +18 -7
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +22 -19
- package/dist/collection/components/tax-and-cash/utils.js +55 -0
- package/dist/esm/sqm-banking-info-form_10.entry.js +38 -731
- package/dist/esm/sqm-big-stat_47.entry.js +2 -2
- package/dist/esm/sqm-email-verification_2.entry.js +16 -31
- package/dist/esm/sqm-stencilbook.entry.js +217 -40
- package/dist/esm/sqm-user-info-form-view-5322525c.js +1421 -0
- package/dist/esm/subregions-7c9778d0.js +1492 -0
- package/dist/esm/{useIndirectTaxForm-b2888ea5.js → useIndirectTaxForm-a6ac7e7e.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-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-5322525c.js +1 -0
- package/dist/esm-es5/subregions-7c9778d0.js +1 -0
- package/dist/esm-es5/{useIndirectTaxForm-b2888ea5.js → useIndirectTaxForm-a6ac7e7e.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-2d4132fb.js} +4 -4
- package/dist/mint-components/{p-e7f09044.entry.js → p-459c4251.entry.js} +6 -31
- package/dist/mint-components/p-5623f1e0.js +1 -0
- package/dist/mint-components/{p-b419f9ac.entry.js → p-5bc707cf.entry.js} +1 -1
- package/dist/mint-components/p-6eebbc59.entry.js +83 -0
- package/dist/mint-components/{p-58c24352.system.js → p-6ef373ed.system.js} +1 -1
- package/dist/mint-components/p-7a4cf6c9.system.entry.js +1 -0
- package/dist/mint-components/p-7f29622d.js +1 -0
- package/dist/mint-components/{p-a38eece5.system.entry.js → p-8a08cec6.system.entry.js} +1 -1
- package/dist/mint-components/p-90200f08.system.entry.js +1 -0
- package/dist/mint-components/p-91295327.entry.js +9 -0
- package/dist/mint-components/p-b21c53cb.system.entry.js +1 -0
- package/dist/mint-components/p-bd03efe0.system.js +1 -0
- package/dist/mint-components/p-c13c20b2.system.js +1 -0
- 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/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -0
- package/dist/types/components/tax-and-cash/utils.d.ts +5 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/cjs/sqm-user-info-form-view-0e1ddbe4.js +0 -1682
- package/dist/cjs/utils-a3b3d05b.js +0 -478
- package/dist/esm/sqm-user-info-form-view-e1ba6009.js +0 -1677
- package/dist/esm/utils-4f5cd04c.js +0 -467
- 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-12d11abc.system.entry.js +0 -1
- package/dist/mint-components/p-1e6a2945.js +0 -1
- package/dist/mint-components/p-88e427ac.system.entry.js +0 -1
- package/dist/mint-components/p-a0eb0331.entry.js +0 -9
- 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
|
@@ -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-7c9778d0.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-a6ac7e7e.js';
|
|
33
33
|
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -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";
|