@mercoa/react 0.0.45 → 0.0.46-rc2
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 -2
- package/dist/components/Checks.d.ts +1 -2
- package/dist/components/CustomPaymentMethod.d.ts +2 -3
- package/dist/components/Mercoa.d.ts +2 -2
- package/dist/components/PayableDetails.d.ts +2 -1
- package/dist/components/Payables.d.ts +2 -1
- package/dist/components/ReceivableDetails.d.ts +4 -0
- package/dist/index.es.js +14865 -14677
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +47 -47
- package/dist/index.umd.js.map +1 -1
- package/dist/mercoa.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -32,11 +32,10 @@ export declare function AddBankViaPlaidOrManual({ title, actions, onSubmit, enti
|
|
|
32
32
|
entityId?: Mercoa.EntityId;
|
|
33
33
|
bankAccount?: Mercoa.BankAccountRequest;
|
|
34
34
|
}): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
export declare function AddBankAccount({ onSubmit, title, actions,
|
|
35
|
+
export declare function AddBankAccount({ onSubmit, title, actions, bankAccount, entityId, }: {
|
|
36
36
|
onSubmit?: Function;
|
|
37
37
|
title?: ReactNode;
|
|
38
38
|
actions?: ReactNode;
|
|
39
|
-
formOnlySubmit?: Function;
|
|
40
39
|
bankAccount?: Mercoa.BankAccountRequest;
|
|
41
40
|
entityId?: Mercoa.EntityId;
|
|
42
41
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,11 +12,10 @@ export declare function AddCheckDialog({ entityId, onSelect, check, }: {
|
|
|
12
12
|
onSelect?: Function;
|
|
13
13
|
check?: Mercoa.CheckRequest;
|
|
14
14
|
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export declare function AddCheck({ onSubmit, title, actions,
|
|
15
|
+
export declare function AddCheck({ onSubmit, title, actions, check, entityId, }: {
|
|
16
16
|
onSubmit?: (data?: Mercoa.PaymentMethodResponse) => void;
|
|
17
17
|
title?: ReactNode;
|
|
18
18
|
actions?: ReactNode;
|
|
19
|
-
formOnlySubmit?: Function;
|
|
20
19
|
check?: Mercoa.CheckRequest;
|
|
21
20
|
entityId?: Mercoa.EntityId;
|
|
22
21
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
1
|
import { Mercoa } from '@mercoa/javascript';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
3
|
export declare function CustomPaymentMethods({ children, onSelect, showEdit, schema, }: {
|
|
4
4
|
children?: Function;
|
|
5
5
|
onSelect?: Function;
|
|
@@ -14,11 +14,10 @@ export declare function CustomPaymentMethod({ children, account, onSelect, selec
|
|
|
14
14
|
showEdit?: boolean;
|
|
15
15
|
schema?: Mercoa.CustomPaymentMethodSchemaResponse;
|
|
16
16
|
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export declare function AddCustomPaymentMethod({ onSubmit, title, actions,
|
|
17
|
+
export declare function AddCustomPaymentMethod({ onSubmit, title, actions, entityId, schema, }: {
|
|
18
18
|
onSubmit?: (data: Mercoa.PaymentMethodResponse) => void;
|
|
19
19
|
title?: ReactNode;
|
|
20
20
|
actions?: ReactNode;
|
|
21
|
-
formOnlySubmit?: Function;
|
|
22
21
|
entityId?: string;
|
|
23
22
|
schema: Mercoa.CustomPaymentMethodSchemaResponse;
|
|
24
23
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,7 +12,7 @@ export interface MercoaContext {
|
|
|
12
12
|
selectedInvoice: Mercoa.InvoiceResponse | undefined;
|
|
13
13
|
setSelectedInvoice: Function;
|
|
14
14
|
client: MercoaClient | undefined;
|
|
15
|
-
refresh:
|
|
15
|
+
refresh: () => Promise<void>;
|
|
16
16
|
refreshId: number;
|
|
17
17
|
organization: Mercoa.OrganizationResponse | undefined;
|
|
18
18
|
moov: Moov | undefined;
|
|
@@ -20,7 +20,7 @@ export interface MercoaContext {
|
|
|
20
20
|
moovAccountId: string | undefined;
|
|
21
21
|
iframeOptions: TokenOptions | undefined;
|
|
22
22
|
setIframeOptions: Function;
|
|
23
|
-
getNewToken:
|
|
23
|
+
getNewToken: () => Promise<void>;
|
|
24
24
|
googleMapsApiKey?: string;
|
|
25
25
|
heightOffset: number;
|
|
26
26
|
setHeightOffset: Function;
|
|
@@ -35,6 +35,7 @@ export type PayableFormChildrenProps = {
|
|
|
35
35
|
}) => void;
|
|
36
36
|
watch: (name: UseFormWatch<Mercoa.InvoiceCreationRequest>) => any;
|
|
37
37
|
errors: FieldErrors<Mercoa.InvoiceCreationRequest>;
|
|
38
|
+
isLoading: boolean;
|
|
38
39
|
};
|
|
39
40
|
export declare function PayableForm({ invoice, ocrResponse, uploadedDocument, setUploadedDocument, onRedirect, refreshInvoice, height, admin, invoicePreSubmit, children, }: {
|
|
40
41
|
invoice?: Mercoa.InvoiceResponse;
|
|
@@ -132,7 +133,7 @@ export declare function PayableActions({ approveButton, rejectButton, nonApprove
|
|
|
132
133
|
export declare function PayableOverview({ readOnly }: {
|
|
133
134
|
readOnly?: boolean;
|
|
134
135
|
}): import("react/jsx-runtime").JSX.Element;
|
|
135
|
-
export declare function
|
|
136
|
+
export declare function PayableSelectPaymentMethod({ isSource, isDestination, disableCreation, disablePaymentTimingDisplay, readOnly, }: {
|
|
136
137
|
isSource?: boolean;
|
|
137
138
|
isDestination?: boolean;
|
|
138
139
|
disableCreation?: boolean;
|
|
@@ -29,8 +29,9 @@ export declare function PayablesTable({ statuses, search, metadata, startDate, e
|
|
|
29
29
|
columns?: InvoiceTableColumn[];
|
|
30
30
|
children?: ({ dataLoaded, invoices, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, selectedInvoiceStatuses, setSelectedInvoiceStatues, downloadCSV, }: PayablesTableChildrenProps) => ReactElement | null;
|
|
31
31
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
32
|
-
export declare function InvoiceStatusPill({ status, amount, payerId, vendorId, dueDate, paymentSourceId, paymentDestinationId, type, }: {
|
|
32
|
+
export declare function InvoiceStatusPill({ status, failureType, amount, payerId, vendorId, dueDate, paymentSourceId, paymentDestinationId, type, }: {
|
|
33
33
|
status: Mercoa.InvoiceStatus;
|
|
34
|
+
failureType?: Mercoa.InvoiceFailureType;
|
|
34
35
|
amount?: number;
|
|
35
36
|
payerId?: string;
|
|
36
37
|
vendorId?: string;
|
|
@@ -64,3 +64,7 @@ export declare function ReceivableForm({ invoice, onRedirect, refreshInvoice, ad
|
|
|
64
64
|
setSelectedPayer: (payer: Mercoa.CounterpartyResponse | undefined) => void;
|
|
65
65
|
children?: ({ invoice, refreshInvoice, setSelectedPayer, selectedPayer, setValue, watch, }: ReceivableFormChildrenProps) => JSX.Element;
|
|
66
66
|
}): import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
export declare function ReceivableSelectPaymentMethod({ isSource, isDestination, }: {
|
|
68
|
+
isSource?: boolean;
|
|
69
|
+
isDestination?: boolean;
|
|
70
|
+
}): import("react/jsx-runtime").JSX.Element;
|