@mcp-b/react-components 0.21.0 → 0.23.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/{AgentChat-Dvkn8lce.d.ts → AgentChat-Bm1qYbOo.d.ts} +2 -2
- package/dist/{AgentChatStartScreen-CvXJBr4y.d.ts → AgentChatStartScreen-DDZ25aax.d.ts} +4 -1
- package/dist/{Button-yRInko9u.d.ts → Button-SBIz6Lqi.d.ts} +2 -1
- package/dist/{CodeBlock-ygtuzqJd.js → CodeBlock-Cp67Njo3.js} +1 -1
- package/dist/{CodeBlock-Bbls1CnA.d.ts → CodeBlock-yMpGqScn.d.ts} +1 -1
- package/dist/Dialog-BD8NBKaE.d.ts +122 -0
- package/dist/{FileTree-CdgfccsM.js → FileTree-DW60q1w7.js} +1 -1
- package/dist/IconButton-CFKhu6OR.d.ts +35 -0
- package/dist/{Message-DzuteocT.js → Message-_-bEYLAO.js} +9 -16
- package/dist/{ModelSelector-CEd8M9eK.js → ModelSelector-Brvj9Cab.js} +1 -1
- package/dist/{PromptInput-Cq-8RoXD.d.ts → PromptInput-BjoPWaaG.d.ts} +15 -2
- package/dist/{ThinkChatActivity-FY1VWXgh.d.ts → ThinkChatActivity-2BobmuvR.d.ts} +1 -1
- package/dist/{Workspace-CWtust-2.d.ts → Workspace-CIycQ4xE.d.ts} +1 -1
- package/dist/{WorkspaceExplorer-DGigwsgH.d.ts → WorkspaceExplorer-BCipn7Vd.d.ts} +1 -1
- package/dist/{WorkspaceFile-D8Un_xge.d.ts → WorkspaceFile-DMtRMwVv.d.ts} +1 -1
- package/dist/{WorkspaceFileView-Bxx4wEzJ.js → WorkspaceFileView-rUEN2iox.js} +4 -4
- package/dist/assets/think-browser-host.png +0 -0
- package/dist/components/ActionGuide.d.ts +85 -0
- package/dist/components/ActionGuide.js +94 -0
- package/dist/components/Activity.js +1 -1
- package/dist/components/AgentActivity.js +3 -11
- package/dist/components/AgentActivityPreview.js +15 -14
- package/dist/components/AgentAttention.d.ts +1 -1
- package/dist/components/AgentChat.d.ts +1 -1
- package/dist/components/AgentChat.js +33 -13
- package/dist/components/AgentChatStartScreen.d.ts +1 -1
- package/dist/components/AgentChatStartScreen.js +21 -15
- package/dist/components/AgentConnection.d.ts +1 -1
- package/dist/components/AgentConnection.js +2 -2
- package/dist/components/AgentMessageParts.js +1 -1
- package/dist/components/AgentToolDetail.js +1 -1
- package/dist/components/AlertDialog.d.ts +2 -1
- package/dist/components/AlertDialog.js +8 -2
- package/dist/components/AppIcon.d.ts +58 -0
- package/dist/components/AppIcon.js +51 -0
- package/dist/components/AppTopBar.js +9 -10
- package/dist/components/Approval.js +1 -1
- package/dist/components/Artifact.d.ts +3 -7
- package/dist/components/Artifact.js +12 -18
- package/dist/components/Avatar.d.ts +7 -2
- package/dist/components/Avatar.js +4 -2
- package/dist/components/BrowserLiveView.js +1 -1
- package/dist/components/BrowserReplay.js +4 -5
- package/dist/components/BrowserRunPanel.js +1 -1
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/ChainOfThought.d.ts +1 -1
- package/dist/components/ChainOfThought.js +1 -1
- package/dist/components/ChatGptSignInScreen.js +2 -2
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Checkpoint.js +1 -1
- package/dist/components/CodeBlock.d.ts +1 -1
- package/dist/components/CodeBlock.js +1 -1
- package/dist/components/CodexModelSelector.js +1 -1
- package/dist/components/Commit.d.ts +1 -1
- package/dist/components/Commit.js +3 -3
- package/dist/components/ContextMenu.js +1 -1
- package/dist/components/Conversation.d.ts +2 -2
- package/dist/components/Conversation.js +4 -5
- package/dist/components/Dialog.d.ts +1 -117
- package/dist/components/Dialog.js +9 -1
- package/dist/components/EnvironmentVariables.d.ts +1 -1
- package/dist/components/EnvironmentVariables.js +2 -2
- package/dist/components/FileTree.js +1 -1
- package/dist/components/IconButton.d.ts +1 -31
- package/dist/components/IconButton.js +2 -1
- package/dist/components/McpConnectionRequest.d.ts +1 -1
- package/dist/components/McpConnectionRequest.js +1 -1
- package/dist/components/McpPluginCatalog.d.ts +86 -0
- package/dist/components/McpPluginCatalog.js +364 -0
- package/dist/components/McpServerPicker.d.ts +2 -2
- package/dist/components/McpServerPicker.js +7 -13
- package/dist/components/MediaPreviewCard.js +1 -1
- package/dist/components/Menubar.js +1 -1
- package/dist/components/Message.d.ts +4 -8
- package/dist/components/Message.js +1 -1
- package/dist/components/MessageScroller.d.ts +1 -1
- package/dist/components/MessageScroller.js +1 -1
- package/dist/components/ModelSelector.d.ts +2 -2
- package/dist/components/ModelSelector.js +1 -1
- package/dist/components/Plan.js +1 -1
- package/dist/components/PricingPlanCard.d.ts +1 -1
- package/dist/components/PricingPlanCard.js +10 -12
- package/dist/components/PromptInput.d.ts +2 -2
- package/dist/components/PromptInput.js +27 -10
- package/dist/components/Queue.d.ts +1 -1
- package/dist/components/Queue.js +2 -2
- package/dist/components/Reasoning.js +4 -9
- package/dist/components/ResponsiveSidebarShell.js +2 -1
- package/dist/components/ScrollArea.js +1 -0
- package/dist/components/SearchField.js +1 -1
- package/dist/components/Select.js +1 -1
- package/dist/components/Sources.js +1 -1
- package/dist/components/Stepper.js +1 -1
- package/dist/components/SubagentRunIndicator.js +1 -1
- package/dist/components/SubagentRunSelector.js +1 -1
- package/dist/components/Task.js +1 -1
- package/dist/components/Terminal.d.ts +3 -3
- package/dist/components/Terminal.js +7 -8
- package/dist/components/TestResults.js +1 -1
- package/dist/components/ThemeModeControl.js +1 -1
- package/dist/components/ThinkChat.d.ts +5 -5
- package/dist/components/ThinkChatActivity.d.ts +1 -1
- package/dist/components/ThinkChatActivity.js +1 -1
- package/dist/components/ThinkChatToolPanels.js +1 -1
- package/dist/components/ThinkExecutionDetail.js +1 -1
- package/dist/components/ThinkExecutionStatus.js +1 -1
- package/dist/components/ThinkExecutionWorkbench.js +14 -21
- package/dist/components/ThinkFullApp.d.ts +8 -4
- package/dist/components/ThinkFullApp.js +17 -2
- package/dist/components/ThinkRoutineBrowser.js +2 -2
- package/dist/components/ThinkRoutineForm.js +3 -3
- package/dist/components/ThinkRoutineLibrary.js +2 -2
- package/dist/components/ThinkRoutineRuns.js +1 -1
- package/dist/components/ThinkThreadPicker.js +2 -3
- package/dist/components/Toast.d.ts +12 -2
- package/dist/components/Toast.js +14 -4
- package/dist/components/Tooltip.d.ts +6 -4
- package/dist/components/Tooltip.js +11 -4
- package/dist/components/WebPreview.d.ts +13 -6
- package/dist/components/WebPreview.js +55 -50
- package/dist/components/Workspace.d.ts +1 -1
- package/dist/components/WorkspaceBrowser.d.ts +1 -1
- package/dist/components/WorkspaceBrowser.js +1 -1
- package/dist/components/WorkspaceExplorer.d.ts +3 -3
- package/dist/components/WorkspaceExplorer.js +1 -1
- package/dist/components/WorkspaceFile.d.ts +1 -1
- package/dist/components/WorkspaceFileView.d.ts +1 -1
- package/dist/components/WorkspaceFileView.js +1 -1
- package/dist/components/WorkspaceHeader.js +1 -1
- package/dist/components/icons.d.ts +2 -2
- package/dist/components/icons.js +2 -2
- package/dist/{copy-button-BrvQ7z4W.d.ts → copy-button-EBv_B9F6.d.ts} +2 -2
- package/dist/{copy-button-vo1paUSi.js → copy-button-TWq8nZhc.js} +8 -8
- package/dist/{icons-DyOM0EJs.js → icons-ua6f_GH3.js} +3 -2
- package/dist/{icons-DkRtZmvT.d.ts → icons-wP1yFUXF.d.ts} +6 -1
- package/dist/mcp-server-catalog-DycejaJ5.d.ts +1077 -0
- package/dist/styles/action-guide.css +128 -0
- package/dist/styles/agent-activity-preview-overlay.css +13 -1
- package/dist/styles/agent-activity-preview.css +3 -34
- package/dist/styles/agent-chat.css +110 -75
- package/dist/styles/alert-dialog.css +0 -18
- package/dist/styles/app-icon.css +122 -0
- package/dist/styles/app-top-bar.css +0 -1
- package/dist/styles/avatar.css +13 -0
- package/dist/styles/base.css +0 -1
- package/dist/styles/button.css +14 -0
- package/dist/styles/description-list.css +2 -2
- package/dist/styles/dialog.css +6 -6
- package/dist/styles/index.css +3 -0
- package/dist/styles/mcp-plugin-catalog.css +296 -0
- package/dist/styles/mcp-server-picker.css +0 -26
- package/dist/styles/message-scroller.css +5 -1
- package/dist/styles/message.css +7 -0
- package/dist/styles/prompt-input.css +26 -14
- package/dist/styles/recipes.css +27 -5
- package/dist/styles/responsive-sidebar-shell.css +14 -8
- package/dist/styles/search-field.css +9 -0
- package/dist/styles/think-full-app.css +22 -2
- package/dist/styles/think-thread-picker.css +1 -11
- package/dist/styles/toast.css +0 -21
- package/dist/styles/tokens.css +6 -0
- package/dist/styles/web-preview.css +5 -0
- package/dist/utils/favicon.d.ts +10 -0
- package/dist/utils/favicon.js +18 -0
- package/dist/utils/mcp-server-catalog.d.ts +2 -1078
- package/dist/utils/mcp-server-catalog.js +3 -11
- package/dist/utils/structured-code.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
+
import { Button } from "./Button.js";
|
|
3
|
+
import { $ as WarningIcon, H as PlusIcon, b as EllipsisIcon, o as ArrowUpRightIcon, q as SpinnerIcon, tt as XIcon } from "../icons-ua6f_GH3.js";
|
|
4
|
+
import { AppIcon } from "./AppIcon.js";
|
|
5
|
+
import { IconButton } from "./IconButton.js";
|
|
6
|
+
import { AgentAttention, AgentAttentionBody, AgentAttentionHeader } from "./AgentAttention.js";
|
|
7
|
+
import { Dialog } from "./Dialog.js";
|
|
8
|
+
import { Separator } from "./Separator.js";
|
|
9
|
+
import { getMcpServerEntry, getMcpServerIconSrc, getMcpServerRuntimeState } from "../utils/mcp-server-catalog.js";
|
|
10
|
+
import { SearchField } from "./SearchField.js";
|
|
11
|
+
import * as React from "react";
|
|
12
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
//#region src/components/McpPluginCatalog.tsx
|
|
14
|
+
/**
|
|
15
|
+
* Searchable plugin directory backed by the same MCP cards and live Agents
|
|
16
|
+
* state as {@link McpServerPicker}. Selecting a row opens the shared details
|
|
17
|
+
* dialog; connecting still delegates to the host's existing MCP/OAuth path.
|
|
18
|
+
*/
|
|
19
|
+
function McpPluginCatalog({ servers, mcp, detailsByServerId, featuredServerIds = [], brandName, brandLogo, disclosure, onConnect, onDisconnect, heading = "Plugins", description = "Work with your AI across your favorite tools.", searchLabel = "Search plugins", emptyMessage = "No plugins found.", className, ...props }) {
|
|
20
|
+
const [query, setQuery] = React.useState("");
|
|
21
|
+
const [selectedServer, setSelectedServer] = React.useState(null);
|
|
22
|
+
const headingIdPrefix = React.useId();
|
|
23
|
+
const sections = groupServers(filterServers(servers, detailsByServerId, query), featuredServerIds, query);
|
|
24
|
+
const installedServers = query ? [] : servers.filter((server) => getServerProjection(server, mcp).kind === "connected");
|
|
25
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
26
|
+
className: cx("mcp-plugin-catalog", className),
|
|
27
|
+
...props,
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ jsxs("div", {
|
|
30
|
+
className: "mcp-plugin-catalog__header",
|
|
31
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
32
|
+
className: "mcp-plugin-catalog__heading-copy",
|
|
33
|
+
children: [/* @__PURE__ */ jsx("h1", {
|
|
34
|
+
className: "mcp-plugin-catalog__heading",
|
|
35
|
+
children: heading
|
|
36
|
+
}), description ? /* @__PURE__ */ jsx("p", {
|
|
37
|
+
className: "mcp-plugin-catalog__description",
|
|
38
|
+
children: description
|
|
39
|
+
}) : null]
|
|
40
|
+
}), /* @__PURE__ */ jsxs(SearchField.Root, {
|
|
41
|
+
className: "mcp-plugin-catalog__search",
|
|
42
|
+
children: [/* @__PURE__ */ jsx(SearchField.Label, {
|
|
43
|
+
className: "sigvelo-visually-hidden",
|
|
44
|
+
children: searchLabel
|
|
45
|
+
}), /* @__PURE__ */ jsx(SearchField.Control, {
|
|
46
|
+
"aria-label": searchLabel,
|
|
47
|
+
placeholder: searchLabel,
|
|
48
|
+
value: query,
|
|
49
|
+
onChange: (event) => setQuery(event.target.value)
|
|
50
|
+
})]
|
|
51
|
+
})]
|
|
52
|
+
}),
|
|
53
|
+
installedServers.length ? /* @__PURE__ */ jsxs("section", {
|
|
54
|
+
"aria-labelledby": `${headingIdPrefix}-installed-heading`,
|
|
55
|
+
className: "mcp-plugin-catalog__installed",
|
|
56
|
+
children: [/* @__PURE__ */ jsx("h2", {
|
|
57
|
+
id: `${headingIdPrefix}-installed-heading`,
|
|
58
|
+
className: "mcp-plugin-catalog__section-heading",
|
|
59
|
+
children: "Installed"
|
|
60
|
+
}), /* @__PURE__ */ jsx("ul", {
|
|
61
|
+
className: "mcp-plugin-catalog__installed-list",
|
|
62
|
+
children: installedServers.map((server) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(IconButton, {
|
|
63
|
+
color: "neutral",
|
|
64
|
+
label: `Open installed ${server.name}`,
|
|
65
|
+
size: "xl",
|
|
66
|
+
tooltipSide: "bottom",
|
|
67
|
+
variant: "ghost",
|
|
68
|
+
onClick: () => setSelectedServer(server),
|
|
69
|
+
children: /* @__PURE__ */ jsx(McpPluginAvatar, { server })
|
|
70
|
+
}) }, `${server.id}:${server.url}`))
|
|
71
|
+
})]
|
|
72
|
+
}) : null,
|
|
73
|
+
sections.length === 0 ? /* @__PURE__ */ jsx("p", {
|
|
74
|
+
className: "mcp-plugin-catalog__empty",
|
|
75
|
+
children: emptyMessage
|
|
76
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
77
|
+
className: "mcp-plugin-catalog__sections",
|
|
78
|
+
children: sections.map((section) => /* @__PURE__ */ jsxs("section", {
|
|
79
|
+
"aria-labelledby": `${headingIdPrefix}-${section.id}-heading`,
|
|
80
|
+
className: "mcp-plugin-catalog__section",
|
|
81
|
+
children: [/* @__PURE__ */ jsx("h2", {
|
|
82
|
+
id: `${headingIdPrefix}-${section.id}-heading`,
|
|
83
|
+
className: "mcp-plugin-catalog__section-heading",
|
|
84
|
+
children: section.label
|
|
85
|
+
}), /* @__PURE__ */ jsx("ul", {
|
|
86
|
+
className: "mcp-plugin-catalog__list",
|
|
87
|
+
children: section.servers.map((server) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(McpPluginCard, {
|
|
88
|
+
server,
|
|
89
|
+
details: detailsByServerId?.[server.id],
|
|
90
|
+
mcp,
|
|
91
|
+
onSelect: () => setSelectedServer(server)
|
|
92
|
+
}) }, `${server.id}:${server.url}`))
|
|
93
|
+
})]
|
|
94
|
+
}, section.id))
|
|
95
|
+
}),
|
|
96
|
+
/* @__PURE__ */ jsx(McpPluginDetailsDialog, {
|
|
97
|
+
details: selectedServer ? detailsByServerId?.[selectedServer.id] : void 0,
|
|
98
|
+
mcp,
|
|
99
|
+
server: selectedServer,
|
|
100
|
+
brandName,
|
|
101
|
+
brandLogo,
|
|
102
|
+
disclosure,
|
|
103
|
+
onConnect,
|
|
104
|
+
onDisconnect,
|
|
105
|
+
onOpenChange: (open) => !open && setSelectedServer(null)
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/** Reference-derived plugin detail surface without a parallel install state. */
|
|
111
|
+
function McpPluginDetailsDialog({ server, details, mcp, brandName = "your AI", brandLogo = /* @__PURE__ */ jsx("img", {
|
|
112
|
+
alt: "",
|
|
113
|
+
src: new URL("../assets/think-browser-host.png", import.meta.url).href
|
|
114
|
+
}), disclosure = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
115
|
+
/* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("strong", { children: "You're in control." }), " This plugin is limited to the account and permissions you approve, and you can disconnect it at any time."] }),
|
|
116
|
+
/* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("strong", { children: "Plugins may introduce elevated risk." }), " Only connect tools you trust. A compromised plugin could use its access to read or change data in the connected service."] }),
|
|
117
|
+
/* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("strong", { children: "Data shared with this plugin." }), " Your AI may send relevant context from your request so the plugin can respond. Review the provider's terms and privacy policy before connecting."] })
|
|
118
|
+
] }), onConnect, onDisconnect, onOpenChange }) {
|
|
119
|
+
const popupRef = React.useRef(null);
|
|
120
|
+
const projection = server ? getServerProjection(server, mcp) : null;
|
|
121
|
+
const title = server ? getDialogTitle(server.name, projection?.kind, brandName) : "Plugin details";
|
|
122
|
+
const description = details?.longDescription ?? server?.description;
|
|
123
|
+
return /* @__PURE__ */ jsx(Dialog.Root, {
|
|
124
|
+
open: server !== null,
|
|
125
|
+
onOpenChange,
|
|
126
|
+
children: /* @__PURE__ */ jsxs(Dialog.Portal, { children: [/* @__PURE__ */ jsx(Dialog.Backdrop, {}), /* @__PURE__ */ jsx(Dialog.Viewport, { children: /* @__PURE__ */ jsx(Dialog.Popup, {
|
|
127
|
+
ref: popupRef,
|
|
128
|
+
className: "mcp-plugin-details",
|
|
129
|
+
initialFocus: popupRef,
|
|
130
|
+
size: "md",
|
|
131
|
+
children: server ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
|
|
132
|
+
className: "mcp-plugin-details__hero",
|
|
133
|
+
"data-theme": "light",
|
|
134
|
+
children: [
|
|
135
|
+
/* @__PURE__ */ jsx(Dialog.Close, {
|
|
136
|
+
render: /* @__PURE__ */ jsx(Button, {
|
|
137
|
+
"aria-label": "Close",
|
|
138
|
+
color: "neutral",
|
|
139
|
+
iconOnly: true,
|
|
140
|
+
size: "md",
|
|
141
|
+
variant: "ghost"
|
|
142
|
+
}),
|
|
143
|
+
children: /* @__PURE__ */ jsx(XIcon, {})
|
|
144
|
+
}),
|
|
145
|
+
/* @__PURE__ */ jsxs("div", {
|
|
146
|
+
className: "mcp-plugin-details__identity",
|
|
147
|
+
"aria-hidden": "true",
|
|
148
|
+
children: [
|
|
149
|
+
/* @__PURE__ */ jsx(McpPluginAvatar, {
|
|
150
|
+
server,
|
|
151
|
+
size: "xl",
|
|
152
|
+
variant: "surface"
|
|
153
|
+
}),
|
|
154
|
+
/* @__PURE__ */ jsx(Separator, { orientation: "vertical" }),
|
|
155
|
+
/* @__PURE__ */ jsx(AppIcon.Root, {
|
|
156
|
+
size: "xl",
|
|
157
|
+
variant: "contrast",
|
|
158
|
+
children: brandLogo
|
|
159
|
+
})
|
|
160
|
+
]
|
|
161
|
+
}),
|
|
162
|
+
/* @__PURE__ */ jsxs("div", {
|
|
163
|
+
className: "mcp-plugin-details__title-copy",
|
|
164
|
+
children: [
|
|
165
|
+
/* @__PURE__ */ jsx(Dialog.Title, {
|
|
166
|
+
className: "mcp-plugin-details__title",
|
|
167
|
+
children: title
|
|
168
|
+
}),
|
|
169
|
+
projection && projection.kind !== "available" ? /* @__PURE__ */ jsx("p", {
|
|
170
|
+
className: "mcp-plugin-details__state",
|
|
171
|
+
children: projection.statusLabel
|
|
172
|
+
}) : null,
|
|
173
|
+
/* @__PURE__ */ jsx(Dialog.Description, {
|
|
174
|
+
className: "mcp-plugin-details__description",
|
|
175
|
+
children: description ?? `Use ${server.name} with your AI.`
|
|
176
|
+
})
|
|
177
|
+
]
|
|
178
|
+
}),
|
|
179
|
+
/* @__PURE__ */ jsx(McpPluginDialogActions, {
|
|
180
|
+
projection,
|
|
181
|
+
server,
|
|
182
|
+
onConnect,
|
|
183
|
+
onDisconnect
|
|
184
|
+
}, `${server.id}:${server.url}`)
|
|
185
|
+
]
|
|
186
|
+
}), disclosure ? /* @__PURE__ */ jsx("div", {
|
|
187
|
+
className: "mcp-plugin-details__disclosure",
|
|
188
|
+
children: disclosure
|
|
189
|
+
}) : null] }) : null
|
|
190
|
+
}) })] })
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
function McpPluginCard({ server, details, mcp, onSelect }) {
|
|
194
|
+
const projection = getServerProjection(server, mcp);
|
|
195
|
+
return /* @__PURE__ */ jsxs("article", {
|
|
196
|
+
className: "mcp-plugin-catalog__card",
|
|
197
|
+
children: [/* @__PURE__ */ jsxs(Button, {
|
|
198
|
+
"aria-label": `View ${server.name} details. ${projection.statusLabel}.`,
|
|
199
|
+
className: "mcp-plugin-catalog__card-main",
|
|
200
|
+
color: "neutral",
|
|
201
|
+
size: "xl",
|
|
202
|
+
variant: "ghost",
|
|
203
|
+
onClick: onSelect,
|
|
204
|
+
children: [/* @__PURE__ */ jsx(McpPluginAvatar, { server }), /* @__PURE__ */ jsxs("span", {
|
|
205
|
+
className: "mcp-plugin-catalog__card-copy",
|
|
206
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
207
|
+
className: "mcp-plugin-catalog__card-name sigvelo-truncate",
|
|
208
|
+
children: server.name
|
|
209
|
+
}), server.description ? /* @__PURE__ */ jsx("span", {
|
|
210
|
+
className: "mcp-plugin-catalog__card-description sigvelo-truncate",
|
|
211
|
+
children: server.description
|
|
212
|
+
}) : details?.developerName ? /* @__PURE__ */ jsxs("span", {
|
|
213
|
+
className: "mcp-plugin-catalog__card-description sigvelo-truncate",
|
|
214
|
+
children: ["By ", details.developerName]
|
|
215
|
+
}) : null]
|
|
216
|
+
})]
|
|
217
|
+
}), /* @__PURE__ */ jsx(IconButton, {
|
|
218
|
+
color: "neutral",
|
|
219
|
+
label: projection.kind === "connected" ? `More actions for ${server.name}` : `View ${server.name} connection options`,
|
|
220
|
+
size: "sm",
|
|
221
|
+
variant: "ghost",
|
|
222
|
+
onClick: onSelect,
|
|
223
|
+
children: projection.kind === "connecting" ? /* @__PURE__ */ jsx(SpinnerIcon, {}) : projection.kind === "connected" ? /* @__PURE__ */ jsx(EllipsisIcon, {}) : /* @__PURE__ */ jsx(PlusIcon, {})
|
|
224
|
+
})]
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
function McpPluginAvatar({ server, size = "lg", variant }) {
|
|
228
|
+
const src = getMcpServerIconSrc(server);
|
|
229
|
+
return /* @__PURE__ */ jsxs(AppIcon.Root, {
|
|
230
|
+
size,
|
|
231
|
+
variant,
|
|
232
|
+
"aria-hidden": "true",
|
|
233
|
+
children: [src ? /* @__PURE__ */ jsx(AppIcon.Image, {
|
|
234
|
+
alt: "",
|
|
235
|
+
fit: "contain",
|
|
236
|
+
src
|
|
237
|
+
}, src) : null, /* @__PURE__ */ jsx(AppIcon.Fallback, { children: server.name.slice(0, 1) })]
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
function McpPluginDialogActions({ projection, server, onConnect, onDisconnect }) {
|
|
241
|
+
const [action, setAction] = React.useState({ pending: false });
|
|
242
|
+
if (!projection) return null;
|
|
243
|
+
const disconnect = projection.kind === "connected";
|
|
244
|
+
const connectedServerId = projection.serverId;
|
|
245
|
+
const callback = disconnect ? connectedServerId && onDisconnect ? () => onDisconnect(connectedServerId) : void 0 : onConnect ? () => onConnect(server) : void 0;
|
|
246
|
+
const actionLabel = action.pending ? disconnect ? "Disconnecting" : "Connecting" : disconnect ? onDisconnect ? "Disconnect" : "Connected" : projection.kind === "connecting" ? "Connecting" : projection.kind === "reconnect" ? `Reconnect ${server.name}` : `Connect ${server.name}`;
|
|
247
|
+
const disabled = action.pending || projection.kind === "connecting" || !callback;
|
|
248
|
+
async function runAction() {
|
|
249
|
+
if (!callback || disabled) return;
|
|
250
|
+
setAction({ pending: true });
|
|
251
|
+
try {
|
|
252
|
+
await callback();
|
|
253
|
+
setAction({ pending: false });
|
|
254
|
+
} catch (error) {
|
|
255
|
+
setAction({
|
|
256
|
+
pending: false,
|
|
257
|
+
error: error instanceof Error ? error.message : String(error)
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [action.error ? /* @__PURE__ */ jsxs(AgentAttention, {
|
|
262
|
+
role: "alert",
|
|
263
|
+
tone: "warning",
|
|
264
|
+
children: [/* @__PURE__ */ jsx(AgentAttentionHeader, {
|
|
265
|
+
icon: /* @__PURE__ */ jsx(WarningIcon, {}),
|
|
266
|
+
title: "Connection failed"
|
|
267
|
+
}), /* @__PURE__ */ jsx(AgentAttentionBody, { children: /* @__PURE__ */ jsx("p", { children: action.error }) })]
|
|
268
|
+
}) : null, /* @__PURE__ */ jsx(Dialog.Footer, {
|
|
269
|
+
className: "mcp-plugin-details__footer",
|
|
270
|
+
children: /* @__PURE__ */ jsxs(Button, {
|
|
271
|
+
"aria-busy": action.pending || void 0,
|
|
272
|
+
color: "neutral",
|
|
273
|
+
disabled,
|
|
274
|
+
size: "xl",
|
|
275
|
+
variant: "surface",
|
|
276
|
+
onClick: () => void runAction(),
|
|
277
|
+
children: [
|
|
278
|
+
action.pending ? /* @__PURE__ */ jsx(SpinnerIcon, { size: 14 }) : null,
|
|
279
|
+
actionLabel,
|
|
280
|
+
!action.pending && !disconnect ? /* @__PURE__ */ jsx(ArrowUpRightIcon, {}) : null
|
|
281
|
+
]
|
|
282
|
+
})
|
|
283
|
+
})] });
|
|
284
|
+
}
|
|
285
|
+
function getServerProjection(server, mcp) {
|
|
286
|
+
const entry = getMcpServerEntry(server, mcp);
|
|
287
|
+
if (!entry) return {
|
|
288
|
+
kind: "available",
|
|
289
|
+
statusLabel: "Available"
|
|
290
|
+
};
|
|
291
|
+
const state = getMcpServerRuntimeState(entry[1]);
|
|
292
|
+
if (state === "ready") return {
|
|
293
|
+
kind: "connected",
|
|
294
|
+
serverId: entry[0],
|
|
295
|
+
statusLabel: "Connected"
|
|
296
|
+
};
|
|
297
|
+
if (state === "connecting" || state === "discovering" || state === "connected" && !entry[1].error) return {
|
|
298
|
+
kind: "connecting",
|
|
299
|
+
serverId: entry[0],
|
|
300
|
+
statusLabel: "Connecting"
|
|
301
|
+
};
|
|
302
|
+
return {
|
|
303
|
+
kind: "reconnect",
|
|
304
|
+
serverId: entry[0],
|
|
305
|
+
statusLabel: "Needs attention"
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
function getDialogTitle(name, kind, brandName) {
|
|
309
|
+
if (kind === "connected") return name;
|
|
310
|
+
if (kind === "connecting") return `Connecting ${name}`;
|
|
311
|
+
return `Add ${name} to ${brandName}`;
|
|
312
|
+
}
|
|
313
|
+
function filterServers(servers, detailsByServerId, query) {
|
|
314
|
+
const normalizedQuery = normalizeSearchText(query);
|
|
315
|
+
if (!normalizedQuery) return [...servers];
|
|
316
|
+
return servers.filter((server) => {
|
|
317
|
+
const details = detailsByServerId?.[server.id];
|
|
318
|
+
return normalizeSearchText([
|
|
319
|
+
server.name,
|
|
320
|
+
server.description,
|
|
321
|
+
server.category,
|
|
322
|
+
details?.developerName,
|
|
323
|
+
details?.marketplaceName,
|
|
324
|
+
details?.longDescription,
|
|
325
|
+
...details?.capabilities ?? [],
|
|
326
|
+
...details?.skills ?? []
|
|
327
|
+
].filter(Boolean).join(" ")).includes(normalizedQuery);
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
function normalizeSearchText(value) {
|
|
331
|
+
return value.toLocaleLowerCase().replace(/[^a-z0-9]+/g, " ").trim();
|
|
332
|
+
}
|
|
333
|
+
function groupServers(servers, featuredServerIds, query) {
|
|
334
|
+
if (normalizeSearchText(query)) return servers.length ? [{
|
|
335
|
+
id: "mcp-plugin-results",
|
|
336
|
+
label: "Results",
|
|
337
|
+
servers: [...servers]
|
|
338
|
+
}] : [];
|
|
339
|
+
const remaining = new Map(servers.map((server) => [server.id, server]));
|
|
340
|
+
const featured = featuredServerIds.flatMap((id) => {
|
|
341
|
+
const server = remaining.get(id);
|
|
342
|
+
if (!server) return [];
|
|
343
|
+
remaining.delete(id);
|
|
344
|
+
return [server];
|
|
345
|
+
});
|
|
346
|
+
const categories = /* @__PURE__ */ new Map();
|
|
347
|
+
for (const server of remaining.values()) {
|
|
348
|
+
const category = server.category === "Auto" || server.category === "Manual" ? "All plugins" : server.category ?? "Other";
|
|
349
|
+
const categoryServers = categories.get(category) ?? [];
|
|
350
|
+
categoryServers.push(server);
|
|
351
|
+
categories.set(category, categoryServers);
|
|
352
|
+
}
|
|
353
|
+
return [...featured.length ? [{
|
|
354
|
+
id: "mcp-plugin-featured",
|
|
355
|
+
label: "Featured",
|
|
356
|
+
servers: featured
|
|
357
|
+
}] : [], ...Array.from(categories, ([category, categoryServers]) => ({
|
|
358
|
+
id: `mcp-plugin-${normalizeSearchText(category).replaceAll(" ", "-") || "other"}`,
|
|
359
|
+
label: category,
|
|
360
|
+
servers: categoryServers
|
|
361
|
+
}))];
|
|
362
|
+
}
|
|
363
|
+
//#endregion
|
|
364
|
+
export { McpPluginCatalog, McpPluginDetailsDialog };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as MenuItemProps, t as Menu } from "../Menu-L6MZm-7N.js";
|
|
2
|
-
import { McpServerCard } from "../
|
|
2
|
+
import { o as McpServerCard } from "../mcp-server-catalog-DycejaJ5.js";
|
|
3
3
|
import { McpConnectorFormProps } from "./AgentConnection.js";
|
|
4
|
-
import { DialogProps } from "
|
|
4
|
+
import { l as DialogProps } from "../Dialog-BD8NBKaE.js";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import { MCPServersState } from "agents";
|
|
7
7
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../class-names-BiMDVpUo.js";
|
|
2
|
-
import { K as SpinnerIcon, N as MinusIcon, Q as WarningIcon, u as CheckIcon } from "../icons-DyOM0EJs.js";
|
|
3
2
|
import { buttonVariants } from "./Button.js";
|
|
3
|
+
import { $ as WarningIcon, P as MinusIcon, d as CheckIcon, q as SpinnerIcon } from "../icons-ua6f_GH3.js";
|
|
4
|
+
import { AppIcon } from "./AppIcon.js";
|
|
4
5
|
import { Dialog } from "./Dialog.js";
|
|
5
6
|
import { Menu } from "./Menu.js";
|
|
6
7
|
import { PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuTrigger } from "./PromptInput.js";
|
|
7
8
|
import { getMcpServerEntry, getMcpServerIconSrc, getMcpServerRuntimeState } from "../utils/mcp-server-catalog.js";
|
|
8
9
|
import { McpConnectorForm } from "./AgentConnection.js";
|
|
9
|
-
import { Avatar } from "./Avatar.js";
|
|
10
10
|
import * as React from "react";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
//#region src/components/McpServerPicker.tsx
|
|
@@ -257,20 +257,14 @@ function groupPickerRows(rows) {
|
|
|
257
257
|
}
|
|
258
258
|
function McpServerIcon({ server }) {
|
|
259
259
|
const src = getMcpServerIconSrc(server);
|
|
260
|
-
return /* @__PURE__ */ jsxs(
|
|
261
|
-
|
|
260
|
+
return /* @__PURE__ */ jsxs(AppIcon.Root, {
|
|
261
|
+
size: "xs",
|
|
262
262
|
"aria-hidden": "true",
|
|
263
|
-
children: [src ? /* @__PURE__ */ jsx(
|
|
263
|
+
children: [src ? /* @__PURE__ */ jsx(AppIcon.Image, {
|
|
264
264
|
alt: "",
|
|
265
|
-
|
|
266
|
-
decoding: "async",
|
|
267
|
-
loading: "lazy",
|
|
268
|
-
referrerPolicy: "no-referrer",
|
|
265
|
+
fit: "contain",
|
|
269
266
|
src
|
|
270
|
-
}, src) : null, /* @__PURE__ */ jsx(
|
|
271
|
-
className: "mcp-server-picker__avatar-fallback",
|
|
272
|
-
children: server.name.slice(0, 1)
|
|
273
|
-
})]
|
|
267
|
+
}, src) : null, /* @__PURE__ */ jsx(AppIcon.Fallback, { children: server.name.slice(0, 1) })]
|
|
274
268
|
});
|
|
275
269
|
}
|
|
276
270
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { V as PlayIcon } from "../icons-ua6f_GH3.js";
|
|
3
3
|
import { n as mergeRefs } from "../merge-refs-DF_7w2x_.js";
|
|
4
4
|
import { Card } from "./Card.js";
|
|
5
5
|
import { t as motionIsReduced } from "../view-transitions-DyUP0lSg.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as mergeBaseClassName, t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
-
import { _ as DotIcon, u as CheckIcon } from "../icons-DyOM0EJs.js";
|
|
3
2
|
import { buttonVariants } from "./Button.js";
|
|
3
|
+
import { d as CheckIcon, v as DotIcon } from "../icons-ua6f_GH3.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { Menu } from "@base-ui/react/menu";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as IconButtonProps } from "../IconButton-CFKhu6OR.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { FileUIPart, UIMessage } from "ai";
|
|
4
4
|
import { StreamdownProps } from "streamdown";
|
|
@@ -89,11 +89,7 @@ declare function MessageActions({
|
|
|
89
89
|
}: MessageActionsProps & {
|
|
90
90
|
ref?: React.Ref<HTMLDivElement>;
|
|
91
91
|
}): React.JSX.Element;
|
|
92
|
-
interface MessageActionProps extends Omit<
|
|
93
|
-
/** Accessible name for the button. Required when no visible text children. */
|
|
94
|
-
label?: string;
|
|
95
|
-
/** Optional tooltip text shown on hover/focus. Defaults to {@link label}. */
|
|
96
|
-
tooltip?: string;
|
|
92
|
+
interface MessageActionProps extends Omit<IconButtonProps, "children"> {
|
|
97
93
|
children?: React.ReactNode;
|
|
98
94
|
}
|
|
99
95
|
/**
|
|
@@ -180,7 +176,7 @@ declare function MessageBranchSelector({
|
|
|
180
176
|
}: MessageBranchSelectorProps & {
|
|
181
177
|
ref?: React.Ref<HTMLDivElement>;
|
|
182
178
|
}): React.JSX.Element | null;
|
|
183
|
-
interface MessageBranchPreviousProps extends Omit<
|
|
179
|
+
interface MessageBranchPreviousProps extends Omit<IconButtonProps, "children" | "label"> {
|
|
184
180
|
label?: string;
|
|
185
181
|
children?: React.ReactNode;
|
|
186
182
|
}
|
|
@@ -198,7 +194,7 @@ declare function MessageBranchPrevious({
|
|
|
198
194
|
}: MessageBranchPreviousProps & {
|
|
199
195
|
ref?: React.Ref<HTMLButtonElement>;
|
|
200
196
|
}): React.JSX.Element;
|
|
201
|
-
interface MessageBranchNextProps extends Omit<
|
|
197
|
+
interface MessageBranchNextProps extends Omit<IconButtonProps, "children" | "label"> {
|
|
202
198
|
label?: string;
|
|
203
199
|
children?: React.ReactNode;
|
|
204
200
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MessageBranch, c as MessageBranchPage, d as MessageContent, f as MessageResponse, i as MessageAttachment, l as MessageBranchPrevious, n as MessageAction, o as MessageBranchContent, p as MessageToolbar, r as MessageActions, s as MessageBranchNext, t as Message, u as MessageBranchSelector } from "../Message-
|
|
1
|
+
import { a as MessageBranch, c as MessageBranchPage, d as MessageContent, f as MessageResponse, i as MessageAttachment, l as MessageBranchPrevious, n as MessageAction, o as MessageBranchContent, p as MessageToolbar, r as MessageActions, s as MessageBranchNext, t as Message, u as MessageBranchSelector } from "../Message-_-bEYLAO.js";
|
|
2
2
|
export { Message, MessageAction, MessageActions, MessageAttachment, MessageBranch, MessageBranchContent, MessageBranchNext, MessageBranchPage, MessageBranchPrevious, MessageBranchSelector, MessageContent, MessageResponse, MessageToolbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as ButtonProps } from "../Button-
|
|
1
|
+
import { r as ButtonProps } from "../Button-SBIz6Lqi.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { MessageScroller as MessageScroller$1, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from "@shadcn/react/message-scroller";
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
-
import { n as ArrowDownIcon } from "../icons-DyOM0EJs.js";
|
|
3
2
|
import { Button } from "./Button.js";
|
|
3
|
+
import { n as ArrowDownIcon } from "../icons-ua6f_GH3.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { MessageScroller as MessageScroller$1, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from "@shadcn/react/message-scroller";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as ButtonProps } from "../Button-
|
|
2
|
-
import { DialogProps } from "
|
|
1
|
+
import { r as ButtonProps } from "../Button-SBIz6Lqi.js";
|
|
2
|
+
import { l as DialogProps } from "../Dialog-BD8NBKaE.js";
|
|
3
3
|
import { SeparatorProps } from "./Separator.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import Cloudflare from "cloudflare";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as getCloudflareModelProvider, a as ModelSelectorEmpty, b as normalizeCloudflareModelSelectorModels, c as ModelSelectorItem, d as ModelSelectorLogoGroup, f as ModelSelectorName, g as formatCloudflareModelProvider, h as ModelSelectorTrigger, i as ModelSelectorDialog, l as ModelSelectorList, m as ModelSelectorSource, n as ModelSelector, o as ModelSelectorGroup, p as ModelSelectorSeparator, r as ModelSelectorContent, s as ModelSelectorInput, t as CloudflareModelSelector, u as ModelSelectorLogo, v as isCloudflareRunnableModelId, x as readCloudflareModelId, y as listCloudflareModelSelectorOptions } from "../ModelSelector-
|
|
1
|
+
import { _ as getCloudflareModelProvider, a as ModelSelectorEmpty, b as normalizeCloudflareModelSelectorModels, c as ModelSelectorItem, d as ModelSelectorLogoGroup, f as ModelSelectorName, g as formatCloudflareModelProvider, h as ModelSelectorTrigger, i as ModelSelectorDialog, l as ModelSelectorList, m as ModelSelectorSource, n as ModelSelector, o as ModelSelectorGroup, p as ModelSelectorSeparator, r as ModelSelectorContent, s as ModelSelectorInput, t as CloudflareModelSelector, u as ModelSelectorLogo, v as isCloudflareRunnableModelId, x as readCloudflareModelId, y as listCloudflareModelSelectorOptions } from "../ModelSelector-Brvj9Cab.js";
|
|
2
2
|
export { CloudflareModelSelector, ModelSelector, ModelSelectorContent, ModelSelectorDialog, ModelSelectorEmpty, ModelSelectorGroup, ModelSelectorInput, ModelSelectorItem, ModelSelectorList, ModelSelectorLogo, ModelSelectorLogoGroup, ModelSelectorName, ModelSelectorSeparator, ModelSelectorSource, ModelSelectorTrigger, formatCloudflareModelProvider, getCloudflareModelProvider, isCloudflareRunnableModelId, listCloudflareModelSelectorOptions, normalizeCloudflareModelSelectorModels, readCloudflareModelId };
|
package/dist/components/Plan.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { d as CheckIcon, i as ArrowRightIcon, v as DotIcon } from "../icons-ua6f_GH3.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/Plan.tsx
|
|
@@ -10,7 +10,7 @@ interface PricingPlanCardProps {
|
|
|
10
10
|
/** Additional class name for placement in a consuming layout. */
|
|
11
11
|
className?: string;
|
|
12
12
|
}
|
|
13
|
-
/** A single plan card
|
|
13
|
+
/** A single plan card composed from the shared card and control primitives. */
|
|
14
14
|
declare function PricingPlanCard({
|
|
15
15
|
plan,
|
|
16
16
|
billingPeriod,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
-
import { D as InfoIcon, N as MinusIcon, u as CheckIcon } from "../icons-DyOM0EJs.js";
|
|
3
2
|
import { Button } from "./Button.js";
|
|
4
|
-
import {
|
|
3
|
+
import { O as InfoIcon, P as MinusIcon, d as CheckIcon } from "../icons-ua6f_GH3.js";
|
|
4
|
+
import { IconButton } from "./IconButton.js";
|
|
5
5
|
import { Separator } from "./Separator.js";
|
|
6
6
|
import { Badge } from "./Badge.js";
|
|
7
7
|
import { Card } from "./Card.js";
|
|
@@ -15,7 +15,7 @@ function getPlanActionLabel(plan, action) {
|
|
|
15
15
|
if (action === "switch") return "Switch Plan";
|
|
16
16
|
return plan.cta ?? "Get Started";
|
|
17
17
|
}
|
|
18
|
-
/** A single plan card
|
|
18
|
+
/** A single plan card composed from the shared card and control primitives. */
|
|
19
19
|
function PricingPlanCard({ plan, billingPeriod, action = "select", onSelect, className }) {
|
|
20
20
|
const price = getPlanPrice(plan, billingPeriod);
|
|
21
21
|
const yearlySavings = getPlanYearlySavings(plan);
|
|
@@ -90,16 +90,14 @@ function PricingPlanCard({ plan, billingPeriod, action = "select", onSelect, cla
|
|
|
90
90
|
]
|
|
91
91
|
}) : null]
|
|
92
92
|
}),
|
|
93
|
-
feature.tooltip ? /* @__PURE__ */
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"aria-label": `More information about ${feature.name}`
|
|
100
|
-
}),
|
|
93
|
+
feature.tooltip ? /* @__PURE__ */ jsx(IconButton, {
|
|
94
|
+
label: `More information about ${feature.name}`,
|
|
95
|
+
tooltip: feature.tooltip,
|
|
96
|
+
variant: "ghost",
|
|
97
|
+
color: "neutral",
|
|
98
|
+
size: "sm",
|
|
101
99
|
children: /* @__PURE__ */ jsx(InfoIcon, { size: 14 })
|
|
102
|
-
})
|
|
100
|
+
}) : null
|
|
103
101
|
]
|
|
104
102
|
}, feature.name))
|
|
105
103
|
})
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as PromptInputDictationProps, A as PromptInputCommandDefinition, At as PromptInputTabProps, B as PromptInputCommandItemProps, Bt as
|
|
2
|
-
export { AttachmentsContext, PermissionMode, PromptInput, PromptInputActionAddAttachments, PromptInputActionAddAttachmentsProps, PromptInputActionAddScreenshot, PromptInputActionAddScreenshotProps, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuContentProps, PromptInputActionMenuItem, PromptInputActionMenuItemProps, PromptInputActionMenuProps, PromptInputActionMenuTrigger, PromptInputActionMenuTriggerProps, PromptInputApproval, PromptInputApprovalProps, PromptInputAttachment, PromptInputAttachmentProps, PromptInputAttachments, PromptInputAttachmentsProps, PromptInputBody, PromptInputBodyProps, PromptInputButton, PromptInputButtonProps, PromptInputButtonTooltip, PromptInputCommand, PromptInputCommandComposer, PromptInputCommandComposerProps, PromptInputCommandDefinition, PromptInputCommandEmpty, PromptInputCommandEmptyProps, PromptInputCommandGroup, PromptInputCommandGroupLabel, PromptInputCommandGroupLabelProps, PromptInputCommandGroupProps, PromptInputCommandInput, PromptInputCommandInputProps, PromptInputCommandItem, PromptInputCommandItemProps, PromptInputCommandList, PromptInputCommandListProps, PromptInputCommandProps, PromptInputCommandSeparator, PromptInputCommandSeparatorProps, PromptInputCommandTrigger, PromptInputContextAction, PromptInputContextItem, PromptInputContextSelector, PromptInputContextSelectorProps, PromptInputControllerProps, PromptInputDictation, PromptInputDictationProps, PromptInputFooter, PromptInputFooterProps, PromptInputHeader, PromptInputHeaderProps, PromptInputHoverCard, PromptInputHoverCardContent, PromptInputHoverCardContentProps, PromptInputHoverCardProps, PromptInputHoverCardTrigger, PromptInputHoverCardTriggerProps, PromptInputMessage, PromptInputPermissionSelector, PromptInputPermissionSelectorProps, PromptInputProps, PromptInputProvider, PromptInputProviderProps, PromptInputReference, PromptInputReferences, PromptInputReferencesProps, PromptInputSelect, PromptInputSelectProps, PromptInputSubmit, PromptInputSubmitProps, PromptInputTab, PromptInputTabBody, PromptInputTabBodyProps, PromptInputTabItem, PromptInputTabItemProps, PromptInputTabLabel, PromptInputTabLabelProps, PromptInputTabProps, PromptInputTabsList, PromptInputTabsListProps, PromptInputTextarea, PromptInputTextareaProps, PromptInputTools, PromptInputToolsProps, PromptInputTooltipConfig, TextInputContext, TooltipSide, getApprovalRequestId, getApprovalStateKey, getPendingToolApprovals, usePromptInputAttachments, usePromptInputController, useProviderAttachments };
|
|
1
|
+
import { $ as PromptInputDictationProps, A as PromptInputCommandDefinition, At as PromptInputTabProps, B as PromptInputCommandItemProps, Bt as TextInputContext, C as PromptInputBodyProps, Ct as PromptInputTab, D as PromptInputCommand, Dt as PromptInputTabItemProps, E as PromptInputButtonTooltip, Et as PromptInputTabItem, F as PromptInputCommandGroupLabelProps, Ft as PromptInputTools, G as PromptInputCommandSeparatorProps, Gt as usePromptInputAttachments, H as PromptInputCommandListProps, Ht as getApprovalRequestId, I as PromptInputCommandGroupProps, It as PromptInputToolsProps, J as PromptInputContextItem, K as PromptInputCommandTrigger, Kt as usePromptInputController, L as PromptInputCommandInput, Lt as PromptInputTooltipConfig, M as PromptInputCommandEmptyProps, Mt as PromptInputTabsListProps, N as PromptInputCommandGroup, Nt as PromptInputTextarea, O as PromptInputCommandComposer, Ot as PromptInputTabLabel, P as PromptInputCommandGroupLabel, Pt as PromptInputTextareaProps, Q as PromptInputDictation, R as PromptInputCommandInputProps, Rt as PromptInputTray, S as PromptInputBody, St as PromptInputSubmitProps, T as PromptInputButtonProps, Tt as PromptInputTabBodyProps, U as PromptInputCommandProps, Ut as getApprovalStateKey, V as PromptInputCommandList, Vt as TooltipSide, W as PromptInputCommandSeparator, Wt as getPendingToolApprovals, X as PromptInputContextSelectorProps, Y as PromptInputContextSelector, Z as PromptInputControllerProps, _ as PromptInputApprovalProps, _t as PromptInputReferences, a as PromptInputActionAddAttachmentsProps, at as PromptInputHoverCardContent, b as PromptInputAttachments, bt as PromptInputSelectProps, c as PromptInputActionMenu, ct as PromptInputHoverCardTrigger, d as PromptInputActionMenuItem, dt as PromptInputPermissionSelector, et as PromptInputFooter, f as PromptInputActionMenuItemProps, ft as PromptInputPermissionSelectorProps, g as PromptInputApproval, gt as PromptInputReference, h as PromptInputActionMenuTriggerProps, ht as PromptInputProviderProps, i as PromptInputActionAddAttachments, it as PromptInputHoverCard, j as PromptInputCommandEmpty, jt as PromptInputTabsList, k as PromptInputCommandComposerProps, kt as PromptInputTabLabelProps, l as PromptInputActionMenuContent, lt as PromptInputHoverCardTriggerProps, m as PromptInputActionMenuTrigger, mt as PromptInputProvider, n as PermissionMode, nt as PromptInputHeader, o as PromptInputActionAddScreenshot, ot as PromptInputHoverCardContentProps, p as PromptInputActionMenuProps, pt as PromptInputProps, q as PromptInputContextAction, qt as useProviderAttachments, r as PromptInput, rt as PromptInputHeaderProps, s as PromptInputActionAddScreenshotProps, st as PromptInputHoverCardProps, t as AttachmentsContext, tt as PromptInputFooterProps, u as PromptInputActionMenuContentProps, ut as PromptInputMessage, v as PromptInputAttachment, vt as PromptInputReferencesProps, w as PromptInputButton, wt as PromptInputTabBody, x as PromptInputAttachmentsProps, xt as PromptInputSubmit, y as PromptInputAttachmentProps, yt as PromptInputSelect, z as PromptInputCommandItem, zt as PromptInputTrayProps } from "../PromptInput-BjoPWaaG.js";
|
|
2
|
+
export { AttachmentsContext, PermissionMode, PromptInput, PromptInputActionAddAttachments, PromptInputActionAddAttachmentsProps, PromptInputActionAddScreenshot, PromptInputActionAddScreenshotProps, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuContentProps, PromptInputActionMenuItem, PromptInputActionMenuItemProps, PromptInputActionMenuProps, PromptInputActionMenuTrigger, PromptInputActionMenuTriggerProps, PromptInputApproval, PromptInputApprovalProps, PromptInputAttachment, PromptInputAttachmentProps, PromptInputAttachments, PromptInputAttachmentsProps, PromptInputBody, PromptInputBodyProps, PromptInputButton, PromptInputButtonProps, PromptInputButtonTooltip, PromptInputCommand, PromptInputCommandComposer, PromptInputCommandComposerProps, PromptInputCommandDefinition, PromptInputCommandEmpty, PromptInputCommandEmptyProps, PromptInputCommandGroup, PromptInputCommandGroupLabel, PromptInputCommandGroupLabelProps, PromptInputCommandGroupProps, PromptInputCommandInput, PromptInputCommandInputProps, PromptInputCommandItem, PromptInputCommandItemProps, PromptInputCommandList, PromptInputCommandListProps, PromptInputCommandProps, PromptInputCommandSeparator, PromptInputCommandSeparatorProps, PromptInputCommandTrigger, PromptInputContextAction, PromptInputContextItem, PromptInputContextSelector, PromptInputContextSelectorProps, PromptInputControllerProps, PromptInputDictation, PromptInputDictationProps, PromptInputFooter, PromptInputFooterProps, PromptInputHeader, PromptInputHeaderProps, PromptInputHoverCard, PromptInputHoverCardContent, PromptInputHoverCardContentProps, PromptInputHoverCardProps, PromptInputHoverCardTrigger, PromptInputHoverCardTriggerProps, PromptInputMessage, PromptInputPermissionSelector, PromptInputPermissionSelectorProps, PromptInputProps, PromptInputProvider, PromptInputProviderProps, PromptInputReference, PromptInputReferences, PromptInputReferencesProps, PromptInputSelect, PromptInputSelectProps, PromptInputSubmit, PromptInputSubmitProps, PromptInputTab, PromptInputTabBody, PromptInputTabBodyProps, PromptInputTabItem, PromptInputTabItemProps, PromptInputTabLabel, PromptInputTabLabelProps, PromptInputTabProps, PromptInputTabsList, PromptInputTabsListProps, PromptInputTextarea, PromptInputTextareaProps, PromptInputTools, PromptInputToolsProps, PromptInputTooltipConfig, PromptInputTray, PromptInputTrayProps, TextInputContext, TooltipSide, getApprovalRequestId, getApprovalStateKey, getPendingToolApprovals, usePromptInputAttachments, usePromptInputController, useProviderAttachments };
|