@mcp-b/react-components 0.46.1 → 0.46.2
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/agents-sdk/AgentChat.js +1 -1
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/ManagerOffice.js +2 -2
- package/dist/components/agents-sdk/ThinkChat.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +1 -1
- package/dist/components/agents-sdk/ThinkFullApp.js +1 -1
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineForm.js +2 -2
- package/dist/components/agents-sdk/ThinkRoutineLibrary.js +2 -2
- package/dist/components/agents-sdk/ThinkSidepanel.js +4 -4
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +1 -1
- package/dist/components/ai-sdk/PromptInput.js +1 -1
- package/dist/components/foundations/ToggleGroup.d.ts +1 -1
- package/dist/components/foundations/ToggleGroup.js +1 -1
- package/dist/components/general-purpose/PricingConfirmationDialog.js +1 -1
- package/dist/components/general-purpose/PricingUsageCalculator.js +1 -1
- package/dist/components/nanites/AgentToolDetail.js +2 -2
- package/package.json +2 -2
- package/dist/{ThinkChat-CV0xWmL4.js → ThinkChat-qztQ6Clo.js} +1 -1
|
@@ -15,9 +15,9 @@ import { t as CopyButton } from "../../copy-button-D7ySsRRo.js";
|
|
|
15
15
|
import { Context, ContextContent, ContextContentBody, ContextContentHeader, ContextTrigger, getContextUsage, getContextUsedTokens } from "../ai-sdk/Context.js";
|
|
16
16
|
import { VirtualMessageScroller } from "../ai-sdk/MessageScrollerVirtual.js";
|
|
17
17
|
import { QueueItem, QueueItemActions, QueueItemContent } from "../ai-sdk/Queue.js";
|
|
18
|
-
import { AgentEventRow, getAgentEvent } from "./AgentEvent.js";
|
|
19
18
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
20
19
|
import { TransitionSurface } from "../foundations/TransitionSurface.js";
|
|
20
|
+
import { AgentEventRow, getAgentEvent } from "./AgentEvent.js";
|
|
21
21
|
import { PromptInputApproval, getApprovalRequestId, getApprovalStateKey, getPendingToolApprovals } from "./PromptInputApproval.js";
|
|
22
22
|
import * as React from "react";
|
|
23
23
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -2,8 +2,8 @@ import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
|
2
2
|
import { B as PlayIcon, R as PauseIcon } from "../../icons-BNEY4gO5.js";
|
|
3
3
|
import { IconButton } from "../foundations/IconButton.js";
|
|
4
4
|
import { i as formatClock } from "../../format-COCyV98Z.js";
|
|
5
|
-
import { Slider } from "../foundations/Slider.js";
|
|
6
5
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
6
|
+
import { Slider } from "../foundations/Slider.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { Replayer } from "@rrweb/replay";
|
|
@@ -10,11 +10,11 @@ import { Avatar } from "../foundations/Avatar.js";
|
|
|
10
10
|
import { AppIcon } from "../foundations/AppIcon.js";
|
|
11
11
|
import { n as findCatalogMcpServerCard } from "../../mcp-server-7NR24ASj.js";
|
|
12
12
|
import { Select } from "../foundations/Select.js";
|
|
13
|
-
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
14
|
-
import { ResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
15
13
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
16
14
|
import { LinkButton } from "../foundations/LinkButton.js";
|
|
17
15
|
import "../foundations/icons.js";
|
|
16
|
+
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
17
|
+
import { ResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
18
18
|
import * as React from "react";
|
|
19
19
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
20
20
|
//#region src/components/_internal/chrome-profile-colors.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as thinkPendingExecutionApprovalsQueryOptions, i as ThinkChatRoot, n as ThinkChatMessages, o as useThinkChat, r as ThinkChatProvider, s as useThinkPendingExecutionApprovals, t as ThinkChat } from "../../ThinkChat-
|
|
1
|
+
import { a as thinkPendingExecutionApprovalsQueryOptions, i as ThinkChatRoot, n as ThinkChatMessages, o as useThinkChat, r as ThinkChatProvider, s as useThinkPendingExecutionApprovals, t as ThinkChat } from "../../ThinkChat-qztQ6Clo.js";
|
|
2
2
|
export { ThinkChat, ThinkChatMessages, ThinkChatProvider, ThinkChatRoot, thinkPendingExecutionApprovalsQueryOptions, useThinkChat, useThinkPendingExecutionApprovals };
|
|
@@ -5,8 +5,8 @@ import { IconButton } from "../foundations/IconButton.js";
|
|
|
5
5
|
import { Menu } from "../foundations/Menu.js";
|
|
6
6
|
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
7
7
|
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
8
|
-
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
9
8
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
9
|
+
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
10
10
|
import { getThinkExecutionRunAccessibleName, getThinkExecutionRunId, getThinkExecutionRunStatus, getThinkExecutionRunStatusTone, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
|
|
11
11
|
import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
|
|
12
12
|
import { ThinkExecutionDetail } from "./ThinkExecutionDetail.js";
|
|
@@ -6,7 +6,7 @@ import { n as mergeRefs } from "../../merge-refs-DF_7w2x_.js";
|
|
|
6
6
|
import { ResizableSidePanel } from "../general-purpose/ResizableSidePanel.js";
|
|
7
7
|
import { ResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
8
8
|
import { a as WorkspaceNavigationRestorationBoundary, i as WorkspaceNavigationFocusRestorer, n as WorkspaceNavigationProvider } from "../../WorkspaceLink-DtH66bAY.js";
|
|
9
|
-
import { c as resolveThinkApprovalProps, s as useThinkPendingExecutionApprovals, t as ThinkChat } from "../../ThinkChat-
|
|
9
|
+
import { c as resolveThinkApprovalProps, s as useThinkPendingExecutionApprovals, t as ThinkChat } from "../../ThinkChat-qztQ6Clo.js";
|
|
10
10
|
import { McpPluginCatalog } from "./McpPluginCatalog.js";
|
|
11
11
|
import { ThinkFullAppViewSwitch } from "./ThinkFullAppViewSwitch.js";
|
|
12
12
|
import { ThinkThreadStatusIndicators } from "./ThinkThreadPicker.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
3
2
|
import { ToggleGroup } from "../foundations/ToggleGroup.js";
|
|
3
|
+
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/agents-sdk/ThinkFullAppViewSwitch.tsx
|
|
@@ -4,9 +4,9 @@ import { buttonVariants } from "../foundations/Button.js";
|
|
|
4
4
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
5
5
|
import { t as capitalize } from "../../format-COCyV98Z.js";
|
|
6
6
|
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
7
|
-
import { ToggleGroup } from "../foundations/ToggleGroup.js";
|
|
8
7
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
9
8
|
import { SearchField } from "../foundations/SearchField.js";
|
|
9
|
+
import { ToggleGroup } from "../foundations/ToggleGroup.js";
|
|
10
10
|
import { getThinkRoutineNextRun } from "./ThinkRoutine.js";
|
|
11
11
|
import * as React from "react";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -6,12 +6,12 @@ import { Form } from "../foundations/Form.js";
|
|
|
6
6
|
import { Textarea } from "../foundations/Textarea.js";
|
|
7
7
|
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
8
8
|
import { Select } from "../foundations/Select.js";
|
|
9
|
-
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
10
9
|
import { Checkbox } from "../foundations/Checkbox.js";
|
|
11
|
-
import { Fieldset } from "../foundations/Fieldset.js";
|
|
12
10
|
import { CheckboxGroup } from "../foundations/CheckboxGroup.js";
|
|
13
11
|
import { Combobox } from "../foundations/Combobox.js";
|
|
12
|
+
import { Fieldset } from "../foundations/Fieldset.js";
|
|
14
13
|
import { NumberField } from "../foundations/NumberField.js";
|
|
14
|
+
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
15
15
|
import * as React from "react";
|
|
16
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
//#region src/components/agents-sdk/ThinkRoutineForm.tsx
|
|
@@ -3,10 +3,10 @@ import { $ as TrashIcon, B as PlayIcon, q as SpinnerIcon, z as PencilIcon } from
|
|
|
3
3
|
import { buttonVariants } from "../foundations/Button.js";
|
|
4
4
|
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
5
5
|
import { n as isPlainPrimaryLinkActivation, t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
6
|
-
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
7
6
|
import { AlertDialog } from "../foundations/AlertDialog.js";
|
|
8
|
-
import { ResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
9
7
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
8
|
+
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
9
|
+
import { ResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
10
10
|
import { ThinkRoutineBrowser } from "./ThinkRoutineBrowser.js";
|
|
11
11
|
import { ThinkRoutineDetail } from "./ThinkRoutineDetail.js";
|
|
12
12
|
import * as React from "react";
|
|
@@ -9,15 +9,15 @@ import { AppIcon } from "../foundations/AppIcon.js";
|
|
|
9
9
|
import { n as findCatalogMcpServerCard, t as McpServerIcon } from "../../mcp-server-7NR24ASj.js";
|
|
10
10
|
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
11
11
|
import { ChatGptSignInScreen } from "../extension/ChatGptSignInScreen.js";
|
|
12
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
13
|
+
import { Switch } from "../foundations/Switch.js";
|
|
14
|
+
import { useTheme } from "../foundations/ThemeProvider.js";
|
|
15
|
+
import "../foundations/icons.js";
|
|
12
16
|
import { ActionGuide } from "../general-purpose/ActionGuide.js";
|
|
13
17
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
14
|
-
import { Switch } from "../foundations/Switch.js";
|
|
15
18
|
import { t as SetupChecklistAction } from "../../SetupChecklist-DyPZWzK2.js";
|
|
16
|
-
import { useTheme } from "../foundations/ThemeProvider.js";
|
|
17
19
|
import { NaniteMark } from "../nanites/NaniteScene.js";
|
|
18
20
|
import { SubagentRunLabel } from "./SubagentRunIndicator.js";
|
|
19
|
-
import { EmptyState } from "../foundations/EmptyState.js";
|
|
20
|
-
import "../foundations/icons.js";
|
|
21
21
|
import { McpServerPickerAction, McpServerPickerItems } from "./McpServerPicker.js";
|
|
22
22
|
import { getThinkExecutionRunId } from "./ThinkExecutionRun.js";
|
|
23
23
|
import { ThinkThreadPicker, summarizeThinkThreads } from "./ThinkThreadPicker.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as FileTreeFolder, r as FileTreeFile, t as FileTree } from "../../FileTree-CAXWXH63.js";
|
|
2
1
|
import { SearchField } from "../foundations/SearchField.js";
|
|
2
|
+
import { i as FileTreeFolder, r as FileTreeFile, t as FileTree } from "../../FileTree-CAXWXH63.js";
|
|
3
3
|
import { WorkspaceHeader } from "./WorkspaceHeader.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -2,8 +2,8 @@ import { L as PaperclipIcon } from "../../icons-BNEY4gO5.js";
|
|
|
2
2
|
import { Button } from "../foundations/Button.js";
|
|
3
3
|
import { Card, CardFooter, CardHeader, CardTitle } from "../foundations/Card.js";
|
|
4
4
|
import { Popover } from "../foundations/Popover.js";
|
|
5
|
-
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
6
5
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
6
|
+
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/agents-sdk/WorkspaceMountManager.tsx
|
|
@@ -1042,7 +1042,7 @@ function PromptInputCommandComposer({ commands, mentionCommands, value, onValueC
|
|
|
1042
1042
|
...command.keywords ?? []
|
|
1043
1043
|
].filter((term) => Boolean(term)).some((term) => term.toLocaleLowerCase().includes(normalizedQuery));
|
|
1044
1044
|
});
|
|
1045
|
-
const hasTriggeredCatalog = trigger === "/" ? commands.length > 0 : trigger === "@" && mentionCommands !== void 0;
|
|
1045
|
+
const hasTriggeredCatalog = trigger === "/" ? commands.length > 0 && (match?.triggerIndex === 0 || filtered.length > 0) : trigger === "@" && mentionCommands !== void 0;
|
|
1046
1046
|
const open = Boolean(match && hasTriggeredCatalog) && dismissedValue !== value;
|
|
1047
1047
|
const groups = Array.from(new Set(filtered.map((command) => command.group ?? ""))).map((label) => ({
|
|
1048
1048
|
label,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as ToggleVariantsOptions } from "../../Toggle-DLrIf5YH.js";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
|
|
4
3
|
import { Toggle } from "@base-ui/react/toggle";
|
|
4
|
+
import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
|
|
5
5
|
|
|
6
6
|
//#region src/components/foundations/ToggleGroup.d.ts
|
|
7
7
|
type ToggleGroupSize = ToggleVariantsOptions["size"];
|
|
@@ -3,8 +3,8 @@ import { n as mergeRefs } from "../../merge-refs-DF_7w2x_.js";
|
|
|
3
3
|
import { toggleVariants } from "./Toggle.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
|
|
7
6
|
import { Toggle } from "@base-ui/react/toggle";
|
|
7
|
+
import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
|
|
8
8
|
//#region src/components/foundations/ToggleGroup.tsx
|
|
9
9
|
/**
|
|
10
10
|
* Tracks the pressed item's box so the segmented thumb can slide to it instead
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button } from "../foundations/Button.js";
|
|
2
|
-
import { getPlanPrice, getPlanYearlySavings } from "./Pricing.js";
|
|
3
2
|
import { AlertDialog } from "../foundations/AlertDialog.js";
|
|
3
|
+
import { getPlanPrice, getPlanYearlySavings } from "./Pricing.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/general-purpose/PricingConfirmationDialog.tsx
|
|
6
6
|
function getActionLabel(action) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import { Card } from "../foundations/Card.js";
|
|
3
3
|
import { Separator } from "../foundations/Separator.js";
|
|
4
|
-
import { formatPricingUsage, getUsagePrice } from "./Pricing.js";
|
|
5
4
|
import { Progress } from "../foundations/Progress.js";
|
|
6
5
|
import { Slider } from "../foundations/Slider.js";
|
|
6
|
+
import { formatPricingUsage, getUsagePrice } from "./Pricing.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/general-purpose/PricingUsageCalculator.tsx
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import { r as ArrowLeftIcon } from "../../icons-BNEY4gO5.js";
|
|
3
|
+
import { TransitionSurface } from "../foundations/TransitionSurface.js";
|
|
3
4
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
4
5
|
import { NaniteMark } from "./NaniteScene.js";
|
|
5
6
|
import { SubagentRunIndicator, getSubagentRunName } from "../agents-sdk/SubagentRunIndicator.js";
|
|
6
7
|
import { SubagentRunMilestone, SubagentRunMilestones, SubagentRunProgress } from "../agents-sdk/SubagentRunDetails.js";
|
|
7
|
-
import {
|
|
8
|
-
import { t as ThinkChat } from "../../ThinkChat-CV0xWmL4.js";
|
|
8
|
+
import { t as ThinkChat } from "../../ThinkChat-qztQ6Clo.js";
|
|
9
9
|
import * as React from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { useAgentChat } from "@cloudflare/think/react";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-b/react-components",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.2",
|
|
4
4
|
"description": "MCP-B React components built on Base UI and shared design tokens, including Cloudflare Think chat primitives.",
|
|
5
5
|
"homepage": "https://design-system.sigvelo.com",
|
|
6
6
|
"bugs": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"streamdown": "^2.5.0",
|
|
54
54
|
"unist-util-visit": "^5.1.0",
|
|
55
55
|
"yet-another-react-lightbox": "^3.32.2",
|
|
56
|
-
"@mcp-b/design-tokens": "0.46.
|
|
56
|
+
"@mcp-b/design-tokens": "0.46.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@ai-sdk/react": "^3.0.249",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { composerDraftToPrompt, parseComposerLinks } from "./utils/composer-link.js";
|
|
2
|
-
import { AgentToolRunsProvider, useSourceScopedAgentToolEvents } from "./components/agents-sdk/AgentToolRunsContext.js";
|
|
3
2
|
import { TransitionSurface } from "./components/foundations/TransitionSurface.js";
|
|
3
|
+
import { AgentToolRunsProvider, useSourceScopedAgentToolEvents } from "./components/agents-sdk/AgentToolRunsContext.js";
|
|
4
4
|
import { AgentChat, compactingNotice } from "./components/agents-sdk/AgentChat.js";
|
|
5
5
|
import { ThinkChatContext, ThinkChatLiveContext, useOptionalThinkChatContext, useThinkChatContext } from "./components/agents-sdk/ThinkChatContext.js";
|
|
6
6
|
import { ThinkChatActivity, createThinkChatActivityRenderer, renderThinkChatActivityPart } from "./components/agents-sdk/ThinkChatActivity.js";
|