@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
-
import { K as SpinnerIcon, et as XIcon } from "../icons-DyOM0EJs.js";
|
|
3
2
|
import { Button } from "./Button.js";
|
|
3
|
+
import { q as SpinnerIcon, tt as XIcon } from "../icons-ua6f_GH3.js";
|
|
4
4
|
import { Tabs } from "./Tabs.js";
|
|
5
5
|
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
6
6
|
import { WebPreview, WebPreviewNavigation, WebPreviewNavigationButton, WebPreviewUrl } from "./WebPreview.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ButtonVariant, i as ButtonSize, n as ButtonColor, o as ButtonVariantsOptions, r as ButtonProps, s as buttonVariants, t as Button } from "../Button-
|
|
1
|
+
import { a as ButtonVariant, i as ButtonSize, n as ButtonColor, o as ButtonVariantsOptions, r as ButtonProps, s as buttonVariants, t as Button } from "../Button-SBIz6Lqi.js";
|
|
2
2
|
export { Button, ButtonColor, ButtonProps, ButtonSize, ButtonVariant, ButtonVariantsOptions, buttonVariants };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
2
|
import { Collapsible } from "./Collapsible.js";
|
|
3
|
-
import {
|
|
3
|
+
import { d as CheckIcon, m as ChevronRightIcon, q as SpinnerIcon, v as DotIcon } from "../icons-ua6f_GH3.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/ChainOfThought.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
-
import { K as SpinnerIcon } from "../icons-DyOM0EJs.js";
|
|
3
2
|
import { Button } from "./Button.js";
|
|
4
|
-
import {
|
|
3
|
+
import { q as SpinnerIcon } from "../icons-ua6f_GH3.js";
|
|
4
|
+
import { u as ModelSelectorLogo } from "../ModelSelector-Brvj9Cab.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/ChatGptSignInScreen.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { d as CheckIcon } from "../icons-ua6f_GH3.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
|
|
5
5
|
//#region src/components/Checkbox.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { s as BookmarkIcon } from "../icons-ua6f_GH3.js";
|
|
3
3
|
import { Marker, MarkerIcon } from "./Marker.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as CodeBlockLanguage, C as CodeBlockLanguageSelectorValueProps, D as TokenizedCode, E as CodeBlockTitleProps, O as highlightCode, S as CodeBlockLanguageSelectorValue, T as CodeBlockTitle, _ as CodeBlockLanguageSelectorItem, a as CodeBlockContainerProps, b as CodeBlockLanguageSelectorTrigger, c as CodeBlockCopyButton, d as CodeBlockFilenameProps, f as CodeBlockHeader, g as CodeBlockLanguageSelectorContentProps, h as CodeBlockLanguageSelectorContent, i as CodeBlockContainer, k as CODE_BLOCK_LANGUAGES, l as CodeBlockCopyButtonProps, m as CodeBlockLanguageSelector, n as CodeBlockActions, o as CodeBlockContent, p as CodeBlockHeaderProps, r as CodeBlockActionsProps, s as CodeBlockContentProps, t as CodeBlock, u as CodeBlockFilename, v as CodeBlockLanguageSelectorItemProps, w as CodeBlockProps, x as CodeBlockLanguageSelectorTriggerProps, y as CodeBlockLanguageSelectorProps } from "../CodeBlock-
|
|
1
|
+
import { A as CodeBlockLanguage, C as CodeBlockLanguageSelectorValueProps, D as TokenizedCode, E as CodeBlockTitleProps, O as highlightCode, S as CodeBlockLanguageSelectorValue, T as CodeBlockTitle, _ as CodeBlockLanguageSelectorItem, a as CodeBlockContainerProps, b as CodeBlockLanguageSelectorTrigger, c as CodeBlockCopyButton, d as CodeBlockFilenameProps, f as CodeBlockHeader, g as CodeBlockLanguageSelectorContentProps, h as CodeBlockLanguageSelectorContent, i as CodeBlockContainer, k as CODE_BLOCK_LANGUAGES, l as CodeBlockCopyButtonProps, m as CodeBlockLanguageSelector, n as CodeBlockActions, o as CodeBlockContent, p as CodeBlockHeaderProps, r as CodeBlockActionsProps, s as CodeBlockContentProps, t as CodeBlock, u as CodeBlockFilename, v as CodeBlockLanguageSelectorItemProps, w as CodeBlockProps, x as CodeBlockLanguageSelectorTriggerProps, y as CodeBlockLanguageSelectorProps } from "../CodeBlock-yMpGqScn.js";
|
|
2
2
|
export { CODE_BLOCK_LANGUAGES, CodeBlock, CodeBlockActions, CodeBlockActionsProps, CodeBlockContainer, CodeBlockContainerProps, CodeBlockContent, CodeBlockContentProps, CodeBlockCopyButton, CodeBlockCopyButtonProps, CodeBlockFilename, CodeBlockFilenameProps, CodeBlockHeader, CodeBlockHeaderProps, type CodeBlockLanguage, CodeBlockLanguageSelector, CodeBlockLanguageSelectorContent, CodeBlockLanguageSelectorContentProps, CodeBlockLanguageSelectorItem, CodeBlockLanguageSelectorItemProps, CodeBlockLanguageSelectorProps, CodeBlockLanguageSelectorTrigger, CodeBlockLanguageSelectorTriggerProps, CodeBlockLanguageSelectorValue, CodeBlockLanguageSelectorValueProps, CodeBlockProps, CodeBlockTitle, CodeBlockTitleProps, TokenizedCode, highlightCode };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CodeBlockCopyButton, c as CodeBlockLanguageSelector, d as CodeBlockLanguageSelectorTrigger, f as CodeBlockLanguageSelectorValue, h as CODE_BLOCK_LANGUAGES, i as CodeBlockContent, l as CodeBlockLanguageSelectorContent, m as highlightCode, n as CodeBlockActions, o as CodeBlockFilename, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock, u as CodeBlockLanguageSelectorItem } from "../CodeBlock-
|
|
1
|
+
import { a as CodeBlockCopyButton, c as CodeBlockLanguageSelector, d as CodeBlockLanguageSelectorTrigger, f as CodeBlockLanguageSelectorValue, h as CODE_BLOCK_LANGUAGES, i as CodeBlockContent, l as CodeBlockLanguageSelectorContent, m as highlightCode, n as CodeBlockActions, o as CodeBlockFilename, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock, u as CodeBlockLanguageSelectorItem } from "../CodeBlock-Cp67Njo3.js";
|
|
2
2
|
export { CODE_BLOCK_LANGUAGES, CodeBlock, CodeBlockActions, CodeBlockContainer, CodeBlockContent, CodeBlockCopyButton, CodeBlockFilename, CodeBlockHeader, CodeBlockLanguageSelector, CodeBlockLanguageSelectorContent, CodeBlockLanguageSelectorItem, CodeBlockLanguageSelectorTrigger, CodeBlockLanguageSelectorValue, CodeBlockTitle, highlightCode };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { W as RefreshIcon, d as CheckIcon, f as ChevronDownIcon, l as BrainIcon, m as ChevronRightIcon } from "../icons-ua6f_GH3.js";
|
|
3
3
|
import { Tooltip } from "./Tooltip.js";
|
|
4
4
|
import { i as titleCase } from "../format-S6uWyoSb.js";
|
|
5
5
|
import { Menu } from "./Menu.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Collapsible } from "../Collapsible-N64ASIQr.js";
|
|
2
|
-
import { t as CopyButtonProps } from "../copy-button-
|
|
2
|
+
import { t as CopyButtonProps } from "../copy-button-EBv_B9F6.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/Commit.d.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
2
|
import { Collapsible } from "./Collapsible.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as CopyButton } from "../copy-button-vo1paUSi.js";
|
|
5
|
-
import { Badge } from "./Badge.js";
|
|
3
|
+
import { C as FileIcon, m as ChevronRightIcon } from "../icons-ua6f_GH3.js";
|
|
6
4
|
import { Avatar } from "./Avatar.js";
|
|
5
|
+
import { t as CopyButton } from "../copy-button-TWq8nZhc.js";
|
|
6
|
+
import { Badge } from "./Badge.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/Commit.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName, t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { d as CheckIcon, v as DotIcon } from "../icons-ua6f_GH3.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { ContextMenu as ContextMenu$1 } from "@base-ui/react/context-menu";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as IconButtonProps } from "../IconButton-CFKhu6OR.js";
|
|
2
2
|
import { MessageScrollerButtonProps, MessageScrollerItemProps } from "./MessageScroller.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { UIMessage } from "ai";
|
|
@@ -104,7 +104,7 @@ declare function ConversationScrollButton({
|
|
|
104
104
|
* `### Role\n\n<text>` blocks joined by blank lines.
|
|
105
105
|
*/
|
|
106
106
|
declare function messagesToMarkdown(messages: ConversationMessage[], formatMessage?: (message: ConversationMessage, index: number) => string): string;
|
|
107
|
-
interface ConversationDownloadProps extends Omit<
|
|
107
|
+
interface ConversationDownloadProps extends Omit<IconButtonProps, "onClick" | "children" | "label"> {
|
|
108
108
|
messages: ConversationMessage[];
|
|
109
109
|
/** Filename for the downloaded Markdown file. */
|
|
110
110
|
filename?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
-
import { n as ArrowDownIcon,
|
|
3
|
-
import {
|
|
2
|
+
import { n as ArrowDownIcon, y as DownloadIcon } from "../icons-ua6f_GH3.js";
|
|
3
|
+
import { IconButton } from "./IconButton.js";
|
|
4
4
|
import { t as assignRef } from "../merge-refs-DF_7w2x_.js";
|
|
5
5
|
import { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport } from "./MessageScroller.js";
|
|
6
6
|
import * as React from "react";
|
|
@@ -136,15 +136,14 @@ function ConversationDownload({ className, messages, filename = "conversation.md
|
|
|
136
136
|
anchor.remove();
|
|
137
137
|
URL.revokeObjectURL(url);
|
|
138
138
|
};
|
|
139
|
-
return /* @__PURE__ */ jsx(
|
|
139
|
+
return /* @__PURE__ */ jsx(IconButton, {
|
|
140
140
|
ref,
|
|
141
141
|
type: "button",
|
|
142
|
+
label,
|
|
142
143
|
variant,
|
|
143
144
|
color,
|
|
144
145
|
size,
|
|
145
|
-
iconOnly: true,
|
|
146
146
|
className: cx("conversation__download-button", className),
|
|
147
|
-
"aria-label": label,
|
|
148
147
|
onClick: handleClick,
|
|
149
148
|
...props,
|
|
150
149
|
children: children ?? /* @__PURE__ */ jsx(DownloadIcon, {})
|
|
@@ -1,118 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
3
|
-
|
|
4
|
-
//#region src/components/Dialog.d.ts
|
|
5
|
-
interface DialogProps extends Dialog$1.Root.Props {}
|
|
6
|
-
interface DialogTriggerProps extends Dialog$1.Trigger.Props {}
|
|
7
|
-
interface DialogPortalProps extends Dialog$1.Portal.Props {}
|
|
8
|
-
interface DialogBackdropProps extends Dialog$1.Backdrop.Props {}
|
|
9
|
-
interface DialogViewportProps extends Dialog$1.Viewport.Props {}
|
|
10
|
-
interface DialogPopupProps extends Dialog$1.Popup.Props {
|
|
11
|
-
/**
|
|
12
|
-
* The size of the dialog.
|
|
13
|
-
* @default 'md'
|
|
14
|
-
*/
|
|
15
|
-
size?: "sm" | "md" | "lg" | "fullscreen";
|
|
16
|
-
}
|
|
17
|
-
interface DialogTitleProps extends Dialog$1.Title.Props {}
|
|
18
|
-
interface DialogDescriptionProps extends Dialog$1.Description.Props {}
|
|
19
|
-
interface DialogCloseProps extends Dialog$1.Close.Props {}
|
|
20
|
-
interface DialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
21
|
-
interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
22
|
-
/**
|
|
23
|
-
* A dialog component for modal interactions.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```tsx
|
|
27
|
-
* <Dialog.Root open={isOpen} onOpenChange={setIsOpen}>
|
|
28
|
-
* <Dialog.Trigger render={<Button />}>Open</Dialog.Trigger>
|
|
29
|
-
* <Dialog.Portal>
|
|
30
|
-
* <Dialog.Backdrop />
|
|
31
|
-
* <Dialog.Viewport>
|
|
32
|
-
* <Dialog.Popup>
|
|
33
|
-
* <Dialog.Title>Confirm</Dialog.Title>
|
|
34
|
-
* <Dialog.Description>Are you sure?</Dialog.Description>
|
|
35
|
-
* <Dialog.Close>Cancel</Dialog.Close>
|
|
36
|
-
* </Dialog.Popup>
|
|
37
|
-
* </Dialog.Viewport>
|
|
38
|
-
* </Dialog.Portal>
|
|
39
|
-
* </Dialog.Root>
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @see {@link https://base-ui.com/react/components/dialog | Base UI Dialog}
|
|
43
|
-
*/
|
|
44
|
-
declare function DialogTrigger(props: DialogTriggerProps): React.JSX.Element;
|
|
45
|
-
declare function DialogBackdrop({
|
|
46
|
-
className,
|
|
47
|
-
ref,
|
|
48
|
-
...props
|
|
49
|
-
}: DialogBackdropProps & {
|
|
50
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
51
|
-
}): React.JSX.Element;
|
|
52
|
-
declare function DialogViewport({
|
|
53
|
-
className,
|
|
54
|
-
ref,
|
|
55
|
-
...props
|
|
56
|
-
}: DialogViewportProps & {
|
|
57
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
58
|
-
}): React.JSX.Element;
|
|
59
|
-
declare function DialogPopup({
|
|
60
|
-
size,
|
|
61
|
-
className,
|
|
62
|
-
ref,
|
|
63
|
-
...props
|
|
64
|
-
}: DialogPopupProps & {
|
|
65
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
66
|
-
}): React.JSX.Element;
|
|
67
|
-
declare function DialogHeader({
|
|
68
|
-
className,
|
|
69
|
-
ref,
|
|
70
|
-
...props
|
|
71
|
-
}: DialogHeaderProps & {
|
|
72
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
73
|
-
}): React.JSX.Element;
|
|
74
|
-
declare function DialogFooter({
|
|
75
|
-
className,
|
|
76
|
-
ref,
|
|
77
|
-
...props
|
|
78
|
-
}: DialogFooterProps & {
|
|
79
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
80
|
-
}): React.JSX.Element;
|
|
81
|
-
declare function DialogTitle({
|
|
82
|
-
className,
|
|
83
|
-
ref,
|
|
84
|
-
...props
|
|
85
|
-
}: DialogTitleProps & {
|
|
86
|
-
ref?: React.Ref<HTMLHeadingElement>;
|
|
87
|
-
}): React.JSX.Element;
|
|
88
|
-
declare function DialogDescription({
|
|
89
|
-
className,
|
|
90
|
-
ref,
|
|
91
|
-
...props
|
|
92
|
-
}: DialogDescriptionProps & {
|
|
93
|
-
ref?: React.Ref<HTMLParagraphElement>;
|
|
94
|
-
}): React.JSX.Element;
|
|
95
|
-
declare function DialogClose({
|
|
96
|
-
render,
|
|
97
|
-
className,
|
|
98
|
-
ref,
|
|
99
|
-
...props
|
|
100
|
-
}: DialogCloseProps & {
|
|
101
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
102
|
-
}): React.JSX.Element;
|
|
103
|
-
declare const Dialog: {
|
|
104
|
-
Root: typeof Dialog$1.Root;
|
|
105
|
-
Trigger: typeof DialogTrigger;
|
|
106
|
-
Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
107
|
-
Backdrop: typeof DialogBackdrop;
|
|
108
|
-
Viewport: typeof DialogViewport;
|
|
109
|
-
Popup: typeof DialogPopup;
|
|
110
|
-
Header: typeof DialogHeader;
|
|
111
|
-
Footer: typeof DialogFooter;
|
|
112
|
-
Title: typeof DialogTitle;
|
|
113
|
-
Description: typeof DialogDescription;
|
|
114
|
-
Close: typeof DialogClose;
|
|
115
|
-
createHandle: typeof Dialog$1.createHandle;
|
|
116
|
-
};
|
|
117
|
-
//#endregion
|
|
1
|
+
import { a as DialogFooterProps, c as DialogPortalProps, d as DialogTriggerProps, f as DialogViewportProps, i as DialogDescriptionProps, l as DialogProps, n as DialogBackdropProps, o as DialogHeaderProps, r as DialogCloseProps, s as DialogPopupProps, t as Dialog, u as DialogTitleProps } from "../Dialog-BD8NBKaE.js";
|
|
118
2
|
export { Dialog, DialogBackdropProps, DialogCloseProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogPopupProps, DialogPortalProps, DialogProps, DialogTitleProps, DialogTriggerProps, DialogViewportProps };
|
|
@@ -26,9 +26,17 @@ import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
|
26
26
|
*
|
|
27
27
|
* @see {@link https://base-ui.com/react/components/dialog | Base UI Dialog}
|
|
28
28
|
*/
|
|
29
|
-
function DialogTrigger(props) {
|
|
29
|
+
function DialogTrigger({ render, className, ...props }) {
|
|
30
|
+
const classes = mergeBaseClassName(render == null ? buttonVariants({
|
|
31
|
+
variant: "normal",
|
|
32
|
+
color: "primary",
|
|
33
|
+
size: "sm",
|
|
34
|
+
className: "dialog__trigger"
|
|
35
|
+
}) : "dialog__trigger", className);
|
|
30
36
|
return /* @__PURE__ */ jsx(Dialog$1.Trigger, {
|
|
31
37
|
"data-slot": "dialog-trigger",
|
|
38
|
+
render,
|
|
39
|
+
className: classes,
|
|
32
40
|
...props
|
|
33
41
|
});
|
|
34
42
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as CopyButton } from "../copy-button-
|
|
2
|
+
import { S as EyeOffIcon, x as EyeIcon } from "../icons-ua6f_GH3.js";
|
|
3
|
+
import { t as CopyButton } from "../copy-button-TWq8nZhc.js";
|
|
4
4
|
import { Badge } from "./Badge.js";
|
|
5
5
|
import { Switch } from "./Switch.js";
|
|
6
6
|
import * as React from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as FileTreeIcon, i as FileTreeFolder, n as FileTreeActions, o as FileTreeName, r as FileTreeFile, t as FileTree } from "../FileTree-
|
|
1
|
+
import { a as FileTreeIcon, i as FileTreeFolder, n as FileTreeActions, o as FileTreeName, r as FileTreeFile, t as FileTree } from "../FileTree-DW60q1w7.js";
|
|
2
2
|
export { FileTree, FileTreeActions, FileTreeFile, FileTreeFolder, FileTreeIcon, FileTreeName };
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/components/IconButton.d.ts
|
|
5
|
-
interface IconButtonProps extends Omit<ButtonProps, "aria-label" | "children" | "size"> {
|
|
6
|
-
/** Decorative icon rendered inside the square button. */
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
/** Accessible name and default tooltip text for the icon-only control. */
|
|
9
|
-
label: string;
|
|
10
|
-
/** Tooltip content when it should differ from the accessible name. */
|
|
11
|
-
tooltip?: React.ReactNode;
|
|
12
|
-
/** Preferred side for the tooltip. */
|
|
13
|
-
tooltipSide?: "top" | "right" | "bottom" | "left";
|
|
14
|
-
/** Square button size. */
|
|
15
|
-
size?: ButtonSize;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* A square, icon-only button with a required accessible name and matching
|
|
19
|
-
* tooltip. Use text buttons for actions whose consequence an icon cannot make
|
|
20
|
-
* clear on its own.
|
|
21
|
-
*/
|
|
22
|
-
declare function IconButton({
|
|
23
|
-
children,
|
|
24
|
-
label,
|
|
25
|
-
size,
|
|
26
|
-
tooltip,
|
|
27
|
-
tooltipSide,
|
|
28
|
-
type,
|
|
29
|
-
...props
|
|
30
|
-
}: IconButtonProps): React.JSX.Element;
|
|
31
|
-
//#endregion
|
|
1
|
+
import { n as IconButtonProps, t as IconButton } from "../IconButton-CFKhu6OR.js";
|
|
32
2
|
export { IconButton, IconButtonProps };
|
|
@@ -8,9 +8,10 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
8
8
|
* tooltip. Use text buttons for actions whose consequence an icon cannot make
|
|
9
9
|
* clear on its own.
|
|
10
10
|
*/
|
|
11
|
-
function IconButton({ children, label, size = "sm", tooltip = label, tooltipSide = "top", type = "button", ...props }) {
|
|
11
|
+
function IconButton({ children, label, size = "sm", tooltip = label, tooltipSide = "top", type = "button", ref, ...props }) {
|
|
12
12
|
return /* @__PURE__ */ jsxs(Tooltip.Root, { children: [/* @__PURE__ */ jsx(Tooltip.Trigger, {
|
|
13
13
|
render: /* @__PURE__ */ jsx(Button, {
|
|
14
|
+
ref,
|
|
14
15
|
type,
|
|
15
16
|
size,
|
|
16
17
|
iconOnly: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
-
import { A as McpIcon, K as SpinnerIcon, Q as WarningIcon, u as CheckIcon } from "../icons-DyOM0EJs.js";
|
|
3
2
|
import { Button } from "./Button.js";
|
|
3
|
+
import { $ as WarningIcon, d as CheckIcon, j as McpIcon, q as SpinnerIcon } from "../icons-ua6f_GH3.js";
|
|
4
4
|
import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "./AgentAttention.js";
|
|
5
5
|
import { getMcpServerEntry, getMcpServerRuntimeState } from "../utils/mcp-server-catalog.js";
|
|
6
6
|
import { DescriptionList } from "./DescriptionList.js";
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { o as McpServerCard } from "../mcp-server-catalog-DycejaJ5.js";
|
|
2
|
+
import { l as DialogProps } from "../Dialog-BD8NBKaE.js";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { MCPServersState } from "agents";
|
|
5
|
+
|
|
6
|
+
//#region src/components/McpPluginCatalog.d.ts
|
|
7
|
+
/** Optional plugin-specific copy layered over the canonical MCP server card. */
|
|
8
|
+
interface McpPluginDetails {
|
|
9
|
+
developerName?: string;
|
|
10
|
+
marketplaceName?: string;
|
|
11
|
+
longDescription?: string;
|
|
12
|
+
capabilities?: readonly string[];
|
|
13
|
+
skills?: readonly string[];
|
|
14
|
+
}
|
|
15
|
+
interface McpPluginCatalogProps extends Omit<React.HTMLAttributes<HTMLElement>, "onSelect"> {
|
|
16
|
+
/** Canonical connector cards. The directory does not create a second plugin registry. */
|
|
17
|
+
servers: readonly McpServerCard[];
|
|
18
|
+
/** Upstream Agents MCP state used to project connected and recovery states. */
|
|
19
|
+
mcp?: MCPServersState;
|
|
20
|
+
/** Optional plugin metadata keyed by the canonical server ID. */
|
|
21
|
+
detailsByServerId?: Readonly<Record<string, McpPluginDetails | undefined>>;
|
|
22
|
+
/** Server IDs promoted into the Featured section, in display order. */
|
|
23
|
+
featuredServerIds?: readonly string[];
|
|
24
|
+
/** Host product name paired with the plugin in the connection dialog. */
|
|
25
|
+
brandName?: string;
|
|
26
|
+
/** Host product mark paired with the plugin in the connection dialog. */
|
|
27
|
+
brandLogo?: React.ReactNode;
|
|
28
|
+
/** Product-authored trust and data-sharing copy. Pass null to omit it. */
|
|
29
|
+
disclosure?: React.ReactNode;
|
|
30
|
+
/** Starts or recovers the existing MCP connection path. */
|
|
31
|
+
onConnect?: (server: McpServerCard) => void | Promise<void>;
|
|
32
|
+
/** Removes the exact upstream MCP entry. */
|
|
33
|
+
onDisconnect?: (serverId: string) => void | Promise<void>;
|
|
34
|
+
heading?: React.ReactNode;
|
|
35
|
+
description?: React.ReactNode;
|
|
36
|
+
searchLabel?: string;
|
|
37
|
+
emptyMessage?: React.ReactNode;
|
|
38
|
+
}
|
|
39
|
+
interface McpPluginDetailsDialogProps {
|
|
40
|
+
/** Selected canonical server card. Passing null closes the dialog. */
|
|
41
|
+
server: McpServerCard | null;
|
|
42
|
+
details?: McpPluginDetails;
|
|
43
|
+
mcp?: MCPServersState;
|
|
44
|
+
brandName?: string;
|
|
45
|
+
brandLogo?: React.ReactNode;
|
|
46
|
+
disclosure?: React.ReactNode;
|
|
47
|
+
onConnect?: (server: McpServerCard) => void | Promise<void>;
|
|
48
|
+
onDisconnect?: (serverId: string) => void | Promise<void>;
|
|
49
|
+
onOpenChange: NonNullable<DialogProps["onOpenChange"]>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Searchable plugin directory backed by the same MCP cards and live Agents
|
|
53
|
+
* state as {@link McpServerPicker}. Selecting a row opens the shared details
|
|
54
|
+
* dialog; connecting still delegates to the host's existing MCP/OAuth path.
|
|
55
|
+
*/
|
|
56
|
+
declare function McpPluginCatalog({
|
|
57
|
+
servers,
|
|
58
|
+
mcp,
|
|
59
|
+
detailsByServerId,
|
|
60
|
+
featuredServerIds,
|
|
61
|
+
brandName,
|
|
62
|
+
brandLogo,
|
|
63
|
+
disclosure,
|
|
64
|
+
onConnect,
|
|
65
|
+
onDisconnect,
|
|
66
|
+
heading,
|
|
67
|
+
description,
|
|
68
|
+
searchLabel,
|
|
69
|
+
emptyMessage,
|
|
70
|
+
className,
|
|
71
|
+
...props
|
|
72
|
+
}: McpPluginCatalogProps): React.JSX.Element;
|
|
73
|
+
/** Reference-derived plugin detail surface without a parallel install state. */
|
|
74
|
+
declare function McpPluginDetailsDialog({
|
|
75
|
+
server,
|
|
76
|
+
details,
|
|
77
|
+
mcp,
|
|
78
|
+
brandName,
|
|
79
|
+
brandLogo,
|
|
80
|
+
disclosure,
|
|
81
|
+
onConnect,
|
|
82
|
+
onDisconnect,
|
|
83
|
+
onOpenChange
|
|
84
|
+
}: McpPluginDetailsDialogProps): React.JSX.Element;
|
|
85
|
+
//#endregion
|
|
86
|
+
export { McpPluginCatalog, McpPluginCatalogProps, McpPluginDetails, McpPluginDetailsDialog, McpPluginDetailsDialogProps };
|