@arcadeai/design-system 5.0.2 → 5.3.0
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/{clamp-DV0oJUnl.js → CSPContext-_3HefTUC.js} +1 -6
- package/dist/{DialogRoot-xodRxCJ6.js → DialogRoot-DuiSPdsZ.js} +1 -1
- package/dist/{DialogTrigger-BRWKaMYv.js → DialogTrigger-DGGP-2Oc.js} +109 -108
- package/dist/{FloatingPortalLite-e0IaokaG.js → FloatingPortalLite-D5nFwFgJ.js} +1 -1
- package/dist/ReactStore-C3H8e2ha.js +600 -0
- package/dist/{Toggle-waFXW8db.js → Toggle-BdxyK_Ln.js} +1 -1
- package/dist/{accordion-DimUia61.js → accordion-BP9Lgkg8.js} +18 -18
- package/dist/{alert-dialog-BiDZwtP2.js → alert-dialog-1bUE2clB.js} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/tokens.css +1 -1
- package/dist/assets/variables.css +1 -1
- package/dist/{avatar-B-lhJ-Gz.js → avatar-DbL6b01k.js} +4 -3
- package/dist/{checkbox-CZViOGvt.js → checkbox-DB9O_Iw9.js} +96 -85
- package/dist/clamp-BT4ayAnN.js +6 -0
- package/dist/{collapsible-DlF1q_cg.js → collapsible-DP7Fb-Lu.js} +17 -17
- package/dist/components/index.js +257 -251
- package/dist/components/ui/atoms/accordion.js +1 -1
- package/dist/components/ui/atoms/alert-dialog.js +1 -1
- package/dist/components/ui/atoms/avatar.js +1 -1
- package/dist/components/ui/atoms/checkbox.d.ts +16 -2
- package/dist/components/ui/atoms/checkbox.d.ts.map +1 -1
- package/dist/components/ui/atoms/checkbox.js +2 -2
- package/dist/components/ui/atoms/clear-button.d.ts +13 -0
- package/dist/components/ui/atoms/clear-button.d.ts.map +1 -0
- package/dist/components/ui/atoms/clear-button.js +23 -0
- package/dist/components/ui/atoms/collapsible.js +1 -1
- package/dist/components/ui/atoms/dialog.js +2 -2
- package/dist/components/ui/atoms/dropdown-menu.js +1 -1
- package/dist/components/ui/atoms/hover-card.js +1 -1
- package/dist/components/ui/atoms/icon-tile.d.ts +10 -0
- package/dist/components/ui/atoms/icon-tile.d.ts.map +1 -0
- package/dist/components/ui/atoms/icon-tile.js +25 -0
- package/dist/components/ui/atoms/index.d.ts +3 -1
- package/dist/components/ui/atoms/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/index.js +210 -208
- package/dist/components/ui/atoms/input-group.js +1 -1
- package/dist/components/ui/atoms/input.js +1 -1
- package/dist/components/ui/atoms/mobile-tooltip.js +2 -2
- package/dist/components/ui/atoms/popover.js +1 -1
- package/dist/components/ui/atoms/progress.js +1 -1
- package/dist/components/ui/atoms/radio-group.js +1 -1
- package/dist/components/ui/atoms/scroll-area.js +1 -1
- package/dist/components/ui/atoms/scroll-button.js +1 -1
- package/dist/components/ui/atoms/scroll-to-bottom-button.d.ts +24 -0
- package/dist/components/ui/atoms/scroll-to-bottom-button.d.ts.map +1 -0
- package/dist/components/ui/atoms/scroll-to-bottom-button.js +31 -0
- package/dist/components/ui/atoms/select.js +1 -1
- package/dist/components/ui/atoms/sheet.js +2 -2
- package/dist/components/ui/atoms/sidebar.js +2 -2
- package/dist/components/ui/atoms/slider.js +1 -1
- package/dist/components/ui/atoms/switch.js +1 -1
- package/dist/components/ui/atoms/tabs.js +1 -1
- package/dist/components/ui/atoms/toggle-group.js +1 -1
- package/dist/components/ui/atoms/toggle.js +1 -1
- package/dist/components/ui/atoms/tooltip.js +1 -1
- package/dist/components/ui/blocks/demo.js +4 -4
- package/dist/components/ui/index.js +257 -251
- package/dist/components/ui/molecules/avatar-stack.d.ts +32 -0
- package/dist/components/ui/molecules/avatar-stack.d.ts.map +1 -0
- package/dist/components/ui/molecules/avatar-stack.js +91 -0
- package/dist/components/ui/molecules/callout.d.ts +20 -0
- package/dist/components/ui/molecules/callout.d.ts.map +1 -0
- package/dist/components/ui/molecules/callout.js +39 -0
- package/dist/components/ui/molecules/chat-history-item.js +1 -1
- package/dist/components/ui/molecules/chip-body.d.ts +21 -0
- package/dist/components/ui/molecules/chip-body.d.ts.map +1 -0
- package/dist/components/ui/molecules/chip-body.js +21 -0
- package/dist/components/ui/molecules/client-secret-field.js +1 -1
- package/dist/components/ui/molecules/confirm-popover.js +1 -1
- package/dist/components/ui/molecules/date-time-picker.js +2 -2
- package/dist/components/ui/molecules/filter-chip-group.d.ts +26 -0
- package/dist/components/ui/molecules/filter-chip-group.d.ts.map +1 -0
- package/dist/components/ui/molecules/{mcp-server-picker/category-filter.js → filter-chip-group.js} +8 -7
- package/dist/components/ui/molecules/index.d.ts +14 -6
- package/dist/components/ui/molecules/index.d.ts.map +1 -1
- package/dist/components/ui/molecules/index.js +39 -35
- package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.js +18 -15
- package/dist/components/ui/molecules/mcp-server-picker/recommended-tools.js +2 -2
- package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.d.ts +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.js +29 -81
- package/dist/components/ui/molecules/mcp-server-picker/server-card.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-card.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-recommendations.d.ts +12 -0
- package/dist/components/ui/molecules/mcp-server-picker/tool-recommendations.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/{tool-search-band.js → tool-recommendations.js} +6 -6
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.d.ts +6 -6
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.js +21 -33
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-chip.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-chip.js +19 -22
- package/dist/components/ui/molecules/mcp-server-picker/unoptimized-match-card.js +1 -1
- package/dist/components/ui/molecules/message.js +2 -2
- package/dist/components/ui/molecules/prompt-input.js +1 -1
- package/dist/components/ui/molecules/removable-chip.d.ts.map +1 -0
- package/dist/components/ui/{atoms → molecules}/removable-chip.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +1 -1
- package/dist/components/ui/molecules/tool-call-accordion.js +2 -2
- package/dist/components/ui/molecules/tool-card.js +2 -2
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/undo-toast.d.ts +47 -0
- package/dist/components/ui/molecules/undo-toast.d.ts.map +1 -0
- package/dist/components/ui/molecules/undo-toast.js +3 -0
- package/dist/components/ui/molecules/user-nav.js +2 -2
- package/dist/components/ui/organisms/mcp-selection-summary-bar.d.ts.map +1 -1
- package/dist/components/ui/organisms/mcp-selection-summary-bar.js +27 -30
- package/dist/{dropdown-menu-CWWN1cXs.js → dropdown-menu-ecggVuhu.js} +202 -199
- package/dist/{getPseudoElementBounds-D_dlkPnQ.js → getPseudoElementBounds-BOe22aYl.js} +3 -3
- package/dist/{hover-card-GELKDadU.js → hover-card-CGLPPPPP.js} +71 -70
- package/dist/{input-DZfZK6b1.js → input-DZTqcpe-.js} +1 -1
- package/dist/main.js +263 -257
- package/dist/metadata/oauth-providers.d.ts +2 -0
- package/dist/metadata/oauth-providers.d.ts.map +1 -1
- package/dist/metadata/oauth-providers.js +153 -141
- package/dist/{popover-Cne_hQUh.js → popover-CpLkQtT5.js} +129 -128
- package/dist/popupStateMapping-XiLS0Jku.js +643 -0
- package/dist/{progress-D71iUjvg.js → progress-BqG0PtAD.js} +1 -1
- package/dist/{radio-group-CTqA-p0w.js → radio-group-BpMluqfv.js} +8 -7
- package/dist/{safePolygon-os2F06tc.js → safePolygon-DmV1hDsw.js} +35 -34
- package/dist/{scroll-area-C0KbhRES.js → scroll-area-D7iOy7xj.js} +4 -3
- package/dist/{scrollEdges-CHZpP0us.js → scrollEdges-Dck9qFyQ.js} +1 -1
- package/dist/{select-RvAj5g6e.js → select-DFWNXxvZ.js} +179 -176
- package/dist/{slider-Bhn1ogwZ.js → slider-ClXWRpwI.js} +4 -3
- package/dist/{store-C-KXBzZ0.js → store-D7k1qIkZ.js} +23 -22
- package/dist/{switch-D8M0xvzp.js → switch-DlxZDt6o.js} +3 -3
- package/dist/{tabs-ttkDuwww.js → tabs-Cj3LY-7F.js} +9 -8
- package/dist/{toggle-group-CL_MBwuU.js → toggle-group-CmP4iHEJ.js} +1 -1
- package/dist/{tooltip-ZIywOFGf.js → tooltip-BUR7V5Aa.js} +197 -196
- package/dist/{ui-CttBuHXi.js → ui-46pgiw5T.js} +2 -2
- package/dist/undo-toast-Cf4T6ToX.js +898 -0
- package/dist/{useAnchoredPopupScrollLock-a2b_Frjv.js → useAnchoredPopupScrollLock-CnoPUwXv.js} +1 -1
- package/dist/{useAriaLabelledBy-WyUZP7Yf.js → useAriaLabelledBy-DJZioWd6.js} +1 -1
- package/dist/useBaseUiId-CXSJgVcI.js +8 -0
- package/dist/{useCollapsiblePanel-B6XZh6zH.js → useCollapsiblePanel-BPbcE70S.js} +15 -14
- package/dist/{useFocus-DwJfNYN6.js → useFocus-B_SrhX9q.js} +10 -10
- package/dist/{useBaseUiId-voePHgyX.js → useId-Bzr7_bed.js} +1 -6
- package/dist/{useLabelableId-CC2YaILf.js → useLabelableId-9jrDGk5d.js} +1 -1
- package/dist/useOpenChangeComplete-CVIwfcpl.js +80 -0
- package/dist/{useOpenInteractionType-DQhvPqO3.js → useOpenInteractionType-INvHftZi.js} +29 -28
- package/dist/{usePositioner-DkeyI5Le.js → usePositioner-CaLGGc-z.js} +98 -97
- package/dist/useTransitionStatus-CCIoL5RH.js +51 -0
- package/dist/{useTriggerFocusGuards-Qi8iK-AK.js → useTriggerFocusGuards-Dlv8KvSm.js} +7 -7
- package/package.json +1 -1
- package/dist/components/ui/atoms/removable-chip.d.ts.map +0 -1
- package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.d.ts +0 -31
- package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.d.ts.map +0 -1
- package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.js +0 -106
- package/dist/components/ui/molecules/mcp-server-picker/category-filter.d.ts +0 -18
- package/dist/components/ui/molecules/mcp-server-picker/category-filter.d.ts.map +0 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts +0 -12
- package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts.map +0 -1
- package/dist/popupStateMapping-C8W76brO.js +0 -1221
- package/dist/useOpenChangeComplete-Bs6gnxd9.js +0 -127
- /package/dist/components/ui/{atoms → molecules}/removable-chip.d.ts +0 -0
|
@@ -12,5 +12,5 @@ export type McpServerAvatarStackProps = {
|
|
|
12
12
|
overflowLabel?: string;
|
|
13
13
|
onOpenMcpServer?: (id: string) => void;
|
|
14
14
|
} & Omit<React.ComponentProps<"span">, "children">;
|
|
15
|
-
export declare function McpServerAvatarStack({ servers, maxVisible, overflowLabel, onOpenMcpServer,
|
|
15
|
+
export declare function McpServerAvatarStack({ servers, maxVisible, overflowLabel, onOpenMcpServer, ...rest }: McpServerAvatarStackProps): React.JSX.Element | null;
|
|
16
16
|
//# sourceMappingURL=server-avatar-stack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-avatar-stack.d.ts","sourceRoot":"","sources":["../../../../../lib/components/ui/molecules/mcp-server-picker/server-avatar-stack.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"server-avatar-stack.d.ts","sourceRoot":"","sources":["../../../../../lib/components/ui/molecules/mcp-server-picker/server-avatar-stack.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAOpC,MAAM,MAAM,wBAAwB,GAAG;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,EAAE,wBAAwB,EAAE,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,CAAC;AAEnD,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,UAAc,EACd,aAAkC,EAClC,eAAe,EACf,GAAG,IAAI,EACR,EAAE,yBAAyB,4BA+B3B"}
|
|
@@ -1,99 +1,47 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { McpToolkitAvatar as o } from "./toolkit-avatar.js";
|
|
7
|
-
import { useState as s } from "react";
|
|
8
|
-
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
3
|
+
import { AvatarStack as e } from "../avatar-stack.js";
|
|
4
|
+
import { McpToolkitAvatar as t } from "./toolkit-avatar.js";
|
|
5
|
+
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
9
6
|
//#region lib/components/ui/molecules/mcp-server-picker/server-avatar-stack.tsx
|
|
10
|
-
function
|
|
11
|
-
if (
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
function f({ label: e, servers: o, onOpenMcpServer: c }) {
|
|
33
|
-
let [d, f] = s(!1), m = o.length, h = m === 1 ? "server" : "servers", g = `Show ${m} ${e}`;
|
|
34
|
-
return /* @__PURE__ */ u(i, {
|
|
35
|
-
onOpenChange: f,
|
|
36
|
-
open: d,
|
|
37
|
-
children: [/* @__PURE__ */ u(r, {
|
|
38
|
-
"aria-label": g,
|
|
39
|
-
className: "inline-flex size-[18px] cursor-pointer items-center justify-center rounded-full bg-foreground/8 font-medium text-[9px] text-muted-foreground tabular-nums transition-colors hover:bg-foreground/12 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60",
|
|
40
|
-
title: g,
|
|
41
|
-
type: "button",
|
|
42
|
-
children: ["+", m]
|
|
43
|
-
}), /* @__PURE__ */ u(n, {
|
|
44
|
-
align: "start",
|
|
45
|
-
className: "w-56 gap-0 p-0",
|
|
46
|
-
sideOffset: 6,
|
|
47
|
-
children: [/* @__PURE__ */ u(t, {
|
|
48
|
-
className: "px-3 pt-2.5 pb-1.5 font-medium text-foreground text-xs",
|
|
49
|
-
children: [
|
|
50
|
-
m,
|
|
51
|
-
" more MCP ",
|
|
52
|
-
h
|
|
53
|
-
]
|
|
54
|
-
}), /* @__PURE__ */ l(a, {
|
|
55
|
-
className: "max-h-72",
|
|
56
|
-
orientation: "vertical",
|
|
57
|
-
type: "hover",
|
|
58
|
-
children: /* @__PURE__ */ l("ul", {
|
|
59
|
-
className: "flex flex-col py-1",
|
|
60
|
-
children: o.map((e) => /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(p, {
|
|
61
|
-
onOpenMcpServer: c ? (e) => {
|
|
62
|
-
f(!1), c(e);
|
|
63
|
-
} : void 0,
|
|
64
|
-
server: e
|
|
65
|
-
}) }, e.id))
|
|
66
|
-
})
|
|
67
|
-
})]
|
|
68
|
-
})]
|
|
7
|
+
function a({ servers: n, maxVisible: i = 5, overflowLabel: a = "more MCP servers", onOpenMcpServer: s, ...c }) {
|
|
8
|
+
if (n.length === 0) return null;
|
|
9
|
+
let l = n.map((e) => ({
|
|
10
|
+
id: e.id,
|
|
11
|
+
avatar: /* @__PURE__ */ r(t, {
|
|
12
|
+
name: e.name,
|
|
13
|
+
size: "xs",
|
|
14
|
+
title: e.name,
|
|
15
|
+
toolkitId: e.toolkitId
|
|
16
|
+
}),
|
|
17
|
+
overflowRow: /* @__PURE__ */ r(o, { server: e }),
|
|
18
|
+
overflowRowLabel: `Open ${e.name} tools`,
|
|
19
|
+
onSelect: s ? () => s(e.id) : void 0
|
|
20
|
+
}));
|
|
21
|
+
return /* @__PURE__ */ r(e, {
|
|
22
|
+
...c,
|
|
23
|
+
items: l,
|
|
24
|
+
maxVisible: i,
|
|
25
|
+
overflowLabel: a,
|
|
26
|
+
renderOverflowHeader: (e) => `${e} more MCP ${e === 1 ? "server" : "servers"}`
|
|
69
27
|
});
|
|
70
28
|
}
|
|
71
|
-
function
|
|
72
|
-
|
|
73
|
-
/* @__PURE__ */
|
|
29
|
+
function o({ server: e }) {
|
|
30
|
+
return /* @__PURE__ */ i(n, { children: [
|
|
31
|
+
/* @__PURE__ */ r(t, {
|
|
74
32
|
name: e.name,
|
|
75
33
|
size: "sm",
|
|
76
34
|
toolkitId: e.toolkitId
|
|
77
35
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ r("span", {
|
|
79
37
|
className: "min-w-0 flex-1 truncate font-medium capitalize",
|
|
80
38
|
children: e.name
|
|
81
39
|
}),
|
|
82
|
-
e.selectedCount != null && e.total != null ? /* @__PURE__ */
|
|
40
|
+
e.selectedCount != null && e.total != null ? /* @__PURE__ */ r("span", {
|
|
83
41
|
className: "shrink-0 text-[10px] text-muted-foreground tabular-nums",
|
|
84
42
|
children: e.selectedCount === e.total ? `${e.total}` : `${e.selectedCount}/${e.total}`
|
|
85
43
|
}) : null
|
|
86
44
|
] });
|
|
87
|
-
return t ? /* @__PURE__ */ l("button", {
|
|
88
|
-
"aria-label": `Open ${e.name} tools`,
|
|
89
|
-
className: "flex w-full cursor-pointer items-center gap-2 px-3 py-1.5 text-left text-xs transition-colors hover:bg-foreground/[0.06] focus-visible:bg-foreground/[0.06] focus-visible:outline-none",
|
|
90
|
-
onClick: () => t(e.id),
|
|
91
|
-
type: "button",
|
|
92
|
-
children: n
|
|
93
|
-
}) : /* @__PURE__ */ l("div", {
|
|
94
|
-
className: "flex w-full items-center gap-2 px-3 py-1.5 text-left text-xs",
|
|
95
|
-
children: n
|
|
96
|
-
});
|
|
97
45
|
}
|
|
98
46
|
//#endregion
|
|
99
|
-
export {
|
|
47
|
+
export { a as McpServerAvatarStack };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import { cn as e } from "../../../../lib/utils.js";
|
|
4
4
|
import { t } from "../../../../dist-Ber_p4PA.js";
|
|
5
|
-
import { i as n, n as r, r as i, t as a } from "../../../../tooltip-
|
|
5
|
+
import { i as n, n as r, r as i, t as a } from "../../../../tooltip-BUR7V5Aa.js";
|
|
6
6
|
import { McpToolkitAvatar as o } from "./toolkit-avatar.js";
|
|
7
7
|
import * as s from "react";
|
|
8
8
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { cn as e } from "../../../../lib/utils.js";
|
|
4
|
-
import { i as t, n, r, t as i } from "../../../../tooltip-
|
|
4
|
+
import { i as t, n, r, t as i } from "../../../../tooltip-BUR7V5Aa.js";
|
|
5
5
|
import "./constants.js";
|
|
6
6
|
import * as a from "react";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type McpToolRecommendationsState = "on" | "off";
|
|
3
|
+
export type McpToolRecommendationsProps = {
|
|
4
|
+
state: McpToolRecommendationsState;
|
|
5
|
+
onToggle?: (checked: boolean) => void;
|
|
6
|
+
} & Omit<React.ComponentProps<"label">, "children" | "onToggle">;
|
|
7
|
+
/**
|
|
8
|
+
* Presentational Tool Recommendations opt-in for the MCP picker. The whole card
|
|
9
|
+
* is a `<label>` for the checkbox, so a click anywhere on it toggles.
|
|
10
|
+
*/
|
|
11
|
+
export declare function McpToolRecommendations({ state, onToggle, className, ...rest }: McpToolRecommendationsProps): React.JSX.Element;
|
|
12
|
+
//# sourceMappingURL=tool-recommendations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-recommendations.d.ts","sourceRoot":"","sources":["../../../../../lib/components/ui/molecules/mcp-server-picker/tool-recommendations.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAKpC,MAAM,MAAM,2BAA2B,GAAG,IAAI,GAAG,KAAK,CAAC;AAEvD,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,2BAA2B,CAAC;IACnC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;AAEjE;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,2BAA2B,qBAoC7B"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { cn as e } from "../../../../lib/utils.js";
|
|
4
|
-
import { t } from "../../../../checkbox-
|
|
4
|
+
import { t } from "../../../../checkbox-DB9O_Iw9.js";
|
|
5
5
|
import { useId as n } from "react";
|
|
6
6
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
7
|
-
//#region lib/components/ui/molecules/mcp-server-picker/tool-
|
|
7
|
+
//#region lib/components/ui/molecules/mcp-server-picker/tool-recommendations.tsx
|
|
8
8
|
function a({ state: a, onToggle: o, className: s, ...c }) {
|
|
9
9
|
let l = a === "on", u = n();
|
|
10
10
|
return /* @__PURE__ */ i("label", {
|
|
11
11
|
...c,
|
|
12
12
|
className: e("flex cursor-pointer items-start gap-3 rounded-lg border px-4 py-3 transition-colors", l ? "border-foreground/20 bg-muted/30" : "border-border/60 bg-muted/10 hover:border-foreground/25", s),
|
|
13
|
-
"data-slot": "mcp-tool-
|
|
13
|
+
"data-slot": "mcp-tool-recommendations",
|
|
14
14
|
"data-status": a,
|
|
15
15
|
htmlFor: u,
|
|
16
16
|
children: [/* @__PURE__ */ r(t, {
|
|
17
|
-
"aria-label": `
|
|
17
|
+
"aria-label": `Tool Recommendations ${l ? "on" : "off"}`,
|
|
18
18
|
checked: l,
|
|
19
19
|
className: "mt-0.5",
|
|
20
20
|
id: u,
|
|
@@ -23,7 +23,7 @@ function a({ state: a, onToggle: o, className: s, ...c }) {
|
|
|
23
23
|
className: "min-w-0",
|
|
24
24
|
children: [/* @__PURE__ */ r("p", {
|
|
25
25
|
className: "font-semibold text-[15px] text-foreground leading-5",
|
|
26
|
-
children: "
|
|
26
|
+
children: "Tool Recommendations"
|
|
27
27
|
}), /* @__PURE__ */ r("p", {
|
|
28
28
|
className: "mt-1 text-[13px] text-muted-foreground leading-snug",
|
|
29
29
|
children: "Your agent fetches only the tools relevant to each task, saving tokens and keeping responses focused."
|
|
@@ -32,4 +32,4 @@ function a({ state: a, onToggle: o, className: s, ...c }) {
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
//#endregion
|
|
35
|
-
export { a as
|
|
35
|
+
export { a as McpToolRecommendations };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IconTileProps } from '../../atoms/icon-tile';
|
|
2
2
|
import { ClassProp } from 'class-variance-authority/types';
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
declare const avatarVariants: (props?: ({
|
|
5
|
-
size?: "xs" | "sm" | "lg" | "md" | null | undefined;
|
|
6
|
-
} & ClassProp) | undefined) => string;
|
|
7
4
|
export type McpToolkitAvatarProps = {
|
|
8
5
|
/** Toolkit display name — used for the letter fallback. */
|
|
9
6
|
name: string;
|
|
10
7
|
/** Toolkit ID — used to look up the brand icon. Omit to force fallback. */
|
|
11
8
|
toolkitId?: string;
|
|
12
|
-
} &
|
|
9
|
+
} & Pick<IconTileProps, "size"> & Omit<React.ComponentProps<"span">, "children">;
|
|
13
10
|
declare function McpToolkitAvatarImpl({ name, toolkitId, size, className, ...rest }: McpToolkitAvatarProps): React.JSX.Element;
|
|
14
11
|
export declare const McpToolkitAvatar: React.MemoExoticComponent<typeof McpToolkitAvatarImpl>;
|
|
15
|
-
export
|
|
12
|
+
export declare const mcpToolkitAvatarVariants: (props?: ({
|
|
13
|
+
size?: "xs" | "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
14
|
+
} & ClassProp) | undefined) => string;
|
|
15
|
+
export {};
|
|
16
16
|
//# sourceMappingURL=toolkit-avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolkit-avatar.d.ts","sourceRoot":"","sources":["../../../../../lib/components/ui/molecules/mcp-server-picker/toolkit-avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"toolkit-avatar.d.ts","sourceRoot":"","sources":["../../../../../lib/components/ui/molecules/mcp-server-picker/toolkit-avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,KAAK,aAAa,EAEnB,MAAM,iCAAiC,CAAC;AA2BzC,MAAM,MAAM,qBAAqB,GAAG;IAClC,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,GAC7B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,CAAC;AAEjD,iBAAS,oBAAoB,CAAC,EAC5B,IAAI,EACJ,SAAS,EACT,IAAW,EACX,SAAS,EACT,GAAG,IAAI,EACR,EAAE,qBAAqB,qBA8BvB;AAED,eAAO,MAAM,gBAAgB,wDAAmC,CAAC;AACjE,eAAO,MAAM,wBAAwB;;8EAAmB,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { cn as e } from "../../../../lib/utils.js";
|
|
4
|
-
import { t } from "
|
|
5
|
-
import { resolveToolkitIcon as
|
|
6
|
-
import * as
|
|
7
|
-
import { jsx as
|
|
4
|
+
import { IconTile as t, iconTileVariants as n } from "../../atoms/icon-tile.js";
|
|
5
|
+
import { resolveToolkitIcon as r } from "../../../../metadata/toolkit-icons.js";
|
|
6
|
+
import * as i from "react";
|
|
7
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
8
8
|
//#region lib/components/ui/molecules/mcp-server-picker/toolkit-avatar.tsx
|
|
9
|
-
var
|
|
9
|
+
var o = [
|
|
10
10
|
"text-brand-text",
|
|
11
11
|
"text-brand-fuchsia",
|
|
12
12
|
"text-brand-red",
|
|
@@ -14,43 +14,31 @@ var a = [
|
|
|
14
14
|
"text-brand-navy",
|
|
15
15
|
"text-brand-green"
|
|
16
16
|
];
|
|
17
|
-
function
|
|
17
|
+
function s(e) {
|
|
18
18
|
let t = 0;
|
|
19
19
|
for (let n of e) t = (t * 31 + n.charCodeAt(0)) % 1000003;
|
|
20
|
-
return
|
|
20
|
+
return o[t % o.length] ?? o[0];
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
md: "size-7 rounded-md text-xs",
|
|
27
|
-
lg: "size-9 rounded-md text-sm"
|
|
28
|
-
} },
|
|
29
|
-
defaultVariants: { size: "md" }
|
|
30
|
-
}), c = {
|
|
31
|
-
xs: "size-3",
|
|
32
|
-
sm: "size-3.5",
|
|
33
|
-
md: "size-4",
|
|
34
|
-
lg: "size-5"
|
|
35
|
-
};
|
|
36
|
-
function l({ name: t, toolkitId: r, size: a = "md", className: l, ...u }) {
|
|
37
|
-
let { Icon: d, hasBrandIcon: f } = n(r), p = a ?? "md";
|
|
38
|
-
return f ? /* @__PURE__ */ i("span", {
|
|
39
|
-
...u,
|
|
22
|
+
function c({ name: n, toolkitId: i, size: o = "md", className: c, ...l }) {
|
|
23
|
+
let { Icon: u, hasBrandIcon: d } = r(i);
|
|
24
|
+
return d ? /* @__PURE__ */ a(t, {
|
|
25
|
+
...l,
|
|
40
26
|
"aria-hidden": !0,
|
|
41
|
-
className:
|
|
27
|
+
className: c,
|
|
42
28
|
"data-slot": "mcp-toolkit-avatar",
|
|
43
29
|
"data-variant": "brand",
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
30
|
+
size: o,
|
|
31
|
+
children: /* @__PURE__ */ a(u, {})
|
|
32
|
+
}) : /* @__PURE__ */ a(t, {
|
|
33
|
+
...l,
|
|
47
34
|
"aria-hidden": !0,
|
|
48
|
-
className: e(s(
|
|
35
|
+
className: e(s(n), c),
|
|
49
36
|
"data-slot": "mcp-toolkit-avatar",
|
|
50
37
|
"data-variant": "fallback",
|
|
51
|
-
|
|
38
|
+
size: o,
|
|
39
|
+
children: n.charAt(0)
|
|
52
40
|
});
|
|
53
41
|
}
|
|
54
|
-
var
|
|
42
|
+
var l = i.memo(c), u = n;
|
|
55
43
|
//#endregion
|
|
56
|
-
export {
|
|
44
|
+
export { l as McpToolkitAvatar, u as mcpToolkitAvatarVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolkit-chip.d.ts","sourceRoot":"","sources":["../../../../../lib/components/ui/molecules/mcp-server-picker/toolkit-chip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"toolkit-chip.d.ts","sourceRoot":"","sources":["../../../../../lib/components/ui/molecules/mcp-server-picker/toolkit-chip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAKpC,MAAM,MAAM,mBAAmB,GAAG;IAChC,iEAAiE;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAElD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,SAAS,EACT,KAAK,EACL,aAAa,EACb,KAAa,EACb,SAAiB,EACjB,MAAM,EACN,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,mBAAmB,qBAsCrB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import { RemovableChip as e
|
|
3
|
+
import { RemovableChip as e } from "../removable-chip.js";
|
|
4
|
+
import { ChipBody as t } from "../chip-body.js";
|
|
4
5
|
import { McpToolkitAvatar as n } from "./toolkit-avatar.js";
|
|
5
6
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
7
|
//#region lib/components/ui/molecules/mcp-server-picker/toolkit-chip.tsx
|
|
@@ -12,29 +13,25 @@ function a({ name: a, toolkitId: o, total: s, selectedCount: c, added: l = !1, i
|
|
|
12
13
|
"data-status": g,
|
|
13
14
|
onRemove: f,
|
|
14
15
|
removeLabel: m,
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
+
children: /* @__PURE__ */ r(t, {
|
|
16
17
|
"aria-label": h,
|
|
18
|
+
count: u && c != null && s != null ? /* @__PURE__ */ i("span", {
|
|
19
|
+
className: "shrink-0 text-[10px] text-muted-foreground tabular-nums",
|
|
20
|
+
children: [
|
|
21
|
+
c,
|
|
22
|
+
"/",
|
|
23
|
+
s
|
|
24
|
+
]
|
|
25
|
+
}) : null,
|
|
26
|
+
icon: /* @__PURE__ */ r(n, {
|
|
27
|
+
name: a,
|
|
28
|
+
size: "sm",
|
|
29
|
+
toolkitId: o
|
|
30
|
+
}),
|
|
31
|
+
label: a,
|
|
32
|
+
labelClassName: "max-w-44 truncate capitalize",
|
|
17
33
|
onClick: d,
|
|
18
|
-
title: h
|
|
19
|
-
children: [
|
|
20
|
-
/* @__PURE__ */ r(n, {
|
|
21
|
-
name: a,
|
|
22
|
-
size: "sm",
|
|
23
|
-
toolkitId: o
|
|
24
|
-
}),
|
|
25
|
-
/* @__PURE__ */ r("span", {
|
|
26
|
-
className: "max-w-44 truncate font-medium capitalize",
|
|
27
|
-
children: a
|
|
28
|
-
}),
|
|
29
|
-
u && c != null && s != null ? /* @__PURE__ */ i("span", {
|
|
30
|
-
className: "shrink-0 text-[10px] text-muted-foreground tabular-nums",
|
|
31
|
-
children: [
|
|
32
|
-
c,
|
|
33
|
-
"/",
|
|
34
|
-
s
|
|
35
|
-
]
|
|
36
|
-
}) : null
|
|
37
|
-
]
|
|
34
|
+
title: h
|
|
38
35
|
})
|
|
39
36
|
});
|
|
40
37
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { cn as e } from "../../../../lib/utils.js";
|
|
4
|
-
import { i as t, n, r, t as i } from "../../../../tooltip-
|
|
4
|
+
import { i as t, n, r, t as i } from "../../../../tooltip-BUR7V5Aa.js";
|
|
5
5
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
6
|
import { Braces as c, Info as l } from "lucide-react";
|
|
7
7
|
//#region lib/components/ui/molecules/mcp-server-picker/unoptimized-match-card.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn as e } from "../../../lib/utils.js";
|
|
2
|
-
import { i as t, n, r, t as i } from "../../../tooltip-
|
|
3
|
-
import { o as a, r as o, t as s } from "../../../avatar-
|
|
2
|
+
import { i as t, n, r, t as i } from "../../../tooltip-BUR7V5Aa.js";
|
|
3
|
+
import { o as a, r as o, t as s } from "../../../avatar-DbL6b01k.js";
|
|
4
4
|
import { t as c } from "../../../markdown-BzQfFDNF.js";
|
|
5
5
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
6
|
//#region lib/components/ui/molecules/message.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn as e } from "../../../lib/utils.js";
|
|
2
|
-
import { i as t, n, r, t as i } from "../../../tooltip-
|
|
2
|
+
import { i as t, n, r, t as i } from "../../../tooltip-BUR7V5Aa.js";
|
|
3
3
|
import { Textarea as a } from "../atoms/textarea.js";
|
|
4
4
|
import o, { createContext as s, useContext as c, useLayoutEffect as l, useRef as u, useState as d } from "react";
|
|
5
5
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removable-chip.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/removable-chip.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,mBAAmB,0WACgV,CAAC;AAE1W,MAAM,MAAM,kBAAkB,GAAG;IAC/B,2DAA2D;IAC3D,WAAW,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAElD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAC5B,WAAW,EACX,QAAQ,EACR,MAAc,EACd,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,kBAAkB,qBA2BpB;AAED,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAC9B,MAAM,CACP,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,qBAY1B;AAED,OAAO,EAAE,mBAAmB,IAAI,wBAAwB,EAAE,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { cn as e } from "../../../lib/utils.js";
|
|
4
4
|
import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
5
|
import { X as i } from "lucide-react";
|
|
6
|
-
//#region lib/components/ui/
|
|
6
|
+
//#region lib/components/ui/molecules/removable-chip.tsx
|
|
7
7
|
var a = "inline-flex cursor-pointer items-center gap-1.5 transition-[background-color,color,transform] duration-[var(--duration-fast)] ease-[var(--ease-smooth)] hover:bg-foreground/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-inset active:scale-[0.98] motion-reduce:transition-colors motion-reduce:active:scale-100";
|
|
8
8
|
function o({ removeLabel: a, onRemove: o, active: s = !1, children: c, className: l, ...u }) {
|
|
9
9
|
return /* @__PURE__ */ r("div", {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n } from "../../../ui-
|
|
1
|
+
import { i as e, n as t, r as n } from "../../../ui-46pgiw5T.js";
|
|
2
2
|
export { t as OAuthBadge, n as RequirementBadges, e as SecretsBadge };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import { i as e, n as t, r as n, t as r } from "../../../accordion-
|
|
3
|
+
import { i as e, n as t, r as n, t as r } from "../../../accordion-BP9Lgkg8.js";
|
|
4
4
|
import { cn as i } from "../../../lib/utils.js";
|
|
5
5
|
import { t as a } from "../../../dist-Ber_p4PA.js";
|
|
6
|
-
import { n as o, r as s, t as c } from "../../../collapsible-
|
|
6
|
+
import { n as o, r as s, t as c } from "../../../collapsible-DP7Fb-Lu.js";
|
|
7
7
|
import { CopyButton as l } from "../atoms/copy-button.js";
|
|
8
8
|
import { JsonHighlight as u } from "../atoms/json-highlight.js";
|
|
9
9
|
import * as d from "react";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { cn as e } from "../../../lib/utils.js";
|
|
4
4
|
import { t } from "../../../button-BdQxLUOB.js";
|
|
5
5
|
import { Card as n, CardContent as r } from "../atoms/card.js";
|
|
6
|
-
import { t as i } from "../../../checkbox-
|
|
7
|
-
import { n as a, r as o, t as s } from "../../../collapsible-
|
|
6
|
+
import { t as i } from "../../../checkbox-DB9O_Iw9.js";
|
|
7
|
+
import { n as a, r as o, t as s } from "../../../collapsible-DP7Fb-Lu.js";
|
|
8
8
|
import { createPropsComparator as c } from "../utils/memo.js";
|
|
9
9
|
import { useIsTruncated as l } from "../../../hooks/use-is-truncated.js";
|
|
10
10
|
import * as u from "react";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type UndoToastOptions = {
|
|
3
|
+
/** Human description of the change being offered for undo. */
|
|
4
|
+
message: string;
|
|
5
|
+
/** Optional leading glyph shown before the message. */
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
/** Label for the reversing action button. @default "Undo" */
|
|
8
|
+
actionLabel?: string;
|
|
9
|
+
/** Reverses the edit. */
|
|
10
|
+
onUndo: () => void;
|
|
11
|
+
/** Fires on any close — the action, the ✕, a swipe, or the auto-dismiss. */
|
|
12
|
+
onDismiss?: () => void;
|
|
13
|
+
/** Auto-dismiss delay for this toast. Falls back to the provider's value. */
|
|
14
|
+
dismissMs?: number;
|
|
15
|
+
};
|
|
16
|
+
export type UndoToastProviderProps = {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Anchor the toast inside this element instead of the document body — pass the
|
|
20
|
+
* picker's relatively-positioned shell so the pill sits over the list.
|
|
21
|
+
*/
|
|
22
|
+
container?: HTMLElement | null;
|
|
23
|
+
/** Extra classes for the positioning viewport. */
|
|
24
|
+
className?: string;
|
|
25
|
+
/** Default auto-dismiss delay. @default 4000 */
|
|
26
|
+
dismissMs?: number;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Base UI Toast–powered undo affordance. Base UI owns the auto-dismiss timer,
|
|
30
|
+
* pause-on-hover/focus, enter/exit animation, and swipe-to-dismiss; this wrapper
|
|
31
|
+
* only supplies single-slot semantics (a stable toast id), an anchored viewport,
|
|
32
|
+
* and the pill styling.
|
|
33
|
+
*
|
|
34
|
+
* Wrap the region in `UndoToastProvider`, then call `useUndoToast().show(...)`
|
|
35
|
+
* from any descendant.
|
|
36
|
+
*/
|
|
37
|
+
export declare function UndoToastProvider({ children, container, className, dismissMs, }: UndoToastProviderProps): React.JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* Imperative handle for the undo toast: `show()` opens (or replaces) the pill,
|
|
40
|
+
* `dismiss()` closes it. Must be called under an `UndoToastProvider`. Both
|
|
41
|
+
* callbacks are stable, so they're safe to list in effect dependencies.
|
|
42
|
+
*/
|
|
43
|
+
export declare function useUndoToast(): {
|
|
44
|
+
show: ({ message, icon, actionLabel, onUndo, onDismiss, dismissMs, }: UndoToastOptions) => "mcp-undo-toast";
|
|
45
|
+
dismiss: () => void;
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=undo-toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"undo-toast.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/undo-toast.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAiBpC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,8DAA8D;IAC9D,OAAO,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yBAAyB;IACzB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC/B,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,SAAS,EACT,SAAS,EACT,SAA8B,GAC/B,EAAE,sBAAsB,qBAmBxB;AA8CD;;;;GAIG;AACH,wBAAgB,YAAY;0EAWrB,gBAAgB;;EA2CtB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn as e } from "../../../lib/utils.js";
|
|
2
2
|
import { t } from "../../../button-BdQxLUOB.js";
|
|
3
|
-
import { o as n, r, t as i } from "../../../avatar-
|
|
4
|
-
import { h as a, o, r as s, t as c, u as l } from "../../../dropdown-menu-
|
|
3
|
+
import { o as n, r, t as i } from "../../../avatar-DbL6b01k.js";
|
|
4
|
+
import { h as a, o, r as s, t as c, u as l } from "../../../dropdown-menu-ecggVuhu.js";
|
|
5
5
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
6
|
import { ChevronsUpDownIcon as p } from "lucide-react";
|
|
7
7
|
//#region lib/components/ui/molecules/user-nav.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-selection-summary-bar.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/organisms/mcp-selection-summary-bar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mcp-selection-summary-bar.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/organisms/mcp-selection-summary-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,0DAA0D,CAAC;AAGlE,MAAM,MAAM,4BAA4B,GAAG;IACzC,8DAA8D;IAC9D,EAAE,EAAE,MAAM,CAAC;CACZ,GAAG,IAAI,CAAC,mBAAmB,EAAE,QAAQ,GAAG,UAAU,CAAC,CAAC;AAErD,MAAM,MAAM,2BAA2B,GAAG;IACxC;;;;;;;;;OASG;IACH,UAAU,EAAE,4BAA4B,EAAE,CAAC;IAC3C;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAClD;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,4CAA4C;IAC5C,WAAW,CAAC,EAAE,uBAAuB,CAAC,YAAY,CAAC,CAAC;IACpD,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,6DAA6D;IAC7D,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,wDAAwD;IACxD,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,8DAA8D;IAC9D,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,mDAAmD;IACnD,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;AAE/D;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,UAAU,EACV,qBAA0B,EAC1B,SAAS,EACT,SAAiB,EACjB,oBAA4B,EAC5B,WAAW,EACX,QAAQ,EACR,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,OAAO,EACP,YAAsC,EACtC,SAAS,EACT,GAAG,IAAI,EACR,EAAE,2BAA2B,qBA8D7B"}
|