@mercoa/react 0.0.39-rc4 → 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.
@@ -1,22 +1,13 @@
1
1
  import { Mercoa } from '@mercoa/javascript';
2
- export declare function PayableDetails({ invoiceId, invoice, onRedirect, heightOffset, admin, layout, }: {
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
- layout?: 'right' | 'left';
8
+ documentPosition?: 'right' | 'left' | 'none';
9
9
  }): import("react/jsx-runtime").JSX.Element;
10
- export declare function InvoiceDocuments({ documents, invoice, height, showSourceEmail, }: {
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, children, }: {
52
+ export declare function PaymentMethodList({ accounts, showEdit, addAccount, formatAccount, }: {
53
53
  accounts?: Mercoa.PaymentMethodResponse[];
54
54
  showEdit?: boolean;
55
- children: Function;
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;