@mcp-b/react-components 0.16.0 → 0.17.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-CrlpbvQJ.d.ts → AgentChat-CRuMi1Pb.d.ts} +4 -10
- package/dist/AgentMessageParts-CyD2UB3V.d.ts +46 -0
- package/dist/AgentToolRunsContext-BVe4stgw.d.ts +21 -0
- package/dist/{CodeBlock-BmB4Xaqq.js → CodeBlock-Co1noLbC.js} +2 -2
- package/dist/{CodeBlock-BRajW4QU.d.ts → CodeBlock-Dnpr88ZQ.d.ts} +2 -2
- package/dist/Collapsible-N64ASIQr.d.ts +119 -0
- package/dist/{Combobox-B9Fcd6q-.d.ts → Combobox-CYc37s5l.d.ts} +11 -33
- package/dist/{FileTree-CkVbIMWV.js → FileTree-B7bBsUyU.js} +7 -7
- package/dist/{Menu-Bgu-ufb5.d.ts → Menu-L6MZm-7N.d.ts} +15 -56
- package/dist/{Message-BkMdE3bS.js → Message-C4eYRogZ.js} +3 -3
- package/dist/{ModelSelector-SlJNgwKY.js → ModelSelector-BNrZlY_Y.js} +5 -5
- package/dist/{PromptInput-BWTuXMOD.d.ts → PromptInput-OLfXPuHM.d.ts} +39 -67
- package/dist/{ResponsiveSidebarShell-Dd9DCcBT.d.ts → ResponsiveSidebarShell-CsAh4NyL.d.ts} +1 -0
- package/dist/{Select-BeEsefzh.d.ts → Select-CwSqP07Y.d.ts} +14 -42
- package/dist/{Tabs-3Zc4tb9D.d.ts → Tabs-9zddXDQo.d.ts} +5 -19
- package/dist/{ThinkChat-CzC-zNGA.js → ThinkChat-DInElus-.js} +53 -26
- package/dist/{ThinkChatActivity-BFQnb2ct.d.ts → ThinkChatActivity-BgesTfZ4.d.ts} +12 -4
- package/dist/{ThinkChatContext-C3Eb1Xpi.d.ts → ThinkChatContext-DrsZqdaO.d.ts} +1 -1
- package/dist/ThinkRecoveryNotice-DFIcG9UX.d.ts +19 -0
- package/dist/{Toggle-CAAlNl-M.d.ts → Toggle-DaXpe1Lc.d.ts} +1 -1
- package/dist/{ToggleGroup-8hPv-b69.d.ts → ToggleGroup-yseEWkOC.d.ts} +3 -4
- package/dist/{Workspace-D39LxGvP.d.ts → Workspace-C9RFoxcu.d.ts} +1 -1
- package/dist/WorkspaceExplorer-sZewzT2O.d.ts +32 -0
- package/dist/{WorkspaceFile-DOZkPwzu.d.ts → WorkspaceFile-C8UzuSH4.d.ts} +1 -1
- package/dist/{WorkspaceFileView-rSN_yT0L.js → WorkspaceFileView-DNdGAEiX.js} +5 -5
- package/dist/{WorkspaceLink-DIPbXrUM.js → WorkspaceLink-B1ykV1dS.js} +15 -29
- package/dist/class-names-Bk-QLWWI.js +11 -0
- package/dist/components/Accordion.d.ts +5 -15
- package/dist/components/Accordion.js +11 -10
- package/dist/components/Activity.d.ts +5 -10
- package/dist/components/Activity.js +2 -2
- package/dist/components/AgentActivity.js +1 -1
- package/dist/components/AgentActivityPreview.js +2 -2
- package/dist/components/AgentAttention.d.ts +1 -1
- package/dist/components/AgentAttention.js +1 -1
- package/dist/components/AgentChat.d.ts +2 -2
- package/dist/components/AgentChat.js +27 -164
- package/dist/components/AgentChatMessageEditor.js +1 -1
- package/dist/components/AgentConnection.js +4 -4
- package/dist/components/AgentMessageParts.d.ts +2 -0
- package/dist/components/AgentMessageParts.js +119 -0
- package/dist/components/AgentToolDetail.d.ts +55 -0
- package/dist/components/AgentToolDetail.js +98 -0
- package/dist/components/AgentToolRunsContext.d.ts +2 -0
- package/dist/components/AgentToolRunsContext.js +16 -0
- package/dist/components/AlertDialog.d.ts +7 -19
- package/dist/components/AlertDialog.js +21 -32
- package/dist/components/AppTopBar.d.ts +4 -1
- package/dist/components/AppTopBar.js +5 -5
- package/dist/components/Approval.d.ts +102 -0
- package/dist/components/Approval.js +227 -0
- package/dist/components/Artifact.d.ts +2 -4
- package/dist/components/Artifact.js +3 -3
- package/dist/components/Autocomplete.d.ts +11 -33
- package/dist/components/Autocomplete.js +23 -30
- package/dist/components/Avatar.d.ts +3 -11
- package/dist/components/Avatar.js +13 -12
- package/dist/components/BrowserLiveView.js +2 -2
- package/dist/components/BrowserReplay.js +2 -2
- package/dist/components/BrowserRunPanel.js +58 -78
- package/dist/components/Button.js +4 -9
- package/dist/components/ChainOfThought.d.ts +5 -11
- package/dist/components/ChainOfThought.js +3 -2
- package/dist/components/ChatGptSignInScreen.js +3 -3
- package/dist/components/Checkbox.d.ts +2 -4
- package/dist/components/Checkbox.js +6 -5
- package/dist/components/CheckboxGroup.d.ts +1 -3
- package/dist/components/CheckboxGroup.js +15 -14
- package/dist/components/Checkpoint.d.ts +64 -0
- package/dist/components/Checkpoint.js +63 -0
- package/dist/components/CodeBlock.d.ts +1 -1
- package/dist/components/CodeBlock.js +1 -1
- package/dist/components/CodexModelSelector.d.ts +1 -1
- package/dist/components/CodexModelSelector.js +2 -2
- package/dist/components/Collapsible.d.ts +1 -124
- package/dist/components/Collapsible.js +7 -10
- package/dist/components/Combobox.d.ts +1 -1
- package/dist/components/Combobox.js +23 -30
- package/dist/components/Commit.d.ts +5 -11
- package/dist/components/Commit.js +6 -5
- package/dist/components/Context.js +1 -1
- package/dist/components/ContextMenu.d.ts +21 -37
- package/dist/components/ContextMenu.js +34 -51
- package/dist/components/Conversation.d.ts +2 -4
- package/dist/components/Conversation.js +2 -2
- package/dist/components/DescriptionListParts.js +1 -1
- package/dist/components/Dialog.d.ts +6 -17
- package/dist/components/Dialog.js +17 -24
- package/dist/components/EnvironmentVariables.d.ts +1 -1
- package/dist/components/EnvironmentVariables.js +4 -3
- package/dist/components/Field.d.ts +17 -20
- package/dist/components/Field.js +16 -16
- package/dist/components/Fieldset.d.ts +2 -7
- package/dist/components/Fieldset.js +7 -6
- package/dist/components/FileTree.js +1 -1
- package/dist/components/Form.d.ts +1 -4
- package/dist/components/Form.js +3 -2
- package/dist/components/GithubMotionMark.js +1 -1
- package/dist/components/InlineCitation.d.ts +66 -0
- package/dist/components/InlineCitation.js +142 -0
- package/dist/components/Input.d.ts +1 -4
- package/dist/components/Input.js +3 -2
- package/dist/components/Marker.js +1 -1
- package/dist/components/McpConnectionRequest.js +2 -2
- package/dist/components/McpServerPicker.d.ts +1 -1
- package/dist/components/McpServerPicker.js +6 -5
- package/dist/components/Menu.d.ts +1 -1
- package/dist/components/Menu.js +33 -52
- package/dist/components/Menubar.d.ts +22 -43
- package/dist/components/Menubar.js +36 -53
- package/dist/components/Message.d.ts +3 -6
- package/dist/components/Message.js +1 -1
- package/dist/components/MessageScroller.d.ts +1 -1
- package/dist/components/MessageScroller.js +3 -3
- package/dist/components/Meter.d.ts +5 -20
- package/dist/components/Meter.js +11 -10
- package/dist/components/ModelSelector.d.ts +2 -6
- package/dist/components/ModelSelector.js +1 -1
- package/dist/components/NavigationMenu.d.ts +11 -33
- package/dist/components/NavigationMenu.js +23 -30
- package/dist/components/NumberField.d.ts +6 -24
- package/dist/components/NumberField.js +13 -12
- package/dist/components/Plan.d.ts +103 -0
- package/dist/components/Plan.js +113 -0
- package/dist/components/Popover.d.ts +9 -36
- package/dist/components/Popover.js +23 -34
- package/dist/components/PreviewCard.d.ts +6 -24
- package/dist/components/PreviewCard.js +13 -24
- package/dist/components/PricingBillingToggle.js +1 -1
- package/dist/components/PricingFAQ.js +1 -1
- package/dist/components/PricingPlanCard.js +3 -3
- package/dist/components/PricingUsageCalculator.js +2 -2
- package/dist/components/Progress.d.ts +3 -8
- package/dist/components/Progress.js +7 -10
- package/dist/components/PromptInput.d.ts +2 -2
- package/dist/components/PromptInput.js +52 -200
- package/dist/components/Queue.d.ts +6 -16
- package/dist/components/Queue.js +2 -2
- package/dist/components/RadioGroup.d.ts +3 -8
- package/dist/components/RadioGroup.js +7 -10
- package/dist/components/Reasoning.d.ts +4 -8
- package/dist/components/Reasoning.js +3 -3
- package/dist/components/ResizableSidePanel.js +2 -2
- package/dist/components/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/ResponsiveSidebarShell.js +4 -3
- package/dist/components/ScrollArea.d.ts +5 -20
- package/dist/components/ScrollArea.js +11 -10
- package/dist/components/Select.d.ts +1 -1
- package/dist/components/Select.js +32 -55
- package/dist/components/Separator.d.ts +1 -5
- package/dist/components/Separator.js +3 -6
- package/dist/components/Slider.d.ts +6 -19
- package/dist/components/Slider.js +15 -14
- package/dist/components/Sources.d.ts +4 -9
- package/dist/components/Sources.js +3 -2
- package/dist/components/Stepper.js +2 -2
- package/dist/components/SubagentRunDetails.js +1 -1
- package/dist/components/SubagentRunIndicator.js +2 -2
- package/dist/components/SubagentRunList.js +1 -2
- package/dist/components/SubagentRunSelector.d.ts +2 -11
- package/dist/components/SubagentRunSelector.js +16 -15
- package/dist/components/Switch.d.ts +2 -5
- package/dist/components/Switch.js +5 -8
- package/dist/components/Tabs.d.ts +2 -2
- package/dist/components/Tabs.js +10 -16
- package/dist/components/Task.d.ts +4 -9
- package/dist/components/Task.js +4 -3
- package/dist/components/Terminal.d.ts +2 -3
- package/dist/components/Terminal.js +3 -3
- package/dist/components/TestResults.d.ts +4 -9
- package/dist/components/TestResults.js +3 -2
- package/dist/components/Textarea.js +1 -1
- package/dist/components/ThemeModeControl.js +1 -1
- package/dist/components/ThinkChat.d.ts +21 -11
- package/dist/components/ThinkChat.js +5 -3
- package/dist/components/ThinkChatActivity.d.ts +1 -1
- package/dist/components/ThinkChatActivity.js +26 -7
- package/dist/components/ThinkChatContext.d.ts +1 -1
- package/dist/components/ThinkChatToolPanels.js +2 -2
- package/dist/components/ThinkExecutionDetail.js +2 -2
- package/dist/components/ThinkExecutionStatus.js +2 -2
- package/dist/components/ThinkExecutionWorkbench.js +2 -2
- package/dist/components/ThinkFullApp.d.ts +33 -9
- package/dist/components/ThinkFullApp.js +118 -64
- package/dist/components/ThinkFullAppViewSwitch.d.ts +1 -1
- package/dist/components/ThinkFullAppViewSwitch.js +2 -2
- package/dist/components/ThinkPendingApproval.d.ts +60 -0
- package/dist/components/ThinkPendingApproval.js +99 -0
- package/dist/components/ThinkRecoveryNotice.d.ts +2 -0
- package/dist/components/ThinkRecoveryNotice.js +40 -0
- package/dist/components/ThinkRoutine.js +1 -0
- package/dist/components/ThinkRoutineBrowser.js +6 -6
- package/dist/components/ThinkRoutineDetail.js +1 -1
- package/dist/components/ThinkRoutineForm.js +2 -2
- package/dist/components/ThinkRoutineLibrary.d.ts +9 -0
- package/dist/components/ThinkRoutineLibrary.js +67 -20
- package/dist/components/ThinkRoutineRuns.js +1 -1
- package/dist/components/ThinkThreadPicker.js +2 -2
- package/dist/components/ThinkThreadShell.d.ts +1 -1
- package/dist/components/Toast.d.ts +7 -28
- package/dist/components/Toast.js +15 -14
- package/dist/components/Toggle.d.ts +1 -1
- package/dist/components/Toggle.js +5 -5
- package/dist/components/ToggleGroup.d.ts +1 -1
- package/dist/components/ToggleGroup.js +8 -15
- package/dist/components/ToolApproval.d.ts +28 -0
- package/dist/components/ToolApproval.js +35 -0
- package/dist/components/ToolInvocation.d.ts +26 -0
- package/dist/components/ToolInvocation.js +72 -0
- package/dist/components/Toolbar.d.ts +6 -24
- package/dist/components/Toolbar.js +13 -12
- package/dist/components/Tooltip.d.ts +3 -9
- package/dist/components/Tooltip.js +7 -10
- package/dist/components/WebPreview.d.ts +1 -2
- package/dist/components/WebPreview.js +4 -3
- package/dist/components/Workspace.d.ts +1 -1
- package/dist/components/Workspace.js +5 -20
- package/dist/components/WorkspaceBrowser.d.ts +1 -1
- package/dist/components/WorkspaceBrowser.js +3 -3
- package/dist/components/WorkspaceExplorer.d.ts +3 -31
- package/dist/components/WorkspaceExplorer.js +3 -3
- package/dist/components/WorkspaceFile.d.ts +1 -1
- package/dist/components/WorkspaceFileView.d.ts +1 -1
- package/dist/components/WorkspaceFileView.js +1 -1
- package/dist/components/WorkspaceHeader.js +1 -1
- package/dist/components/WorkspaceLink.js +1 -1
- package/dist/components/icons.d.ts +2 -2
- package/dist/components/icons.js +2 -2
- package/dist/{copy-button-DtPMgN7e.d.ts → copy-button-CQx3LQAC.d.ts} +1 -2
- package/dist/{copy-button-Dejn5heL.js → copy-button-cYsJBauI.js} +1 -1
- package/dist/{icons-CpfUer49.js → icons--FqCZEc3.js} +3 -2
- package/dist/{icons-GQd1xF4e.d.ts → icons-DpUqY8Mp.d.ts} +6 -1
- package/dist/styles/agent-activity-preview.css +13 -11
- package/dist/styles/agent-attention.css +19 -13
- package/dist/styles/agent-chat.css +0 -41
- package/dist/styles/agent-connection.css +9 -21
- package/dist/styles/agent-tool-detail.css +54 -0
- package/dist/styles/alert-dialog.css +11 -11
- package/dist/styles/app-top-bar.css +9 -7
- package/dist/styles/approval.css +172 -0
- package/dist/styles/artifact.css +0 -12
- package/dist/styles/browser-run-panel.css +5 -2
- package/dist/styles/card.css +8 -8
- package/dist/styles/chain-of-thought.css +5 -13
- package/dist/styles/checkpoint.css +58 -0
- package/dist/styles/codex-model-selector.css +3 -3
- package/dist/styles/combobox.css +3 -2
- package/dist/styles/commit.css +0 -21
- package/dist/styles/context-menu.css +1 -9
- package/dist/styles/dialog.css +11 -11
- package/dist/styles/environment-variables.css +0 -13
- package/dist/styles/field.css +14 -14
- package/dist/styles/fieldset.css +5 -5
- package/dist/styles/file-tree.css +0 -16
- package/dist/styles/index.css +8 -4
- package/dist/styles/inline-citation.css +107 -0
- package/dist/styles/mcp-connection-request.css +3 -3
- package/dist/styles/mcp-server-picker.css +1 -30
- package/dist/styles/menu.css +1 -30
- package/dist/styles/menubar.css +0 -8
- package/dist/styles/message-scroller.css +0 -12
- package/dist/styles/message.css +0 -12
- package/dist/styles/model-selector.css +18 -32
- package/dist/styles/plan.css +127 -0
- package/dist/styles/popover.css +7 -43
- package/dist/styles/preview-card.css +1 -1
- package/dist/styles/prompt-input.css +2 -195
- package/dist/styles/recipes.css +139 -12
- package/dist/styles/responsive-sidebar-shell.css +16 -19
- package/dist/styles/select.css +3 -3
- package/dist/styles/sources.css +6 -14
- package/dist/styles/subagent-run.css +12 -70
- package/dist/styles/task.css +17 -26
- package/dist/styles/test-results.css +17 -23
- package/dist/styles/textarea.css +1 -1
- package/dist/styles/think-execution-workbench.css +9 -9
- package/dist/styles/think-full-app.css +49 -33
- package/dist/styles/think-routine-library.css +30 -38
- package/dist/styles/think-thread-picker.css +15 -0
- package/dist/styles/toast.css +4 -11
- package/dist/styles/tooltip.css +1 -1
- package/dist/styles/utilities.css +31 -0
- package/dist/styles/web-preview.css +0 -21
- package/dist/styles/workspace-explorer.css +20 -65
- package/dist/think-agent-Cip5KAPj.d.ts +7 -0
- package/dist/utils/codex-model-catalog.d.ts +4 -4
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-path-L_KmjRjq.js +26 -0
- package/package.json +3 -4
- package/dist/class-names-9UtZwb0J.js +0 -12
- package/dist/components/AppFrame.d.ts +0 -24
- package/dist/components/AppFrame.js +0 -25
- package/dist/components/Shell.d.ts +0 -163
- package/dist/components/Shell.js +0 -137
- package/dist/components/SubagentRun.d.ts +0 -86
- package/dist/components/SubagentRun.js +0 -108
- package/dist/styles/app-frame.css +0 -15
- package/dist/styles/shell.css +0 -122
|
@@ -97,8 +97,7 @@ declare function ConversationEmptyState({
|
|
|
97
97
|
}: ConversationEmptyStateProps & {
|
|
98
98
|
ref?: React.Ref<HTMLDivElement>;
|
|
99
99
|
}): React.JSX.Element;
|
|
100
|
-
interface ConversationScrollButtonProps extends Omit<MessageScrollerButtonProps, "children"
|
|
101
|
-
className?: string;
|
|
100
|
+
interface ConversationScrollButtonProps extends Omit<MessageScrollerButtonProps, "children"> {
|
|
102
101
|
/** Accessible label for the button. */
|
|
103
102
|
label?: string;
|
|
104
103
|
children?: React.ReactNode;
|
|
@@ -126,8 +125,7 @@ declare function ConversationScrollButton({
|
|
|
126
125
|
* `### Role\n\n<text>` blocks joined by blank lines.
|
|
127
126
|
*/
|
|
128
127
|
declare function messagesToMarkdown(messages: ConversationMessage[], formatMessage?: (message: ConversationMessage, index: number) => string): string;
|
|
129
|
-
interface ConversationDownloadProps extends Omit<React.ComponentProps<typeof Button>, "onClick" | "children"
|
|
130
|
-
className?: string;
|
|
128
|
+
interface ConversationDownloadProps extends Omit<React.ComponentProps<typeof Button>, "onClick" | "children"> {
|
|
131
129
|
messages: ConversationMessage[];
|
|
132
130
|
/** Filename for the downloaded Markdown file. */
|
|
133
131
|
filename?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as cx } from "../class-names-
|
|
2
|
-
import {
|
|
1
|
+
import { t as cx } from "../class-names-Bk-QLWWI.js";
|
|
2
|
+
import { h as DownloadIcon, t as ArrowDownIcon } from "../icons--FqCZEc3.js";
|
|
3
3
|
import { Button } from "./Button.js";
|
|
4
4
|
import { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport } from "./MessageScroller.js";
|
|
5
5
|
import * as React from "react";
|
|
@@ -5,29 +5,18 @@ import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
|
5
5
|
interface DialogProps extends Dialog$1.Root.Props {}
|
|
6
6
|
interface DialogTriggerProps extends Dialog$1.Trigger.Props {}
|
|
7
7
|
interface DialogPortalProps extends Dialog$1.Portal.Props {}
|
|
8
|
-
interface DialogBackdropProps extends
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
interface DialogViewportProps extends Omit<Dialog$1.Viewport.Props, "className"> {
|
|
12
|
-
className?: string;
|
|
13
|
-
}
|
|
14
|
-
interface DialogPopupProps extends Omit<Dialog$1.Popup.Props, "className"> {
|
|
15
|
-
className?: string;
|
|
8
|
+
interface DialogBackdropProps extends Dialog$1.Backdrop.Props {}
|
|
9
|
+
interface DialogViewportProps extends Dialog$1.Viewport.Props {}
|
|
10
|
+
interface DialogPopupProps extends Dialog$1.Popup.Props {
|
|
16
11
|
/**
|
|
17
12
|
* The size of the dialog.
|
|
18
13
|
* @default 'md'
|
|
19
14
|
*/
|
|
20
15
|
size?: "sm" | "md" | "lg" | "fullscreen";
|
|
21
16
|
}
|
|
22
|
-
interface DialogTitleProps extends
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
interface DialogDescriptionProps extends Omit<Dialog$1.Description.Props, "className"> {
|
|
26
|
-
className?: string;
|
|
27
|
-
}
|
|
28
|
-
interface DialogCloseProps extends Omit<Dialog$1.Close.Props, "className"> {
|
|
29
|
-
className?: string;
|
|
30
|
-
}
|
|
17
|
+
interface DialogTitleProps extends Dialog$1.Title.Props {}
|
|
18
|
+
interface DialogDescriptionProps extends Dialog$1.Description.Props {}
|
|
19
|
+
interface DialogCloseProps extends Dialog$1.Close.Props {}
|
|
31
20
|
interface DialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
32
21
|
interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
33
22
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as mergeBaseClassName } from "../class-names-Bk-QLWWI.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
@@ -30,12 +31,8 @@ function DialogTrigger(props) {
|
|
|
30
31
|
...props
|
|
31
32
|
});
|
|
32
33
|
}
|
|
33
|
-
function DialogBackdrop({ className
|
|
34
|
-
const classes = [
|
|
35
|
-
"dialog__backdrop",
|
|
36
|
-
"base-ui-backdrop",
|
|
37
|
-
className
|
|
38
|
-
].filter(Boolean).join(" ");
|
|
34
|
+
function DialogBackdrop({ className, ref, ...props }) {
|
|
35
|
+
const classes = mergeBaseClassName(["dialog__backdrop", "base-ui-backdrop"].filter(Boolean).join(" "), className);
|
|
39
36
|
return /* @__PURE__ */ jsx(Dialog$1.Backdrop, {
|
|
40
37
|
ref,
|
|
41
38
|
"data-slot": "dialog-overlay",
|
|
@@ -43,8 +40,8 @@ function DialogBackdrop({ className = "", ref, ...props }) {
|
|
|
43
40
|
...props
|
|
44
41
|
});
|
|
45
42
|
}
|
|
46
|
-
function DialogViewport({ className
|
|
47
|
-
const classes = ["dialog__viewport"
|
|
43
|
+
function DialogViewport({ className, ref, ...props }) {
|
|
44
|
+
const classes = mergeBaseClassName(["dialog__viewport"].filter(Boolean).join(" "), className);
|
|
48
45
|
return /* @__PURE__ */ jsx(Dialog$1.Viewport, {
|
|
49
46
|
ref,
|
|
50
47
|
"data-slot": "dialog-viewport",
|
|
@@ -52,12 +49,8 @@ function DialogViewport({ className = "", ref, ...props }) {
|
|
|
52
49
|
...props
|
|
53
50
|
});
|
|
54
51
|
}
|
|
55
|
-
function DialogPopup({ size = "md", className
|
|
56
|
-
const classes = [
|
|
57
|
-
"dialog__popup",
|
|
58
|
-
size !== "md" && `dialog__popup--${size}`,
|
|
59
|
-
className
|
|
60
|
-
].filter(Boolean).join(" ");
|
|
52
|
+
function DialogPopup({ size = "md", className, ref, ...props }) {
|
|
53
|
+
const classes = mergeBaseClassName(["dialog__popup", size !== "md" && `dialog__popup--${size}`].filter(Boolean).join(" "), className);
|
|
61
54
|
return /* @__PURE__ */ jsx(Dialog$1.Popup, {
|
|
62
55
|
ref,
|
|
63
56
|
"data-slot": "dialog-content",
|
|
@@ -65,24 +58,24 @@ function DialogPopup({ size = "md", className = "", ref, ...props }) {
|
|
|
65
58
|
...props
|
|
66
59
|
});
|
|
67
60
|
}
|
|
68
|
-
function DialogHeader({ className
|
|
61
|
+
function DialogHeader({ className, ref, ...props }) {
|
|
69
62
|
return /* @__PURE__ */ jsx("div", {
|
|
70
63
|
ref,
|
|
71
64
|
"data-slot": "dialog-header",
|
|
72
|
-
className: ["dialog__header"
|
|
65
|
+
className: mergeBaseClassName(["dialog__header"].filter(Boolean).join(" "), className),
|
|
73
66
|
...props
|
|
74
67
|
});
|
|
75
68
|
}
|
|
76
|
-
function DialogFooter({ className
|
|
69
|
+
function DialogFooter({ className, ref, ...props }) {
|
|
77
70
|
return /* @__PURE__ */ jsx("div", {
|
|
78
71
|
ref,
|
|
79
72
|
"data-slot": "dialog-footer",
|
|
80
|
-
className: ["dialog__footer"
|
|
73
|
+
className: mergeBaseClassName(["dialog__footer"].filter(Boolean).join(" "), className),
|
|
81
74
|
...props
|
|
82
75
|
});
|
|
83
76
|
}
|
|
84
|
-
function DialogTitle({ className
|
|
85
|
-
const classes = ["dialog__title"
|
|
77
|
+
function DialogTitle({ className, ref, ...props }) {
|
|
78
|
+
const classes = mergeBaseClassName(["dialog__title"].filter(Boolean).join(" "), className);
|
|
86
79
|
return /* @__PURE__ */ jsx(Dialog$1.Title, {
|
|
87
80
|
ref,
|
|
88
81
|
"data-slot": "dialog-title",
|
|
@@ -90,8 +83,8 @@ function DialogTitle({ className = "", ref, ...props }) {
|
|
|
90
83
|
...props
|
|
91
84
|
});
|
|
92
85
|
}
|
|
93
|
-
function DialogDescription({ className
|
|
94
|
-
const classes = ["dialog__description"
|
|
86
|
+
function DialogDescription({ className, ref, ...props }) {
|
|
87
|
+
const classes = mergeBaseClassName(["dialog__description"].filter(Boolean).join(" "), className);
|
|
95
88
|
return /* @__PURE__ */ jsx(Dialog$1.Description, {
|
|
96
89
|
ref,
|
|
97
90
|
"data-slot": "dialog-description",
|
|
@@ -99,8 +92,8 @@ function DialogDescription({ className = "", ref, ...props }) {
|
|
|
99
92
|
...props
|
|
100
93
|
});
|
|
101
94
|
}
|
|
102
|
-
function DialogClose({ className
|
|
103
|
-
const classes = ["dialog__close"
|
|
95
|
+
function DialogClose({ className, ref, ...props }) {
|
|
96
|
+
const classes = mergeBaseClassName(["dialog__close"].filter(Boolean).join(" "), className);
|
|
104
97
|
return /* @__PURE__ */ jsx(Dialog$1.Close, {
|
|
105
98
|
ref,
|
|
106
99
|
"data-slot": "dialog-close",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as cx } from "../class-names-
|
|
2
|
-
import { _ as
|
|
3
|
-
import { t as CopyButton } from "../copy-button-
|
|
1
|
+
import { t as cx } from "../class-names-Bk-QLWWI.js";
|
|
2
|
+
import { _ as EyeIcon, v as EyeOffIcon } from "../icons--FqCZEc3.js";
|
|
3
|
+
import { t as CopyButton } from "../copy-button-cYsJBauI.js";
|
|
4
4
|
import { Badge } from "./Badge.js";
|
|
5
5
|
import { Switch } from "./Switch.js";
|
|
6
6
|
import * as React from "react";
|
|
@@ -69,6 +69,7 @@ function EnvironmentVariables({ className, showValues, defaultShowValues = false
|
|
|
69
69
|
ref,
|
|
70
70
|
className: cx("environment-variables", className),
|
|
71
71
|
...props,
|
|
72
|
+
"data-recipe": "framed-panel",
|
|
72
73
|
children
|
|
73
74
|
})
|
|
74
75
|
});
|
|
@@ -6,38 +6,26 @@ import { Field as Field$1 } from "@base-ui/react/field";
|
|
|
6
6
|
* Props for the Field.Root component.
|
|
7
7
|
*/
|
|
8
8
|
interface FieldRootProps extends React.ComponentPropsWithoutRef<typeof Field$1.Root> {
|
|
9
|
-
/** Additional CSS class names */
|
|
10
|
-
className?: string;
|
|
11
9
|
orientation?: "vertical" | "horizontal" | "responsive";
|
|
12
10
|
}
|
|
13
11
|
/**
|
|
14
12
|
* Props for the Field.Label component.
|
|
15
13
|
*/
|
|
16
|
-
interface FieldLabelProps extends React.ComponentPropsWithoutRef<typeof Field$1.Label> {
|
|
17
|
-
/** Additional CSS class names */
|
|
18
|
-
className?: string;
|
|
19
|
-
}
|
|
14
|
+
interface FieldLabelProps extends React.ComponentPropsWithoutRef<typeof Field$1.Label> {}
|
|
20
15
|
/**
|
|
21
16
|
* Props for the Field.Control component.
|
|
22
17
|
*/
|
|
23
|
-
interface FieldControlProps extends React.ComponentPropsWithoutRef<typeof Field$1.Control> {
|
|
24
|
-
/** Additional CSS class names */
|
|
25
|
-
className?: string;
|
|
26
|
-
}
|
|
18
|
+
interface FieldControlProps extends React.ComponentPropsWithoutRef<typeof Field$1.Control> {}
|
|
27
19
|
/**
|
|
28
20
|
* Props for the Field.Description component.
|
|
29
21
|
*/
|
|
30
|
-
interface FieldDescriptionProps extends React.ComponentPropsWithoutRef<typeof Field$1.Description> {
|
|
31
|
-
/** Additional CSS class names */
|
|
32
|
-
className?: string;
|
|
33
|
-
}
|
|
22
|
+
interface FieldDescriptionProps extends React.ComponentPropsWithoutRef<typeof Field$1.Description> {}
|
|
34
23
|
/**
|
|
35
24
|
* Props for the Field.Error component.
|
|
36
25
|
*/
|
|
37
|
-
interface FieldErrorProps extends React.ComponentPropsWithoutRef<typeof Field$1.Error> {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
errors?: Array<{
|
|
26
|
+
interface FieldErrorProps extends React.ComponentPropsWithoutRef<typeof Field$1.Error> {}
|
|
27
|
+
interface FieldErrorsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
28
|
+
errors: Array<{
|
|
41
29
|
message?: string;
|
|
42
30
|
} | string | undefined>;
|
|
43
31
|
}
|
|
@@ -160,12 +148,20 @@ declare function FieldDescription({
|
|
|
160
148
|
*/
|
|
161
149
|
declare function FieldError({
|
|
162
150
|
className,
|
|
163
|
-
errors,
|
|
164
151
|
children,
|
|
165
152
|
ref,
|
|
166
153
|
...props
|
|
167
154
|
}: FieldErrorProps & {
|
|
168
155
|
ref?: React.Ref<HTMLDivElement>;
|
|
156
|
+
}): React.JSX.Element;
|
|
157
|
+
declare function FieldErrors({
|
|
158
|
+
className,
|
|
159
|
+
errors,
|
|
160
|
+
children,
|
|
161
|
+
ref,
|
|
162
|
+
...props
|
|
163
|
+
}: FieldErrorsProps & {
|
|
164
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
169
165
|
}): React.JSX.Element | null;
|
|
170
166
|
/**
|
|
171
167
|
* Renders custom content based on the field's validity state.
|
|
@@ -268,6 +264,7 @@ declare const Field: {
|
|
|
268
264
|
Control: typeof FieldControl;
|
|
269
265
|
Description: typeof FieldDescription;
|
|
270
266
|
Error: typeof FieldError;
|
|
267
|
+
Errors: typeof FieldErrors;
|
|
271
268
|
Item: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").FieldItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
272
269
|
Validity: React.FC<import("@base-ui/react").FieldValidityProps>;
|
|
273
270
|
Set: typeof FieldSet;
|
|
@@ -278,4 +275,4 @@ declare const Field: {
|
|
|
278
275
|
Separator: typeof FieldSeparator;
|
|
279
276
|
};
|
|
280
277
|
//#endregion
|
|
281
|
-
export { Field, FieldContentProps, FieldControlProps, FieldDescriptionProps, FieldErrorProps, FieldGroupProps, FieldLabelProps, FieldLegendProps, FieldRootProps, FieldSeparatorProps, FieldSetProps, FieldTitleProps, FieldValidityProps };
|
|
278
|
+
export { Field, FieldContentProps, FieldControlProps, FieldDescriptionProps, FieldErrorProps, FieldErrorsProps, FieldGroupProps, FieldLabelProps, FieldLegendProps, FieldRootProps, FieldSeparatorProps, FieldSetProps, FieldTitleProps, FieldValidityProps };
|
package/dist/components/Field.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as mergeBaseClassName, t as cx } from "../class-names-Bk-QLWWI.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
4
|
import { Field as Field$1 } from "@base-ui/react/field";
|
|
@@ -17,12 +18,8 @@ import { Field as Field$1 } from "@base-ui/react/field";
|
|
|
17
18
|
*
|
|
18
19
|
* @see {@link https://base-ui.com/react/components/field | Base UI Field}
|
|
19
20
|
*/
|
|
20
|
-
function FieldRoot({ className
|
|
21
|
-
const classes = [
|
|
22
|
-
"field",
|
|
23
|
-
orientation !== "vertical" && `field--${orientation}`,
|
|
24
|
-
className
|
|
25
|
-
].filter(Boolean).join(" ");
|
|
21
|
+
function FieldRoot({ className, orientation = "vertical", ref, ...props }) {
|
|
22
|
+
const classes = mergeBaseClassName(["field", orientation !== "vertical" && `field--${orientation}`].filter(Boolean).join(" "), className);
|
|
26
23
|
return /* @__PURE__ */ jsx(Field$1.Root, {
|
|
27
24
|
ref,
|
|
28
25
|
role: "group",
|
|
@@ -44,8 +41,8 @@ function FieldRoot({ className = "", orientation = "vertical", ref, ...props })
|
|
|
44
41
|
* </Field.Root>
|
|
45
42
|
* ```
|
|
46
43
|
*/
|
|
47
|
-
function FieldLabel({ className
|
|
48
|
-
const classes =
|
|
44
|
+
function FieldLabel({ className, ref, ...props }) {
|
|
45
|
+
const classes = mergeBaseClassName("field__label", className);
|
|
49
46
|
return /* @__PURE__ */ jsx(Field$1.Label, {
|
|
50
47
|
ref,
|
|
51
48
|
"data-slot": "field-label",
|
|
@@ -66,8 +63,8 @@ function FieldLabel({ className = "", ref, ...props }) {
|
|
|
66
63
|
* <Field.Control render={<Textarea />} />
|
|
67
64
|
* ```
|
|
68
65
|
*/
|
|
69
|
-
function FieldControl({ className
|
|
70
|
-
const classes =
|
|
66
|
+
function FieldControl({ className, ref, ...props }) {
|
|
67
|
+
const classes = mergeBaseClassName("field__control", className);
|
|
71
68
|
return /* @__PURE__ */ jsx(Field$1.Control, {
|
|
72
69
|
ref,
|
|
73
70
|
"data-slot": "field-control",
|
|
@@ -88,8 +85,8 @@ function FieldControl({ className = "", ref, ...props }) {
|
|
|
88
85
|
* </Field.Root>
|
|
89
86
|
* ```
|
|
90
87
|
*/
|
|
91
|
-
function FieldDescription({ className
|
|
92
|
-
const classes =
|
|
88
|
+
function FieldDescription({ className, ref, ...props }) {
|
|
89
|
+
const classes = mergeBaseClassName("field__description", className);
|
|
93
90
|
return /* @__PURE__ */ jsx(Field$1.Description, {
|
|
94
91
|
ref,
|
|
95
92
|
"data-slot": "field-description",
|
|
@@ -120,15 +117,17 @@ function FieldDescription({ className = "", ref, ...props }) {
|
|
|
120
117
|
* - `rangeUnderflow` - Number is less than `min`
|
|
121
118
|
* - `rangeOverflow` - Number is greater than `max`
|
|
122
119
|
*/
|
|
123
|
-
function FieldError({ className
|
|
124
|
-
const classes =
|
|
125
|
-
|
|
120
|
+
function FieldError({ className, children, ref, ...props }) {
|
|
121
|
+
const classes = mergeBaseClassName("field__error", className);
|
|
122
|
+
return /* @__PURE__ */ jsx(Field$1.Error, {
|
|
126
123
|
ref,
|
|
127
124
|
"data-slot": "field-error",
|
|
128
125
|
className: classes,
|
|
129
126
|
...props,
|
|
130
127
|
children
|
|
131
128
|
});
|
|
129
|
+
}
|
|
130
|
+
function FieldErrors({ className = "", errors, children, ref, ...props }) {
|
|
132
131
|
const messages = [...new Set(errors.map((error) => typeof error === "string" ? error : error?.message).filter(Boolean))];
|
|
133
132
|
const content = children ?? (messages.length === 1 ? messages[0] : messages.length > 1 ? /* @__PURE__ */ jsx("ul", {
|
|
134
133
|
className: "field__error-list",
|
|
@@ -139,7 +138,7 @@ function FieldError({ className = "", errors, children, ref, ...props }) {
|
|
|
139
138
|
ref,
|
|
140
139
|
role: "alert",
|
|
141
140
|
"data-slot": "field-error",
|
|
142
|
-
className:
|
|
141
|
+
className: cx("field__error", className),
|
|
143
142
|
...props,
|
|
144
143
|
children: content
|
|
145
144
|
});
|
|
@@ -260,6 +259,7 @@ const Field = {
|
|
|
260
259
|
Control: FieldControl,
|
|
261
260
|
Description: FieldDescription,
|
|
262
261
|
Error: FieldError,
|
|
262
|
+
Errors: FieldErrors,
|
|
263
263
|
Item: Field$1.Item,
|
|
264
264
|
Validity: Field$1.Validity,
|
|
265
265
|
Set: FieldSet,
|
|
@@ -5,19 +5,14 @@ import { Fieldset as Fieldset$1 } from "@base-ui/react/fieldset";
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Fieldset.Root component.
|
|
7
7
|
*/
|
|
8
|
-
interface FieldsetRootProps extends
|
|
9
|
-
/** Additional CSS class names */
|
|
10
|
-
className?: string;
|
|
8
|
+
interface FieldsetRootProps extends React.ComponentPropsWithoutRef<typeof Fieldset$1.Root> {
|
|
11
9
|
/** Visual treatment for the field group. */
|
|
12
10
|
variant?: "outlined" | "plain";
|
|
13
11
|
}
|
|
14
12
|
/**
|
|
15
13
|
* Props for the Fieldset.Legend component.
|
|
16
14
|
*/
|
|
17
|
-
interface FieldsetLegendProps extends
|
|
18
|
-
/** Additional CSS class names */
|
|
19
|
-
className?: string;
|
|
20
|
-
}
|
|
15
|
+
interface FieldsetLegendProps extends React.ComponentPropsWithoutRef<typeof Fieldset$1.Legend> {}
|
|
21
16
|
interface FieldsetDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {}
|
|
22
17
|
/**
|
|
23
18
|
* Groups the fieldset legend and associated fields.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as mergeBaseClassName } from "../class-names-Bk-QLWWI.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { Fieldset as Fieldset$1 } from "@base-ui/react/fieldset";
|
|
@@ -19,8 +20,8 @@ import { Fieldset as Fieldset$1 } from "@base-ui/react/fieldset";
|
|
|
19
20
|
*
|
|
20
21
|
* @see {@link https://base-ui.com/react/components/fieldset | Base UI Fieldset}
|
|
21
22
|
*/
|
|
22
|
-
function FieldsetRoot({ className
|
|
23
|
-
const classes = ["fieldset"
|
|
23
|
+
function FieldsetRoot({ className, ref, variant = "outlined", ...props }) {
|
|
24
|
+
const classes = mergeBaseClassName(["fieldset"].filter(Boolean).join(" "), className);
|
|
24
25
|
return /* @__PURE__ */ jsx(Fieldset$1.Root, {
|
|
25
26
|
ref,
|
|
26
27
|
className: classes,
|
|
@@ -32,18 +33,18 @@ function FieldsetRoot({ className = "", ref, variant = "outlined", ...props }) {
|
|
|
32
33
|
* Accessible label for the fieldset, automatically associated with it.
|
|
33
34
|
* Renders a `<div>` element (styled as legend).
|
|
34
35
|
*/
|
|
35
|
-
function FieldsetLegend({ className
|
|
36
|
-
const classes = ["fieldset__legend"
|
|
36
|
+
function FieldsetLegend({ className, ref, ...props }) {
|
|
37
|
+
const classes = mergeBaseClassName(["fieldset__legend"].filter(Boolean).join(" "), className);
|
|
37
38
|
return /* @__PURE__ */ jsx(Fieldset$1.Legend, {
|
|
38
39
|
ref,
|
|
39
40
|
className: classes,
|
|
40
41
|
...props
|
|
41
42
|
});
|
|
42
43
|
}
|
|
43
|
-
function FieldsetDescription({ className
|
|
44
|
+
function FieldsetDescription({ className, ref, ...props }) {
|
|
44
45
|
return /* @__PURE__ */ jsx("p", {
|
|
45
46
|
ref,
|
|
46
|
-
className: ["fieldset__description"
|
|
47
|
+
className: mergeBaseClassName(["fieldset__description"].filter(Boolean).join(" "), className),
|
|
47
48
|
...props
|
|
48
49
|
});
|
|
49
50
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as FileTreeIcon, i as FileTreeFolder, n as FileTreeActions, o as FileTreeName, r as FileTreeFile, t as FileTree } from "../FileTree-
|
|
1
|
+
import { a as FileTreeIcon, i as FileTreeFolder, n as FileTreeActions, o as FileTreeName, r as FileTreeFile, t as FileTree } from "../FileTree-B7bBsUyU.js";
|
|
2
2
|
export { FileTree, FileTreeActions, FileTreeFile, FileTreeFolder, FileTreeIcon, FileTreeName };
|
|
@@ -5,10 +5,7 @@ import { Form as Form$1 } from "@base-ui/react/form";
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Form component.
|
|
7
7
|
*/
|
|
8
|
-
interface FormProps extends
|
|
9
|
-
/** Additional CSS class names */
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
8
|
+
interface FormProps extends React.ComponentPropsWithoutRef<typeof Form$1> {}
|
|
12
9
|
/**
|
|
13
10
|
* A form component that provides consolidated error handling and validation
|
|
14
11
|
* for form controls. Works seamlessly with the Field component.
|
package/dist/components/Form.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as mergeBaseClassName } from "../class-names-Bk-QLWWI.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { Form as Form$1 } from "@base-ui/react/form";
|
|
@@ -76,11 +77,11 @@ import { Form as Form$1 } from "@base-ui/react/form";
|
|
|
76
77
|
*
|
|
77
78
|
* @see {@link https://base-ui.com/react/components/form | Base UI Form}
|
|
78
79
|
*/
|
|
79
|
-
function Form({ className
|
|
80
|
+
function Form({ className, ref, ...props }) {
|
|
80
81
|
return /* @__PURE__ */ jsx(Form$1, {
|
|
81
82
|
ref,
|
|
82
83
|
"data-slot": "form",
|
|
83
|
-
className: ["form"
|
|
84
|
+
className: mergeBaseClassName(["form"].filter(Boolean).join(" "), className),
|
|
84
85
|
...props
|
|
85
86
|
});
|
|
86
87
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { SourceDocumentUIPart, SourceUrlUIPart } from "ai";
|
|
3
|
+
|
|
4
|
+
//#region src/components/InlineCitation.d.ts
|
|
5
|
+
interface InlineCitationProps extends React.ComponentPropsWithoutRef<"span"> {
|
|
6
|
+
/** Claim text and citations placed beside it by the consuming application. */
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Keeps claim text and an app-placed citation in one inline presentation group.
|
|
11
|
+
*
|
|
12
|
+
* AI SDK source parts do not include text offsets. The app must place this
|
|
13
|
+
* component beside the claim it supports; this component never parses message
|
|
14
|
+
* text or guesses an anchor position.
|
|
15
|
+
*
|
|
16
|
+
* @see ../../node_modules/ai/src/ui/ui-messages.ts (`SourceUrlUIPart`,
|
|
17
|
+
* `SourceDocumentUIPart`)
|
|
18
|
+
* @see https://elements.ai-sdk.dev/components/inline-citation
|
|
19
|
+
*/
|
|
20
|
+
declare function InlineCitation({
|
|
21
|
+
className,
|
|
22
|
+
ref,
|
|
23
|
+
...props
|
|
24
|
+
}: InlineCitationProps & {
|
|
25
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
26
|
+
}): React.JSX.Element;
|
|
27
|
+
interface InlineCitationTextProps extends React.ComponentPropsWithoutRef<"span"> {}
|
|
28
|
+
/** Claim text whose citation is placed by the consuming app. */
|
|
29
|
+
declare function InlineCitationText({
|
|
30
|
+
className,
|
|
31
|
+
ref,
|
|
32
|
+
...props
|
|
33
|
+
}: InlineCitationTextProps & {
|
|
34
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
35
|
+
}): React.JSX.Element;
|
|
36
|
+
interface InlineCitationCardProps extends React.ComponentPropsWithoutRef<"div"> {}
|
|
37
|
+
/** Compact presentation container for citation details inside an existing overlay. */
|
|
38
|
+
declare function InlineCitationCard({
|
|
39
|
+
className,
|
|
40
|
+
ref,
|
|
41
|
+
...props
|
|
42
|
+
}: InlineCitationCardProps & {
|
|
43
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
44
|
+
}): React.JSX.Element;
|
|
45
|
+
interface InlineCitationSourceProps extends Omit<React.ComponentPropsWithoutRef<"span">, "children"> {
|
|
46
|
+
/** The complete AI SDK source part. It is consumed directly without normalization. */
|
|
47
|
+
source: SourceUrlUIPart | SourceDocumentUIPart;
|
|
48
|
+
/** Optional presentation-owned citation number. It is not part of the source model. */
|
|
49
|
+
index?: number;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Adapts a whole AI SDK URL or document source part to an inline citation.
|
|
53
|
+
* URL sources use a safe external link and PreviewCard. Document sources have
|
|
54
|
+
* no URL, so they use a Popover button and never fabricate a download target.
|
|
55
|
+
*/
|
|
56
|
+
declare function InlineCitationSource({
|
|
57
|
+
source,
|
|
58
|
+
index,
|
|
59
|
+
className,
|
|
60
|
+
ref,
|
|
61
|
+
...props
|
|
62
|
+
}: InlineCitationSourceProps & {
|
|
63
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
64
|
+
}): React.JSX.Element;
|
|
65
|
+
//#endregion
|
|
66
|
+
export { InlineCitation, InlineCitationCard, InlineCitationCardProps, InlineCitationProps, InlineCitationSource, InlineCitationSourceProps, InlineCitationText, InlineCitationTextProps };
|