@ai-matrx/records-ui 0.116.95 → 0.116.97
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 +21 -1
- package/dist/{SaveToTable-RV553LQL.js → SaveToTable-GYVIFMJC.js} +3 -3
- package/dist/{chunk-DTYCAGIK.js → chunk-IEVLSGJZ.js} +30 -19
- package/dist/chunk-IEVLSGJZ.js.map +1 -0
- package/dist/{chunk-A5XXEX6A.js → chunk-PO7UMIDY.js} +2 -2
- package/dist/{chunk-HEPOU6ZX.js → chunk-TABDUUEC.js} +12 -10
- package/dist/chunk-TABDUUEC.js.map +1 -0
- package/dist/entity-ref.cjs +16 -15
- package/dist/entity-ref.cjs.map +1 -1
- package/dist/entity-ref.js +12 -11
- package/dist/entity-ref.js.map +1 -1
- package/dist/index.cjs +166 -134
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +173 -154
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +42 -29
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-DTYCAGIK.js.map +0 -1
- package/dist/chunk-HEPOU6ZX.js.map +0 -1
- /package/dist/{SaveToTable-RV553LQL.js.map → SaveToTable-GYVIFMJC.js.map} +0 -0
- /package/dist/{chunk-A5XXEX6A.js.map → chunk-PO7UMIDY.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.116.
|
|
3
|
+
## 0.116.97
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
|
|
7
7
|
|
|
8
|
+
## 0.116.96
|
|
9
|
+
|
|
10
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
11
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
12
|
+
Diff: `git diff a2d79d17eb 720a66aba9 -- apps/shared/records-ui/src`
|
|
13
|
+
|
|
14
|
+
Changed shipped source files (2):
|
|
15
|
+
- `apps/shared/records-ui/src/bare-refusals.ts`
|
|
16
|
+
- `apps/shared/records-ui/src/labels.tsx`
|
|
17
|
+
|
|
18
|
+
## 0.116.95
|
|
19
|
+
|
|
20
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
21
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
22
|
+
Diff: `git diff 62477f88e9 a2d79d17eb -- apps/shared/records-ui/src`
|
|
23
|
+
|
|
24
|
+
Changed shipped source files (2):
|
|
25
|
+
- `apps/shared/records-ui/src/bare-refusals.ts`
|
|
26
|
+
- `apps/shared/records-ui/src/labels.tsx`
|
|
27
|
+
|
|
8
28
|
## 0.116.94
|
|
9
29
|
|
|
10
30
|
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-PO7UMIDY.js";
|
|
8
8
|
import "./chunk-ESNTHDQO.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-TABDUUEC.js";
|
|
10
10
|
import "./chunk-6Z537SLG.js";
|
|
11
11
|
import "./chunk-LBZZDHV6.js";
|
|
12
12
|
import "./chunk-K7OX6RG6.js";
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
SaveToTable,
|
|
18
18
|
shapesOfSource
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=SaveToTable-
|
|
20
|
+
//# sourceMappingURL=SaveToTable-GYVIFMJC.js.map
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
useTableRights,
|
|
65
65
|
withoutInternalCodes,
|
|
66
66
|
writeOnTheWinningVersion_exports
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-TABDUUEC.js";
|
|
68
68
|
import {
|
|
69
69
|
kindItemWords,
|
|
70
70
|
kindLabel,
|
|
@@ -393,6 +393,7 @@ function encodeAt(canvas, type, maxWidth, quality) {
|
|
|
393
393
|
import { useState as useState2 } from "react";
|
|
394
394
|
import { AlertTriangleIcon, CheckIcon } from "@ai-matrx/design-system/icons";
|
|
395
395
|
import { BasicInput, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, cn as cn2 } from "@ai-matrx/design-system";
|
|
396
|
+
import { Button as ControlButton } from "@ai-matrx/design-system/controls";
|
|
396
397
|
import {
|
|
397
398
|
MEASURE_UNITS,
|
|
398
399
|
TYPE_WEIGHTS,
|
|
@@ -816,9 +817,9 @@ function ShadowLayersEditor({
|
|
|
816
817
|
k
|
|
817
818
|
)),
|
|
818
819
|
/* @__PURE__ */ jsx2("span", { className: "col-span-3", children: /* @__PURE__ */ jsx2(ColorWell, { id: i === 0 ? id : `${id}-${i}`, label: `${label} layer ${i + 1} color`, value: layer.color, disabled, onChange: (c) => c && set(i, { color: c }) }) }),
|
|
819
|
-
/* @__PURE__ */ jsx2("span", { className: "flex items-center justify-end", children: layers.length > 1 ? /* @__PURE__ */ jsx2(
|
|
820
|
+
/* @__PURE__ */ jsx2("span", { className: "flex items-center justify-end", children: layers.length > 1 ? /* @__PURE__ */ jsx2(ControlButton, { type: "button", variant: "quiet", removes: true, disabled, onClick: () => onChange(layers.filter((_, j) => j !== i)), children: "Remove" }) : null })
|
|
820
821
|
] }, i)),
|
|
821
|
-
/* @__PURE__ */ jsx2(
|
|
822
|
+
/* @__PURE__ */ jsx2(ControlButton, { type: "button", variant: "quiet", className: "self-start text-muted-foreground", disabled, onClick: () => onChange([...layers, NEW_LAYER]), children: "+ Layer" })
|
|
822
823
|
] });
|
|
823
824
|
}
|
|
824
825
|
function ShadowEditor({ value, onChange, disabled, id, label }) {
|
|
@@ -833,18 +834,18 @@ function ShadowEditor({ value, onChange, disabled, id, label }) {
|
|
|
833
834
|
return /* @__PURE__ */ jsxs2("span", { className: "flex w-full flex-col gap-2", children: [
|
|
834
835
|
/* @__PURE__ */ jsxs2("span", { className: "flex items-center gap-1", role: "tablist", "aria-label": `${label} theme`, children: [
|
|
835
836
|
["light", "dark"].map((t) => /* @__PURE__ */ jsx2(
|
|
836
|
-
|
|
837
|
+
ControlButton,
|
|
837
838
|
{
|
|
838
839
|
type: "button",
|
|
840
|
+
variant: "quiet",
|
|
839
841
|
role: "tab",
|
|
840
842
|
"aria-selected": theme === t,
|
|
841
|
-
className: cn2("rounded-md px-2 py-0.5 text-xs", theme === t ? "bg-muted text-foreground" : "text-muted-foreground hover:text-foreground"),
|
|
842
843
|
onClick: () => setTheme(t),
|
|
843
844
|
children: t === "light" ? "Light" : "Dark"
|
|
844
845
|
},
|
|
845
846
|
t
|
|
846
847
|
)),
|
|
847
|
-
theme === "dark" && own3 ? /* @__PURE__ */ jsx2(
|
|
848
|
+
theme === "dark" && own3 ? /* @__PURE__ */ jsx2(ControlButton, { type: "button", variant: "link", className: "ml-auto text-muted-foreground", onClick: () => write({ light: pair.light, dark: null }), children: "Same as light" }) : null
|
|
848
849
|
] }),
|
|
849
850
|
/* @__PURE__ */ jsx2(
|
|
850
851
|
ShadowLayersEditor,
|
|
@@ -961,6 +962,7 @@ var DESIGN_LOOK_IDS = DESIGN_LOOKS.map((look) => look.id);
|
|
|
961
962
|
// src/looks/htmlLook.tsx
|
|
962
963
|
import { useEffect as useEffect2, useRef as useRef2, useState as useState3 } from "react";
|
|
963
964
|
import { BasicTextarea, Button as Button2 } from "@ai-matrx/design-system";
|
|
965
|
+
import { Button as ControlButton2 } from "@ai-matrx/design-system/controls";
|
|
964
966
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
965
967
|
var HTML_SAMPLE_LOOK_ID = "html_sample";
|
|
966
968
|
function htmlOf(value) {
|
|
@@ -996,13 +998,15 @@ function HtmlSampleEditor({ value, onChange, disabled, id, label }) {
|
|
|
996
998
|
return /* @__PURE__ */ jsxs3("div", { className: "group relative min-w-0", "data-records-look": "html_sample", children: [
|
|
997
999
|
stored.trim() ? /* @__PURE__ */ jsx3(HtmlSampleFrame, { html: stored, title: label }) : /* @__PURE__ */ jsx3("span", { className: "block py-1 text-sm text-muted-foreground", children: "No sample" }),
|
|
998
1000
|
disabled ? null : /* @__PURE__ */ jsx3(
|
|
999
|
-
|
|
1001
|
+
ControlButton2,
|
|
1000
1002
|
{
|
|
1001
1003
|
type: "button",
|
|
1004
|
+
variant: "quiet",
|
|
1005
|
+
className: "absolute right-0 top-0 font-mono opacity-0 shadow-sm transition-opacity focus-visible:opacity-100 group-focus-within:opacity-100 group-hover:opacity-100",
|
|
1002
1006
|
id,
|
|
1003
1007
|
"aria-label": `Edit ${label} HTML`,
|
|
1004
1008
|
onClick: () => setEditing(true),
|
|
1005
|
-
|
|
1009
|
+
"data-edit-html": "",
|
|
1006
1010
|
children: "</>"
|
|
1007
1011
|
}
|
|
1008
1012
|
)
|
|
@@ -3716,6 +3720,7 @@ function linkChipText(raw) {
|
|
|
3716
3720
|
import { useEffect as useEffect10, useRef as useRef9, useState as useState15 } from "react";
|
|
3717
3721
|
import { useOptionalRecordsClient as useOptionalRecordsClient5 } from "@ai-matrx/records/react";
|
|
3718
3722
|
import { Badge as Badge3, Button as Button8, cn as cn10, Dialog, DialogContent, DialogHeader, DialogTitle } from "@ai-matrx/design-system";
|
|
3723
|
+
import { Button as ControlButton3 } from "@ai-matrx/design-system/controls";
|
|
3719
3724
|
import { OutboundLink as OutboundLink4 } from "@ai-matrx/kit/outbound-react";
|
|
3720
3725
|
import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3721
3726
|
function attachmentIdsOf(value) {
|
|
@@ -3799,11 +3804,13 @@ function AttachmentChip({ id, onRemove, onPreview }) {
|
|
|
3799
3804
|
}
|
|
3800
3805
|
),
|
|
3801
3806
|
onRemove ? /* @__PURE__ */ jsx20(
|
|
3802
|
-
|
|
3807
|
+
ControlButton3,
|
|
3803
3808
|
{
|
|
3804
3809
|
type: "button",
|
|
3810
|
+
variant: "quiet",
|
|
3811
|
+
removes: true,
|
|
3805
3812
|
"aria-label": `Remove ${words}`,
|
|
3806
|
-
className: "absolute -right-1 -top-1
|
|
3813
|
+
className: "absolute -right-1 -top-1",
|
|
3807
3814
|
onClick: (event) => {
|
|
3808
3815
|
event.stopPropagation();
|
|
3809
3816
|
onRemove();
|
|
@@ -3830,10 +3837,11 @@ function AttachmentChip({ id, onRemove, onPreview }) {
|
|
|
3830
3837
|
} : {},
|
|
3831
3838
|
children: [
|
|
3832
3839
|
onPreview ? /* @__PURE__ */ jsx20(
|
|
3833
|
-
|
|
3840
|
+
ControlButton3,
|
|
3834
3841
|
{
|
|
3835
3842
|
type: "button",
|
|
3836
|
-
|
|
3843
|
+
variant: "link",
|
|
3844
|
+
className: "truncate",
|
|
3837
3845
|
"data-records-file-preview": id,
|
|
3838
3846
|
onClick: (event) => {
|
|
3839
3847
|
event.stopPropagation();
|
|
@@ -3855,11 +3863,13 @@ function AttachmentChip({ id, onRemove, onPreview }) {
|
|
|
3855
3863
|
}
|
|
3856
3864
|
) : /* @__PURE__ */ jsx20("span", { className: "truncate", children: words }),
|
|
3857
3865
|
onRemove ? /* @__PURE__ */ jsx20(
|
|
3858
|
-
|
|
3866
|
+
ControlButton3,
|
|
3859
3867
|
{
|
|
3860
3868
|
type: "button",
|
|
3869
|
+
variant: "quiet",
|
|
3870
|
+
removes: true,
|
|
3861
3871
|
"aria-label": `Remove ${words}`,
|
|
3862
|
-
className: "shrink-0
|
|
3872
|
+
className: "shrink-0",
|
|
3863
3873
|
onClick: (event) => {
|
|
3864
3874
|
event.stopPropagation();
|
|
3865
3875
|
onRemove();
|
|
@@ -4633,13 +4643,13 @@ import {
|
|
|
4633
4643
|
PopoverTrigger as PopoverTrigger3,
|
|
4634
4644
|
cn as cn13
|
|
4635
4645
|
} from "@ai-matrx/design-system";
|
|
4636
|
-
import { PropertyRow } from "@ai-matrx/design-system/controls";
|
|
4646
|
+
import { Button as ControlButton4, PropertyRow } from "@ai-matrx/design-system/controls";
|
|
4637
4647
|
import { AlchemyMenu } from "@ai-matrx/alchemy/react";
|
|
4638
4648
|
import { OutboundLink as OutboundLink5 } from "@ai-matrx/kit/outbound-react";
|
|
4639
4649
|
import { humanizeIdentifier } from "@ai-matrx/kit/text-case";
|
|
4640
4650
|
import { momentZoneOptions } from "@ai-matrx/design-system/field-formats";
|
|
4641
4651
|
import { jsx as jsx25, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4642
|
-
var SaveToTable = lazy(() => import("./SaveToTable-
|
|
4652
|
+
var SaveToTable = lazy(() => import("./SaveToTable-GYVIFMJC.js").then((m) => ({ default: m.SaveToTable })));
|
|
4643
4653
|
var LONGEST_READ = 5e5;
|
|
4644
4654
|
var FENCE = /^```(?:json)?[ \t]*\r?\n([\s\S]*?)\r?\n?```$/;
|
|
4645
4655
|
function isPlainObject(v) {
|
|
@@ -4933,10 +4943,11 @@ function StructuredCell({ structured, label }) {
|
|
|
4933
4943
|
const picture = isPlainObject(first) ? Object.entries(first).find(([k, v]) => isImageUrl(v, k))?.[1] : void 0;
|
|
4934
4944
|
return /* @__PURE__ */ jsxs20(Popover3, { children: [
|
|
4935
4945
|
/* @__PURE__ */ jsx25(PopoverTrigger3, { asChild: true, children: /* @__PURE__ */ jsxs20(
|
|
4936
|
-
|
|
4946
|
+
ControlButton4,
|
|
4937
4947
|
{
|
|
4938
4948
|
type: "button",
|
|
4939
|
-
|
|
4949
|
+
variant: "quiet",
|
|
4950
|
+
className: "min-w-0 max-w-full text-left",
|
|
4940
4951
|
"data-records-structured-cell": "",
|
|
4941
4952
|
onClick: stop,
|
|
4942
4953
|
onDoubleClick: stop,
|
|
@@ -14309,4 +14320,4 @@ export {
|
|
|
14309
14320
|
RecordNameText,
|
|
14310
14321
|
HeldChangeDecision
|
|
14311
14322
|
};
|
|
14312
|
-
//# sourceMappingURL=chunk-
|
|
14323
|
+
//# sourceMappingURL=chunk-IEVLSGJZ.js.map
|