@arcadeai/design-system 7.4.0 → 7.6.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/components/ui/atoms/form.d.ts.map +1 -1
- package/dist/components/ui/atoms/form.js +19 -8
- package/dist/components/ui/blocks/demo.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/requirement-list-item.d.ts +12 -4
- package/dist/components/ui/molecules/mcp-server-picker/requirement-list-item.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/requirement-list-item.js +68 -38
- package/dist/components/ui/organisms/mcp-requirements-status.d.ts +8 -2
- package/dist/components/ui/organisms/mcp-requirements-status.d.ts.map +1 -1
- package/dist/components/ui/organisms/mcp-requirements-status.js +60 -58
- package/dist/components/ui/organisms/mcp-tool-inventory-popover.d.ts.map +1 -1
- package/dist/components/ui/organisms/mcp-tool-inventory-popover.js +22 -26
- package/dist/metadata/toolkit-icons.d.ts.map +1 -1
- package/dist/metadata/toolkit-icons.js +103 -101
- package/dist/metadata/toolkits.d.ts.map +1 -1
- package/dist/metadata/toolkits.js +13 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EAIjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAGpD,QAAA,MAAM,IAAI,0YAAe,CAAC;AAc1B,QAAA,MAAM,SAAS,GACb,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC/D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,sBAItC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAC;AAWF,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAYrE;AAED,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,qBAYpC;AAED,iBAAS,WAAW,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EAIjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAGpD,QAAA,MAAM,IAAI,0YAAe,CAAC;AAc1B,QAAA,MAAM,SAAS,GACb,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC/D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,sBAItC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAC;AAWF,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAYrE;AAED,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,qBAYpC;AAED,iBAAS,WAAW,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,0FAsBhE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,qBAW1E;AA0BD,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,4BAmBtE;AAED,OAAO,EACL,IAAI,EACJ,WAAW,EACX,eAAe,EACf,SAAS,EACT,QAAQ,EACR,SAAS,EACT,WAAW,EACX,YAAY,GACb,CAAC"}
|
|
@@ -44,12 +44,13 @@ function m({ className: n, ...i }) {
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
function h({ children: e }) {
|
|
47
|
-
let { error: t, formItemId: r, formDescriptionId: i, formMessageId: a } = d(),
|
|
48
|
-
return n.cloneElement(
|
|
47
|
+
let { error: t, formItemId: r, formDescriptionId: i, formMessageId: a, name: o } = d(), s = n.Children.only(e);
|
|
48
|
+
return n.cloneElement(s, {
|
|
49
49
|
id: r,
|
|
50
50
|
"aria-describedby": t ? `${i} ${a}` : i,
|
|
51
51
|
"aria-invalid": !!t,
|
|
52
|
-
"data-slot": "form-control"
|
|
52
|
+
"data-slot": "form-control",
|
|
53
|
+
"data-field": o
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
56
|
function g({ className: t, ...n }) {
|
|
@@ -61,15 +62,25 @@ function g({ className: t, ...n }) {
|
|
|
61
62
|
...n
|
|
62
63
|
});
|
|
63
64
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
var _ = (e) => {
|
|
66
|
+
if (!(typeof e != "object" || !e)) {
|
|
67
|
+
if ("message" in e && typeof e.message == "string") return e.message;
|
|
68
|
+
for (let t of Object.values(e)) {
|
|
69
|
+
let e = _(t);
|
|
70
|
+
if (e) return e;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
function v({ className: t, ...n }) {
|
|
75
|
+
let { error: i, formMessageId: a, name: o } = d(), s = _(i) ?? n.children;
|
|
76
|
+
return s ? /* @__PURE__ */ r("p", {
|
|
67
77
|
className: e("text-destructive text-sm", t),
|
|
78
|
+
"data-field": o,
|
|
68
79
|
"data-slot": "form-message",
|
|
69
80
|
id: a,
|
|
70
81
|
...n,
|
|
71
|
-
children:
|
|
82
|
+
children: s
|
|
72
83
|
}) : null;
|
|
73
84
|
}
|
|
74
85
|
//#endregion
|
|
75
|
-
export { c as Form, h as FormControl, g as FormDescription, u as FormField, p as FormItem, m as FormLabel,
|
|
86
|
+
export { c as Form, h as FormControl, g as FormDescription, u as FormField, p as FormItem, m as FormLabel, v as FormMessage, d as useFormField };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* empty css */
|
|
1
2
|
import { t as e } from "../../../button-BdQxLUOB.js";
|
|
2
3
|
import { Badge as t } from "../atoms/badge.js";
|
|
3
4
|
import { Card as n } from "../atoms/card.js";
|
|
@@ -10,7 +11,6 @@ import { Label as c } from "../atoms/label.js";
|
|
|
10
11
|
import { Separator as l } from "../atoms/separator.js";
|
|
11
12
|
import { t as u } from "../../../switch-DlxZDt6o.js";
|
|
12
13
|
/* empty css */
|
|
13
|
-
/* empty css */
|
|
14
14
|
import { useState as d } from "react";
|
|
15
15
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
16
16
|
import { CheckIcon as m, MoonIcon as h, PaletteIcon as g, SunIcon as _, TypeIcon as v } from "lucide-react";
|
|
@@ -8,12 +8,20 @@ export type McpRequirementListItemProps = {
|
|
|
8
8
|
mono?: boolean;
|
|
9
9
|
/** Metadata shown under the title, rendered dot-separated. */
|
|
10
10
|
meta?: React.ReactNode[];
|
|
11
|
-
/** Trailing action label, e.g. "Add" or "Enable". */
|
|
12
|
-
actionLabel
|
|
11
|
+
/** Trailing action label, e.g. "Add" or "Enable". Omit when `readOnly`. */
|
|
12
|
+
actionLabel?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Render a non-interactive row with a locked "Admin only" affordance, for a
|
|
15
|
+
* requirement the viewer can see but lacks permission to set up.
|
|
16
|
+
*/
|
|
17
|
+
readOnly?: boolean;
|
|
18
|
+
/** Tooltip shown on the read-only affordance, explaining why it's locked. */
|
|
19
|
+
readOnlyReason?: React.ReactNode;
|
|
13
20
|
} & Omit<React.ComponentProps<"button">, "children" | "title">;
|
|
14
21
|
/**
|
|
15
22
|
* A requirement row for the setup dialog. The whole row is the button — the
|
|
16
|
-
* trailing action and chevron are visual affordances, not nested buttons.
|
|
23
|
+
* trailing action and chevron are visual affordances, not nested buttons. When
|
|
24
|
+
* `readOnly`, the row is non-interactive and shows an "Admin only" affordance.
|
|
17
25
|
*/
|
|
18
|
-
export declare function McpRequirementListItem({ icon, title, mono, meta, actionLabel, className, ...rest }: McpRequirementListItemProps): React.JSX.Element;
|
|
26
|
+
export declare function McpRequirementListItem({ icon, title, mono, meta, actionLabel, readOnly, readOnlyReason, className, ...rest }: McpRequirementListItemProps): React.JSX.Element;
|
|
19
27
|
//# sourceMappingURL=requirement-list-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requirement-list-item.d.ts","sourceRoot":"","sources":["../../../../../lib/components/ui/molecules/mcp-server-picker/requirement-list-item.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"requirement-list-item.d.ts","sourceRoot":"","sources":["../../../../../lib/components/ui/molecules/mcp-server-picker/requirement-list-item.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAYpC,MAAM,MAAM,2BAA2B,GAAG;IACxC,qDAAqD;IACrD,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,6DAA6D;IAC7D,KAAK,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,8DAA8D;IAC9D,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IACzB,2EAA2E;IAC3E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAClC,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC;AAiD/D;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,IAAI,EACJ,KAAK,EACL,IAAY,EACZ,IAAI,EACJ,WAAW,EACX,QAAgB,EAChB,cAAwC,EACxC,SAAS,EACT,GAAG,IAAI,EACR,EAAE,2BAA2B,qBAkD7B"}
|
|
@@ -1,47 +1,77 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { cn as e } from "../../../../lib/utils.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { i as t, n, r, t as i } from "../../../../tooltip-BUR7V5Aa.js";
|
|
5
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import { ChevronRight as c, LockKeyhole as l } from "lucide-react";
|
|
6
7
|
//#region lib/components/ui/molecules/mcp-server-picker/requirement-list-item.tsx
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
var u = "You don't have permission to set this up. Ask a project or organization admin to add it.";
|
|
9
|
+
function d({ icon: t, title: n, mono: r, meta: i }) {
|
|
10
|
+
return /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("span", {
|
|
11
|
+
"aria-hidden": !0,
|
|
12
|
+
className: "flex size-9 shrink-0 items-center justify-center rounded-lg bg-muted/70 text-muted-foreground ring-1 ring-border/60 transition-[background-color,color,box-shadow] duration-[var(--duration-fast)] ease-[var(--ease-smooth)] group-hover:bg-background group-hover:text-foreground group-hover:ring-border group-focus-visible:bg-background group-focus-visible:text-foreground group-focus-visible:ring-border motion-reduce:transition-none dark:bg-muted/50 dark:group-focus-visible:bg-muted/80 dark:group-hover:bg-muted/80",
|
|
13
|
+
children: t
|
|
14
|
+
}), /* @__PURE__ */ s("span", {
|
|
15
|
+
className: "flex min-w-0 flex-1 flex-col gap-0.5",
|
|
16
|
+
children: [/* @__PURE__ */ o("span", {
|
|
17
|
+
className: e("truncate font-medium text-foreground text-sm leading-5", r && "font-mono text-[13px]"),
|
|
18
|
+
title: n,
|
|
19
|
+
translate: r ? "no" : void 0,
|
|
20
|
+
children: n
|
|
21
|
+
}), i && i.length > 0 ? /* @__PURE__ */ o("span", {
|
|
22
|
+
className: "flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1 text-muted-foreground text-xs leading-4",
|
|
23
|
+
children: i.map((e, t) => /* @__PURE__ */ s("span", {
|
|
24
|
+
className: "contents",
|
|
25
|
+
children: [t > 0 ? /* @__PURE__ */ o("span", {
|
|
26
|
+
"aria-hidden": !0,
|
|
27
|
+
className: "size-1 rounded-full bg-muted-foreground/35"
|
|
28
|
+
}) : null, /* @__PURE__ */ o("span", { children: e })]
|
|
29
|
+
}, t))
|
|
30
|
+
}) : null]
|
|
31
|
+
})] });
|
|
32
|
+
}
|
|
33
|
+
function f({ icon: a, title: f, mono: p = !1, meta: m, actionLabel: h, readOnly: g = !1, readOnlyReason: _ = u, className: v, ...y }) {
|
|
34
|
+
return g ? /* @__PURE__ */ s("div", {
|
|
35
|
+
className: e("flex min-h-16 w-full items-center gap-3 px-3 py-2.5 text-left first:rounded-t-xl last:rounded-b-xl", v),
|
|
36
|
+
"data-slot": "mcp-requirement-list-item",
|
|
37
|
+
children: [/* @__PURE__ */ o(d, {
|
|
38
|
+
icon: a,
|
|
39
|
+
meta: m,
|
|
40
|
+
mono: p,
|
|
41
|
+
title: f
|
|
42
|
+
}), /* @__PURE__ */ o(r, {
|
|
43
|
+
delay: 150,
|
|
44
|
+
children: /* @__PURE__ */ s(i, { children: [/* @__PURE__ */ s(t, {
|
|
45
|
+
"aria-label": `Admin only. ${typeof _ == "string" ? _ : ""}`.trim(),
|
|
46
|
+
className: "flex shrink-0 cursor-help items-center gap-1.5 rounded-lg border border-muted-foreground/25 border-dashed px-2.5 py-1.5 font-medium text-muted-foreground/70 text-xs outline-none transition-colors hover:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring/60 motion-reduce:transition-none",
|
|
47
|
+
type: "button",
|
|
48
|
+
children: [/* @__PURE__ */ o(l, {
|
|
49
|
+
"aria-hidden": !0,
|
|
50
|
+
className: "size-3"
|
|
51
|
+
}), /* @__PURE__ */ o("span", { children: "Admin only" })]
|
|
52
|
+
}), /* @__PURE__ */ o(n, {
|
|
53
|
+
className: "max-w-56 text-pretty leading-snug",
|
|
54
|
+
children: _
|
|
55
|
+
})] })
|
|
56
|
+
})]
|
|
57
|
+
}) : /* @__PURE__ */ s("button", {
|
|
58
|
+
className: e("group flex min-h-16 w-full cursor-pointer items-center gap-3 px-3 py-2.5 text-left outline-none transition-[background-color,color] duration-[var(--duration-fast)] ease-[var(--ease-smooth)] first:rounded-t-xl last:rounded-b-xl hover:bg-foreground/[0.035] focus-visible:bg-foreground/[0.035] focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-inset active:bg-foreground/[0.055] disabled:pointer-events-none disabled:opacity-50 motion-reduce:transition-none dark:active:bg-foreground/[0.11] dark:focus-visible:bg-foreground/[0.08] dark:hover:bg-foreground/[0.08]", v),
|
|
10
59
|
"data-slot": "mcp-requirement-list-item",
|
|
11
|
-
...
|
|
60
|
+
...y,
|
|
12
61
|
type: "button",
|
|
13
|
-
children: [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}), s && s.length > 0 ? /* @__PURE__ */ t("span", {
|
|
26
|
-
className: "flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1 text-muted-foreground text-xs leading-4",
|
|
27
|
-
children: s.map((e, r) => /* @__PURE__ */ n("span", {
|
|
28
|
-
className: "contents",
|
|
29
|
-
children: [r > 0 ? /* @__PURE__ */ t("span", {
|
|
30
|
-
"aria-hidden": !0,
|
|
31
|
-
className: "size-1 rounded-full bg-muted-foreground/35"
|
|
32
|
-
}) : null, /* @__PURE__ */ t("span", { children: e })]
|
|
33
|
-
}, r))
|
|
34
|
-
}) : null]
|
|
35
|
-
}),
|
|
36
|
-
/* @__PURE__ */ n("span", {
|
|
37
|
-
className: "flex shrink-0 items-center gap-1.5 rounded-lg bg-muted/60 px-2.5 py-1.5 font-medium text-muted-foreground text-xs transition-[background-color,color] duration-[var(--duration-fast)] ease-[var(--ease-smooth)] group-hover:bg-primary group-hover:text-primary-foreground group-focus-visible:bg-primary group-focus-visible:text-primary-foreground motion-reduce:transition-none dark:bg-muted/50 dark:group-focus-visible:bg-primary dark:group-focus-visible:text-primary-foreground dark:group-hover:bg-primary dark:group-hover:text-primary-foreground",
|
|
38
|
-
children: [/* @__PURE__ */ t("span", {
|
|
39
|
-
className: "max-w-20 truncate",
|
|
40
|
-
children: c
|
|
41
|
-
}), /* @__PURE__ */ t(r, { className: "size-3.5 transition-transform duration-[var(--duration-fast)] ease-[var(--ease-smooth)] group-hover:translate-x-0.5 group-focus-visible:translate-x-0.5 motion-reduce:transition-none motion-reduce:group-focus-visible:translate-x-0 motion-reduce:group-hover:translate-x-0" })]
|
|
42
|
-
})
|
|
43
|
-
]
|
|
62
|
+
children: [/* @__PURE__ */ o(d, {
|
|
63
|
+
icon: a,
|
|
64
|
+
meta: m,
|
|
65
|
+
mono: p,
|
|
66
|
+
title: f
|
|
67
|
+
}), /* @__PURE__ */ s("span", {
|
|
68
|
+
className: "flex shrink-0 items-center gap-1.5 rounded-lg bg-muted/60 px-2.5 py-1.5 font-medium text-muted-foreground text-xs transition-[background-color,color] duration-[var(--duration-fast)] ease-[var(--ease-smooth)] group-hover:bg-primary group-hover:text-primary-foreground group-focus-visible:bg-primary group-focus-visible:text-primary-foreground motion-reduce:transition-none dark:bg-muted/50 dark:group-focus-visible:bg-primary dark:group-focus-visible:text-primary-foreground dark:group-hover:bg-primary dark:group-hover:text-primary-foreground",
|
|
69
|
+
children: [/* @__PURE__ */ o("span", {
|
|
70
|
+
className: "max-w-20 truncate",
|
|
71
|
+
children: h
|
|
72
|
+
}), /* @__PURE__ */ o(c, { className: "size-3.5 transition-transform duration-[var(--duration-fast)] ease-[var(--ease-smooth)] group-hover:translate-x-0.5 group-focus-visible:translate-x-0.5 motion-reduce:transition-none motion-reduce:group-focus-visible:translate-x-0 motion-reduce:group-hover:translate-x-0" })]
|
|
73
|
+
})]
|
|
44
74
|
});
|
|
45
75
|
}
|
|
46
76
|
//#endregion
|
|
47
|
-
export {
|
|
77
|
+
export { f as McpRequirementListItem };
|
|
@@ -10,7 +10,8 @@ export type McpRequirementsStatusProps = {
|
|
|
10
10
|
/**
|
|
11
11
|
* The unmet requirements to show. An empty array renders the satisfied
|
|
12
12
|
* "Ready" state, so callers must not pass an empty array while data is still
|
|
13
|
-
*
|
|
13
|
+
* resolving — use `loading` for that, and `unverifiedCount` for requirements
|
|
14
|
+
* whose status couldn't be confirmed.
|
|
14
15
|
*/
|
|
15
16
|
requirements: McpRequirementInfoItem[];
|
|
16
17
|
/**
|
|
@@ -26,6 +27,11 @@ export type McpRequirementsStatusProps = {
|
|
|
26
27
|
* switches between the action and the read-only admin-handoff guidance.
|
|
27
28
|
*/
|
|
28
29
|
onSetup?: () => void;
|
|
30
|
+
/**
|
|
31
|
+
* Requirement data isn't ready yet. Renders a skeleton sized to the resolved
|
|
32
|
+
* states so the column doesn't flash "Ready" (or empty) before it's known.
|
|
33
|
+
*/
|
|
34
|
+
loading?: boolean;
|
|
29
35
|
className?: string;
|
|
30
36
|
};
|
|
31
37
|
/**
|
|
@@ -33,5 +39,5 @@ export type McpRequirementsStatusProps = {
|
|
|
33
39
|
* callback turns missing requirements into a secondary action; without it,
|
|
34
40
|
* the same summary becomes a ghost disclosure with permission guidance.
|
|
35
41
|
*/
|
|
36
|
-
export declare function McpRequirementsStatus({ requirements, unverifiedCount, onSetup, className, }: McpRequirementsStatusProps): import("react").JSX.Element;
|
|
42
|
+
export declare function McpRequirementsStatus({ requirements, unverifiedCount, onSetup, loading, className, }: McpRequirementsStatusProps): import("react").JSX.Element;
|
|
37
43
|
//# sourceMappingURL=mcp-requirements-status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-requirements-status.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/organisms/mcp-requirements-status.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"mcp-requirements-status.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/organisms/mcp-requirements-status.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAoBvC,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAOF,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;;;OAKG;IACH,YAAY,EAAE,sBAAsB,EAAE,CAAC;IACvC;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAmMF;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,YAAY,EACZ,eAAmB,EACnB,OAAO,EACP,OAAe,EACf,SAAS,GACV,EAAE,0BAA0B,+BA2C5B"}
|
|
@@ -4,155 +4,157 @@ import { cn as e } from "../../../lib/utils.js";
|
|
|
4
4
|
import { t } from "../../../button-BdQxLUOB.js";
|
|
5
5
|
import { a as n, i as r, n as i, o as a, r as o, t as s } from "../../../popover-CpLkQtT5.js";
|
|
6
6
|
import { t as c } from "../../../scroll-area-D7iOy7xj.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { Skeleton as l } from "../atoms/skeleton.js";
|
|
8
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
9
|
+
import { CheckCircle2 as p, ChevronDown as m, CircleHelp as h, KeyRound as g, LockKeyhole as _ } from "lucide-react";
|
|
9
10
|
//#region lib/components/ui/organisms/mcp-requirements-status.tsx
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
11
|
+
var v = /* @__PURE__ */ d(u, { children: "You can view these, but only a project or organization admin can add them." }), y = 42, b = 252;
|
|
12
|
+
function x({ count: e, showChevron: t = !1 }) {
|
|
13
|
+
return /* @__PURE__ */ f(u, { children: [
|
|
14
|
+
/* @__PURE__ */ d("span", {
|
|
14
15
|
"aria-hidden": !0,
|
|
15
|
-
className: "flex size-5 shrink-0 items-center justify-center rounded-md bg-warning/
|
|
16
|
-
children: /* @__PURE__ */
|
|
16
|
+
className: "flex size-5 shrink-0 items-center justify-center rounded-md bg-warning/5 text-warning",
|
|
17
|
+
children: /* @__PURE__ */ d(g, { className: "size-3" })
|
|
17
18
|
}),
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ f("span", {
|
|
19
20
|
className: "inline-flex items-baseline gap-1 whitespace-nowrap text-muted-foreground text-xs tabular-nums",
|
|
20
|
-
children: [/* @__PURE__ */
|
|
21
|
+
children: [/* @__PURE__ */ d("span", {
|
|
21
22
|
className: "font-semibold text-foreground",
|
|
22
23
|
children: e
|
|
23
|
-
}), /* @__PURE__ */
|
|
24
|
+
}), /* @__PURE__ */ d("span", { children: e === 1 ? "requirement" : "requirements" })]
|
|
24
25
|
}),
|
|
25
|
-
t ? /* @__PURE__ */
|
|
26
|
+
t ? /* @__PURE__ */ d(m, {
|
|
26
27
|
"aria-hidden": !0,
|
|
27
28
|
className: "size-3 shrink-0 text-muted-foreground/70 transition-transform group-aria-expanded:rotate-180 motion-reduce:transition-none"
|
|
28
29
|
}) : null
|
|
29
30
|
] });
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
-
return /* @__PURE__ */
|
|
32
|
+
function S({ className: t }) {
|
|
33
|
+
return /* @__PURE__ */ f("span", {
|
|
33
34
|
className: e("inline-flex h-8 items-center gap-2 whitespace-nowrap px-2 font-medium text-muted-foreground text-sm", t),
|
|
34
|
-
children: [/* @__PURE__ */
|
|
35
|
+
children: [/* @__PURE__ */ d(p, {
|
|
35
36
|
"aria-hidden": !0,
|
|
36
37
|
className: "size-4 text-success/80"
|
|
37
|
-
}), /* @__PURE__ */
|
|
38
|
+
}), /* @__PURE__ */ d("span", { children: "Ready" })]
|
|
38
39
|
});
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
-
return /* @__PURE__ */
|
|
41
|
+
function C({ count: t, className: c }) {
|
|
42
|
+
return /* @__PURE__ */ f(s, { children: [/* @__PURE__ */ f(a, {
|
|
42
43
|
"aria-label": `${t === 1 ? "1 item" : `${t} items`} unverified. View details`,
|
|
43
44
|
className: e("group inline-flex h-8 items-center gap-2 whitespace-nowrap rounded-md px-2 font-medium text-muted-foreground text-sm outline-none transition-colors hover:bg-muted/40 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/60 motion-reduce:transition-none dark:hover:bg-muted/25", c),
|
|
44
45
|
type: "button",
|
|
45
46
|
children: [
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ d(h, {
|
|
47
48
|
"aria-hidden": !0,
|
|
48
49
|
className: "size-3.5 shrink-0 text-muted-foreground"
|
|
49
50
|
}),
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ d("span", { children: "Couldn't verify" }),
|
|
52
|
+
/* @__PURE__ */ d(m, {
|
|
52
53
|
"aria-hidden": !0,
|
|
53
54
|
className: "size-3.5 shrink-0 text-muted-foreground transition-transform group-aria-expanded:rotate-180 motion-reduce:transition-none"
|
|
54
55
|
})
|
|
55
56
|
]
|
|
56
|
-
}), /* @__PURE__ */
|
|
57
|
+
}), /* @__PURE__ */ f(i, {
|
|
57
58
|
align: "start",
|
|
58
59
|
className: "w-72 gap-3",
|
|
59
60
|
sideOffset: 6,
|
|
60
|
-
children: [/* @__PURE__ */
|
|
61
|
+
children: [/* @__PURE__ */ f(r, { children: [/* @__PURE__ */ d(n, { children: "Couldn't check requirements" }), /* @__PURE__ */ d(o, { children: "Arcade couldn't confirm whether this gateway's tools are ready to run." })] }), /* @__PURE__ */ d("p", {
|
|
61
62
|
className: "text-muted-foreground text-xs leading-relaxed",
|
|
62
63
|
children: "Usually a listed tool is no longer available. Review the gateway's tools, or refresh if it's a temporary error."
|
|
63
64
|
})]
|
|
64
65
|
})] });
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
-
return /* @__PURE__ */
|
|
67
|
+
function w({ item: t }) {
|
|
68
|
+
return /* @__PURE__ */ f("li", {
|
|
68
69
|
className: "flex items-center gap-2.5",
|
|
69
|
-
children: [/* @__PURE__ */
|
|
70
|
+
children: [/* @__PURE__ */ d("span", {
|
|
70
71
|
"aria-hidden": !0,
|
|
71
72
|
className: "flex size-7 shrink-0 items-center justify-center rounded-md bg-muted/60 text-muted-foreground ring-1 ring-border/50",
|
|
72
73
|
children: t.icon
|
|
73
|
-
}), /* @__PURE__ */
|
|
74
|
+
}), /* @__PURE__ */ f("span", {
|
|
74
75
|
className: "min-w-0 flex-1",
|
|
75
|
-
children: [/* @__PURE__ */
|
|
76
|
+
children: [/* @__PURE__ */ d("span", {
|
|
76
77
|
className: e("block truncate font-medium text-foreground text-xs", t.mono && "font-mono"),
|
|
77
78
|
title: t.title,
|
|
78
79
|
translate: t.mono ? "no" : void 0,
|
|
79
80
|
children: t.title
|
|
80
|
-
}), /* @__PURE__ */
|
|
81
|
+
}), /* @__PURE__ */ d("span", {
|
|
81
82
|
className: "block truncate text-[11px] text-muted-foreground",
|
|
82
83
|
children: t.meta
|
|
83
84
|
})]
|
|
84
85
|
})]
|
|
85
86
|
});
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
+
function T({ requirements: t, unverifiedCount: l, className: u }) {
|
|
88
89
|
let p = t.length;
|
|
89
|
-
return /* @__PURE__ */
|
|
90
|
+
return /* @__PURE__ */ f(s, { children: [/* @__PURE__ */ d(a, {
|
|
90
91
|
"aria-label": `View ${`${p} ${p === 1 ? "requirement" : "requirements"}`} that ${p === 1 ? "needs" : "need"} setup`,
|
|
91
|
-
className: e("group inline-flex h-8 items-center gap-2 rounded-md px-1.5 text-left outline-none transition-colors hover:bg-foreground/[0.04] focus-visible:ring-2 focus-visible:ring-ring/60 motion-reduce:transition-none dark:hover:bg-foreground/[0.06]",
|
|
92
|
+
className: e("group inline-flex h-8 items-center gap-2 rounded-md px-1.5 text-left outline-none transition-colors hover:bg-foreground/[0.04] focus-visible:ring-2 focus-visible:ring-ring/60 motion-reduce:transition-none dark:hover:bg-foreground/[0.06]", u),
|
|
92
93
|
type: "button",
|
|
93
|
-
children: /* @__PURE__ */
|
|
94
|
+
children: /* @__PURE__ */ d(x, {
|
|
94
95
|
count: p,
|
|
95
96
|
showChevron: !0
|
|
96
97
|
})
|
|
97
|
-
}), /* @__PURE__ */
|
|
98
|
+
}), /* @__PURE__ */ f(i, {
|
|
98
99
|
align: "start",
|
|
99
100
|
className: "w-80 max-w-[calc(100vw-1rem)] gap-0 overflow-hidden p-0",
|
|
100
101
|
sideOffset: 6,
|
|
101
102
|
children: [
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
+
/* @__PURE__ */ f(r, {
|
|
103
104
|
className: "border-border/60 border-b px-3 py-2.5",
|
|
104
|
-
children: [/* @__PURE__ */
|
|
105
|
+
children: [/* @__PURE__ */ d(n, { children: "Setup Requirements" }), /* @__PURE__ */ d(o, { children: "Configure these before the gateway's tools can run." })]
|
|
105
106
|
}),
|
|
106
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ f("div", {
|
|
107
108
|
className: "px-3 py-3",
|
|
108
|
-
children: [/* @__PURE__ */
|
|
109
|
+
children: [/* @__PURE__ */ d(c, {
|
|
109
110
|
className: "min-h-0 overflow-hidden",
|
|
110
111
|
orientation: "vertical",
|
|
111
|
-
style: { height: Math.min(t.length *
|
|
112
|
+
style: { height: Math.min(t.length * y, b) },
|
|
112
113
|
type: "hover",
|
|
113
|
-
children: /* @__PURE__ */
|
|
114
|
+
children: /* @__PURE__ */ d("ul", {
|
|
114
115
|
className: "space-y-2.5 pr-2",
|
|
115
|
-
children: t.map((e) => /* @__PURE__ */
|
|
116
|
+
children: t.map((e) => /* @__PURE__ */ d(w, { item: e }, e.id))
|
|
116
117
|
})
|
|
117
|
-
}), l > 0 ? /* @__PURE__ */
|
|
118
|
+
}), l > 0 ? /* @__PURE__ */ f("div", {
|
|
118
119
|
className: "mt-3 flex items-start gap-2 border-border/50 border-t pt-3 text-muted-foreground text-xs leading-relaxed",
|
|
119
|
-
children: [/* @__PURE__ */
|
|
120
|
+
children: [/* @__PURE__ */ d(h, {
|
|
120
121
|
"aria-hidden": !0,
|
|
121
122
|
className: "mt-0.5 size-3.5 shrink-0"
|
|
122
|
-
}), /* @__PURE__ */
|
|
123
|
+
}), /* @__PURE__ */ f("span", { children: [l, " more couldn't be checked."] })]
|
|
123
124
|
}) : null]
|
|
124
125
|
}),
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ f("div", {
|
|
126
127
|
className: "flex items-start gap-2.5 border-border/60 border-t bg-muted/20 px-3 py-2.5 text-muted-foreground text-xs leading-relaxed",
|
|
127
|
-
children: [/* @__PURE__ */
|
|
128
|
+
children: [/* @__PURE__ */ d(_, {
|
|
128
129
|
"aria-hidden": !0,
|
|
129
130
|
className: "mt-0.5 size-3.5 shrink-0 text-foreground/70"
|
|
130
|
-
}), /* @__PURE__ */
|
|
131
|
+
}), /* @__PURE__ */ d("span", { children: v })]
|
|
131
132
|
})
|
|
132
133
|
]
|
|
133
134
|
})] });
|
|
134
135
|
}
|
|
135
|
-
function
|
|
136
|
-
if (
|
|
137
|
-
|
|
136
|
+
function E({ requirements: n, unverifiedCount: r = 0, onSetup: i, loading: a = !1, className: o }) {
|
|
137
|
+
if (a) return /* @__PURE__ */ d(l, { className: e("h-8 w-28 rounded-md", o) });
|
|
138
|
+
if (n.length === 0) return r > 0 ? /* @__PURE__ */ d(C, {
|
|
139
|
+
className: o,
|
|
138
140
|
count: r
|
|
139
|
-
}) : /* @__PURE__ */
|
|
141
|
+
}) : /* @__PURE__ */ d(S, { className: o });
|
|
140
142
|
if (i) {
|
|
141
143
|
let r = n.length;
|
|
142
|
-
return /* @__PURE__ */
|
|
144
|
+
return /* @__PURE__ */ d(t, {
|
|
143
145
|
"aria-label": `Configure ${`${r} ${r === 1 ? "requirement" : "requirements"}`}`,
|
|
144
|
-
className: e("h-8 gap-2 rounded-md px-1.5 pr-2.5 shadow-none motion-reduce:transition-none",
|
|
146
|
+
className: e("h-8 gap-2 rounded-md px-1.5 pr-2.5 shadow-none motion-reduce:transition-none", o),
|
|
145
147
|
onClick: i,
|
|
146
148
|
type: "button",
|
|
147
|
-
variant: "
|
|
148
|
-
children: /* @__PURE__ */
|
|
149
|
+
variant: "outline",
|
|
150
|
+
children: /* @__PURE__ */ d(x, { count: r })
|
|
149
151
|
});
|
|
150
152
|
}
|
|
151
|
-
return /* @__PURE__ */
|
|
152
|
-
className:
|
|
153
|
+
return /* @__PURE__ */ d(T, {
|
|
154
|
+
className: o,
|
|
153
155
|
requirements: n,
|
|
154
156
|
unverifiedCount: r
|
|
155
157
|
});
|
|
156
158
|
}
|
|
157
159
|
//#endregion
|
|
158
|
-
export {
|
|
160
|
+
export { E as McpRequirementsStatus };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-tool-inventory-popover.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/organisms/mcp-tool-inventory-popover.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mcp-tool-inventory-popover.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/organisms/mcp-tool-inventory-popover.tsx"],"names":[],"mappings":"AAyBA,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,qBAAqB,EAAE,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAuHF;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,SAAS,GACV,EAAE,4BAA4B,+BAqI9B"}
|
|
@@ -9,15 +9,15 @@ import { useCallback as u, useMemo as d, useState as f } from "react";
|
|
|
9
9
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
10
10
|
import { ChevronDown as h } from "lucide-react";
|
|
11
11
|
//#region lib/components/ui/organisms/mcp-tool-inventory-popover.tsx
|
|
12
|
-
var g = 2, _ = 320, v =
|
|
13
|
-
function
|
|
14
|
-
let
|
|
15
|
-
return Math.min(_,
|
|
12
|
+
var g = 2, _ = 320, v = 36, y = 24;
|
|
13
|
+
function b(e, t) {
|
|
14
|
+
let n = e.find((e) => e.id === t)?.tools.length ?? 0;
|
|
15
|
+
return Math.min(_, e.length * v + n * y);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function x({ group: t, isExpanded: n, showTopBorder: r, onToggle: i }) {
|
|
18
18
|
return /* @__PURE__ */ m("button", {
|
|
19
19
|
"aria-expanded": n,
|
|
20
|
-
className: e("flex w-full items-center gap-2 px-3
|
|
20
|
+
className: e("flex h-9 w-full items-center gap-2 px-3 text-left outline-none transition-colors hover:bg-muted/40 focus-visible:bg-muted/40 focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-inset motion-reduce:transition-none", r && "border-border/50 border-t", n && "bg-muted/25"),
|
|
21
21
|
onClick: i,
|
|
22
22
|
type: "button",
|
|
23
23
|
children: [
|
|
@@ -45,25 +45,25 @@ function C({ group: t, isExpanded: n, showTopBorder: r, onToggle: i }) {
|
|
|
45
45
|
]
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function S({ tool: e }) {
|
|
49
49
|
return /* @__PURE__ */ p("div", {
|
|
50
|
-
className:
|
|
51
|
-
title:
|
|
50
|
+
className: "bg-muted/15 py-1 pr-3 pl-7",
|
|
51
|
+
title: e,
|
|
52
52
|
translate: "no",
|
|
53
53
|
children: /* @__PURE__ */ p("div", {
|
|
54
54
|
className: "truncate border-border/60 border-l pl-3 text-muted-foreground text-xs",
|
|
55
|
-
children:
|
|
55
|
+
children: e
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function C({ group: e, groupIndex: t, isExpanded: n, onToggle: r, scrollElement: i }) {
|
|
60
60
|
let a = d(() => e.tools.map((e, t) => ({
|
|
61
61
|
tool: e,
|
|
62
62
|
index: t
|
|
63
63
|
})), [e.tools]);
|
|
64
64
|
return /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("div", {
|
|
65
65
|
className: "sticky top-0 z-10 bg-popover",
|
|
66
|
-
children: /* @__PURE__ */ p(
|
|
66
|
+
children: /* @__PURE__ */ p(x, {
|
|
67
67
|
group: e,
|
|
68
68
|
isExpanded: n,
|
|
69
69
|
onToggle: r,
|
|
@@ -71,21 +71,17 @@ function T({ group: e, groupIndex: t, isExpanded: n, onToggle: r, scrollElement:
|
|
|
71
71
|
})
|
|
72
72
|
}), n ? /* @__PURE__ */ p(c, {
|
|
73
73
|
columns: 1,
|
|
74
|
-
estimateRowSize:
|
|
74
|
+
estimateRowSize: y,
|
|
75
75
|
getItemKey: (e) => `tool:${t}:${e.index}`,
|
|
76
76
|
gridClassName: "grid grid-cols-1",
|
|
77
77
|
items: a,
|
|
78
|
-
renderItem: (
|
|
79
|
-
isFirst: t.index === 0,
|
|
80
|
-
isLast: t.index === e.tools.length - 1,
|
|
81
|
-
tool: t.tool
|
|
82
|
-
}),
|
|
78
|
+
renderItem: (e) => /* @__PURE__ */ p(S, { tool: e.tool }),
|
|
83
79
|
scrollElement: i
|
|
84
80
|
}) : null] });
|
|
85
81
|
}
|
|
86
|
-
function
|
|
87
|
-
let [v, y] = f(void 0), [
|
|
88
|
-
|
|
82
|
+
function w({ groups: c, className: _ }) {
|
|
83
|
+
let [v, y] = f(void 0), [x, S] = f(null), [w] = c, T = w ? w.id : null, E = v === null || c.some((e) => e.id === v), D = v !== void 0 && E ? v : T, O = d(() => c.reduce((e, t) => e + t.tools.length, 0), [c]), k = u((e) => {
|
|
84
|
+
S(e?.querySelector("[data-slot=\"scroll-area-viewport\"]") ?? null);
|
|
89
85
|
}, []);
|
|
90
86
|
if (c.length === 0) return /* @__PURE__ */ m("span", {
|
|
91
87
|
className: "text-muted-foreground",
|
|
@@ -135,7 +131,7 @@ function E({ groups: c, className: _ }) {
|
|
|
135
131
|
]
|
|
136
132
|
}), /* @__PURE__ */ m(r, {
|
|
137
133
|
align: "start",
|
|
138
|
-
className: "w-80 max-w-[calc(100vw-1rem)] gap-0 overflow-hidden p-0",
|
|
134
|
+
className: "w-80 max-w-[calc(100vw-1rem)] gap-0 overflow-hidden p-0 pb-1.5 shadow-black/30 shadow-xl ring-1 ring-foreground/20",
|
|
139
135
|
sideOffset: 6,
|
|
140
136
|
children: [/* @__PURE__ */ m(n, {
|
|
141
137
|
className: "border-border/60 border-b px-3 py-2.5",
|
|
@@ -148,17 +144,17 @@ function E({ groups: c, className: _ }) {
|
|
|
148
144
|
className: "min-h-0 overflow-hidden",
|
|
149
145
|
orientation: "vertical",
|
|
150
146
|
ref: k,
|
|
151
|
-
style: { height:
|
|
147
|
+
style: { height: b(c, D) },
|
|
152
148
|
type: "hover",
|
|
153
|
-
children: c.map((e, t) => /* @__PURE__ */ p(
|
|
149
|
+
children: c.map((e, t) => /* @__PURE__ */ p(C, {
|
|
154
150
|
group: e,
|
|
155
151
|
groupIndex: t,
|
|
156
152
|
isExpanded: e.id === D,
|
|
157
153
|
onToggle: () => y(e.id === D ? null : e.id),
|
|
158
|
-
scrollElement:
|
|
154
|
+
scrollElement: x
|
|
159
155
|
}, e.id))
|
|
160
156
|
})]
|
|
161
157
|
})] });
|
|
162
158
|
}
|
|
163
159
|
//#endregion
|
|
164
|
-
export {
|
|
160
|
+
export { w as McpToolInventoryPopover };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolkit-icons.d.ts","sourceRoot":"","sources":["../../lib/metadata/toolkit-icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAItC,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CACnC,MAAM,EACN,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"toolkit-icons.d.ts","sourceRoot":"","sources":["../../lib/metadata/toolkit-icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAItC,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CACnC,MAAM,EACN,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO,CA+KtD,CAAC;AAaF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,MAAM,GAAG,SAAS,KAC5B;IACD,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IAC5D,YAAY,EAAE,OAAO,CAAC;CAMvB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GACzB,WAAW,MAAM,GAAG,SAAS,KAC5B,CAAC,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO,CACrB,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,WAAW,MAAM,GAAG,SAAS,KAAG,OACnB,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,aAAa,MAAM,KAClB,CAAC,CAAC,KAAK,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,KAAK,CAAC,YAAY,CAQxD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GACnC,aAAa,MAAM,KAClB,CAAC,CAAC,KAAK,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,KAAK,CAAC,YAAY,CAQxD,CAAC"}
|
|
@@ -78,66 +78,67 @@ import { Luma as Ve } from "../components/ui/atoms/icons/luma.js";
|
|
|
78
78
|
import { Mailchimp as F } from "../components/ui/atoms/icons/mailchimp.js";
|
|
79
79
|
import { MathToolkit as He } from "../components/ui/atoms/icons/math-toolkit.js";
|
|
80
80
|
import { Mcp as Ue } from "../components/ui/atoms/icons/mcp.js";
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
81
|
+
import { Microsoft as I } from "../components/ui/atoms/icons/microsoft.js";
|
|
82
|
+
import { MicrosoftDynamics as We } from "../components/ui/atoms/icons/microsoft-dynamics.js";
|
|
83
|
+
import { MicrosoftExcel as Ge } from "../components/ui/atoms/icons/microsoft-excel.js";
|
|
84
|
+
import { MicrosoftOnedrive as Ke } from "../components/ui/atoms/icons/microsoft-onedrive.js";
|
|
84
85
|
import { MicrosoftOutlookCalendar as L } from "../components/ui/atoms/icons/microsoft-outlook-calendar.js";
|
|
85
86
|
import { MicrosoftOutlookMail as R } from "../components/ui/atoms/icons/microsoft-outlook-mail.js";
|
|
86
|
-
import { MicrosoftPowerBi as
|
|
87
|
-
import { MicrosoftPowerpoint as
|
|
87
|
+
import { MicrosoftPowerBi as qe } from "../components/ui/atoms/icons/microsoft-power-bi.js";
|
|
88
|
+
import { MicrosoftPowerpoint as Je } from "../components/ui/atoms/icons/microsoft-powerpoint.js";
|
|
88
89
|
import { MicrosoftSharepoint as z } from "../components/ui/atoms/icons/microsoft-sharepoint.js";
|
|
89
|
-
import { MicrosoftTeams as
|
|
90
|
-
import { MicrosoftWord as
|
|
90
|
+
import { MicrosoftTeams as Ye } from "../components/ui/atoms/icons/microsoft-teams.js";
|
|
91
|
+
import { MicrosoftWord as Xe } from "../components/ui/atoms/icons/microsoft-word.js";
|
|
91
92
|
import { Miro as B } from "../components/ui/atoms/icons/miro.js";
|
|
92
|
-
import { Monday as
|
|
93
|
-
import { MongoDB as
|
|
94
|
-
import { Netsuite as
|
|
93
|
+
import { Monday as Ze } from "../components/ui/atoms/icons/monday.js";
|
|
94
|
+
import { MongoDB as Qe } from "../components/ui/atoms/icons/mongodb.js";
|
|
95
|
+
import { Netsuite as $e } from "../components/ui/atoms/icons/netsuite.js";
|
|
95
96
|
import { Notion as V } from "../components/ui/atoms/icons/notion.js";
|
|
96
|
-
import { Obsidian as
|
|
97
|
-
import { Okta as
|
|
97
|
+
import { Obsidian as et } from "../components/ui/atoms/icons/obsidian.js";
|
|
98
|
+
import { Okta as tt } from "../components/ui/atoms/icons/okta.js";
|
|
98
99
|
import { Pagerduty as H } from "../components/ui/atoms/icons/pagerduty.js";
|
|
99
|
-
import { Pinecone as
|
|
100
|
-
import { Pinterest as
|
|
101
|
-
import { Pipedrive as
|
|
102
|
-
import { Plaid as
|
|
103
|
-
import { Postgres as
|
|
100
|
+
import { Pinecone as nt } from "../components/ui/atoms/icons/pinecone.js";
|
|
101
|
+
import { Pinterest as rt } from "../components/ui/atoms/icons/pinterest.js";
|
|
102
|
+
import { Pipedrive as it } from "../components/ui/atoms/icons/pipedrive.js";
|
|
103
|
+
import { Plaid as at } from "../components/ui/atoms/icons/plaid.js";
|
|
104
|
+
import { Postgres as ot } from "../components/ui/atoms/icons/postgres.js";
|
|
104
105
|
import { Posthog as U } from "../components/ui/atoms/icons/posthog.js";
|
|
105
|
-
import { Postman as
|
|
106
|
+
import { Postman as st } from "../components/ui/atoms/icons/postman.js";
|
|
106
107
|
import { Pylon as W } from "../components/ui/atoms/icons/pylon.js";
|
|
107
|
-
import { Quickbooks as
|
|
108
|
-
import { Railway as
|
|
109
|
-
import { Reddit as
|
|
110
|
-
import { Resend as
|
|
111
|
-
import { Salesforce as
|
|
112
|
-
import { Shopify as
|
|
113
|
-
import { Singlestore as
|
|
108
|
+
import { Quickbooks as ct } from "../components/ui/atoms/icons/quickbooks.js";
|
|
109
|
+
import { Railway as lt } from "../components/ui/atoms/icons/railway.js";
|
|
110
|
+
import { Reddit as ut } from "../components/ui/atoms/icons/reddit.js";
|
|
111
|
+
import { Resend as dt } from "../components/ui/atoms/icons/resend.js";
|
|
112
|
+
import { Salesforce as ft } from "../components/ui/atoms/icons/salesforce.js";
|
|
113
|
+
import { Shopify as pt } from "../components/ui/atoms/icons/shopify.js";
|
|
114
|
+
import { Singlestore as mt } from "../components/ui/atoms/icons/singlestore.js";
|
|
114
115
|
import { Slack as G } from "../components/ui/atoms/icons/slack.js";
|
|
115
|
-
import { Snowflake as
|
|
116
|
-
import { Splunk as
|
|
117
|
-
import { Spotify as
|
|
116
|
+
import { Snowflake as ht } from "../components/ui/atoms/icons/snowflake.js";
|
|
117
|
+
import { Splunk as gt } from "../components/ui/atoms/icons/splunk.js";
|
|
118
|
+
import { Spotify as _t } from "../components/ui/atoms/icons/spotify.js";
|
|
118
119
|
import { Square as K } from "../components/ui/atoms/icons/square.js";
|
|
119
|
-
import { Squarespace as
|
|
120
|
-
import { Squareup as
|
|
120
|
+
import { Squarespace as vt } from "../components/ui/atoms/icons/squarespace.js";
|
|
121
|
+
import { Squareup as yt } from "../components/ui/atoms/icons/squareup.js";
|
|
121
122
|
import { Stripe as q } from "../components/ui/atoms/icons/stripe.js";
|
|
122
|
-
import { Telegram as
|
|
123
|
-
import { Ticktick as
|
|
124
|
-
import { Tiktok as
|
|
125
|
-
import { Trello as
|
|
126
|
-
import { Twilio as
|
|
127
|
-
import { Twitch as
|
|
128
|
-
import { Vercel as
|
|
129
|
-
import { Walmart as
|
|
130
|
-
import { Weaviate as
|
|
131
|
-
import { Workday as
|
|
132
|
-
import { Wrike as
|
|
133
|
-
import { X as
|
|
123
|
+
import { Telegram as bt } from "../components/ui/atoms/icons/telegram.js";
|
|
124
|
+
import { Ticktick as xt } from "../components/ui/atoms/icons/ticktick.js";
|
|
125
|
+
import { Tiktok as St } from "../components/ui/atoms/icons/tiktok.js";
|
|
126
|
+
import { Trello as Ct } from "../components/ui/atoms/icons/trello.js";
|
|
127
|
+
import { Twilio as wt } from "../components/ui/atoms/icons/twilio.js";
|
|
128
|
+
import { Twitch as Tt } from "../components/ui/atoms/icons/twitch.js";
|
|
129
|
+
import { Vercel as Et } from "../components/ui/atoms/icons/vercel.js";
|
|
130
|
+
import { Walmart as Dt } from "../components/ui/atoms/icons/walmart.js";
|
|
131
|
+
import { Weaviate as Ot } from "../components/ui/atoms/icons/weaviate.js";
|
|
132
|
+
import { Workday as kt } from "../components/ui/atoms/icons/workday.js";
|
|
133
|
+
import { Wrike as At } from "../components/ui/atoms/icons/wrike.js";
|
|
134
|
+
import { X as jt } from "../components/ui/atoms/icons/x.js";
|
|
134
135
|
import { Xero as J } from "../components/ui/atoms/icons/xero.js";
|
|
135
|
-
import { Youtube as
|
|
136
|
-
import { Yugabytedb as
|
|
137
|
-
import { Zendesk as
|
|
138
|
-
import { ZohoBooks as
|
|
139
|
-
import { ZohoCreator as
|
|
140
|
-
import { Zoom as
|
|
136
|
+
import { Youtube as Mt } from "../components/ui/atoms/icons/youtube.js";
|
|
137
|
+
import { Yugabytedb as Nt } from "../components/ui/atoms/icons/yugabytedb.js";
|
|
138
|
+
import { Zendesk as Pt } from "../components/ui/atoms/icons/zendesk.js";
|
|
139
|
+
import { ZohoBooks as Ft } from "../components/ui/atoms/icons/zoho-books.js";
|
|
140
|
+
import { ZohoCreator as It } from "../components/ui/atoms/icons/zoho-creator.js";
|
|
141
|
+
import { Zoom as Lt } from "../components/ui/atoms/icons/zoom.js";
|
|
141
142
|
import { findToolkitByName as Y } from "./utils.js";
|
|
142
143
|
import { jsx as X } from "react/jsx-runtime";
|
|
143
144
|
//#region lib/metadata/toolkit-icons.tsx
|
|
@@ -241,91 +242,92 @@ var Z = {
|
|
|
241
242
|
MailchimpMarketingApi: F,
|
|
242
243
|
Math: He,
|
|
243
244
|
MCP: Ue,
|
|
244
|
-
MicrosoftDynamics:
|
|
245
|
-
MicrosoftExcel:
|
|
245
|
+
MicrosoftDynamics: We,
|
|
246
|
+
MicrosoftExcel: Ge,
|
|
246
247
|
MicrosoftOutlookCalendar: L,
|
|
247
248
|
MicrosoftOutlookMail: R,
|
|
248
|
-
MicrosoftPowerBI:
|
|
249
|
-
MicrosoftPowerpoint:
|
|
249
|
+
MicrosoftPowerBI: qe,
|
|
250
|
+
MicrosoftPowerpoint: Je,
|
|
250
251
|
MicrosoftSharePoint: z,
|
|
251
252
|
Sharepoint: z,
|
|
252
|
-
MicrosoftTeams:
|
|
253
|
-
|
|
253
|
+
MicrosoftTeams: Ye,
|
|
254
|
+
MicrosoftUsers: I,
|
|
255
|
+
MicrosoftWord: Xe,
|
|
254
256
|
Miro: B,
|
|
255
257
|
MiroApi: B,
|
|
256
|
-
Monday:
|
|
257
|
-
MongoDB:
|
|
258
|
-
Netsuite:
|
|
258
|
+
Monday: Ze,
|
|
259
|
+
MongoDB: Qe,
|
|
260
|
+
Netsuite: $e,
|
|
259
261
|
Notion: V,
|
|
260
262
|
NotionToolkit: V,
|
|
261
|
-
Obsidian:
|
|
262
|
-
Okta:
|
|
263
|
-
MicrosoftOnedrive:
|
|
263
|
+
Obsidian: et,
|
|
264
|
+
Okta: tt,
|
|
265
|
+
MicrosoftOnedrive: Ke,
|
|
264
266
|
OutlookCalendar: L,
|
|
265
267
|
OutlookMail: R,
|
|
266
268
|
PagerDuty: H,
|
|
267
269
|
PagerDutyApi: H,
|
|
268
|
-
Pinecone:
|
|
269
|
-
Pinterest:
|
|
270
|
-
Pipedrive:
|
|
271
|
-
Plaid:
|
|
270
|
+
Pinecone: nt,
|
|
271
|
+
Pinterest: rt,
|
|
272
|
+
Pipedrive: it,
|
|
273
|
+
Plaid: at,
|
|
272
274
|
Posthog: U,
|
|
273
275
|
PosthogApi: U,
|
|
274
|
-
Postgres:
|
|
275
|
-
Postman:
|
|
276
|
+
Postgres: ot,
|
|
277
|
+
Postman: st,
|
|
276
278
|
Pylon: W,
|
|
277
279
|
PylonApi: W,
|
|
278
|
-
Quickbooks:
|
|
279
|
-
Railway:
|
|
280
|
-
Reddit:
|
|
281
|
-
Resend:
|
|
282
|
-
Salesforce:
|
|
283
|
-
Shopify:
|
|
284
|
-
Singlestore:
|
|
280
|
+
Quickbooks: ct,
|
|
281
|
+
Railway: lt,
|
|
282
|
+
Reddit: ut,
|
|
283
|
+
Resend: dt,
|
|
284
|
+
Salesforce: ft,
|
|
285
|
+
Shopify: pt,
|
|
286
|
+
Singlestore: mt,
|
|
285
287
|
Slack: G,
|
|
286
288
|
SlackApi: G,
|
|
287
|
-
Snowflake:
|
|
288
|
-
Splunk:
|
|
289
|
-
Spotify:
|
|
289
|
+
Snowflake: ht,
|
|
290
|
+
Splunk: gt,
|
|
291
|
+
Spotify: _t,
|
|
290
292
|
Square: K,
|
|
291
|
-
Squareup:
|
|
293
|
+
Squareup: yt,
|
|
292
294
|
SquareupApi: K,
|
|
293
295
|
SquareUpApi: K,
|
|
294
|
-
Squarespace:
|
|
296
|
+
Squarespace: vt,
|
|
295
297
|
Stripe: q,
|
|
296
298
|
StripeApi: q,
|
|
297
|
-
Telegram:
|
|
298
|
-
Tiktok:
|
|
299
|
-
TickTickApi:
|
|
300
|
-
TrelloApi:
|
|
301
|
-
Twilio:
|
|
302
|
-
Twitch:
|
|
303
|
-
Vercel:
|
|
304
|
-
Walmart:
|
|
305
|
-
WeaviateApi:
|
|
306
|
-
Workday:
|
|
307
|
-
Wrike:
|
|
308
|
-
X:
|
|
299
|
+
Telegram: bt,
|
|
300
|
+
Tiktok: St,
|
|
301
|
+
TickTickApi: xt,
|
|
302
|
+
TrelloApi: Ct,
|
|
303
|
+
Twilio: wt,
|
|
304
|
+
Twitch: Tt,
|
|
305
|
+
Vercel: Et,
|
|
306
|
+
Walmart: Dt,
|
|
307
|
+
WeaviateApi: Ot,
|
|
308
|
+
Workday: kt,
|
|
309
|
+
Wrike: At,
|
|
310
|
+
X: jt,
|
|
309
311
|
Xero: J,
|
|
310
312
|
XeroApi: J,
|
|
311
|
-
YugabyteDB:
|
|
312
|
-
ZohoBooksApi:
|
|
313
|
-
ZohoCreatorApi:
|
|
314
|
-
Youtube:
|
|
315
|
-
Zendesk:
|
|
316
|
-
Zoom:
|
|
317
|
-
},
|
|
318
|
-
let t = e ?
|
|
313
|
+
YugabyteDB: Nt,
|
|
314
|
+
ZohoBooksApi: Ft,
|
|
315
|
+
ZohoCreatorApi: It,
|
|
316
|
+
Youtube: Mt,
|
|
317
|
+
Zendesk: Pt,
|
|
318
|
+
Zoom: Lt
|
|
319
|
+
}, Rt = new Map(Object.entries(Z).map(([e, t]) => [e.toLowerCase(), t])), Q = (e) => {
|
|
320
|
+
let t = e ? Rt.get(e.toLowerCase()) : void 0;
|
|
319
321
|
return {
|
|
320
322
|
Icon: t ?? T,
|
|
321
323
|
hasBrandIcon: !!t
|
|
322
324
|
};
|
|
323
|
-
}, $ = (e) => Q(e).Icon,
|
|
325
|
+
}, $ = (e) => Q(e).Icon, zt = (e) => Q(e).hasBrandIcon, Bt = (e) => {
|
|
324
326
|
let t = $(Y(e)?.id);
|
|
325
327
|
return ({ className: e }) => /* @__PURE__ */ X(t, { className: e });
|
|
326
|
-
},
|
|
328
|
+
}, Vt = (e) => {
|
|
327
329
|
let t = $(Y(e)?.id);
|
|
328
330
|
return ({ className: e }) => /* @__PURE__ */ X(t, { className: e });
|
|
329
331
|
};
|
|
330
332
|
//#endregion
|
|
331
|
-
export { Z as TOOLKIT_ICON_MAP,
|
|
333
|
+
export { Z as TOOLKIT_ICON_MAP, Vt as getToolIconByToolkitName, $ as getToolkitIcon, Bt as getToolkitIconByName, zt as hasToolkitIcon, Q as resolveToolkitIcon };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolkits.d.ts","sourceRoot":"","sources":["../../lib/metadata/toolkits.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,UAAU,EAAE,QAAQ,EAWhC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"toolkits.d.ts","sourceRoot":"","sources":["../../lib/metadata/toolkits.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,UAAU,EAAE,QAAQ,EAWhC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,OAAO,EAuzE7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAOrD,CAAC"}
|
|
@@ -1394,6 +1394,19 @@ var t = [
|
|
|
1394
1394
|
isComingSoon: !1,
|
|
1395
1395
|
isHidden: !1
|
|
1396
1396
|
},
|
|
1397
|
+
{
|
|
1398
|
+
id: "MicrosoftUsers",
|
|
1399
|
+
label: "Microsoft Users",
|
|
1400
|
+
isBYOC: !1,
|
|
1401
|
+
isPro: !1,
|
|
1402
|
+
publicIconUrl: `${e}/microsoft.svg`,
|
|
1403
|
+
docsLink: "https://docs.arcade.dev/en/resources/integrations/productivity/microsoft-users",
|
|
1404
|
+
relativeDocsLink: "/en/resources/integrations/productivity/microsoft-users",
|
|
1405
|
+
category: "productivity",
|
|
1406
|
+
type: "arcade",
|
|
1407
|
+
isComingSoon: !1,
|
|
1408
|
+
isHidden: !1
|
|
1409
|
+
},
|
|
1397
1410
|
{
|
|
1398
1411
|
id: "MicrosoftWord",
|
|
1399
1412
|
label: "Microsoft Word",
|