@ai-matrx/records-ui 0.116.76 → 0.116.78

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,26 @@
1
1
  # Changelog — @ai-matrx/records-ui
2
2
 
3
+ ## 0.116.78
4
+
5
+ - **Ids in the chart, enrich, table-picker and where-it-lives strings are the one `displayId` (one-id close-out).** `ChartBlock`, `Enrich`, `TablePickers` and `WhereItLives` shorten a record id through `displayId` (8 characters) instead of a hand `slice`. Consumer action: none.
6
+
7
+ - **Dashboards and Pages are drawn by THE grid engine (custom-experience lane U, 2026-10-22).** `DashboardGrid.tsx` (its own dnd-kit sortable grid and `sm:col-span-*` class table) is deleted; `BlockGrid.tsx` lays blocks on design-system `GridCanvas` with `fit="content"` (lines as tall as their content) and adds only the grip and width picker. Stored shape unchanged (ordered list + `span`); `blocksToLines` / `linesToArrangement` / `arrangeBlocks` round-trip it exactly and pass an unchanged block through byte for byte. New in Arrange: drag the corner to change width, Shift+Left/Right. Removed exports-internal helpers `spanClass`, `moveListItem`, `dashboardCollision` (never exported from the root). Guards: `a-dashboard-block-keeps-its-width-and-place.test.tsx` (engine placement + exact round trip), design-system `one-grid-engine.census.test.ts`. Needs `@ai-matrx/design-system` with `GridCanvas` `fit`. Consumer action: none.
8
+
9
+
10
+ - **`ObjectActionGlyph` draws through `@ai-matrx/design-system/icons`.** The 34 inline path tables in `objectActionIcons.tsx` are replaced by a name-to-glyph map; the `data-object-action-icon` attribute and the exported name are unchanged, and each svg now also carries its `lucide-<name>` class. Consumer action: none.
11
+ - **A link can point at several tables, and a picker's search asks the store (lane CLOSE-LINK, 2026-10-22).** `RelationPicker` reads `config.target_mode` "several" / `config.target_tables` (new export `linkTargetsOf(field)`): it offers the records of every table the link points at, each told apart by its table's name, and a refusal from any one of them is said under the list. A typed search is also asked of each target table's own search (`listPage`'s `search`, debounced while the list is open), so a record beyond the first 200 is found by part of its name. `FieldEditor` gains "Also points at" (new `AlsoPointsAt`, reads the tables only when drawn) on an existing link column, sending `target_tables` only when the list changed. Guards: `a-link-to-several-tables-offers-each-and-a-search-asks-the-store.test.tsx` (red on the old picker), `FieldEditor.test.tsx` "a link can also point at other tables". Store: matrx-frontend migration `closelink_g`. Consumer action: none. Needs `@ai-matrx/records` with `FieldPatch.target_tables`.
12
+
13
+ - **A URL's hover preview is the one Peek.** `LinkPreviewCard` draws the page's preview as `<Peek>` inside `PeekHoverCard` (title, site as subtitle, favicon as avatar, image on top, description, the address as the record's page, Copy hands Alchemy url/title/description/site) instead of a hand-built hover card. Kept: asked once per address through the host's `linkPreview` port, no port or nothing to show is the chip alone, hover-only on phones. Hover timing is now the design system's standard hover-card delay. Consumer action: none.
14
+
15
+ ## 0.116.77
16
+
17
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
18
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
19
+ Diff: `git diff 7fa4439567 e0027802b3 -- apps/shared/records-ui/src`
20
+
21
+ Changed shipped source files (1):
22
+ - `apps/shared/records-ui/src/LinkPreviewCard.tsx`
23
+
3
24
  ## 0.116.76
4
25
 
5
26
  - **A hovered grid row shows the one Peek (option `rowPeek`, default off).** `Grid`, `ViewSwitcher` and `TablePage` take `rowPeek`: a row, hovered, opens the design system's `PeekHoverCard` around `<Peek record>` (the record's name, up to six of its values, an Open door); a click still opens the record where the host puts it. Built from `peekRecordOfRow` (new `gridRowPeek.tsx`) through the data table's existing `rowWrapper`. Guard: `a-hovered-grid-row-shows-the-one-peek.test.tsx`. Consumer action: none; Data Library's inline grid turns it on.
@@ -4,7 +4,7 @@ import {
4
4
  SAVE_TO_TABLE_TYPES,
5
5
  SaveToTable,
6
6
  shapesOfSource
7
- } from "./chunk-NDYZROTI.js";
7
+ } from "./chunk-5RNBIP6J.js";
8
8
  import "./chunk-ESNTHDQO.js";
