@mercoa/react 0.0.43 → 0.0.44-rc1
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/Counterparties.d.ts +4 -1
- package/dist/components/PayableDetails.d.ts +23 -3
- package/dist/index.es.js +7453 -7344
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +50 -50
- package/dist/index.umd.js.map +1 -1
- package/dist/mercoa.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -28,11 +28,14 @@ export declare function CounterpartySearch({ counterparty, disableCreation, onSe
|
|
|
28
28
|
type: 'payee' | 'payor';
|
|
29
29
|
network?: Mercoa.CounterpartyNetworkType[];
|
|
30
30
|
}): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
export declare function PayableCounterpartySearch({ counterparty, disableCreation, onSelect, network, }: {
|
|
31
|
+
export declare function PayableCounterpartySearch({ counterparty, disableCreation, onSelect, network, saveButton, }: {
|
|
32
32
|
counterparty?: Mercoa.CounterpartyResponse;
|
|
33
33
|
disableCreation?: boolean;
|
|
34
34
|
onSelect?: (counterparty: Mercoa.CounterpartyResponse | undefined) => any;
|
|
35
35
|
network?: Mercoa.CounterpartyNetworkType[];
|
|
36
|
+
saveButton?: ({ onClick }: {
|
|
37
|
+
onClick: () => void;
|
|
38
|
+
}) => JSX.Element;
|
|
36
39
|
}): import("react/jsx-runtime").JSX.Element;
|
|
37
40
|
export declare function AddCounterpartyModal({ type, show, setShow, }: {
|
|
38
41
|
type: 'payor' | 'payee';
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Mercoa } from '@mercoa/javascript';
|
|
3
3
|
import { FieldErrors, UseFormSetValue, UseFormWatch } from 'react-hook-form';
|
|
4
|
-
export declare function PayableDetails({ invoiceId, invoice, onRedirect, heightOffset, admin, documentPosition, children, invoicePreSubmit, }: {
|
|
4
|
+
export declare function PayableDetails({ invoiceId, invoice, onRedirect, heightOffset, admin, documentPosition, documentCustomization, children, invoicePreSubmit, }: {
|
|
5
5
|
invoiceId?: Mercoa.InvoiceId;
|
|
6
6
|
invoice?: Mercoa.InvoiceResponse;
|
|
7
7
|
onRedirect: (invoice: Mercoa.InvoiceResponse | undefined) => void;
|
|
8
8
|
heightOffset?: number;
|
|
9
9
|
admin?: boolean;
|
|
10
10
|
documentPosition?: 'right' | 'left' | 'none';
|
|
11
|
+
documentCustomization?: {
|
|
12
|
+
downloadButton?: ({ onClick }: {
|
|
13
|
+
onClick: () => void;
|
|
14
|
+
}) => JSX.Element;
|
|
15
|
+
viewEmailButton?: ({ onClick }: {
|
|
16
|
+
onClick: () => void;
|
|
17
|
+
}) => JSX.Element;
|
|
18
|
+
};
|
|
11
19
|
invoicePreSubmit?: (invoice: Mercoa.InvoiceCreationRequest) => Promise<Mercoa.InvoiceCreationRequest>;
|
|
12
20
|
children?: ({ invoice, refreshInvoice, ocrResponse, uploadedDocument, setUploadedDocument, height, setSelectedVendor, selectedVendor, getVendorPaymentLink, setValue, watch, }: PayableFormChildrenProps) => JSX.Element;
|
|
13
21
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -44,7 +52,7 @@ export declare function PayableFormHeader({ hideId }: {
|
|
|
44
52
|
hideId?: boolean;
|
|
45
53
|
}): import("react/jsx-runtime").JSX.Element;
|
|
46
54
|
export declare function PayableFormErrors(): import("react/jsx-runtime").JSX.Element | null;
|
|
47
|
-
export declare function PayableDocument({ onOCRComplete, onDocumentUpload, invoice, height, }: {
|
|
55
|
+
export declare function PayableDocument({ onOCRComplete, onDocumentUpload, invoice, height, downloadButton, viewEmailButton, }: {
|
|
48
56
|
onOCRComplete?: (ocrResponse?: Mercoa.OcrResponse) => void;
|
|
49
57
|
onDocumentUpload?: ({ fileReaderObj, mimeType }: {
|
|
50
58
|
fileReaderObj: string;
|
|
@@ -52,8 +60,14 @@ export declare function PayableDocument({ onOCRComplete, onDocumentUpload, invoi
|
|
|
52
60
|
}) => void;
|
|
53
61
|
invoice?: Mercoa.InvoiceResponse;
|
|
54
62
|
height: number;
|
|
63
|
+
downloadButton?: ({ onClick }: {
|
|
64
|
+
onClick: () => void;
|
|
65
|
+
}) => JSX.Element;
|
|
66
|
+
viewEmailButton?: ({ onClick }: {
|
|
67
|
+
onClick: () => void;
|
|
68
|
+
}) => JSX.Element;
|
|
55
69
|
}): import("react/jsx-runtime").JSX.Element;
|
|
56
|
-
export declare function PayableDocumentDisplay({ documents, invoice, height, showSourceEmail, }: {
|
|
70
|
+
export declare function PayableDocumentDisplay({ documents, invoice, height, showSourceEmail, downloadButton, viewEmailButton, }: {
|
|
57
71
|
documents?: Array<{
|
|
58
72
|
fileReaderObj: string;
|
|
59
73
|
mimeType: string;
|
|
@@ -61,6 +75,12 @@ export declare function PayableDocumentDisplay({ documents, invoice, height, sho
|
|
|
61
75
|
invoice?: Mercoa.InvoiceResponse;
|
|
62
76
|
height: number;
|
|
63
77
|
showSourceEmail?: boolean;
|
|
78
|
+
downloadButton?: ({ onClick }: {
|
|
79
|
+
onClick: () => void;
|
|
80
|
+
}) => JSX.Element;
|
|
81
|
+
viewEmailButton?: ({ onClick }: {
|
|
82
|
+
onClick: () => void;
|
|
83
|
+
}) => JSX.Element;
|
|
64
84
|
}): import("react/jsx-runtime").JSX.Element;
|
|
65
85
|
export declare function PayableActions({ approveButton, rejectButton, nonApproverButton, deleteButton, archiveButton, cancelButton, saveDraftButton, printCheckButton, createInvoiceButton, submitForApprovalButton, nextButton, markAsPaidButton, schedulePaymentButton, retryPaymentButton, admin, }: {
|
|
66
86
|
approveButton?: ({ onClick }: {
|