@arcadeai/design-system 6.0.1 → 7.2.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/index.js +38 -35
- package/dist/components/ui/blocks/demo.js +1 -1
- package/dist/components/ui/index.js +38 -35
- package/dist/components/ui/molecules/index.d.ts +6 -2
- package/dist/components/ui/molecules/index.d.ts.map +1 -1
- package/dist/components/ui/molecules/index.js +28 -26
- package/dist/components/ui/molecules/mcp-server-picker/header-checkbox-toggle.d.ts +16 -0
- package/dist/components/ui/molecules/mcp-server-picker/header-checkbox-toggle.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/header-checkbox-toggle.js +41 -0
- package/dist/components/ui/molecules/mcp-server-picker/requirement-list-item.d.ts +19 -0
- package/dist/components/ui/molecules/mcp-server-picker/requirement-list-item.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/requirement-list-item.js +47 -0
- package/dist/components/ui/molecules/mcp-server-picker/review-count-chip.d.ts +2 -4
- package/dist/components/ui/molecules/mcp-server-picker/review-count-chip.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/review-count-chip.js +22 -17
- package/dist/components/ui/molecules/mcp-server-picker/view-tabs.d.ts +24 -0
- package/dist/components/ui/molecules/mcp-server-picker/view-tabs.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/view-tabs.js +41 -0
- package/dist/components/ui/molecules/undo-toast.d.ts +23 -0
- package/dist/components/ui/molecules/undo-toast.d.ts.map +1 -1
- package/dist/components/ui/molecules/undo-toast.js +2 -2
- package/dist/components/ui/organisms/index.d.ts +2 -0
- package/dist/components/ui/organisms/index.d.ts.map +1 -1
- package/dist/components/ui/organisms/index.js +4 -3
- package/dist/components/ui/organisms/mcp-requirements-dialog.d.ts +26 -0
- package/dist/components/ui/organisms/mcp-requirements-dialog.d.ts.map +1 -0
- package/dist/components/ui/organisms/mcp-requirements-dialog.js +84 -0
- package/dist/main.js +44 -41
- package/dist/metadata/index.js +4 -4
- package/dist/metadata/utils.d.ts +6 -0
- package/dist/metadata/utils.d.ts.map +1 -1
- package/dist/metadata/utils.js +6 -6
- package/dist/{undo-toast-Cf4T6ToX.js → undo-toast-BXx_B4Ak.js} +235 -220
- package/package.json +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.d.ts +0 -18
- package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.d.ts.map +0 -1
- package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.js +0 -31
|
@@ -2,41 +2,46 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import { cn as e } from "../../../../lib/utils.js";
|
|
4
4
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
5
|
+
import { ChevronRight as r } from "lucide-react";
|
|
5
6
|
//#region lib/components/ui/molecules/mcp-server-picker/review-count-chip.tsx
|
|
6
|
-
function
|
|
7
|
-
let
|
|
7
|
+
function i({ toolCount: i, serverCount: a, active: o = !1, className: s, "aria-label": c, ...l }) {
|
|
8
|
+
let u = i === 1 ? "tool" : "tools", d = a === 1 ? "server" : "servers", f = c ?? `View selection: ${i} ${u}, ${a} ${d}`;
|
|
8
9
|
return /* @__PURE__ */ n("button", {
|
|
9
|
-
...
|
|
10
|
-
"aria-expanded":
|
|
11
|
-
"aria-label":
|
|
12
|
-
className: e("flex shrink-0 cursor-pointer items-center gap-1.5 rounded-md
|
|
10
|
+
...l,
|
|
11
|
+
"aria-expanded": o,
|
|
12
|
+
"aria-label": f,
|
|
13
|
+
className: e("flex h-8 shrink-0 cursor-pointer items-center gap-1.5 rounded-md border border-[var(--mcp-control-border)] px-2.5 font-medium text-xs transition-[background-color,color,border-color] duration-[var(--duration-fast)] ease-[var(--ease-smooth)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 motion-reduce:transition-colors dark:border-transparent", o ? "border-[var(--mcp-picker-selected-border)] bg-[var(--mcp-picker-selected-surface)] text-foreground dark:border-transparent dark:bg-[var(--mcp-control-hover)]" : "bg-[var(--mcp-control-background)] text-foreground hover:bg-[var(--mcp-control-hover)]", s),
|
|
13
14
|
"data-slot": "mcp-review-count-chip",
|
|
14
|
-
"data-status":
|
|
15
|
+
"data-status": o ? "open" : "closed",
|
|
15
16
|
type: "button",
|
|
16
17
|
children: [
|
|
17
18
|
/* @__PURE__ */ t("span", {
|
|
18
|
-
className: "tabular-nums",
|
|
19
|
-
children:
|
|
19
|
+
className: "font-semibold text-foreground tabular-nums",
|
|
20
|
+
children: i
|
|
20
21
|
}),
|
|
21
22
|
/* @__PURE__ */ t("span", {
|
|
22
|
-
className: "text-muted-foreground",
|
|
23
|
-
children:
|
|
23
|
+
className: "text-[var(--mcp-muted-foreground)]",
|
|
24
|
+
children: u
|
|
24
25
|
}),
|
|
25
26
|
/* @__PURE__ */ t("span", {
|
|
26
27
|
"aria-hidden": !0,
|
|
27
|
-
className: "text-muted-foreground/
|
|
28
|
+
className: "text-[var(--mcp-muted-foreground)]/50",
|
|
28
29
|
children: "·"
|
|
29
30
|
}),
|
|
30
31
|
/* @__PURE__ */ t("span", {
|
|
31
|
-
className: "tabular-nums",
|
|
32
|
-
children:
|
|
32
|
+
className: "font-semibold text-foreground tabular-nums",
|
|
33
|
+
children: a
|
|
33
34
|
}),
|
|
34
35
|
/* @__PURE__ */ t("span", {
|
|
35
|
-
className: "text-muted-foreground",
|
|
36
|
-
children:
|
|
36
|
+
className: "text-[var(--mcp-muted-foreground)]",
|
|
37
|
+
children: d
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ t(r, {
|
|
40
|
+
"aria-hidden": !0,
|
|
41
|
+
className: "ml-0.5 size-3.5 shrink-0 text-[var(--mcp-muted-foreground)]"
|
|
37
42
|
})
|
|
38
43
|
]
|
|
39
44
|
});
|
|
40
45
|
}
|
|
41
46
|
//#endregion
|
|
42
|
-
export {
|
|
47
|
+
export { i as McpReviewCountChip };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type McpServerPickerView = "all" | "selected";
|
|
2
|
+
export type McpViewTabsProps = {
|
|
3
|
+
active: McpServerPickerView;
|
|
4
|
+
/** Count shown on the "All" tab — the servers visible when browsing. */
|
|
5
|
+
allCount: number;
|
|
6
|
+
/** Count shown on the "Selected" tab — the servers with a selection. */
|
|
7
|
+
selectedCount: number;
|
|
8
|
+
onChange?: (view: McpServerPickerView) => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* All / Selected view tabs for the MCP server picker — the `Tabs` atoms on the
|
|
13
|
+
* picker's muted track. The consumer renders the matching view itself, so
|
|
14
|
+
* there is no `TabsContent` here. The dark-mode track is intentionally lighter
|
|
15
|
+
* so the active tab reads through surface contrast alone; a populated Selected
|
|
16
|
+
* tab carries the brand badge.
|
|
17
|
+
*
|
|
18
|
+
* TODO: promote this treatment (label + count badge + brand-colored active
|
|
19
|
+
* badge on the muted track) into the canonical `Tabs` atom so tabs across the
|
|
20
|
+
* dashboard can adopt it, then drop this wrapper. Deferred — the dashboard tab
|
|
21
|
+
* migration is out of scope here.
|
|
22
|
+
*/
|
|
23
|
+
export declare function McpViewTabs({ active, allCount, selectedCount, onChange, className, }: McpViewTabsProps): import("react").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=view-tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-tabs.d.ts","sourceRoot":"","sources":["../../../../../lib/components/ui/molecules/mcp-server-picker/view-tabs.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,UAAU,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,mBAAmB,CAAC;IAC5B,wEAAwE;IACxE,QAAQ,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAOF;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,SAAS,GACV,EAAE,gBAAgB,+BAkDlB"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { cn as e } from "../../../../lib/utils.js";
|
|
4
|
+
import { i as t, r as n, t as r } from "../../../../tabs-Cj3LY-7F.js";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
//#region lib/components/ui/molecules/mcp-server-picker/view-tabs.tsx
|
|
7
|
+
var o = [{
|
|
8
|
+
value: "all",
|
|
9
|
+
label: "All"
|
|
10
|
+
}, {
|
|
11
|
+
value: "selected",
|
|
12
|
+
label: "Selected"
|
|
13
|
+
}];
|
|
14
|
+
function s({ active: s, allCount: c, selectedCount: l, onChange: u, className: d }) {
|
|
15
|
+
let f = l > 0;
|
|
16
|
+
return /* @__PURE__ */ i(r, {
|
|
17
|
+
className: d,
|
|
18
|
+
onValueChange: (e) => {
|
|
19
|
+
(e === "all" || e === "selected") && u?.(e);
|
|
20
|
+
},
|
|
21
|
+
value: s,
|
|
22
|
+
children: /* @__PURE__ */ i(n, {
|
|
23
|
+
"aria-label": "Server list filter",
|
|
24
|
+
className: "gap-1 border border-[var(--mcp-control-border)] bg-[var(--mcp-view-tabs-background)] p-1 group-data-[orientation=horizontal]/tabs:h-9",
|
|
25
|
+
"data-slot": "mcp-server-picker-view-tabs",
|
|
26
|
+
children: o.map(({ value: n, label: r }) => {
|
|
27
|
+
let o = n === "selected", s = n === "all" ? c : l;
|
|
28
|
+
return /* @__PURE__ */ a(t, {
|
|
29
|
+
className: e("h-7 flex-none gap-1.5 rounded-md px-2.5 font-medium text-xs not-data-active:hover:bg-background/70 dark:data-active:border-transparent dark:data-active:bg-background", o && f && "text-foreground dark:text-foreground"),
|
|
30
|
+
value: n,
|
|
31
|
+
children: [r, /* @__PURE__ */ i("span", {
|
|
32
|
+
className: e("inline-flex min-w-5 items-center justify-center rounded px-1.5 py-0.5 font-semibold text-[10px] tabular-nums leading-none", o && f ? "bg-primary text-primary-foreground" : "bg-foreground/20 text-foreground/85"),
|
|
33
|
+
children: s
|
|
34
|
+
})]
|
|
35
|
+
}, n);
|
|
36
|
+
})
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { s as McpViewTabs };
|
|
@@ -44,4 +44,27 @@ export declare function useUndoToast(): {
|
|
|
44
44
|
show: ({ message, icon, actionLabel, onUndo, onDismiss, dismissMs, }: UndoToastOptions) => "mcp-undo-toast";
|
|
45
45
|
dismiss: () => void;
|
|
46
46
|
};
|
|
47
|
+
export type UndoToastProps = UndoToastOptions & {
|
|
48
|
+
/**
|
|
49
|
+
* Identifies the edit being offered for undo. Pass a higher value when a
|
|
50
|
+
* new undoable edit happens while the pill is open — the pill updates in
|
|
51
|
+
* place and its countdown restarts.
|
|
52
|
+
*/
|
|
53
|
+
revision?: number;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Declarative undo pill: render this component to show the pill, unmount it
|
|
57
|
+
* to dismiss it. Must be rendered inside an `UndoToastProvider`. If another
|
|
58
|
+
* undoable edit happens while the pill is open, pass a higher `revision` —
|
|
59
|
+
* the pill updates in place and its countdown restarts. Clicks always call
|
|
60
|
+
* the latest `onUndo`/`onDismiss` you passed, even while the pill is
|
|
61
|
+
* animating out.
|
|
62
|
+
*/
|
|
63
|
+
export declare function UndoToast({ revision, ...options }: UndoToastProps): null;
|
|
64
|
+
/**
|
|
65
|
+
* True while the undo pill is on screen — from the moment it shows until its
|
|
66
|
+
* exit animation finishes. Use it to keep other UI out of the pill's spot.
|
|
67
|
+
* Must be called inside the same `UndoToastProvider`.
|
|
68
|
+
*/
|
|
69
|
+
export declare function useUndoToastPresence(): boolean;
|
|
47
70
|
//# sourceMappingURL=undo-toast.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"undo-toast.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/undo-toast.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAiBpC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,8DAA8D;IAC9D,OAAO,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yBAAyB;IACzB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC/B,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,SAAS,EACT,SAAS,EACT,SAA8B,GAC/B,EAAE,sBAAsB,qBAmBxB;AA8CD;;;;GAIG;AACH,wBAAgB,YAAY;0EAWrB,gBAAgB;;EA2CtB"}
|
|
1
|
+
{"version":3,"file":"undo-toast.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/undo-toast.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAiBpC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,8DAA8D;IAC9D,OAAO,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yBAAyB;IACzB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC/B,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,SAAS,EACT,SAAS,EACT,SAA8B,GAC/B,EAAE,sBAAsB,qBAmBxB;AA8CD;;;;GAIG;AACH,wBAAgB,YAAY;0EAWrB,gBAAgB;;EA2CtB;AAED,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG;IAC9C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,EAAE,QAAY,EAAE,GAAG,OAAO,EAAE,EAAE,cAAc,QAkBrE;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAG9C"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
export { t as UndoToastProvider,
|
|
2
|
+
import { i as e, n as t, r as n, t as r } from "../../../undo-toast-BXx_B4Ak.js";
|
|
3
|
+
export { r as UndoToast, t as UndoToastProvider, n as useUndoToast, e as useUndoToastPresence };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/** biome-ignore-all lint/performance/noBarrelFile: Barrel files are acceptable for atomic component folders */
|
|
2
|
+
export type { McpRequirementsDialogProps } from './mcp-requirements-dialog';
|
|
3
|
+
export { McpRequirementsDialog } from './mcp-requirements-dialog';
|
|
2
4
|
export type { McpSelectionSummaryBarProps, McpSelectionSummaryMcpServer, } from './mcp-selection-summary-bar';
|
|
3
5
|
export { McpSelectionSummaryBar } from './mcp-selection-summary-bar';
|
|
4
6
|
export { McpServerPicker, McpServerPickerGrid, McpServerPickerHeader, McpServerPickerToolGrid, } from './mcp-server-picker';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/organisms/index.ts"],"names":[],"mappings":"AAAA,+GAA+G;AAE/G,YAAY,EACV,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/organisms/index.ts"],"names":[],"mappings":"AAAA,+GAA+G;AAE/G,YAAY,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,YAAY,EACV,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { McpRequirementsDialog as e } from "./mcp-requirements-dialog.js";
|
|
2
|
+
import { McpSelectionSummaryBar as t } from "./mcp-selection-summary-bar.js";
|
|
3
|
+
import { McpServerPicker as n, McpServerPickerGrid as r, McpServerPickerHeader as i, McpServerPickerToolGrid as a } from "./mcp-server-picker.js";
|
|
4
|
+
export { e as McpRequirementsDialog, t as McpSelectionSummaryBar, n as McpServerPicker, r as McpServerPickerGrid, i as McpServerPickerHeader, a as McpServerPickerToolGrid };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type McpRequirementsDialogProps = {
|
|
3
|
+
open?: boolean;
|
|
4
|
+
onOpenChange?: (open: boolean) => void;
|
|
5
|
+
/** Optional element that opens the dialog (rendered via DialogTrigger). */
|
|
6
|
+
trigger?: React.ReactElement;
|
|
7
|
+
title?: React.ReactNode;
|
|
8
|
+
description?: React.ReactNode;
|
|
9
|
+
/** Optional leading icon in the header (e.g. a provider brand mark). */
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Current view id (e.g. a requirement id, or `"list"`). Changing it eases the
|
|
13
|
+
* body height and fades the incoming view in. Omit for a static body.
|
|
14
|
+
*/
|
|
15
|
+
viewKey?: string | number;
|
|
16
|
+
/** The unmet-requirement rows the caller renders. */
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
bodyClassName?: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Height-bounded modal shell for the requirement setup flow: the body scrolls
|
|
23
|
+
* inside the dialog and its height eases between views. The caller owns the body.
|
|
24
|
+
*/
|
|
25
|
+
export declare function McpRequirementsDialog({ open, onOpenChange, trigger, title, description, icon, viewKey, children, className, bodyClassName, }: McpRequirementsDialogProps): React.JSX.Element;
|
|
26
|
+
//# sourceMappingURL=mcp-requirements-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-requirements-dialog.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/organisms/mcp-requirements-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAapC,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,2EAA2E;IAC3E,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,wEAAwE;IACxE,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,qDAAqD;IACrD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAsEF;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,IAAI,EACJ,YAAY,EACZ,OAAO,EACP,KAAqB,EACrB,WAAiC,EACjC,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,SAAS,EACT,aAAa,GACd,EAAE,0BAA0B,qBA8D5B"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { cn as e } from "../../../lib/utils.js";
|
|
4
|
+
import { Dialog as t, DialogContent as n, DialogDescription as r, DialogHeader as i, DialogTitle as a, DialogTrigger as o } from "../atoms/dialog.js";
|
|
5
|
+
import { t as s } from "../../../scroll-area-D7iOy7xj.js";
|
|
6
|
+
import { useCallback as c, useRef as l } from "react";
|
|
7
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
|
+
//#region lib/components/ui/organisms/mcp-requirements-dialog.tsx
|
|
9
|
+
var f = "Complete tool setup", p = "Add the connections and secrets your selected tools need before they can run.";
|
|
10
|
+
function m() {
|
|
11
|
+
let e = l(null), t = l(null);
|
|
12
|
+
return c((n) => {
|
|
13
|
+
e.current?.disconnect(), e.current = null, t.current !== null && (cancelAnimationFrame(t.current), t.current = null);
|
|
14
|
+
let r = n?.parentElement;
|
|
15
|
+
if (!(n && r)) return;
|
|
16
|
+
let i = window.matchMedia("(prefers-reduced-motion: reduce)").matches, a = !1, o = () => {
|
|
17
|
+
let e = n.offsetHeight;
|
|
18
|
+
if (i) {
|
|
19
|
+
r.style.transitionProperty = "none", r.style.height = `${e}px`, a = !0;
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (a) {
|
|
23
|
+
r.style.height = `${e}px`;
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
r.style.transitionProperty = "none", r.style.height = `${e}px`, r.getBoundingClientRect(), r.style.transitionProperty = "", a = !0;
|
|
27
|
+
};
|
|
28
|
+
o();
|
|
29
|
+
let s = new ResizeObserver(() => {
|
|
30
|
+
t.current !== null && cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
|
|
31
|
+
t.current = null, o();
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
s.observe(n), e.current = s;
|
|
35
|
+
}, []);
|
|
36
|
+
}
|
|
37
|
+
function h({ open: c, onOpenChange: h, trigger: g, title: _ = f, description: v = p, icon: y, viewKey: b, children: x, className: S, bodyClassName: C }) {
|
|
38
|
+
let w = m(), T = l(null);
|
|
39
|
+
return /* @__PURE__ */ d(t, {
|
|
40
|
+
onOpenChange: h,
|
|
41
|
+
open: c,
|
|
42
|
+
children: [g ? /* @__PURE__ */ u(o, { render: g }) : null, /* @__PURE__ */ d(n, {
|
|
43
|
+
className: e("grid max-h-[calc(100svh-2rem)] w-full grid-cols-[minmax(0,1fr)] grid-rows-[auto_minmax(0,1fr)] gap-0 overflow-hidden rounded-xl p-0 shadow-black/10 shadow-lg sm:max-w-[40rem] [&_[data-slot=dialog-close]]:top-4 [&_[data-slot=dialog-close]]:right-4", S),
|
|
44
|
+
"data-slot": "mcp-requirements-dialog",
|
|
45
|
+
initialFocus: T,
|
|
46
|
+
ref: T,
|
|
47
|
+
children: [/* @__PURE__ */ u(i, {
|
|
48
|
+
className: "border-border/60 border-b bg-muted/[0.14] px-5 py-4.5 pr-14",
|
|
49
|
+
children: /* @__PURE__ */ d("div", {
|
|
50
|
+
className: "flex items-start gap-3.5",
|
|
51
|
+
children: [y ? /* @__PURE__ */ u("span", {
|
|
52
|
+
className: "flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted/70 text-muted-foreground ring-1 ring-border/60 dark:bg-muted/50",
|
|
53
|
+
children: y
|
|
54
|
+
}) : null, /* @__PURE__ */ d("div", {
|
|
55
|
+
className: "flex min-w-0 flex-col gap-1.5 pt-0.5",
|
|
56
|
+
children: [/* @__PURE__ */ u(a, {
|
|
57
|
+
className: "text-[17px] leading-5",
|
|
58
|
+
children: _
|
|
59
|
+
}), /* @__PURE__ */ u(r, {
|
|
60
|
+
className: "max-w-[60ch] text-pretty leading-5",
|
|
61
|
+
children: v
|
|
62
|
+
})]
|
|
63
|
+
})]
|
|
64
|
+
})
|
|
65
|
+
}), /* @__PURE__ */ u(s, {
|
|
66
|
+
className: "max-h-[min(70svh,42rem)] min-h-0",
|
|
67
|
+
children: /* @__PURE__ */ u("div", {
|
|
68
|
+
className: "overflow-hidden transition-[height] duration-[var(--duration-normal)] ease-[var(--ease-smooth)] motion-reduce:transition-none",
|
|
69
|
+
"data-slot": "mcp-requirements-dialog-height",
|
|
70
|
+
children: /* @__PURE__ */ u("div", {
|
|
71
|
+
ref: w,
|
|
72
|
+
children: /* @__PURE__ */ u("div", {
|
|
73
|
+
className: e("flex min-w-0 flex-col gap-5 px-4 py-5 [&>*]:min-w-0", b !== void 0 && "fade-in-0 slide-in-from-bottom-1 animate-in duration-[var(--duration-normal)] ease-[var(--ease-smooth)] motion-reduce:animate-none", C),
|
|
74
|
+
onSubmit: (e) => e.stopPropagation(),
|
|
75
|
+
children: x
|
|
76
|
+
}, b)
|
|
77
|
+
})
|
|
78
|
+
})
|
|
79
|
+
})]
|
|
80
|
+
})]
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
export { h as McpRequirementsDialog };
|
package/dist/main.js
CHANGED
|
@@ -236,46 +236,49 @@ import { EmptyState as No } from "./components/ui/molecules/empty-state.js";
|
|
|
236
236
|
import { ErrorState as Po } from "./components/ui/molecules/error-state.js";
|
|
237
237
|
import { FilterChipGroup as Fo } from "./components/ui/molecules/filter-chip-group.js";
|
|
238
238
|
import { FlowDiagram as Io } from "./components/ui/molecules/flow-diagram.js";
|
|
239
|
-
import {
|
|
240
|
-
import {
|
|
241
|
-
import {
|
|
242
|
-
import {
|
|
243
|
-
import {
|
|
244
|
-
import {
|
|
245
|
-
import {
|
|
246
|
-
import {
|
|
247
|
-
import {
|
|
248
|
-
import {
|
|
249
|
-
import {
|
|
250
|
-
import {
|
|
251
|
-
import {
|
|
252
|
-
import {
|
|
253
|
-
import {
|
|
254
|
-
import {
|
|
255
|
-
import {
|
|
256
|
-
import {
|
|
257
|
-
import {
|
|
258
|
-
import {
|
|
259
|
-
import {
|
|
260
|
-
import {
|
|
261
|
-
import {
|
|
262
|
-
import {
|
|
263
|
-
import {
|
|
264
|
-
import {
|
|
265
|
-
import {
|
|
266
|
-
import {
|
|
267
|
-
import {
|
|
268
|
-
import {
|
|
269
|
-
import {
|
|
270
|
-
import {
|
|
271
|
-
import {
|
|
272
|
-
import {
|
|
273
|
-
import {
|
|
274
|
-
import {
|
|
275
|
-
import {
|
|
276
|
-
import {
|
|
277
|
-
import {
|
|
278
|
-
import {
|
|
239
|
+
import { McpHeaderCheckboxToggle as Lo } from "./components/ui/molecules/mcp-server-picker/header-checkbox-toggle.js";
|
|
240
|
+
import { McpSectionCallout as Ro } from "./components/ui/molecules/mcp-server-picker/section-callout.js";
|
|
241
|
+
import { McpRecommendedToolsCallout as zo, McpRecommendedToolsDeactivateDialog as Bo, McpRecommendedToolsOptOutDialog as Vo } from "./components/ui/molecules/mcp-server-picker/recommended-tools.js";
|
|
242
|
+
import { McpRequirementListItem as Ho } from "./components/ui/molecules/mcp-server-picker/requirement-list-item.js";
|
|
243
|
+
import { McpReviewCountChip as Uo } from "./components/ui/molecules/mcp-server-picker/review-count-chip.js";
|
|
244
|
+
import { McpSectionNavHeader as Wo } from "./components/ui/molecules/mcp-server-picker/section-nav-header.js";
|
|
245
|
+
import { McpCardHeading as Go, mcpSelectionCardShellVariants as Ko } from "./components/ui/molecules/mcp-server-picker/selection-card-parts.js";
|
|
246
|
+
import { PUBLIC_ICON_URL as qo, PUBLIC_VIDEO_URL as Jo } from "./metadata/constants.js";
|
|
247
|
+
import { MCP_OAUTH2_PROVIDER as Yo, OAUTH2_PROVIDER as Xo, OAUTH_PROVIDERS as Zo, OAUTH_PROVIDER_CATALOGUE as Qo, OAuthId as $o, OAuthProviderId as es, OTHER_OAUTH_PROVIDERS as ts, PREBUILT_OAUTH_PROVIDERS as ns } from "./metadata/oauth-providers.js";
|
|
248
|
+
import { CATEGORIES as rs, TOOLKITS as is, TOOLKIT_CATALOGUE as as } from "./metadata/toolkits.js";
|
|
249
|
+
import { findPrebuiltProviderById as os, findPrebuiltProviderByProviderId as ss, findToolkitByName as cs, isKnownToolkit as ls, isPrebuiltProvider as us, resolveOAuthProvider as ds } from "./metadata/utils.js";
|
|
250
|
+
import { TOOLKIT_ICON_MAP as fs, getToolIconByToolkitName as ps, getToolkitIcon as ms, getToolkitIconByName as hs, hasToolkitIcon as gs, resolveToolkitIcon as _s } from "./metadata/toolkit-icons.js";
|
|
251
|
+
import { McpToolkitAvatar as vs, mcpToolkitAvatarVariants as ys } from "./components/ui/molecules/mcp-server-picker/toolkit-avatar.js";
|
|
252
|
+
import { McpServerAvatarStack as bs } from "./components/ui/molecules/mcp-server-picker/server-avatar-stack.js";
|
|
253
|
+
import { McpServerCard as xs } from "./components/ui/molecules/mcp-server-picker/server-card.js";
|
|
254
|
+
import { McpSetupCallout as Ss } from "./components/ui/molecules/mcp-server-picker/setup-callout.js";
|
|
255
|
+
import { McpToolCard as Cs } from "./components/ui/molecules/mcp-server-picker/tool-card.js";
|
|
256
|
+
import { McpToolRecommendations as ws } from "./components/ui/molecules/mcp-server-picker/tool-recommendations.js";
|
|
257
|
+
import { McpToolkitChip as Ts } from "./components/ui/molecules/mcp-server-picker/toolkit-chip.js";
|
|
258
|
+
import { McpToolkitGroupHeader as Es } from "./components/ui/molecules/mcp-server-picker/toolkit-group-header.js";
|
|
259
|
+
import { McpUnoptimizedMatchCard as Ds } from "./components/ui/molecules/mcp-server-picker/unoptimized-match-card.js";
|
|
260
|
+
import { McpViewTabs as Os } from "./components/ui/molecules/mcp-server-picker/view-tabs.js";
|
|
261
|
+
import { PromptInput as ks, PromptInputAction as As, PromptInputActions as js, PromptInputTextarea as Ms } from "./components/ui/molecules/prompt-input.js";
|
|
262
|
+
import { r as Ns, t as Ps } from "./ui-46pgiw5T.js";
|
|
263
|
+
import { StepsProgress as Fs } from "./components/ui/molecules/steps-progress.js";
|
|
264
|
+
import { SuggestionCard as Is, SuggestionCardSkeleton as Ls } from "./components/ui/molecules/suggestion-card.js";
|
|
265
|
+
import { TagsInput as Rs, TagsInputValue as zs } from "./components/ui/molecules/tags-input.js";
|
|
266
|
+
import { ToolAuthorization as Bs, ToolAuthorizationArgs as Vs, ToolAuthorizationContent as Hs, ToolAuthorizationHeader as Us, ToolAuthorizationMessage as Ws } from "./components/ui/molecules/tool-authorization.js";
|
|
267
|
+
import { ToolCallAccordion as Gs, ToolCallAccordionContent as Ks, ToolCallAccordionItem as qs, ToolCallAccordionTrigger as Js } from "./components/ui/molecules/tool-call-accordion.js";
|
|
268
|
+
import { ToolCard as Ys } from "./components/ui/molecules/tool-card.js";
|
|
269
|
+
import { n as Xs, r as Zs } from "./undo-toast-BXx_B4Ak.js";
|
|
270
|
+
import { UserNav as Qs } from "./components/ui/molecules/user-nav.js";
|
|
271
|
+
import { McpRequirementsDialog as $s } from "./components/ui/organisms/mcp-requirements-dialog.js";
|
|
272
|
+
import { McpSelectionSummaryBar as ec } from "./components/ui/organisms/mcp-selection-summary-bar.js";
|
|
273
|
+
import { McpServerPicker as tc, McpServerPickerGrid as nc, McpServerPickerHeader as rc, McpServerPickerToolGrid as ic } from "./components/ui/organisms/mcp-server-picker.js";
|
|
274
|
+
import { ChatTemplate as ac, ChatTemplateBody as oc, ChatTemplateFooter as sc, ChatTemplateHeader as cc, ChatTemplateHeaderGroup as lc, ChatTemplateOverview as uc, ChatTemplateOverviewSubtitle as dc, ChatTemplateOverviewTitle as fc, ChatTemplateSuggestions as pc } from "./components/ui/templates/chat-template.js";
|
|
275
|
+
import { ChatBodySkeleton as mc, ChatContentSkeleton as hc, ChatFooterSkeleton as gc, ChatHeaderSkeleton as _c, ChatSidebarSkeleton as vc } from "./components/ui/templates/chat-template-skeletons.js";
|
|
276
|
+
import { ChatPageSkeleton as yc } from "./components/ui/pages/chat-page-skeleton.js";
|
|
277
|
+
import { AuthTemplate as bc, AuthTemplateCard as xc, AuthTemplateContent as Sc, AuthTemplateDefaultBackground as Cc, AuthTemplateDescription as wc, AuthTemplateFooter as Tc, AuthTemplateGridOverlay as Ec, AuthTemplateHeader as Dc, AuthTemplateLegal as Oc, AuthTemplateLegalLink as kc, AuthTemplateLogo as Ac, AuthTemplatePrompt as jc, AuthTemplatePromptLink as Mc, AuthTemplateTitle as Nc, AuthTemplateVideoBackground as Pc } from "./components/ui/templates/auth-template.js";
|
|
278
|
+
import { LoginPage as Fc } from "./components/ui/pages/login-page.js";
|
|
279
|
+
import { ErrorTemplate as Ic, ErrorTemplateActions as Lc, ErrorTemplateContent as Rc, ErrorTemplateDescription as zc, ErrorTemplateIcon as Bc, ErrorTemplateLogo as Vc, ErrorTemplateTitle as Hc, ErrorTemplateUrl as Uc } from "./components/ui/templates/error-template.js";
|
|
280
|
+
import { MCP_CLIENT_METADATA as Wc } from "./metadata/mcp-clients.js";
|
|
281
|
+
import { DEFAULT_MCP_CLIENT_IDS as Gc, DEFAULT_MCP_SERVER_IDS as Kc, GatewayDiagram as qc } from "./components/ui/templates/gateway-diagram.js";
|
|
279
282
|
import "./components/index.js";
|
|
280
283
|
import "./metadata/index.js";
|
|
281
|
-
export { r as Accordion, t as AccordionContent, n as AccordionItem, e as AccordionTrigger, kt as Adp, At as Aha, jt as Airtable, i as Alert, a as AlertAction, o as AlertDescription, T as AlertDialog, x as AlertDialogAction, C as AlertDialogCancel, y as AlertDialogContent, h as AlertDialogDescription, S as AlertDialogFooter, w as AlertDialogHeader, g as AlertDialogMedia, b as AlertDialogOverlay, E as AlertDialogPortal, _ as AlertDialogTitle, v as AlertDialogTrigger, s as AlertTitle, Mt as Amplitude, Nt as Apollo, Pt as Arcade, k as ArcadeGradient, A as ArcadeGrid, Ft as ArcadeLogo, It as Asana, Lt as Ashby, Rt as Atlassian, zt as Attio, Bt as Auth0, gc as AuthTemplate, _c as AuthTemplateCard, vc as AuthTemplateContent, yc as AuthTemplateDefaultBackground, bc as AuthTemplateDescription, xc as AuthTemplateFooter, Sc as AuthTemplateGridOverlay, Cc as AuthTemplateHeader, wc as AuthTemplateLegal, Tc as AuthTemplateLegalLink, Ec as AuthTemplateLogo, Dc as AuthTemplatePrompt, Oc as AuthTemplatePromptLink, kc as AuthTemplateTitle, Ac as AuthTemplateVideoBackground, I as Avatar, N as AvatarBadge, F as AvatarFallback, M as AvatarGroup, j as AvatarGroupCount, P as AvatarImage, L as AvatarNotificationBadge, fo as AvatarStack, Vt as Azure, z as Badge, Ht as Bamboohr, Ut as Basecamp, Wt as Bill, Gt as Bitbucket, Kt as Bluesky, qt as Box, V as BrandChip, Jt as Braze, H as Breadcrumb, U as BreadcrumbEllipsis, W as BreadcrumbItem, G as BreadcrumbLink, K as BreadcrumbList, q as BreadcrumbPage, J as BreadcrumbSeparator, Yt as Brex, Xt as Brightdata, Zt as Buffer, O as Button, he as ByocBadge, ns as CATEGORIES, _e as Calendar, ge as CalendarDayButton, Qt as Calendly, po as Callout, ve as Card, ye as CardAction, be as CardContent, xe as CardDescription, Se as CardFooter, Ce as CardHeader, we as CardTitle, Te as ChartContainer, Ee as ChartLegend, De as ChartLegendContent, Oe as ChartStyle, ke as ChartTooltip, Ae as ChartTooltipContent, xo as ChatAssistantMessage, uc as ChatBodySkeleton, je as ChatContainerContent, Me as ChatContainerRoot, Ne as ChatContainerScrollAnchor, dc as ChatContentSkeleton, fc as ChatFooterSkeleton, pc as ChatHeaderSkeleton, ho as ChatHistoryItem, So as ChatMessageList, Co as ChatMessageListSkeleton, hc as ChatPageSkeleton, mc as ChatSidebarSkeleton, wo as ChatStreamingIndicator, tc as ChatTemplate, nc as ChatTemplateBody, rc as ChatTemplateFooter, ic as ChatTemplateHeader, ac as ChatTemplateHeaderGroup, oc as ChatTemplateOverview, sc as ChatTemplateOverviewSubtitle, cc as ChatTemplateOverviewTitle, lc as ChatTemplateSuggestions, To as ChatUserMessage, Fe as Checkbox, Pe as CheckboxVisual, ko as ChipBody, $t as Claude, en as ClaudeCodeLogotype, Ie as ClearButton, tn as Clickhouse, nn as Clickup, Ao as ClientSecretInput, rn as Cline, an as Closeio, Re as CodeBlock, ze as CodeBlockCode, Be as CodeBlockGroup, on as Codesandbox, sn as Coinbase, Ue as Collapsible, Ve as CollapsibleContent, He as CollapsibleTrigger, Qe as Command, jo as CommandBar, Je as CommandDialog, Xe as CommandEmpty, Ke as CommandGroup, We as CommandInput, Ye as CommandItem, Ze as CommandList, Ge as CommandSeparator, qe as CommandShortcut, mo as ConfirmPopover, cn as Confluence, lt as CopyButton, ln as Cursor, un as CursorInstallDark, dn as CursorInstallLight, fn as CursorLogotype, pn as Customerio, Vc as DEFAULT_MCP_CLIENT_IDS, Hc as DEFAULT_MCP_SERVER_IDS, Ba as DS_SPARKLE_DURATION_MS, mn as Datadog, Mo as DateTimePicker, hn as Daytona, $e as Dialog, et as DialogClose, tt as DialogContent, nt as DialogDescription, rt as DialogFooter, it as DialogHeader, at as DialogOverlay, ot as DialogPortal, st as DialogTitle, ct as DialogTrigger, gn as DigitalOcean, _n as Discord, vn as Dropbox, Ct as DropdownMenu, vt as DropdownMenuCheckboxItem, xt as DropdownMenuContent, ht as DropdownMenuGroup, ut as DropdownMenuItem, yt as DropdownMenuLabel, St as DropdownMenuPortal, dt as DropdownMenuRadioGroup, gt as DropdownMenuRadioItem, wt as DropdownMenuSeparator, ft as DropdownMenuShortcut, pt as DropdownMenuSub, bt as DropdownMenuSubContent, _t as DropdownMenuSubTrigger, mt as DropdownMenuTrigger, yn as E2b, bn as Ebay, No as EmptyState, Po as ErrorState, Mc as ErrorTemplate, Nc as ErrorTemplateActions, Pc as ErrorTemplateContent, Fc as ErrorTemplateDescription, Ic as ErrorTemplateIcon, Lc as ErrorTemplateLogo, Rc as ErrorTemplateTitle, zc as ErrorTemplateUrl, xn as Evernote, Sn as Exa, Cn as Factorial, wn as Figma, Tt as FilterChip, Fo as FilterChipGroup, Tn as Firecrawl, En as Fireflies, Io as FlowDiagram, Dn as FlyIo, On as Forkable, kn as Freshdesk, An as Freshservice, Uc as GatewayDiagram, jn as Gemini, Mn as Generic, Nn as Github, Pn as Gitlab, Fn as Glean, In as Gmail, Ln as Google, Rn as GoogleCalendar, zn as GoogleContacts, Bn as GoogleDocs, Vn as GoogleDrive, Hn as GoogleFinance, Un as GoogleFlight, Wn as GoogleFlights, Gn as GoogleForms, Kn as GoogleHotels, qn as GoogleJobs, Jn as GoogleMaps, Yn as GoogleNews, Xn as GoogleSheets, Zn as GoogleShopping, Qn as GoogleSlides, $n as Goose, er as Granola, tr as Heroku, nr as Hootsuite, m as HoverCard, f as HoverCardContent, p as HoverCardTrigger, rr as Hubspot, Dt as IconTile, ir as Imgflip, zi as Input, Vi as InputGroup, Hi as InputGroupAddon, Ui as InputGroupButton, Wi as InputGroupInput, Gi as InputGroupText, Ki as InputGroupTextarea, ar as Insightly, or as Intercom, sr as Jira, qi as JsonHighlight, Yi as Label, cr as Langchain, lr as LangchainLogotype, ur as Linear, dr as Linkedin, Xi as Loader, jc as LoginPage, fr as Luma, Bc as MCP_CLIENT_METADATA, Jo as MCP_OAUTH2_PROVIDER, pr as Mailchimp, Le as Markdown, mr as Mastra, hr as MastraLogotype, gr as MathToolkit, _r as Mcp, Wo as McpCardHeading, Ro as McpRecommendedToolsCallout, zo as McpRecommendedToolsDeactivateDialog, Bo as McpRecommendedToolsOptOutDialog, Vo as McpReviewCountChip, Ho as McpSearchScopeTabs, Lo as McpSectionCallout, Uo as McpSectionNavHeader, Xs as McpSelectionSummaryBar, vs as McpServerAvatarStack, ys as McpServerCard, Zs as McpServerPicker, Qs as McpServerPickerGrid, $s as McpServerPickerHeader, ec as McpServerPickerToolGrid, bs as McpSetupCallout, xs as McpToolCard, Ss as McpToolRecommendations, gs as McpToolkitAvatar, Cs as McpToolkitChip, ws as McpToolkitGroupHeader, Ts as McpUnoptimizedMatchCard, go as Message, _o as MessageAction, vo as MessageActions, yo as MessageAvatar, bo as MessageContent, vr as Microsoft, yr as MicrosoftDynamics, br as MicrosoftExcel, xr as MicrosoftOnedrive, Sr as MicrosoftOutlookCalendar, Cr as MicrosoftOutlookMail, wr as MicrosoftPowerBi, Tr as MicrosoftPowerpoint, Er as MicrosoftSharepoint, Dr as MicrosoftTeams, Or as MicrosoftWord, kr as Miro, de as MobileTooltip, fe as MobileTooltipContent, pe as MobileTooltipProvider, me as MobileTooltipTrigger, Ar as Monday, jr as MongoDB, Mr as Netsuite, Nr as Notion, Yo as OAUTH2_PROVIDER, Xo as OAUTH_PROVIDERS, Zo as OAUTH_PROVIDER_CATALOGUE, Qo as OAuthId, $o as OAuthProviderId, es as OTHER_OAUTH_PROVIDERS, Pr as Oauth, Fr as Obsidian, Ir as Okta, Lr as Openai, ts as PREBUILT_OAUTH_PROVIDERS, Ko as PUBLIC_ICON_URL, qo as PUBLIC_VIDEO_URL, Rr as Pagerduty, zr as Pinecone, Br as Pinterest, Vr as Pipedrive, Hr as Plaid, ee as Popover, Z as PopoverContent, $ as PopoverDescription, X as PopoverHeader, Y as PopoverTitle, Q as PopoverTrigger, Ur as Postgres, Wr as Posthog, Gr as Postman, Zi as ProBadge, Ri as Progress, Ii as ProgressIndicator, Li as ProgressLabel, Fi as ProgressTrack, Pi as ProgressValue, Es as PromptInput, Ds as PromptInputAction, Os as PromptInputActions, ks as PromptInputTextarea, Kr as Pylon, qr as Quickbooks, Ni as RadioGroup, Mi as RadioGroupItem, Jr as Railway, Yr as Reddit, Eo as RemovableChip, Do as RemovableChipButton, As as RequirementBadges, Xr as Resend, ea as ResizableHandle, Qi as ResizablePanel, $i as ResizablePanelGroup, Zr as Salesforce, na as ScrollArea, ta as ScrollBar, ra as ScrollButton, ia as ScrollToBottomButton, le as Select, ae as SelectContent, se as SelectGroup, re as SelectItem, te as SelectLabel, oe as SelectScrollDownButton, ce as SelectScrollUpButton, ne as SelectSeparator, ie as SelectTrigger, ue as SelectValue, aa as Separator, oa as Sheet, sa as SheetClose, ca as SheetContent, la as SheetDescription, ua as SheetFooter, da as SheetHeader, fa as SheetTitle, pa as SheetTrigger, Qr as Shopify, ha as Sidebar, ga as SidebarContent, _a as SidebarFooter, va as SidebarGroup, ya as SidebarGroupAction, ba as SidebarGroupContent, xa as SidebarGroupLabel, Sa as SidebarHeader, Ca as SidebarInput, wa as SidebarInset, Ta as SidebarMenu, Ea as SidebarMenuAction, Da as SidebarMenuBadge, Oa as SidebarMenuButton, ka as SidebarMenuItem, Aa as SidebarMenuSkeleton, ja as SidebarMenuSub, Ma as SidebarMenuSubButton, Na as SidebarMenuSubItem, Pa as SidebarProvider, Fa as SidebarRail, Ia as SidebarSeparator, La as SidebarTrigger, $r as Singlestore, ma as Skeleton, ei as Slack, za as Slider, ti as Snowflake, Va as SparkleBurst, ni as Splunk, ri as Spotify, ii as Square, ai as Squarespace, oi as Squareup, Ha as StepIndicator, Ms as StepsProgress, si as Stripe, Ns as SuggestionCard, Ps as SuggestionCardSkeleton, Ga as Switch, rs as TOOLKITS, is as TOOLKIT_CATALOGUE, us as TOOLKIT_ICON_MAP, Ka as Table, qa as TableBody, Ja as TableCaption, Ya as TableCell, Xa as TableFooter, Za as TableHead, Qa as TableHeader, $a as TableRow, io as Tabs, no as TabsContent, ro as TabsList, to as TabsTrigger, Fs as TagsInput, Is as TagsInputValue, ci as Telegram, li as Tesla, Bi as Textarea, ui as Ticktick, di as Tiktok, ao as Toggle, co as ToggleGroup, so as ToggleGroupChip, Ls as ToolAuthorization, Rs as ToolAuthorizationArgs, zs as ToolAuthorizationContent, Bs as ToolAuthorizationHeader, Vs as ToolAuthorizationMessage, Hs as ToolCallAccordion, Us as ToolCallAccordionContent, Ws as ToolCallAccordionItem, Gs as ToolCallAccordionTrigger, Ks as ToolCard, js as ToolkitCard, d as Tooltip, l as TooltipContent, u as TooltipProvider, c as TooltipTrigger, fi as Trello, pi as Twilio, mi as Twitch, Js as UndoToastProvider, Ys as UserNav, hi as Vercel, gi as VercelLogotype, lo as ViewToolsControl, uo as VirtualizedGrid, _i as Vscode, vi as Walmart, yi as Weaviate, bi as Windsurf, xi as Workday, Si as Wrike, Ci as X, wi as Xero, Ti as Youtube, Ei as Yugabytedb, Di as Zendesk, Oi as Zoho, ki as ZohoBooks, Ai as ZohoCreator, ji as Zoom, R as avatarBadgeVariants, B as badgeVariants, D as buttonVariants, Et as filterChipVariants, as as findPrebuiltProviderById, os as findPrebuiltProviderByProviderId, ss as findToolkitByName, ds as getToolIconByToolkitName, fs as getToolkitIcon, ps as getToolkitIconByName, ms as hasToolkitIcon, Ot as iconTileVariants, cs as isKnownToolkit, ls as isPrebuiltProvider, Ji as jsonHighlightVariants, Go as mcpSelectionCardShellVariants, _s as mcpToolkitAvatarVariants, Oo as removableChipButtonClass, hs as resolveToolkitIcon, Ua as stepIndicatorIconVariants, Wa as stepIndicatorLabelVariants, eo as tabsListVariants, oo as toggleVariants, Ra as useSidebar, qs as useUndoToast };
|
|
284
|
+
export { r as Accordion, t as AccordionContent, n as AccordionItem, e as AccordionTrigger, kt as Adp, At as Aha, jt as Airtable, i as Alert, a as AlertAction, o as AlertDescription, T as AlertDialog, x as AlertDialogAction, C as AlertDialogCancel, y as AlertDialogContent, h as AlertDialogDescription, S as AlertDialogFooter, w as AlertDialogHeader, g as AlertDialogMedia, b as AlertDialogOverlay, E as AlertDialogPortal, _ as AlertDialogTitle, v as AlertDialogTrigger, s as AlertTitle, Mt as Amplitude, Nt as Apollo, Pt as Arcade, k as ArcadeGradient, A as ArcadeGrid, Ft as ArcadeLogo, It as Asana, Lt as Ashby, Rt as Atlassian, zt as Attio, Bt as Auth0, bc as AuthTemplate, xc as AuthTemplateCard, Sc as AuthTemplateContent, Cc as AuthTemplateDefaultBackground, wc as AuthTemplateDescription, Tc as AuthTemplateFooter, Ec as AuthTemplateGridOverlay, Dc as AuthTemplateHeader, Oc as AuthTemplateLegal, kc as AuthTemplateLegalLink, Ac as AuthTemplateLogo, jc as AuthTemplatePrompt, Mc as AuthTemplatePromptLink, Nc as AuthTemplateTitle, Pc as AuthTemplateVideoBackground, I as Avatar, N as AvatarBadge, F as AvatarFallback, M as AvatarGroup, j as AvatarGroupCount, P as AvatarImage, L as AvatarNotificationBadge, fo as AvatarStack, Vt as Azure, z as Badge, Ht as Bamboohr, Ut as Basecamp, Wt as Bill, Gt as Bitbucket, Kt as Bluesky, qt as Box, V as BrandChip, Jt as Braze, H as Breadcrumb, U as BreadcrumbEllipsis, W as BreadcrumbItem, G as BreadcrumbLink, K as BreadcrumbList, q as BreadcrumbPage, J as BreadcrumbSeparator, Yt as Brex, Xt as Brightdata, Zt as Buffer, O as Button, he as ByocBadge, rs as CATEGORIES, _e as Calendar, ge as CalendarDayButton, Qt as Calendly, po as Callout, ve as Card, ye as CardAction, be as CardContent, xe as CardDescription, Se as CardFooter, Ce as CardHeader, we as CardTitle, Te as ChartContainer, Ee as ChartLegend, De as ChartLegendContent, Oe as ChartStyle, ke as ChartTooltip, Ae as ChartTooltipContent, xo as ChatAssistantMessage, mc as ChatBodySkeleton, je as ChatContainerContent, Me as ChatContainerRoot, Ne as ChatContainerScrollAnchor, hc as ChatContentSkeleton, gc as ChatFooterSkeleton, _c as ChatHeaderSkeleton, ho as ChatHistoryItem, So as ChatMessageList, Co as ChatMessageListSkeleton, yc as ChatPageSkeleton, vc as ChatSidebarSkeleton, wo as ChatStreamingIndicator, ac as ChatTemplate, oc as ChatTemplateBody, sc as ChatTemplateFooter, cc as ChatTemplateHeader, lc as ChatTemplateHeaderGroup, uc as ChatTemplateOverview, dc as ChatTemplateOverviewSubtitle, fc as ChatTemplateOverviewTitle, pc as ChatTemplateSuggestions, To as ChatUserMessage, Fe as Checkbox, Pe as CheckboxVisual, ko as ChipBody, $t as Claude, en as ClaudeCodeLogotype, Ie as ClearButton, tn as Clickhouse, nn as Clickup, Ao as ClientSecretInput, rn as Cline, an as Closeio, Re as CodeBlock, ze as CodeBlockCode, Be as CodeBlockGroup, on as Codesandbox, sn as Coinbase, Ue as Collapsible, Ve as CollapsibleContent, He as CollapsibleTrigger, Qe as Command, jo as CommandBar, Je as CommandDialog, Xe as CommandEmpty, Ke as CommandGroup, We as CommandInput, Ye as CommandItem, Ze as CommandList, Ge as CommandSeparator, qe as CommandShortcut, mo as ConfirmPopover, cn as Confluence, lt as CopyButton, ln as Cursor, un as CursorInstallDark, dn as CursorInstallLight, fn as CursorLogotype, pn as Customerio, Gc as DEFAULT_MCP_CLIENT_IDS, Kc as DEFAULT_MCP_SERVER_IDS, Ba as DS_SPARKLE_DURATION_MS, mn as Datadog, Mo as DateTimePicker, hn as Daytona, $e as Dialog, et as DialogClose, tt as DialogContent, nt as DialogDescription, rt as DialogFooter, it as DialogHeader, at as DialogOverlay, ot as DialogPortal, st as DialogTitle, ct as DialogTrigger, gn as DigitalOcean, _n as Discord, vn as Dropbox, Ct as DropdownMenu, vt as DropdownMenuCheckboxItem, xt as DropdownMenuContent, ht as DropdownMenuGroup, ut as DropdownMenuItem, yt as DropdownMenuLabel, St as DropdownMenuPortal, dt as DropdownMenuRadioGroup, gt as DropdownMenuRadioItem, wt as DropdownMenuSeparator, ft as DropdownMenuShortcut, pt as DropdownMenuSub, bt as DropdownMenuSubContent, _t as DropdownMenuSubTrigger, mt as DropdownMenuTrigger, yn as E2b, bn as Ebay, No as EmptyState, Po as ErrorState, Ic as ErrorTemplate, Lc as ErrorTemplateActions, Rc as ErrorTemplateContent, zc as ErrorTemplateDescription, Bc as ErrorTemplateIcon, Vc as ErrorTemplateLogo, Hc as ErrorTemplateTitle, Uc as ErrorTemplateUrl, xn as Evernote, Sn as Exa, Cn as Factorial, wn as Figma, Tt as FilterChip, Fo as FilterChipGroup, Tn as Firecrawl, En as Fireflies, Io as FlowDiagram, Dn as FlyIo, On as Forkable, kn as Freshdesk, An as Freshservice, qc as GatewayDiagram, jn as Gemini, Mn as Generic, Nn as Github, Pn as Gitlab, Fn as Glean, In as Gmail, Ln as Google, Rn as GoogleCalendar, zn as GoogleContacts, Bn as GoogleDocs, Vn as GoogleDrive, Hn as GoogleFinance, Un as GoogleFlight, Wn as GoogleFlights, Gn as GoogleForms, Kn as GoogleHotels, qn as GoogleJobs, Jn as GoogleMaps, Yn as GoogleNews, Xn as GoogleSheets, Zn as GoogleShopping, Qn as GoogleSlides, $n as Goose, er as Granola, tr as Heroku, nr as Hootsuite, m as HoverCard, f as HoverCardContent, p as HoverCardTrigger, rr as Hubspot, Dt as IconTile, ir as Imgflip, zi as Input, Vi as InputGroup, Hi as InputGroupAddon, Ui as InputGroupButton, Wi as InputGroupInput, Gi as InputGroupText, Ki as InputGroupTextarea, ar as Insightly, or as Intercom, sr as Jira, qi as JsonHighlight, Yi as Label, cr as Langchain, lr as LangchainLogotype, ur as Linear, dr as Linkedin, Xi as Loader, Fc as LoginPage, fr as Luma, Wc as MCP_CLIENT_METADATA, Yo as MCP_OAUTH2_PROVIDER, pr as Mailchimp, Le as Markdown, mr as Mastra, hr as MastraLogotype, gr as MathToolkit, _r as Mcp, Go as McpCardHeading, Lo as McpHeaderCheckboxToggle, zo as McpRecommendedToolsCallout, Bo as McpRecommendedToolsDeactivateDialog, Vo as McpRecommendedToolsOptOutDialog, Ho as McpRequirementListItem, $s as McpRequirementsDialog, Uo as McpReviewCountChip, Ro as McpSectionCallout, Wo as McpSectionNavHeader, ec as McpSelectionSummaryBar, bs as McpServerAvatarStack, xs as McpServerCard, tc as McpServerPicker, nc as McpServerPickerGrid, rc as McpServerPickerHeader, ic as McpServerPickerToolGrid, Ss as McpSetupCallout, Cs as McpToolCard, ws as McpToolRecommendations, vs as McpToolkitAvatar, Ts as McpToolkitChip, Es as McpToolkitGroupHeader, Ds as McpUnoptimizedMatchCard, Os as McpViewTabs, go as Message, _o as MessageAction, vo as MessageActions, yo as MessageAvatar, bo as MessageContent, vr as Microsoft, yr as MicrosoftDynamics, br as MicrosoftExcel, xr as MicrosoftOnedrive, Sr as MicrosoftOutlookCalendar, Cr as MicrosoftOutlookMail, wr as MicrosoftPowerBi, Tr as MicrosoftPowerpoint, Er as MicrosoftSharepoint, Dr as MicrosoftTeams, Or as MicrosoftWord, kr as Miro, de as MobileTooltip, fe as MobileTooltipContent, pe as MobileTooltipProvider, me as MobileTooltipTrigger, Ar as Monday, jr as MongoDB, Mr as Netsuite, Nr as Notion, Xo as OAUTH2_PROVIDER, Zo as OAUTH_PROVIDERS, Qo as OAUTH_PROVIDER_CATALOGUE, $o as OAuthId, es as OAuthProviderId, ts as OTHER_OAUTH_PROVIDERS, Pr as Oauth, Fr as Obsidian, Ir as Okta, Lr as Openai, ns as PREBUILT_OAUTH_PROVIDERS, qo as PUBLIC_ICON_URL, Jo as PUBLIC_VIDEO_URL, Rr as Pagerduty, zr as Pinecone, Br as Pinterest, Vr as Pipedrive, Hr as Plaid, ee as Popover, Z as PopoverContent, $ as PopoverDescription, X as PopoverHeader, Y as PopoverTitle, Q as PopoverTrigger, Ur as Postgres, Wr as Posthog, Gr as Postman, Zi as ProBadge, Ri as Progress, Ii as ProgressIndicator, Li as ProgressLabel, Fi as ProgressTrack, Pi as ProgressValue, ks as PromptInput, As as PromptInputAction, js as PromptInputActions, Ms as PromptInputTextarea, Kr as Pylon, qr as Quickbooks, Ni as RadioGroup, Mi as RadioGroupItem, Jr as Railway, Yr as Reddit, Eo as RemovableChip, Do as RemovableChipButton, Ns as RequirementBadges, Xr as Resend, ea as ResizableHandle, Qi as ResizablePanel, $i as ResizablePanelGroup, Zr as Salesforce, na as ScrollArea, ta as ScrollBar, ra as ScrollButton, ia as ScrollToBottomButton, le as Select, ae as SelectContent, se as SelectGroup, re as SelectItem, te as SelectLabel, oe as SelectScrollDownButton, ce as SelectScrollUpButton, ne as SelectSeparator, ie as SelectTrigger, ue as SelectValue, aa as Separator, oa as Sheet, sa as SheetClose, ca as SheetContent, la as SheetDescription, ua as SheetFooter, da as SheetHeader, fa as SheetTitle, pa as SheetTrigger, Qr as Shopify, ha as Sidebar, ga as SidebarContent, _a as SidebarFooter, va as SidebarGroup, ya as SidebarGroupAction, ba as SidebarGroupContent, xa as SidebarGroupLabel, Sa as SidebarHeader, Ca as SidebarInput, wa as SidebarInset, Ta as SidebarMenu, Ea as SidebarMenuAction, Da as SidebarMenuBadge, Oa as SidebarMenuButton, ka as SidebarMenuItem, Aa as SidebarMenuSkeleton, ja as SidebarMenuSub, Ma as SidebarMenuSubButton, Na as SidebarMenuSubItem, Pa as SidebarProvider, Fa as SidebarRail, Ia as SidebarSeparator, La as SidebarTrigger, $r as Singlestore, ma as Skeleton, ei as Slack, za as Slider, ti as Snowflake, Va as SparkleBurst, ni as Splunk, ri as Spotify, ii as Square, ai as Squarespace, oi as Squareup, Ha as StepIndicator, Fs as StepsProgress, si as Stripe, Is as SuggestionCard, Ls as SuggestionCardSkeleton, Ga as Switch, is as TOOLKITS, as as TOOLKIT_CATALOGUE, fs as TOOLKIT_ICON_MAP, Ka as Table, qa as TableBody, Ja as TableCaption, Ya as TableCell, Xa as TableFooter, Za as TableHead, Qa as TableHeader, $a as TableRow, io as Tabs, no as TabsContent, ro as TabsList, to as TabsTrigger, Rs as TagsInput, zs as TagsInputValue, ci as Telegram, li as Tesla, Bi as Textarea, ui as Ticktick, di as Tiktok, ao as Toggle, co as ToggleGroup, so as ToggleGroupChip, Bs as ToolAuthorization, Vs as ToolAuthorizationArgs, Hs as ToolAuthorizationContent, Us as ToolAuthorizationHeader, Ws as ToolAuthorizationMessage, Gs as ToolCallAccordion, Ks as ToolCallAccordionContent, qs as ToolCallAccordionItem, Js as ToolCallAccordionTrigger, Ys as ToolCard, Ps as ToolkitCard, d as Tooltip, l as TooltipContent, u as TooltipProvider, c as TooltipTrigger, fi as Trello, pi as Twilio, mi as Twitch, Xs as UndoToastProvider, Qs as UserNav, hi as Vercel, gi as VercelLogotype, lo as ViewToolsControl, uo as VirtualizedGrid, _i as Vscode, vi as Walmart, yi as Weaviate, bi as Windsurf, xi as Workday, Si as Wrike, Ci as X, wi as Xero, Ti as Youtube, Ei as Yugabytedb, Di as Zendesk, Oi as Zoho, ki as ZohoBooks, Ai as ZohoCreator, ji as Zoom, R as avatarBadgeVariants, B as badgeVariants, D as buttonVariants, Et as filterChipVariants, os as findPrebuiltProviderById, ss as findPrebuiltProviderByProviderId, cs as findToolkitByName, ps as getToolIconByToolkitName, ms as getToolkitIcon, hs as getToolkitIconByName, gs as hasToolkitIcon, Ot as iconTileVariants, ls as isKnownToolkit, us as isPrebuiltProvider, Ji as jsonHighlightVariants, Ko as mcpSelectionCardShellVariants, ys as mcpToolkitAvatarVariants, Oo as removableChipButtonClass, ds as resolveOAuthProvider, _s as resolveToolkitIcon, Ua as stepIndicatorIconVariants, Wa as stepIndicatorLabelVariants, eo as tabsListVariants, oo as toggleVariants, Ra as useSidebar, Zs as useUndoToast };
|
package/dist/metadata/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PUBLIC_ICON_URL as e, PUBLIC_VIDEO_URL as t } from "./constants.js";
|
|
2
2
|
import { MCP_OAUTH2_PROVIDER as n, OAUTH2_PROVIDER as r, OAUTH_PROVIDERS as i, OAUTH_PROVIDER_CATALOGUE as a, OAuthId as o, OAuthProviderId as s, OTHER_OAUTH_PROVIDERS as c, PREBUILT_OAUTH_PROVIDERS as l } from "./oauth-providers.js";
|
|
3
3
|
import { CATEGORIES as u, TOOLKITS as d, TOOLKIT_CATALOGUE as f } from "./toolkits.js";
|
|
4
|
-
import { findPrebuiltProviderById as p, findPrebuiltProviderByProviderId as m, findToolkitByName as h, isKnownToolkit as g, isPrebuiltProvider as _ } from "./utils.js";
|
|
5
|
-
import { TOOLKIT_ICON_MAP as
|
|
6
|
-
import { MCP_CLIENT_METADATA as
|
|
7
|
-
export { u as CATEGORIES,
|
|
4
|
+
import { findPrebuiltProviderById as p, findPrebuiltProviderByProviderId as m, findToolkitByName as h, isKnownToolkit as g, isPrebuiltProvider as _, resolveOAuthProvider as v } from "./utils.js";
|
|
5
|
+
import { TOOLKIT_ICON_MAP as y, getToolIconByToolkitName as b, getToolkitIcon as x, getToolkitIconByName as S, hasToolkitIcon as C, resolveToolkitIcon as w } from "./toolkit-icons.js";
|
|
6
|
+
import { MCP_CLIENT_METADATA as T } from "./mcp-clients.js";
|
|
7
|
+
export { u as CATEGORIES, T as MCP_CLIENT_METADATA, n as MCP_OAUTH2_PROVIDER, r as OAUTH2_PROVIDER, i as OAUTH_PROVIDERS, a as OAUTH_PROVIDER_CATALOGUE, o as OAuthId, s as OAuthProviderId, c as OTHER_OAUTH_PROVIDERS, l as PREBUILT_OAUTH_PROVIDERS, e as PUBLIC_ICON_URL, t as PUBLIC_VIDEO_URL, d as TOOLKITS, f as TOOLKIT_CATALOGUE, y as TOOLKIT_ICON_MAP, p as findPrebuiltProviderById, m as findPrebuiltProviderByProviderId, h as findToolkitByName, b as getToolIconByToolkitName, x as getToolkitIcon, S as getToolkitIconByName, C as hasToolkitIcon, g as isKnownToolkit, _ as isPrebuiltProvider, v as resolveOAuthProvider, w as resolveToolkitIcon };
|
package/dist/metadata/utils.d.ts
CHANGED
|
@@ -14,6 +14,12 @@ export declare const findPrebuiltProviderById: (id: string) => OAuthCatalogue |
|
|
|
14
14
|
* Check if a provider ID corresponds to a prebuilt provider
|
|
15
15
|
*/
|
|
16
16
|
export declare const isPrebuiltProvider: (providerId: string) => boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Resolve a provider `provider_id` or internal `id` to its catalogue descriptor
|
|
19
|
+
* across all providers, falling back to the generic OAuth 2.0 descriptor for
|
|
20
|
+
* custom or unknown ones.
|
|
21
|
+
*/
|
|
22
|
+
export declare const resolveOAuthProvider: (providerId: string) => OAuthCatalogue;
|
|
17
23
|
/**
|
|
18
24
|
* TOOLKITS
|
|
19
25
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../lib/metadata/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../lib/metadata/utils.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAE5E;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,gCAAgC,GAC3C,YAAY,mBAAmB,GAAG,MAAM,KACvC,cAAc,GAAG,SAGjB,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,IAAI,MAAM,KACT,cAAc,GAAG,SACqC,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,YAAY,MAAM,KAAG,OAGrD,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,YAAY,MAAM,KAAG,cAQzC,CAAC;AAElB;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,aAAa,MAAM,KAAG,OAGlD,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,aAAa,MAAM,KAAG,OAAO,GAAG,SAajE,CAAC"}
|
package/dist/metadata/utils.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TOOLKITS as
|
|
1
|
+
import { OAUTH2_PROVIDER as e, OAUTH_PROVIDERS as t, OAUTH_PROVIDER_CATALOGUE as n, PREBUILT_OAUTH_PROVIDERS as r } from "./oauth-providers.js";
|
|
2
|
+
import { TOOLKITS as i, TOOLKIT_CATALOGUE as a } from "./toolkits.js";
|
|
3
3
|
//#region lib/metadata/utils.ts
|
|
4
|
-
var
|
|
5
|
-
let
|
|
6
|
-
if (
|
|
4
|
+
var o = (e) => r.find((t) => t.provider_id === e || t.id === e), s = (e) => r.find((t) => t.id === e), c = (e) => r.some((t) => t.provider_id === e || t.id === e), l = (r) => (Object.hasOwn(n, r) ? n[r] : void 0) ?? t.find((e) => e.id === r) ?? e, u = (e) => Object.keys(a).some((t) => t.toLowerCase() === e.toLowerCase()), d = (e) => {
|
|
5
|
+
let t = e.toLowerCase(), n = i.filter((e) => e.label.toLowerCase() === t || e.id.toLowerCase() === t);
|
|
6
|
+
if (n.length !== 0) return n.find((e) => !e.isHidden) ?? n[0];
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
9
|
-
export {
|
|
9
|
+
export { s as findPrebuiltProviderById, o as findPrebuiltProviderByProviderId, d as findToolkitByName, u as isKnownToolkit, c as isPrebuiltProvider, l as resolveOAuthProvider };
|