@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 +21 -0
- package/dist/{SaveToTable-HQREESNE.js → SaveToTable-DQXFHYHS.js} +2 -2
- package/dist/{chunk-NDYZROTI.js → chunk-5RNBIP6J.js} +75 -56
- package/dist/{chunk-NDYZROTI.js.map → chunk-5RNBIP6J.js.map} +1 -1
- package/dist/{chunk-D2FZEAYO.js → chunk-AZZA7DQ4.js} +679 -558
- package/dist/chunk-AZZA7DQ4.js.map +1 -0
- package/dist/index.cjs +6097 -5996
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +184 -203
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +724 -599
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +1 -1
- package/package.json +6 -6
- package/dist/chunk-D2FZEAYO.js.map +0 -1
- /package/dist/{SaveToTable-HQREESNE.js.map → SaveToTable-DQXFHYHS.js.map} +0 -0
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-
|
|
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-
|
|
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":
|
|
3618
|
-
"external-link":
|
|
3619
|
-
"link":
|
|
3620
|
-
"pencil":
|
|
3621
|
-
"copy":
|
|
3622
|
-
"folder-input":
|
|
3623
|
-
"star":
|
|
3624
|
-
"star-off":
|
|
3625
|
-
"share-2":
|
|
3626
|
-
"download":
|
|
3627
|
-
"upload":
|
|
3628
|
-
"columns-3":
|
|
3629
|
-
"settings":
|
|
3630
|
-
"history":
|
|
3631
|
-
"blocks":
|
|
3632
|
-
"file-text":
|
|
3633
|
-
"calendar-clock":
|
|
3634
|
-
"list-checks":
|
|
3635
|
-
"bell":
|
|
3636
|
-
"door-open":
|
|
3637
|
-
"inbox":
|
|
3638
|
-
"layout-dashboard":
|
|
3639
|
-
"archive-restore":
|
|
3640
|
-
"archive":
|
|
3641
|
-
"link-2":
|
|
3642
|
-
"layout-grid":
|
|
3643
|
-
"git-merge":
|
|
3644
|
-
"split":
|
|
3645
|
-
"arrow-up-from-line":
|
|
3646
|
-
"corner-down-right":
|
|
3647
|
-
"lock":
|
|
3648
|
-
"lock-open":
|
|
3649
|
-
"eraser":
|
|
3650
|
-
"printer":
|
|
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
|
-
|
|
3654
|
-
|
|
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
|
|
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-
|
|
5120
|
+
//# sourceMappingURL=chunk-5RNBIP6J.js.map
|