9
9
  import "./chunk-HCPNQM4Y.js";
10
10
  import "./chunk-6Z537SLG.js";
@@ -17,4 +17,4 @@ export {
17
17
  SaveToTable,
18
18
  shapesOfSource
19
19
  };
20
- //# sourceMappingURL=SaveToTable-HQREESNE.js.map
20
+ //# sourceMappingURL=SaveToTable-DQXFHYHS.js.map
@@ -3612,63 +3612,82 @@ import {
3612
3612
  } from "@ai-matrx/design-system";
3613
3613
 
3614
3614
  // src/objectActionIcons.tsx
3615
+ import {
3616
+ ArchiveIcon,
3617
+ ArchiveRestoreIcon,
3618
+ ArrowUpFromLineIcon,
3619
+ BellIcon,
3620
+ BlocksIcon,
3621
+ CalendarClockIcon,
3622
+ Columns3Icon,
3623
+ CopyIcon,
3624
+ CornerDownRightIcon,
3625
+ DoorOpenIcon,
3626
+ DownloadIcon,
3627
+ EraserIcon,
3628
+ ExternalLinkIcon,
3629
+ FileTextIcon,
3630
+ FolderInputIcon,
3631
+ FolderOpenIcon,
3632
+ GitMergeIcon,
3633
+ HistoryIcon,
3634
+ InboxIcon,
3635
+ LayoutDashboardIcon,
3636
+ LayoutGridIcon,
3637
+ Link2Icon,
3638
+ LinkIcon,
3639
+ ListChecksIcon,
3640
+ LockIcon,
3641
+ LockOpenIcon,
3642
+ PencilIcon,
3643
+ PrinterIcon,
3644
+ SettingsIcon,
3645
+ Share2Icon,
3646
+ SplitIcon,
3647
+ StarIcon,
3648
+ StarOffIcon,
3649
+ UploadIcon
3650
+ } from "@ai-matrx/design-system/icons";
3615
3651
  import { jsx as jsx6 } from "react/jsx-runtime";
