@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.
@@ -12,7 +12,7 @@ export interface MercoaContext {
12
12
  selectedInvoice: Mercoa.InvoiceResponse | undefined;
13
13
  setSelectedInvoice: Function;
14
14
  client: MercoaClient | undefined;
15
- refresh: Function;
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: Function;
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 SelectPaymentMethod({ isSource, isDestination, disableCreation, disablePaymentTimingDisplay, readOnly, }: {
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;