@ai-matrx/detail 0.1.164 → 0.1.166
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/react.cjs +13 -61
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +4 -52
- package/dist/react.js.map +1 -1
- package/knob-declaration.json +20 -0
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/detail
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.166
|
|
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/detail/src`.
|
|
7
7
|
|
|
8
|
+
## 0.1.165
|
|
9
|
+
|
|
10
|
+
Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff c50fadabfc 3702c2122e -- apps/shared/detail/src`
|
|
11
|
+
has no shipped-source changes outside tests, fixtures and docs). No consumer action required.
|
|
12
|
+
|
|
13
|
+
## 0.1.164
|
|
14
|
+
|
|
15
|
+
Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff 96b9d65cf7 c50fadabfc -- apps/shared/detail/src`
|
|
16
|
+
has no shipped-source changes outside tests, fixtures and docs). No consumer action required.
|
|
17
|
+
|
|
8
18
|
## 0.1.163
|
|
9
19
|
|
|
10
20
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
package/dist/react.cjs
CHANGED
|
@@ -584,14 +584,6 @@ var AlertCircleIcon = glyph(
|
|
|
584
584
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("line", { x1: "12", x2: "12.01", y1: "16", y2: "16" })
|
|
585
585
|
] })
|
|
586
586
|
);
|
|
587
|
-
var ExternalLinkIcon = glyph(
|
|
588
|
-
"external-link",
|
|
589
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
|
590
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M15 3h6v6" }),
|
|
591
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M10 14 21 3" }),
|
|
592
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" })
|
|
593
|
-
] })
|
|
594
|
-
);
|
|
595
587
|
var HistoryIcon = glyph(
|
|
596
588
|
"history",
|
|
597
589
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
|
@@ -608,15 +600,6 @@ var Link2Icon = glyph(
|
|
|
608
600
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("line", { x1: "8", x2: "16", y1: "12", y2: "12" })
|
|
609
601
|
] })
|
|
610
602
|
);
|
|
611
|
-
var RefreshCwIcon = glyph(
|
|
612
|
-
"refresh-cw",
|
|
613
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
|
614
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }),
|
|
615
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M21 3v5h-5" }),
|
|
616
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }),
|
|
617
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 16H3v5" })
|
|
618
|
-
] })
|
|
619
|
-
);
|
|
620
603
|
var SHIELD = "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z";
|
|
621
604
|
var ShieldAlertIcon = glyph(
|
|
622
605
|
"shield-alert",
|
|
@@ -633,25 +616,6 @@ var ShieldCheckIcon = glyph(
|
|
|
633
616
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m9 12 2 2 4-4" })
|
|
634
617
|
] })
|
|
635
618
|
);
|
|
636
|
-
var AppWindowIcon = glyph(
|
|
637
|
-
"app-window",
|
|
638
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
|
639
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "2", y: "4", width: "20", height: "16", rx: "2" }),
|
|
640
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M10 4v4" }),
|
|
641
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M2 8h20" }),
|
|
642
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M6 4v4" })
|
|
643
|
-
] })
|
|
644
|
-
);
|
|
645
|
-
var CheckIcon = glyph("check", /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M20 6 9 17l-5-5" }));
|
|
646
|
-
var ChevronLeftIcon = glyph("chevron-left", /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m15 18-6-6 6-6" }));
|
|
647
|
-
var ChevronRightIcon = glyph("chevron-right", /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m9 18 6-6-6-6" }));
|
|
648
|
-
var CopyIcon = glyph(
|
|
649
|
-
"copy",
|
|
650
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
|
651
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
|
652
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
|
653
|
-
] })
|
|
654
|
-
);
|
|
655
619
|
var ExpandIcon = glyph(
|
|
656
620
|
"expand",
|
|
657
621
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
|
@@ -665,21 +629,6 @@ var ExpandIcon = glyph(
|
|
|
665
629
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9 9 3 3" })
|
|
666
630
|
] })
|
|
667
631
|
);
|
|
668
|
-
var MoreHorizontalIcon = glyph(
|
|
669
|
-
"more-horizontal",
|
|
670
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
|
671
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "1" }),
|
|
672
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "19", cy: "12", r: "1" }),
|
|
673
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "5", cy: "12", r: "1" })
|
|
674
|
-
] })
|
|
675
|
-
);
|
|
676
|
-
var PanelRightIcon = glyph(
|
|
677
|
-
"panel-right",
|
|
678
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
|
679
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
680
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M15 3v18" })
|
|
681
|
-
] })
|
|
682
|
-
);
|
|
683
632
|
var LoaderIcon = glyph("loader", /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }));
|
|
684
633
|
var Settings2Icon = glyph(
|
|
685
634
|
"settings-2",
|
|
@@ -692,14 +641,15 @@ var Settings2Icon = glyph(
|
|
|
692
641
|
);
|
|
693
642
|
|
|
694
643
|
// src/react/DetailHeader.tsx
|
|
644
|
+
var import_icons2 = require("@ai-matrx/design-system/icons");
|
|
695
645
|
var import_design_system = require("@ai-matrx/design-system");
|
|
696
646
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
697
647
|
var ICON_BUTTON = "inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-40 disabled:hover:bg-transparent pointer-coarse:h-10 pointer-coarse:w-10";
|
|
698
648
|
var MENU_ITEM = "flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring pointer-coarse:py-2.5";
|
|
699
649
|
var TYPE_CHIP = "shrink-0 rounded-full px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide ring-1 ring-inset";
|
|
700
650
|
var PRESENTATIONS = [
|
|
701
|
-
{ value: "window", label: "Open as window", Icon: AppWindowIcon },
|
|
702
|
-
{ value: "docked", label: "Open docked to the side", Icon: PanelRightIcon },
|
|
651
|
+
{ value: "window", label: "Open as window", Icon: import_icons2.AppWindowIcon },
|
|
652
|
+
{ value: "docked", label: "Open docked to the side", Icon: import_icons2.PanelRightIcon },
|
|
703
653
|
{ value: "page", label: "Open as page", Icon: ExpandIcon }
|
|
704
654
|
];
|
|
705
655
|
function TypeChip({ core, className }) {
|
|
@@ -823,7 +773,7 @@ function DetailActions({ core, optional = "inline" }) {
|
|
|
823
773
|
disabled: !list.hasPrev,
|
|
824
774
|
"aria-label": "Previous record (Up arrow, or left bracket)",
|
|
825
775
|
title: "Previous record \u2191 or [",
|
|
826
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ChevronLeftIcon, { className: "h-4 w-4" })
|
|
776
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons2.ChevronLeftIcon, { className: "h-4 w-4" })
|
|
827
777
|
}
|
|
828
778
|
),
|
|
829
779
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "px-1 text-[11px] tabular-nums text-muted-foreground", children: [
|
|
@@ -840,7 +790,7 @@ function DetailActions({ core, optional = "inline" }) {
|
|
|
840
790
|
disabled: !list.hasNext,
|
|
841
791
|
"aria-label": "Next record (Down arrow, or right bracket)",
|
|
842
792
|
title: "Next record \u2193 or ]",
|
|
843
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ChevronRightIcon, { className: "h-4 w-4" })
|
|
793
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons2.ChevronRightIcon, { className: "h-4 w-4" })
|
|
844
794
|
}
|
|
845
795
|
),
|
|
846
796
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "mx-1 h-4 w-px bg-border", "aria-hidden": true })
|
|
@@ -873,7 +823,7 @@ function DetailActions({ core, optional = "inline" }) {
|
|
|
873
823
|
"aria-label": "Copy record id",
|
|
874
824
|
title: "Copy record id",
|
|
875
825
|
"data-detail-copy-id": true,
|
|
876
|
-
children: copied ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CheckIcon, { className: "h-3.5 w-3.5 text-primary" }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CopyIcon, { className: "h-3.5 w-3.5" })
|
|
826
|
+
children: copied ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons2.CheckIcon, { className: "h-3.5 w-3.5 text-primary" }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons2.CopyIcon, { className: "h-3.5 w-3.5" })
|
|
877
827
|
}
|
|
878
828
|
)
|
|
879
829
|
]
|
|
@@ -891,7 +841,7 @@ function DetailActions({ core, optional = "inline" }) {
|
|
|
891
841
|
"aria-haspopup": "menu",
|
|
892
842
|
"aria-expanded": menuOpen,
|
|
893
843
|
"data-detail-actions-overflow": true,
|
|
894
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(MoreHorizontalIcon, { className: "h-4 w-4" })
|
|
844
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons2.MoreHorizontalIcon, { className: "h-4 w-4" })
|
|
895
845
|
}
|
|
896
846
|
),
|
|
897
847
|
menuOpen ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
@@ -930,7 +880,7 @@ function DetailActions({ core, optional = "inline" }) {
|
|
|
930
880
|
void copyId();
|
|
931
881
|
},
|
|
932
882
|
children: [
|
|
933
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CopyIcon, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
883
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons2.CopyIcon, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
934
884
|
"Copy record id"
|
|
935
885
|
]
|
|
936
886
|
}
|
|
@@ -961,6 +911,7 @@ function formatWhen(iso) {
|
|
|
961
911
|
// src/react/DetailPresentationPane.tsx
|
|
962
912
|
var import_react8 = require("react");
|
|
963
913
|
var import_design_system2 = require("@ai-matrx/design-system");
|
|
914
|
+
var import_icons4 = require("@ai-matrx/design-system/icons");
|
|
964
915
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
965
916
|
var WORD = {
|
|
966
917
|
window: "a window",
|
|
@@ -1123,7 +1074,7 @@ function DetailPresentationPane({ core }) {
|
|
|
1123
1074
|
disabled: state.status === "saving",
|
|
1124
1075
|
className: "inline-flex items-center gap-1 rounded-md bg-primary px-2.5 py-1 text-xs text-primary-foreground transition-colors hover:bg-primary/90 disabled:opacity-60 pointer-coarse:py-2",
|
|
1125
1076
|
children: [
|
|
1126
|
-
state.status === "saving" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(LoaderIcon, { className: "h-3 w-3 animate-spin" }) : state.status === "saved" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CheckIcon, { className: "h-3 w-3" }) : null,
|
|
1077
|
+
state.status === "saving" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(LoaderIcon, { className: "h-3 w-3 animate-spin" }) : state.status === "saved" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_icons4.CheckIcon, { className: "h-3 w-3" }) : null,
|
|
1127
1078
|
"Save"
|
|
1128
1079
|
]
|
|
1129
1080
|
}
|
|
@@ -1155,6 +1106,7 @@ function DetailPresentationPane({ core }) {
|
|
|
1155
1106
|
}
|
|
1156
1107
|
|
|
1157
1108
|
// src/react/DetailBody.tsx
|
|
1109
|
+
var import_icons6 = require("@ai-matrx/design-system/icons");
|
|
1158
1110
|
var import_outbound_react = require("@ai-matrx/kit/outbound-react");
|
|
1159
1111
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1160
1112
|
var SLOW_LOAD_NOTICE_MS = 6e3;
|
|
@@ -1262,7 +1214,7 @@ function HealthStrip({ health }) {
|
|
|
1262
1214
|
disabled: refreshing,
|
|
1263
1215
|
className: "inline-flex h-6 items-center gap-1 rounded px-1.5 hover:bg-accent hover:text-foreground disabled:opacity-50 pointer-coarse:h-10",
|
|
1264
1216
|
children: [
|
|
1265
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(RefreshCwIcon, { className: (0, import_design_system3.cn)("h-3 w-3", refreshing && "animate-spin") }),
|
|
1217
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_icons6.RefreshCwIcon, { className: (0, import_design_system3.cn)("h-3 w-3", refreshing && "animate-spin") }),
|
|
1266
1218
|
"Refresh"
|
|
1267
1219
|
]
|
|
1268
1220
|
}
|
|
@@ -1282,7 +1234,7 @@ function HealthStrip({ health }) {
|
|
|
1282
1234
|
href: health.openAtSourceHref,
|
|
1283
1235
|
className: "inline-flex h-6 items-center gap-1 rounded px-1.5 hover:bg-accent hover:text-foreground pointer-coarse:h-10",
|
|
1284
1236
|
children: [
|
|
1285
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ExternalLinkIcon, { className: "h-3 w-3" }),
|
|
1237
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_icons6.ExternalLinkIcon, { className: "h-3 w-3" }),
|
|
1286
1238
|
health.openAtSourceLabel ?? deriveOpenAtSourceLabel(health.source)
|
|
1287
1239
|
]
|
|
1288
1240
|
}
|