3616
3652
  var GLYPHS = {
3617
- "folder-open": [["path", { "d": "m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2" }]],
3618
- "external-link": [["path", { "d": "M15 3h6v6" }], ["path", { "d": "M10 14 21 3" }], ["path", { "d": "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }]],
3619
- "link": [["path", { "d": "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }], ["path", { "d": "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" }]],
3620
- "pencil": [["path", { "d": "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" }], ["path", { "d": "m15 5 4 4" }]],
3621
- "copy": [["rect", { "width": "14", "height": "14", "x": "8", "y": "8", "rx": "2", "ry": "2" }], ["path", { "d": "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }]],
3622
- "folder-input": [["path", { "d": "M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1" }], ["path", { "d": "M2 13h10" }], ["path", { "d": "m9 16 3-3-3-3" }]],
3623
- "star": [["path", { "d": "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z" }]],
3624
- "star-off": [["path", { "d": "m10.344 4.688 1.181-2.393a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.237 3.152" }], ["path", { "d": "m17.945 17.945.43 2.505a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a8 8 0 0 0 .4-.099" }], ["path", { "d": "m2 2 20 20" }]],
3625
- "share-2": [["circle", { "cx": "18", "cy": "5", "r": "3" }], ["circle", { "cx": "6", "cy": "12", "r": "3" }], ["circle", { "cx": "18", "cy": "19", "r": "3" }], ["line", { "x1": "8.59", "x2": "15.42", "y1": "13.51", "y2": "17.49" }], ["line", { "x1": "15.41", "x2": "8.59", "y1": "6.51", "y2": "10.49" }]],
3626
- "download": [["path", { "d": "M12 15V3" }], ["path", { "d": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }], ["path", { "d": "m7 10 5 5 5-5" }]],
3627
- "upload": [["path", { "d": "M12 3v12" }], ["path", { "d": "m17 8-5-5-5 5" }], ["path", { "d": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }]],
3628
- "columns-3": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }], ["path", { "d": "M9 3v18" }], ["path", { "d": "M15 3v18" }]],
3629
- "settings": [["path", { "d": "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }], ["circle", { "cx": "12", "cy": "12", "r": "3" }]],
3630
- "history": [["path", { "d": "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }], ["path", { "d": "M3 3v5h5" }], ["path", { "d": "M12 7v5l4 2" }]],
3631
- "blocks": [["path", { "d": "M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2" }], ["rect", { "x": "14", "y": "2", "width": "8", "height": "8", "rx": "1" }]],
3632
- "file-text": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5" }], ["path", { "d": "M10 9H8" }], ["path", { "d": "M16 13H8" }], ["path", { "d": "M16 17H8" }]],
3633
- "calendar-clock": [["path", { "d": "M16 14v2.2l1.6 1" }], ["path", { "d": "M16 2v3" }], ["path", { "d": "M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338" }], ["path", { "d": "M3 9h5.859" }], ["path", { "d": "M8 2v3" }], ["circle", { "cx": "16", "cy": "16", "r": "6" }]],
3634
- "list-checks": [["path", { "d": "M13 5h8" }], ["path", { "d": "M13 12h8" }], ["path", { "d": "M13 19h8" }], ["path", { "d": "m3 17 2 2 4-4" }], ["path", { "d": "m3 7 2 2 4-4" }]],
3635
- "bell": [["path", { "d": "M10.268 21a2 2 0 0 0 3.464 0" }], ["path", { "d": "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" }]],
3636
- "door-open": [["path", { "d": "M10 21H2" }], ["path", { "d": "M10 3H7a2 2 0 00-2 2v16" }], ["path", { "d": "M14 12h.01" }], ["path", { "d": "M19 21V5a2 2 0 00-1.675-1.974l-6.163-1.013A1 1 0 0010 3v18a1 1 0 001.124.992z" }], ["path", { "d": "M22 21h-3" }]],
3637
- "inbox": [["polyline", { "points": "22 12 16 12 14 15 10 15 8 12 2 12" }], ["path", { "d": "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" }]],
3638
- "layout-dashboard": [["rect", { "width": "7", "height": "9", "x": "3", "y": "3", "rx": "1" }], ["rect", { "width": "7", "height": "5", "x": "14", "y": "3", "rx": "1" }], ["rect", { "width": "7", "height": "9", "x": "14", "y": "12", "rx": "1" }], ["rect", { "width": "7", "height": "5", "x": "3", "y": "16", "rx": "1" }]],
3639
- "archive-restore": [["rect", { "width": "20", "height": "5", "x": "2", "y": "3", "rx": "1" }], ["path", { "d": "M4 8v11a2 2 0 0 0 2 2h2" }], ["path", { "d": "M20 8v11a2 2 0 0 1-2 2h-2" }], ["path", { "d": "m9 15 3-3 3 3" }], ["path", { "d": "M12 12v9" }]],
3640
- "archive": [["rect", { "width": "20", "height": "5", "x": "2", "y": "3", "rx": "1" }], ["path", { "d": "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8" }], ["path", { "d": "M10 12h4" }]],
3641
- "link-2": [["path", { "d": "M9 17H7A5 5 0 0 1 7 7h2" }], ["path", { "d": "M15 7h2a5 5 0 1 1 0 10h-2" }], ["line", { "x1": "8", "x2": "16", "y1": "12", "y2": "12" }]],
3642
- "layout-grid": [["rect", { "width": "7", "height": "7", "x": "3", "y": "3", "rx": "1" }], ["rect", { "width": "7", "height": "7", "x": "14", "y": "3", "rx": "1" }], ["rect", { "width": "7", "height": "7", "x": "14", "y": "14", "rx": "1" }], ["rect", { "width": "7", "height": "7", "x": "3", "y": "14", "rx": "1" }]],
3643
- "git-merge": [["circle", { "cx": "18", "cy": "18", "r": "3" }], ["circle", { "cx": "6", "cy": "6", "r": "3" }], ["path", { "d": "M6 21V9a9 9 0 0 0 9 9" }]],
3644
- "split": [["path", { "d": "M16 3h5v5" }], ["path", { "d": "M8 3H3v5" }], ["path", { "d": "M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3" }], ["path", { "d": "m15 9 6-6" }]],
3645
- "arrow-up-from-line": [["path", { "d": "m18 9-6-6-6 6" }], ["path", { "d": "M12 3v14" }], ["path", { "d": "M5 21h14" }]],
3646
- "corner-down-right": [["polyline", { "points": "15 10 20 15 15 20" }], ["path", { "d": "M4 4v7a4 4 0 0 0 4 4h12" }]],
3647
- "lock": [["rect", { "width": "18", "height": "11", "x": "3", "y": "11", "rx": "2", "ry": "2" }], ["path", { "d": "M7 11V7a5 5 0 0 1 10 0v4" }]],
3648
- "lock-open": [["rect", { "width": "18", "height": "11", "x": "3", "y": "11", "rx": "2", "ry": "2" }], ["path", { "d": "M7 11V7a5 5 0 0 1 9.9-1" }]],
3649
- "eraser": [["path", { "d": "m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21" }], ["path", { "d": "M22 21H7" }], ["path", { "d": "m5 11 9 9" }]],
3650
- "printer": [["path", { "d": "M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2" }], ["path", { "d": "M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6" }], ["rect", { "x": "6", "y": "14", "width": "12", "height": "8", "rx": "1" }]]
3653
+ "folder-open": FolderOpenIcon,
3654
+ "external-link": ExternalLinkIcon,
3655
+ "link": LinkIcon,
3656
+ "pencil": PencilIcon,
3657
+ "copy": CopyIcon,
3658
+ "folder-input": FolderInputIcon,
3659
+ "star": StarIcon,
3660
+ "star-off": StarOffIcon,
3661
+ "share-2": Share2Icon,
3662
+ "download": DownloadIcon,
3663
+ "upload": UploadIcon,
3664
+ "columns-3": Columns3Icon,
3665
+ "settings": SettingsIcon,
3666
+ "history": HistoryIcon,
3667
+ "blocks": BlocksIcon,
3668
+ "file-text": FileTextIcon,
3669
+ "calendar-clock": CalendarClockIcon,
3670
+ "list-checks": ListChecksIcon,
3671
+ "bell": BellIcon,
3672
+ "door-open": DoorOpenIcon,
3673
+ "inbox": InboxIcon,
3674
+ "layout-dashboard": LayoutDashboardIcon,
3675
+ "archive-restore": ArchiveRestoreIcon,
3676
+ "archive": ArchiveIcon,
3677
+ "link-2": Link2Icon,
3678
+ "layout-grid": LayoutGridIcon,
3679
+ "git-merge": GitMergeIcon,
3680
+ "split": SplitIcon,
3681
+ "arrow-up-from-line": ArrowUpFromLineIcon,
3682
+ "corner-down-right": CornerDownRightIcon,
3683
+ "lock": LockIcon,
3684
+ "lock-open": LockOpenIcon,
3685
+ "eraser": EraserIcon,
3686
+ "printer": PrinterIcon
3651
3687
  };
3652
3688
  function ObjectActionGlyph({ name, ...props }) {
3653
- return /* @__PURE__ */ jsx6(
3654
- "svg",
3655
- {
3656
- xmlns: "http://www.w3.org/2000/svg",
3657
- viewBox: "0 0 24 24",
3658
- fill: "none",
3659
- stroke: "currentColor",
3660
- strokeWidth: 2,
3661
- strokeLinecap: "round",
3662
- strokeLinejoin: "round",
3663
- "aria-hidden": "true",
3664
- "data-object-action-icon": name,
3665
- ...props,
3666
- children: GLYPHS[name].map(([tag, attrs], i) => {
3667
- const El = tag;
3668
- return /* @__PURE__ */ jsx6(El, { ...attrs }, i);
3669
- })
3670
- }
3671
- );
3689
+ const Glyph = GLYPHS[name];
3690
+ return /* @__PURE__ */ jsx6(Glyph, { "data-object-action-icon": name, ...props });
3672
3691
  }
3673
3692
 
3674
3693
  // src/ObjectActionMenuItems.tsx
@@ -4111,7 +4130,7 @@ function nextInWords(page) {
4111
4130
  import { useEffect as useEffect5, useState as useState6 } from "react";
4112
4131
  import { moveConsequence } from "@ai-matrx/records";
4113
4132
  import { useRecordsClient as useRecordsClient6 } from "@ai-matrx/records/react";
4114
- import { Button as Button7, ErrorBox as ErrorBox2, Popover, PopoverContent, PopoverTrigger } from "@ai-matrx/design-system";
4133
+ import { Button as Button7, ErrorBox as ErrorBox2, Popover, PopoverContent, PopoverTrigger, displayId } from "@ai-matrx/design-system";
4115
4134
  import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
4116
4135
  function WhereItLives({ tableId, knownOrganizationName, onMoved, variant = "header", openAsked = 0 }) {
4117
4136
  const client = useRecordsClient6();
@@ -4307,7 +4326,7 @@ function WhereItLives({ tableId, knownOrganizationName, onMoved, variant = "head
4307
4326
  function sharedNameAddress(to, all) {
4308
4327
  const name = to.name.trim();
4309
4328
  if (!all.some((other) => other.id !== to.id && other.name.trim() === name)) return null;
4310
- return to.slug ?? to.id.slice(0, 8);
4329
+ return to.slug ?? displayId(to.id);
4311
4330
  }
4312
4331
  function SharedNameAddress({
4313
4332
  to,
@@ -5098,4 +5117,4 @@ export {
5098
5117
  shapesOfSource,
5099
5118
  SaveToTable
5100
5119
  };
5101
- //# sourceMappingURL=chunk-NDYZROTI.js.map
5120
+ //# sourceMappingURL=chunk-5RNBIP6J.js.map