@ai-matrx/records-ui 0.116.7 → 0.116.8

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
@@ -12,11 +12,20 @@
12
12
  - Tests: `vitest.setup.ts` gives jsdom a no-op `performance.mark` / `measure`.
13
13
  - **New subpath `@ai-matrx/records-ui/data-source`:** `recordsDataSource`, `personActor` and the who-changed words (`whenWords`, `actorWords`, `actorBadge`, `lastChangeSentence`, `SOMEBODY`, `THE_SYSTEM`) alone. `/helpers` also carries the field-type words, the colour resolver and the table builders, which read `@ai-matrx/records/core`; this entry reaches `@ai-matrx/kit` only, and shares the one data-source cache with `/helpers` and the root. Additive. Consumer action: a shell-reachable service that only binds its supabase client or says when imports from `/data-source`.
14
14
 
15
- ## 0.116.7
15
+ ## 0.116.8
16
16
 
17
17
  UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
18
18
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
19
19
 
20
+ ## 0.116.6
21
+
22
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
23
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
24
+ Diff: `git diff acb7150318 b3962adfda -- apps/shared/records-ui/src`
25
+
26
+ Changed shipped source files (1):
27
+ - `apps/shared/records-ui/src/RecordsSkeleton.tsx`
28
+
20
29
  ## 0.116.5
21
30
 
22
31
  SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
package/dist/index.cjs CHANGED
@@ -21470,13 +21470,17 @@ function OpenCell({
21470
21470
  {
21471
21471
  ref: host,
21472
21472
  "data-matrx-cell-control": "",
21473
- ...widens ? { "data-matrx-cell-widens": "" } : { "data-matrx-cell-fill": "" },
21473
+ ...widens ? { "data-matrx-cell-widens": "" } : multiline ? { "data-matrx-cell-widens": "", "data-matrx-cell-fill": "", "data-records-cell-multiline": "" } : { "data-matrx-cell-fill": "" },
21474
21474
  style: wideTo ? { width: wideTo, minWidth: wideTo, maxWidth: "28rem", right: "auto" } : void 0,
21475
21475
  "data-matrx-cell-editor": "",
21476
21476
  tabIndex: -1,
21477
21477
  className: (0, import_design_system56.cn)(
21478
21478
  // OVER the cell's ghost (see `data-records-open-cell`), never in the table's measuring.
21479
- "absolute inset-x-0 top-1/2 z-[25] flex w-full min-w-0 max-w-full -translate-y-1/2 flex-col gap-1 outline-none",
21479
+ "absolute inset-x-0 z-[25] flex w-full min-w-0 max-w-full flex-col gap-1 outline-none",
21480
+ // A one-line control sits centred on the row; a multi-line box hangs from the cell's top and
21481
+ // grows downward over the rows below (Airtable's expanded long-text cell), never up over the
21482
+ // header (D10: centred, its first lines sat 58px above the cell, outside it).
21483
+ multiline ? "top-0 rounded-md bg-card shadow-md" : "top-1/2 -translate-y-1/2",
21480
21484
  // A box reaching over the next column is opaque, so what it covers never shows through it
21481
21485
  // (the calendar button sat over the Actions cell's copy icon, both drawn).
21482
21486
  widens && "rounded-md bg-card shadow-sm",
@@ -36606,9 +36610,17 @@ function RecordPanel({ tableId, recordId, onClose, onAskAboutField, onPage = fal
36606
36610
  const [asking, setAsking] = (0, import_react199.useState)(null);
36607
36611
  const record = (0, import_react200.useRecord)(recordId, true, { tableId });
36608
36612
  const answered = Boolean(record.data) && !record.error;
36613
+ const panelRef = (0, import_react199.useRef)(null);
36614
+ (0, import_react199.useEffect)(() => {
36615
+ if (onPage) return;
36616
+ const panel = panelRef.current;
36617
+ if (!panel || panel.contains(document.activeElement)) return;
36618
+ panel.focus({ preventScroll: true });
36619
+ }, [recordId, onPage]);
36609
36620
  return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(
36610
36621
  "div",
36611
36622
  {
36623
+ ref: panelRef,
36612
36624
  className: "space-y-3 outline-none",
36613
36625
  tabIndex: -1,
36614
36626
  "data-record-panel": recordId,