@mercoa/react 0.0.48-rc2 → 0.0.48

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.
@@ -15,7 +15,7 @@ export declare function BankAccount({ children, account, onSelect, showEdit, sel
15
15
  showEdit?: boolean;
16
16
  selected?: boolean;
17
17
  }): import("react/jsx-runtime").JSX.Element;
18
- export declare function AddBankAccountDialog({ entityId, onSelect, bankAccount, }: {
18
+ export declare function AddBankAccountButton({ entityId, onSelect, bankAccount, }: {
19
19
  entityId?: Mercoa.EntityId;
20
20
  onSelect?: Function;
21
21
  bankAccount?: Mercoa.BankAccountRequest;
@@ -1,5 +1,5 @@
1
- import { Mercoa, MercoaClient } from '@mercoa/javascript';
2
1
  import { Control, UseFormRegister } from 'react-hook-form';
2
+ import { Mercoa, MercoaClient } from '@mercoa/javascript';
3
3
  import * as yup from 'yup';
4
4
  export type OnboardingFormData = {
5
5
  email: string;
@@ -74,12 +74,9 @@ export type PayableDocumentChildrenProps = {
74
74
  theme?: 'light' | 'dark';
75
75
  onFileUpload: (fileReaderObj: string, mimeType: string) => void;
76
76
  };
77
- export declare function PayableDocument({ onOcrComplete, onDocumentUpload, invoice, height, downloadButton, viewEmailButton, theme, children, }: {
77
+ export declare function PayableDocument({ onOcrComplete, setUploadedDocument, invoice, height, downloadButton, viewEmailButton, theme, children, }: {
78
78
  onOcrComplete?: (ocrResponse?: Mercoa.OcrResponse) => void;
79
- onDocumentUpload?: (document: {
80
- fileReaderObj: string;
81
- mimeType: string;
82
- }) => void;
79
+ setUploadedDocument?: (fileReaderObj: string) => void;
83
80
  invoice?: Mercoa.InvoiceResponse;
84
81
  height: number;
85
82
  downloadButton?: ({ onClick }: {
@@ -16,6 +16,10 @@ export type PayablesTableChildrenProps = {
16
16
  resultsPerPage: number;
17
17
  setResultsPerPage: (value: number) => void;
18
18
  count: number;
19
+ orderBy: Mercoa.InvoiceOrderByField;
20
+ setOrderBy: (value: Mercoa.InvoiceOrderByField) => void;
21
+ orderDirection: Mercoa.OrderDirection;
22
+ setOrderDirection: (value: Mercoa.OrderDirection) => void;
19
23
  selectedInvoiceStatuses: Mercoa.InvoiceStatus[];
20
24
  setSelectedInvoiceStatues: (statuses: Mercoa.InvoiceStatus[]) => void;
21
25
  downloadCSV: () => void;
@@ -28,7 +32,7 @@ export declare function PayablesTable({ statuses, search, metadata, startDate, e
28
32
  endDate?: Date;
29
33
  onSelectInvoice?: (invoice: Mercoa.InvoiceResponse) => any;
30
34
  columns?: InvoiceTableColumn[];
31
- children?: ({ dataLoaded, invoices, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, count, selectedInvoiceStatuses, setSelectedInvoiceStatues, downloadCSV, }: PayablesTableChildrenProps) => ReactElement | null;
35
+ children?: (props: PayablesTableChildrenProps) => ReactElement | null;
32
36
  }): import("react/jsx-runtime").JSX.Element | null;
33
37
  export declare function InvoiceStatusPill({ status, failureType, amount, payerId, vendorId, dueDate, paymentSourceId, paymentDestinationId, type, }: {
34
38
  status: Mercoa.InvoiceStatus;