@gemina/elements 0.13.0 → 0.13.1
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/chat.cjs +1 -1
- package/dist/chat.cjs.map +1 -1
- package/dist/chat.js +2 -2
- package/dist/{chunk-XFE7C6IS.js → chunk-6KHHCUSJ.js} +2 -2
- package/dist/{chunk-5X7CGCOV.js → chunk-A5PZTHDE.js} +81 -74
- package/dist/chunk-A5PZTHDE.js.map +1 -0
- package/dist/{chunk-7FT4EJTY.js → chunk-X5TSIIUP.js} +2 -2
- package/dist/{chunk-7FT4EJTY.js.map → chunk-X5TSIIUP.js.map} +1 -1
- package/dist/index.cjs +80 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/verification.cjs +80 -73
- package/dist/verification.cjs.map +1 -1
- package/dist/verification.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-5X7CGCOV.js.map +0 -1
- /package/dist/{chunk-XFE7C6IS.js.map → chunk-6KHHCUSJ.js.map} +0 -0
|
@@ -45,7 +45,7 @@ async function readErrorEnvelope(error) {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// src/version.ts
|
|
48
|
-
var VERSION = "0.13.
|
|
48
|
+
var VERSION = "0.13.1";
|
|
49
49
|
|
|
50
50
|
export {
|
|
51
51
|
getResponseLike,
|
|
@@ -53,4 +53,4 @@ export {
|
|
|
53
53
|
readErrorEnvelope,
|
|
54
54
|
VERSION
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
56
|
+
//# sourceMappingURL=chunk-X5TSIIUP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/internal/response-like.ts","../src/version.ts"],"sourcesContent":["/**\n * Shared transport-error helpers for the widgets (chat + verification).\n *\n * Extracted verbatim from chat.tsx so both components read thrown SDK errors\n * the same way. Pure and dependency-free: no React, no DOM.\n */\n\n/**\n * The response-like object carried by a thrown transport error. We pull it off\n * by shape rather than `instanceof ResponseError` — robust against duplicated\n * `@gemina/sdk` copies in a bundle (class identity is not shared across\n * copies). On the fetch transport this is the raw `Response`, so `status`,\n * `headers`, and the JSON body are all reachable from here.\n */\nexport interface ResponseLike {\n status?: number;\n headers?: { get?: (name: string) => string | null };\n json?: () => Promise<unknown>;\n clone?: () => ResponseLike;\n}\n\nexport function getResponseLike(error: unknown): ResponseLike | undefined {\n if (error !== null && typeof error === 'object' && 'response' in error) {\n const response = (error as { response?: unknown }).response;\n if (response !== null && typeof response === 'object') {\n return response as ResponseLike;\n }\n }\n return undefined;\n}\n\n/** Extract an HTTP status from a thrown value, or `undefined`. */\nexport function httpStatus(error: unknown): number | undefined {\n const status = getResponseLike(error)?.status;\n return typeof status === 'number' ? status : undefined;\n}\n\n/** What the standard backend error envelope reliably carries. */\nexport interface ErrorEnvelope {\n status: number | undefined;\n /** Stable backend `errors[0].error_code`. */\n errorCode: string | undefined;\n /** Human-readable server fallback (`errors[0].description`). */\n description: string | undefined;\n}\n\n/**\n * Read what the backend actually sent on an error. Only the HTTP status and\n * the stable `errors[0].error_code` / `description` are reliable across\n * environments — production strips `errors[0].detail`, so we never touch it.\n * The fetch body can be read once, so we clone defensively; if that fails\n * (non-JSON, empty, or already consumed) the status still stands.\n */\nexport async function readErrorEnvelope(error: unknown): Promise<ErrorEnvelope> {\n const response = getResponseLike(error);\n const info: ErrorEnvelope = {\n status: typeof response?.status === 'number' ? response.status : undefined,\n errorCode: undefined,\n description: undefined,\n };\n if (response === undefined) {\n return info;\n }\n\n let body: unknown;\n try {\n const source = typeof response.clone === 'function' ? response.clone() : response;\n body = typeof source.json === 'function' ? await source.json() : undefined;\n } catch {\n body = undefined;\n }\n if (body !== null && typeof body === 'object') {\n const errors = (body as { errors?: unknown }).errors;\n if (\n Array.isArray(errors) &&\n errors.length > 0 &&\n errors[0] !== null &&\n typeof errors[0] === 'object'\n ) {\n const first = errors[0] as { error_code?: unknown; description?: unknown };\n if (typeof first.error_code === 'string') {\n info.errorCode = first.error_code;\n }\n if (typeof first.description === 'string') {\n info.description = first.description;\n }\n }\n }\n return info;\n}\n","/** Package version. Keep in sync with package.json. */\nexport const VERSION = '0.13.
|
|
1
|
+
{"version":3,"sources":["../src/internal/response-like.ts","../src/version.ts"],"sourcesContent":["/**\n * Shared transport-error helpers for the widgets (chat + verification).\n *\n * Extracted verbatim from chat.tsx so both components read thrown SDK errors\n * the same way. Pure and dependency-free: no React, no DOM.\n */\n\n/**\n * The response-like object carried by a thrown transport error. We pull it off\n * by shape rather than `instanceof ResponseError` — robust against duplicated\n * `@gemina/sdk` copies in a bundle (class identity is not shared across\n * copies). On the fetch transport this is the raw `Response`, so `status`,\n * `headers`, and the JSON body are all reachable from here.\n */\nexport interface ResponseLike {\n status?: number;\n headers?: { get?: (name: string) => string | null };\n json?: () => Promise<unknown>;\n clone?: () => ResponseLike;\n}\n\nexport function getResponseLike(error: unknown): ResponseLike | undefined {\n if (error !== null && typeof error === 'object' && 'response' in error) {\n const response = (error as { response?: unknown }).response;\n if (response !== null && typeof response === 'object') {\n return response as ResponseLike;\n }\n }\n return undefined;\n}\n\n/** Extract an HTTP status from a thrown value, or `undefined`. */\nexport function httpStatus(error: unknown): number | undefined {\n const status = getResponseLike(error)?.status;\n return typeof status === 'number' ? status : undefined;\n}\n\n/** What the standard backend error envelope reliably carries. */\nexport interface ErrorEnvelope {\n status: number | undefined;\n /** Stable backend `errors[0].error_code`. */\n errorCode: string | undefined;\n /** Human-readable server fallback (`errors[0].description`). */\n description: string | undefined;\n}\n\n/**\n * Read what the backend actually sent on an error. Only the HTTP status and\n * the stable `errors[0].error_code` / `description` are reliable across\n * environments — production strips `errors[0].detail`, so we never touch it.\n * The fetch body can be read once, so we clone defensively; if that fails\n * (non-JSON, empty, or already consumed) the status still stands.\n */\nexport async function readErrorEnvelope(error: unknown): Promise<ErrorEnvelope> {\n const response = getResponseLike(error);\n const info: ErrorEnvelope = {\n status: typeof response?.status === 'number' ? response.status : undefined,\n errorCode: undefined,\n description: undefined,\n };\n if (response === undefined) {\n return info;\n }\n\n let body: unknown;\n try {\n const source = typeof response.clone === 'function' ? response.clone() : response;\n body = typeof source.json === 'function' ? await source.json() : undefined;\n } catch {\n body = undefined;\n }\n if (body !== null && typeof body === 'object') {\n const errors = (body as { errors?: unknown }).errors;\n if (\n Array.isArray(errors) &&\n errors.length > 0 &&\n errors[0] !== null &&\n typeof errors[0] === 'object'\n ) {\n const first = errors[0] as { error_code?: unknown; description?: unknown };\n if (typeof first.error_code === 'string') {\n info.errorCode = first.error_code;\n }\n if (typeof first.description === 'string') {\n info.description = first.description;\n }\n }\n }\n return info;\n}\n","/** Package version. Keep in sync with package.json. */\nexport const VERSION = '0.13.1';\n"],"mappings":";AAqBO,SAAS,gBAAgB,OAA0C;AACxE,MAAI,UAAU,QAAQ,OAAO,UAAU,YAAY,cAAc,OAAO;AACtE,UAAM,WAAY,MAAiC;AACnD,QAAI,aAAa,QAAQ,OAAO,aAAa,UAAU;AACrD,aAAO;AAAA,IACT;AAAA,EACF;AACA,SAAO;AACT;AAGO,SAAS,WAAW,OAAoC;AAC7D,QAAM,SAAS,gBAAgB,KAAK,GAAG;AACvC,SAAO,OAAO,WAAW,WAAW,SAAS;AAC/C;AAkBA,eAAsB,kBAAkB,OAAwC;AAC9E,QAAM,WAAW,gBAAgB,KAAK;AACtC,QAAM,OAAsB;AAAA,IAC1B,QAAQ,OAAO,UAAU,WAAW,WAAW,SAAS,SAAS;AAAA,IACjE,WAAW;AAAA,IACX,aAAa;AAAA,EACf;AACA,MAAI,aAAa,QAAW;AAC1B,WAAO;AAAA,EACT;AAEA,MAAI;AACJ,MAAI;AACF,UAAM,SAAS,OAAO,SAAS,UAAU,aAAa,SAAS,MAAM,IAAI;AACzE,WAAO,OAAO,OAAO,SAAS,aAAa,MAAM,OAAO,KAAK,IAAI;AAAA,EACnE,QAAQ;AACN,WAAO;AAAA,EACT;AACA,MAAI,SAAS,QAAQ,OAAO,SAAS,UAAU;AAC7C,UAAM,SAAU,KAA8B;AAC9C,QACE,MAAM,QAAQ,MAAM,KACpB,OAAO,SAAS,KAChB,OAAO,CAAC,MAAM,QACd,OAAO,OAAO,CAAC,MAAM,UACrB;AACA,YAAM,QAAQ,OAAO,CAAC;AACtB,UAAI,OAAO,MAAM,eAAe,UAAU;AACxC,aAAK,YAAY,MAAM;AAAA,MACzB;AACA,UAAI,OAAO,MAAM,gBAAgB,UAAU;AACzC,aAAK,cAAc,MAAM;AAAA,MAC3B;AAAA,IACF;AAAA,EACF;AACA,SAAO;AACT;;;ACxFO,IAAM,UAAU;","names":[]}
|
package/dist/index.cjs
CHANGED
|
@@ -221,7 +221,7 @@ async function readErrorEnvelope(error) {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
// src/version.ts
|
|
224
|
-
var VERSION = "0.13.
|
|
224
|
+
var VERSION = "0.13.1";
|
|
225
225
|
|
|
226
226
|
// src/chat.tsx
|
|
227
227
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1704,87 +1704,90 @@ var NOTHING_HIDDEN = {
|
|
|
1704
1704
|
rows: /* @__PURE__ */ new Set()
|
|
1705
1705
|
};
|
|
1706
1706
|
var unplannedRowKey = (tablePointer, index) => `${tablePointer}/${index}`;
|
|
1707
|
-
function
|
|
1708
|
-
const
|
|
1709
|
-
const fields = /* @__PURE__ */ new Set();
|
|
1710
|
-
const rows = /* @__PURE__ */ new Set();
|
|
1711
|
-
const touched = (editKey) => editKey !== void 0 && (edits.has(editKey) || pairErrors.has(editKey));
|
|
1712
|
-
const editKeysByRow = /* @__PURE__ */ new Map();
|
|
1713
|
-
for (const view of cellViews) {
|
|
1714
|
-
const list = editKeysByRow.get(view.rowKey);
|
|
1715
|
-
if (list) list.push(view.editKey);
|
|
1716
|
-
else editKeysByRow.set(view.rowKey, [view.editKey]);
|
|
1717
|
-
}
|
|
1718
|
-
const considerField = (pointer, confidence) => {
|
|
1719
|
-
if (suppressed.has(pointer)) return;
|
|
1720
|
-
if (!isHighConfidence(confidence)) return;
|
|
1721
|
-
const editKey = bindingIndex.get(pointer)?.key.raw;
|
|
1722
|
-
if (editKey === void 0 || touched(editKey)) return;
|
|
1723
|
-
fields.add(pointer);
|
|
1724
|
-
};
|
|
1725
|
-
for (const header of classified.headers) {
|
|
1726
|
-
considerField(header.pointer, header.confidence);
|
|
1727
|
-
}
|
|
1707
|
+
function forEachFieldUnit(classified, visit) {
|
|
1708
|
+
for (const header of classified.headers) visit(header.pointer, header.confidence);
|
|
1728
1709
|
for (const list of classified.simpleLists) {
|
|
1729
|
-
for (const item of list.items)
|
|
1710
|
+
for (const item of list.items) visit(item.pointer, item.confidence);
|
|
1730
1711
|
}
|
|
1731
1712
|
for (const entity of classified.entities) {
|
|
1732
1713
|
for (const item of entity.items) {
|
|
1733
|
-
for (const
|
|
1714
|
+
for (const cell of Object.values(item)) visit(cell.pointer, cell.confidence);
|
|
1734
1715
|
}
|
|
1735
1716
|
}
|
|
1736
|
-
|
|
1717
|
+
}
|
|
1718
|
+
function forEachRowUnit(tables, plannedTables, visit) {
|
|
1719
|
+
const confidenceOf = (row) => {
|
|
1737
1720
|
const meta = row?.[ROW_META_KEY];
|
|
1738
1721
|
return meta?.confidence ?? null;
|
|
1739
1722
|
};
|
|
1740
|
-
|
|
1741
|
-
for (const table of classified.tables) {
|
|
1723
|
+
for (const table of tables) {
|
|
1742
1724
|
const planned = plannedTables.get(table.pointer);
|
|
1743
1725
|
if (planned) {
|
|
1744
|
-
for (const
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
if (!rowIsHidable(plannedRow.entry.id)) continue;
|
|
1748
|
-
rows.add(plannedRow.entry.id);
|
|
1726
|
+
for (const row of planned) {
|
|
1727
|
+
const { source } = row.entry;
|
|
1728
|
+
visit(row.entry.id, source === null ? null : confidenceOf(table.rows[source]), source === null);
|
|
1749
1729
|
}
|
|
1750
1730
|
continue;
|
|
1751
1731
|
}
|
|
1752
1732
|
table.rows.forEach((row, index) => {
|
|
1753
|
-
|
|
1754
|
-
const key = unplannedRowKey(table.pointer, index);
|
|
1755
|
-
if (!rowIsHidable(key)) return;
|
|
1756
|
-
rows.add(key);
|
|
1733
|
+
visit(unplannedRowKey(table.pointer, index), confidenceOf(row), false);
|
|
1757
1734
|
});
|
|
1758
1735
|
}
|
|
1736
|
+
}
|
|
1737
|
+
function computeHidden(input) {
|
|
1738
|
+
const {
|
|
1739
|
+
classified,
|
|
1740
|
+
tables,
|
|
1741
|
+
plannedTables,
|
|
1742
|
+
cellViews,
|
|
1743
|
+
bindingIndex,
|
|
1744
|
+
edits,
|
|
1745
|
+
pairErrors,
|
|
1746
|
+
suppressed
|
|
1747
|
+
} = input;
|
|
1748
|
+
const fields = /* @__PURE__ */ new Set();
|
|
1749
|
+
const rows = /* @__PURE__ */ new Set();
|
|
1750
|
+
const touched = (editKey) => edits.has(editKey) || pairErrors.has(editKey);
|
|
1751
|
+
const editKeysByRow = /* @__PURE__ */ new Map();
|
|
1752
|
+
for (const view of cellViews) {
|
|
1753
|
+
const list = editKeysByRow.get(view.rowKey);
|
|
1754
|
+
if (list) list.push(view.editKey);
|
|
1755
|
+
else editKeysByRow.set(view.rowKey, [view.editKey]);
|
|
1756
|
+
}
|
|
1757
|
+
forEachFieldUnit(classified, (pointer, confidence) => {
|
|
1758
|
+
if (suppressed.has(pointer) || !isHighConfidence(confidence)) return;
|
|
1759
|
+
const editKey = bindingIndex.get(pointer)?.key.raw;
|
|
1760
|
+
if (editKey === void 0 || touched(editKey)) return;
|
|
1761
|
+
fields.add(pointer);
|
|
1762
|
+
});
|
|
1763
|
+
forEachRowUnit(tables, plannedTables, (rowKey, confidence, added) => {
|
|
1764
|
+
if (added || !isHighConfidence(confidence)) return;
|
|
1765
|
+
if ((editKeysByRow.get(rowKey) ?? []).some(touched)) return;
|
|
1766
|
+
rows.add(rowKey);
|
|
1767
|
+
});
|
|
1759
1768
|
if (fields.size === 0 && rows.size === 0) return NOTHING_HIDDEN;
|
|
1760
1769
|
return { fields, rows };
|
|
1761
1770
|
}
|
|
1762
|
-
function countUnits(classified, plannedTables, suppressed) {
|
|
1771
|
+
function countUnits(classified, tables, plannedTables, suppressed) {
|
|
1763
1772
|
let total = 0;
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
total += Object.values(item).filter((entityCell) => !suppressed.has(entityCell.pointer)).length;
|
|
1771
|
-
}
|
|
1772
|
-
}
|
|
1773
|
-
for (const table of classified.tables) {
|
|
1774
|
-
total += plannedTables.get(table.pointer)?.length ?? table.rows.length;
|
|
1775
|
-
}
|
|
1773
|
+
forEachFieldUnit(classified, (pointer) => {
|
|
1774
|
+
if (!suppressed.has(pointer)) total += 1;
|
|
1775
|
+
});
|
|
1776
|
+
forEachRowUnit(tables, plannedTables, () => {
|
|
1777
|
+
total += 1;
|
|
1778
|
+
});
|
|
1776
1779
|
return total;
|
|
1777
1780
|
}
|
|
1778
|
-
function hasAnyConfidence(classified) {
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
)
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1781
|
+
function hasAnyConfidence(classified, tables, plannedTables) {
|
|
1782
|
+
let found = false;
|
|
1783
|
+
forEachFieldUnit(classified, (_pointer, confidence) => {
|
|
1784
|
+
if (confidence?.level) found = true;
|
|
1785
|
+
});
|
|
1786
|
+
if (found) return true;
|
|
1787
|
+
forEachRowUnit(tables, plannedTables, (_rowKey, confidence) => {
|
|
1788
|
+
if (confidence?.level) found = true;
|
|
1789
|
+
});
|
|
1790
|
+
return found;
|
|
1788
1791
|
}
|
|
1789
1792
|
|
|
1790
1793
|
// src/verification/tip.tsx
|
|
@@ -3060,7 +3063,7 @@ function TableSection(props) {
|
|
|
3060
3063
|
);
|
|
3061
3064
|
const showControls = planned !== void 0 && mutable !== void 0 && !shared.readOnly && !shared.filterOn;
|
|
3062
3065
|
const visiblePlanned = planned?.map((plannedRow, position) => ({ plannedRow, position })).filter(({ plannedRow }) => !shared.hidden.rows.has(plannedRow.entry.id));
|
|
3063
|
-
const visibleRowIndices = planned ?
|
|
3066
|
+
const visibleRowIndices = planned ? [] : table.rows.map((_row, index) => index).filter((index) => !shared.hidden.rows.has(unplannedRowKey(table.pointer, index)));
|
|
3064
3067
|
const visibleCount = visiblePlanned ? visiblePlanned.length : visibleRowIndices.length;
|
|
3065
3068
|
const allHidden = visibleCount === 0 && rowCount > 0;
|
|
3066
3069
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("section", { className: "gemina-verification__section", "aria-label": label, children: [
|
|
@@ -4323,19 +4326,19 @@ function GeminaVerification(props) {
|
|
|
4323
4326
|
return map;
|
|
4324
4327
|
}, [bindings]);
|
|
4325
4328
|
const unmatched = (0, import_react5.useMemo)(() => {
|
|
4326
|
-
const
|
|
4329
|
+
const rendered2 = /* @__PURE__ */ new Set();
|
|
4327
4330
|
for (const field of classified.headers) {
|
|
4328
|
-
|
|
4331
|
+
rendered2.add(field.pointer);
|
|
4329
4332
|
}
|
|
4330
4333
|
for (const list of classified.simpleLists) {
|
|
4331
4334
|
for (const item of list.items) {
|
|
4332
|
-
|
|
4335
|
+
rendered2.add(item.pointer);
|
|
4333
4336
|
}
|
|
4334
4337
|
}
|
|
4335
4338
|
for (const entity of classified.entities) {
|
|
4336
4339
|
for (const item of entity.items) {
|
|
4337
4340
|
for (const cell of Object.values(item)) {
|
|
4338
|
-
|
|
4341
|
+
rendered2.add(cell.pointer);
|
|
4339
4342
|
}
|
|
4340
4343
|
}
|
|
4341
4344
|
}
|
|
@@ -4343,12 +4346,12 @@ function GeminaVerification(props) {
|
|
|
4343
4346
|
for (const row of table.rows) {
|
|
4344
4347
|
for (const [key, cell] of Object.entries(row)) {
|
|
4345
4348
|
if (key !== ROW_META_KEY) {
|
|
4346
|
-
|
|
4349
|
+
rendered2.add(cell.pointer);
|
|
4347
4350
|
}
|
|
4348
4351
|
}
|
|
4349
4352
|
}
|
|
4350
4353
|
}
|
|
4351
|
-
return bindings.filter((binding) => !
|
|
4354
|
+
return bindings.filter((binding) => !rendered2.has(binding.fieldPointer));
|
|
4352
4355
|
}, [classified, bindings]);
|
|
4353
4356
|
const overlayRects = (0, import_react5.useMemo)(() => {
|
|
4354
4357
|
const rects = [];
|
|
@@ -4513,26 +4516,30 @@ function GeminaVerification(props) {
|
|
|
4513
4516
|
});
|
|
4514
4517
|
}, []);
|
|
4515
4518
|
const pairErrors = (0, import_react5.useMemo)(() => unitSizePairErrors(cellViews, edits), [cellViews, edits]);
|
|
4516
|
-
const
|
|
4517
|
-
() => withEmptyMutableTables(classified, loaded?.rowMutableTables ?? [])
|
|
4519
|
+
const rendered = (0, import_react5.useMemo)(
|
|
4520
|
+
() => withEmptyMutableTables(classified, loaded?.rowMutableTables ?? []),
|
|
4518
4521
|
[classified, loaded?.rowMutableTables]
|
|
4519
4522
|
);
|
|
4520
|
-
const canFilter = (0, import_react5.useMemo)(
|
|
4523
|
+
const canFilter = (0, import_react5.useMemo)(
|
|
4524
|
+
() => hasAnyConfidence(classified, rendered.tables, plannedTables),
|
|
4525
|
+
[classified, rendered, plannedTables]
|
|
4526
|
+
);
|
|
4521
4527
|
const hidden = (0, import_react5.useMemo)(
|
|
4522
4528
|
() => filterOn && canFilter ? computeHidden({
|
|
4523
4529
|
classified,
|
|
4530
|
+
tables: rendered.tables,
|
|
4524
4531
|
plannedTables,
|
|
4525
4532
|
cellViews,
|
|
4526
4533
|
bindingIndex,
|
|
4527
4534
|
edits,
|
|
4528
4535
|
pairErrors,
|
|
4529
|
-
suppressed
|
|
4536
|
+
suppressed: rendered.suppressed
|
|
4530
4537
|
}) : NOTHING_HIDDEN,
|
|
4531
|
-
[filterOn, canFilter, classified, plannedTables, cellViews, bindingIndex, edits, pairErrors
|
|
4538
|
+
[filterOn, canFilter, classified, rendered, plannedTables, cellViews, bindingIndex, edits, pairErrors]
|
|
4532
4539
|
);
|
|
4533
4540
|
const totalUnits = (0, import_react5.useMemo)(
|
|
4534
|
-
() => countUnits(classified, plannedTables, suppressed) + unmatched.length,
|
|
4535
|
-
[classified,
|
|
4541
|
+
() => countUnits(classified, rendered.tables, plannedTables, rendered.suppressed) + unmatched.length,
|
|
4542
|
+
[classified, rendered, plannedTables, unmatched]
|
|
4536
4543
|
);
|
|
4537
4544
|
const visibleUnits = totalUnits - hidden.fields.size - hidden.rows.size;
|
|
4538
4545
|
const invalidCount = (0, import_react5.useMemo)(() => {
|