@ai-matrx/records-ui 0.113.33 → 0.113.34
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 +13 -0
- package/dist/index.cjs +8 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +8 -4
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.d.cts +6 -1
- package/dist/pickers.d.ts +6 -1
- package/dist/pickers.js +8 -4
- package/dist/pickers.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records-ui
|
|
2
2
|
|
|
3
|
+
## 0.113.34
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/records-ui/v0.113.33..npm/records-ui/v0.113.34 -- apps/shared/records-ui`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
3
9
|
## 0.113.33
|
|
4
10
|
### the first page and a person's look come from records
|
|
5
11
|
|
|
@@ -12,6 +18,13 @@ package's grid look bound (`bindFirstPageCodec`, `bindViewCodec`) — no same-na
|
|
|
12
18
|
|
|
13
19
|
**Consumer action:** none; same names, same signatures (`DefaultSort` is records' `ColumnSort`).
|
|
14
20
|
|
|
21
|
+
### HeldChangeDecision names what approving does next
|
|
22
|
+
|
|
23
|
+
New optional prop `approveLabel` (default "Approve"): a host whose approval also moves something on says so —
|
|
24
|
+
Workflow Studio's paused run passes "Approve and continue".
|
|
25
|
+
|
|
26
|
+
**Consumer action:** none (optional prop).
|
|
27
|
+
|
|
15
28
|
## 0.113.32
|
|
16
29
|
### saved questions come from records/questions
|
|
17
30
|
|
package/dist/index.cjs
CHANGED
|
@@ -50926,10 +50926,14 @@ var import_react295 = require("react");
|
|
|
50926
50926
|
var import_react296 = require("@ai-matrx/records/react");
|
|
50927
50927
|
var import_design_system150 = require("@ai-matrx/design-system");
|
|
50928
50928
|
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
50929
|
-
function HeldChangeDecision({ dataSource, userId, organizationId, approvalId, onDecided }) {
|
|
50930
|
-
return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(import_react296.RecordsProvider, { config: { dataSource, actor: personActor(userId), organizationId }, children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(Decision, { approvalId, onDecided }) });
|
|
50929
|
+
function HeldChangeDecision({ dataSource, userId, organizationId, approvalId, onDecided, approveLabel }) {
|
|
50930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(import_react296.RecordsProvider, { config: { dataSource, actor: personActor(userId), organizationId }, children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(Decision, { approvalId, onDecided, approveLabel: approveLabel ?? "Approve" }) });
|
|
50931
50931
|
}
|
|
50932
|
-
function Decision({
|
|
50932
|
+
function Decision({
|
|
50933
|
+
approvalId,
|
|
50934
|
+
onDecided,
|
|
50935
|
+
approveLabel
|
|
50936
|
+
}) {
|
|
50933
50937
|
const client = (0, import_react296.useRecordsClient)();
|
|
50934
50938
|
const [may, setMay] = (0, import_react295.useState)(null);
|
|
50935
50939
|
const [busy, setBusy] = (0, import_react295.useState)(null);
|
|
@@ -50959,7 +50963,7 @@ function Decision({ approvalId, onDecided }) {
|
|
|
50959
50963
|
if (may === null) return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("p", { className: "text-xs text-muted-foreground", children: "Checking who can decide\u2026" });
|
|
50960
50964
|
return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: "flex flex-col gap-1.5", children: [
|
|
50961
50965
|
may ? /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: "flex gap-2", children: [
|
|
50962
|
-
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)(import_design_system150.Button, { type: "button", size: "sm", disabled: busy !== null, onClick: () => void decide(true), children: busy === "approve" ? "Approving\u2026" :
|
|
50966
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)(import_design_system150.Button, { type: "button", size: "sm", disabled: busy !== null, onClick: () => void decide(true), children: busy === "approve" ? "Approving\u2026" : approveLabel }),
|
|
50963
50967
|
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)(import_design_system150.Button, { type: "button", size: "sm", variant: "outline", disabled: busy !== null, onClick: () => void decide(false), children: busy === "refuse" ? "Refusing\u2026" : "Refuse" })
|
|
50964
50968
|
] }) : !error && /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("p", { className: "text-xs text-muted-foreground", children: "An owner or admin of this organization decides this." }),
|
|
50965
50969
|
error ? /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(RefusalLine, { error }) : null
|