@ai-matrx/records-ui 0.116.41 → 0.116.42
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 +10 -1
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -28,11 +28,20 @@
|
|
|
28
28
|
- Tests: `vitest.setup.ts` gives jsdom a no-op `performance.mark` / `measure`.
|
|
29
29
|
- **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`.
|
|
30
30
|
|
|
31
|
-
## 0.116.
|
|
31
|
+
## 0.116.42
|
|
32
32
|
|
|
33
33
|
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.
|
|
34
34
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
|
|
35
35
|
|
|
36
|
+
## 0.116.41
|
|
37
|
+
|
|
38
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
39
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
40
|
+
Diff: `git diff 374feaffcd cc88c09f94 -- apps/shared/records-ui/src`
|
|
41
|
+
|
|
42
|
+
Changed shipped source files (1):
|
|
43
|
+
- `apps/shared/records-ui/src/looks/htmlFrame.tsx`
|
|
44
|
+
|
|
36
45
|
## 0.116.40
|
|
37
46
|
|
|
38
47
|
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
package/dist/index.cjs
CHANGED
|
@@ -56943,6 +56943,9 @@ function CsvButton({ name, fields, rows }) {
|
|
|
56943
56943
|
if (rows.length === 0) return null;
|
|
56944
56944
|
return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(import_design_system158.Button, { size: "sm", variant: "ghost", className: "h-7 text-xs", onClick: () => downloadCsv(name, fields, rows), "data-records-page-csv": "", children: "CSV" });
|
|
56945
56945
|
}
|
|
56946
|
+
function sameRows(had, rows) {
|
|
56947
|
+
return had === rows || had !== void 0 && had.length === 0 && rows.length === 0;
|
|
56948
|
+
}
|
|
56946
56949
|
function PageCanvas({ blocks, charts, run, subject, viewerUserId, editing, canEdit, onSave, onChart }) {
|
|
56947
56950
|
const [selected, setSelected] = (0, import_react317.useState)({});
|
|
56948
56951
|
const [listRows, setListRows] = (0, import_react317.useState)({});
|
|
@@ -56990,7 +56993,7 @@ function PageCanvas({ blocks, charts, run, subject, viewerUserId, editing, canEd
|
|
|
56990
56993
|
viewerUserId,
|
|
56991
56994
|
selected,
|
|
56992
56995
|
onSelect: (listId, recordId) => setSelected((s) => ({ ...s, [listId]: recordId })),
|
|
56993
|
-
onRows: (listId, rows) => setListRows((r) => r[listId]
|
|
56996
|
+
onRows: (listId, rows) => setListRows((r) => sameRows(r[listId], rows) ? r : { ...r, [listId]: rows }),
|
|
56994
56997
|
listRows,
|
|
56995
56998
|
listOf,
|
|
56996
56999
|
extraFor: filtersFor,
|
|
@@ -57182,6 +57185,7 @@ var DEFAULT_COLUMNS = 4;
|
|
|
57182
57185
|
function shownColumns(all, columns) {
|
|
57183
57186
|
return columns && columns.length > 0 ? columns.map((k) => all.find((f) => f.key === k)).filter((f) => !!f) : [...all].sort((a, b) => (a.sort ?? 100) - (b.sort ?? 100)).slice(0, DEFAULT_COLUMNS);
|
|
57184
57187
|
}
|
|
57188
|
+
var NO_ROWS4 = [];
|
|
57185
57189
|
function useElementRows(block, viewerUserId, extra, mineOn) {
|
|
57186
57190
|
const door = useInterfaceDoor();
|
|
57187
57191
|
const member = useMemberRows(block, viewerUserId, extra, mineOn, !door);
|
|
@@ -57202,7 +57206,7 @@ function useElementRows(block, viewerUserId, extra, mineOn) {
|
|
|
57202
57206
|
}
|
|
57203
57207
|
const { q, page } = member;
|
|
57204
57208
|
return {
|
|
57205
|
-
rows: q.nobodyIsMe ?
|
|
57209
|
+
rows: q.nobodyIsMe ? NO_ROWS4 : page.data?.rows ?? NO_ROWS4,
|
|
57206
57210
|
all: q.all,
|
|
57207
57211
|
total: q.nobodyIsMe ? 0 : page.data?.total ?? null,
|
|
57208
57212
|
loading: page.loading,
|