@ai-matrx/records-ui 0.102.16 → 0.102.17

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog — @ai-matrx/records-ui
2
2
 
3
+ ## 0.102.17
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/records-ui/v0.102.16..npm/records-ui/v0.102.17 -- apps/shared/records-ui`).
7
+ No source changes intended and no consumer action required.
8
+
3
9
  ## 0.102.16
4
10
 
5
11
  - `parseDelimited` (table-shape detection) reads through THE one reader, kit `parseDelimited` (AP-2; was a hand-rolled char loop). Needs kit 0.31.0.
package/dist/index.cjs CHANGED
@@ -7763,18 +7763,23 @@ function GridCell({
7763
7763
  const editable = Boolean(editing) && canWrite && fieldIsEditable(field2);
7764
7764
  if (open && editing) {
7765
7765
  return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { "data-records-open-cell": "", className: "relative block w-full min-w-0", children: [
7766
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { "aria-hidden": "true", "data-records-cell-ghost": "", className: "pointer-events-none invisible block select-none truncate px-1 py-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
7767
- RecordValue,
7768
- {
7769
- inCell: true,
7770
- field: field2,
7771
- value: row.document?.[field2.key],
7772
- document: row.document,
7773
- recordId: row.id,
7774
- withheld: withheldNoticeOf(row.hidden, field2.key),
7775
- ...format ? { format } : {}
7776
- }
7777
- ) }),
7766
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { "aria-hidden": "true", inert: true, "data-records-cell-ghost": "", className: "pointer-events-none invisible flex w-full min-w-0 select-none items-center gap-1", children: [
7767
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "block min-w-0 flex-1 truncate px-1 py-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
7768
+ RecordValue,
7769
+ {
7770
+ inCell: true,
7771
+ field: field2,
7772
+ value: row.document?.[field2.key],
7773
+ document: row.document,
7774
+ recordId: row.id,
7775
+ withheld: withheldNoticeOf(row.hidden, field2.key),
7776
+ ...format ? { format } : {}
7777
+ }
7778
+ ) }),
7779
+ onAskWhoChanged ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(WhoBadge, { field: field2, row, onAskWhoChanged: () => {
7780
+ }, onPressedTwice: () => {
7781
+ } }) : null
7782
+ ] }),
7778
7783
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
7779
7784
  OpenCell,
7780
7785
  {
@@ -23356,8 +23361,11 @@ function GridBody({
23356
23361
  const rowMemoryKey = `${tableId}:${embedded ? "embedded" : "page"}:${openingKey}`;
23357
23362
  const rowsAnswered = Boolean(records.data) && !records.loading && !table.loading && !fields.loading;
23358
23363
  (0, import_react112.useEffect)(() => {
23359
- if (rowsAnswered) rememberRowCount(rowMemoryKey, rows.length);
23360
- }, [rowsAnswered, rowMemoryKey, rows.length]);
23364
+ if (rowsAnswered) {
23365
+ rememberRowCount(rowMemoryKey, rows.length);
23366
+ if (!embedded) rememberRowCount(`${tableId}:page:last`, rows.length);
23367
+ }
23368
+ }, [rowsAnswered, rowMemoryKey, rows.length, embedded, tableId]);
23361
23369
  if (table.error) return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(RefusalNotice, { error: table.error, className });
23362
23370
  if (fields.error) return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(RefusalNotice, { error: fields.error, className });
23363
23371
  const nothingToShowYet = table.loading || fields.loading || !rights.known || records.loading && rows.length === 0 || // The page read has neither answered nor refused: nothing has been said yet, so nothing is empty.
@@ -48506,7 +48514,17 @@ function TablePage({
48506
48514
  children: cameFromLine(cameFrom, activeGroupField ?? null, askedInWords)
48507
48515
  }
48508
48516
  ) : null,
48509
- faceUnknown ? /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(RecordsSkeleton, { layout: skeletonLayoutFor(shownLayout), embedded }) : /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
48517
+ faceUnknown ? (
48518
+ /* REVIEW-FIX 10: a full page paints the rows this table showed last time (else fills). */
48519
+ /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
48520
+ RecordsSkeleton,
48521
+ {
48522
+ layout: skeletonLayoutFor(shownLayout),
48523
+ embedded,
48524
+ ...embedded ? {} : { rows: rememberedRowCount(`${tableId}:page:last`, 100, "fill") }
48525
+ }
48526
+ )
48527
+ ) : /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
48510
48528
  ViewSwitcher,
48511
48529
  {
48512
48530
  chooser: false,