@mercoa/react 0.0.45-rc1 → 0.0.46-rc1

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.
@@ -1,6 +1,5 @@
1
1
  import { Mercoa } from '@mercoa/javascript';
2
2
  import { ReactNode } from 'react';
3
- import { UseFormRegister } from 'react-hook-form';
4
3
  import { PlaidLinkError, PlaidLinkOnExitMetadata } from 'react-plaid-link';
5
4
  export declare function BankAccounts({ children, onSelect, showAdd, showEdit, verifiedOnly, }: {
6
5
  children?: Function;
@@ -33,21 +32,15 @@ export declare function AddBankViaPlaidOrManual({ title, actions, onSubmit, enti
33
32
  entityId?: Mercoa.EntityId;
34
33
  bankAccount?: Mercoa.BankAccountRequest;
35
34
  }): import("react/jsx-runtime").JSX.Element;
36
- export declare function AddBankAccount({ onSubmit, title, actions, formOnlySubmit, bankAccount, entityId, }: {
35
+ export declare function AddBankAccount({ onSubmit, title, actions, bankAccount, entityId, }: {
37
36
  onSubmit?: Function;
38
37
  title?: ReactNode;
39
38
  actions?: ReactNode;
40
- formOnlySubmit?: Function;
41
39
  bankAccount?: Mercoa.BankAccountRequest;
42
40
  entityId?: Mercoa.EntityId;
43
41
  }): import("react/jsx-runtime").JSX.Element;
44
- export declare function AddBankAccountForm({ register, errors, watch, setValue, setError, clearErrors, }: {
45
- register: UseFormRegister<any>;
46
- errors: any;
47
- watch: Function;
48
- setValue: Function;
49
- setError: Function;
50
- clearErrors: Function;
42
+ export declare function AddBankAccountForm({ prefix }: {
43
+ prefix?: string;
51
44
  }): import("react/jsx-runtime").JSX.Element;
52
45
  export declare function EditBankAccount({ account, onSubmit, }: {
53
46
  account: Mercoa.PaymentMethodResponse.BankAccount;
@@ -1,6 +1,5 @@
1
1
  import { Mercoa } from '@mercoa/javascript';
2
2
  import { ReactNode } from 'react';
3
- import { UseFormRegister } from 'react-hook-form';
4
3
  export declare function Check({ account, onSelect, showEdit, selected, }: {
5
4
  children?: Function;
6
5
  account?: Mercoa.PaymentMethodResponse.Check;
@@ -13,14 +12,13 @@ export declare function AddCheckDialog({ entityId, onSelect, check, }: {
13
12
  onSelect?: Function;
14
13
  check?: Mercoa.CheckRequest;
15
14
  }): import("react/jsx-runtime").JSX.Element;
16
- export declare function AddCheck({ onSubmit, title, actions, formOnlySubmit, check, entityId, }: {
15
+ export declare function AddCheck({ onSubmit, title, actions, check, entityId, }: {
17
16
  onSubmit?: (data?: Mercoa.PaymentMethodResponse) => void;
18
17
  title?: ReactNode;
19
18
  actions?: ReactNode;
20
- formOnlySubmit?: Function;
21
19
  check?: Mercoa.CheckRequest;
22
20
  entityId?: Mercoa.EntityId;
23
21
  }): import("react/jsx-runtime").JSX.Element;
24
- export declare function AddCheckForm({ register }: {
25
- register: UseFormRegister<any>;
22
+ export declare function AddCheckForm({ prefix }: {
23
+ prefix?: string;
26
24
  }): import("react/jsx-runtime").JSX.Element;
@@ -50,8 +50,9 @@ export type CounterpartiesChildrenProps = {
50
50
  setResultsPerPage: (value: number) => void;
51
51
  counterparties: Mercoa.CounterpartyResponse[];
52
52
  };
53
- export declare function Counterparties({ type, admin, children, }: {
53
+ export declare function Counterparties({ type, network, admin, children, }: {
54
54
  type: 'payor' | 'payee';
55
+ network?: Mercoa.CounterpartyNetworkType[];
55
56
  admin?: boolean;
56
57
  children?: ({ setSearch, dataLoaded, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, counterparties, }: CounterpartiesChildrenProps) => JSX.Element;
57
58
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { Mercoa } from '@mercoa/javascript';
2
2
  import { ReactNode } from 'react';
3
- import { UseFormRegister } from 'react-hook-form';
4
3
  export declare function CustomPaymentMethods({ children, onSelect, showEdit, schema, }: {
5
4
  children?: Function;
6
5
  onSelect?: Function;
@@ -15,18 +14,15 @@ export declare function CustomPaymentMethod({ children, account, onSelect, selec
15
14
  showEdit?: boolean;
16
15
  schema?: Mercoa.CustomPaymentMethodSchemaResponse;
17
16
  }): import("react/jsx-runtime").JSX.Element;
18
- export declare function AddCustomPaymentMethod({ onSubmit, title, actions, formOnlySubmit, entityId, schema, }: {
17
+ export declare function AddCustomPaymentMethod({ onSubmit, title, actions, entityId, schema, }: {
19
18
  onSubmit?: (data: Mercoa.PaymentMethodResponse) => void;
20
19
  title?: ReactNode;
21
20
  actions?: ReactNode;
22
- formOnlySubmit?: Function;
23
21
  entityId?: string;
24
22
  schema: Mercoa.CustomPaymentMethodSchemaResponse;
25
23
  }): import("react/jsx-runtime").JSX.Element;
26
- export declare function AddCustomPaymentMethodForm({ register, control, schema, }: {
27
- register: UseFormRegister<any>;
28
- control: any;
29
- schema: Mercoa.CustomPaymentMethodSchemaResponse;
24
+ export declare function AddCustomPaymentMethodForm({ schema }: {
25
+ schema?: Mercoa.CustomPaymentMethodSchemaResponse;
30
26
  }): import("react/jsx-runtime").JSX.Element;
31
27
  export declare function findCustomPaymentMethodAccountNameAndNumber(account: Mercoa.CustomPaymentMethodResponse): {
32
28
  accountName: string;
@@ -189,3 +189,4 @@ export declare function MetadataSelection({ schema, field, skipValidation, readO
189
189
  export declare function PayableLineItems({ readOnly }: {
190
190
  readOnly?: boolean;
191
191
  }): import("react/jsx-runtime").JSX.Element;
192
+ export declare function PayableFees(): import("react/jsx-runtime").JSX.Element | null;
@@ -29,8 +29,9 @@ export declare function PayablesTable({ statuses, search, metadata, startDate, e
29
29
  columns?: InvoiceTableColumn[];
30
30
  children?: ({ dataLoaded, invoices, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, selectedInvoiceStatuses, setSelectedInvoiceStatues, downloadCSV, }: PayablesTableChildrenProps) => ReactElement | null;
31
31
  }): import("react/jsx-runtime").JSX.Element | null;
32
- export declare function InvoiceStatusPill({ status, amount, payerId, vendorId, dueDate, paymentSourceId, paymentDestinationId, type, }: {
32
+ export declare function InvoiceStatusPill({ status, failureType, amount, payerId, vendorId, dueDate, paymentSourceId, paymentDestinationId, type, }: {
33
33
  status: Mercoa.InvoiceStatus;
34
+ failureType?: Mercoa.InvoiceFailureType;
34
35
  amount?: number;
35
36
  payerId?: string;
36
37
  vendorId?: string;
@@ -164,3 +164,9 @@ export declare function NoSession({ componentName }: {
164
164
  componentName: string;
165
165
  }): import("react/jsx-runtime").JSX.Element;
166
166
  export declare function removeThousands(_value: any, originalValue: string | number): number;
167
+ export declare function PaymentMethodInlineForm({ name, saveAsStatus, addNewButton, form, }: {
168
+ name: string;
169
+ saveAsStatus: string;
170
+ addNewButton: JSX.Element;
171
+ form: JSX.Element;
172
+ }): import("react/jsx-runtime").JSX.Element;