@arcadeai/design-system 3.27.4 → 3.27.6
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/assets/icons/claude.js +10 -0
- package/dist/assets/icons/cline.js +10 -0
- package/dist/assets/icons/cursor-install-dark.js +12 -0
- package/dist/assets/icons/cursor-install-light.js +12 -0
- package/dist/assets/icons/gemini.js +12 -0
- package/dist/assets/icons/goose.js +13 -0
- package/dist/assets/icons/openai.js +10 -0
- package/dist/assets/icons/roocode.js +10 -0
- package/dist/assets/icons/vscode.js +12 -0
- package/dist/assets/icons/windsurf.js +10 -0
- package/dist/components/index.js +394 -374
- package/dist/components/ui/atoms/icons/claude.d.ts +4 -0
- package/dist/components/ui/atoms/icons/claude.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/claude.js +9 -0
- package/dist/components/ui/atoms/icons/cline.d.ts +4 -0
- package/dist/components/ui/atoms/icons/cline.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/cline.js +9 -0
- package/dist/components/ui/atoms/icons/cursor-install-dark.d.ts +4 -0
- package/dist/components/ui/atoms/icons/cursor-install-dark.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/cursor-install-dark.js +16 -0
- package/dist/components/ui/atoms/icons/cursor-install-light.d.ts +4 -0
- package/dist/components/ui/atoms/icons/cursor-install-light.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/cursor-install-light.js +16 -0
- package/dist/components/ui/atoms/icons/gemini.d.ts +4 -0
- package/dist/components/ui/atoms/icons/gemini.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/gemini.js +55 -0
- package/dist/components/ui/atoms/icons/goose.d.ts +4 -0
- package/dist/components/ui/atoms/icons/goose.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/goose.js +9 -0
- package/dist/components/ui/atoms/icons/index.d.ts +10 -0
- package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/icons/index.js +250 -230
- package/dist/components/ui/atoms/icons/openai.d.ts +4 -0
- package/dist/components/ui/atoms/icons/openai.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/openai.js +9 -0
- package/dist/components/ui/atoms/icons/roocode.d.ts +4 -0
- package/dist/components/ui/atoms/icons/roocode.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/roocode.js +9 -0
- package/dist/components/ui/atoms/icons/vscode.d.ts +4 -0
- package/dist/components/ui/atoms/icons/vscode.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/vscode.js +39 -0
- package/dist/components/ui/atoms/icons/windsurf.d.ts +4 -0
- package/dist/components/ui/atoms/icons/windsurf.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/windsurf.js +9 -0
- package/dist/components/ui/atoms/index.js +379 -359
- package/dist/components/ui/index.js +394 -374
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +1 -1
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/toolkit-picker-trigger.js +34 -34
- package/dist/components/ui/molecules/toolkit-selection-summary.d.ts.map +1 -1
- package/dist/components/ui/molecules/toolkit-selection-summary.js +5 -5
- package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +1 -1
- package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +1 -1
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +1 -1
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.d.ts.map +1 -1
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.js +101 -74
- package/dist/components/ui/organisms/toolkit-picker/components/tools-list.d.ts.map +1 -1
- package/dist/components/ui/organisms/toolkit-picker/components/tools-list.js +74 -50
- package/dist/components/ui/organisms/toolkit-picker/components/unoptimized-toggle.d.ts +21 -0
- package/dist/components/ui/organisms/toolkit-picker/components/unoptimized-toggle.d.ts.map +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/unoptimized-toggle.js +29 -0
- package/dist/components/ui/organisms/toolkit-picker/hooks/featured-toolkits.d.ts +1 -1
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts +8 -0
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts.map +1 -1
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.js +105 -49
- package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.d.ts.map +1 -1
- package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.js +26 -6
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.js +20 -20
- package/dist/lib/arcade/arcade.d.ts.map +1 -1
- package/dist/lib/arcade/arcade.js +49 -49
- package/dist/main.js +441 -421
- package/dist/metadata/utils.d.ts +4 -7
- package/dist/metadata/utils.d.ts.map +1 -1
- package/dist/metadata/utils.js +16 -13
- package/dist/{toolkit-card-D6Dqff6p.js → toolkit-card-DaoEIG0R.js} +22 -22
- package/package.json +33 -19
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DateTimePicker as e } from "./date-time-picker.js";
|
|
2
2
|
import { EmptyState as m } from "./empty-state.js";
|
|
3
|
-
import { R as a, T as p } from "../../../toolkit-card-
|
|
3
|
+
import { R as a, T as p } from "../../../toolkit-card-DaoEIG0R.js";
|
|
4
4
|
import { ToolCard as f } from "./tool-card.js";
|
|
5
5
|
import { ToolkitPickerTrigger as k } from "./toolkit-picker-trigger.js";
|
|
6
6
|
import { ToolkitSelectionSummary as c } from "./toolkit-selection-summary.js";
|
|
@@ -11,7 +11,7 @@ import "../../../react-resizable-panels.browser-DYl0LXfw.js";
|
|
|
11
11
|
import "../atoms/sidebar.js";
|
|
12
12
|
import "../atoms/tooltip.js";
|
|
13
13
|
import "./date-time-picker.js";
|
|
14
|
-
import { O as q, R as x, S as A } from "../../../toolkit-card-
|
|
14
|
+
import { O as q, R as x, S as A } from "../../../toolkit-card-DaoEIG0R.js";
|
|
15
15
|
import "./tool-card.js";
|
|
16
16
|
import "../../../metadata/oauth-providers.js";
|
|
17
17
|
import "../../../metadata/toolkits.js";
|
|
@@ -6,7 +6,7 @@ import "../../../utils-6KgZuQUR.js";
|
|
|
6
6
|
import "../../../index-r7CUvu2m.js";
|
|
7
7
|
import "lucide-react";
|
|
8
8
|
import "react";
|
|
9
|
-
import { T as k } from "../../../toolkit-card-
|
|
9
|
+
import { T as k } from "../../../toolkit-card-DaoEIG0R.js";
|
|
10
10
|
import "../utils/memo.js";
|
|
11
11
|
export {
|
|
12
12
|
k as ToolkitCard
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t, Fragment as h } from "react/jsx-runtime";
|
|
2
|
-
import { Badge as
|
|
2
|
+
import { Badge as T } from "../atoms/badge.js";
|
|
3
3
|
import { Button as w } from "../atoms/button.js";
|
|
4
|
-
import { Tooltip as
|
|
4
|
+
import { Tooltip as C, TooltipTrigger as y, TooltipContent as z } from "../atoms/tooltip.js";
|
|
5
5
|
import { c as g } from "../../../utils-6KgZuQUR.js";
|
|
6
|
-
import { getToolkitIcon as
|
|
7
|
-
import { Loader2 as
|
|
8
|
-
import { useToolkitPicker as
|
|
6
|
+
import { getToolkitIcon as M } from "../../../metadata/toolkit-icons.js";
|
|
7
|
+
import { Loader2 as P, Package as S } from "lucide-react";
|
|
8
|
+
import { useToolkitPicker as j } from "../organisms/toolkit-picker/hooks/use-toolkit-picker.js";
|
|
9
9
|
function D({
|
|
10
10
|
maxVisibleIcons: k = 2,
|
|
11
11
|
className: b,
|
|
12
12
|
countType: s = "toolkits",
|
|
13
|
-
loading:
|
|
14
|
-
...
|
|
13
|
+
loading: n = !1,
|
|
14
|
+
...i
|
|
15
15
|
}) {
|
|
16
16
|
const {
|
|
17
17
|
state: { committedToolkits: f, committedTools: N }
|
|
18
|
-
} =
|
|
19
|
-
const
|
|
20
|
-
return
|
|
21
|
-
}), p = Math.max(l - c.length, 0),
|
|
22
|
-
let d = "
|
|
23
|
-
|
|
24
|
-
let u = `Select ${s === "tools" ? "Tools" : "
|
|
25
|
-
return
|
|
18
|
+
} = j(), o = Array.from(f.keys()), l = o.length, x = N.size, c = o.slice(0, k).map((a) => {
|
|
19
|
+
const r = f.get(a);
|
|
20
|
+
return M(r?.metadata?.id);
|
|
21
|
+
}), p = Math.max(l - c.length, 0), v = s === "tools";
|
|
22
|
+
let d = "MCP Servers", m = l;
|
|
23
|
+
v && (d = "Tools", m = x);
|
|
24
|
+
let u = `Select ${s === "tools" ? "Tools" : "MCP Servers"}`;
|
|
25
|
+
return n ? u = "Loading MCP servers..." : l > 0 && (u = `${m} ${d.toLowerCase()} selected`), /* @__PURE__ */ e(
|
|
26
26
|
w,
|
|
27
27
|
{
|
|
28
|
-
...
|
|
28
|
+
...i,
|
|
29
29
|
"aria-label": u,
|
|
30
30
|
className: g("gap-2 bg-transparent transition-colors", b),
|
|
31
|
-
disabled:
|
|
32
|
-
size:
|
|
33
|
-
variant:
|
|
34
|
-
children:
|
|
35
|
-
/* @__PURE__ */ e(
|
|
31
|
+
disabled: n,
|
|
32
|
+
size: i.size ?? "sm",
|
|
33
|
+
variant: i.variant ?? "outline",
|
|
34
|
+
children: n ? /* @__PURE__ */ t(h, { children: [
|
|
35
|
+
/* @__PURE__ */ e(P, { className: "h-4 w-4 animate-spin" }),
|
|
36
36
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
|
|
37
37
|
/* @__PURE__ */ e("div", { className: "h-4 w-16 animate-pulse rounded bg-neutral-200 dark:bg-neutral-700" }),
|
|
38
38
|
/* @__PURE__ */ e("div", { className: "h-5 w-6 animate-pulse rounded-full bg-neutral-200 dark:bg-neutral-700" })
|
|
39
39
|
] })
|
|
40
40
|
] }) : /* @__PURE__ */ t(h, { children: [
|
|
41
|
-
l > 0 && /* @__PURE__ */ t(
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
c.map((
|
|
41
|
+
l > 0 && /* @__PURE__ */ t(C, { children: [
|
|
42
|
+
/* @__PURE__ */ e(y, { asChild: !0, children: /* @__PURE__ */ t("span", { className: "mr-2 flex items-center", children: [
|
|
43
|
+
c.map((a, r) => /* @__PURE__ */ e(
|
|
44
44
|
"div",
|
|
45
45
|
{
|
|
46
|
-
className: g("relative first:ml-0",
|
|
47
|
-
style: { zIndex:
|
|
48
|
-
children: /* @__PURE__ */ e("div", { className: "flex size-6 items-center justify-center rounded-xl bg-gradient-to-br from-white to-neutral-50 p-1.5 shadow-lg ring-1 ring-neutral-200/80 transition-all hover:scale-110 hover:shadow-xl dark:from-neutral-800 dark:to-neutral-900 dark:ring-neutral-700/80", children: /* @__PURE__ */ e(
|
|
46
|
+
className: g("relative first:ml-0", r > 0 && "-ml-2"),
|
|
47
|
+
style: { zIndex: r + 1 },
|
|
48
|
+
children: /* @__PURE__ */ e("div", { className: "flex size-6 items-center justify-center rounded-xl bg-gradient-to-br from-white to-neutral-50 p-1.5 shadow-lg ring-1 ring-neutral-200/80 transition-all hover:scale-110 hover:shadow-xl dark:from-neutral-800 dark:to-neutral-900 dark:ring-neutral-700/80", children: /* @__PURE__ */ e(a, { className: "h-3 w-3 text-neutral-700 dark:text-neutral-300" }) })
|
|
49
49
|
},
|
|
50
|
-
`${
|
|
50
|
+
`${a.name || "icon"}-${r}`
|
|
51
51
|
)),
|
|
52
52
|
p > 0 && /* @__PURE__ */ t(
|
|
53
53
|
"span",
|
|
@@ -61,12 +61,12 @@ function D({
|
|
|
61
61
|
}
|
|
62
62
|
)
|
|
63
63
|
] }) }),
|
|
64
|
-
/* @__PURE__ */ e(
|
|
64
|
+
/* @__PURE__ */ e(z, { side: "bottom", sideOffset: 6, children: /* @__PURE__ */ e("div", { className: "text-xs", children: /* @__PURE__ */ t("ul", { className: "list-disc space-y-1 pl-4", children: [
|
|
65
65
|
/* @__PURE__ */ t("li", { children: [
|
|
66
|
-
/* @__PURE__ */ e("span", { className: "font-semibold text-neutral-800 dark:text-neutral-200", children: "
|
|
66
|
+
/* @__PURE__ */ e("span", { className: "font-semibold text-neutral-800 dark:text-neutral-200", children: "MCP Servers" }),
|
|
67
67
|
/* @__PURE__ */ t("span", { className: "text-neutral-700 dark:text-neutral-300", children: [
|
|
68
68
|
": ",
|
|
69
|
-
|
|
69
|
+
o.join(", ")
|
|
70
70
|
] })
|
|
71
71
|
] }),
|
|
72
72
|
/* @__PURE__ */ t("li", { children: [
|
|
@@ -80,15 +80,15 @@ function D({
|
|
|
80
80
|
] }) }) })
|
|
81
81
|
] }),
|
|
82
82
|
l === 0 && /* @__PURE__ */ t(h, { children: [
|
|
83
|
-
/* @__PURE__ */ e(
|
|
83
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-4" }),
|
|
84
84
|
/* @__PURE__ */ t("span", { className: "truncate text-sm", children: [
|
|
85
85
|
"Select ",
|
|
86
|
-
s === "tools" ? "Tools" : "
|
|
86
|
+
s === "tools" ? "Tools" : "MCP Servers"
|
|
87
87
|
] })
|
|
88
88
|
] }),
|
|
89
89
|
l > 0 && /* @__PURE__ */ t("span", { className: "inline-flex items-center gap-2 truncate text-sm", children: [
|
|
90
90
|
d,
|
|
91
|
-
/* @__PURE__ */ e(
|
|
91
|
+
/* @__PURE__ */ e(T, { className: "px-1.5 py-0 text-[11px]", variant: "default", children: m })
|
|
92
92
|
] })
|
|
93
93
|
] })
|
|
94
94
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolkit-selection-summary.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/toolkit-selection-summary.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qEAAqE,CAAC;AAI/G,MAAM,MAAM,4BAA4B,GAAG;IACzC,gBAAgB,EAAE,mBAAmB,CAAC;IACtC,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAGF,wBAAgB,uBAAuB,CAAC,EACtC,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,WAAW,EACX,kBAAkB,EAClB,aAAa,GACd,EAAE,4BAA4B,
|
|
1
|
+
{"version":3,"file":"toolkit-selection-summary.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/toolkit-selection-summary.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qEAAqE,CAAC;AAI/G,MAAM,MAAM,4BAA4B,GAAG;IACzC,gBAAgB,EAAE,mBAAmB,CAAC;IACtC,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAGF,wBAAgB,uBAAuB,CAAC,EACtC,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,WAAW,EACX,kBAAkB,EAClB,aAAa,GACd,EAAE,4BAA4B,2CA6G9B"}
|
|
@@ -7,7 +7,7 @@ import "../atoms/chart.js";
|
|
|
7
7
|
import "../../../react-resizable-panels.browser-DYl0LXfw.js";
|
|
8
8
|
import "../atoms/sidebar.js";
|
|
9
9
|
import "./date-time-picker.js";
|
|
10
|
-
import "../../../toolkit-card-
|
|
10
|
+
import "../../../toolkit-card-DaoEIG0R.js";
|
|
11
11
|
import "./tool-card.js";
|
|
12
12
|
import { getToolkitIcon as z } from "../../../metadata/toolkit-icons.js";
|
|
13
13
|
import "../organisms/toolkit-picker/hooks/use-toolkit-picker.js";
|
|
@@ -18,7 +18,7 @@ function D({
|
|
|
18
18
|
onClear: N,
|
|
19
19
|
onSelectAll: m,
|
|
20
20
|
allVisibleSelected: k,
|
|
21
|
-
selectionMode:
|
|
21
|
+
selectionMode: v
|
|
22
22
|
}) {
|
|
23
23
|
const l = s.size > 0 || n.size > 0, i = Array.from(s.keys()), o = n.size, a = i.length, r = i.slice(0, j), c = Math.max(a - r.length, 0);
|
|
24
24
|
return /* @__PURE__ */ t(
|
|
@@ -43,7 +43,7 @@ function D({
|
|
|
43
43
|
] }),
|
|
44
44
|
/* @__PURE__ */ t("div", { className: "ml-1 flex items-center sm:ml-1.5", children: [
|
|
45
45
|
r.map((d, h) => {
|
|
46
|
-
const
|
|
46
|
+
const w = s.get(d), b = z(w?.metadata?.id);
|
|
47
47
|
return /* @__PURE__ */ e(
|
|
48
48
|
"div",
|
|
49
49
|
{
|
|
@@ -70,7 +70,7 @@ function D({
|
|
|
70
70
|
/* @__PURE__ */ t("div", { className: "text-neutral-600 text-xs dark:text-neutral-400", children: [
|
|
71
71
|
"from ",
|
|
72
72
|
a,
|
|
73
|
-
"
|
|
73
|
+
" MCP server",
|
|
74
74
|
a !== 1 ? "s" : ""
|
|
75
75
|
] })
|
|
76
76
|
] }) }),
|
|
@@ -91,7 +91,7 @@ function D({
|
|
|
91
91
|
]
|
|
92
92
|
}
|
|
93
93
|
),
|
|
94
|
-
|
|
94
|
+
v !== "single" && m && !k && /* @__PURE__ */ t(p, { children: [
|
|
95
95
|
/* @__PURE__ */ e(g, { asChild: !0, children: /* @__PURE__ */ e(
|
|
96
96
|
x,
|
|
97
97
|
{
|
|
@@ -7,7 +7,7 @@ import { Input as k } from "../../../atoms/input.js";
|
|
|
7
7
|
import "../../../../../react-resizable-panels.browser-DYl0LXfw.js";
|
|
8
8
|
import "../../../atoms/sidebar.js";
|
|
9
9
|
import "../../../molecules/date-time-picker.js";
|
|
10
|
-
import "../../../../../toolkit-card-
|
|
10
|
+
import "../../../../../toolkit-card-DaoEIG0R.js";
|
|
11
11
|
import "../../../molecules/tool-card.js";
|
|
12
12
|
import "../../../../../metadata/oauth-providers.js";
|
|
13
13
|
import "../../../../../metadata/toolkits.js";
|
|
@@ -7,7 +7,7 @@ import "../../../atoms/chart.js";
|
|
|
7
7
|
import "../../../../../react-resizable-panels.browser-DYl0LXfw.js";
|
|
8
8
|
import "../../../atoms/sidebar.js";
|
|
9
9
|
import "../../../molecules/date-time-picker.js";
|
|
10
|
-
import "../../../../../toolkit-card-
|
|
10
|
+
import "../../../../../toolkit-card-DaoEIG0R.js";
|
|
11
11
|
import "../../../molecules/tool-card.js";
|
|
12
12
|
import "../../../../../metadata/oauth-providers.js";
|
|
13
13
|
import "../../../../../metadata/toolkits.js";
|
package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { T as c } from "../../../../../toolkit-card-
|
|
2
|
+
import { T as c } from "../../../../../toolkit-card-DaoEIG0R.js";
|
|
3
3
|
import { getToolkitIcon as d } from "../../../../../metadata/toolkit-icons.js";
|
|
4
4
|
function g({
|
|
5
5
|
toolkit: e,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolkit-list.d.ts","sourceRoot":"","sources":["../../../../../../lib/components/ui/organisms/toolkit-picker/components/toolkit-list.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"toolkit-list.d.ts","sourceRoot":"","sources":["../../../../../../lib/components/ui/organisms/toolkit-picker/components/toolkit-list.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAO9C,KAAK,gBAAgB,GAAG;IACtB,aAAa,EAAE,aAAa,CAAC;IAC7B,kBAAkB,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CACtD,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAC1B,aAAa,EACb,kBAAkB,GACnB,EAAE,gBAAgB,2CAoLlB"}
|
|
@@ -1,142 +1,169 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { VirtualizedGrid as
|
|
1
|
+
import { jsx as t, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { VirtualizedGrid as h } from "../../../atoms/virtualized-grid.js";
|
|
3
3
|
import "../../../molecules/date-time-picker.js";
|
|
4
|
-
import { EmptyState as
|
|
5
|
-
import "../../../../../toolkit-card-
|
|
4
|
+
import { EmptyState as P } from "../../../molecules/empty-state.js";
|
|
5
|
+
import "../../../../../toolkit-card-DaoEIG0R.js";
|
|
6
6
|
import "../../../molecules/tool-card.js";
|
|
7
7
|
import "../../../../../metadata/oauth-providers.js";
|
|
8
8
|
import "../../../../../metadata/toolkits.js";
|
|
9
9
|
import "lucide-react";
|
|
10
|
-
import { useToolkitPicker as
|
|
10
|
+
import { useToolkitPicker as R } from "../hooks/use-toolkit-picker.js";
|
|
11
11
|
import "../../../atoms/mobile-tooltip.js";
|
|
12
|
-
import { useMemo as
|
|
12
|
+
import { useMemo as A } from "react";
|
|
13
13
|
import "../../../atoms/chart.js";
|
|
14
14
|
import "../../../../../react-resizable-panels.browser-DYl0LXfw.js";
|
|
15
15
|
import "../../../atoms/sidebar.js";
|
|
16
|
-
import { useColumns as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
import { useColumns as L } from "../../../../../hooks/use-columns.js";
|
|
17
|
+
import { UnoptimizedToggle as I } from "./unoptimized-toggle.js";
|
|
18
|
+
import { FEATURED_TOOLKITS as U } from "../hooks/featured-toolkits.js";
|
|
19
|
+
import { ToolkitCardWithSelection as G } from "./toolkit-card-with-selection.js";
|
|
20
|
+
const f = 156;
|
|
21
|
+
function ee({
|
|
22
|
+
selectionMode: x,
|
|
23
|
+
scrollContainerRef: n
|
|
23
24
|
}) {
|
|
24
25
|
const {
|
|
25
|
-
state: {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
state: {
|
|
27
|
+
filteredToolkits: d,
|
|
28
|
+
selectedToolkits: s,
|
|
29
|
+
selectedTools: S,
|
|
30
|
+
searchQuery: i,
|
|
31
|
+
showUnoptimizedToolkits: k,
|
|
32
|
+
hasStarterToolkits: T,
|
|
33
|
+
hiddenToolkitCount: m
|
|
34
|
+
},
|
|
35
|
+
toggleToolkit: C,
|
|
36
|
+
setActiveTab: y,
|
|
37
|
+
setToolkitFilter: N,
|
|
38
|
+
toggleUnoptimizedToolkits: w
|
|
39
|
+
} = R(), c = L(), { selectedToolkitItems: l, featuredToolkitItems: a, unselectedToolkitItems: p } = A(() => {
|
|
40
|
+
const e = Array.from(d), u = new Set(
|
|
41
|
+
U.map((r) => r.toLowerCase())
|
|
36
42
|
), b = e.filter(
|
|
37
|
-
(r) =>
|
|
43
|
+
(r) => s.has(r.name)
|
|
44
|
+
), v = e.filter(
|
|
45
|
+
(r) => !(s.has(r.name) || i.trim()) && u.has(r.name.toLowerCase())
|
|
46
|
+
), z = e.filter(
|
|
47
|
+
(r) => !s.has(r.name) && (i.trim() || !u.has(r.name.toLowerCase()))
|
|
38
48
|
);
|
|
39
49
|
return {
|
|
40
|
-
selectedToolkitItems:
|
|
41
|
-
featuredToolkitItems:
|
|
42
|
-
unselectedToolkitItems:
|
|
50
|
+
selectedToolkitItems: b,
|
|
51
|
+
featuredToolkitItems: v,
|
|
52
|
+
unselectedToolkitItems: z
|
|
43
53
|
};
|
|
44
|
-
}, [
|
|
45
|
-
if (
|
|
46
|
-
return /* @__PURE__ */ t(
|
|
47
|
-
|
|
54
|
+
}, [d, i, s]);
|
|
55
|
+
if (d.size === 0)
|
|
56
|
+
return T && m > 0 ? /* @__PURE__ */ t(
|
|
57
|
+
I,
|
|
58
|
+
{
|
|
59
|
+
hiddenCount: m,
|
|
60
|
+
isShowingUnoptimized: k,
|
|
61
|
+
itemType: "toolkit",
|
|
62
|
+
onToggle: w
|
|
63
|
+
}
|
|
64
|
+
) : /* @__PURE__ */ t(
|
|
65
|
+
P,
|
|
48
66
|
{
|
|
49
67
|
"data-testid": "empty-toolkits",
|
|
50
68
|
description: "Try a different search term",
|
|
51
|
-
title: "No
|
|
69
|
+
title: "No MCP servers found"
|
|
52
70
|
}
|
|
53
71
|
);
|
|
54
|
-
const
|
|
55
|
-
|
|
72
|
+
const g = (e) => /* @__PURE__ */ t(
|
|
73
|
+
G,
|
|
56
74
|
{
|
|
57
|
-
onSelect: (
|
|
58
|
-
if (
|
|
59
|
-
|
|
75
|
+
onSelect: (u) => {
|
|
76
|
+
if (x === "single") {
|
|
77
|
+
y("tools"), N(e.name);
|
|
60
78
|
return;
|
|
61
79
|
}
|
|
62
|
-
|
|
80
|
+
C(e);
|
|
63
81
|
},
|
|
64
82
|
onView: () => {
|
|
65
|
-
|
|
83
|
+
N(e.name), y("tools");
|
|
66
84
|
},
|
|
67
|
-
selectedTools: new Set(
|
|
68
|
-
selectionMode:
|
|
85
|
+
selectedTools: new Set(S.keys()),
|
|
86
|
+
selectionMode: x,
|
|
69
87
|
toolkit: e
|
|
70
88
|
},
|
|
71
89
|
e.name
|
|
72
90
|
);
|
|
73
|
-
return /* @__PURE__ */
|
|
74
|
-
|
|
75
|
-
/* @__PURE__ */
|
|
91
|
+
return /* @__PURE__ */ o("div", { className: "space-y-4", "data-testid": "toolkits-grid", children: [
|
|
92
|
+
l.length > 0 && /* @__PURE__ */ o("div", { className: "space-y-3", "data-testid": "selected-toolkits-section", children: [
|
|
93
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-1.5", children: [
|
|
76
94
|
/* @__PURE__ */ t("h3", { className: "font-semibold text-neutral-700 text-sm dark:text-neutral-200", children: "Selected" }),
|
|
77
|
-
/* @__PURE__ */ t("span", { className: "rounded-full bg-emerald-300 px-1.5 py-0.5 text-emerald-900 text-xs dark:bg-emerald-500/25 dark:text-emerald-200", children:
|
|
95
|
+
/* @__PURE__ */ t("span", { className: "rounded-full bg-emerald-300 px-1.5 py-0.5 text-emerald-900 text-xs dark:bg-emerald-500/25 dark:text-emerald-200", children: l.length })
|
|
78
96
|
] }),
|
|
79
97
|
/* @__PURE__ */ t(
|
|
80
|
-
|
|
98
|
+
h,
|
|
81
99
|
{
|
|
82
|
-
columns:
|
|
83
|
-
estimateRowSize:
|
|
100
|
+
columns: c,
|
|
101
|
+
estimateRowSize: f,
|
|
84
102
|
getItemKey: (e) => e.name,
|
|
85
103
|
gridClassName: "grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-3",
|
|
86
|
-
items:
|
|
87
|
-
parentRef:
|
|
88
|
-
renderItem:
|
|
104
|
+
items: l,
|
|
105
|
+
parentRef: n,
|
|
106
|
+
renderItem: g,
|
|
89
107
|
rowGapPx: 12
|
|
90
108
|
}
|
|
91
109
|
)
|
|
92
110
|
] }),
|
|
93
|
-
!
|
|
111
|
+
!i.trim() && a.length > 0 && /* @__PURE__ */ o(
|
|
94
112
|
"div",
|
|
95
113
|
{
|
|
96
114
|
className: "space-y-3 rounded-lg bg-neutral-50 p-4 dark:bg-neutral-900",
|
|
97
115
|
"data-testid": "featured-toolkits-section",
|
|
98
116
|
children: [
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */ t("h3", { className: "font-semibold text-neutral-700 text-sm dark:text-neutral-200", children: "Featured
|
|
101
|
-
/* @__PURE__ */ t("span", { className: "rounded-full bg-neutral-200 px-1.5 py-0.5 text-neutral-800 text-xs dark:bg-neutral-800 dark:text-neutral-200", children:
|
|
117
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-1.5", children: [
|
|
118
|
+
/* @__PURE__ */ t("h3", { className: "font-semibold text-neutral-700 text-sm dark:text-neutral-200", children: "Featured MCP Servers" }),
|
|
119
|
+
/* @__PURE__ */ t("span", { className: "rounded-full bg-neutral-200 px-1.5 py-0.5 text-neutral-800 text-xs dark:bg-neutral-800 dark:text-neutral-200", children: a.length })
|
|
102
120
|
] }),
|
|
103
121
|
/* @__PURE__ */ t(
|
|
104
|
-
|
|
122
|
+
h,
|
|
105
123
|
{
|
|
106
|
-
columns:
|
|
107
|
-
estimateRowSize:
|
|
124
|
+
columns: c,
|
|
125
|
+
estimateRowSize: f,
|
|
108
126
|
getItemKey: (e) => e.name,
|
|
109
127
|
gridClassName: "grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-3",
|
|
110
|
-
items:
|
|
111
|
-
parentRef:
|
|
112
|
-
renderItem:
|
|
128
|
+
items: a,
|
|
129
|
+
parentRef: n,
|
|
130
|
+
renderItem: g,
|
|
113
131
|
rowGapPx: 12
|
|
114
132
|
}
|
|
115
133
|
)
|
|
116
134
|
]
|
|
117
135
|
}
|
|
118
136
|
),
|
|
119
|
-
|
|
120
|
-
(
|
|
121
|
-
/* @__PURE__ */ t("h3", { className: "font-semibold text-neutral-700 text-sm dark:text-neutral-200", children: "All
|
|
122
|
-
/* @__PURE__ */ t("span", { className: "rounded-full bg-neutral-200 px-1.5 py-0.5 text-neutral-800 text-xs dark:bg-neutral-800 dark:text-neutral-200", children:
|
|
137
|
+
p.length > 0 && /* @__PURE__ */ o("div", { className: "space-y-3", children: [
|
|
138
|
+
(l.length > 0 || a.length > 0) && /* @__PURE__ */ o("div", { className: "flex items-center gap-1.5", children: [
|
|
139
|
+
/* @__PURE__ */ t("h3", { className: "font-semibold text-neutral-700 text-sm dark:text-neutral-200", children: "All MCP servers" }),
|
|
140
|
+
/* @__PURE__ */ t("span", { className: "rounded-full bg-neutral-200 px-1.5 py-0.5 text-neutral-800 text-xs dark:bg-neutral-800 dark:text-neutral-200", children: p.length })
|
|
123
141
|
] }),
|
|
124
142
|
/* @__PURE__ */ t(
|
|
125
|
-
|
|
143
|
+
h,
|
|
126
144
|
{
|
|
127
|
-
columns:
|
|
128
|
-
estimateRowSize:
|
|
145
|
+
columns: c,
|
|
146
|
+
estimateRowSize: f,
|
|
129
147
|
getItemKey: (e) => e.name,
|
|
130
148
|
gridClassName: "grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-3",
|
|
131
|
-
items:
|
|
132
|
-
parentRef:
|
|
133
|
-
renderItem:
|
|
149
|
+
items: p,
|
|
150
|
+
parentRef: n,
|
|
151
|
+
renderItem: g,
|
|
134
152
|
rowGapPx: 12
|
|
135
153
|
}
|
|
136
154
|
)
|
|
137
|
-
] })
|
|
155
|
+
] }),
|
|
156
|
+
T && /* @__PURE__ */ t(
|
|
157
|
+
I,
|
|
158
|
+
{
|
|
159
|
+
hiddenCount: m,
|
|
160
|
+
isShowingUnoptimized: k,
|
|
161
|
+
itemType: "toolkit",
|
|
162
|
+
onToggle: w
|
|
163
|
+
}
|
|
164
|
+
)
|
|
138
165
|
] });
|
|
139
166
|
}
|
|
140
167
|
export {
|
|
141
|
-
|
|
168
|
+
ee as ToolkitList
|
|
142
169
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools-list.d.ts","sourceRoot":"","sources":["../../../../../../lib/components/ui/organisms/toolkit-picker/components/tools-list.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"tools-list.d.ts","sourceRoot":"","sources":["../../../../../../lib/components/ui/organisms/toolkit-picker/components/tools-list.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAM9C,KAAK,cAAc,GAAG;IACpB,aAAa,EAAE,aAAa,CAAC;IAC7B,kBAAkB,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CACtD,CAAC;AAEF,wBAAgB,SAAS,CAAC,EACxB,aAAa,EACb,kBAAkB,GACnB,EAAE,cAAc,2CAgIhB"}
|