@mercoa/react 0.0.38 → 0.0.39-rc3
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/components/BankAccounts.d.ts +1 -1
- package/dist/components/{CreditCard.d.ts → Card.d.ts} +3 -3
- package/dist/components/Checks.d.ts +1 -1
- package/dist/components/Counterparties.d.ts +12 -11
- package/dist/components/EntityOnboarding.d.ts +4 -1
- package/dist/components/ExternalAccountingSystem.d.ts +1 -0
- package/dist/components/PayableDetails.d.ts +1 -1
- package/dist/components/Payables.d.ts +14 -13
- package/dist/components/generics.d.ts +5 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/index.es.js +19405 -18433
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +65 -65
- package/dist/index.umd.js.map +1 -1
- package/dist/mercoa.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -25
|
@@ -9,7 +9,7 @@ export declare function BankAccounts({ children, onSelect, showAdd, showEdit, ve
|
|
|
9
9
|
showEdit?: boolean;
|
|
10
10
|
verifiedOnly?: boolean;
|
|
11
11
|
}): any;
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function BankAccount({ children, account, onSelect, showEdit, selected, }: {
|
|
13
13
|
children?: Function;
|
|
14
14
|
account?: Mercoa.PaymentMethodResponse.BankAccount;
|
|
15
15
|
onSelect?: (value?: Mercoa.PaymentMethodResponse.BankAccount) => void;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Mercoa } from '@mercoa/javascript';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function Cards({ children, onSelect, showAdd, showEdit, }: {
|
|
4
4
|
children?: Function;
|
|
5
5
|
onSelect?: (value?: Mercoa.PaymentMethodResponse.Card) => void;
|
|
6
6
|
showAdd?: boolean;
|
|
7
7
|
showEdit?: boolean;
|
|
8
8
|
}): any;
|
|
9
|
-
export declare function
|
|
9
|
+
export declare function AddCard({ onSubmit, title, actions, }: {
|
|
10
10
|
onSubmit: (data: Mercoa.PaymentMethodResponse.Card) => void;
|
|
11
11
|
title?: ReactNode;
|
|
12
12
|
actions?: ReactNode;
|
|
13
13
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export declare function
|
|
14
|
+
export declare function CardComponent({ children, account, onSelect, showEdit, selected, }: {
|
|
15
15
|
children?: Function;
|
|
16
16
|
account?: Mercoa.PaymentMethodResponse.Card;
|
|
17
17
|
onSelect?: (value?: Mercoa.PaymentMethodResponse.Card) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Mercoa } from '@mercoa/javascript';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { UseFormRegister } from 'react-hook-form';
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function Check({ account, onSelect, showEdit, selected, }: {
|
|
5
5
|
children?: Function;
|
|
6
6
|
account?: Mercoa.PaymentMethodResponse.Check;
|
|
7
7
|
onSelect?: (value?: Mercoa.PaymentMethodResponse.Check) => void;
|
|
@@ -6,20 +6,21 @@ export declare function CounterpartySearch({ counterparty, onSelect, type, netwo
|
|
|
6
6
|
type: 'payee' | 'payor';
|
|
7
7
|
network?: Mercoa.CounterpartyNetworkType[];
|
|
8
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type CounterpartiesChildrenProps = {
|
|
10
|
+
setSearch: (search: string) => void;
|
|
11
|
+
dataLoaded: boolean;
|
|
12
|
+
hasNext: boolean;
|
|
13
|
+
getNext: () => void;
|
|
14
|
+
hasPrevious: boolean;
|
|
15
|
+
getPrevious: () => void;
|
|
16
|
+
resultsPerPage: number;
|
|
17
|
+
setResultsPerPage: (value: number) => void;
|
|
18
|
+
counterparties: Mercoa.CounterpartyResponse[];
|
|
19
|
+
};
|
|
9
20
|
export declare function Counterparties({ type, admin, children, }: {
|
|
10
21
|
type: 'payor' | 'payee';
|
|
11
22
|
admin?: boolean;
|
|
12
|
-
children?: ({ setSearch, dataLoaded, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, counterparties, }:
|
|
13
|
-
setSearch: (search: string) => void;
|
|
14
|
-
dataLoaded: boolean;
|
|
15
|
-
hasNext: boolean;
|
|
16
|
-
getNext: () => void;
|
|
17
|
-
hasPrevious: boolean;
|
|
18
|
-
getPrevious: () => void;
|
|
19
|
-
resultsPerPage: number;
|
|
20
|
-
setResultsPerPage: (value: number) => void;
|
|
21
|
-
counterparties: Mercoa.CounterpartyResponse[];
|
|
22
|
-
}) => JSX.Element;
|
|
23
|
+
children?: ({ setSearch, dataLoaded, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, counterparties, }: CounterpartiesChildrenProps) => JSX.Element;
|
|
23
24
|
}): import("react/jsx-runtime").JSX.Element;
|
|
24
25
|
export declare function AddCounterpartyModal({ type, show, setShow, }: {
|
|
25
26
|
type: 'payor' | 'payee';
|
|
@@ -23,6 +23,8 @@ export type OnboardingFormData = {
|
|
|
23
23
|
description?: string;
|
|
24
24
|
formationDate?: Date;
|
|
25
25
|
disableKYB?: 'yes' | 'no';
|
|
26
|
+
emailTo?: string;
|
|
27
|
+
foreignId?: string;
|
|
26
28
|
};
|
|
27
29
|
export declare const addressBlockSchema: {
|
|
28
30
|
addressLine1: yup.StringSchema<string, yup.AnyObject, undefined, "">;
|
|
@@ -209,11 +211,12 @@ export declare function AcceptTosForm({ entity, onComplete, }: {
|
|
|
209
211
|
entity: Mercoa.EntityResponse;
|
|
210
212
|
onComplete?: (val: boolean) => void;
|
|
211
213
|
}): import("react/jsx-runtime").JSX.Element;
|
|
212
|
-
export declare function EntityOnboardingForm({ entity, type, onOnboardingSubmit, onCancel, }: {
|
|
214
|
+
export declare function EntityOnboardingForm({ entity, type, onOnboardingSubmit, onCancel, admin, }: {
|
|
213
215
|
entity: Mercoa.EntityResponse;
|
|
214
216
|
type: 'payee' | 'payor';
|
|
215
217
|
onOnboardingSubmit?: (data: OnboardingFormData) => void;
|
|
216
218
|
onCancel?: () => void;
|
|
219
|
+
admin?: boolean;
|
|
217
220
|
}): import("react/jsx-runtime").JSX.Element;
|
|
218
221
|
export declare function EntityCreation({ organization, type, setEntityData, }: {
|
|
219
222
|
organization: Mercoa.OrganizationResponse;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ManageExternalAccountingSystem(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -26,7 +26,7 @@ export declare function EditPayableForm({ invoice, ocrResponse, uploadedImage, s
|
|
|
26
26
|
height: number;
|
|
27
27
|
admin?: boolean;
|
|
28
28
|
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export declare function
|
|
29
|
+
export declare function SelectPaymentMethod({ paymentMethods, paymentMethodSchemas, watch, setValue, isSource, isDestination, vendorId, payerId, currentPaymentMethodId, refreshVendorPaymentMethods, refreshPayerPaymentMethods, clearErrors, }: {
|
|
30
30
|
paymentMethods: Array<Mercoa.PaymentMethodResponse>;
|
|
31
31
|
paymentMethodSchemas: Array<Mercoa.CustomPaymentMethodSchemaResponse>;
|
|
32
32
|
watch: Function;
|
|
@@ -6,6 +6,19 @@ export type InvoiceTableColumn = {
|
|
|
6
6
|
orderBy?: Mercoa.InvoiceOrderByField;
|
|
7
7
|
format?: (value: string | number | Date, invoice: Mercoa.InvoiceResponse) => string | ReactElement | null;
|
|
8
8
|
};
|
|
9
|
+
export type PayablesTableChildrenProps = {
|
|
10
|
+
dataLoaded: boolean;
|
|
11
|
+
invoices: Mercoa.InvoiceResponse[];
|
|
12
|
+
hasNext: boolean;
|
|
13
|
+
getNext: () => void;
|
|
14
|
+
hasPrevious: boolean;
|
|
15
|
+
getPrevious: () => void;
|
|
16
|
+
resultsPerPage: number;
|
|
17
|
+
setResultsPerPage: (value: number) => void;
|
|
18
|
+
selectedInvoiceStatuses: Mercoa.InvoiceStatus[];
|
|
19
|
+
setSelectedInvoiceStatues: (statuses: Mercoa.InvoiceStatus[]) => void;
|
|
20
|
+
downloadCSV: () => void;
|
|
21
|
+
};
|
|
9
22
|
export declare function PayablesTable({ statuses, search, metadata, startDate, endDate, onSelectInvoice, columns, children, }: {
|
|
10
23
|
statuses: Mercoa.InvoiceStatus[];
|
|
11
24
|
search?: string;
|
|
@@ -14,19 +27,7 @@ export declare function PayablesTable({ statuses, search, metadata, startDate, e
|
|
|
14
27
|
endDate?: Date;
|
|
15
28
|
onSelectInvoice?: (invoice: Mercoa.InvoiceResponse) => any;
|
|
16
29
|
columns?: InvoiceTableColumn[];
|
|
17
|
-
children?: ({ dataLoaded, invoices, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, selectedInvoiceStatuses, setSelectedInvoiceStatues, downloadCSV, }:
|
|
18
|
-
dataLoaded: boolean;
|
|
19
|
-
invoices: Mercoa.InvoiceResponse[];
|
|
20
|
-
hasNext: boolean;
|
|
21
|
-
getNext: () => void;
|
|
22
|
-
hasPrevious: boolean;
|
|
23
|
-
getPrevious: () => void;
|
|
24
|
-
resultsPerPage: number;
|
|
25
|
-
setResultsPerPage: (value: number) => void;
|
|
26
|
-
selectedInvoiceStatuses: Mercoa.InvoiceStatus[];
|
|
27
|
-
setSelectedInvoiceStatues: (statuses: Mercoa.InvoiceStatus[]) => void;
|
|
28
|
-
downloadCSV: () => void;
|
|
29
|
-
}) => ReactElement | null;
|
|
30
|
+
children?: ({ dataLoaded, invoices, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, selectedInvoiceStatuses, setSelectedInvoiceStatues, downloadCSV, }: PayablesTableChildrenProps) => ReactElement | null;
|
|
30
31
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
31
32
|
export declare function InvoiceStatusPill({ invoice, type, }: {
|
|
32
33
|
invoice: Mercoa.InvoiceResponse;
|
|
@@ -74,7 +74,7 @@ export declare function StatCard({ title, value, icon, size, }: {
|
|
|
74
74
|
icon?: ReactNode;
|
|
75
75
|
size?: 'sm' | 'md';
|
|
76
76
|
}): import("react/jsx-runtime").JSX.Element;
|
|
77
|
-
export declare function MercoaCombobox({ onChange, options, value, label, placeholder, disabledText, displayIndex, secondaryDisplayIndex, className, labelClassName, inputClassName: suppliedInputClassName, multiple, freeText, displaySelectedAs, readOnly, }: {
|
|
77
|
+
export declare function MercoaCombobox({ onChange, options, value, label, placeholder, disabledText, displayIndex, secondaryDisplayIndex, className, labelClassName, inputClassName: suppliedInputClassName, multiple, freeText, showClear, displaySelectedAs, readOnly, }: {
|
|
78
78
|
onChange: (val: any) => any;
|
|
79
79
|
options: {
|
|
80
80
|
value: any;
|
|
@@ -92,6 +92,7 @@ export declare function MercoaCombobox({ onChange, options, value, label, placeh
|
|
|
92
92
|
inputClassName?: string;
|
|
93
93
|
multiple?: boolean;
|
|
94
94
|
freeText?: boolean;
|
|
95
|
+
showClear?: boolean;
|
|
95
96
|
displaySelectedAs?: 'input' | 'pill';
|
|
96
97
|
readOnly?: boolean;
|
|
97
98
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -158,3 +159,6 @@ export declare function CountPill({ count, selected }: {
|
|
|
158
159
|
selected: boolean;
|
|
159
160
|
}): import("react/jsx-runtime").JSX.Element;
|
|
160
161
|
export declare function getAllUsers(client: MercoaClient, entityId: string): Promise<Mercoa.EntityUserResponse[]>;
|
|
162
|
+
export declare function NoSession({ componentName }: {
|
|
163
|
+
componentName: string;
|
|
164
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { Mercoa } from '@mercoa/javascript';
|
|
2
2
|
export * from './ApprovalPolicy';
|
|
3
3
|
export * from './BankAccounts';
|
|
4
|
+
export * from './Card';
|
|
4
5
|
export * from './Checks';
|
|
5
6
|
export * from './Counterparties';
|
|
6
|
-
export * from './CreditCard';
|
|
7
7
|
export * from './CustomPaymentMethod';
|
|
8
8
|
export * from './DisbursementMethods';
|
|
9
9
|
export * from './EntityDetails';
|
|
10
10
|
export * from './EntityOnboarding';
|
|
11
11
|
export * from './EntityPortal';
|
|
12
12
|
export * from './EntityUser';
|
|
13
|
+
export * from './ExternalAccountingSystem';
|
|
13
14
|
export * from './InvoiceComments';
|
|
14
15
|
export * from './Mercoa';
|
|
15
16
|
export * from './PayableDetails';
|