@ai-matrx/records-ui 0.116.26 → 0.116.27
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 +15 -1
- package/dist/{chunk-4NJUW3VM.js → chunk-6GJLCWSO.js} +16 -7
- package/dist/chunk-6GJLCWSO.js.map +1 -0
- package/dist/index.cjs +15 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/pickers.cjs +15 -6
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-4NJUW3VM.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -24,11 +24,25 @@
|
|
|
24
24
|
- Tests: `vitest.setup.ts` gives jsdom a no-op `performance.mark` / `measure`.
|
|
25
25
|
- **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`.
|
|
26
26
|
|
|
27
|
-
## 0.116.
|
|
27
|
+
## 0.116.27
|
|
28
28
|
|
|
29
29
|
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.
|
|
30
30
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
|
|
31
31
|
|
|
32
|
+
## 0.116.26
|
|
33
|
+
|
|
34
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
35
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
36
|
+
Diff: `git diff bc2243b756 0eb2f8603b -- apps/shared/records-ui/src`
|
|
37
|
+
|
|
38
|
+
Changed shipped source files (6):
|
|
39
|
+
- `apps/shared/records-ui/src/FloatingRefusal.tsx`
|
|
40
|
+
- `apps/shared/records-ui/src/FormRunner.tsx`
|
|
41
|
+
- `apps/shared/records-ui/src/embeddedLook.tsx`
|
|
42
|
+
- `apps/shared/records-ui/src/gridColumns.tsx`
|
|
43
|
+
- `apps/shared/records-ui/src/gridEditing.tsx`
|
|
44
|
+
- `apps/shared/records-ui/src/orgTree.ts`
|
|
45
|
+
|
|
32
46
|
## 0.116.25
|
|
33
47
|
|
|
34
48
|
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
@@ -2762,6 +2762,15 @@ function RelationPicker({ field: field2, value, onChange, disabled, id, classNam
|
|
|
2762
2762
|
);
|
|
2763
2763
|
}
|
|
2764
2764
|
|
|
2765
|
+
// src/readableLink.ts
|
|
2766
|
+
function readableLink(raw) {
|
|
2767
|
+
try {
|
|
2768
|
+
return decodeURI(raw).replace(/%40/gi, "@");
|
|
2769
|
+
} catch {
|
|
2770
|
+
return raw;
|
|
2771
|
+
}
|
|
2772
|
+
}
|
|
2773
|
+
|
|
2765
2774
|
// src/buttonCell.tsx
|
|
2766
2775
|
import { useContext as useContext3, useEffect as useEffect20, useRef as useRef14, useState as useState28 } from "react";
|
|
2767
2776
|
import { Button as Button16, Dialog as Dialog3, ErrorBox as ErrorBox2, DialogContent as DialogContent3, DialogDescription, DialogHeader as DialogHeader3, DialogTitle as DialogTitle3, Popover as Popover4, PopoverContent as PopoverContent4, PopoverTrigger as PopoverTrigger4, cn as cn18 } from "@ai-matrx/design-system";
|
|
@@ -3649,7 +3658,7 @@ function RatingStars({
|
|
|
3649
3658
|
function rich(id, text, raw, format) {
|
|
3650
3659
|
switch (id) {
|
|
3651
3660
|
case "email":
|
|
3652
|
-
return /* @__PURE__ */ jsx19("a", { href: `mailto:${text}`, className: LINK, onClick: own2, children: /* @__PURE__ */ jsx19("span", { className: "truncate", children: text }) });
|
|
3661
|
+
return /* @__PURE__ */ jsx19("a", { href: `mailto:${text}`, className: LINK, onClick: own2, children: /* @__PURE__ */ jsx19("span", { className: "truncate", children: readableLink(text) }) });
|
|
3653
3662
|
case "url":
|
|
3654
3663
|
return /* @__PURE__ */ jsx19(OutboundLink3, { href: text.includes("://") ? text : `https://${text}`, className: LINK, onClick: own2, children: /* @__PURE__ */ jsx19("span", { className: "truncate", children: text }) });
|
|
3655
3664
|
case "phone":
|
|
@@ -4928,7 +4937,7 @@ function Scalar({ value, keyName, dense }) {
|
|
|
4928
4937
|
if (isImageUrl(text, keyName)) return /* @__PURE__ */ jsx26(Thumb, { src: text, size: dense ? "sm" : "md" });
|
|
4929
4938
|
if (isUrl(text)) return /* @__PURE__ */ jsx26(LinkChip, { href: text, dense });
|
|
4930
4939
|
if (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(text)) {
|
|
4931
|
-
return /* @__PURE__ */ jsx26("a", { href: `mailto:${text}`, onClick: stop, className: "text-primary underline-offset-2 hover:underline", children: text });
|
|
4940
|
+
return /* @__PURE__ */ jsx26("a", { href: `mailto:${text}`, onClick: stop, className: "text-primary underline-offset-2 hover:underline", children: readableLink(text) });
|
|
4932
4941
|
}
|
|
4933
4942
|
const date = dateWords(text);
|
|
4934
4943
|
if (date) return /* @__PURE__ */ jsx26("span", { title: text, children: date });
|
|
@@ -5237,7 +5246,7 @@ function renderValue(field2, value, document2, labels, stillWaitingFor, look, ro
|
|
|
5237
5246
|
{
|
|
5238
5247
|
className: "inline-flex min-w-0 max-w-full items-center gap-1 rounded-md border border-border bg-muted/60 px-1.5 py-0.5 text-[11px] text-foreground hover:bg-accent",
|
|
5239
5248
|
href,
|
|
5240
|
-
title: value,
|
|
5249
|
+
title: readableLink(value),
|
|
5241
5250
|
"data-records-link-chip": "",
|
|
5242
5251
|
onClick: (event) => event.stopPropagation(),
|
|
5243
5252
|
children: [
|
|
@@ -5261,7 +5270,7 @@ function renderValue(field2, value, document2, labels, stillWaitingFor, look, ro
|
|
|
5261
5270
|
);
|
|
5262
5271
|
}
|
|
5263
5272
|
if (kind === "email" && typeof value === "string") {
|
|
5264
|
-
return /* @__PURE__ */ jsx27("a", { className: "truncate text-primary underline-offset-2 hover:underline", href: `mailto:${value}`, children: value });
|
|
5273
|
+
return /* @__PURE__ */ jsx27("a", { className: "truncate text-primary underline-offset-2 hover:underline", href: `mailto:${value}`, children: readableLink(value) });
|
|
5265
5274
|
}
|
|
5266
5275
|
if (typeof value === "boolean") {
|
|
5267
5276
|
return /* @__PURE__ */ jsx27("span", { className: kind === "checkbox" ? "text-sm" : "", title: value ? "Yes" : "No", children: value ? "\u2713" : "\u2014" });
|
|
@@ -9491,7 +9500,7 @@ import { OutboundLink as OutboundLink7 } from "@ai-matrx/kit/outbound-react";
|
|
|
9491
9500
|
import { openOutbound as openOutbound2 } from "@ai-matrx/kit/outbound";
|
|
9492
9501
|
import { Fragment as Fragment13, jsx as jsx38, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
9493
9502
|
function buttonPressWords(label, pressed) {
|
|
9494
|
-
if (pressed.do === "open_url") return `${label} opened ${pressed.url}`;
|
|
9503
|
+
if (pressed.do === "open_url") return `${label} opened ${readableLink(pressed.url)}`;
|
|
9495
9504
|
if (pressed.do === "add_row") return `${label}: a row was added.`;
|
|
9496
9505
|
if (pressed.do === "run_action") {
|
|
9497
9506
|
const n = Number(pressed.result?.ran ?? 1);
|
|
@@ -9705,7 +9714,7 @@ function ButtonValue({ field: field2, recordId, inCell, beforeSave }) {
|
|
|
9705
9714
|
said2.value ? /* @__PURE__ */ jsx38(StructuredValueView, { structured: said2.value, label: b.label }) : null,
|
|
9706
9715
|
said2.says,
|
|
9707
9716
|
" ",
|
|
9708
|
-
said2.link ? /* @__PURE__ */ jsx38(OutboundLink7, { href: said2.link, className: "text-primary underline", children: said2.link }) : null
|
|
9717
|
+
said2.link ? /* @__PURE__ */ jsx38(OutboundLink7, { href: said2.link, className: "text-primary underline", children: readableLink(said2.link) }) : null
|
|
9709
9718
|
] }) : null,
|
|
9710
9719
|
said2?.kind === "needs" ? /* @__PURE__ */ jsxs34(Fragment13, { children: [
|
|
9711
9720
|
/* @__PURE__ */ jsx38("p", { children: said2.says }),
|
|
@@ -12233,4 +12242,4 @@ export {
|
|
|
12233
12242
|
RecordNameText,
|
|
12234
12243
|
HeldChangeDecision
|
|
12235
12244
|
};
|
|
12236
|
-
//# sourceMappingURL=chunk-
|
|
12245
|
+
//# sourceMappingURL=chunk-6GJLCWSO.js.map
|