@ai-matrx/records-ui 0.116.38 → 0.116.39
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 +12 -1
- package/dist/index.cjs +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -28,11 +28,22 @@
|
|
|
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.39
|
|
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.38
|
|
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 6eb91fd368 a9d9a9e3a6 -- apps/shared/records-ui/src`
|
|
41
|
+
|
|
42
|
+
Changed shipped source files (3):
|
|
43
|
+
- `apps/shared/records-ui/src/Grid.tsx`
|
|
44
|
+
- `apps/shared/records-ui/src/ViewSwitcher.tsx`
|
|
45
|
+
- `apps/shared/records-ui/src/gridBulk.tsx`
|
|
46
|
+
|
|
36
47
|
## 0.116.37
|
|
37
48
|
|
|
38
49
|
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
package/dist/index.cjs
CHANGED
|
@@ -32858,6 +32858,7 @@ var embeddedPageAskKey = (tableId, search, sorts, filter, pageDoorViewId) => JSO
|
|
|
32858
32858
|
var NO_SUMMARIES = Object.freeze({});
|
|
32859
32859
|
var NO_DRILL_FIELDS = Object.freeze([]);
|
|
32860
32860
|
var rowIdOf = (row) => row.id;
|
|
32861
|
+
var ACTIONS_GHOST_ROW = { id: "", document: {} };
|
|
32861
32862
|
var NO_REREAD = () => {
|
|
32862
32863
|
};
|
|
32863
32864
|
var VALUE_FILTER_UI = { allowNegation: true };
|
|
@@ -34161,9 +34162,9 @@ function GridBody({
|
|
|
34161
34162
|
() => /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(ActionsHeaderControls, { ...mayManageActions ? { onAddColumn: () => addColumnNow.current() } : {} }),
|
|
34162
34163
|
[mayManageActions]
|
|
34163
34164
|
);
|
|
34164
|
-
const
|
|
34165
|
-
(row) => /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_jsx_runtime111.Fragment, { children: [
|
|
34166
|
-
canWrite &&
|
|
34165
|
+
const rowStrip = (0, import_react182.useCallback)(
|
|
34166
|
+
(row, writable) => /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_jsx_runtime111.Fragment, { children: [
|
|
34167
|
+
canWrite && writable ? tableActions2.runnable.map((action3) => /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
34167
34168
|
ActionButton,
|
|
34168
34169
|
{
|
|
34169
34170
|
action: action3,
|
|
@@ -34213,7 +34214,7 @@ function GridBody({
|
|
|
34213
34214
|
children: "Duplicate"
|
|
34214
34215
|
}
|
|
34215
34216
|
) : null,
|
|
34216
|
-
canWrite &&
|
|
34217
|
+
canWrite && writable ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
34217
34218
|
import_design_system92.Button,
|
|
34218
34219
|
{
|
|
34219
34220
|
size: "sm",
|
|
@@ -34225,8 +34226,9 @@ function GridBody({
|
|
|
34225
34226
|
) : null
|
|
34226
34227
|
] }),
|
|
34227
34228
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- `hasTalk`/`hasAgent` stand for the host ports the JSX reads; handlers run through `rowActionsNow`.
|
|
34228
|
-
[canWrite,
|
|
34229
|
+
[canWrite, tableActions2.runnable, tableActions2.agent, runner.busy, hasTalk, hasAgent, editable, rights.write, readOnly]
|
|
34229
34230
|
);
|
|
34231
|
+
const rowActions = (0, import_react182.useCallback)((row) => rowStrip(row, row === ACTIONS_GHOST_ROW || mayWriteRow(row.id)), [rowStrip, mayWriteRow]);
|
|
34230
34232
|
const headerHeld = (0, import_react182.useRef)(/* @__PURE__ */ new Map());
|
|
34231
34233
|
const menuLatest = (0, import_react182.useRef)(/* @__PURE__ */ new Map());
|
|
34232
34234
|
const addColumnDef = (0, import_react182.useMemo)(() => addColumnColumn(() => addColumnNow.current()), []);
|
|
@@ -34250,7 +34252,7 @@ function GridBody({
|
|
|
34250
34252
|
() => offersRowActions ? [...columns, { id: "custom-actions", header: merged ? /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("span", { className: "inline-flex items-center gap-0.5", children: [
|
|
34251
34253
|
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("span", { children: "Actions" }),
|
|
34252
34254
|
actionsHeader
|
|
34253
|
-
] }) : "Actions", label: "Actions", reorderable: false, sortable: false, filter: false, customActions: rowActions }] : columns,
|
|
34255
|
+
] }) : "Actions", label: "Actions", reorderable: false, sortable: false, filter: false, customActions: rowActions, customActionsGhostRow: ACTIONS_GHOST_ROW }] : columns,
|
|
34254
34256
|
[columns, offersRowActions, merged, actionsHeader, rowActions]
|
|
34255
34257
|
);
|
|
34256
34258
|
const [localColumns, setLocalColumns] = (0, import_react182.useState)(
|