@ai-matrx/content-ir-react 0.20.0 → 0.20.2
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 +22 -0
- package/README.md +1 -1
- package/dist/{component-resolution.types-DwKSF64x.d.cts → component-resolution.types-BQa2ik3i.d.cts} +1 -1
- package/dist/{component-resolution.types-DwKSF64x.d.ts → component-resolution.types-BQa2ik3i.d.ts} +1 -1
- package/dist/{component-resolution.types-DY4pGymy.d.cts → component-resolution.types-C_irCaHc.d.cts} +1 -1
- package/dist/{component-resolution.types-DY4pGymy.d.ts → component-resolution.types-C_irCaHc.d.ts} +1 -1
- package/dist/db-component.d.cts +1 -1
- package/dist/db-component.d.ts +1 -1
- package/dist/{directive-host-B1hcjJxS.d.cts → directive-host-CtFMuSZc.d.cts} +7 -0
- package/dist/{directive-host-B1hcjJxS.d.ts → directive-host-CtFMuSZc.d.ts} +7 -0
- package/dist/directives.cjs +13 -8
- package/dist/directives.cjs.map +1 -1
- package/dist/directives.d.cts +2 -2
- package/dist/directives.d.ts +2 -2
- package/dist/directives.js +13 -8
- package/dist/directives.js.map +1 -1
- package/dist/{host-types-BOWu99zI.d.ts → host-types-CGcK8Nib.d.ts} +2 -2
- package/dist/{host-types-Cn2lf8q3.d.cts → host-types-mMFt5-hQ.d.cts} +2 -2
- package/dist/host.cjs.map +1 -1
- package/dist/host.d.cts +4 -4
- package/dist/host.d.ts +4 -4
- package/dist/host.js.map +1 -1
- package/dist/index.cjs +13 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +13 -8
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +13 -8
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.js +13 -8
- package/dist/react.js.map +1 -1
- package/dist/resolver.d.cts +2 -2
- package/dist/resolver.d.ts +2 -2
- package/dist/{route-DVfjdUYy.d.cts → route-Bq6db_zH.d.cts} +9 -2
- package/dist/{route-CDATmjfp.d.ts → route-DStinBoZ.d.ts} +9 -2
- package/dist/route.cjs.map +1 -1
- package/dist/route.d.cts +2 -2
- package/dist/route.d.ts +2 -2
- package/dist/route.js.map +1 -1
- package/package.json +1 -1
package/dist/react.cjs
CHANGED
|
@@ -667,7 +667,7 @@ function ApplyDirectiveButton({
|
|
|
667
667
|
type: "button",
|
|
668
668
|
disabled: askingAgain,
|
|
669
669
|
onClick: () => void handleApply(!bad),
|
|
670
|
-
className: "inline-flex items-center gap-1 rounded px-1 py-0.5 text-muted-foreground hover:bg-accent hover:text-accent-foreground disabled:opacity-50",
|
|
670
|
+
className: "inline-flex shrink-0 items-center gap-1 whitespace-nowrap rounded px-1 py-0.5 text-muted-foreground hover:bg-accent hover:text-accent-foreground disabled:opacity-50",
|
|
671
671
|
"data-apply-action": bad ? "retry" : "run-again",
|
|
672
672
|
children: [
|
|
673
673
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RotateCcwIcon, { className: "h-3 w-3" }),
|
|
@@ -707,8 +707,8 @@ function ApplyDirectiveButton({
|
|
|
707
707
|
}
|
|
708
708
|
const destructive = directive.directiveClass === "delete";
|
|
709
709
|
const muted = nothingToChange && view.status === "idle";
|
|
710
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "
|
|
711
|
-
muted ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-xs text-muted-foreground", "data-apply-nothing": "", children: "Nothing to change" }) : null,
|
|
710
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "flex min-w-0 flex-wrap items-center justify-end gap-x-2 gap-y-1", children: [
|
|
711
|
+
muted ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "min-w-0 text-xs text-muted-foreground", "data-apply-nothing": "", children: "Nothing to change" }) : null,
|
|
712
712
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
713
713
|
"button",
|
|
714
714
|
{
|
|
@@ -717,7 +717,7 @@ function ApplyDirectiveButton({
|
|
|
717
717
|
disabled: view.status === "applying" || view.status === "asking" || items.length === 0,
|
|
718
718
|
"data-apply-tone": muted ? "muted" : destructive ? "destructive" : "default",
|
|
719
719
|
title: muted ? "It sets no fields, so applying it changes nothing." : void 0,
|
|
720
|
-
className: `inline-flex items-center gap-1 rounded-md border px-2 py-1 text-xs font-medium disabled:opacity-50 ${muted ? "border-border/60 bg-background text-muted-foreground hover:bg-accent" : destructive ? "border-destructive/50 bg-background text-destructive hover:bg-destructive/10" : "border-border bg-background hover:bg-accent"}`,
|
|
720
|
+
className: `inline-flex shrink-0 items-center gap-1 whitespace-nowrap rounded-md border px-2 py-1 text-xs font-medium disabled:opacity-50 ${muted ? "border-border/60 bg-background text-muted-foreground hover:bg-accent" : destructive ? "border-destructive/50 bg-background text-destructive hover:bg-destructive/10" : "border-border bg-background hover:bg-accent"}`,
|
|
721
721
|
children: [
|
|
722
722
|
view.status === "applying" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(LoaderIcon, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PlayIcon, { className: "h-3.5 w-3.5" }),
|
|
723
723
|
view.status === "applying" ? `Applying${itemCount ? ` ${itemCount} ${itemCount === 1 ? "item" : "items"}` : ""}\u2026${elapsed ? ` ${elapsed}s` : ""}` : label
|
|
@@ -768,7 +768,7 @@ function FailureNotice({
|
|
|
768
768
|
type: "button",
|
|
769
769
|
onClick: () => setOpen((v) => !v),
|
|
770
770
|
"aria-expanded": open,
|
|
771
|
-
className: "ml-1 underline underline-offset-2 hover:no-underline",
|
|
771
|
+
className: "ml-1 whitespace-nowrap underline underline-offset-2 hover:no-underline",
|
|
772
772
|
"data-apply-failure-details-toggle": true,
|
|
773
773
|
children: open ? "Hide details" : "Details"
|
|
774
774
|
}
|
|
@@ -1000,7 +1000,12 @@ function TargetRow({
|
|
|
1000
1000
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "py-1 text-xs", "data-directive-target": recordId, children: [
|
|
1001
1001
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
1002
1002
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "flex min-w-0 flex-1 items-center gap-1 px-1", children: name }),
|
|
1003
|
-
host.renderCopy?.({
|
|
1003
|
+
host.renderCopy?.({
|
|
1004
|
+
label: `this ${(0, import_content_ir5.nounLabel)(directive.noun, host.nouns).toLowerCase()}`,
|
|
1005
|
+
value: item,
|
|
1006
|
+
size: "xs",
|
|
1007
|
+
record: { noun: directive.noun, id: recordId }
|
|
1008
|
+
})
|
|
1004
1009
|
] }),
|
|
1005
1010
|
isUpdate ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DirectiveChangeList, { changes, className: "mt-0.5 px-1" }) : null
|
|
1006
1011
|
] });
|
|
@@ -1028,7 +1033,7 @@ function SideEffectDirectiveCard({ directive }) {
|
|
|
1028
1033
|
" ",
|
|
1029
1034
|
total === 1 ? "item" : "items"
|
|
1030
1035
|
] }),
|
|
1031
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "ml-auto flex items-center gap-1", children: [
|
|
1036
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "ml-auto flex min-w-0 flex-wrap items-center justify-end gap-1", children: [
|
|
1032
1037
|
host.renderCopy?.({ label: display.title, value: directive.shell, size: "icon" }),
|
|
1033
1038
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1034
1039
|
ApplyDirectiveButton,
|
|
@@ -1050,7 +1055,7 @@ function SideEffectDirectiveCard({ directive }) {
|
|
|
1050
1055
|
{
|
|
1051
1056
|
type: "button",
|
|
1052
1057
|
onClick: () => setExpanded((v) => !v),
|
|
1053
|
-
className: "mt-0.5 inline-flex items-center gap-1 rounded px-1 py-0.5 text-[11px] text-muted-foreground hover:text-foreground",
|
|
1058
|
+
className: "mt-0.5 inline-flex items-center gap-1 whitespace-nowrap rounded px-1 py-0.5 text-[11px] text-muted-foreground hover:text-foreground",
|
|
1054
1059
|
children: [
|
|
1055
1060
|
expanded ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ChevronDownIcon, { className: "h-3 w-3" }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ChevronRightIcon, { className: "h-3 w-3" }),
|
|
1056
1061
|
expanded ? "Show less" : `Show ${hidden} more`
|