@arcadeai/design-system 7.0.0 → 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 +35 -33
- package/dist/components/ui/blocks/demo.js +1 -1
- package/dist/components/ui/index.js +35 -33
- package/dist/components/ui/molecules/index.d.ts +2 -0
- package/dist/components/ui/molecules/index.d.ts.map +1 -1
- package/dist/components/ui/molecules/index.js +25 -24
- 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/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 +41 -39
- 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
|
@@ -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
|
@@ -239,44 +239,46 @@ import { FlowDiagram as Io } from "./components/ui/molecules/flow-diagram.js";
|
|
|
239
239
|
import { McpHeaderCheckboxToggle as Lo } from "./components/ui/molecules/mcp-server-picker/header-checkbox-toggle.js";
|
|
240
240
|
import { McpSectionCallout as Ro } from "./components/ui/molecules/mcp-server-picker/section-callout.js";
|
|
241
241
|
import { McpRecommendedToolsCallout as zo, McpRecommendedToolsDeactivateDialog as Bo, McpRecommendedToolsOptOutDialog as Vo } from "./components/ui/molecules/mcp-server-picker/recommended-tools.js";
|
|
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 {
|
|
279
|
-
import {
|
|
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";
|
|
280
282
|
import "./components/index.js";
|
|
281
283
|
import "./metadata/index.js";
|
|
282
|
-
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, _c as AuthTemplate, vc as AuthTemplateCard, yc as AuthTemplateContent, bc as AuthTemplateDefaultBackground, xc as AuthTemplateDescription, Sc as AuthTemplateFooter, Cc as AuthTemplateGridOverlay, wc as AuthTemplateHeader, Tc as AuthTemplateLegal, Ec as AuthTemplateLegalLink, Dc as AuthTemplateLogo, Oc as AuthTemplatePrompt, kc as AuthTemplatePromptLink, Ac as AuthTemplateTitle, jc 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, dc as ChatBodySkeleton, je as ChatContainerContent, Me as ChatContainerRoot, Ne as ChatContainerScrollAnchor, fc as ChatContentSkeleton, pc as ChatFooterSkeleton, mc as ChatHeaderSkeleton, ho as ChatHistoryItem, So as ChatMessageList, Co as ChatMessageListSkeleton, gc as ChatPageSkeleton, hc as ChatSidebarSkeleton, wo as ChatStreamingIndicator, nc as ChatTemplate, rc as ChatTemplateBody, ic as ChatTemplateFooter, ac as ChatTemplateHeader, oc as ChatTemplateHeaderGroup, sc as ChatTemplateOverview, cc as ChatTemplateOverviewSubtitle, lc as ChatTemplateOverviewTitle, uc 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, Hc as DEFAULT_MCP_CLIENT_IDS, Uc 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, Nc as ErrorTemplate, Pc as ErrorTemplateActions, Fc as ErrorTemplateContent, Ic as ErrorTemplateDescription, Lc as ErrorTemplateIcon, Rc as ErrorTemplateLogo, zc as ErrorTemplateTitle, Bc 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, Wc 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, Mc as LoginPage, fr as Luma, Vc 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, Lo as McpHeaderCheckboxToggle, zo as McpRecommendedToolsCallout, Bo as McpRecommendedToolsDeactivateDialog, Vo as McpRecommendedToolsOptOutDialog, Ho as McpReviewCountChip, Ro as McpSectionCallout, Uo as McpSectionNavHeader, Zs as McpSelectionSummaryBar, vs as McpServerAvatarStack, ys as McpServerCard, Qs as McpServerPicker, $s as McpServerPickerGrid, ec as McpServerPickerHeader, tc as McpServerPickerToolGrid, bs as McpSetupCallout, xs as McpToolCard, Ss as McpToolRecommendations, gs as McpToolkitAvatar, Cs as McpToolkitChip, ws as McpToolkitGroupHeader, Ts as McpUnoptimizedMatchCard, Es 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, 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, Ds as PromptInput, Os as PromptInputAction, ks as PromptInputActions, As 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, js 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, Ns as StepsProgress, si as Stripe, Ps as SuggestionCard, Fs 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, Is as TagsInput, Ls 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, Rs as ToolAuthorization, zs as ToolAuthorizationArgs, Bs as ToolAuthorizationContent, Vs as ToolAuthorizationHeader, Hs as ToolAuthorizationMessage, Us as ToolCallAccordion, Ws as ToolCallAccordionContent, Gs as ToolCallAccordionItem, Ks as ToolCallAccordionTrigger, qs as ToolCard, Ms as ToolkitCard, d as Tooltip, l as TooltipContent, u as TooltipProvider, c as TooltipTrigger, fi as Trello, pi as Twilio, mi as Twitch, Ys as UndoToastProvider, Xs 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, Js 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 };
|