@mcp-b/react-components 0.11.0 → 0.13.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-B9LD_WF1.d.ts → AgentChat-Br6tKEl8.d.ts} +38 -10
- package/dist/{BrowserLiveView-ZktFZiMD.d.ts → BrowserLiveView-BV5qgFgI.d.ts} +11 -10
- package/dist/{BrowserReplay-6G-mnwcn.d.ts → BrowserReplay-xWvRjRAC.d.ts} +2 -1
- package/dist/{Button-Ct5I6aTu.d.ts → Button-FX_hpqxm.d.ts} +8 -11
- package/dist/{CodeBlock-XNQOupQ3.js → CodeBlock-BUFXG8HW.js} +22 -12
- package/dist/{CodeBlock-CxQXv3C4.d.ts → CodeBlock-DUh9WOGo.d.ts} +13 -7
- package/dist/{Combobox-D9anamNr.d.ts → Combobox-B9Fcd6q-.d.ts} +4 -14
- package/dist/{FileTree-wMyZhhHO.js → FileTree-mpEIcfzA.js} +1 -1
- package/dist/{Menu-B5vDqZe_.d.ts → Menu-Bgu-ufb5.d.ts} +29 -65
- package/dist/{ModelSelector-DXtpcRmT.js → ModelSelector-DVgVBdvw.js} +23 -20
- package/dist/{PromptInput-D6-G24p7.d.ts → PromptInput-p5KmOmt1.d.ts} +313 -89
- package/dist/Select-Dl_vF_Bt.d.ts +213 -0
- package/dist/{Tabs-D9EAq09D.d.ts → Tabs-3Zc4tb9D.d.ts} +9 -6
- package/dist/ThinkChat-7DQ2CogF.js +222 -0
- package/dist/{ThinkChatActivity-B2UD95My.d.ts → ThinkChatActivity-Cuk28Js_.d.ts} +4 -4
- package/dist/ThinkChatContext-C3Eb1Xpi.d.ts +16 -0
- package/dist/{ThinkChatToolParts-DnUiZgCC.d.ts → ThinkChatToolParts-Cv4o7j6F.d.ts} +13 -5
- package/dist/{attachment-preview-ChtC3HiU.js → attachment-preview-DIs50Q0h.js} +3 -3
- package/dist/components/Accordion.d.ts +17 -6
- package/dist/components/Accordion.js +23 -36
- package/dist/components/Activity.d.ts +5 -5
- package/dist/components/Activity.js +9 -9
- package/dist/components/AgentChat.d.ts +1 -1
- package/dist/components/AgentChat.js +354 -132
- package/dist/components/AgentConnection.js +6 -22
- package/dist/components/AlertDialog.d.ts +40 -32
- package/dist/components/AlertDialog.js +46 -39
- package/dist/components/Artifact.d.ts +1 -1
- package/dist/components/Artifact.js +5 -5
- package/dist/components/Autocomplete.js +10 -2
- package/dist/components/Avatar.d.ts +2 -2
- package/dist/components/Avatar.js +3 -3
- package/dist/components/Badge.d.ts +11 -14
- package/dist/components/Badge.js +11 -33
- package/dist/components/BrowserLiveView.d.ts +1 -1
- package/dist/components/BrowserLiveView.js +39 -45
- package/dist/components/BrowserReplay.d.ts +1 -1
- package/dist/components/BrowserReplay.js +4 -4
- package/dist/components/BrowserRunPanel.js +91 -55
- package/dist/components/Button.d.ts +2 -2
- package/dist/components/Button.js +7 -30
- package/dist/components/ChainOfThought.d.ts +5 -5
- package/dist/components/ChainOfThought.js +8 -5
- package/dist/components/ChatGptSignInScreen.js +3 -3
- package/dist/components/Checkbox.d.ts +10 -2
- package/dist/components/Checkbox.js +13 -6
- package/dist/components/CheckboxGroup.d.ts +6 -6
- package/dist/components/CheckboxGroup.js +6 -6
- package/dist/components/CodeBlock.d.ts +1 -1
- package/dist/components/CodeBlock.js +1 -1
- package/dist/components/CodexModelSelector.d.ts +58 -0
- package/dist/components/CodexModelSelector.js +170 -0
- package/dist/components/Collapsible.d.ts +2 -4
- package/dist/components/Collapsible.js +9 -7
- package/dist/components/Combobox.d.ts +2 -2
- package/dist/components/Combobox.js +20 -22
- package/dist/components/Commit.d.ts +6 -6
- package/dist/components/Commit.js +14 -26
- package/dist/components/Context.js +5 -1
- package/dist/components/ContextMenu.d.ts +20 -72
- package/dist/components/ContextMenu.js +46 -56
- package/dist/components/Conversation.d.ts +3 -7
- package/dist/components/Conversation.js +3 -4
- package/dist/components/Dialog.d.ts +38 -30
- package/dist/components/Dialog.js +46 -34
- package/dist/components/EnvironmentVariables.d.ts +2 -7
- package/dist/components/EnvironmentVariables.js +13 -36
- package/dist/components/Field.d.ts +3 -3
- package/dist/components/Field.js +7 -8
- package/dist/components/Fieldset.d.ts +2 -2
- package/dist/components/Fieldset.js +2 -2
- package/dist/components/FileTree.js +1 -1
- package/dist/components/Label.d.ts +1 -1
- package/dist/components/Label.js +1 -1
- package/dist/components/Marker.js +1 -15
- package/dist/components/McpServerPicker.d.ts +31 -6
- package/dist/components/McpServerPicker.js +136 -72
- package/dist/components/Menu.d.ts +2 -2
- package/dist/components/Menu.js +41 -51
- package/dist/components/Menubar.d.ts +16 -52
- package/dist/components/Menubar.js +44 -56
- package/dist/components/Message.d.ts +4 -3
- package/dist/components/Message.js +16 -9
- package/dist/components/MessageScroller.d.ts +1 -1
- package/dist/components/MessageScroller.js +1 -1
- package/dist/components/Meter.js +5 -0
- package/dist/components/ModelSelector.d.ts +12 -9
- package/dist/components/ModelSelector.js +1 -1
- package/dist/components/NavigationMenu.d.ts +3 -14
- package/dist/components/NavigationMenu.js +22 -38
- package/dist/components/NumberField.js +6 -0
- package/dist/components/Popover.d.ts +21 -44
- package/dist/components/Popover.js +33 -23
- package/dist/components/PreviewCard.d.ts +20 -18
- package/dist/components/PreviewCard.js +30 -20
- package/dist/components/PricingPage.js +30 -29
- package/dist/components/Progress.d.ts +7 -3
- package/dist/components/Progress.js +9 -4
- package/dist/components/PromptInput.d.ts +2 -2
- package/dist/components/PromptInput.js +184 -148
- package/dist/components/Queue.d.ts +8 -19
- package/dist/components/Queue.js +6 -6
- package/dist/components/RadioGroup.d.ts +10 -9
- package/dist/components/RadioGroup.js +8 -9
- package/dist/components/Reasoning.d.ts +4 -4
- package/dist/components/Reasoning.js +12 -21
- package/dist/components/ScrollArea.d.ts +2 -9
- package/dist/components/ScrollArea.js +5 -23
- package/dist/components/Select.d.ts +2 -2
- package/dist/components/Select.js +100 -134
- package/dist/components/Slider.d.ts +10 -7
- package/dist/components/Slider.js +12 -11
- package/dist/components/Sources.d.ts +4 -4
- package/dist/components/Sources.js +8 -5
- package/dist/components/Stepper.js +2 -8
- package/dist/components/Switch.d.ts +6 -3
- package/dist/components/Switch.js +7 -4
- package/dist/components/Tabs.d.ts +2 -2
- package/dist/components/Tabs.js +9 -4
- package/dist/components/Task.d.ts +4 -4
- package/dist/components/Task.js +10 -6
- package/dist/components/Terminal.d.ts +2 -2
- package/dist/components/Terminal.js +5 -5
- package/dist/components/TestResults.d.ts +4 -4
- package/dist/components/TestResults.js +5 -5
- package/dist/components/ThinkChat.d.ts +37 -30
- package/dist/components/ThinkChat.js +1 -152
- package/dist/components/ThinkChatActivity.d.ts +2 -2
- package/dist/components/ThinkChatActivity.js +4 -11
- package/dist/components/ThinkChatContext.d.ts +2 -2
- package/dist/components/ThinkChatContext.js +9 -2
- package/dist/components/ThinkChatToolPanels.d.ts +1 -1
- package/dist/components/ThinkChatToolPanels.js +27 -15
- package/dist/components/ThinkChatToolParts.d.ts +1 -1
- package/dist/components/ThinkExecutionWorkbench.d.ts +10 -7
- package/dist/components/ThinkExecutionWorkbench.js +382 -359
- package/dist/components/ThinkFullApp.d.ts +16 -13
- package/dist/components/ThinkFullApp.js +35 -25
- package/dist/components/ThinkThreadPicker.d.ts +1 -31
- package/dist/components/ThinkThreadPicker.js +32 -171
- package/dist/components/ThinkThreadShell.d.ts +35 -0
- package/dist/components/ThinkThreadShell.js +146 -0
- package/dist/components/Toast.js +7 -0
- package/dist/components/ToggleGroup.d.ts +6 -2
- package/dist/components/ToggleGroup.js +6 -2
- package/dist/components/Toolbar.js +6 -0
- package/dist/components/Tooltip.d.ts +36 -27
- package/dist/components/Tooltip.js +45 -29
- package/dist/components/WebPreview.d.ts +1 -1
- package/dist/components/WebPreview.js +3 -3
- package/dist/components/WorkspaceExplorer.d.ts +6 -8
- package/dist/components/WorkspaceExplorer.js +9 -7
- package/dist/components/icons.d.ts +2 -2
- package/dist/components/icons.js +2 -2
- package/dist/{copy-button-C6JSKtFE.js → copy-button-DUMLYdsk.js} +7 -6
- package/dist/{copy-button-BKXqGiNm.d.ts → copy-button-DtPMgN7e.d.ts} +3 -2
- package/dist/icons-Ba9THQKz.js +64 -0
- package/dist/icons-CUCz_Sft.d.ts +210 -0
- package/dist/merge-refs-DF_7w2x_.js +18 -0
- package/dist/styles/accessibility.css +14 -0
- package/dist/styles/accordion.css +21 -61
- package/dist/styles/activity.css +23 -58
- package/dist/styles/agent-chat.css +49 -5
- package/dist/styles/agent-connection.css +8 -10
- package/dist/styles/alert-dialog.css +20 -26
- package/dist/styles/artifact.css +6 -6
- package/dist/styles/attachment-preview.css +1 -1
- package/dist/styles/autocomplete.css +5 -170
- package/dist/styles/avatar.css +8 -8
- package/dist/styles/badge.css +8 -10
- package/dist/styles/base-ui-motion.css +176 -0
- package/dist/styles/base.css +19 -25
- package/dist/styles/browser-live-view.css +7 -7
- package/dist/styles/browser-replay.css +5 -5
- package/dist/styles/browser-run-panel.css +59 -112
- package/dist/styles/button.css +48 -43
- package/dist/styles/card.css +3 -5
- package/dist/styles/chain-of-thought.css +14 -70
- package/dist/styles/chatgpt-sign-in-screen.css +3 -3
- package/dist/styles/checkbox-group.css +1 -1
- package/dist/styles/checkbox.css +3 -7
- package/dist/styles/code-block.css +10 -10
- package/dist/styles/codex-model-selector.css +186 -0
- package/dist/styles/collapsible.css +11 -27
- package/dist/styles/combobox.css +3 -149
- package/dist/styles/commit.css +19 -35
- package/dist/styles/context-menu.css +1 -77
- package/dist/styles/context.css +12 -12
- package/dist/styles/conversation.css +7 -7
- package/dist/styles/dialog.css +34 -55
- package/dist/styles/environment-variables.css +10 -10
- package/dist/styles/field.css +16 -58
- package/dist/styles/fieldset.css +2 -2
- package/dist/styles/file-tree.css +7 -9
- package/dist/styles/index.css +12 -2
- package/dist/styles/input.css +1 -51
- package/dist/styles/label.css +2 -2
- package/dist/styles/marker.css +2 -4
- package/dist/styles/mcp-server-picker.css +66 -19
- package/dist/styles/menu.css +6 -153
- package/dist/styles/menubar.css +6 -105
- package/dist/styles/message-scroller.css +1 -1
- package/dist/styles/message.css +87 -9
- package/dist/styles/meter.css +4 -20
- package/dist/styles/model-selector.css +32 -20
- package/dist/styles/navigation-menu.css +14 -54
- package/dist/styles/number-field.css +8 -23
- package/dist/styles/popover.css +13 -68
- package/dist/styles/preview-card.css +5 -46
- package/dist/styles/pricing-page.css +43 -43
- package/dist/styles/progress.css +7 -16
- package/dist/styles/prompt-input.css +100 -44
- package/dist/styles/queue.css +12 -28
- package/dist/styles/radio.css +4 -8
- package/dist/styles/reasoning.css +3 -62
- package/dist/styles/recipes.css +475 -0
- package/dist/styles/select.css +7 -103
- package/dist/styles/shell.css +3 -3
- package/dist/styles/slider.css +5 -7
- package/dist/styles/sources.css +9 -66
- package/dist/styles/stepper.css +16 -14
- package/dist/styles/streamdown.css +11 -57
- package/dist/styles/switch.css +4 -7
- package/dist/styles/tabs.css +7 -8
- package/dist/styles/task.css +13 -42
- package/dist/styles/terminal.css +7 -7
- package/dist/styles/test-results.css +21 -37
- package/dist/styles/think-execution-workbench.css +337 -0
- package/dist/styles/think-full-app.css +27 -410
- package/dist/styles/think-resize-handle.css +33 -0
- package/dist/styles/think-thread-picker.css +18 -247
- package/dist/styles/think-thread-shell.css +219 -0
- package/dist/styles/toast.css +14 -25
- package/dist/styles/toggle-group.css +16 -14
- package/dist/styles/toggle.css +14 -15
- package/dist/styles/toolbar.css +13 -25
- package/dist/styles/tooltip.css +6 -16
- package/dist/styles/web-preview.css +15 -15
- package/dist/styles/workspace-explorer.css +21 -14
- package/dist/summarize-tool-input-BUJsENSn.js +12 -0
- package/dist/utils/codex-model-catalog.d.ts +142 -0
- package/dist/utils/codex-model-catalog.js +112 -0
- package/dist/utils/structured-code.d.ts +1 -1
- package/package.json +8 -2
- package/dist/Select-CRsKCJ9x.d.ts +0 -200
- package/dist/ThinkChatContext-BLAAb8J5.d.ts +0 -28
- package/dist/components/McpServerConnections.d.ts +0 -41
- package/dist/components/McpServerConnections.js +0 -188
- package/dist/components/useStickToBottom.d.ts +0 -33
- package/dist/components/useStickToBottom.js +0 -107
- package/dist/icons-CbjtbIJK.d.ts +0 -51
- package/dist/icons-D2Q5n5C1.js +0 -291
- package/dist/styles/mcp-server-connections.css +0 -145
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { t as cx } from "./class-names-9UtZwb0J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { j as SearchIcon, o as ChevronDownIcon } from "./icons-Ba9THQKz.js";
|
|
3
|
+
import { Separator } from "./components/Separator.js";
|
|
3
4
|
import { Button } from "./components/Button.js";
|
|
4
|
-
import { Dialog
|
|
5
|
+
import { Dialog } from "./components/Dialog.js";
|
|
6
|
+
import { Input } from "./components/Input.js";
|
|
5
7
|
import * as React from "react";
|
|
6
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
9
|
//#region src/components/_internal/provider-logos.tsx
|
|
@@ -213,13 +215,13 @@ function useModelSelectorContext() {
|
|
|
213
215
|
* multiselect; use Combobox or a dedicated component for that.
|
|
214
216
|
*
|
|
215
217
|
* Sigvelo changes: composes the design-system Dialog and Button, filters item
|
|
216
|
-
* children locally, and maps provider logos plus
|
|
218
|
+
* children locally, and maps provider logos plus button-list styling to Sigvelo
|
|
217
219
|
* CSS tokens.
|
|
218
220
|
*
|
|
219
|
-
* The dialog owns focus while open,
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
221
|
+
* The dialog owns focus while open, and options are native buttons in grouped
|
|
222
|
+
* sections. Styling consumes surface, border, spacing, radius, focus, and
|
|
223
|
+
* typography tokens. Add provider/item affordances here when they need to be
|
|
224
|
+
* shared.
|
|
223
225
|
*
|
|
224
226
|
* @example
|
|
225
227
|
* ```tsx
|
|
@@ -268,7 +270,7 @@ function ModelSelector({ open, defaultOpen = false, onOpenChange, children, clas
|
|
|
268
270
|
ref,
|
|
269
271
|
className: cx("model-selector", className),
|
|
270
272
|
...props,
|
|
271
|
-
children: /* @__PURE__ */ jsx(Dialog, {
|
|
273
|
+
children: /* @__PURE__ */ jsx(Dialog.Root, {
|
|
272
274
|
open: currentOpen,
|
|
273
275
|
onOpenChange: handleOpenChange,
|
|
274
276
|
children
|
|
@@ -338,7 +340,7 @@ function CloudflareModelSelector({ models, selectedModelId = null, onSelectModel
|
|
|
338
340
|
});
|
|
339
341
|
}
|
|
340
342
|
function ModelSelectorTrigger({ className, children, ...props }) {
|
|
341
|
-
return /* @__PURE__ */ jsx(
|
|
343
|
+
return /* @__PURE__ */ jsx(Dialog.Trigger, { render: /* @__PURE__ */ jsxs(Button, {
|
|
342
344
|
variant: "outline",
|
|
343
345
|
color: "neutral",
|
|
344
346
|
className: cx("model-selector__trigger", className),
|
|
@@ -351,13 +353,13 @@ function ModelSelectorTrigger({ className, children, ...props }) {
|
|
|
351
353
|
}) });
|
|
352
354
|
}
|
|
353
355
|
function ModelSelectorContent({ children, title = "Model Selector", ...props }) {
|
|
354
|
-
return /* @__PURE__ */ jsxs(
|
|
356
|
+
return /* @__PURE__ */ jsxs(Dialog.Portal, { children: [/* @__PURE__ */ jsx(Dialog.Backdrop, {}), /* @__PURE__ */ jsx(Dialog.Viewport, { children: /* @__PURE__ */ jsxs(Dialog.Popup, {
|
|
355
357
|
...props,
|
|
356
|
-
children: [/* @__PURE__ */ jsx(
|
|
358
|
+
children: [/* @__PURE__ */ jsx(Dialog.Title, {
|
|
357
359
|
className: "model-selector__title",
|
|
358
360
|
children: title
|
|
359
361
|
}), children]
|
|
360
|
-
})] });
|
|
362
|
+
}) })] });
|
|
361
363
|
}
|
|
362
364
|
function ModelSelectorDialog({ className, children, ref, ...props }) {
|
|
363
365
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -375,7 +377,7 @@ function ModelSelectorInput({ className, placeholder = "Search models…", ref,
|
|
|
375
377
|
className: "model-selector__search-icon",
|
|
376
378
|
"aria-hidden": "true",
|
|
377
379
|
children: /* @__PURE__ */ jsx(SearchIcon, {})
|
|
378
|
-
}), /* @__PURE__ */ jsx(
|
|
380
|
+
}), /* @__PURE__ */ jsx(Input, {
|
|
379
381
|
ref,
|
|
380
382
|
type: "search",
|
|
381
383
|
value: query,
|
|
@@ -390,7 +392,6 @@ function ModelSelectorInput({ className, placeholder = "Search models…", ref,
|
|
|
390
392
|
function ModelSelectorList({ className, children, ref, ...props }) {
|
|
391
393
|
return /* @__PURE__ */ jsx("div", {
|
|
392
394
|
ref,
|
|
393
|
-
role: "listbox",
|
|
394
395
|
className: cx("model-selector__list", className),
|
|
395
396
|
...props,
|
|
396
397
|
children
|
|
@@ -398,6 +399,7 @@ function ModelSelectorList({ className, children, ref, ...props }) {
|
|
|
398
399
|
}
|
|
399
400
|
function ModelSelectorGroup({ className, label, children, ref, ...props }) {
|
|
400
401
|
const { query } = useModelSelectorContext();
|
|
402
|
+
const labelId = React.useId();
|
|
401
403
|
const childArray = React.Children.toArray(children).filter((child) => React.isValidElement(child));
|
|
402
404
|
const q = query.trim().toLowerCase();
|
|
403
405
|
const filtered = q ? childArray.filter((child) => {
|
|
@@ -409,10 +411,11 @@ function ModelSelectorGroup({ className, label, children, ref, ...props }) {
|
|
|
409
411
|
return /* @__PURE__ */ jsxs("div", {
|
|
410
412
|
ref,
|
|
411
413
|
role: "group",
|
|
412
|
-
"aria-
|
|
414
|
+
"aria-labelledby": labelId,
|
|
413
415
|
className: cx("model-selector__group", className),
|
|
414
416
|
...props,
|
|
415
417
|
children: [/* @__PURE__ */ jsx("div", {
|
|
418
|
+
id: labelId,
|
|
416
419
|
className: "model-selector__group-label",
|
|
417
420
|
children: label
|
|
418
421
|
}), filtered]
|
|
@@ -425,11 +428,11 @@ function ModelSelectorItem({ className, value, keywords, selected, onSelect, chi
|
|
|
425
428
|
onSelectItem();
|
|
426
429
|
onClick?.(e);
|
|
427
430
|
};
|
|
428
|
-
return /* @__PURE__ */ jsx(
|
|
431
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
429
432
|
ref,
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
"aria-selected":
|
|
433
|
+
variant: "ghost",
|
|
434
|
+
color: "neutral",
|
|
435
|
+
"aria-current": selected ? "true" : void 0,
|
|
433
436
|
"data-selected": selected ? "" : void 0,
|
|
434
437
|
className: cx("model-selector__item", className),
|
|
435
438
|
onClick: handleClick,
|
|
@@ -446,7 +449,7 @@ function ModelSelectorEmpty({ className, children = "No models found", ref, ...p
|
|
|
446
449
|
});
|
|
447
450
|
}
|
|
448
451
|
function ModelSelectorSeparator({ className, ref, ...props }) {
|
|
449
|
-
return /* @__PURE__ */ jsx(
|
|
452
|
+
return /* @__PURE__ */ jsx(Separator, {
|
|
450
453
|
ref,
|
|
451
454
|
className: cx("model-selector__separator", className),
|
|
452
455
|
...props
|
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { r as ButtonProps } from "./Button-
|
|
1
|
+
import { _ as SelectTriggerProps, a as SelectIconProps, c as SelectItemTextProps, f as SelectPositionerProps, g as SelectSeparatorProps, h as SelectScrollUpArrowProps, i as SelectGroupProps, l as SelectListProps, m as SelectScrollDownArrowProps, n as SelectBackdropProps, o as SelectItemIndicatorProps, p as SelectProps, r as SelectGroupLabelProps, s as SelectItemProps, t as Select, u as SelectPopupProps, v as SelectValueProps } from "./Select-Dl_vF_Bt.js";
|
|
2
|
+
import { i as TabsListProps, n as TabProps, r as Tabs, t as TabPanelProps } from "./Tabs-3Zc4tb9D.js";
|
|
3
|
+
import { t as Combobox } from "./Combobox-B9Fcd6q-.js";
|
|
4
|
+
import { d as MenuProps, s as MenuItemProps, t as Menu } from "./Menu-Bgu-ufb5.js";
|
|
5
|
+
import { r as ButtonProps } from "./Button-FX_hpqxm.js";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { ChatAddToolApproveResponseFunction, ChatStatus, DynamicToolUIPart, FileUIPart, ToolUIPart, UIMessage } from "ai";
|
|
8
|
-
import { PendingApproval } from "@cloudflare/think";
|
|
8
|
+
import { PendingApproval, Think } from "@cloudflare/think";
|
|
9
|
+
import { AgentStub } from "agents/client";
|
|
10
|
+
import { UseVoiceInputReturn } from "@cloudflare/voice/react";
|
|
9
11
|
|
|
10
12
|
//#region src/components/PromptInput.d.ts
|
|
11
|
-
interface PromptInputReferencedSource {
|
|
12
|
-
id?: string;
|
|
13
|
-
title?: string;
|
|
14
|
-
url?: string;
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
}
|
|
17
13
|
/** The payload produced when the prompt input is submitted. */
|
|
18
14
|
interface PromptInputMessage {
|
|
19
15
|
text: string;
|
|
@@ -39,18 +35,9 @@ interface PromptInputControllerProps {
|
|
|
39
35
|
attachments: AttachmentsContext;
|
|
40
36
|
__registerFileInput: (ref: React.RefObject<HTMLInputElement | null>, open: () => void) => void;
|
|
41
37
|
}
|
|
42
|
-
interface ReferencedSourcesContext {
|
|
43
|
-
sources: Array<PromptInputReferencedSource & {
|
|
44
|
-
id: string;
|
|
45
|
-
}>;
|
|
46
|
-
add: (sources: PromptInputReferencedSource[] | PromptInputReferencedSource) => void;
|
|
47
|
-
remove: (id: string) => void;
|
|
48
|
-
clear: () => void;
|
|
49
|
-
}
|
|
50
38
|
declare function usePromptInputController(): PromptInputControllerProps;
|
|
51
39
|
declare function useProviderAttachments(): AttachmentsContext;
|
|
52
40
|
declare function usePromptInputAttachments(): AttachmentsContext;
|
|
53
|
-
declare function usePromptInputReferencedSources(): ReferencedSourcesContext;
|
|
54
41
|
interface PromptInputProviderProps extends React.PropsWithChildren {
|
|
55
42
|
initialInput?: string;
|
|
56
43
|
}
|
|
@@ -86,8 +73,8 @@ interface PromptInputProps extends Omit<React.FormHTMLAttributes<HTMLFormElement
|
|
|
86
73
|
*
|
|
87
74
|
* Use for assistant/chat submit forms. Do not use it as a generic textarea or
|
|
88
75
|
* non-chat form. Sigvelo changes: uses shared Menu, Select, Combobox, Tabs,
|
|
89
|
-
* Button, and Tooltip components; maps styles to CSS tokens; adds local
|
|
90
|
-
* attachment
|
|
76
|
+
* Button, and Tooltip components; maps styles to CSS tokens; and adds local
|
|
77
|
+
* attachment helpers.
|
|
91
78
|
*
|
|
92
79
|
* The form handles Enter-to-submit while multiline editing remains in the
|
|
93
80
|
* textarea. Attachment controls need accessible labels through their buttons
|
|
@@ -121,7 +108,6 @@ declare function PromptInput({
|
|
|
121
108
|
onError,
|
|
122
109
|
onSubmit,
|
|
123
110
|
children,
|
|
124
|
-
id,
|
|
125
111
|
ref,
|
|
126
112
|
...props
|
|
127
113
|
}: PromptInputProps & {
|
|
@@ -246,6 +232,23 @@ declare function PromptInputButton({
|
|
|
246
232
|
}: PromptInputButtonProps & {
|
|
247
233
|
ref?: React.Ref<HTMLButtonElement>;
|
|
248
234
|
}): React.JSX.Element;
|
|
235
|
+
interface PromptInputDictationProps extends Omit<PromptInputButtonProps, "children" | "onClick" | "tooltip"> {
|
|
236
|
+
/** The whole upstream `useVoiceInput` result; authentication and transport stay in the host. */
|
|
237
|
+
voice: UseVoiceInputReturn;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Voice-dictation control for PromptInput. Final upstream transcripts are
|
|
241
|
+
* appended to the composer while interim text remains ephemeral.
|
|
242
|
+
*/
|
|
243
|
+
declare function PromptInputDictation({
|
|
244
|
+
voice,
|
|
245
|
+
className,
|
|
246
|
+
disabled,
|
|
247
|
+
ref,
|
|
248
|
+
...props
|
|
249
|
+
}: PromptInputDictationProps & {
|
|
250
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
251
|
+
}): React.JSX.Element;
|
|
249
252
|
type PromptInputActionMenuProps = MenuProps;
|
|
250
253
|
declare function PromptInputActionMenu(props: PromptInputActionMenuProps): React.JSX.Element;
|
|
251
254
|
type PromptInputActionMenuTriggerProps = PromptInputButtonProps;
|
|
@@ -254,10 +257,23 @@ declare function PromptInputActionMenuTrigger({
|
|
|
254
257
|
children,
|
|
255
258
|
...props
|
|
256
259
|
}: PromptInputActionMenuTriggerProps): React.JSX.Element;
|
|
257
|
-
type PromptInputActionMenuContentProps =
|
|
260
|
+
type PromptInputActionMenuContentProps = React.ComponentProps<typeof Menu.Popup> & Pick<React.ComponentProps<typeof Menu.Positioner>, "anchor" | "positionMethod" | "side" | "sideOffset" | "align" | "alignOffset" | "collisionBoundary" | "collisionPadding" | "sticky" | "arrowPadding" | "disableAnchorTracking" | "collisionAvoidance">;
|
|
258
261
|
declare function PromptInputActionMenuContent({
|
|
262
|
+
anchor,
|
|
263
|
+
positionMethod,
|
|
264
|
+
side,
|
|
265
|
+
sideOffset,
|
|
266
|
+
align,
|
|
267
|
+
alignOffset,
|
|
268
|
+
collisionBoundary,
|
|
269
|
+
collisionPadding,
|
|
270
|
+
sticky,
|
|
271
|
+
arrowPadding,
|
|
272
|
+
disableAnchorTracking,
|
|
273
|
+
collisionAvoidance,
|
|
259
274
|
className,
|
|
260
275
|
children,
|
|
276
|
+
tabIndex,
|
|
261
277
|
...props
|
|
262
278
|
}: PromptInputActionMenuContentProps): React.JSX.Element;
|
|
263
279
|
type PromptInputActionMenuItemProps = MenuItemProps;
|
|
@@ -324,27 +340,6 @@ declare function PromptInputSubmit({
|
|
|
324
340
|
}: PromptInputSubmitProps & {
|
|
325
341
|
ref?: React.Ref<HTMLButtonElement>;
|
|
326
342
|
}): React.JSX.Element;
|
|
327
|
-
/**
|
|
328
|
-
* Resolve Think execution approvals that do not use the AI SDK
|
|
329
|
-
* `approval-requested` part: paused codemode executions and durable-pause
|
|
330
|
-
* approvals from `pendingApprovals()`. Wire to the Think agent's
|
|
331
|
-
* client-callable RPCs:
|
|
332
|
-
*
|
|
333
|
-
* ```tsx
|
|
334
|
-
* executionApprovals={{
|
|
335
|
-
* approve: (id) => agent.stub.approveExecution(id),
|
|
336
|
-
* reject: (id, reason) => agent.stub.rejectExecution(id, reason),
|
|
337
|
-
* }}
|
|
338
|
-
* ```
|
|
339
|
-
*
|
|
340
|
-
* On approve, upstream resumes or runs the parked execution and auto-continues
|
|
341
|
-
* the chat. Both RPCs are idempotent, so a stale click resolves to "already
|
|
342
|
-
* handled".
|
|
343
|
-
*/
|
|
344
|
-
interface ExecutionApprovals {
|
|
345
|
-
approve: (executionId: string) => unknown;
|
|
346
|
-
reject: (executionId: string, reason?: string) => unknown;
|
|
347
|
-
}
|
|
348
343
|
/** The id a response must carry: the approval id, or the paused run's executionId. */
|
|
349
344
|
declare function getApprovalRequestId(part: ToolUIPart | DynamicToolUIPart): string | undefined;
|
|
350
345
|
/** Component-local identity: paused executions can ask for multiple approvals. */
|
|
@@ -371,8 +366,10 @@ interface PromptInputApprovalProps extends Omit<React.HTMLAttributes<HTMLDivElem
|
|
|
371
366
|
approval?: PendingApproval;
|
|
372
367
|
/** Pass `addToolApprovalResponse` from `useAgentChat`/`useChat` directly. */
|
|
373
368
|
onRespond?: ChatAddToolApproveResponseFunction;
|
|
374
|
-
/**
|
|
375
|
-
|
|
369
|
+
/** Whole upstream Think stub used to resolve execution approvals instead of `onRespond`. */
|
|
370
|
+
thinkStub?: AgentStub<Think>;
|
|
371
|
+
/** Called after a Think approve/reject RPC settles, including when it rejects. */
|
|
372
|
+
onExecutionSettled?: () => void | Promise<void>;
|
|
376
373
|
/**
|
|
377
374
|
* Renders a Skip action that dismisses the confirmation without responding —
|
|
378
375
|
* the approval stays pending upstream.
|
|
@@ -394,7 +391,8 @@ declare function PromptInputApproval({
|
|
|
394
391
|
part,
|
|
395
392
|
approval: durableApproval,
|
|
396
393
|
onRespond,
|
|
397
|
-
|
|
394
|
+
thinkStub,
|
|
395
|
+
onExecutionSettled,
|
|
398
396
|
onSkip,
|
|
399
397
|
question,
|
|
400
398
|
count,
|
|
@@ -404,16 +402,121 @@ declare function PromptInputApproval({
|
|
|
404
402
|
}: PromptInputApprovalProps & {
|
|
405
403
|
ref?: React.Ref<HTMLDivElement>;
|
|
406
404
|
}): React.JSX.Element | null;
|
|
407
|
-
type PromptInputSelectProps =
|
|
408
|
-
declare const PromptInputSelect:
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
405
|
+
type PromptInputSelectProps = React.ComponentProps<typeof Select.Root>;
|
|
406
|
+
declare const PromptInputSelect: {
|
|
407
|
+
Root: <Value>(props: SelectProps<Value>) => React.JSX.Element;
|
|
408
|
+
Label: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").SelectLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
409
|
+
Trigger: ({
|
|
410
|
+
size,
|
|
411
|
+
className,
|
|
412
|
+
ref,
|
|
413
|
+
...props
|
|
414
|
+
}: SelectTriggerProps & {
|
|
415
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
416
|
+
}) => React.JSX.Element;
|
|
417
|
+
Value: ({
|
|
418
|
+
placeholder,
|
|
419
|
+
children,
|
|
420
|
+
ref,
|
|
421
|
+
...props
|
|
422
|
+
}: SelectValueProps & {
|
|
423
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
424
|
+
}) => React.JSX.Element;
|
|
425
|
+
Icon: ({
|
|
426
|
+
className,
|
|
427
|
+
children,
|
|
428
|
+
ref,
|
|
429
|
+
...props
|
|
430
|
+
}: SelectIconProps) => React.JSX.Element;
|
|
431
|
+
Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").SelectPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
432
|
+
Backdrop: ({
|
|
433
|
+
className,
|
|
434
|
+
ref,
|
|
435
|
+
...props
|
|
436
|
+
}: SelectBackdropProps) => React.JSX.Element;
|
|
437
|
+
Positioner: ({
|
|
438
|
+
className,
|
|
439
|
+
ref,
|
|
440
|
+
...props
|
|
441
|
+
}: SelectPositionerProps & {
|
|
442
|
+
className?: string;
|
|
443
|
+
} & {
|
|
444
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
445
|
+
}) => React.JSX.Element;
|
|
446
|
+
Popup: ({
|
|
447
|
+
className,
|
|
448
|
+
ref,
|
|
449
|
+
...props
|
|
450
|
+
}: SelectPopupProps & {
|
|
451
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
452
|
+
}) => React.JSX.Element;
|
|
453
|
+
Arrow: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").SelectArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
454
|
+
List: ({
|
|
455
|
+
className,
|
|
456
|
+
ref,
|
|
457
|
+
...props
|
|
458
|
+
}: SelectListProps & {
|
|
459
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
460
|
+
}) => React.JSX.Element;
|
|
461
|
+
Item: ({
|
|
462
|
+
className,
|
|
463
|
+
value,
|
|
464
|
+
ref,
|
|
465
|
+
...props
|
|
466
|
+
}: SelectItemProps & {
|
|
467
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
468
|
+
}) => React.JSX.Element;
|
|
469
|
+
ItemText: ({
|
|
470
|
+
className,
|
|
471
|
+
ref,
|
|
472
|
+
...props
|
|
473
|
+
}: SelectItemTextProps) => React.JSX.Element;
|
|
474
|
+
ItemIndicator: ({
|
|
475
|
+
className,
|
|
476
|
+
children,
|
|
477
|
+
ref,
|
|
478
|
+
...props
|
|
479
|
+
}: SelectItemIndicatorProps) => React.JSX.Element;
|
|
480
|
+
Separator: ({
|
|
481
|
+
className,
|
|
482
|
+
ref,
|
|
483
|
+
...props
|
|
484
|
+
}: SelectSeparatorProps & {
|
|
485
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
486
|
+
}) => React.JSX.Element;
|
|
487
|
+
Group: ({
|
|
488
|
+
label,
|
|
489
|
+
className,
|
|
490
|
+
children,
|
|
491
|
+
ref,
|
|
492
|
+
...props
|
|
493
|
+
}: SelectGroupProps & {
|
|
494
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
495
|
+
}) => React.JSX.Element;
|
|
496
|
+
GroupLabel: ({
|
|
497
|
+
className,
|
|
498
|
+
ref,
|
|
499
|
+
...props
|
|
500
|
+
}: SelectGroupLabelProps & {
|
|
501
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
502
|
+
}) => React.JSX.Element;
|
|
503
|
+
ScrollUpArrow: ({
|
|
504
|
+
className,
|
|
505
|
+
children,
|
|
506
|
+
ref,
|
|
507
|
+
...props
|
|
508
|
+
}: SelectScrollUpArrowProps & {
|
|
509
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
510
|
+
}) => React.JSX.Element;
|
|
511
|
+
ScrollDownArrow: ({
|
|
512
|
+
className,
|
|
513
|
+
children,
|
|
514
|
+
ref,
|
|
515
|
+
...props
|
|
516
|
+
}: SelectScrollDownArrowProps & {
|
|
517
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
518
|
+
}) => React.JSX.Element;
|
|
519
|
+
};
|
|
417
520
|
interface PromptInputHoverCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
418
521
|
openDelay?: number;
|
|
419
522
|
closeDelay?: number;
|
|
@@ -444,12 +547,31 @@ declare function PromptInputHoverCardContent({
|
|
|
444
547
|
}: PromptInputHoverCardContentProps & {
|
|
445
548
|
ref?: React.Ref<HTMLDivElement>;
|
|
446
549
|
}): React.JSX.Element | null;
|
|
447
|
-
type PromptInputTabsListProps = React.ComponentPropsWithoutRef<typeof
|
|
448
|
-
declare const PromptInputTabsList:
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
550
|
+
type PromptInputTabsListProps = React.ComponentPropsWithoutRef<typeof Tabs.List>;
|
|
551
|
+
declare const PromptInputTabsList: ({
|
|
552
|
+
className,
|
|
553
|
+
variant,
|
|
554
|
+
ref,
|
|
555
|
+
...props
|
|
556
|
+
}: TabsListProps & {
|
|
557
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
558
|
+
}) => React.JSX.Element;
|
|
559
|
+
type PromptInputTabProps = React.ComponentPropsWithoutRef<typeof Tabs.Tab>;
|
|
560
|
+
declare const PromptInputTab: ({
|
|
561
|
+
className,
|
|
562
|
+
ref,
|
|
563
|
+
...props
|
|
564
|
+
}: TabProps & {
|
|
565
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
566
|
+
}) => React.JSX.Element;
|
|
567
|
+
type PromptInputTabBodyProps = React.ComponentPropsWithoutRef<typeof Tabs.Panel>;
|
|
568
|
+
declare const PromptInputTabBody: ({
|
|
569
|
+
className,
|
|
570
|
+
ref,
|
|
571
|
+
...props
|
|
572
|
+
}: TabPanelProps & {
|
|
573
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
574
|
+
}) => React.JSX.Element;
|
|
453
575
|
interface PromptInputTabLabelProps extends React.HTMLAttributes<HTMLHeadingElement> {}
|
|
454
576
|
declare function PromptInputTabLabel({
|
|
455
577
|
className,
|
|
@@ -466,11 +588,27 @@ declare function PromptInputTabItem({
|
|
|
466
588
|
}: PromptInputTabItemProps & {
|
|
467
589
|
ref?: React.Ref<HTMLDivElement>;
|
|
468
590
|
}): React.JSX.Element;
|
|
469
|
-
type PromptInputCommandProps = React.ComponentPropsWithoutRef<typeof Combobox>;
|
|
470
|
-
declare const PromptInputCommand:
|
|
591
|
+
type PromptInputCommandProps = React.ComponentPropsWithoutRef<typeof Combobox.Root>;
|
|
592
|
+
declare const PromptInputCommand: {
|
|
471
593
|
Root: typeof import("@base-ui/react").ComboboxRoot;
|
|
472
|
-
Input:
|
|
473
|
-
|
|
594
|
+
Input: ({
|
|
595
|
+
className,
|
|
596
|
+
ref,
|
|
597
|
+
...props
|
|
598
|
+
}: Omit<React.ComponentPropsWithRef<typeof import("@base-ui/react").ComboboxInput>, "className"> & {
|
|
599
|
+
className?: string;
|
|
600
|
+
} & {
|
|
601
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
602
|
+
}) => React.JSX.Element;
|
|
603
|
+
Trigger: ({
|
|
604
|
+
className,
|
|
605
|
+
ref,
|
|
606
|
+
...props
|
|
607
|
+
}: Omit<React.ComponentPropsWithRef<typeof import("@base-ui/react").ComboboxTrigger>, "className"> & {
|
|
608
|
+
className?: string;
|
|
609
|
+
} & {
|
|
610
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
611
|
+
}) => React.JSX.Element;
|
|
474
612
|
Clear: ({
|
|
475
613
|
className,
|
|
476
614
|
ref,
|
|
@@ -481,11 +619,43 @@ declare const PromptInputCommand: typeof import("@base-ui/react").ComboboxRoot &
|
|
|
481
619
|
ref?: React.Ref<HTMLButtonElement>;
|
|
482
620
|
}) => React.JSX.Element;
|
|
483
621
|
Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompletePortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
484
|
-
Positioner:
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
622
|
+
Positioner: ({
|
|
623
|
+
className,
|
|
624
|
+
ref,
|
|
625
|
+
...props
|
|
626
|
+
}: Omit<React.ComponentPropsWithRef<typeof import("@base-ui/react").ComboboxPositioner>, "className"> & {
|
|
627
|
+
className?: string;
|
|
628
|
+
} & {
|
|
629
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
630
|
+
}) => React.JSX.Element;
|
|
631
|
+
Popup: ({
|
|
632
|
+
className,
|
|
633
|
+
tabIndex,
|
|
634
|
+
ref,
|
|
635
|
+
...props
|
|
636
|
+
}: Omit<React.ComponentPropsWithRef<typeof import("@base-ui/react").ComboboxPopup>, "className"> & {
|
|
637
|
+
className?: string;
|
|
638
|
+
} & {
|
|
639
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
640
|
+
}) => React.JSX.Element;
|
|
641
|
+
List: ({
|
|
642
|
+
className,
|
|
643
|
+
ref,
|
|
644
|
+
...props
|
|
645
|
+
}: Omit<React.ComponentPropsWithRef<typeof import("@base-ui/react").ComboboxList>, "className"> & {
|
|
646
|
+
className?: string;
|
|
647
|
+
} & {
|
|
648
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
649
|
+
}) => React.JSX.Element;
|
|
650
|
+
Item: ({
|
|
651
|
+
className,
|
|
652
|
+
ref,
|
|
653
|
+
...props
|
|
654
|
+
}: Omit<React.ComponentPropsWithRef<typeof import("@base-ui/react").ComboboxItem>, "className"> & {
|
|
655
|
+
className?: string;
|
|
656
|
+
} & {
|
|
657
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
658
|
+
}) => React.JSX.Element;
|
|
489
659
|
ItemIndicator: ({
|
|
490
660
|
className,
|
|
491
661
|
ref,
|
|
@@ -495,19 +665,49 @@ declare const PromptInputCommand: typeof import("@base-ui/react").ComboboxRoot &
|
|
|
495
665
|
} & {
|
|
496
666
|
ref?: React.Ref<HTMLSpanElement>;
|
|
497
667
|
}) => React.JSX.Element;
|
|
498
|
-
Empty:
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
668
|
+
Empty: ({
|
|
669
|
+
className,
|
|
670
|
+
ref,
|
|
671
|
+
...props
|
|
672
|
+
}: Omit<React.ComponentPropsWithRef<typeof import("@base-ui/react").ComboboxEmpty>, "className"> & {
|
|
673
|
+
className?: string;
|
|
674
|
+
} & {
|
|
675
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
676
|
+
}) => React.JSX.Element;
|
|
677
|
+
Group: ({
|
|
678
|
+
className,
|
|
679
|
+
ref,
|
|
680
|
+
...props
|
|
681
|
+
}: Omit<React.ComponentPropsWithRef<typeof import("@base-ui/react").ComboboxGroup>, "className"> & {
|
|
682
|
+
className?: string;
|
|
683
|
+
} & {
|
|
684
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
685
|
+
}) => React.JSX.Element;
|
|
686
|
+
GroupLabel: ({
|
|
687
|
+
className,
|
|
688
|
+
ref,
|
|
689
|
+
...props
|
|
690
|
+
}: Omit<React.ComponentPropsWithRef<typeof import("@base-ui/react").ComboboxGroupLabel>, "className"> & {
|
|
691
|
+
className?: string;
|
|
692
|
+
} & {
|
|
693
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
694
|
+
}) => React.JSX.Element;
|
|
502
695
|
Value: typeof import("@base-ui/react").ComboboxValue;
|
|
503
696
|
Chips: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ComboboxChipsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
504
697
|
Chip: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ComboboxChipProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
505
|
-
ChipsInput: typeof ComboboxInput;
|
|
506
698
|
Collection: typeof import("@base-ui/react").ComboboxCollection;
|
|
507
699
|
Separator: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
508
700
|
};
|
|
509
|
-
type PromptInputCommandInputProps = React.ComponentPropsWithoutRef<typeof
|
|
510
|
-
declare const PromptInputCommandInput:
|
|
701
|
+
type PromptInputCommandInputProps = React.ComponentPropsWithoutRef<typeof Combobox.Input>;
|
|
702
|
+
declare const PromptInputCommandInput: ({
|
|
703
|
+
className,
|
|
704
|
+
ref,
|
|
705
|
+
...props
|
|
706
|
+
}: Omit<React.ComponentPropsWithRef<typeof import("@base-ui/react").ComboboxInput>, "className"> & {
|
|
707
|
+
className?: string;
|
|
708
|
+
} & {
|
|
709
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
710
|
+
}) => React.JSX.Element;
|
|
511
711
|
interface PromptInputCommandListProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
512
712
|
declare function PromptInputCommandList({
|
|
513
713
|
className,
|
|
@@ -516,13 +716,37 @@ declare function PromptInputCommandList({
|
|
|
516
716
|
}: PromptInputCommandListProps & {
|
|
517
717
|
ref?: React.Ref<HTMLDivElement>;
|
|
518
718
|
}): React.JSX.Element;
|
|
519
|
-
type PromptInputCommandEmptyProps = React.ComponentPropsWithoutRef<typeof
|
|
520
|
-
declare const PromptInputCommandEmpty:
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
719
|
+
type PromptInputCommandEmptyProps = React.ComponentPropsWithoutRef<typeof Combobox.Empty>;
|
|
720
|
+
declare const PromptInputCommandEmpty: ({
|
|
721
|
+
className,
|
|
722
|
+
ref,
|
|
723
|
+
...props
|
|
724
|
+
}: Omit<React.ComponentPropsWithRef<typeof import("@base-ui/react").ComboboxEmpty>, "className"> & {
|
|
725
|
+
className?: string;
|
|
726
|
+
} & {
|
|
727
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
728
|
+
}) => React.JSX.Element;
|
|
729
|
+
type PromptInputCommandGroupProps = React.ComponentPropsWithoutRef<typeof Combobox.Group>;
|
|
730
|
+
declare const PromptInputCommandGroup: ({
|
|
731
|
+
className,
|
|
732
|
+
ref,
|
|
733
|
+
...props
|
|
734
|
+
}: Omit<React.ComponentPropsWithRef<typeof import("@base-ui/react").ComboboxGroup>, "className"> & {
|
|
735
|
+
className?: string;
|
|
736
|
+
} & {
|
|
737
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
738
|
+
}) => React.JSX.Element;
|
|
739
|
+
type PromptInputCommandItemProps = React.ComponentPropsWithoutRef<typeof Combobox.Item>;
|
|
740
|
+
declare const PromptInputCommandItem: ({
|
|
741
|
+
className,
|
|
742
|
+
ref,
|
|
743
|
+
...props
|
|
744
|
+
}: Omit<React.ComponentPropsWithRef<typeof import("@base-ui/react").ComboboxItem>, "className"> & {
|
|
745
|
+
className?: string;
|
|
746
|
+
} & {
|
|
747
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
748
|
+
}) => React.JSX.Element;
|
|
749
|
+
type PromptInputCommandSeparatorProps = React.ComponentPropsWithoutRef<typeof Combobox.Separator>;
|
|
526
750
|
declare const PromptInputCommandSeparator: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
527
751
|
//#endregion
|
|
528
|
-
export {
|
|
752
|
+
export { PromptInputHoverCardTrigger as $, PromptInputCommandEmptyProps as A, getPendingToolApprovals as At, PromptInputCommandSeparator as B, PromptInputBody as C, PromptInputTools as Ct, PromptInputButtonTooltip as D, TooltipSide as Dt, PromptInputButtonProps as E, TextInputContext as Et, PromptInputCommandItem as F, PromptInputFooter as G, PromptInputControllerProps as H, PromptInputCommandItemProps as I, PromptInputHeaderProps as J, PromptInputFooterProps as K, PromptInputCommandList as L, PromptInputCommandGroupProps as M, usePromptInputController as Mt, PromptInputCommandInput as N, useProviderAttachments as Nt, PromptInputCommand as O, getApprovalRequestId as Ot, PromptInputCommandInputProps as P, PromptInputHoverCardProps as Q, PromptInputCommandListProps as R, PromptInputAttachmentsProps as S, PromptInputTextareaProps as St, PromptInputButton as T, PromptInputTooltipConfig as Tt, PromptInputDictation as U, PromptInputCommandSeparatorProps as V, PromptInputDictationProps as W, PromptInputHoverCardContent as X, PromptInputHoverCard as Y, PromptInputHoverCardContentProps as Z, PromptInputApproval as _, PromptInputTabLabelProps as _t, PromptInputActionAddAttachments as a, PromptInputProvider as at, PromptInputAttachmentProps as b, PromptInputTabsListProps as bt, PromptInputActionAddScreenshotProps as c, PromptInputSelectProps as ct, PromptInputActionMenuContentProps as d, PromptInputTab as dt, PromptInputHoverCardTriggerProps as et, PromptInputActionMenuItem as f, PromptInputTabBody as ft, PromptInputActionMenuTriggerProps as g, PromptInputTabLabel as gt, PromptInputActionMenuTrigger as h, PromptInputTabItemProps as ht, PromptInput as i, PromptInputProps as it, PromptInputCommandGroup as j, usePromptInputAttachments as jt, PromptInputCommandEmpty as k, getApprovalStateKey as kt, PromptInputActionMenu as l, PromptInputSubmit as lt, PromptInputActionMenuProps as m, PromptInputTabItem as mt, PendingToolApproval as n, PromptInputPermissionSelector as nt, PromptInputActionAddAttachmentsProps as o, PromptInputProviderProps as ot, PromptInputActionMenuItemProps as p, PromptInputTabBodyProps as pt, PromptInputHeader as q, PermissionMode as r, PromptInputPermissionSelectorProps as rt, PromptInputActionAddScreenshot as s, PromptInputSelect as st, AttachmentsContext as t, PromptInputMessage as tt, PromptInputActionMenuContent as u, PromptInputSubmitProps as ut, PromptInputApprovalProps as v, PromptInputTabProps as vt, PromptInputBodyProps as w, PromptInputToolsProps as wt, PromptInputAttachments as x, PromptInputTextarea as xt, PromptInputAttachment as y, PromptInputTabsList as yt, PromptInputCommandProps as z };
|