@mcp-use/inspector 20.0.0-beta.6 → 20.0.0-beta.8
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/dist/cdn/{AnimatePresence-Dcw-FOy8.js → AnimatePresence-D1bZ5_-l.js} +79 -78
- package/dist/cdn/{ChatTab-D6J3Gyp7.js → ChatTab-C-Ysv6Zf.js} +1951 -1932
- package/dist/cdn/CheckboxIndicator-BjF73mGX.js +252 -0
- package/dist/cdn/{ConnectionSettingsForm-CWQueI8J.js → ConnectionSettingsForm-CNuMa6jp.js} +202 -202
- package/dist/cdn/{ConnectionSettingsTab-FGyt3QaI.js → ConnectionSettingsTab-qSVQ1aIF.js} +36 -35
- package/dist/cdn/{ElicitationTab-CL1KJ0bz.js → ElicitationTab-PEmEDvC5.js} +47 -46
- package/dist/cdn/{FormContext-tmgN_Vdr.js → FormContext-NtUiZclE.js} +26 -26
- package/dist/cdn/{InspectorContext-UjtEbNod.js → InspectorContext-BBKCdfmK.js} +1 -1
- package/dist/cdn/{JSONDisplay-BFxf5oEu.js → JSONDisplay-BJqMz7Ny.js} +22 -22
- package/dist/cdn/{ListTabHeader-Cv-GmtGF.js → ListTabHeader-DzmTtN1e.js} +20 -19
- package/dist/cdn/{WidgetWrapper-CruwjBOd.js → MCPAppsDebugControls-BpP-Ifap.js} +514 -550
- package/dist/cdn/{ManufactOAuthCallback-B98kSYCj.js → ManufactOAuthCallback-ChbbjFIT.js} +2 -2
- package/dist/cdn/{MarkdownRenderer-gLqUICEd.js → MarkdownRenderer-CK_6n3T9.js} +23 -23
- package/dist/cdn/McpAppsViewPanel-jlsYQ7uS.js +56 -0
- package/dist/cdn/{NotificationsTab-CeImSrhx.js → NotificationsTab-B7uebqMV.js} +21 -21
- package/dist/cdn/{OAuthCallback-Bg2bP-o9.js → OAuthCallback--NZdLoWx.js} +3 -3
- package/dist/cdn/PromptsTab-DSGYL32k.js +902 -0
- package/dist/cdn/{ResourcesTab-CQkKni-P.js → ResourcesTab-d3wxN7xC.js} +116 -114
- package/dist/cdn/{SamplingTab-D8q-iCMc.js → SamplingTab-DETdWNJk.js} +34 -33
- package/dist/cdn/{ServerMetadataTab-CvrKX8fz.js → ServerMetadataTab-BM3VhSLf.js} +9 -9
- package/dist/cdn/{StatusIcon-D0-ARyOh.js → StatusIcon-Q3n3YRtE.js} +10 -11
- package/dist/cdn/{ToolsTab-6xaVH43x.js → ToolsTab-BMcnfEWg.js} +665 -653
- package/dist/cdn/{ViewPreview-Ohh6JwOn.js → ViewPreview-CBhrVdwx.js} +3 -3
- package/dist/cdn/{WidgetDebugContext-D4usL_MA.js → WidgetDebugContext-B6yoOVVV.js} +1 -11
- package/dist/cdn/WidgetWrapper-BlbQAh_X.js +12 -0
- package/dist/cdn/{bell-CGjAO_0s.js → bell-GrTZcnD2.js} +1 -1
- package/dist/cdn/{browser-CbQIH4w2.js → browser-DG2Z8392.js} +1 -1
- package/dist/cdn/{brush-B_mKhyxG.js → brush-CelVvMGp.js} +1 -1
- package/dist/cdn/button-CB4uOoUV.js +2509 -0
- package/dist/cdn/card-BA-DQk-G.js +41 -0
- package/dist/cdn/{checkbox-By0FklhG.js → checkbox-kwVa4gRX.js} +7 -7
- package/dist/cdn/{clock-CmUbSx_B.js → clock-YMF8Gtw5.js} +1 -1
- package/dist/cdn/{code-V_0nf5rg.js → code-C8sN2OGR.js} +1 -1
- package/dist/cdn/{jsx-runtime-CIxvMpEo.js → createLucideIcon-BONxC1L5.js} +57 -24
- package/dist/cdn/{dialog-BsDpuJd3.js → dialog-CJGnC5Ag.js} +171 -171
- package/dist/cdn/{dist-DaMB0Su9.js → dist-CTJnCYmk.js} +1 -1
- package/dist/cdn/{dist-CXHFvGre.js → dist-SxRsB1iS.js} +3 -3
- package/dist/cdn/{external-link-CjmfT6rW.js → external-link-Bo4lQxr1.js} +1 -1
- package/dist/cdn/{eye-B7H96av8.js → eye-pSGG7nvf.js} +1 -1
- package/dist/cdn/{folder-open-B3lu2rG_.js → folder-open-aM8CPtBO.js} +1 -1
- package/dist/cdn/{hash-BVQnWi7q.js → hash-DDs2vE1k.js} +1 -1
- package/dist/cdn/{history-Csw4rb44.js → history-BfUFpL1d.js} +1 -1
- package/dist/cdn/{index-browser-DkQOzkvX.js → index-browser-Dm3R1Mfe.js} +1 -1
- package/dist/cdn/{info-CNiOwqkf.js → info-BMkB68mB.js} +1 -1
- package/dist/cdn/{input-C2OBd4PJ.js → input-BCpgLXU1.js} +2993 -5499
- package/dist/cdn/inspector.css +1 -1
- package/dist/cdn/inspector.js +7106 -7140
- package/dist/cdn/{label-B9Jmm9be.js → label-A0UGV8FE.js} +9 -9
- package/dist/cdn/{loader-circle-BLy9A_pp.js → loader-circle-BKRHJEB7.js} +1 -1
- package/dist/cdn/{maximize-2-CH5Lq90B.js → maximize-2-DdrB_spi.js} +1 -1
- package/dist/cdn/{maximize-BALCV_ep.js → maximize-hSOCz133.js} +1 -1
- package/dist/cdn/{message-square-BnxdpJxZ.js → message-square-D3tKB3uJ.js} +1 -1
- package/dist/cdn/{not-found-DEtSM_Wd.js → not-found-BajFyZpp.js} +9 -11
- package/dist/cdn/{play-vuZ5PLnI.js → play-B1leulYf.js} +1 -1
- package/dist/cdn/providerMeta-CjGU4rID.js +436 -0
- package/dist/cdn/{react-BLtCruam.js → react-Bl-hSkvn.js} +562 -512
- package/dist/cdn/{refresh-cw-BXY-Pa0U.js → refresh-cw-CyvXrS91.js} +1 -1
- package/dist/cdn/{save-Tgil_AJZ.js → save-CmdEPUAm.js} +1 -1
- package/dist/cdn/{select-DDdiIPR2.js → select-CCFHjOGk.js} +808 -807
- package/dist/cdn/{servers-Dm72iTpY.js → servers-Dd0Vcp81.js} +5 -1
- package/dist/cdn/{shared-DaILIQPP.js → shared-CJVHJhag.js} +36 -36
- package/dist/cdn/{sheet-Br_l2kry.js → sheet-oyq1mIyg.js} +620 -619
- package/dist/cdn/{sparkles-BntO2rDR.js → sparkles-CxeZpVtX.js} +1 -1
- package/dist/cdn/spinner-Be1GlSGX.js +15 -0
- package/dist/cdn/{square-check-big-BvwQ17Bl.js → square-check-big-C_4wbfwF.js} +1 -1
- package/dist/cdn/{switch-C3IyQuid.js → switch-DHXEA_N5.js} +190 -189
- package/dist/cdn/{tabs-subtle-CkdI6Mac.js → tabs-subtle-Dubd6Kj8.js} +269 -268
- package/dist/cdn/{telemetry-C7Ytz2BG.js → telemetry-DjQn_Xm9.js} +2 -2
- package/dist/cdn/{textarea-DSbwcFVt.js → textarea-CwmI8_uI.js} +6 -6
- package/dist/cdn/{trash-2-RwpJY5SL.js → trash-2-BhumJAFE.js} +1 -1
- package/dist/cdn/{useAriaLabelledBy-DqAdnppm.js → useAriaLabelledBy-Cra6w3YY.js} +2 -1
- package/dist/cdn/{useCompositeItem-BRqEzYh-.js → useCompositeItem-Dhnm-7el.js} +3 -3
- package/dist/cdn/{useConfig-BW6uQf2m.js → useConfig-B_adtnP1.js} +2 -2
- package/dist/cdn/{useSavedRequests-Ci2I919u.js → useSavedRequests-mSIsDd4c.js} +1 -1
- package/dist/cdn/{useViewHostProps-CINeSkth.js → useViewHostProps-CDOm2w6u.js} +124 -109
- package/dist/cdn/{wrench-DzGmCfnb.js → wrench-DvK20LUT.js} +1 -1
- package/dist/cdn/{x-C3vRQIYu.js → x-EilKPiCX.js} +1 -1
- package/dist/cdn/{zap-Mb-pbw2X.js → zap-0Wr9QO7N.js} +1 -1
- package/dist/cli.js +61 -2
- package/dist/client/components/ChatTab.d.ts.map +1 -1
- package/dist/client/components/MCPAppsDebugControls.d.ts.map +1 -1
- package/dist/client/components/ToolsTab.d.ts.map +1 -1
- package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
- package/dist/client/components/chat/ToolResultRenderer.d.ts.map +1 -1
- package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts +29 -0
- package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts.map +1 -0
- package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +1 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts +2 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts.map +1 -1
- package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +1 -1
- package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +1 -1
- package/dist/client/components/ui/mesh-animation-pause.d.ts +14 -0
- package/dist/client/components/ui/mesh-animation-pause.d.ts.map +1 -0
- package/dist/client/components/ui/mesh-gradient-colors.d.ts +6 -0
- package/dist/client/components/ui/mesh-gradient-colors.d.ts.map +1 -0
- package/dist/client/components/ui/mesh-tab-background.d.ts +1 -1
- package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -1
- package/dist/client/components/ui/not-found.d.ts.map +1 -1
- package/dist/client/context/WidgetDebugContext.d.ts +1 -11
- package/dist/client/context/WidgetDebugContext.d.ts.map +1 -1
- package/dist/client/hooks/useDeviceViewport.d.ts +1 -5
- package/dist/client/hooks/useDeviceViewport.d.ts.map +1 -1
- package/dist/client/hooks/useViewHostProps.d.ts +1 -1
- package/dist/client/hooks/useViewHostProps.d.ts.map +1 -1
- package/dist/client/index.js +2087 -1861
- package/dist/client/utils/servers.d.ts +5 -0
- package/dist/client/utils/servers.d.ts.map +1 -1
- package/dist/server/cdn-shell.d.ts.map +1 -1
- package/dist/server/cdn-shell.js +2 -2
- package/dist/server/{chunk-GBY4WAVP.js → chunk-BD3ROXCC.js} +1 -1
- package/dist/server/{chunk-NUHI6MJ6.js → chunk-BPXKTFQ5.js} +1 -1
- package/dist/server/{chunk-IFF5T5J4.js → chunk-XTVIGRTB.js} +61 -2
- package/dist/server/cli.js +2 -2
- package/dist/server/index.js +3 -3
- package/dist/server/middleware.js +3 -3
- package/dist/server/version.js +1 -1
- package/dist/web/assets/AnimatePresence-FfDQQNFJ.js +9 -0
- package/dist/web/assets/ChatTab-DxD-KLW_.js +18 -0
- package/dist/web/assets/ConnectionSettingsTab-pO6p0U0f.js +1 -0
- package/dist/web/assets/ElicitationTab-o5_z6gqe.js +1 -0
- package/dist/web/assets/FormContext-sV-yByKz.js +1 -0
- package/dist/web/assets/ListTabHeader-CrGae306.js +1 -0
- package/dist/web/assets/MCPAppsDebugControls-CZW1uZdH.js +34 -0
- package/dist/web/assets/{ManufactOAuthCallback-BRO6TPkZ.js → ManufactOAuthCallback-BnWhf5bW.js} +1 -1
- package/dist/web/assets/{MarkdownRenderer-gaJFjbtr.js → MarkdownRenderer-gUUHRIm1.js} +2 -2
- package/dist/web/assets/McpAppsViewPanel-CDJDb4t-.js +1 -0
- package/dist/web/assets/{NotificationsTab-LYcfRjyd.js → NotificationsTab-CkJ5E_sR.js} +1 -1
- package/dist/web/assets/{OAuthCallback-D8UItgTB.js → OAuthCallback-Dv_mFcua.js} +1 -1
- package/dist/web/assets/PromptsTab-CLwWFf6d.js +15 -0
- package/dist/web/assets/ResourcesTab-B8cnuq-m.js +2 -0
- package/dist/web/assets/SamplingTab-BjYHYRHX.js +1 -0
- package/dist/web/assets/ServerMetadataTab-CPlclbb7.js +1 -0
- package/dist/web/assets/ToolsTab-BSSwvp4Q.js +8 -0
- package/dist/web/assets/{ViewPreview--z6jL0Zg.js → ViewPreview-C_LJdgt9.js} +1 -1
- package/dist/web/assets/WidgetWrapper-cv_BM1bY.js +1 -0
- package/dist/web/assets/{brush--0LobUi4.js → brush-DX0UZ_pI.js} +1 -1
- package/dist/web/assets/button-C8Xa2k4x.js +1 -0
- package/dist/web/assets/checkbox-BuuDhnpk.js +1 -0
- package/dist/web/assets/code-B14rVdNt.js +1 -0
- package/dist/web/assets/createLucideIcon-BEHeJH0M.js +1 -0
- package/dist/web/assets/{dist-B8sA8Zml.js → dist-C39gcmyH.js} +4 -4
- package/dist/web/assets/index-CyvvaDNR.js +499 -0
- package/dist/web/assets/index-bCIH1Sdx.css +1 -0
- package/dist/web/assets/input-C0OQCUZy.js +1 -0
- package/dist/web/assets/{label-Cdim77Jw.js → label-CI7JWQOo.js} +1 -1
- package/dist/web/assets/{maximize-2-BTT9QQU9.js → maximize-2-Br1WQzT2.js} +1 -1
- package/dist/web/assets/{maximize-_O55kFcr.js → maximize-CJNgRe6S.js} +1 -1
- package/dist/web/assets/{refresh-cw-C9wQl8_d.js → refresh-cw-B5iaAZKn.js} +1 -1
- package/dist/web/assets/{save-B-MsgxX9.js → save-TM6fvNrt.js} +1 -1
- package/dist/web/assets/select-D6jzbLJn.js +1 -0
- package/dist/web/assets/shared-Chk1rURG.js +1 -0
- package/dist/web/assets/{sparkles-2OAsc1aP.js → sparkles-BGYTDThM.js} +1 -1
- package/dist/web/assets/tabs-subtle-CK4nucyB.js +1 -0
- package/dist/web/assets/textarea-CRTXuRmE.js +1 -0
- package/dist/web/assets/{useConfig-BAsKhUxf.js → useConfig-CgQbKjVT.js} +1 -1
- package/dist/web/assets/useViewHostProps-DFI7Ywo7.js +1 -0
- package/dist/web/assets/{zap-Du2Uc5pa.js → zap-BDWHCVHU.js} +1 -1
- package/dist/web/index.html +10 -10
- package/package.json +2 -2
- package/dist/cdn/CheckboxIndicator-Bt4IICtv.js +0 -251
- package/dist/cdn/PromptsTab-C4LuwyWN.js +0 -901
- package/dist/cdn/card-DgiYnSg-.js +0 -41
- package/dist/cdn/createLucideIcon-C5fZZ6oB.js +0 -38
- package/dist/cdn/providerMeta-BQIfHuNL.js +0 -379
- package/dist/cdn/spinner-jQtC7EBj.js +0 -15
- package/dist/web/assets/AnimatePresence-C5p0yiY1.js +0 -9
- package/dist/web/assets/ChatTab-CsBPVCSc.js +0 -18
- package/dist/web/assets/ConnectionSettingsTab-DQTXfnl1.js +0 -1
- package/dist/web/assets/ElicitationTab-_FKB7nNG.js +0 -1
- package/dist/web/assets/FormContext-DH2caWKO.js +0 -1
- package/dist/web/assets/ListTabHeader-R17w_JsB.js +0 -1
- package/dist/web/assets/PromptsTab-B2uVMRR2.js +0 -15
- package/dist/web/assets/ResourcesTab-DhOZYPjE.js +0 -2
- package/dist/web/assets/SamplingTab-C-oY2hoi.js +0 -1
- package/dist/web/assets/ServerMetadataTab-BkTxO5KS.js +0 -1
- package/dist/web/assets/ToolsTab-DupHgo7A.js +0 -8
- package/dist/web/assets/WidgetWrapper-CZaEVEw4.js +0 -34
- package/dist/web/assets/checkbox-BQ9mI_6k.js +0 -1
- package/dist/web/assets/code-tME-5H6D.js +0 -1
- package/dist/web/assets/createLucideIcon-B3b8EU0b.js +0 -1
- package/dist/web/assets/index-C_fCIJ4C.js +0 -492
- package/dist/web/assets/index-fBX3akc8.css +0 -1
- package/dist/web/assets/input-CLYhA7PK.js +0 -1
- package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +0 -1
- package/dist/web/assets/select-CJ57-Bor.js +0 -1
- package/dist/web/assets/shared-CCC9rTz4.js +0 -1
- package/dist/web/assets/tabs-subtle-246ABJqx.js +0 -1
- package/dist/web/assets/textarea-DLAmNVf_.js +0 -1
- package/dist/web/assets/useViewHostProps-CV5zBxUb.js +0 -1
|
@@ -22,5 +22,9 @@ function r(e) {
|
|
|
22
22
|
function i(e) {
|
|
23
23
|
return r(e) || e.serverInfo?.title?.trim() || e.serverInfo?.name?.trim() || e.name?.trim() || e.url?.trim() || "Unknown server";
|
|
24
24
|
}
|
|
25
|
+
function a(e) {
|
|
26
|
+
let t = e.serverInfo?.icons;
|
|
27
|
+
return t && t.length > 0 ? t[0].src : e.serverInfo?.icon ? e.serverInfo.icon : null;
|
|
28
|
+
}
|
|
25
29
|
//#endregion
|
|
26
|
-
export { n as i, i as n,
|
|
30
|
+
export { n as a, t as i, i as n, a as r, r as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i as e, s as t, t as n } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { G as r,
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as h } from "./
|
|
5
|
-
import "./StatusIcon-
|
|
6
|
-
import { t as g } from "./refresh-cw-
|
|
7
|
-
import { r as _ } from "./ListTabHeader-
|
|
8
|
-
var v =
|
|
2
|
+
import { G as r, a as i, d as a, l as o, n as s, r as c, sr as l, t as u, u as d } from "./input-BCpgLXU1.js";
|
|
3
|
+
import { n as f, t as p } from "./createLucideIcon-BONxC1L5.js";
|
|
4
|
+
import { U as m, t as h } from "./button-CB4uOoUV.js";
|
|
5
|
+
import "./StatusIcon-Q3n3YRtE.js";
|
|
6
|
+
import { t as g } from "./refresh-cw-CyvXrS91.js";
|
|
7
|
+
import { r as _ } from "./ListTabHeader-DzmTtN1e.js";
|
|
8
|
+
var v = p("grip-vertical", [
|
|
9
9
|
["circle", {
|
|
10
10
|
cx: "9",
|
|
11
11
|
cy: "12",
|
|
@@ -52,7 +52,7 @@ var v = h("grip-vertical", [
|
|
|
52
52
|
useGroupRef: () => rt,
|
|
53
53
|
usePanelCallbackRef: () => ct,
|
|
54
54
|
usePanelRef: () => lt
|
|
55
|
-
}), b =
|
|
55
|
+
}), b = f(), x = /* @__PURE__ */ t(n(), 1);
|
|
56
56
|
function S(e, t) {
|
|
57
57
|
let n = getComputedStyle(e);
|
|
58
58
|
return t * parseFloat(n.fontSize);
|
|
@@ -1553,7 +1553,7 @@ var { usePanelRef: ft } = y;
|
|
|
1553
1553
|
function pt({ className: e, ...t }) {
|
|
1554
1554
|
return /* @__PURE__ */ (0, b.jsx)(Qe, {
|
|
1555
1555
|
"data-slot": "resizable-panel-group",
|
|
1556
|
-
className:
|
|
1556
|
+
className: m("flex h-full w-full aria-[orientation=vertical]:flex-col", e),
|
|
1557
1557
|
...t
|
|
1558
1558
|
});
|
|
1559
1559
|
}
|
|
@@ -1566,23 +1566,23 @@ function mt({ ...e }) {
|
|
|
1566
1566
|
function ht({ withHandle: e, className: t, ...n }) {
|
|
1567
1567
|
return /* @__PURE__ */ (0, b.jsx)(dt, {
|
|
1568
1568
|
"data-slot": "resizable-handle",
|
|
1569
|
-
className:
|
|
1569
|
+
className: m("relative z-50 box-content shrink-0", "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1", "before:pointer-events-none before:absolute before:bg-zinc-200 before:transition-[height,width,background-color] before:duration-200 before:ease-out dark:before:bg-zinc-700", "hover:before:bg-foreground/35 dark:hover:before:bg-foreground/45", "aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:py-1.5 aria-[orientation=horizontal]:-my-1.5", "aria-[orientation=horizontal]:before:inset-x-0 aria-[orientation=horizontal]:before:top-1.5 aria-[orientation=horizontal]:before:h-px", "hover:aria-[orientation=horizontal]:before:h-0.5", "aria-[orientation=vertical]:h-full aria-[orientation=vertical]:w-px aria-[orientation=vertical]:px-1.5 aria-[orientation=vertical]:-mx-1.5", "aria-[orientation=vertical]:before:inset-y-0 aria-[orientation=vertical]:before:left-1.5 aria-[orientation=vertical]:before:w-px", "hover:aria-[orientation=vertical]:before:w-0.5", "[&[aria-orientation=horizontal]>div]:rotate-90", t),
|
|
1570
1570
|
...n,
|
|
1571
1571
|
children: e && /* @__PURE__ */ (0, b.jsx)("div", {
|
|
1572
|
-
className: "
|
|
1573
|
-
children: /* @__PURE__ */ (0, b.jsx)(v, { className: "size-2.5" })
|
|
1572
|
+
className: "pointer-events-none absolute top-1/2 left-1/2 z-10 flex h-4 w-3 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-xs border border-zinc-200 bg-background shadow-sm dark:border-zinc-700",
|
|
1573
|
+
children: /* @__PURE__ */ (0, b.jsx)(v, { className: "size-2.5 text-muted-foreground" })
|
|
1574
1574
|
})
|
|
1575
1575
|
});
|
|
1576
1576
|
}
|
|
1577
1577
|
//#endregion
|
|
1578
1578
|
//#region src/client/components/shared/ListItem.tsx
|
|
1579
|
-
function gt({ id: e, isSelected: t, isFocused: n, title: r, description: i, metadata:
|
|
1579
|
+
function gt({ id: e, isSelected: t, isFocused: n, title: r, description: i, metadata: a, onClick: o, className: s, "data-testid": c }) {
|
|
1580
1580
|
return /* @__PURE__ */ (0, b.jsx)("button", {
|
|
1581
1581
|
id: e,
|
|
1582
|
-
"data-testid":
|
|
1582
|
+
"data-testid": c,
|
|
1583
1583
|
type: "button",
|
|
1584
|
-
onClick:
|
|
1585
|
-
className:
|
|
1584
|
+
onClick: o,
|
|
1585
|
+
className: m("w-full text-left cursor-pointer p-2 sm:p-4 border-b dark:border-zinc-700 hover:bg-gray-50 dark:hover:bg-zinc-800/50 transition-colors group", t && "bg-zinc-50 dark:bg-zinc-800 border-l-4 border-l-zinc-500", n && "ring-2 ring-zinc-500 dark:ring-zinc-400 ring-inset", s),
|
|
1586
1586
|
children: /* @__PURE__ */ (0, b.jsxs)("div", {
|
|
1587
1587
|
className: "flex items-start gap-2 sm:gap-3",
|
|
1588
1588
|
children: [/* @__PURE__ */ (0, b.jsxs)("div", {
|
|
@@ -1590,16 +1590,16 @@ function gt({ id: e, isSelected: t, isFocused: n, title: r, description: i, meta
|
|
|
1590
1590
|
children: [/* @__PURE__ */ (0, b.jsx)("div", {
|
|
1591
1591
|
className: "flex items-center gap-2 mb-1",
|
|
1592
1592
|
children: /* @__PURE__ */ (0, b.jsx)("h3", {
|
|
1593
|
-
className:
|
|
1593
|
+
className: m("font-medium truncate font-mono text-sm"),
|
|
1594
1594
|
children: r
|
|
1595
1595
|
})
|
|
1596
1596
|
}), i && /* @__PURE__ */ (0, b.jsx)("p", {
|
|
1597
1597
|
className: "text-sm text-gray-600 dark:text-gray-400 line-clamp-2",
|
|
1598
1598
|
children: i
|
|
1599
1599
|
})]
|
|
1600
|
-
}),
|
|
1600
|
+
}), a && /* @__PURE__ */ (0, b.jsx)("div", {
|
|
1601
1601
|
className: "flex-shrink-0 flex items-center self-center",
|
|
1602
|
-
children:
|
|
1602
|
+
children: a
|
|
1603
1603
|
})]
|
|
1604
1604
|
})
|
|
1605
1605
|
});
|
|
@@ -1610,7 +1610,7 @@ function _t({ className: e, scrollRef: t, children: n }) {
|
|
|
1610
1610
|
let [r, i] = (0, x.useState)(!1);
|
|
1611
1611
|
return /* @__PURE__ */ (0, b.jsx)("div", {
|
|
1612
1612
|
ref: t,
|
|
1613
|
-
className:
|
|
1613
|
+
className: m("h-full overflow-y-auto overscroll-none", e),
|
|
1614
1614
|
onScroll: (e) => i(e.currentTarget.scrollTop > 0),
|
|
1615
1615
|
children: /* @__PURE__ */ (0, b.jsx)("div", {
|
|
1616
1616
|
className: "flex min-h-full flex-col",
|
|
@@ -1620,35 +1620,35 @@ function _t({ className: e, scrollRef: t, children: n }) {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
//#endregion
|
|
1622
1622
|
//#region src/client/components/shared/SearchTabHeader.tsx
|
|
1623
|
-
function vt({ title: e, count: t, icon: n, isSearchExpanded:
|
|
1623
|
+
function vt({ title: e, count: t, icon: n, isSearchExpanded: f, searchQuery: p, searchPlaceholder: m, onSearchExpand: v, onSearchChange: y, onSearchBlur: x, searchInputRef: S, titleTestId: C, bulkAction: w, onRefresh: T, isRefreshing: E = !1, isScrolled: D = !1 }) {
|
|
1624
1624
|
let O = w?.icon;
|
|
1625
1625
|
return /* @__PURE__ */ (0, b.jsxs)("div", {
|
|
1626
|
-
className: `flex flex-row items-center justify-between gap-2 ${
|
|
1626
|
+
className: `flex flex-row items-center justify-between gap-2 ${o(D)} ${d}`,
|
|
1627
1627
|
children: [/* @__PURE__ */ (0, b.jsx)("div", {
|
|
1628
1628
|
className: "flex items-center gap-2 flex-1 min-w-0",
|
|
1629
|
-
children:
|
|
1629
|
+
children: f ? /* @__PURE__ */ (0, b.jsx)(u, {
|
|
1630
1630
|
ref: S,
|
|
1631
|
-
placeholder:
|
|
1632
|
-
value:
|
|
1631
|
+
placeholder: m,
|
|
1632
|
+
value: p,
|
|
1633
1633
|
onChange: (e) => y(e.target.value),
|
|
1634
1634
|
onBlur: x,
|
|
1635
1635
|
className: "h-8 border-gray-300 dark:border-zinc-600"
|
|
1636
1636
|
}) : /* @__PURE__ */ (0, b.jsxs)(b.Fragment, { children: [
|
|
1637
1637
|
/* @__PURE__ */ (0, b.jsxs)("h2", {
|
|
1638
|
-
className: `${
|
|
1638
|
+
className: `${a} flex items-center gap-1.5`,
|
|
1639
1639
|
"data-testid": C,
|
|
1640
1640
|
children: [n ? /* @__PURE__ */ (0, b.jsx)(n, {
|
|
1641
1641
|
className: "h-3.5 w-3.5 shrink-0 text-muted-foreground",
|
|
1642
1642
|
"aria-hidden": !0
|
|
1643
1643
|
}) : null, e]
|
|
1644
1644
|
}),
|
|
1645
|
-
/* @__PURE__ */ (0, b.jsx)(
|
|
1645
|
+
/* @__PURE__ */ (0, b.jsx)(l, {
|
|
1646
1646
|
className: "bg-zinc-500/20 text-zinc-600 dark:text-zinc-400 border-transparent",
|
|
1647
1647
|
variant: "outline",
|
|
1648
1648
|
children: t
|
|
1649
1649
|
}),
|
|
1650
|
-
/* @__PURE__ */ (0, b.jsxs)(
|
|
1651
|
-
render: /* @__PURE__ */ (0, b.jsx)(
|
|
1650
|
+
/* @__PURE__ */ (0, b.jsxs)(s, { children: [/* @__PURE__ */ (0, b.jsx)(i, {
|
|
1651
|
+
render: /* @__PURE__ */ (0, b.jsx)(h, {
|
|
1652
1652
|
variant: "ghost",
|
|
1653
1653
|
size: "sm",
|
|
1654
1654
|
onClick: v,
|
|
@@ -1656,13 +1656,13 @@ function vt({ title: e, count: t, icon: n, isSearchExpanded: a, searchQuery: m,
|
|
|
1656
1656
|
children: /* @__PURE__ */ (0, b.jsx)(r, { className: "h-4 w-4" })
|
|
1657
1657
|
}),
|
|
1658
1658
|
nativeButton: !0
|
|
1659
|
-
}), /* @__PURE__ */ (0, b.jsxs)(
|
|
1659
|
+
}), /* @__PURE__ */ (0, b.jsxs)(c, {
|
|
1660
1660
|
side: "bottom",
|
|
1661
1661
|
className: "flex gap-2",
|
|
1662
1662
|
children: ["Search", /* @__PURE__ */ (0, b.jsx)(_, { children: "F" })]
|
|
1663
1663
|
})] }),
|
|
1664
|
-
T && /* @__PURE__ */ (0, b.jsxs)(
|
|
1665
|
-
render: /* @__PURE__ */ (0, b.jsx)(
|
|
1664
|
+
T && /* @__PURE__ */ (0, b.jsxs)(s, { children: [/* @__PURE__ */ (0, b.jsx)(i, {
|
|
1665
|
+
render: /* @__PURE__ */ (0, b.jsx)(h, {
|
|
1666
1666
|
variant: "ghost",
|
|
1667
1667
|
size: "sm",
|
|
1668
1668
|
onClick: T,
|
|
@@ -1671,7 +1671,7 @@ function vt({ title: e, count: t, icon: n, isSearchExpanded: a, searchQuery: m,
|
|
|
1671
1671
|
children: /* @__PURE__ */ (0, b.jsx)(g, { className: `h-4 w-4 ${E ? "animate-spin" : ""}` })
|
|
1672
1672
|
}),
|
|
1673
1673
|
nativeButton: !0
|
|
1674
|
-
}), /* @__PURE__ */ (0, b.jsxs)(
|
|
1674
|
+
}), /* @__PURE__ */ (0, b.jsxs)(c, {
|
|
1675
1675
|
side: "bottom",
|
|
1676
1676
|
className: "flex gap-2",
|
|
1677
1677
|
children: ["Refresh list", /* @__PURE__ */ (0, b.jsx)(_, { children: "R" })]
|
|
@@ -1679,8 +1679,8 @@ function vt({ title: e, count: t, icon: n, isSearchExpanded: a, searchQuery: m,
|
|
|
1679
1679
|
] })
|
|
1680
1680
|
}), w && O && /* @__PURE__ */ (0, b.jsx)("div", {
|
|
1681
1681
|
className: "flex items-center gap-2",
|
|
1682
|
-
children: /* @__PURE__ */ (0, b.jsxs)(
|
|
1683
|
-
render: /* @__PURE__ */ (0, b.jsx)(
|
|
1682
|
+
children: /* @__PURE__ */ (0, b.jsxs)(s, { children: [/* @__PURE__ */ (0, b.jsx)(i, {
|
|
1683
|
+
render: /* @__PURE__ */ (0, b.jsx)(h, {
|
|
1684
1684
|
variant: "ghost",
|
|
1685
1685
|
size: "sm",
|
|
1686
1686
|
onClick: w.onClick,
|
|
@@ -1689,7 +1689,7 @@ function vt({ title: e, count: t, icon: n, isSearchExpanded: a, searchQuery: m,
|
|
|
1689
1689
|
children: /* @__PURE__ */ (0, b.jsx)(O, { className: "h-4 w-4" })
|
|
1690
1690
|
}),
|
|
1691
1691
|
nativeButton: !0
|
|
1692
|
-
}), /* @__PURE__ */ (0, b.jsx)(
|
|
1692
|
+
}), /* @__PURE__ */ (0, b.jsx)(c, {
|
|
1693
1693
|
side: "bottom",
|
|
1694
1694
|
children: w.label
|
|
1695
1695
|
})] })
|