@mercoa/react 0.0.39-rc3 → 0.0.39-rc5
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/Card.d.ts +1 -1
- package/dist/components/PayableDetails.d.ts +33 -24
- package/dist/components/generics.d.ts +3 -2
- package/dist/index.es.js +8609 -8477
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +48 -48
- 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
|
@@ -11,7 +11,7 @@ export declare function AddCard({ onSubmit, title, actions, }: {
|
|
|
11
11
|
title?: ReactNode;
|
|
12
12
|
actions?: ReactNode;
|
|
13
13
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export declare function
|
|
14
|
+
export declare function Card({ children, account, onSelect, showEdit, selected, }: {
|
|
15
15
|
children?: Function;
|
|
16
16
|
account?: Mercoa.PaymentMethodResponse.Card;
|
|
17
17
|
onSelect?: (value?: Mercoa.PaymentMethodResponse.Card) => void;
|
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
import { Mercoa } from '@mercoa/javascript';
|
|
2
|
-
export declare function PayableDetails({ invoiceId, invoice, onRedirect, heightOffset, admin,
|
|
2
|
+
export declare function PayableDetails({ invoiceId, invoice, onRedirect, heightOffset, admin, documentPosition, }: {
|
|
3
3
|
invoiceId?: Mercoa.InvoiceId;
|
|
4
4
|
invoice?: Mercoa.InvoiceResponse;
|
|
5
5
|
onRedirect: (invoice: Mercoa.InvoiceResponse | undefined) => void;
|
|
6
6
|
heightOffset?: number;
|
|
7
7
|
admin?: boolean;
|
|
8
|
-
|
|
8
|
+
documentPosition?: 'right' | 'left' | 'none';
|
|
9
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export declare function
|
|
11
|
-
documents?: Array<{
|
|
12
|
-
fileReaderObj: string;
|
|
13
|
-
mimeType: string;
|
|
14
|
-
}>;
|
|
15
|
-
invoice?: Mercoa.InvoiceResponse;
|
|
16
|
-
height: number;
|
|
17
|
-
showSourceEmail?: boolean;
|
|
18
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export declare function EditPayableForm({ invoice, ocrResponse, uploadedImage, setUploadedImage, onRedirect, refreshInvoice, height, admin, }: {
|
|
10
|
+
export declare function PayableForm({ invoice, ocrResponse, uploadedImage, setUploadedImage, onRedirect, refreshInvoice, height, admin, }: {
|
|
20
11
|
invoice?: Mercoa.InvoiceResponse;
|
|
21
12
|
ocrResponse?: Mercoa.OcrResponse;
|
|
22
13
|
uploadedImage?: string;
|
|
@@ -26,6 +17,24 @@ export declare function EditPayableForm({ invoice, ocrResponse, uploadedImage, s
|
|
|
26
17
|
height: number;
|
|
27
18
|
admin?: boolean;
|
|
28
19
|
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function PayableDocument({ onOCRComplete, onDocumentUpload, invoice, height, }: {
|
|
21
|
+
onOCRComplete?: (ocrResponse?: Mercoa.OcrResponse) => void;
|
|
22
|
+
onDocumentUpload?: ({ fileReaderObj, mimeType }: {
|
|
23
|
+
fileReaderObj: string;
|
|
24
|
+
mimeType: string;
|
|
25
|
+
}) => void;
|
|
26
|
+
invoice?: Mercoa.InvoiceResponse;
|
|
27
|
+
height: number;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare function PayableDocumentDisplay({ documents, invoice, height, showSourceEmail, }: {
|
|
30
|
+
documents?: Array<{
|
|
31
|
+
fileReaderObj: string;
|
|
32
|
+
mimeType: string;
|
|
33
|
+
}>;
|
|
34
|
+
invoice?: Mercoa.InvoiceResponse;
|
|
35
|
+
height: number;
|
|
36
|
+
showSourceEmail?: boolean;
|
|
37
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
29
38
|
export declare function SelectPaymentMethod({ paymentMethods, paymentMethodSchemas, watch, setValue, isSource, isDestination, vendorId, payerId, currentPaymentMethodId, refreshVendorPaymentMethods, refreshPayerPaymentMethods, clearErrors, }: {
|
|
30
39
|
paymentMethods: Array<Mercoa.PaymentMethodResponse>;
|
|
31
40
|
paymentMethodSchemas: Array<Mercoa.CustomPaymentMethodSchemaResponse>;
|
|
@@ -40,18 +49,6 @@ export declare function SelectPaymentMethod({ paymentMethods, paymentMethodSchem
|
|
|
40
49
|
refreshPayerPaymentMethods: Function;
|
|
41
50
|
clearErrors: Function;
|
|
42
51
|
}): import("react/jsx-runtime").JSX.Element;
|
|
43
|
-
export declare function MetadataSelection({ schema, value, entityMetadata, setValue, hasDocument, hasNoLineItems, paymentDestination, paymentSource, lineItem, skipValidation, }: {
|
|
44
|
-
schema: Mercoa.MetadataSchema;
|
|
45
|
-
value?: string;
|
|
46
|
-
entityMetadata?: Mercoa.EntityMetadataResponse;
|
|
47
|
-
setValue: (e: string) => void;
|
|
48
|
-
hasDocument: boolean;
|
|
49
|
-
hasNoLineItems: boolean;
|
|
50
|
-
paymentDestination?: Mercoa.PaymentMethodResponse;
|
|
51
|
-
paymentSource?: Mercoa.PaymentMethodResponse;
|
|
52
|
-
lineItem?: boolean;
|
|
53
|
-
skipValidation?: boolean;
|
|
54
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
55
52
|
export declare function filterApproverOptions({ approverSlotIndex, eligibleRoles, eligibleUserIds, users, selectedApprovers, }: {
|
|
56
53
|
approverSlotIndex: number;
|
|
57
54
|
eligibleRoles: string[];
|
|
@@ -86,3 +83,15 @@ export declare function propagateApprovalPolicy({ userId, policyId, approvalPoli
|
|
|
86
83
|
assignedUserId: string | undefined;
|
|
87
84
|
} | undefined)[];
|
|
88
85
|
}): void;
|
|
86
|
+
export declare function MetadataSelection({ schema, value, entityMetadata, setValue, hasDocument, hasNoLineItems, paymentDestination, paymentSource, lineItem, skipValidation, }: {
|
|
87
|
+
schema: Mercoa.MetadataSchema;
|
|
88
|
+
value?: string;
|
|
89
|
+
entityMetadata?: Mercoa.EntityMetadataResponse;
|
|
90
|
+
setValue: (e: string) => void;
|
|
91
|
+
hasDocument: boolean;
|
|
92
|
+
hasNoLineItems: boolean;
|
|
93
|
+
paymentDestination?: Mercoa.PaymentMethodResponse;
|
|
94
|
+
paymentSource?: Mercoa.PaymentMethodResponse;
|
|
95
|
+
lineItem?: boolean;
|
|
96
|
+
skipValidation?: boolean;
|
|
97
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -49,10 +49,11 @@ export declare function DefaultPaymentMethodIndicator({ paymentMethod, }: {
|
|
|
49
49
|
isDefaultSource: boolean;
|
|
50
50
|
};
|
|
51
51
|
}): import("react/jsx-runtime").JSX.Element;
|
|
52
|
-
export declare function PaymentMethodList({ accounts, showEdit,
|
|
52
|
+
export declare function PaymentMethodList({ accounts, showEdit, addAccount, formatAccount, }: {
|
|
53
53
|
accounts?: Mercoa.PaymentMethodResponse[];
|
|
54
54
|
showEdit?: boolean;
|
|
55
|
-
|
|
55
|
+
addAccount?: JSX.Element;
|
|
56
|
+
formatAccount: (account: any) => JSX.Element | JSX.Element[] | null;
|
|
56
57
|
}): import("react/jsx-runtime").JSX.Element;
|
|
57
58
|
export declare function Switch({ register, name, label, disabled, }: {
|
|
58
59
|
register: Function;
|