@mercoa/react 0.0.46-rc3 → 0.0.46-rc4
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/Payables.d.ts +2 -1
- package/dist/index.es.js +9 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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;
|
package/dist/index.es.js
CHANGED
|
@@ -39528,7 +39528,8 @@ function Zfe({
|
|
|
39528
39528
|
},
|
|
39529
39529
|
resultsPerPage: b,
|
|
39530
39530
|
setResultsPerPage: v,
|
|
39531
|
-
counterparties: a ?? []
|
|
39531
|
+
counterparties: a ?? [],
|
|
39532
|
+
count: g
|
|
39532
39533
|
});
|
|
39533
39534
|
function D({
|
|
39534
39535
|
entity: T,
|
|
@@ -41332,7 +41333,7 @@ function gme({
|
|
|
41332
41333
|
}), () => {
|
|
41333
41334
|
g = !1;
|
|
41334
41335
|
};
|
|
41335
|
-
}, [n.client, o, n.refreshId, m]), t ? t({
|
|
41336
|
+
}, [n.client, o, n.refreshId, m, b]), t ? t({
|
|
41336
41337
|
dataLoaded: !!n.client && !!(o != null && o.id) && !!a,
|
|
41337
41338
|
emails: a ?? [],
|
|
41338
41339
|
hasNext: d,
|
|
@@ -41344,7 +41345,8 @@ function gme({
|
|
|
41344
41345
|
s > 1 && (l(s - 1), p(m.slice(0, m.length - 1)));
|
|
41345
41346
|
},
|
|
41346
41347
|
resultsPerPage: b,
|
|
41347
|
-
setResultsPerPage: v
|
|
41348
|
+
setResultsPerPage: v,
|
|
41349
|
+
count: h
|
|
41348
41350
|
}) : n.client ? /* @__PURE__ */ u.jsxs("div", {
|
|
41349
41351
|
children: [/* @__PURE__ */ u.jsxs("table", {
|
|
41350
41352
|
className: "mercoa-min-w-full mercoa-divide-y mercoa-divide-gray-300 mercoa-mt-5",
|
|
@@ -58711,7 +58713,8 @@ function m_e({
|
|
|
58711
58713
|
setResultsPerPage: C,
|
|
58712
58714
|
selectedInvoiceStatuses: D,
|
|
58713
58715
|
setSelectedInvoiceStatues: M,
|
|
58714
|
-
downloadCSV: H
|
|
58716
|
+
downloadCSV: H,
|
|
58717
|
+
count: O
|
|
58715
58718
|
});
|
|
58716
58719
|
if (!j || !l.entity || !d)
|
|
58717
58720
|
return /* @__PURE__ */ u.jsx("div", {
|
|
@@ -60762,7 +60765,8 @@ function O_e({
|
|
|
60762
60765
|
setResultsPerPage: C,
|
|
60763
60766
|
selectedInvoiceStatuses: j,
|
|
60764
60767
|
setSelectedInvoiceStatues: E,
|
|
60765
|
-
downloadCSV:
|
|
60768
|
+
downloadCSV: $,
|
|
60769
|
+
count: g
|
|
60766
60770
|
}) : O ? /* @__PURE__ */ u.jsx(u.Fragment, {
|
|
60767
60771
|
children: l.entity && d ? /* @__PURE__ */ u.jsxs(u.Fragment, {
|
|
60768
60772
|
children: [/* @__PURE__ */ u.jsx("div", {
|