@mercoa/react 0.0.46-rc3 → 0.0.46
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/Counterparties.d.ts +2 -1
- package/dist/components/EntityDetails.d.ts +2 -1
- package/dist/components/EntityOnboarding.d.ts +7 -0
- package/dist/components/PayableDetails.d.ts +11 -4
- package/dist/components/Payables.d.ts +2 -1
- package/dist/index.es.js +20189 -17687
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +47 -47
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/mccCodes.d.ts +4 -0
- package/package.json +2 -2
|
@@ -48,13 +48,14 @@ export type CounterpartiesChildrenProps = {
|
|
|
48
48
|
getPrevious: () => void;
|
|
49
49
|
resultsPerPage: number;
|
|
50
50
|
setResultsPerPage: (value: number) => void;
|
|
51
|
+
count: number;
|
|
51
52
|
counterparties: Mercoa.CounterpartyResponse[];
|
|
52
53
|
};
|
|
53
54
|
export declare function Counterparties({ type, network, admin, children, }: {
|
|
54
55
|
type: 'payor' | 'payee';
|
|
55
56
|
network?: Mercoa.CounterpartyNetworkType[];
|
|
56
57
|
admin?: boolean;
|
|
57
|
-
children?: ({ setSearch, dataLoaded, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, counterparties, }: CounterpartiesChildrenProps) => JSX.Element;
|
|
58
|
+
children?: ({ setSearch, dataLoaded, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, counterparties, count, }: CounterpartiesChildrenProps) => JSX.Element;
|
|
58
59
|
}): import("react/jsx-runtime").JSX.Element;
|
|
59
60
|
export declare function CounterpartyDetails({ counterparty, counterpartyId, admin, type, children, }: {
|
|
60
61
|
counterparty?: Mercoa.CounterpartyResponse;
|
|
@@ -20,9 +20,10 @@ export type EntityEmailLogsChildrenProps = {
|
|
|
20
20
|
getPrevious: () => void;
|
|
21
21
|
resultsPerPage: number;
|
|
22
22
|
setResultsPerPage: (value: number) => void;
|
|
23
|
+
count: number;
|
|
23
24
|
};
|
|
24
25
|
export declare function EntityEmailLogs({ entity, onClick, children, }: {
|
|
25
26
|
entity?: Mercoa.EntityResponse;
|
|
26
27
|
onClick?: (invoiceId: string) => void;
|
|
27
|
-
children?: ({ dataLoaded, emails, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, }: EntityEmailLogsChildrenProps) => JSX.Element;
|
|
28
|
+
children?: ({ dataLoaded, emails, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, count, }: EntityEmailLogsChildrenProps) => JSX.Element;
|
|
28
29
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -136,6 +136,13 @@ export declare function EINBlock({ control, errors, readOnly, required, }: {
|
|
|
136
136
|
required?: boolean;
|
|
137
137
|
readOnly?: boolean;
|
|
138
138
|
}): import("react/jsx-runtime").JSX.Element;
|
|
139
|
+
export declare const mccSchema: {
|
|
140
|
+
mcc: yup.StringSchema<string, yup.AnyObject, undefined, "">;
|
|
141
|
+
};
|
|
142
|
+
export declare function MCCBlock({ watch, setValue }: {
|
|
143
|
+
watch: Function;
|
|
144
|
+
setValue: Function;
|
|
145
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
139
146
|
export declare const websiteSchema: {
|
|
140
147
|
website: yup.StringSchema<string, yup.AnyObject, undefined, "">;
|
|
141
148
|
};
|
|
@@ -133,11 +133,10 @@ export declare function PayableActions({ approveButton, rejectButton, nonApprove
|
|
|
133
133
|
export declare function PayableOverview({ readOnly }: {
|
|
134
134
|
readOnly?: boolean;
|
|
135
135
|
}): import("react/jsx-runtime").JSX.Element;
|
|
136
|
-
export declare function PayableSelectPaymentMethod({ isSource, isDestination, disableCreation,
|
|
136
|
+
export declare function PayableSelectPaymentMethod({ isSource, isDestination, disableCreation, readOnly, }: {
|
|
137
137
|
isSource?: boolean;
|
|
138
138
|
isDestination?: boolean;
|
|
139
139
|
disableCreation?: boolean;
|
|
140
|
-
disablePaymentTimingDisplay?: boolean;
|
|
141
140
|
readOnly?: boolean;
|
|
142
141
|
}): import("react/jsx-runtime").JSX.Element;
|
|
143
142
|
export declare function PayablePaymentSource({ readOnly }: {
|
|
@@ -146,7 +145,11 @@ export declare function PayablePaymentSource({ readOnly }: {
|
|
|
146
145
|
export declare function PayablePaymentDestination({ readOnly }: {
|
|
147
146
|
readOnly?: boolean;
|
|
148
147
|
}): import("react/jsx-runtime").JSX.Element;
|
|
149
|
-
export declare function PaymentDestinationProcessingTime(
|
|
148
|
+
export declare function PaymentDestinationProcessingTime({ children, }: {
|
|
149
|
+
children?: ({ timing }: {
|
|
150
|
+
timing?: Mercoa.CalculatePaymentTimingResponse;
|
|
151
|
+
}) => JSX.Element;
|
|
152
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
150
153
|
export declare function PayableApprovers({ readOnly }: {
|
|
151
154
|
readOnly?: boolean;
|
|
152
155
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -190,4 +193,8 @@ export declare function MetadataSelection({ schema, field, skipValidation, readO
|
|
|
190
193
|
export declare function PayableLineItems({ readOnly }: {
|
|
191
194
|
readOnly?: boolean;
|
|
192
195
|
}): import("react/jsx-runtime").JSX.Element;
|
|
193
|
-
export declare function PayableFees(
|
|
196
|
+
export declare function PayableFees({ children, }: {
|
|
197
|
+
children?: ({ fees }: {
|
|
198
|
+
fees?: Mercoa.InvoiceFeesResponse;
|
|
199
|
+
}) => JSX.Element;
|
|
200
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -15,6 +15,7 @@ export type PayablesTableChildrenProps = {
|
|
|
15
15
|
getPrevious: () => void;
|
|
16
16
|
resultsPerPage: number;
|
|
17
17
|
setResultsPerPage: (value: number) => void;
|
|
18
|
+
count: number;
|
|
18
19
|
selectedInvoiceStatuses: Mercoa.InvoiceStatus[];
|
|
19
20
|
setSelectedInvoiceStatues: (statuses: Mercoa.InvoiceStatus[]) => void;
|
|
20
21
|
downloadCSV: () => void;
|
|
@@ -27,7 +28,7 @@ export declare function PayablesTable({ statuses, search, metadata, startDate, e
|
|
|
27
28
|
endDate?: Date;
|
|
28
29
|
onSelectInvoice?: (invoice: Mercoa.InvoiceResponse) => any;
|
|
29
30
|
columns?: InvoiceTableColumn[];
|
|
30
|
-
children?: ({ dataLoaded, invoices, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, selectedInvoiceStatuses, setSelectedInvoiceStatues, downloadCSV, }: PayablesTableChildrenProps) => ReactElement | null;
|
|
31
|
+
children?: ({ dataLoaded, invoices, hasNext, getNext, hasPrevious, getPrevious, resultsPerPage, setResultsPerPage, count, selectedInvoiceStatuses, setSelectedInvoiceStatues, downloadCSV, }: PayablesTableChildrenProps) => ReactElement | null;
|
|
31
32
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
32
33
|
export declare function InvoiceStatusPill({ status, failureType, amount, payerId, vendorId, dueDate, paymentSourceId, paymentDestinationId, type, }: {
|
|
33
34
|
status: Mercoa.InvoiceStatus;
|