@ai-matrx/records-ui 0.116.98 → 0.116.99
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 +16 -2
- package/dist/index.cjs +22 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -11
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.116.99
|
|
4
|
+
|
|
5
|
+
- **Undo after Archive in every grid (2026-10-23, Matrx 2 walker).** Archiving a record from the classic grid (no `grid: "merged"`) now puts the step on the grid's one undo stack, as the merged grid did: the archived notice carries Undo, and Undo / Cmd-Z restore it through the store's restore door. Guard: `src/undo-after-archive-in-every-grid.test.tsx` (red on the classic grid before). Consumer action: none.
|
|
6
|
+
|
|
3
7
|
## 0.116.98
|
|
4
8
|
|
|
5
|
-
|
|
6
|
-
|
|
9
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
10
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
11
|
+
Diff: `git diff bbcbc0da70 0a2b8c9356 -- apps/shared/records-ui/src`
|
|
12
|
+
|
|
13
|
+
Changed shipped source files (7):
|
|
14
|
+
- `apps/shared/records-ui/src/entityRefEntry.ts`
|
|
15
|
+
- `apps/shared/records-ui/src/htmlFrameEntry.ts`
|
|
16
|
+
- `apps/shared/records-ui/src/index.ts`
|
|
17
|
+
- `apps/shared/records-ui/src/objectActions.ts`
|
|
18
|
+
- `apps/shared/records-ui/src/pickers.ts`
|
|
19
|
+
- `apps/shared/records-ui/src/skeletonEntry.ts`
|
|
20
|
+
- `apps/shared/records-ui/src/tableShape.ts`
|
|
7
21
|
|
|
8
22
|
## 0.116.97
|
|
9
23
|
|
package/dist/index.cjs
CHANGED
|
@@ -37058,7 +37058,21 @@ function GridBody({
|
|
|
37058
37058
|
archived,
|
|
37059
37059
|
" is archived. Nothing was destroyed \u2014 it is in this table\u2019s Archived items, where Restore brings it back."
|
|
37060
37060
|
] }),
|
|
37061
|
-
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
37061
|
+
undo.canUndo ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
37062
|
+
import_design_system102.Button,
|
|
37063
|
+
{
|
|
37064
|
+
size: "sm",
|
|
37065
|
+
variant: "outline",
|
|
37066
|
+
className: "ml-auto h-6",
|
|
37067
|
+
"data-records-undo-now": "",
|
|
37068
|
+
onClick: () => {
|
|
37069
|
+
setArchived(null);
|
|
37070
|
+
void undo.undo();
|
|
37071
|
+
},
|
|
37072
|
+
children: "Undo"
|
|
37073
|
+
}
|
|
37074
|
+
) : null,
|
|
37075
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_design_system102.Button, { size: "sm", variant: "ghost", className: undo.canUndo ? "h-6" : "ml-auto h-6", onClick: () => setArchived(null), children: "Dismiss" })
|
|
37062
37076
|
]
|
|
37063
37077
|
}
|
|
37064
37078
|
) : null,
|
|
@@ -37374,16 +37388,13 @@ function GridBody({
|
|
|
37374
37388
|
setDeleteBusy(false);
|
|
37375
37389
|
setDeleting(null);
|
|
37376
37390
|
if (failed) return;
|
|
37377
|
-
|
|
37378
|
-
|
|
37379
|
-
|
|
37380
|
-
|
|
37381
|
-
|
|
37382
|
-
|
|
37383
|
-
|
|
37384
|
-
} else {
|
|
37385
|
-
setArchived(name);
|
|
37386
|
-
}
|
|
37391
|
+
undo.push({
|
|
37392
|
+
label: `Archived ${name}`,
|
|
37393
|
+
cells: [],
|
|
37394
|
+
archived: [row.id]
|
|
37395
|
+
});
|
|
37396
|
+
if (merged) sheetController.current?.focusGrid();
|
|
37397
|
+
else setArchived(name);
|
|
37387
37398
|
}
|
|
37388
37399
|
}
|
|
37389
37400
|
)
|