@mcp-b/react-components 0.35.0 → 0.37.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-mpacmRU1.d.ts → AgentChat-CVO7xyLC.d.ts} +1 -1
- package/dist/{CodeBlock-DzGhYyNe.d.ts → CodeBlock-C380GD5t.d.ts} +2 -5
- package/dist/{CodeBlock-CM5gfmdq.js → CodeBlock-DO4Hdu1R.js} +4 -3
- package/dist/{Dialog-DeOSJ0Oy.d.ts → Dialog-B_FhRWaz.d.ts} +22 -37
- package/dist/{FileTree-4WP4Uc_m.js → FileTree-DbQMpvxV.js} +1 -1
- package/dist/{Menu-DVmjBIuM.d.ts → Menu-yb6QXWA3.d.ts} +64 -75
- package/dist/{PromptInput-DOyee1kM.d.ts → PromptInput-BRX7FhjH.d.ts} +7 -272
- package/dist/ResponsiveSidebarShell-DWjULskY.d.ts +68 -0
- package/dist/{Select-D96d09ww.d.ts → Select-RrceeEIe.d.ts} +17 -52
- package/dist/{ThinkChat-DbzqSTBt.js → ThinkChat-DQh59CeC.js} +6 -8
- package/dist/{ThinkChatActivity-BZyN5MBg.d.ts → ThinkChatActivity-Dkmm2pIj.d.ts} +1 -1
- package/dist/{ToggleGroup-CSBWfPXo.d.ts → ToggleGroup-_pQMyHGM.d.ts} +5 -7
- package/dist/{WorkspaceFile-CVAzjTt6.d.ts → WorkspaceFile-BLaFmMrt.d.ts} +1 -1
- package/dist/{WorkspaceFileView-BmxSbhRu.js → WorkspaceFileView-Cu_ZG6HJ.js} +11 -17
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentActivityPreview.js +4 -4
- package/dist/components/agents-sdk/AgentChat.d.ts +1 -1
- package/dist/components/agents-sdk/AgentChat.js +36 -30
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +47 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +2 -2
- package/dist/components/agents-sdk/BrowserReplay.d.ts +40 -1
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +2 -2
- package/dist/components/agents-sdk/McpConnectionRequest.js +15 -16
- package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.d.ts +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.js +19 -26
- package/dist/components/agents-sdk/McpServerPicker.d.ts +2 -2
- package/dist/components/agents-sdk/McpServerPicker.js +20 -18
- package/dist/components/agents-sdk/ModelSelector.d.ts +9 -9
- package/dist/components/agents-sdk/ModelSelector.js +504 -1
- package/dist/components/agents-sdk/PromptInputApproval.js +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
- package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
- package/dist/components/agents-sdk/SubagentRunSelector.js +2 -2
- package/dist/components/agents-sdk/ThinkChat.d.ts +17 -107
- package/dist/components/agents-sdk/ThinkChat.js +2 -12
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +2 -4
- package/dist/components/agents-sdk/ThinkChatActivity.js +2 -2
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +3 -3
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +4 -4
- package/dist/components/agents-sdk/ThinkFullApp.js +10 -14
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.js +1 -1
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +2 -2
- package/dist/components/agents-sdk/ThinkRoutineDetail.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineForm.js +3 -3
- package/dist/components/agents-sdk/ThinkRoutineLibrary.d.ts +2 -3
- package/dist/components/agents-sdk/ThinkRoutineLibrary.js +4 -4
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +2 -2
- package/dist/components/agents-sdk/ThinkThreadPicker.js +6 -7
- package/dist/components/agents-sdk/ThinkThreadShell.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.d.ts +140 -2
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +32 -5
- package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -5
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +2 -2
- package/dist/components/ai-sdk/Activity.d.ts +5 -0
- package/dist/components/ai-sdk/Activity.js +34 -14
- package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
- package/dist/components/ai-sdk/Approval.js +2 -2
- package/dist/components/ai-sdk/Artifact.js +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +1 -1
- package/dist/components/ai-sdk/Checkpoint.js +1 -1
- package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/Conversation.js +1 -1
- package/dist/components/ai-sdk/Goal.js +1 -1
- package/dist/components/ai-sdk/InlineCitation.js +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
- package/dist/components/ai-sdk/Message.js +2 -6
- package/dist/components/ai-sdk/MessageScroller.d.ts +5 -0
- package/dist/components/ai-sdk/MessageScroller.js +19 -13
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +19 -11
- package/dist/components/ai-sdk/Plan.js +1 -1
- package/dist/components/ai-sdk/PromptInput.d.ts +2 -2
- package/dist/components/ai-sdk/PromptInput.js +126 -129
- package/dist/components/ai-sdk/Queue.js +2 -2
- package/dist/components/ai-sdk/Reasoning.d.ts +3 -4
- package/dist/components/ai-sdk/Reasoning.js +30 -14
- package/dist/components/ai-sdk/Sources.js +1 -1
- package/dist/components/ai-sdk/Task.js +1 -1
- package/dist/components/ai-sdk/ToolInvocation.d.ts +3 -5
- package/dist/components/extension/ChatGptSignInScreen.js +3 -3
- package/dist/components/extension/CodexModelSelector.d.ts +1 -1
- package/dist/components/extension/CodexModelSelector.js +2 -2
- package/dist/components/extension/ConversationTabPicker.js +3 -3
- package/dist/components/foundations/Accordion.d.ts +1 -3
- package/dist/components/foundations/Accordion.js +1 -3
- package/dist/components/foundations/AlertDialog.d.ts +16 -36
- package/dist/components/foundations/Autocomplete.d.ts +12 -33
- package/dist/components/foundations/Autocomplete.js +2 -1
- package/dist/components/foundations/Card.d.ts +3 -3
- package/dist/components/foundations/Card.js +3 -3
- package/dist/components/foundations/Checkbox.js +1 -1
- package/dist/components/foundations/Collapsible.js +1 -1
- package/dist/components/foundations/Combobox.d.ts +119 -2
- package/dist/components/foundations/Combobox.js +6 -23
- package/dist/components/foundations/ContextMenu.d.ts +50 -57
- package/dist/components/foundations/ContextMenu.js +5 -29
- package/dist/components/foundations/DescriptionList.d.ts +34 -2
- package/dist/components/foundations/DescriptionList.js +33 -2
- package/dist/components/foundations/Dialog.d.ts +1 -1
- package/dist/components/foundations/Dialog.js +2 -1
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menu.js +3 -21
- package/dist/components/foundations/Menubar.d.ts +35 -64
- package/dist/components/foundations/Menubar.js +4 -23
- package/dist/components/foundations/Popover.d.ts +8 -21
- package/dist/components/foundations/Popover.js +3 -48
- package/dist/components/foundations/PreviewCard.d.ts +44 -29
- package/dist/components/foundations/PreviewCard.js +3 -6
- package/dist/components/foundations/RadioGroup.d.ts +4 -6
- package/dist/components/foundations/SearchField.js +1 -1
- package/dist/components/foundations/Select.d.ts +1 -1
- package/dist/components/foundations/Select.js +8 -22
- package/dist/components/foundations/Slider.d.ts +31 -44
- package/dist/components/foundations/Slider.js +26 -25
- package/dist/components/foundations/Stepper.d.ts +3 -3
- package/dist/components/foundations/Stepper.js +6 -7
- package/dist/components/foundations/Toast.js +1 -1
- package/dist/components/foundations/ToggleGroup.d.ts +1 -1
- package/dist/components/foundations/ToggleGroup.js +1 -1
- package/dist/components/foundations/Tooltip.d.ts +6 -8
- package/dist/components/foundations/Tooltip.js +4 -3
- package/dist/components/foundations/icons.js +1 -1
- package/dist/components/general-purpose/Commit.js +3 -3
- package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/PricingBillingToggle.d.ts +2 -3
- package/dist/components/general-purpose/PricingBillingToggle.js +5 -23
- package/dist/components/general-purpose/PricingPage.d.ts +3 -4
- package/dist/components/general-purpose/PricingPlanCard.js +2 -2
- package/dist/components/general-purpose/PricingUsageCalculator.js +2 -2
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -67
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
- package/dist/components/general-purpose/SettingsFormDialog.d.ts +7 -2
- package/dist/components/general-purpose/SettingsFormDialog.js +19 -4
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/Terminal.js +4 -4
- package/dist/components/general-purpose/TestResults.js +1 -1
- package/dist/components/general-purpose/ThemeModeControl.js +2 -2
- package/dist/components/general-purpose/WebPreview.js +5 -5
- package/dist/components/nanites/AgentConnection.js +17 -12
- package/dist/components/nanites/AgentToolDetail.js +4 -4
- package/dist/{copy-button-CsNSSKYG.js → copy-button-4YvddK4e.js} +1 -1
- package/dist/{mcp-server-U71zhxFF.js → mcp-server-SD_S-IpB.js} +18 -2
- package/dist/message-scroller-C8cplcQO.js +32 -0
- package/dist/provider-logos-zjZycgV6.js +74 -0
- package/dist/styles/agent-chat.css +9 -0
- package/dist/styles/agent-connection.css +4 -31
- package/dist/styles/alert-dialog.css +0 -2
- package/dist/styles/base-ui-motion.css +7 -5
- package/dist/styles/chatgpt-sign-in-screen.css +5 -3
- package/dist/styles/dialog.css +0 -2
- package/dist/styles/model-selector.css +30 -12
- package/dist/styles/popover.css +0 -1
- package/dist/styles/preview-card.css +0 -4
- package/dist/styles/pricing-page.css +1 -13
- package/dist/styles/prompt-input.css +12 -10
- package/dist/styles/recipes.css +22 -14
- package/dist/styles/slider.css +2 -2
- package/dist/styles/tooltip.css +0 -1
- package/dist/utils/structured-code.d.ts +1 -1
- package/package.json +18 -8
- package/dist/BrowserLiveView-tJTWkoyu.d.ts +0 -48
- package/dist/BrowserReplay-B0BQZr-N.d.ts +0 -41
- package/dist/Combobox-WrrDDaEv.d.ts +0 -154
- package/dist/ModelSelector-DtBxWqRn.js +0 -504
- package/dist/Workspace-GTlqvcIn.d.ts +0 -278
- package/dist/WorkspaceExplorer-Cu044amt.d.ts +0 -32
- package/dist/components/foundations/DescriptionListParts.d.ts +0 -37
- package/dist/components/foundations/DescriptionListParts.js +0 -35
- package/dist/{icons-B1Qw05te.js → icons-B4mGvCvc.js} +1 -1
|
@@ -1,68 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
//#region src/components/general-purpose/ResponsiveSidebarShell.d.ts
|
|
4
|
-
interface ResponsiveSidebarShellControls {
|
|
5
|
-
/** Close the sidebar and move focus to the main content. */
|
|
6
|
-
closeSidebar: () => void;
|
|
7
|
-
/** Close only when the shell is currently using its compact drawer layout. */
|
|
8
|
-
closeSidebarOnCompact: () => void;
|
|
9
|
-
}
|
|
10
|
-
interface ResponsiveSidebarShellTopBarControls {
|
|
11
|
-
/** The shell-owned, labelled sidebar toggle to place in a top-bar slot. */
|
|
12
|
-
sidebarToggle: React.ReactNode;
|
|
13
|
-
/** Stable id for a caller-composed compact disclosure trigger. */
|
|
14
|
-
sidebarId: string;
|
|
15
|
-
/** Whether the shared sidebar surface is currently visible. */
|
|
16
|
-
sidebarOpen: boolean;
|
|
17
|
-
/** Toggle the sidebar and remember the invoking control for Escape focus restoration. */
|
|
18
|
-
toggleSidebar: (trigger?: HTMLElement) => void;
|
|
19
|
-
}
|
|
20
|
-
interface ResponsiveSidebarShellProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
21
|
-
/** Navigation or other secondary surface shown beside the selected content. */
|
|
22
|
-
sidebar: React.ReactNode | ((controls: ResponsiveSidebarShellControls) => React.ReactNode);
|
|
23
|
-
/**
|
|
24
|
-
* Optional composable application bar. The render form receives the
|
|
25
|
-
* shell-owned sidebar toggle so callers can place it beside their own icon
|
|
26
|
-
* groups without duplicating drawer behavior.
|
|
27
|
-
*/
|
|
28
|
-
topBar?: React.ReactNode | ((controls: ResponsiveSidebarShellTopBarControls) => React.ReactNode);
|
|
29
|
-
/** Short noun used by the toggle and resize control, such as “threads” or “schedules”. */
|
|
30
|
-
sidebarLabel: string;
|
|
31
|
-
/** Whether the sidebar is open. Omit for internal state. */
|
|
32
|
-
sidebarOpen?: boolean;
|
|
33
|
-
/** Initial sidebar state when `sidebarOpen` is uncontrolled. */
|
|
34
|
-
defaultSidebarOpen?: boolean;
|
|
35
|
-
/** Initial desktop sidebar width in CSS pixels. */
|
|
36
|
-
defaultSidebarWidth?: number;
|
|
37
|
-
/** Called when the sidebar is opened or closed. */
|
|
38
|
-
onSidebarOpenChange?: (open: boolean) => void;
|
|
39
|
-
/** Accessible name for the toolbar containing the sidebar toggle. */
|
|
40
|
-
toolbarLabel?: string;
|
|
41
|
-
/** Accessible name for the mobile preview target that returns to the main content. */
|
|
42
|
-
showMainLabel?: string;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Responsive master-detail shell with a resizable desktop sidebar and a compact
|
|
46
|
-
* floating sidebar that leaves the main content in place as a dismiss target.
|
|
47
|
-
* The root exposes `data-sidebar-open="true" | "false"` as its public styling hook.
|
|
48
|
-
*/
|
|
49
|
-
declare function ResponsiveSidebarShell({
|
|
50
|
-
sidebar,
|
|
51
|
-
topBar,
|
|
52
|
-
sidebarLabel,
|
|
53
|
-
sidebarOpen,
|
|
54
|
-
defaultSidebarOpen,
|
|
55
|
-
defaultSidebarWidth,
|
|
56
|
-
onSidebarOpenChange,
|
|
57
|
-
toolbarLabel,
|
|
58
|
-
showMainLabel,
|
|
59
|
-
className,
|
|
60
|
-
children,
|
|
61
|
-
ref,
|
|
62
|
-
style,
|
|
63
|
-
...props
|
|
64
|
-
}: ResponsiveSidebarShellProps & {
|
|
65
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
66
|
-
}): React.JSX.Element;
|
|
67
|
-
//#endregion
|
|
1
|
+
import { i as ResponsiveSidebarShellTopBarControls, n as ResponsiveSidebarShellControls, r as ResponsiveSidebarShellProps, t as ResponsiveSidebarShell } from "../../ResponsiveSidebarShell-DWjULskY.js";
|
|
68
2
|
export { ResponsiveSidebarShell, ResponsiveSidebarShellControls, ResponsiveSidebarShellProps, ResponsiveSidebarShellTopBarControls };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { K as SidebarIcon } from "../../icons-
|
|
2
|
+
import { K as SidebarIcon } from "../../icons-B4mGvCvc.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { t as capitalize } from "../../format-DB2mX9DA.js";
|
|
5
5
|
import { n as mergeRefs } from "../../merge-refs-DF_7w2x_.js";
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/components/general-purpose/SettingsFormDialog.d.ts
|
|
4
|
-
type SettingsFormFieldType = "email" | "password" | "search" | "tel" | "text" | "url";
|
|
4
|
+
type SettingsFormFieldType = "checkbox" | "email" | "password" | "search" | "tel" | "text" | "url";
|
|
5
|
+
/**
|
|
6
|
+
* A checked box submits this, an unchecked one submits the empty string, so
|
|
7
|
+
* `SettingsFormValues` stays all-strings for every field type.
|
|
8
|
+
*/
|
|
9
|
+
declare const SETTINGS_FORM_CHECKED = "true";
|
|
5
10
|
interface SettingsFormField {
|
|
6
11
|
name: string;
|
|
7
12
|
label: string;
|
|
@@ -40,4 +45,4 @@ declare function SettingsFormDialog({
|
|
|
40
45
|
...contentProps
|
|
41
46
|
}: SettingsFormDialogProps): React.JSX.Element;
|
|
42
47
|
//#endregion
|
|
43
|
-
export { SettingsFormDialog, SettingsFormDialogProps, SettingsFormField, SettingsFormFieldType, SettingsFormValues };
|
|
48
|
+
export { SETTINGS_FORM_CHECKED, SettingsFormDialog, SettingsFormDialogProps, SettingsFormField, SettingsFormFieldType, SettingsFormValues };
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { Button } from "../foundations/Button.js";
|
|
2
|
-
import { Dialog } from "../foundations/Dialog.js";
|
|
3
|
-
import { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
|
|
4
2
|
import { Field } from "../foundations/Field.js";
|
|
5
3
|
import { Form } from "../foundations/Form.js";
|
|
4
|
+
import { Dialog } from "../foundations/Dialog.js";
|
|
5
|
+
import { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
|
|
6
|
+
import { Checkbox } from "../foundations/Checkbox.js";
|
|
6
7
|
import * as React from "react";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
//#region src/components/general-purpose/SettingsFormDialog.tsx
|
|
10
|
+
/**
|
|
11
|
+
* A checked box submits this, an unchecked one submits the empty string, so
|
|
12
|
+
* `SettingsFormValues` stays all-strings for every field type.
|
|
13
|
+
*/
|
|
14
|
+
const SETTINGS_FORM_CHECKED = "true";
|
|
9
15
|
function readSettingsValues(data, fields) {
|
|
10
16
|
return Object.fromEntries(fields.map((field) => {
|
|
11
17
|
const value = data[field.name];
|
|
18
|
+
if (field.type === "checkbox") return [field.name, value === true ? SETTINGS_FORM_CHECKED : ""];
|
|
12
19
|
return [field.name, typeof value === "string" ? value.trim() : ""];
|
|
13
20
|
}));
|
|
14
21
|
}
|
|
@@ -51,7 +58,15 @@ function SettingsFormDialogContent({ fields, initialValues, submitLabel, submitt
|
|
|
51
58
|
return /* @__PURE__ */ jsxs(Form, {
|
|
52
59
|
onFormSubmit: submit,
|
|
53
60
|
children: [
|
|
54
|
-
fields.map((field) => /* @__PURE__ */ jsxs(Field.Root, {
|
|
61
|
+
fields.map((field) => field.type === "checkbox" ? /* @__PURE__ */ jsxs(Field.Root, {
|
|
62
|
+
name: field.name,
|
|
63
|
+
orientation: "horizontal",
|
|
64
|
+
children: [/* @__PURE__ */ jsx(Checkbox.Root, {
|
|
65
|
+
defaultChecked: initialValues?.[field.name] === SETTINGS_FORM_CHECKED,
|
|
66
|
+
disabled: field.readOnly,
|
|
67
|
+
children: /* @__PURE__ */ jsx(Checkbox.Indicator, {})
|
|
68
|
+
}), /* @__PURE__ */ jsxs(Field.Content, { children: [/* @__PURE__ */ jsx(Field.Label, { children: field.label }), field.description ? /* @__PURE__ */ jsx(Field.Description, { children: field.description }) : null] })]
|
|
69
|
+
}, field.name) : /* @__PURE__ */ jsxs(Field.Root, {
|
|
55
70
|
name: field.name,
|
|
56
71
|
children: [
|
|
57
72
|
/* @__PURE__ */ jsx(Field.Label, { children: field.label }),
|
|
@@ -108,4 +123,4 @@ function SettingsFormDialog({ open, onOpenChange, title, description, ...content
|
|
|
108
123
|
});
|
|
109
124
|
}
|
|
110
125
|
//#endregion
|
|
111
|
-
export { SettingsFormDialog };
|
|
126
|
+
export { SETTINGS_FORM_CHECKED, SettingsFormDialog };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { H as PlusIcon, d as CheckIcon, f as ChevronDownIcon, tt as WarningIcon } from "../../icons-
|
|
2
|
+
import { H as PlusIcon, d as CheckIcon, f as ChevronDownIcon, tt as WarningIcon } from "../../icons-B4mGvCvc.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { Menu } from "../foundations/Menu.js";
|
|
5
5
|
import * as React from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { $ as TerminalIcon, rt as XIcon } from "../../icons-
|
|
2
|
+
import { $ as TerminalIcon, rt as XIcon } from "../../icons-B4mGvCvc.js";
|
|
3
3
|
import { IconButton } from "../foundations/IconButton.js";
|
|
4
|
-
import { t as CopyButton } from "../../copy-button-
|
|
4
|
+
import { t as CopyButton } from "../../copy-button-4YvddK4e.js";
|
|
5
5
|
import { Badge } from "../foundations/Badge.js";
|
|
6
6
|
import { ScrollArea } from "../foundations/ScrollArea.js";
|
|
7
7
|
import * as React from "react";
|
|
@@ -175,7 +175,7 @@ function TerminalContent({ className, ref, ...props }) {
|
|
|
175
175
|
ref: viewportRef,
|
|
176
176
|
className: "terminal__content-viewport",
|
|
177
177
|
onScroll: handleScroll,
|
|
178
|
-
children: /* @__PURE__ */ jsxs("pre", {
|
|
178
|
+
children: /* @__PURE__ */ jsx(ScrollArea.Content, { children: /* @__PURE__ */ jsxs("pre", {
|
|
179
179
|
className: "terminal__output",
|
|
180
180
|
children: [segments.map((seg, i) => /* @__PURE__ */ jsx("span", {
|
|
181
181
|
style: {
|
|
@@ -191,7 +191,7 @@ function TerminalContent({ className, ref, ...props }) {
|
|
|
191
191
|
className: "terminal__cursor",
|
|
192
192
|
"aria-hidden": "true"
|
|
193
193
|
}) : null]
|
|
194
|
-
})
|
|
194
|
+
}) })
|
|
195
195
|
}), /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
|
|
196
196
|
orientation: "vertical",
|
|
197
197
|
children: /* @__PURE__ */ jsx(ScrollArea.Thumb, {})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { J as SpinnerIcon, d as CheckIcon, m as ChevronRightIcon, rt as XIcon } from "../../icons-B1Qw05te.js";
|
|
3
2
|
import { Collapsible } from "../foundations/Collapsible.js";
|
|
3
|
+
import { J as SpinnerIcon, d as CheckIcon, m as ChevronRightIcon, rt as XIcon } from "../../icons-B4mGvCvc.js";
|
|
4
4
|
import { Badge } from "../foundations/Badge.js";
|
|
5
5
|
import { Progress } from "../foundations/Progress.js";
|
|
6
6
|
import * as React from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as MonitorIcon, I as MoonIcon, Z as SunIcon } from "../../icons-
|
|
1
|
+
import { F as MonitorIcon, I as MoonIcon, Z as SunIcon } from "../../icons-B4mGvCvc.js";
|
|
2
2
|
import { Radio, RadioGroup } from "../foundations/RadioGroup.js";
|
|
3
3
|
import { useTheme } from "../foundations/ThemeProvider.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -33,7 +33,7 @@ function ThemeModeControl({ showLabels = true, "aria-label": ariaLabel = "Theme"
|
|
|
33
33
|
].filter(Boolean).join(" ");
|
|
34
34
|
return /* @__PURE__ */ jsx(RadioGroup.Root, {
|
|
35
35
|
value: preference,
|
|
36
|
-
onValueChange:
|
|
36
|
+
onValueChange: setPreference,
|
|
37
37
|
name,
|
|
38
38
|
disabled,
|
|
39
39
|
orientation: "horizontal",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { W as RefreshIcon, f as ChevronDownIcon, i as ArrowRightIcon, r as ArrowLeftIcon } from "../../icons-B1Qw05te.js";
|
|
3
2
|
import { Collapsible } from "../foundations/Collapsible.js";
|
|
3
|
+
import { W as RefreshIcon, f as ChevronDownIcon, i as ArrowRightIcon, r as ArrowLeftIcon } from "../../icons-B4mGvCvc.js";
|
|
4
4
|
import { IconButton } from "../foundations/IconButton.js";
|
|
5
5
|
import { Badge } from "../foundations/Badge.js";
|
|
6
|
-
import { Input } from "../foundations/Input.js";
|
|
7
6
|
import { ScrollArea } from "../foundations/ScrollArea.js";
|
|
7
|
+
import { Input } from "../foundations/Input.js";
|
|
8
8
|
import * as React from "react";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region src/components/general-purpose/WebPreview.tsx
|
|
@@ -262,9 +262,9 @@ function WebPreviewConsole({ className, logs = [], children, ref, ...props }) {
|
|
|
262
262
|
unstyled: true,
|
|
263
263
|
children: /* @__PURE__ */ jsxs(ScrollArea.Root, {
|
|
264
264
|
className: "web-preview__console-scroll",
|
|
265
|
-
children: [/* @__PURE__ */
|
|
265
|
+
children: [/* @__PURE__ */ jsx(ScrollArea.Viewport, {
|
|
266
266
|
className: "web-preview__console-viewport",
|
|
267
|
-
children: [/* @__PURE__ */ jsx("ul", {
|
|
267
|
+
children: /* @__PURE__ */ jsxs(ScrollArea.Content, { children: [/* @__PURE__ */ jsx("ul", {
|
|
268
268
|
className: "web-preview__console-list sigvelo-stack-list",
|
|
269
269
|
children: logs.length === 0 ? /* @__PURE__ */ jsx("li", {
|
|
270
270
|
className: "web-preview__console-empty",
|
|
@@ -287,7 +287,7 @@ function WebPreviewConsole({ className, logs = [], children, ref, ...props }) {
|
|
|
287
287
|
})
|
|
288
288
|
]
|
|
289
289
|
}, index))
|
|
290
|
-
}), children]
|
|
290
|
+
}), children] })
|
|
291
291
|
}), /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
|
|
292
292
|
orientation: "vertical",
|
|
293
293
|
children: /* @__PURE__ */ jsx(ScrollArea.Thumb, {})
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { k as LinkIcon } from "../../icons-
|
|
2
|
+
import { k as LinkIcon } from "../../icons-B4mGvCvc.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
|
+
import { a as CodeBlockCopyButton, i as CodeBlockContent, n as CodeBlockActions, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock } from "../../CodeBlock-DO4Hdu1R.js";
|
|
4
5
|
import { Popover } from "../foundations/Popover.js";
|
|
5
|
-
import {
|
|
6
|
+
import { ToggleGroup } from "../foundations/ToggleGroup.js";
|
|
6
7
|
import * as React from "react";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
//#region src/components/nanites/AgentConnection.tsx
|
|
@@ -103,6 +104,7 @@ function AgentConnectionPanel({ className, commands: commandsProp, defaultTarget
|
|
|
103
104
|
const Heading = headingLevel === 3 ? "h3" : "h2";
|
|
104
105
|
const Wrapper = section ? "section" : "div";
|
|
105
106
|
if (!selected) return null;
|
|
107
|
+
const selectedIndex = commands.indexOf(selected);
|
|
106
108
|
return /* @__PURE__ */ jsxs(Wrapper, {
|
|
107
109
|
className: cx("agent-connect", className),
|
|
108
110
|
children: [
|
|
@@ -120,21 +122,24 @@ function AgentConnectionPanel({ className, commands: commandsProp, defaultTarget
|
|
|
120
122
|
children: [/* @__PURE__ */ jsx(Heading, { children: "Connect Agent" }), /* @__PURE__ */ jsx("p", { children: selected.description })]
|
|
121
123
|
})]
|
|
122
124
|
}),
|
|
123
|
-
/* @__PURE__ */ jsxs(
|
|
125
|
+
/* @__PURE__ */ jsxs(ToggleGroup.Root, {
|
|
126
|
+
render: /* @__PURE__ */ jsx("fieldset", {}),
|
|
124
127
|
className: "agent-connect__targets",
|
|
128
|
+
size: "sm",
|
|
129
|
+
spacing: 1,
|
|
130
|
+
value: [String(selectedIndex)],
|
|
131
|
+
onValueChange: (nextValue) => {
|
|
132
|
+
const nextIndex = nextValue[0];
|
|
133
|
+
const nextCommand = nextIndex === void 0 ? void 0 : commands[Number(nextIndex)];
|
|
134
|
+
if (nextCommand) setTarget(nextCommand.target);
|
|
135
|
+
},
|
|
125
136
|
children: [/* @__PURE__ */ jsx("legend", {
|
|
126
137
|
className: "agent-connect__legend sigvelo-visually-hidden",
|
|
127
138
|
children: "Agent connection target"
|
|
128
|
-
}), commands.map((command) => /* @__PURE__ */ jsx(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
size: "sm",
|
|
132
|
-
"aria-pressed": command.target === selected.target,
|
|
133
|
-
"data-selected": command.target === selected.target,
|
|
139
|
+
}), commands.map((command, index) => /* @__PURE__ */ jsx(ToggleGroup.Item, {
|
|
140
|
+
type: "button",
|
|
141
|
+
value: String(index),
|
|
134
142
|
className: "agent-connect__target",
|
|
135
|
-
onClick: () => {
|
|
136
|
-
setTarget(command.target);
|
|
137
|
-
},
|
|
138
143
|
children: command.label
|
|
139
144
|
}, command.target))]
|
|
140
145
|
}),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { r as ArrowLeftIcon } from "../../icons-
|
|
2
|
+
import { r as ArrowLeftIcon } from "../../icons-B4mGvCvc.js";
|
|
3
3
|
import { TransitionSurface } from "../foundations/TransitionSurface.js";
|
|
4
|
-
import { SubagentRunActions, SubagentRunMilestone, SubagentRunMilestones, SubagentRunProgress } from "../agents-sdk/SubagentRunDetails.js";
|
|
5
|
-
import { SubagentRunIndicator, getSubagentRunName } from "../agents-sdk/SubagentRunIndicator.js";
|
|
6
|
-
import { t as ThinkChat } from "../../ThinkChat-DbzqSTBt.js";
|
|
7
4
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
8
5
|
import { NaniteMark } from "./NaniteScene.js";
|
|
6
|
+
import { SubagentRunIndicator, getSubagentRunName } from "../agents-sdk/SubagentRunIndicator.js";
|
|
7
|
+
import { SubagentRunActions, SubagentRunMilestone, SubagentRunMilestones, SubagentRunProgress } from "../agents-sdk/SubagentRunDetails.js";
|
|
8
|
+
import { t as ThinkChat } from "../../ThinkChat-DQh59CeC.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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as CheckIcon, g as CopyIcon } from "./icons-
|
|
1
|
+
import { d as CheckIcon, g as CopyIcon } from "./icons-B4mGvCvc.js";
|
|
2
2
|
import { IconButton } from "./components/foundations/IconButton.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getMcpServerIconSrc, getMcpServerRuntimeState } from "./utils/mcp-server-catalog.js";
|
|
1
|
+
import { getMcpServerEntry, getMcpServerIconSrc, getMcpServerRuntimeState } from "./utils/mcp-server-catalog.js";
|
|
2
2
|
import { AppIcon } from "./components/foundations/AppIcon.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/_internal/mcp-server.tsx
|
|
@@ -9,6 +9,22 @@ function getMcpServerConnectionKind(server) {
|
|
|
9
9
|
if (state === "connecting" || state === "discovering" || state === "connected" && !server.error) return "connecting";
|
|
10
10
|
return "reconnect";
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Resolve one catalog card to the exact Agents SDK entry that owns its live
|
|
14
|
+
* connection state. An explicit server ID is authoritative for authorization
|
|
15
|
+
* flows and deliberately never falls back to a matching catalog entry.
|
|
16
|
+
*/
|
|
17
|
+
function getMcpServerProjection(card, mcp, serverId) {
|
|
18
|
+
const assignedServer = serverId === void 0 ? void 0 : mcp?.servers[serverId];
|
|
19
|
+
const entry = serverId === void 0 ? getMcpServerEntry(card, mcp) : assignedServer ? [serverId, assignedServer] : void 0;
|
|
20
|
+
const server = entry?.[1];
|
|
21
|
+
return {
|
|
22
|
+
connectionKind: getMcpServerConnectionKind(server),
|
|
23
|
+
runtimeState: server ? getMcpServerRuntimeState(server) : void 0,
|
|
24
|
+
server,
|
|
25
|
+
serverId: entry?.[0]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
12
28
|
function McpServerIcon({ server, size = "lg", variant }) {
|
|
13
29
|
const src = getMcpServerIconSrc(server);
|
|
14
30
|
return /* @__PURE__ */ jsxs(AppIcon.Root, {
|
|
@@ -23,4 +39,4 @@ function McpServerIcon({ server, size = "lg", variant }) {
|
|
|
23
39
|
});
|
|
24
40
|
}
|
|
25
41
|
//#endregion
|
|
26
|
-
export {
|
|
42
|
+
export { getMcpServerProjection as n, McpServerIcon as t };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//#region src/components/_internal/message-scroller.ts
|
|
2
|
+
const messageScrollerContract = {
|
|
3
|
+
root: {
|
|
4
|
+
className: "message-scroller",
|
|
5
|
+
slot: "message-scroller"
|
|
6
|
+
},
|
|
7
|
+
viewport: {
|
|
8
|
+
ariaLabel: "Messages",
|
|
9
|
+
className: "message-scroller__viewport",
|
|
10
|
+
role: "region",
|
|
11
|
+
slot: "message-scroller-viewport",
|
|
12
|
+
tabIndex: 0
|
|
13
|
+
},
|
|
14
|
+
content: {
|
|
15
|
+
ariaRelevant: "additions",
|
|
16
|
+
className: "message-scroller__content",
|
|
17
|
+
role: "log",
|
|
18
|
+
slot: "message-scroller-content",
|
|
19
|
+
virtualClassName: "message-scroller__virtual-content"
|
|
20
|
+
},
|
|
21
|
+
item: {
|
|
22
|
+
className: "message-scroller__item",
|
|
23
|
+
slot: "message-scroller-item",
|
|
24
|
+
virtualClassName: "message-scroller__virtual-item"
|
|
25
|
+
},
|
|
26
|
+
button: {
|
|
27
|
+
className: "message-scroller__button",
|
|
28
|
+
slot: "message-scroller-button"
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { messageScrollerContract as t };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/_internal/provider-logos.tsx
|
|
4
|
+
function Svg({ children, size = 16, ...props }) {
|
|
5
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
6
|
+
width: size,
|
|
7
|
+
height: size,
|
|
8
|
+
viewBox: "0 0 24 24",
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
"aria-hidden": "true",
|
|
12
|
+
focusable: "false",
|
|
13
|
+
...props,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
const OpenAILogo = (props) => /* @__PURE__ */ jsx(Svg, {
|
|
18
|
+
...props,
|
|
19
|
+
children: /* @__PURE__ */ jsx("path", { d: "M22.28 9.81a5.99 5.99 0 0 0-.52-4.91 6.05 6.05 0 0 0-6.52-2.9A6.05 6.05 0 0 0 10.58 0a6.05 6.05 0 0 0-5.77 4.18 5.99 5.99 0 0 0-4 2.9 6.05 6.05 0 0 0 .74 7.09 5.99 5.99 0 0 0 .52 4.91 6.05 6.05 0 0 0 6.52 2.9A5.99 5.99 0 0 0 13.25 24a6.05 6.05 0 0 0 5.77-4.19 5.99 5.99 0 0 0 4-2.9 6.05 6.05 0 0 0-.74-7.1ZM13.25 22.44a4.48 4.48 0 0 1-2.88-1.04l.14-.08 4.79-2.76a.78.78 0 0 0 .39-.68v-6.75l2.02 1.17c.02 0 .04.03.04.05v5.58a4.5 4.5 0 0 1-4.5 4.5ZM3.57 18.3a4.5 4.5 0 0 1-.54-3.03l.14.09 4.79 2.76a.78.78 0 0 0 .78 0l5.85-3.37v2.33c0 .02 0 .04-.03.06L9.72 19.94a4.5 4.5 0 0 1-6.15-1.64ZM2.31 7.88a4.48 4.48 0 0 1 2.35-1.97v5.69a.78.78 0 0 0 .39.67l5.83 3.36-2.02 1.17a.07.07 0 0 1-.07 0l-4.83-2.8A4.5 4.5 0 0 1 2.3 7.9Zm16.64 3.87L13.1 8.37l2.02-1.17c.02 0 .05-.01.07 0l4.83 2.8a4.5 4.5 0 0 1-.67 8.11V12.4a.77.77 0 0 0-.4-.66Zm2-3.03-.14-.09-4.78-2.78a.78.78 0 0 0-.79 0L9.4 9.25V6.92c0-.02 0-.04.02-.05l4.83-2.79a4.5 4.5 0 0 1 6.68 4.66Zm-12.68 4.17-2.02-1.17a.07.07 0 0 1-.04-.06V6.1a4.5 4.5 0 0 1 7.38-3.45l-.14.08L8.66 5.5a.78.78 0 0 0-.4.68v6.74Zm1.1-2.36 2.6-1.5 2.61 1.5v3l-2.6 1.5-2.6-1.5Z" })
|
|
20
|
+
});
|
|
21
|
+
const AnthropicLogo = (props) => /* @__PURE__ */ jsxs(Svg, {
|
|
22
|
+
...props,
|
|
23
|
+
children: [/* @__PURE__ */ jsx("path", { d: "M13.83 4H17.3L24 20h-3.47l-1.37-3.52h-7L10.82 20H7.36ZM13.25 13.58h4.8l-2.4-6.15Z" }), /* @__PURE__ */ jsx("path", { d: "M0 4h3.47l6.7 16H6.7Z" })]
|
|
24
|
+
});
|
|
25
|
+
const GoogleLogo = (props) => /* @__PURE__ */ jsx(Svg, {
|
|
26
|
+
...props,
|
|
27
|
+
children: /* @__PURE__ */ jsx("path", { d: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 2a8 8 0 0 1 5.34 2.05l-2.2 2.2A5 5 0 1 0 17 12.6h-5v-2.6h7.9A8 8 0 0 1 12 20 8 8 0 0 1 12 4Z" })
|
|
28
|
+
});
|
|
29
|
+
const MetaLogo = (props) => /* @__PURE__ */ jsx(Svg, {
|
|
30
|
+
...props,
|
|
31
|
+
children: /* @__PURE__ */ jsx("path", { d: "M2 12.5c0-3.5 1.8-6.5 4.4-6.5 1.8 0 3.2 1.3 4.9 3.8 2.2 3.2 3.3 5 4.6 5 1 0 1.5-.8 1.5-2.3 0-2.1-1-4.3-2.7-4.3-1 0-2 .6-3.2 2l-1.3-1.7C11.5 6.8 12.9 6 14.5 6c3 0 5.5 3.3 5.5 7 0 3.3-1.6 5-3.8 5-2.3 0-3.6-1.6-6-5.3C8.9 10.4 8 9.2 6.8 9.2 5.4 9.2 4.3 10.6 4.3 13c0 1.8.5 3 1.3 3 .6 0 1.1-.3 1.8-1.1l1.3 1.7C7.6 17.6 6.3 18 5.3 18 3.3 18 2 16 2 12.5Z" })
|
|
32
|
+
});
|
|
33
|
+
const KimiLogo = (props) => /* @__PURE__ */ jsxs(Svg, {
|
|
34
|
+
...props,
|
|
35
|
+
children: [/* @__PURE__ */ jsx("circle", {
|
|
36
|
+
cx: "12",
|
|
37
|
+
cy: "12",
|
|
38
|
+
r: "9.5",
|
|
39
|
+
fill: "none",
|
|
40
|
+
stroke: "currentColor",
|
|
41
|
+
strokeWidth: "1.5"
|
|
42
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
43
|
+
d: "M8 7.5v9M8 12l4.5-4.5M8 12l5 4.5M14 7.5h2.5v9H14z",
|
|
44
|
+
fill: "none",
|
|
45
|
+
stroke: "currentColor",
|
|
46
|
+
strokeWidth: "1.5",
|
|
47
|
+
strokeLinecap: "round",
|
|
48
|
+
strokeLinejoin: "round"
|
|
49
|
+
})]
|
|
50
|
+
});
|
|
51
|
+
const FallbackLogo = (props) => /* @__PURE__ */ jsx(Svg, {
|
|
52
|
+
...props,
|
|
53
|
+
children: /* @__PURE__ */ jsx("circle", {
|
|
54
|
+
cx: "12",
|
|
55
|
+
cy: "12",
|
|
56
|
+
r: "3"
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
/**
|
|
60
|
+
* Resolves a provider string to its logo component.
|
|
61
|
+
* Unknown providers get a neutral dot fallback.
|
|
62
|
+
*/
|
|
63
|
+
function ProviderLogo({ provider, ...props }) {
|
|
64
|
+
switch (provider.toLowerCase()) {
|
|
65
|
+
case "openai": return /* @__PURE__ */ jsx(OpenAILogo, { ...props });
|
|
66
|
+
case "anthropic": return /* @__PURE__ */ jsx(AnthropicLogo, { ...props });
|
|
67
|
+
case "google": return /* @__PURE__ */ jsx(GoogleLogo, { ...props });
|
|
68
|
+
case "meta": return /* @__PURE__ */ jsx(MetaLogo, { ...props });
|
|
69
|
+
case "kimi": return /* @__PURE__ */ jsx(KimiLogo, { ...props });
|
|
70
|
+
default: return /* @__PURE__ */ jsx(FallbackLogo, { ...props });
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
74
|
+
export { ProviderLogo as t };
|
|
@@ -436,6 +436,15 @@
|
|
|
436
436
|
block-size: var(--sigvelo-text-sm);
|
|
437
437
|
}
|
|
438
438
|
|
|
439
|
+
.agent-chat__queued-content {
|
|
440
|
+
font-size: inherit;
|
|
441
|
+
line-height: inherit;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.agent-chat__queued-actions {
|
|
445
|
+
opacity: 1;
|
|
446
|
+
}
|
|
447
|
+
|
|
439
448
|
.agent-chat__queued-action {
|
|
440
449
|
flex: none;
|
|
441
450
|
font-weight: var(--sigvelo-font-weight-normal);
|
|
@@ -49,35 +49,18 @@
|
|
|
49
49
|
text-wrap: pretty;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.agent-connect__targets {
|
|
52
|
+
.agent-connect .agent-connect__targets {
|
|
53
53
|
display: grid;
|
|
54
54
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
55
|
-
gap: var(--sigvelo-spacing-1);
|
|
56
55
|
min-inline-size: 0;
|
|
57
56
|
margin: 0;
|
|
58
57
|
padding: var(--sigvelo-spacing-1);
|
|
59
58
|
border: var(--sigvelo-border-style) var(--sigvelo-border-width)
|
|
60
59
|
var(--sigvelo-color-neutral-border-subtle);
|
|
61
|
-
border-radius: var(--sigvelo-radius-md);
|
|
62
|
-
background: var(--sigvelo-color-neutral-bg-subtle);
|
|
63
60
|
}
|
|
64
61
|
|
|
65
62
|
.agent-connect__target {
|
|
66
|
-
display: inline-flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
justify-content: center;
|
|
69
|
-
min-block-size: var(--sigvelo-spacing-7);
|
|
70
63
|
min-inline-size: 0;
|
|
71
|
-
padding: 0 var(--sigvelo-spacing-2);
|
|
72
|
-
border: 0;
|
|
73
|
-
border-radius: var(--sigvelo-radius-sm);
|
|
74
|
-
background: transparent;
|
|
75
|
-
color: var(--sigvelo-color-text-muted);
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
font: inherit;
|
|
78
|
-
font-size: var(--sigvelo-text-xs);
|
|
79
|
-
font-weight: var(--sigvelo-font-weight-semibold);
|
|
80
|
-
line-height: var(--sigvelo-leading-tight);
|
|
81
64
|
overflow-wrap: anywhere;
|
|
82
65
|
text-align: center;
|
|
83
66
|
}
|
|
@@ -92,23 +75,13 @@
|
|
|
92
75
|
}
|
|
93
76
|
|
|
94
77
|
@media (pointer: coarse) {
|
|
95
|
-
.agent-connect__target {
|
|
78
|
+
.agent-connect .agent-connect__target {
|
|
96
79
|
min-block-size: var(--sigvelo-spacing-10);
|
|
97
80
|
padding-inline: var(--sigvelo-spacing-3);
|
|
98
81
|
}
|
|
99
82
|
}
|
|
100
83
|
|
|
101
|
-
.agent-connect__target
|
|
102
|
-
color: var(--sigvelo-color-text);
|
|
103
|
-
background: color-mix(in oklab, var(--sigvelo-color-neutral-bg-muted), transparent 38%);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.agent-connect__target:focus-visible {
|
|
107
|
-
outline: none;
|
|
108
|
-
box-shadow: var(--sigvelo-recipe-focus-shadow);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.agent-connect__target[data-selected="true"] {
|
|
84
|
+
.agent-connect .agent-connect__target[data-pressed] {
|
|
112
85
|
border-color: var(--sigvelo-color-primary-border-muted);
|
|
113
86
|
background: var(--sigvelo-color-surface);
|
|
114
87
|
color: var(--sigvelo-color-text);
|
|
@@ -174,7 +147,7 @@
|
|
|
174
147
|
border-color: ButtonText;
|
|
175
148
|
}
|
|
176
149
|
|
|
177
|
-
.agent-connect__target[data-
|
|
150
|
+
.agent-connect .agent-connect__target[data-pressed] {
|
|
178
151
|
outline: var(--sigvelo-focus-ring-forced);
|
|
179
152
|
outline-offset: -2px;
|
|
180
153
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
.alert-dialog__backdrop {
|
|
4
4
|
background-color: var(--sigvelo-color-backdrop);
|
|
5
5
|
backdrop-filter: var(--sigvelo-glass-filter);
|
|
6
|
-
z-index: var(--sigvelo-z-overlay);
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
.alert-dialog__popup {
|
|
@@ -13,7 +12,6 @@
|
|
|
13
12
|
inset-block-start: 50%;
|
|
14
13
|
inset-inline-start: 50%;
|
|
15
14
|
translate: -50% -50%;
|
|
16
|
-
z-index: var(--sigvelo-z-overlay);
|
|
17
15
|
inline-size: calc(100% - var(--sigvelo-control-height-sm));
|
|
18
16
|
max-inline-size: 28rem;
|
|
19
17
|
max-block-size: calc(100dvb - var(--sigvelo-control-height-sm));
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* Base UI exposes presence state on popup parts. Keep its state contract in
|
|
3
3
|
* CSS so all anchored surfaces enter, exit, and respect reduced motion alike.
|
|
4
4
|
*/
|
|
5
|
-
.base-ui-positioner
|
|
5
|
+
.base-ui-positioner,
|
|
6
|
+
.base-ui-backdrop,
|
|
7
|
+
.base-ui-modal-popup {
|
|
6
8
|
z-index: var(--sigvelo-z-overlay);
|
|
7
9
|
}
|
|
8
10
|
|
|
@@ -170,26 +172,26 @@
|
|
|
170
172
|
.base-ui-adaptive-viewport[data-activation-direction~="left"] > [data-current][data-starting-style],
|
|
171
173
|
.base-ui-adaptive-viewport[data-activation-direction~="right"]
|
|
172
174
|
> [data-previous][data-ending-style] {
|
|
173
|
-
translate: 25% 0;
|
|
175
|
+
translate: -25% 0;
|
|
174
176
|
opacity: 0;
|
|
175
177
|
}
|
|
176
178
|
|
|
177
179
|
.base-ui-adaptive-viewport[data-activation-direction~="right"]
|
|
178
180
|
> [data-current][data-starting-style],
|
|
179
181
|
.base-ui-adaptive-viewport[data-activation-direction~="left"] > [data-previous][data-ending-style] {
|
|
180
|
-
translate:
|
|
182
|
+
translate: 25% 0;
|
|
181
183
|
opacity: 0;
|
|
182
184
|
}
|
|
183
185
|
|
|
184
186
|
.base-ui-adaptive-viewport[data-activation-direction~="up"] > [data-current][data-starting-style],
|
|
185
187
|
.base-ui-adaptive-viewport[data-activation-direction~="down"] > [data-previous][data-ending-style] {
|
|
186
|
-
translate: 0 25%;
|
|
188
|
+
translate: 0 -25%;
|
|
187
189
|
opacity: 0;
|
|
188
190
|
}
|
|
189
191
|
|
|
190
192
|
.base-ui-adaptive-viewport[data-activation-direction~="down"] > [data-current][data-starting-style],
|
|
191
193
|
.base-ui-adaptive-viewport[data-activation-direction~="up"] > [data-previous][data-ending-style] {
|
|
192
|
-
translate: 0
|
|
194
|
+
translate: 0 25%;
|
|
193
195
|
opacity: 0;
|
|
194
196
|
}
|
|
195
197
|
|
|
@@ -96,8 +96,7 @@
|
|
|
96
96
|
line-height: var(--sigvelo-leading-compact);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
.chatgpt-sign-in__brand-mark
|
|
100
|
-
.chatgpt-sign-in__logo {
|
|
99
|
+
.chatgpt-sign-in__brand-mark {
|
|
101
100
|
display: inline-flex;
|
|
102
101
|
}
|
|
103
102
|
|
|
@@ -198,7 +197,10 @@
|
|
|
198
197
|
scale: 1.06;
|
|
199
198
|
}
|
|
200
199
|
|
|
201
|
-
.chatgpt-sign-in__logo {
|
|
200
|
+
.chatgpt-sign-in__button .chatgpt-sign-in__logo {
|
|
201
|
+
display: block;
|
|
202
|
+
inline-size: var(--sigvelo-control-icon-size-sm);
|
|
203
|
+
block-size: var(--sigvelo-control-icon-size-sm);
|
|
202
204
|
color: inherit;
|
|
203
205
|
}
|
|
204
206
|
|
package/dist/styles/dialog.css
CHANGED
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
.dialog__backdrop {
|
|
16
16
|
background-color: var(--sigvelo-color-backdrop);
|
|
17
17
|
backdrop-filter: var(--sigvelo-glass-filter);
|
|
18
|
-
z-index: var(--sigvelo-z-overlay);
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
.dialog__popup {
|
|
@@ -25,7 +24,6 @@
|
|
|
25
24
|
inset-block-start: 50%;
|
|
26
25
|
inset-inline-start: 50%;
|
|
27
26
|
translate: -50% -50%;
|
|
28
|
-
z-index: var(--sigvelo-z-overlay);
|
|
29
27
|
inline-size: calc(100% - var(--sigvelo-control-height-sm));
|
|
30
28
|
max-inline-size: 32rem;
|
|
31
29
|
max-block-size: calc(100dvb - var(--sigvelo-spacing-8));
|