@arcadeai/design-system 3.27.5 → 3.27.7
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/attio.js +10 -0
- 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/vscode.js +12 -0
- package/dist/assets/icons/windsurf.js +10 -0
- package/dist/components/index.js +416 -396
- package/dist/components/ui/atoms/checkbox.d.ts.map +1 -1
- package/dist/components/ui/atoms/checkbox.js +100 -100
- package/dist/components/ui/atoms/icons/attio.d.ts +4 -0
- package/dist/components/ui/atoms/icons/attio.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/attio.js +27 -0
- 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 +27 -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 +23 -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 +79 -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 +79 -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 +234 -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 +22 -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 +256 -236
- 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 +26 -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 +187 -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 +26 -0
- package/dist/components/ui/atoms/index.js +399 -379
- package/dist/components/ui/index.js +416 -396
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.d.ts +6 -3
- package/dist/components/ui/molecules/requirement-badges.d.ts.map +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +1 -1
- package/dist/components/ui/molecules/tool-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/tool-card.js +55 -54
- package/dist/components/ui/molecules/toolkit-card.d.ts.map +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 +120 -51
- 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 +55 -24
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.js +20 -20
- package/dist/hooks/use-is-truncated.d.ts +13 -0
- package/dist/hooks/use-is-truncated.d.ts.map +1 -0
- package/dist/hooks/use-is-truncated.js +20 -0
- package/dist/lib/arcade/arcade.d.ts +0 -24
- package/dist/lib/arcade/arcade.d.ts.map +1 -1
- package/dist/lib/arcade/arcade.js +258 -421
- package/dist/lib/arcade/toolkit-collection.d.ts +15 -0
- package/dist/lib/arcade/toolkit-collection.d.ts.map +1 -0
- package/dist/lib/arcade/toolkit-collection.js +149 -0
- package/dist/main.js +455 -435
- 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 +84 -72
- package/dist/metadata/toolkits.js +7 -7
- 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-Cmp_yG03.js} +115 -110
- package/package.json +34 -23
|
@@ -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-Cmp_yG03.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"}
|
|
@@ -1,101 +1,125 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { VirtualizedGrid as
|
|
1
|
+
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { VirtualizedGrid as g } from "../../../atoms/virtualized-grid.js";
|
|
3
3
|
import "../../../molecules/date-time-picker.js";
|
|
4
|
-
import { EmptyState as
|
|
5
|
-
import "../../../../../toolkit-card-
|
|
6
|
-
import { ToolCard as
|
|
7
|
-
import { getToolkitIcon as
|
|
4
|
+
import { EmptyState as C } from "../../../molecules/empty-state.js";
|
|
5
|
+
import "../../../../../toolkit-card-Cmp_yG03.js";
|
|
6
|
+
import { ToolCard as S } from "../../../molecules/tool-card.js";
|
|
7
|
+
import { getToolkitIcon as q } from "../../../../../metadata/toolkit-icons.js";
|
|
8
8
|
import "lucide-react";
|
|
9
|
-
import { useToolkitPicker as
|
|
9
|
+
import { useToolkitPicker as z } from "../hooks/use-toolkit-picker.js";
|
|
10
10
|
import "../../../atoms/mobile-tooltip.js";
|
|
11
11
|
import "react";
|
|
12
12
|
import "../../../atoms/chart.js";
|
|
13
13
|
import "../../../../../react-resizable-panels.browser-DYl0LXfw.js";
|
|
14
14
|
import "../../../atoms/sidebar.js";
|
|
15
|
-
import { useColumns as
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
import { useColumns as I } from "../../../../../hooks/use-columns.js";
|
|
16
|
+
import { UnoptimizedToggle as h } from "./unoptimized-toggle.js";
|
|
17
|
+
const x = 136;
|
|
18
|
+
function V({
|
|
19
|
+
selectionMode: y,
|
|
19
20
|
scrollContainerRef: s
|
|
20
21
|
}) {
|
|
21
22
|
const {
|
|
22
|
-
state: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
state: {
|
|
24
|
+
filteredTools: n,
|
|
25
|
+
toolkitCollection: T,
|
|
26
|
+
selectedTools: l,
|
|
27
|
+
showUnoptimizedToolkits: d,
|
|
28
|
+
hasStarterToolkits: m,
|
|
29
|
+
hiddenToolCount: r
|
|
30
|
+
},
|
|
31
|
+
toggleTool: _,
|
|
32
|
+
toggleUnoptimizedToolkits: c
|
|
33
|
+
} = z(), p = I();
|
|
34
|
+
if (n.size === 0)
|
|
35
|
+
return m && r > 0 ? /* @__PURE__ */ t(
|
|
36
|
+
h,
|
|
37
|
+
{
|
|
38
|
+
hiddenCount: r,
|
|
39
|
+
isShowingUnoptimized: d,
|
|
40
|
+
itemType: "tool",
|
|
41
|
+
onToggle: c
|
|
42
|
+
}
|
|
43
|
+
) : /* @__PURE__ */ t(
|
|
44
|
+
C,
|
|
28
45
|
{
|
|
29
46
|
"data-testid": "empty-tools",
|
|
30
47
|
description: "Try a different search term",
|
|
31
48
|
title: "No tools found"
|
|
32
49
|
}
|
|
33
50
|
);
|
|
34
|
-
const
|
|
35
|
-
(e) =>
|
|
36
|
-
),
|
|
37
|
-
(e) => !
|
|
38
|
-
),
|
|
39
|
-
|
|
40
|
-
), n = (e) => {
|
|
41
|
-
const h = x.get(e.toolkit.name), y = T(h?.metadata?.id);
|
|
51
|
+
const u = Array.from(n), o = u.filter(
|
|
52
|
+
(e) => l.has(e.fully_qualified_name)
|
|
53
|
+
), a = u.filter(
|
|
54
|
+
(e) => !l.has(e.fully_qualified_name)
|
|
55
|
+
), f = (e) => {
|
|
56
|
+
const k = T?.toolkitMap?.get(e.toolkit?.name), N = q(k?.metadata?.id);
|
|
42
57
|
return /* @__PURE__ */ t(
|
|
43
|
-
|
|
58
|
+
S,
|
|
44
59
|
{
|
|
45
60
|
"data-testid": `tool-card-${e.fully_qualified_name}`,
|
|
46
61
|
description: e.description,
|
|
47
62
|
fully_qualified_name: e.fully_qualified_name,
|
|
48
|
-
hideCheckbox:
|
|
49
|
-
Icon:
|
|
50
|
-
isSelected:
|
|
63
|
+
hideCheckbox: y === "single",
|
|
64
|
+
Icon: N,
|
|
65
|
+
isSelected: l.has(e.fully_qualified_name),
|
|
51
66
|
name: e.name,
|
|
52
|
-
onSelect: () =>
|
|
53
|
-
toolkitName: e.toolkit
|
|
67
|
+
onSelect: () => _(e),
|
|
68
|
+
toolkitName: e.toolkit?.name ?? "Unknown MCP Server"
|
|
54
69
|
},
|
|
55
70
|
e.fully_qualified_name
|
|
56
71
|
);
|
|
57
72
|
};
|
|
58
|
-
return /* @__PURE__ */
|
|
59
|
-
|
|
60
|
-
/* @__PURE__ */
|
|
73
|
+
return /* @__PURE__ */ i("div", { className: "space-y-4", "data-testid": "tools-grid", children: [
|
|
74
|
+
o.length > 0 && /* @__PURE__ */ i("div", { className: "space-y-3", "data-testid": "selected-tools-section", children: [
|
|
75
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-1.5", children: [
|
|
61
76
|
/* @__PURE__ */ t("h3", { className: "font-semibold text-neutral-700 text-sm dark:text-neutral-200", children: "Selected" }),
|
|
62
|
-
/* @__PURE__ */ t("span", { className: "rounded-full bg-emerald-300 px-1.5 py-0.5 text-emerald-900 text-xs dark:bg-emerald-600 dark:text-emerald-200", children:
|
|
77
|
+
/* @__PURE__ */ t("span", { className: "rounded-full bg-emerald-300 px-1.5 py-0.5 text-emerald-900 text-xs dark:bg-emerald-600 dark:text-emerald-200", children: o.length })
|
|
63
78
|
] }),
|
|
64
79
|
/* @__PURE__ */ t(
|
|
65
|
-
|
|
80
|
+
g,
|
|
66
81
|
{
|
|
67
|
-
columns:
|
|
68
|
-
estimateRowSize:
|
|
82
|
+
columns: p,
|
|
83
|
+
estimateRowSize: x,
|
|
69
84
|
getItemKey: (e) => e.fully_qualified_name,
|
|
70
85
|
gridClassName: "grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-3",
|
|
71
|
-
items:
|
|
86
|
+
items: o,
|
|
72
87
|
parentRef: s,
|
|
73
|
-
renderItem:
|
|
88
|
+
renderItem: f,
|
|
74
89
|
rowGapPx: 12
|
|
75
90
|
}
|
|
76
91
|
)
|
|
77
92
|
] }),
|
|
78
|
-
|
|
79
|
-
|
|
93
|
+
a.length > 0 && /* @__PURE__ */ i("div", { className: "space-y-3", children: [
|
|
94
|
+
o.length > 0 && /* @__PURE__ */ i("div", { className: "flex items-center gap-1.5", children: [
|
|
80
95
|
/* @__PURE__ */ t("h3", { className: "font-semibold text-neutral-700 text-sm dark:text-neutral-200", children: "All tools" }),
|
|
81
|
-
/* @__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:
|
|
96
|
+
/* @__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 })
|
|
82
97
|
] }),
|
|
83
98
|
/* @__PURE__ */ t(
|
|
84
|
-
|
|
99
|
+
g,
|
|
85
100
|
{
|
|
86
|
-
columns:
|
|
87
|
-
estimateRowSize:
|
|
101
|
+
columns: p,
|
|
102
|
+
estimateRowSize: x,
|
|
88
103
|
getItemKey: (e) => e.fully_qualified_name,
|
|
89
104
|
gridClassName: "grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-3",
|
|
90
|
-
items:
|
|
105
|
+
items: a,
|
|
91
106
|
parentRef: s,
|
|
92
|
-
renderItem:
|
|
107
|
+
renderItem: f,
|
|
93
108
|
rowGapPx: 12
|
|
94
109
|
}
|
|
95
110
|
)
|
|
96
|
-
] })
|
|
111
|
+
] }),
|
|
112
|
+
m && /* @__PURE__ */ t(
|
|
113
|
+
h,
|
|
114
|
+
{
|
|
115
|
+
hiddenCount: r,
|
|
116
|
+
isShowingUnoptimized: d,
|
|
117
|
+
itemType: "tool",
|
|
118
|
+
onToggle: c
|
|
119
|
+
}
|
|
120
|
+
)
|
|
97
121
|
] });
|
|
98
122
|
}
|
|
99
123
|
export {
|
|
100
|
-
|
|
124
|
+
V as ToolsList
|
|
101
125
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type UnoptimizedToggleProps = {
|
|
2
|
+
/**
|
|
3
|
+
* Number of hidden items when unoptimized toolkits are not shown
|
|
4
|
+
*/
|
|
5
|
+
hiddenCount: number;
|
|
6
|
+
/**
|
|
7
|
+
* Whether unoptimized toolkits are currently shown
|
|
8
|
+
*/
|
|
9
|
+
isShowingUnoptimized: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The type of item being hidden (for display text)
|
|
12
|
+
*/
|
|
13
|
+
itemType: "toolkit" | "tool";
|
|
14
|
+
/**
|
|
15
|
+
* Callback to toggle the visibility of unoptimized toolkits
|
|
16
|
+
*/
|
|
17
|
+
onToggle: () => void;
|
|
18
|
+
};
|
|
19
|
+
export declare function UnoptimizedToggle({ hiddenCount, isShowingUnoptimized, itemType, onToggle, }: UnoptimizedToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=unoptimized-toggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unoptimized-toggle.d.ts","sourceRoot":"","sources":["../../../../../../lib/components/ui/organisms/toolkit-picker/components/unoptimized-toggle.tsx"],"names":[],"mappings":"AAAA,KAAK,sBAAsB,GAAG;IAC5B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,oBAAoB,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,QAAQ,EAAE,SAAS,GAAG,MAAM,CAAC;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,oBAAoB,EACpB,QAAQ,EACR,QAAQ,GACT,EAAE,sBAAsB,2CAsBxB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsxs as r, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
function d({
|
|
3
|
+
hiddenCount: t,
|
|
4
|
+
isShowingUnoptimized: e,
|
|
5
|
+
itemType: o,
|
|
6
|
+
onToggle: l
|
|
7
|
+
}) {
|
|
8
|
+
const a = o === "toolkit" ? "toolkits" : "tools";
|
|
9
|
+
return /* @__PURE__ */ r("div", { className: "space-y-2 rounded-lg border border-neutral-200 bg-neutral-50 p-3 dark:border-neutral-700 dark:bg-neutral-800/50", children: [
|
|
10
|
+
!e && t > 0 && /* @__PURE__ */ r("p", { className: "text-neutral-600 text-sm dark:text-neutral-400", children: [
|
|
11
|
+
t,
|
|
12
|
+
" ",
|
|
13
|
+
t === 1 ? o : a,
|
|
14
|
+
" hidden in unoptimized toolkits"
|
|
15
|
+
] }),
|
|
16
|
+
/* @__PURE__ */ n(
|
|
17
|
+
"button",
|
|
18
|
+
{
|
|
19
|
+
className: "font-medium text-blue-600 text-sm hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300",
|
|
20
|
+
onClick: l,
|
|
21
|
+
type: "button",
|
|
22
|
+
children: e ? "Hide unoptimized toolkits" : "Show unoptimized toolkits"
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
] });
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
d as UnoptimizedToggle
|
|
29
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Featured toolkit names for the toolkit picker.
|
|
3
|
-
* These appear in a highlighted "Featured
|
|
3
|
+
* These appear in a highlighted "Featured MCP Servers" section when not searching.
|
|
4
4
|
* Matching is case-insensitive.
|
|
5
5
|
*/
|
|
6
6
|
export declare const FEATURED_TOOLKITS: readonly ["Gmail", "GoogleCalendar", "GoogleDocs", "Github", "Slack", "Jira"];
|
|
@@ -24,11 +24,18 @@ type ReducerState = {
|
|
|
24
24
|
searchQuery: string;
|
|
25
25
|
toolkitFilter: string;
|
|
26
26
|
activeTab: ToolkitPickerTab;
|
|
27
|
+
showUnoptimizedToolkits: boolean;
|
|
27
28
|
};
|
|
28
29
|
type UseToolkitPickerState = ReducerState & {
|
|
29
30
|
toolkitCollection?: ToolkitCollection;
|
|
30
31
|
filteredToolkits: Set<ProcessedToolkit>;
|
|
31
32
|
filteredTools: Set<ProcessedTool>;
|
|
33
|
+
/** Whether there are any starter (unoptimized) toolkits in the collection */
|
|
34
|
+
hasStarterToolkits: boolean;
|
|
35
|
+
/** Count of starter toolkits hidden due to visibility rules (would match current search) */
|
|
36
|
+
hiddenToolkitCount: number;
|
|
37
|
+
/** Count of tools from starter toolkits hidden due to visibility rules (would match current search) */
|
|
38
|
+
hiddenToolCount: number;
|
|
32
39
|
};
|
|
33
40
|
type ToolkitPickerContextType = {
|
|
34
41
|
state: UseToolkitPickerState;
|
|
@@ -43,6 +50,7 @@ type ToolkitPickerContextType = {
|
|
|
43
50
|
setToolkitFilter: (fqName: string) => void;
|
|
44
51
|
clearFilter: () => void;
|
|
45
52
|
setActiveTab: (tab: ToolkitPickerTab) => void;
|
|
53
|
+
toggleUnoptimizedToolkits: () => void;
|
|
46
54
|
};
|
|
47
55
|
export declare function ToolkitPickerProvider({ children, toolkitCollection, selectionMode, initialProps, }: {
|
|
48
56
|
children: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-toolkit-picker.d.ts","sourceRoot":"","sources":["../../../../../../lib/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.tsx"],"names":[],"mappings":"AAAA,kGAAkG;AAElG,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"use-toolkit-picker.d.ts","sourceRoot":"","sources":["../../../../../../lib/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.tsx"],"names":[],"mappings":"AAAA,kGAAkG;AAElG,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB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