@mercoa/react 0.0.46-rc1 → 0.0.46-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/Mercoa.d.ts +2 -2
- package/dist/components/PayableDetails.d.ts +2 -1
- package/dist/components/ReceivableDetails.d.ts +4 -0
- package/dist/index.es.js +14940 -14773
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +45 -45
- 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
|
@@ -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;
|
|
@@ -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;
|