@ai-matrx/records-ui 0.116.13 → 0.116.15
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 +11 -1
- package/dist/{SaveToTable-QZCRFD5Q.js → SaveToTable-54FVMGKL.js} +3 -3
- package/dist/{chunk-NE72B4OK.js → chunk-E5HKO5LT.js} +14 -3
- package/dist/chunk-E5HKO5LT.js.map +1 -0
- package/dist/{chunk-RQL7QRGR.js → chunk-TF3JYYJN.js} +1 -1
- package/dist/chunk-TF3JYYJN.js.map +1 -0
- package/dist/{chunk-HUPBD4JF.js → chunk-YIGEIVU7.js} +2 -2
- package/dist/helpers.d.cts +9 -0
- package/dist/helpers.d.ts +9 -0
- package/dist/index.cjs +125 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +119 -19
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +13 -0
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +2 -2
- package/package.json +4 -4
- package/dist/chunk-NE72B4OK.js.map +0 -1
- package/dist/chunk-RQL7QRGR.js.map +0 -1
- /package/dist/{SaveToTable-QZCRFD5Q.js.map → SaveToTable-54FVMGKL.js.map} +0 -0
- /package/dist/{chunk-HUPBD4JF.js.map → chunk-YIGEIVU7.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -14,11 +14,21 @@
|
|
|
14
14
|
- Tests: `vitest.setup.ts` gives jsdom a no-op `performance.mark` / `measure`.
|
|
15
15
|
- **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`.
|
|
16
16
|
|
|
17
|
-
## 0.116.
|
|
17
|
+
## 0.116.15
|
|
18
18
|
|
|
19
19
|
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.
|
|
20
20
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
|
|
21
21
|
|
|
22
|
+
## 0.116.13
|
|
23
|
+
|
|
24
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
25
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
26
|
+
Diff: `git diff ac7b396045 803a1d7fd1 -- apps/shared/records-ui/src`
|
|
27
|
+
|
|
28
|
+
Changed shipped source files (2):
|
|
29
|
+
- `apps/shared/records-ui/src/AddRowSettings.tsx`
|
|
30
|
+
- `apps/shared/records-ui/src/ChartBlock.tsx`
|
|
31
|
+
|
|
22
32
|
## 0.116.12
|
|
23
33
|
|
|
24
34
|
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
SAVE_TO_TABLE_TYPES,
|
|
5
5
|
SaveToTable,
|
|
6
6
|
shapesOfSource
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YIGEIVU7.js";
|
|
8
8
|
import "./chunk-DDTOL35E.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-TF3JYYJN.js";
|
|
10
10
|
import "./chunk-TIZHA6VK.js";
|
|
11
11
|
import "./chunk-IUUZVQZD.js";
|
|
12
12
|
import "./chunk-MUK63ANA.js";
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
SaveToTable,
|
|
18
18
|
shapesOfSource
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=SaveToTable-
|
|
20
|
+
//# sourceMappingURL=SaveToTable-54FVMGKL.js.map
|
|
@@ -35,6 +35,7 @@ import {
|
|
|
35
35
|
isValueSet,
|
|
36
36
|
looksLikeId,
|
|
37
37
|
recordName,
|
|
38
|
+
recordNameIn,
|
|
38
39
|
recordVersions_exports,
|
|
39
40
|
refusalIsMissingInput,
|
|
40
41
|
refusalSentence,
|
|
@@ -49,7 +50,7 @@ import {
|
|
|
49
50
|
useRecordsUi,
|
|
50
51
|
useTableRights,
|
|
51
52
|
withoutInternalCodes
|
|
52
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-TF3JYYJN.js";
|
|
53
54
|
import {
|
|
54
55
|
kindItemWords,
|
|
55
56
|
kindLabel,
|
|
@@ -4348,7 +4349,7 @@ import { AlchemyMenu } from "@ai-matrx/alchemy/react";
|
|
|
4348
4349
|
import { OutboundLink as OutboundLink5 } from "@ai-matrx/kit/outbound-react";
|
|
4349
4350
|
import { humanizeIdentifier } from "@ai-matrx/kit/text-case";
|
|
4350
4351
|
import { jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4351
|
-
var SaveToTable = lazy(() => import("./SaveToTable-
|
|
4352
|
+
var SaveToTable = lazy(() => import("./SaveToTable-54FVMGKL.js").then((m) => ({ default: m.SaveToTable })));
|
|
4352
4353
|
var LONGEST_READ = 5e5;
|
|
4353
4354
|
var FENCE = /^```(?:json)?[ \t]*\r?\n([\s\S]*?)\r?\n?```$/;
|
|
4354
4355
|
function isPlainObject(v) {
|
|
@@ -9001,6 +9002,10 @@ function buttonPressWords(label, pressed) {
|
|
|
9001
9002
|
const status = pressed.status ?? "ran";
|
|
9002
9003
|
return [`${pressed.automation ?? label}: ${status}.`, pressed.says].filter(Boolean).join(" ");
|
|
9003
9004
|
}
|
|
9005
|
+
function addRowWords(label, table, document2) {
|
|
9006
|
+
const name = recordNameIn(table, document2, "");
|
|
9007
|
+
return name !== "" ? `${label}: added \u201C${name}\u201D and opened it.` : `${label}: added to ${tableName(table)} and opened it.`;
|
|
9008
|
+
}
|
|
9004
9009
|
var POLL_EVERY_MS = 1200;
|
|
9005
9010
|
var POLL_FOR_MS = 12e4;
|
|
9006
9011
|
var RUN_BOOKKEEPING = /* @__PURE__ */ new Set(["run_id", "conversation_id"]);
|
|
@@ -9082,6 +9087,12 @@ function ButtonValue({ field: field2, recordId, inCell }) {
|
|
|
9082
9087
|
here.open(pressed.record_id);
|
|
9083
9088
|
return setSaid({ kind: "ran", says: `${b.label}: a row was added and opened.` });
|
|
9084
9089
|
}
|
|
9090
|
+
if (host.openRecord && addsTo.data) {
|
|
9091
|
+
const made = addsTo.data;
|
|
9092
|
+
host.openRecord({ table: made, recordId: pressed.record_id });
|
|
9093
|
+
const read = await client.recordRead({ record_id: pressed.record_id });
|
|
9094
|
+
return setSaid({ kind: "ran", says: addRowWords(b.label, made, read.ok ? read.data.document : void 0) });
|
|
9095
|
+
}
|
|
9085
9096
|
const href = addsTo.data ? host.hrefForRecord?.({ table: addsTo.data, recordId: pressed.record_id }) : void 0;
|
|
9086
9097
|
if (href) {
|
|
9087
9098
|
setOpening(true);
|
|
@@ -11708,4 +11719,4 @@ export {
|
|
|
11708
11719
|
RecordNameText,
|
|
11709
11720
|
HeldChangeDecision
|
|
11710
11721
|
};
|
|
11711
|
-
//# sourceMappingURL=chunk-
|
|
11722
|
+
//# sourceMappingURL=chunk-E5HKO5LT.js.map
|