@mercoa/react 0.0.44-rc1 → 0.0.44
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/ApprovalPolicy.d.ts +3 -1
- package/dist/components/Counterparties.d.ts +1 -4
- package/dist/components/EntityDetails.d.ts +15 -13
- package/dist/components/PayableDetails.d.ts +2 -1
- package/dist/index.es.js +7796 -7797
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +53 -53
- 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,14 +28,11 @@ 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, }: {
|
|
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;
|
|
39
36
|
}): import("react/jsx-runtime").JSX.Element;
|
|
40
37
|
export declare function AddCounterpartyModal({ type, show, setShow, }: {
|
|
41
38
|
type: 'payor' | 'payee';
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { Mercoa } from '@mercoa/javascript';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
3
|
export declare function EntityDetails({ children }: {
|
|
4
4
|
children: Function;
|
|
5
5
|
}): any;
|
|
6
6
|
export declare function EntityStatus({ entity }: {
|
|
7
7
|
entity?: Mercoa.EntityResponse;
|
|
8
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare function EntityInboxEmail({ entity, layout }: {
|
|
9
|
+
export declare function EntityInboxEmail({ entity, layout, theme, }: {
|
|
10
10
|
entity?: Mercoa.EntityResponse;
|
|
11
11
|
layout?: 'left' | 'right';
|
|
12
|
+
theme?: 'light' | 'dark';
|
|
12
13
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export type EntityEmailLogsChildrenProps = {
|
|
15
|
+
dataLoaded: boolean;
|
|
16
|
+
emails: Mercoa.EmailLog[];
|
|
17
|
+
hasNext: boolean;
|
|
18
|
+
getNext: () => void;
|
|
19
|
+
hasPrevious: boolean;
|
|
20
|
+
getPrevious: () => void;
|
|
21
|
+
resultsPerPage: number;
|
|
22
|
+
setResultsPerPage: (value: number) => void;
|
|
23
|
+
};
|
|
13
24
|
export declare function EntityEmailLogs({ entity, onClick, children, }: {
|
|
14
25
|
entity?: Mercoa.EntityResponse;
|
|
15
26
|
onClick?: (invoiceId: string) => void;
|
|
16
|
-
children?: ({ dataLoaded, emails, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, }:
|
|
17
|
-
|
|
18
|
-
emails: Mercoa.EmailLog[];
|
|
19
|
-
hasNext: boolean;
|
|
20
|
-
getNext: () => void;
|
|
21
|
-
hasPrevious: boolean;
|
|
22
|
-
getPrevious: () => void;
|
|
23
|
-
resultsPerPage: number;
|
|
24
|
-
setResultsPerPage: (value: number) => void;
|
|
25
|
-
}) => ReactElement | null;
|
|
26
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
27
|
+
children?: ({ dataLoaded, emails, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, }: EntityEmailLogsChildrenProps) => JSX.Element;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -52,7 +52,7 @@ export declare function PayableFormHeader({ hideId }: {
|
|
|
52
52
|
hideId?: boolean;
|
|
53
53
|
}): import("react/jsx-runtime").JSX.Element;
|
|
54
54
|
export declare function PayableFormErrors(): import("react/jsx-runtime").JSX.Element | null;
|
|
55
|
-
export declare function PayableDocument({ onOCRComplete, onDocumentUpload, invoice, height, downloadButton, viewEmailButton, }: {
|
|
55
|
+
export declare function PayableDocument({ onOCRComplete, onDocumentUpload, invoice, height, downloadButton, viewEmailButton, theme, }: {
|
|
56
56
|
onOCRComplete?: (ocrResponse?: Mercoa.OcrResponse) => void;
|
|
57
57
|
onDocumentUpload?: ({ fileReaderObj, mimeType }: {
|
|
58
58
|
fileReaderObj: string;
|
|
@@ -66,6 +66,7 @@ export declare function PayableDocument({ onOCRComplete, onDocumentUpload, invoi
|
|
|
66
66
|
viewEmailButton?: ({ onClick }: {
|
|
67
67
|
onClick: () => void;
|
|
68
68
|
}) => JSX.Element;
|
|
69
|
+
theme?: 'light' | 'dark';
|
|
69
70
|
}): import("react/jsx-runtime").JSX.Element;
|
|
70
71
|
export declare function PayableDocumentDisplay({ documents, invoice, height, showSourceEmail, downloadButton, viewEmailButton, }: {
|
|
71
72
|
documents?: Array<{
|