@flexkit/studio 0.0.29 → 0.0.30
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/chunk-MC6VZLKC.js +2 -0
- package/dist/chunk-MC6VZLKC.js.map +1 -0
- package/dist/index.css +702 -6
- package/dist/index.d.ts +2 -2
- package/dist/index.js +138 -138
- package/dist/index.js.map +1 -1
- package/dist/{types.d-6y0oZ2Hh.d.ts → types.d-CX3kDxFZ.d.ts} +18 -9
- package/dist/ui.d.ts +455 -4
- package/dist/ui.js +6 -1
- package/dist/ui.js.map +1 -1
- package/package.json +15 -1
- package/dist/chunk-7MSX5T2Z.js +0 -2
- package/dist/chunk-7MSX5T2Z.js.map +0 -1
|
@@ -184,21 +184,30 @@ type AttributeBase = {
|
|
|
184
184
|
mode: 'single' | 'multiple';
|
|
185
185
|
field: string;
|
|
186
186
|
};
|
|
187
|
-
/**
|
|
188
|
-
* Space codes that can read/write this attribute. Members of any listed
|
|
189
|
-
* space have access; users outside all listed spaces cannot see the value.
|
|
190
|
-
*/
|
|
191
|
-
spaces?: string[];
|
|
192
187
|
validation?: (zod: ZodNamespace) => z.ZodType;
|
|
193
188
|
};
|
|
189
|
+
/**
|
|
190
|
+
* Space codes that can read/write this attribute. Members of any listed
|
|
191
|
+
* space have access; users outside all listed spaces cannot see the value.
|
|
192
|
+
*
|
|
193
|
+
* Not allowed on relationship attributes (`scope: 'relationship'`): bind the
|
|
194
|
+
* related entity to the space instead.
|
|
195
|
+
*/
|
|
196
|
+
type AttributeSpaces = {
|
|
197
|
+
spaces?: string[];
|
|
198
|
+
};
|
|
199
|
+
type AttributeScopeAndSpaces = {
|
|
200
|
+
scope: 'relationship';
|
|
201
|
+
spaces?: never;
|
|
202
|
+
} | ({
|
|
203
|
+
scope: 'local' | 'global';
|
|
204
|
+
} & AttributeSpaces);
|
|
194
205
|
type AttributeByDataType<T extends DataType> = AttributeBase & {
|
|
195
206
|
dataType: T;
|
|
196
207
|
defaultValue?: DefaultValueByDataType[T];
|
|
197
208
|
} & (T extends 'asset' ? {
|
|
198
209
|
scope?: 'global';
|
|
199
|
-
} :
|
|
200
|
-
scope: ScopeType;
|
|
201
|
-
});
|
|
210
|
+
} & AttributeSpaces : AttributeScopeAndSpaces);
|
|
202
211
|
type Attribute = {
|
|
203
212
|
[T in DataType]: AttributeByDataType<T>;
|
|
204
213
|
}[DataType];
|
|
@@ -361,4 +370,4 @@ type SingleProject = Omit<ProjectOptions, 'basePath'> & {
|
|
|
361
370
|
|
|
362
371
|
type Config = SingleProject | ProjectOptions[];
|
|
363
372
|
|
|
364
|
-
export type { AppContextType as A, Config as C, DataType as D, Entity as E, FormEntityItem as F, ImageValue as I, LogoProps as L, MappedEntityItem as M, OrderedAssetValue as O, PluginOptions as P,
|
|
373
|
+
export type { AppContextType as A, Config as C, DataType as D, Entity as E, FormEntityItem as F, ImageValue as I, LogoProps as L, MappedEntityItem as M, OrderedAssetValue as O, PluginOptions as P, SearchRequestProps as S, UseEntityQueryParams as U, ActionSetRelationship as a, ActionSetScope as b, AppOptions as c, ProjectOptions as d, SearchResultItem as e, Attribute as f, Schema as g, AttributeValue as h, MultipleRelationshipConnection as i, SingleRelationshipConnection as j, DefaultValue as k, DefaultValueByDataType as l, EntityData as m, FormFieldParams as n, FormFieldProps as o, FormFieldValue as p, ScopeType as q, SingleProject as r };
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import { JSX, ReactNode } from 'react';
|
|
4
|
-
import { Avatar as Avatar$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, Slot, Label as Label$1, Checkbox as Checkbox$1, Separator as Separator$1, ScrollArea as ScrollArea$1, Select as Select$1, Tooltip as Tooltip$1, Switch as Switch$1, Tabs as Tabs$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1 } from 'radix-ui';
|
|
3
|
+
import { JSX, ReactNode, Dispatch, SetStateAction, HTMLAttributes, ComponentProps, RefObject, FormEvent, PropsWithChildren, ElementType } from 'react';
|
|
4
|
+
import { Avatar as Avatar$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, Slot, Label as Label$1, Checkbox as Checkbox$1, Separator as Separator$1, ScrollArea as ScrollArea$1, Select as Select$1, Tooltip as Tooltip$1, Switch as Switch$1, Tabs as Tabs$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1, HoverCard as HoverCard$1, Collapsible as Collapsible$1 } from 'radix-ui';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
|
7
7
|
import * as react_hook_form from 'react-hook-form';
|
|
@@ -9,9 +9,13 @@ import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
|
9
9
|
import { Command as Command$1 } from 'cmdk';
|
|
10
10
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
11
11
|
export { PanelImperativeHandle } from 'react-resizable-panels';
|
|
12
|
-
import {
|
|
12
|
+
import { r as SingleProject } from './types.d-CX3kDxFZ.js';
|
|
13
13
|
import { ToasterProps } from 'sonner';
|
|
14
14
|
export { toast } from 'sonner';
|
|
15
|
+
import { FileUIPart, SourceDocumentUIPart, UIMessage, ChatStatus, ToolUIPart, DynamicToolUIPart } from 'ai';
|
|
16
|
+
import { BundledLanguage, ThemedToken } from 'shiki';
|
|
17
|
+
import { StickToBottom } from 'use-stick-to-bottom';
|
|
18
|
+
import { Streamdown } from 'streamdown';
|
|
15
19
|
import 'zod';
|
|
16
20
|
import '@apollo/client';
|
|
17
21
|
|
|
@@ -196,6 +200,10 @@ declare function SidebarRail({ className, ...props }: React$1.ComponentProps<'bu
|
|
|
196
200
|
declare function SidebarInset({ className, ...props }: React$1.ComponentProps<'main'>): react_jsx_runtime.JSX.Element;
|
|
197
201
|
declare function SidebarContent({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
198
202
|
declare function SidebarGroup({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
203
|
+
declare function SidebarGroupLabel({ className, asChild, ...props }: React$1.ComponentProps<'div'> & {
|
|
204
|
+
asChild?: boolean;
|
|
205
|
+
}): react_jsx_runtime.JSX.Element;
|
|
206
|
+
declare function SidebarGroupContent({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
199
207
|
declare function SidebarMenu({ className, ...props }: React$1.ComponentProps<'ul'>): react_jsx_runtime.JSX.Element;
|
|
200
208
|
declare function SidebarMenuItem({ className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
201
209
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
@@ -258,6 +266,449 @@ declare function PermissionTooltip({ disabled, children }: {
|
|
|
258
266
|
children: ReactNode;
|
|
259
267
|
}): JSX.Element;
|
|
260
268
|
|
|
269
|
+
type Props = {
|
|
270
|
+
actions: ReactNode;
|
|
271
|
+
beforeClose?: () => boolean;
|
|
272
|
+
children: ReactNode;
|
|
273
|
+
depth: number;
|
|
274
|
+
isFocused: boolean;
|
|
275
|
+
onFormChange?: Dispatch<SetStateAction<boolean>>;
|
|
276
|
+
onClose: () => void;
|
|
277
|
+
title: string;
|
|
278
|
+
};
|
|
279
|
+
declare function DrawerModal({ actions, beforeClose, children, depth, isFocused, onFormChange: _onFormChange, onClose, title, }: Props): JSX.Element;
|
|
280
|
+
|
|
261
281
|
declare const Toaster: ({ richColors, style, ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
262
282
|
|
|
263
|
-
|
|
283
|
+
declare function HoverCard({ ...props }: React$1.ComponentProps<typeof HoverCard$1.Root>): react_jsx_runtime.JSX.Element;
|
|
284
|
+
declare function HoverCardTrigger({ ...props }: React$1.ComponentProps<typeof HoverCard$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
285
|
+
declare function HoverCardContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof HoverCard$1.Content>): react_jsx_runtime.JSX.Element;
|
|
286
|
+
|
|
287
|
+
declare function Spinner({ className, ...props }: React$1.ComponentProps<'svg'>): react_jsx_runtime.JSX.Element;
|
|
288
|
+
|
|
289
|
+
declare const buttonGroupVariants: (props?: ({
|
|
290
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
291
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
292
|
+
declare function ButtonGroup({ className, orientation, ...props }: React$1.ComponentProps<'div'> & VariantProps<typeof buttonGroupVariants>): react_jsx_runtime.JSX.Element;
|
|
293
|
+
declare function ButtonGroupText({ className, asChild, ...props }: React$1.ComponentProps<'div'> & {
|
|
294
|
+
asChild?: boolean;
|
|
295
|
+
}): react_jsx_runtime.JSX.Element;
|
|
296
|
+
declare function ButtonGroupSeparator({ className, orientation, ...props }: React$1.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
|
|
297
|
+
|
|
298
|
+
declare function InputGroup({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
299
|
+
declare const inputGroupAddonVariants: (props?: ({
|
|
300
|
+
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
301
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
302
|
+
declare function InputGroupAddon({ className, align, ...props }: React$1.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>): react_jsx_runtime.JSX.Element;
|
|
303
|
+
declare const inputGroupButtonVariants: (props?: ({
|
|
304
|
+
size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
|
|
305
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
306
|
+
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React$1.ComponentProps<typeof Button>, 'size'> & VariantProps<typeof inputGroupButtonVariants>): react_jsx_runtime.JSX.Element;
|
|
307
|
+
declare function InputGroupText({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
308
|
+
declare function InputGroupInput({ className, ...props }: React$1.ComponentProps<'input'>): react_jsx_runtime.JSX.Element;
|
|
309
|
+
declare function InputGroupTextarea({ className, ...props }: React$1.ComponentProps<'textarea'>): react_jsx_runtime.JSX.Element;
|
|
310
|
+
|
|
311
|
+
type AttachmentData = (FileUIPart & {
|
|
312
|
+
id: string;
|
|
313
|
+
}) | (SourceDocumentUIPart & {
|
|
314
|
+
id: string;
|
|
315
|
+
});
|
|
316
|
+
type AttachmentMediaCategory = 'image' | 'video' | 'audio' | 'document' | 'source' | 'unknown';
|
|
317
|
+
type AttachmentVariant = 'grid' | 'inline' | 'list';
|
|
318
|
+
declare const getMediaCategory: (data: AttachmentData) => AttachmentMediaCategory;
|
|
319
|
+
declare const getAttachmentLabel: (data: AttachmentData) => string;
|
|
320
|
+
interface AttachmentsContextValue {
|
|
321
|
+
variant: AttachmentVariant;
|
|
322
|
+
}
|
|
323
|
+
interface AttachmentContextValue {
|
|
324
|
+
data: AttachmentData;
|
|
325
|
+
mediaCategory: AttachmentMediaCategory;
|
|
326
|
+
onRemove?: () => void;
|
|
327
|
+
variant: AttachmentVariant;
|
|
328
|
+
}
|
|
329
|
+
declare const useAttachmentsContext: () => AttachmentsContextValue;
|
|
330
|
+
declare const useAttachmentContext: () => AttachmentContextValue;
|
|
331
|
+
type AttachmentsProps = HTMLAttributes<HTMLDivElement> & {
|
|
332
|
+
variant?: AttachmentVariant;
|
|
333
|
+
};
|
|
334
|
+
declare const Attachments: ({ variant, className, children, ...props }: AttachmentsProps) => react_jsx_runtime.JSX.Element;
|
|
335
|
+
type AttachmentProps = HTMLAttributes<HTMLDivElement> & {
|
|
336
|
+
data: AttachmentData;
|
|
337
|
+
onRemove?: () => void;
|
|
338
|
+
};
|
|
339
|
+
declare const Attachment: ({ data, onRemove, className, children, ...props }: AttachmentProps) => react_jsx_runtime.JSX.Element;
|
|
340
|
+
type AttachmentPreviewProps = HTMLAttributes<HTMLDivElement> & {
|
|
341
|
+
fallbackIcon?: ReactNode;
|
|
342
|
+
};
|
|
343
|
+
declare const AttachmentPreview: ({ fallbackIcon, className, ...props }: AttachmentPreviewProps) => react_jsx_runtime.JSX.Element;
|
|
344
|
+
type AttachmentInfoProps = HTMLAttributes<HTMLDivElement> & {
|
|
345
|
+
showMediaType?: boolean;
|
|
346
|
+
};
|
|
347
|
+
declare const AttachmentInfo: ({ showMediaType, className, ...props }: AttachmentInfoProps) => react_jsx_runtime.JSX.Element | null;
|
|
348
|
+
type AttachmentRemoveProps = ComponentProps<typeof Button> & {
|
|
349
|
+
label?: string;
|
|
350
|
+
};
|
|
351
|
+
declare const AttachmentRemove: ({ label, className, children, ...props }: AttachmentRemoveProps) => react_jsx_runtime.JSX.Element | null;
|
|
352
|
+
type AttachmentHoverCardProps = ComponentProps<typeof HoverCard>;
|
|
353
|
+
declare const AttachmentHoverCard: ({ openDelay, closeDelay, ...props }: AttachmentHoverCardProps) => react_jsx_runtime.JSX.Element;
|
|
354
|
+
type AttachmentHoverCardTriggerProps = ComponentProps<typeof HoverCardTrigger>;
|
|
355
|
+
declare const AttachmentHoverCardTrigger: (props: AttachmentHoverCardTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
356
|
+
type AttachmentHoverCardContentProps = ComponentProps<typeof HoverCardContent>;
|
|
357
|
+
declare const AttachmentHoverCardContent: ({ align, className, ...props }: AttachmentHoverCardContentProps) => react_jsx_runtime.JSX.Element;
|
|
358
|
+
type AttachmentEmptyProps = HTMLAttributes<HTMLDivElement>;
|
|
359
|
+
declare const AttachmentEmpty: ({ className, children, ...props }: AttachmentEmptyProps) => react_jsx_runtime.JSX.Element;
|
|
360
|
+
|
|
361
|
+
type CodeBlockProps = HTMLAttributes<HTMLDivElement> & {
|
|
362
|
+
code: string;
|
|
363
|
+
language: BundledLanguage;
|
|
364
|
+
showLineNumbers?: boolean;
|
|
365
|
+
};
|
|
366
|
+
interface TokenizedCode {
|
|
367
|
+
tokens: ThemedToken[][];
|
|
368
|
+
fg: string;
|
|
369
|
+
bg: string;
|
|
370
|
+
}
|
|
371
|
+
declare const highlightCode: (code: string, language: BundledLanguage, callback?: (result: TokenizedCode) => void) => TokenizedCode | null;
|
|
372
|
+
declare const CodeBlockContainer: ({ className, language, style, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
373
|
+
language: string;
|
|
374
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
375
|
+
declare const CodeBlockHeader: ({ children, className, ...props }: HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
376
|
+
declare const CodeBlockTitle: ({ children, className, ...props }: HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
377
|
+
declare const CodeBlockFilename: ({ children, className, ...props }: HTMLAttributes<HTMLSpanElement>) => react_jsx_runtime.JSX.Element;
|
|
378
|
+
declare const CodeBlockActions: ({ children, className, ...props }: HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
379
|
+
declare const CodeBlockContent: ({ code, language, showLineNumbers, }: {
|
|
380
|
+
code: string;
|
|
381
|
+
language: BundledLanguage;
|
|
382
|
+
showLineNumbers?: boolean;
|
|
383
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
384
|
+
declare const CodeBlock: ({ code, language, showLineNumbers, className, children, ...props }: CodeBlockProps) => react_jsx_runtime.JSX.Element;
|
|
385
|
+
type CodeBlockCopyButtonProps = ComponentProps<typeof Button> & {
|
|
386
|
+
onCopy?: () => void;
|
|
387
|
+
onError?: (error: Error) => void;
|
|
388
|
+
timeout?: number;
|
|
389
|
+
};
|
|
390
|
+
declare const CodeBlockCopyButton: ({ onCopy, onError, timeout, children, className, ...props }: CodeBlockCopyButtonProps) => react_jsx_runtime.JSX.Element;
|
|
391
|
+
type CodeBlockLanguageSelectorProps = ComponentProps<typeof Select>;
|
|
392
|
+
declare const CodeBlockLanguageSelector: (props: CodeBlockLanguageSelectorProps) => react_jsx_runtime.JSX.Element;
|
|
393
|
+
type CodeBlockLanguageSelectorTriggerProps = ComponentProps<typeof SelectTrigger>;
|
|
394
|
+
declare const CodeBlockLanguageSelectorTrigger: ({ className, ...props }: CodeBlockLanguageSelectorTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
395
|
+
type CodeBlockLanguageSelectorValueProps = ComponentProps<typeof SelectValue>;
|
|
396
|
+
declare const CodeBlockLanguageSelectorValue: (props: CodeBlockLanguageSelectorValueProps) => react_jsx_runtime.JSX.Element;
|
|
397
|
+
type CodeBlockLanguageSelectorContentProps = ComponentProps<typeof SelectContent>;
|
|
398
|
+
declare const CodeBlockLanguageSelectorContent: ({ align, ...props }: CodeBlockLanguageSelectorContentProps) => react_jsx_runtime.JSX.Element;
|
|
399
|
+
type CodeBlockLanguageSelectorItemProps = ComponentProps<typeof SelectItem>;
|
|
400
|
+
declare const CodeBlockLanguageSelectorItem: (props: CodeBlockLanguageSelectorItemProps) => react_jsx_runtime.JSX.Element;
|
|
401
|
+
|
|
402
|
+
type ConversationProps = ComponentProps<typeof StickToBottom>;
|
|
403
|
+
declare const Conversation: ({ className, ...props }: ConversationProps) => react_jsx_runtime.JSX.Element;
|
|
404
|
+
type ConversationContentProps = ComponentProps<typeof StickToBottom.Content>;
|
|
405
|
+
declare const ConversationContent: ({ className, ...props }: ConversationContentProps) => react_jsx_runtime.JSX.Element;
|
|
406
|
+
type ConversationEmptyStateProps = ComponentProps<'div'> & {
|
|
407
|
+
title?: string;
|
|
408
|
+
description?: string;
|
|
409
|
+
icon?: React.ReactNode;
|
|
410
|
+
};
|
|
411
|
+
declare const ConversationEmptyState: ({ className, title, description, icon, children, ...props }: ConversationEmptyStateProps) => react_jsx_runtime.JSX.Element;
|
|
412
|
+
type ConversationScrollButtonProps = ComponentProps<typeof Button>;
|
|
413
|
+
declare const ConversationScrollButton: ({ className, ...props }: ConversationScrollButtonProps) => false | react_jsx_runtime.JSX.Element;
|
|
414
|
+
type ConversationDownloadProps = Omit<ComponentProps<typeof Button>, 'onClick'> & {
|
|
415
|
+
messages: UIMessage[];
|
|
416
|
+
filename?: string;
|
|
417
|
+
formatMessage?: (message: UIMessage, index: number) => string;
|
|
418
|
+
};
|
|
419
|
+
declare const messagesToMarkdown: (messages: UIMessage[], formatMessage?: (message: UIMessage, index: number) => string) => string;
|
|
420
|
+
declare const ConversationDownload: ({ messages, filename, formatMessage, className, children, ...props }: ConversationDownloadProps) => react_jsx_runtime.JSX.Element;
|
|
421
|
+
|
|
422
|
+
type MessageProps = HTMLAttributes<HTMLDivElement> & {
|
|
423
|
+
from: UIMessage['role'];
|
|
424
|
+
};
|
|
425
|
+
declare const Message: ({ className, from, ...props }: MessageProps) => react_jsx_runtime.JSX.Element;
|
|
426
|
+
type MessageContentProps = HTMLAttributes<HTMLDivElement>;
|
|
427
|
+
declare const MessageContent: ({ children, className, ...props }: MessageContentProps) => react_jsx_runtime.JSX.Element;
|
|
428
|
+
type MessageActionsProps = ComponentProps<'div'>;
|
|
429
|
+
declare const MessageActions: ({ className, children, ...props }: MessageActionsProps) => react_jsx_runtime.JSX.Element;
|
|
430
|
+
type MessageActionProps = ComponentProps<typeof Button> & {
|
|
431
|
+
tooltip?: string;
|
|
432
|
+
label?: string;
|
|
433
|
+
};
|
|
434
|
+
declare const MessageAction: ({ tooltip, children, label, variant, size, ...props }: MessageActionProps) => react_jsx_runtime.JSX.Element;
|
|
435
|
+
type MessageBranchProps = HTMLAttributes<HTMLDivElement> & {
|
|
436
|
+
defaultBranch?: number;
|
|
437
|
+
onBranchChange?: (branchIndex: number) => void;
|
|
438
|
+
};
|
|
439
|
+
declare const MessageBranch: ({ defaultBranch, onBranchChange, className, ...props }: MessageBranchProps) => react_jsx_runtime.JSX.Element;
|
|
440
|
+
type MessageBranchContentProps = HTMLAttributes<HTMLDivElement>;
|
|
441
|
+
declare const MessageBranchContent: ({ children, ...props }: MessageBranchContentProps) => react_jsx_runtime.JSX.Element[];
|
|
442
|
+
type MessageBranchSelectorProps = ComponentProps<typeof ButtonGroup>;
|
|
443
|
+
declare const MessageBranchSelector: ({ className, ...props }: MessageBranchSelectorProps) => react_jsx_runtime.JSX.Element | null;
|
|
444
|
+
type MessageBranchPreviousProps = ComponentProps<typeof Button>;
|
|
445
|
+
declare const MessageBranchPrevious: ({ children, ...props }: MessageBranchPreviousProps) => react_jsx_runtime.JSX.Element;
|
|
446
|
+
type MessageBranchNextProps = ComponentProps<typeof Button>;
|
|
447
|
+
declare const MessageBranchNext: ({ children, ...props }: MessageBranchNextProps) => react_jsx_runtime.JSX.Element;
|
|
448
|
+
type MessageBranchPageProps = HTMLAttributes<HTMLSpanElement>;
|
|
449
|
+
declare const MessageBranchPage: ({ className, ...props }: MessageBranchPageProps) => react_jsx_runtime.JSX.Element;
|
|
450
|
+
type MessageResponseProps = ComponentProps<typeof Streamdown>;
|
|
451
|
+
declare const MessageResponse: React$1.MemoExoticComponent<({ className, ...props }: MessageResponseProps) => react_jsx_runtime.JSX.Element>;
|
|
452
|
+
type MessageToolbarProps = ComponentProps<'div'>;
|
|
453
|
+
declare const MessageToolbar: ({ className, children, ...props }: MessageToolbarProps) => react_jsx_runtime.JSX.Element;
|
|
454
|
+
|
|
455
|
+
type ModelSelectorProps = ComponentProps<typeof Dialog>;
|
|
456
|
+
declare const ModelSelector: (props: ModelSelectorProps) => react_jsx_runtime.JSX.Element;
|
|
457
|
+
type ModelSelectorTriggerProps = ComponentProps<typeof DialogTrigger>;
|
|
458
|
+
declare const ModelSelectorTrigger: (props: ModelSelectorTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
459
|
+
type ModelSelectorContentProps = ComponentProps<typeof DialogContent> & {
|
|
460
|
+
title?: ReactNode;
|
|
461
|
+
};
|
|
462
|
+
declare const ModelSelectorContent: ({ className, children, title, ...props }: ModelSelectorContentProps) => react_jsx_runtime.JSX.Element;
|
|
463
|
+
type ModelSelectorDialogProps = ComponentProps<typeof CommandDialog>;
|
|
464
|
+
declare const ModelSelectorDialog: (props: ModelSelectorDialogProps) => react_jsx_runtime.JSX.Element;
|
|
465
|
+
type ModelSelectorInputProps = ComponentProps<typeof CommandInput>;
|
|
466
|
+
declare const ModelSelectorInput: ({ className, ...props }: ModelSelectorInputProps) => react_jsx_runtime.JSX.Element;
|
|
467
|
+
type ModelSelectorListProps = ComponentProps<typeof CommandList>;
|
|
468
|
+
declare const ModelSelectorList: (props: ModelSelectorListProps) => react_jsx_runtime.JSX.Element;
|
|
469
|
+
type ModelSelectorEmptyProps = ComponentProps<typeof CommandEmpty>;
|
|
470
|
+
declare const ModelSelectorEmpty: (props: ModelSelectorEmptyProps) => react_jsx_runtime.JSX.Element;
|
|
471
|
+
type ModelSelectorGroupProps = ComponentProps<typeof CommandGroup>;
|
|
472
|
+
declare const ModelSelectorGroup: (props: ModelSelectorGroupProps) => react_jsx_runtime.JSX.Element;
|
|
473
|
+
type ModelSelectorItemProps = ComponentProps<typeof CommandItem>;
|
|
474
|
+
declare const ModelSelectorItem: (props: ModelSelectorItemProps) => react_jsx_runtime.JSX.Element;
|
|
475
|
+
type ModelSelectorShortcutProps = ComponentProps<typeof CommandShortcut>;
|
|
476
|
+
declare const ModelSelectorShortcut: (props: ModelSelectorShortcutProps) => react_jsx_runtime.JSX.Element;
|
|
477
|
+
type ModelSelectorSeparatorProps = ComponentProps<typeof CommandSeparator>;
|
|
478
|
+
declare const ModelSelectorSeparator: (props: ModelSelectorSeparatorProps) => react_jsx_runtime.JSX.Element;
|
|
479
|
+
type ModelSelectorLogoProps = Omit<ComponentProps<'img'>, 'src' | 'alt'> & {
|
|
480
|
+
provider: 'moonshotai-cn' | 'lucidquery' | 'moonshotai' | 'zai-coding-plan' | 'alibaba' | 'xai' | 'vultr' | 'nvidia' | 'upstage' | 'groq' | 'github-copilot' | 'mistral' | 'vercel' | 'nebius' | 'deepseek' | 'alibaba-cn' | 'google-vertex-anthropic' | 'venice' | 'chutes' | 'cortecs' | 'github-models' | 'togetherai' | 'azure' | 'baseten' | 'huggingface' | 'opencode' | 'fastrouter' | 'google' | 'google-vertex' | 'cloudflare-workers-ai' | 'inception' | 'wandb' | 'openai' | 'zhipuai-coding-plan' | 'perplexity' | 'openrouter' | 'zenmux' | 'v0' | 'iflowcn' | 'synthetic' | 'deepinfra' | 'zhipuai' | 'submodel' | 'zai' | 'inference' | 'requesty' | 'morph' | 'lmstudio' | 'anthropic' | 'aihubmix' | 'fireworks-ai' | 'modelscope' | 'llama' | 'scaleway' | 'amazon-bedrock' | 'cerebras' | (string & {});
|
|
481
|
+
};
|
|
482
|
+
declare const ModelSelectorLogo: ({ provider, className, ...props }: ModelSelectorLogoProps) => react_jsx_runtime.JSX.Element;
|
|
483
|
+
type ModelSelectorLogoGroupProps = ComponentProps<'div'>;
|
|
484
|
+
declare const ModelSelectorLogoGroup: ({ className, ...props }: ModelSelectorLogoGroupProps) => react_jsx_runtime.JSX.Element;
|
|
485
|
+
type ModelSelectorNameProps = ComponentProps<'span'>;
|
|
486
|
+
declare const ModelSelectorName: ({ className, ...props }: ModelSelectorNameProps) => react_jsx_runtime.JSX.Element;
|
|
487
|
+
|
|
488
|
+
interface AttachmentsContext {
|
|
489
|
+
files: (FileUIPart & {
|
|
490
|
+
id: string;
|
|
491
|
+
})[];
|
|
492
|
+
add: (files: File[] | FileList) => void;
|
|
493
|
+
remove: (id: string) => void;
|
|
494
|
+
clear: () => void;
|
|
495
|
+
openFileDialog: () => void;
|
|
496
|
+
fileInputRef: RefObject<HTMLInputElement | null>;
|
|
497
|
+
}
|
|
498
|
+
interface TextInputContext {
|
|
499
|
+
value: string;
|
|
500
|
+
setInput: (v: string) => void;
|
|
501
|
+
clear: () => void;
|
|
502
|
+
}
|
|
503
|
+
interface PromptInputControllerProps {
|
|
504
|
+
textInput: TextInputContext;
|
|
505
|
+
attachments: AttachmentsContext;
|
|
506
|
+
/** INTERNAL: Allows PromptInput to register its file textInput + "open" callback */
|
|
507
|
+
__registerFileInput: (ref: RefObject<HTMLInputElement | null>, open: () => void) => void;
|
|
508
|
+
}
|
|
509
|
+
declare const usePromptInputController: () => PromptInputControllerProps;
|
|
510
|
+
declare const useProviderAttachments: () => AttachmentsContext;
|
|
511
|
+
type PromptInputProviderProps = PropsWithChildren<{
|
|
512
|
+
initialInput?: string;
|
|
513
|
+
}>;
|
|
514
|
+
/**
|
|
515
|
+
* Optional global provider that lifts PromptInput state outside of PromptInput.
|
|
516
|
+
* If you don't use it, PromptInput stays fully self-managed.
|
|
517
|
+
*/
|
|
518
|
+
declare const PromptInputProvider: ({ initialInput: initialTextInput, children }: PromptInputProviderProps) => react_jsx_runtime.JSX.Element;
|
|
519
|
+
declare const usePromptInputAttachments: () => AttachmentsContext;
|
|
520
|
+
interface ReferencedSourcesContext {
|
|
521
|
+
sources: (SourceDocumentUIPart & {
|
|
522
|
+
id: string;
|
|
523
|
+
})[];
|
|
524
|
+
add: (sources: SourceDocumentUIPart[] | SourceDocumentUIPart) => void;
|
|
525
|
+
remove: (id: string) => void;
|
|
526
|
+
clear: () => void;
|
|
527
|
+
}
|
|
528
|
+
declare const LocalReferencedSourcesContext: React$1.Context<ReferencedSourcesContext | null>;
|
|
529
|
+
declare const usePromptInputReferencedSources: () => ReferencedSourcesContext;
|
|
530
|
+
type PromptInputActionAddAttachmentsProps = ComponentProps<typeof DropdownMenuItem> & {
|
|
531
|
+
label?: string;
|
|
532
|
+
};
|
|
533
|
+
declare const PromptInputActionAddAttachments: ({ label, ...props }: PromptInputActionAddAttachmentsProps) => react_jsx_runtime.JSX.Element;
|
|
534
|
+
type PromptInputActionAddScreenshotProps = ComponentProps<typeof DropdownMenuItem> & {
|
|
535
|
+
label?: string;
|
|
536
|
+
};
|
|
537
|
+
declare const PromptInputActionAddScreenshot: ({ label, onSelect, ...props }: PromptInputActionAddScreenshotProps) => react_jsx_runtime.JSX.Element;
|
|
538
|
+
interface PromptInputMessage {
|
|
539
|
+
text: string;
|
|
540
|
+
files: FileUIPart[];
|
|
541
|
+
}
|
|
542
|
+
type PromptInputProps = Omit<HTMLAttributes<HTMLFormElement>, 'onSubmit' | 'onError'> & {
|
|
543
|
+
accept?: string;
|
|
544
|
+
multiple?: boolean;
|
|
545
|
+
globalDrop?: boolean;
|
|
546
|
+
syncHiddenInput?: boolean;
|
|
547
|
+
maxFiles?: number;
|
|
548
|
+
maxFileSize?: number;
|
|
549
|
+
onError?: (err: {
|
|
550
|
+
code: 'max_files' | 'max_file_size' | 'accept';
|
|
551
|
+
message: string;
|
|
552
|
+
}) => void;
|
|
553
|
+
onSubmit: (message: PromptInputMessage, event: FormEvent<HTMLFormElement>) => void | Promise<void>;
|
|
554
|
+
};
|
|
555
|
+
declare const PromptInput: ({ className, accept, multiple, globalDrop, syncHiddenInput, maxFiles, maxFileSize, onError, onSubmit, children, ...props }: PromptInputProps) => react_jsx_runtime.JSX.Element;
|
|
556
|
+
type PromptInputBodyProps = HTMLAttributes<HTMLDivElement>;
|
|
557
|
+
declare const PromptInputBody: ({ className, ...props }: PromptInputBodyProps) => react_jsx_runtime.JSX.Element;
|
|
558
|
+
type PromptInputTextareaProps = ComponentProps<typeof InputGroupTextarea>;
|
|
559
|
+
declare const PromptInputTextarea: ({ onChange, onKeyDown, className, placeholder, ...props }: PromptInputTextareaProps) => react_jsx_runtime.JSX.Element;
|
|
560
|
+
type PromptInputHeaderProps = Omit<ComponentProps<typeof InputGroupAddon>, 'align'>;
|
|
561
|
+
declare const PromptInputHeader: ({ className, ...props }: PromptInputHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
562
|
+
type PromptInputFooterProps = Omit<ComponentProps<typeof InputGroupAddon>, 'align'>;
|
|
563
|
+
declare const PromptInputFooter: ({ className, ...props }: PromptInputFooterProps) => react_jsx_runtime.JSX.Element;
|
|
564
|
+
type PromptInputToolsProps = HTMLAttributes<HTMLDivElement>;
|
|
565
|
+
declare const PromptInputTools: ({ className, ...props }: PromptInputToolsProps) => react_jsx_runtime.JSX.Element;
|
|
566
|
+
type PromptInputButtonTooltip = string | {
|
|
567
|
+
content: ReactNode;
|
|
568
|
+
shortcut?: string;
|
|
569
|
+
side?: ComponentProps<typeof TooltipContent>['side'];
|
|
570
|
+
};
|
|
571
|
+
type PromptInputButtonProps = ComponentProps<typeof InputGroupButton> & {
|
|
572
|
+
tooltip?: PromptInputButtonTooltip;
|
|
573
|
+
};
|
|
574
|
+
declare const PromptInputButton: ({ variant, className, size, tooltip, ...props }: PromptInputButtonProps) => react_jsx_runtime.JSX.Element;
|
|
575
|
+
type PromptInputActionMenuProps = ComponentProps<typeof DropdownMenu>;
|
|
576
|
+
declare const PromptInputActionMenu: (props: PromptInputActionMenuProps) => react_jsx_runtime.JSX.Element;
|
|
577
|
+
type PromptInputActionMenuTriggerProps = PromptInputButtonProps;
|
|
578
|
+
declare const PromptInputActionMenuTrigger: ({ className, children, ...props }: PromptInputActionMenuTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
579
|
+
type PromptInputActionMenuContentProps = ComponentProps<typeof DropdownMenuContent>;
|
|
580
|
+
declare const PromptInputActionMenuContent: ({ className, ...props }: PromptInputActionMenuContentProps) => react_jsx_runtime.JSX.Element;
|
|
581
|
+
type PromptInputActionMenuItemProps = ComponentProps<typeof DropdownMenuItem>;
|
|
582
|
+
declare const PromptInputActionMenuItem: ({ className, ...props }: PromptInputActionMenuItemProps) => react_jsx_runtime.JSX.Element;
|
|
583
|
+
type PromptInputSubmitProps = ComponentProps<typeof InputGroupButton> & {
|
|
584
|
+
status?: ChatStatus;
|
|
585
|
+
onStop?: () => void;
|
|
586
|
+
};
|
|
587
|
+
declare const PromptInputSubmit: ({ className, variant, size, status, onStop, onClick, children, ...props }: PromptInputSubmitProps) => react_jsx_runtime.JSX.Element;
|
|
588
|
+
type PromptInputSelectProps = ComponentProps<typeof Select>;
|
|
589
|
+
declare const PromptInputSelect: (props: PromptInputSelectProps) => react_jsx_runtime.JSX.Element;
|
|
590
|
+
type PromptInputSelectTriggerProps = ComponentProps<typeof SelectTrigger>;
|
|
591
|
+
declare const PromptInputSelectTrigger: ({ className, ...props }: PromptInputSelectTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
592
|
+
type PromptInputSelectContentProps = ComponentProps<typeof SelectContent>;
|
|
593
|
+
declare const PromptInputSelectContent: ({ className, ...props }: PromptInputSelectContentProps) => react_jsx_runtime.JSX.Element;
|
|
594
|
+
type PromptInputSelectItemProps = ComponentProps<typeof SelectItem>;
|
|
595
|
+
declare const PromptInputSelectItem: ({ className, ...props }: PromptInputSelectItemProps) => react_jsx_runtime.JSX.Element;
|
|
596
|
+
type PromptInputSelectValueProps = ComponentProps<typeof SelectValue>;
|
|
597
|
+
declare const PromptInputSelectValue: ({ className, ...props }: PromptInputSelectValueProps) => react_jsx_runtime.JSX.Element;
|
|
598
|
+
type PromptInputHoverCardProps = ComponentProps<typeof HoverCard>;
|
|
599
|
+
declare const PromptInputHoverCard: ({ openDelay, closeDelay, ...props }: PromptInputHoverCardProps) => react_jsx_runtime.JSX.Element;
|
|
600
|
+
type PromptInputHoverCardTriggerProps = ComponentProps<typeof HoverCardTrigger>;
|
|
601
|
+
declare const PromptInputHoverCardTrigger: (props: PromptInputHoverCardTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
602
|
+
type PromptInputHoverCardContentProps = ComponentProps<typeof HoverCardContent>;
|
|
603
|
+
declare const PromptInputHoverCardContent: ({ align, ...props }: PromptInputHoverCardContentProps) => react_jsx_runtime.JSX.Element;
|
|
604
|
+
type PromptInputTabsListProps = HTMLAttributes<HTMLDivElement>;
|
|
605
|
+
declare const PromptInputTabsList: ({ className, ...props }: PromptInputTabsListProps) => react_jsx_runtime.JSX.Element;
|
|
606
|
+
type PromptInputTabProps = HTMLAttributes<HTMLDivElement>;
|
|
607
|
+
declare const PromptInputTab: ({ className, ...props }: PromptInputTabProps) => react_jsx_runtime.JSX.Element;
|
|
608
|
+
type PromptInputTabLabelProps = HTMLAttributes<HTMLHeadingElement>;
|
|
609
|
+
declare const PromptInputTabLabel: ({ className, ...props }: PromptInputTabLabelProps) => react_jsx_runtime.JSX.Element;
|
|
610
|
+
type PromptInputTabBodyProps = HTMLAttributes<HTMLDivElement>;
|
|
611
|
+
declare const PromptInputTabBody: ({ className, ...props }: PromptInputTabBodyProps) => react_jsx_runtime.JSX.Element;
|
|
612
|
+
type PromptInputTabItemProps = HTMLAttributes<HTMLDivElement>;
|
|
613
|
+
declare const PromptInputTabItem: ({ className, ...props }: PromptInputTabItemProps) => react_jsx_runtime.JSX.Element;
|
|
614
|
+
type PromptInputCommandProps = ComponentProps<typeof Command>;
|
|
615
|
+
declare const PromptInputCommand: ({ className, ...props }: PromptInputCommandProps) => react_jsx_runtime.JSX.Element;
|
|
616
|
+
type PromptInputCommandInputProps = ComponentProps<typeof CommandInput>;
|
|
617
|
+
declare const PromptInputCommandInput: ({ className, ...props }: PromptInputCommandInputProps) => react_jsx_runtime.JSX.Element;
|
|
618
|
+
type PromptInputCommandListProps = ComponentProps<typeof CommandList>;
|
|
619
|
+
declare const PromptInputCommandList: ({ className, ...props }: PromptInputCommandListProps) => react_jsx_runtime.JSX.Element;
|
|
620
|
+
type PromptInputCommandEmptyProps = ComponentProps<typeof CommandEmpty>;
|
|
621
|
+
declare const PromptInputCommandEmpty: ({ className, ...props }: PromptInputCommandEmptyProps) => react_jsx_runtime.JSX.Element;
|
|
622
|
+
type PromptInputCommandGroupProps = ComponentProps<typeof CommandGroup>;
|
|
623
|
+
declare const PromptInputCommandGroup: ({ className, ...props }: PromptInputCommandGroupProps) => react_jsx_runtime.JSX.Element;
|
|
624
|
+
type PromptInputCommandItemProps = ComponentProps<typeof CommandItem>;
|
|
625
|
+
declare const PromptInputCommandItem: ({ className, ...props }: PromptInputCommandItemProps) => react_jsx_runtime.JSX.Element;
|
|
626
|
+
type PromptInputCommandSeparatorProps = ComponentProps<typeof CommandSeparator>;
|
|
627
|
+
declare const PromptInputCommandSeparator: ({ className, ...props }: PromptInputCommandSeparatorProps) => react_jsx_runtime.JSX.Element;
|
|
628
|
+
|
|
629
|
+
declare function Collapsible({ ...props }: React.ComponentProps<typeof Collapsible$1.Root>): react_jsx_runtime.JSX.Element;
|
|
630
|
+
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof Collapsible$1.CollapsibleTrigger>): react_jsx_runtime.JSX.Element;
|
|
631
|
+
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof Collapsible$1.CollapsibleContent>): react_jsx_runtime.JSX.Element;
|
|
632
|
+
|
|
633
|
+
interface ReasoningContextValue {
|
|
634
|
+
isStreaming: boolean;
|
|
635
|
+
isOpen: boolean;
|
|
636
|
+
setIsOpen: (open: boolean) => void;
|
|
637
|
+
duration: number | undefined;
|
|
638
|
+
}
|
|
639
|
+
declare const useReasoning: () => ReasoningContextValue;
|
|
640
|
+
type ReasoningProps = ComponentProps<typeof Collapsible> & {
|
|
641
|
+
isStreaming?: boolean;
|
|
642
|
+
open?: boolean;
|
|
643
|
+
defaultOpen?: boolean;
|
|
644
|
+
onOpenChange?: (open: boolean) => void;
|
|
645
|
+
duration?: number;
|
|
646
|
+
};
|
|
647
|
+
declare const Reasoning: React$1.MemoExoticComponent<({ className, isStreaming, open, defaultOpen, onOpenChange, duration: durationProp, children, ...props }: ReasoningProps) => react_jsx_runtime.JSX.Element>;
|
|
648
|
+
type ReasoningTriggerProps = ComponentProps<typeof CollapsibleTrigger> & {
|
|
649
|
+
getThinkingMessage?: (isStreaming: boolean, duration?: number) => ReactNode;
|
|
650
|
+
};
|
|
651
|
+
declare const ReasoningTrigger: React$1.MemoExoticComponent<({ className, children, getThinkingMessage, ...props }: ReasoningTriggerProps) => react_jsx_runtime.JSX.Element>;
|
|
652
|
+
type ReasoningContentProps = ComponentProps<typeof CollapsibleContent> & {
|
|
653
|
+
children: string;
|
|
654
|
+
};
|
|
655
|
+
declare const ReasoningContent: React$1.MemoExoticComponent<({ className, children, ...props }: ReasoningContentProps) => react_jsx_runtime.JSX.Element>;
|
|
656
|
+
|
|
657
|
+
interface TextShimmerProps {
|
|
658
|
+
children: string;
|
|
659
|
+
as?: ElementType;
|
|
660
|
+
className?: string;
|
|
661
|
+
duration?: number;
|
|
662
|
+
spread?: number;
|
|
663
|
+
}
|
|
664
|
+
declare const Shimmer: React$1.MemoExoticComponent<({ children, as: Component, className, duration, spread }: TextShimmerProps) => react_jsx_runtime.JSX.Element>;
|
|
665
|
+
|
|
666
|
+
type SourcesProps = ComponentProps<'div'>;
|
|
667
|
+
declare const Sources: ({ className, ...props }: SourcesProps) => react_jsx_runtime.JSX.Element;
|
|
668
|
+
type SourcesTriggerProps = ComponentProps<typeof CollapsibleTrigger> & {
|
|
669
|
+
count: number;
|
|
670
|
+
};
|
|
671
|
+
declare const SourcesTrigger: ({ className, count, children, ...props }: SourcesTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
672
|
+
type SourcesContentProps = ComponentProps<typeof CollapsibleContent>;
|
|
673
|
+
declare const SourcesContent: ({ className, ...props }: SourcesContentProps) => react_jsx_runtime.JSX.Element;
|
|
674
|
+
type SourceProps = ComponentProps<'a'>;
|
|
675
|
+
declare const Source: ({ href, title, children, ...props }: SourceProps) => react_jsx_runtime.JSX.Element;
|
|
676
|
+
|
|
677
|
+
type SuggestionsProps = ComponentProps<typeof ScrollArea>;
|
|
678
|
+
declare const Suggestions: ({ className, children, ...props }: SuggestionsProps) => react_jsx_runtime.JSX.Element;
|
|
679
|
+
type SuggestionProps = Omit<ComponentProps<typeof Button>, 'onClick'> & {
|
|
680
|
+
suggestion: string;
|
|
681
|
+
onClick?: (suggestion: string) => void;
|
|
682
|
+
};
|
|
683
|
+
declare const Suggestion: ({ suggestion, onClick, className, variant, size, children, ...props }: SuggestionProps) => react_jsx_runtime.JSX.Element;
|
|
684
|
+
|
|
685
|
+
type ToolProps = ComponentProps<typeof Collapsible>;
|
|
686
|
+
declare const Tool: ({ className, ...props }: ToolProps) => react_jsx_runtime.JSX.Element;
|
|
687
|
+
type ToolPart = ToolUIPart | DynamicToolUIPart;
|
|
688
|
+
type ToolHeaderProps = {
|
|
689
|
+
title?: string;
|
|
690
|
+
className?: string;
|
|
691
|
+
} & ({
|
|
692
|
+
type: ToolUIPart['type'];
|
|
693
|
+
state: ToolUIPart['state'];
|
|
694
|
+
toolName?: never;
|
|
695
|
+
} | {
|
|
696
|
+
type: DynamicToolUIPart['type'];
|
|
697
|
+
state: DynamicToolUIPart['state'];
|
|
698
|
+
toolName: string;
|
|
699
|
+
});
|
|
700
|
+
declare const getStatusBadge: (status: ToolPart["state"]) => react_jsx_runtime.JSX.Element;
|
|
701
|
+
declare const ToolHeader: ({ className, title, type, state, toolName, ...props }: ToolHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
702
|
+
type ToolContentProps = ComponentProps<typeof CollapsibleContent>;
|
|
703
|
+
declare const ToolContent: ({ className, ...props }: ToolContentProps) => react_jsx_runtime.JSX.Element;
|
|
704
|
+
type ToolInputProps = ComponentProps<'div'> & {
|
|
705
|
+
input: ToolPart['input'];
|
|
706
|
+
};
|
|
707
|
+
declare const ToolInput: ({ className, input, ...props }: ToolInputProps) => react_jsx_runtime.JSX.Element;
|
|
708
|
+
type ToolOutputProps = ComponentProps<'div'> & {
|
|
709
|
+
output: ToolPart['output'];
|
|
710
|
+
errorText: ToolPart['errorText'];
|
|
711
|
+
};
|
|
712
|
+
declare const ToolOutput: ({ className, output, errorText, ...props }: ToolOutputProps) => react_jsx_runtime.JSX.Element | null;
|
|
713
|
+
|
|
714
|
+
export { Attachment, type AttachmentData, AttachmentEmpty, type AttachmentEmptyProps, AttachmentHoverCard, AttachmentHoverCardContent, type AttachmentHoverCardContentProps, type AttachmentHoverCardProps, AttachmentHoverCardTrigger, type AttachmentHoverCardTriggerProps, AttachmentInfo, type AttachmentInfoProps, type AttachmentMediaCategory, AttachmentPreview, type AttachmentPreviewProps, type AttachmentProps, AttachmentRemove, type AttachmentRemoveProps, type AttachmentVariant, Attachments, type AttachmentsContext, type AttachmentsProps, Avatar, AvatarFallback, AvatarImage, Badge, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Checkbox, CodeBlock, CodeBlockActions, CodeBlockContainer, CodeBlockContent, CodeBlockCopyButton, type CodeBlockCopyButtonProps, CodeBlockFilename, CodeBlockHeader, CodeBlockLanguageSelector, CodeBlockLanguageSelectorContent, type CodeBlockLanguageSelectorContentProps, CodeBlockLanguageSelectorItem, type CodeBlockLanguageSelectorItemProps, type CodeBlockLanguageSelectorProps, CodeBlockLanguageSelectorTrigger, type CodeBlockLanguageSelectorTriggerProps, CodeBlockLanguageSelectorValue, type CodeBlockLanguageSelectorValueProps, CodeBlockTitle, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Conversation, ConversationContent, type ConversationContentProps, ConversationDownload, type ConversationDownloadProps, ConversationEmptyState, type ConversationEmptyStateProps, type ConversationProps, ConversationScrollButton, type ConversationScrollButtonProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DrawerModal, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ExternalLink, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InsufficientPermissionsTooltipContent, Label, LocalReferencedSourcesContext, Message, MessageAction, type MessageActionProps, MessageActions, type MessageActionsProps, MessageBranch, MessageBranchContent, type MessageBranchContentProps, MessageBranchNext, type MessageBranchNextProps, MessageBranchPage, type MessageBranchPageProps, MessageBranchPrevious, type MessageBranchPreviousProps, type MessageBranchProps, MessageBranchSelector, type MessageBranchSelectorProps, MessageContent, type MessageContentProps, type MessageProps, MessageResponse, type MessageResponseProps, MessageToolbar, type MessageToolbarProps, ModelSelector, ModelSelectorContent, type ModelSelectorContentProps, ModelSelectorDialog, type ModelSelectorDialogProps, ModelSelectorEmpty, type ModelSelectorEmptyProps, ModelSelectorGroup, type ModelSelectorGroupProps, ModelSelectorInput, type ModelSelectorInputProps, ModelSelectorItem, type ModelSelectorItemProps, ModelSelectorList, type ModelSelectorListProps, ModelSelectorLogo, ModelSelectorLogoGroup, type ModelSelectorLogoGroupProps, type ModelSelectorLogoProps, ModelSelectorName, type ModelSelectorNameProps, type ModelSelectorProps, ModelSelectorSeparator, type ModelSelectorSeparatorProps, ModelSelectorShortcut, type ModelSelectorShortcutProps, ModelSelectorTrigger, type ModelSelectorTriggerProps, PermissionTooltip, PromptInput, PromptInputActionAddAttachments, type PromptInputActionAddAttachmentsProps, PromptInputActionAddScreenshot, type PromptInputActionAddScreenshotProps, PromptInputActionMenu, PromptInputActionMenuContent, type PromptInputActionMenuContentProps, PromptInputActionMenuItem, type PromptInputActionMenuItemProps, type PromptInputActionMenuProps, PromptInputActionMenuTrigger, type PromptInputActionMenuTriggerProps, PromptInputBody, type PromptInputBodyProps, PromptInputButton, type PromptInputButtonProps, type PromptInputButtonTooltip, PromptInputCommand, PromptInputCommandEmpty, type PromptInputCommandEmptyProps, PromptInputCommandGroup, type PromptInputCommandGroupProps, PromptInputCommandInput, type PromptInputCommandInputProps, PromptInputCommandItem, type PromptInputCommandItemProps, PromptInputCommandList, type PromptInputCommandListProps, type PromptInputCommandProps, PromptInputCommandSeparator, type PromptInputCommandSeparatorProps, type PromptInputControllerProps, PromptInputFooter, type PromptInputFooterProps, PromptInputHeader, type PromptInputHeaderProps, PromptInputHoverCard, PromptInputHoverCardContent, type PromptInputHoverCardContentProps, type PromptInputHoverCardProps, PromptInputHoverCardTrigger, type PromptInputHoverCardTriggerProps, type PromptInputMessage, type PromptInputProps, PromptInputProvider, type PromptInputProviderProps, PromptInputSelect, PromptInputSelectContent, type PromptInputSelectContentProps, PromptInputSelectItem, type PromptInputSelectItemProps, type PromptInputSelectProps, PromptInputSelectTrigger, type PromptInputSelectTriggerProps, PromptInputSelectValue, type PromptInputSelectValueProps, PromptInputSubmit, type PromptInputSubmitProps, PromptInputTab, PromptInputTabBody, type PromptInputTabBodyProps, PromptInputTabItem, type PromptInputTabItemProps, PromptInputTabLabel, type PromptInputTabLabelProps, type PromptInputTabProps, PromptInputTabsList, type PromptInputTabsListProps, PromptInputTextarea, type PromptInputTextareaProps, PromptInputTools, type PromptInputToolsProps, Reasoning, ReasoningContent, type ReasoningContentProps, type ReasoningProps, ReasoningTrigger, type ReasoningTriggerProps, type ReferencedSourcesContext, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Shimmer, Sidebar$1 as Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarInset, SidebarMenu, SidebarMenuButton, SidebarMenuItem, Sidebar as SidebarPanel, SidebarProvider, SidebarRail, SidebarTrigger, Skeleton, Source, type SourceProps, Sources, SourcesContent, type SourcesContentProps, type SourcesProps, SourcesTrigger, type SourcesTriggerProps, Spinner, Suggestion, type SuggestionProps, Suggestions, type SuggestionsProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TextInputContext, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tool, ToolContent, type ToolContentProps, ToolHeader, type ToolHeaderProps, ToolInput, type ToolInputProps, ToolOutput, type ToolOutputProps, type ToolPart, type ToolProps, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, badgeVariants, buttonGroupVariants, buttonVariants, getAttachmentLabel, getMediaCategory, getStatusBadge, highlightCode, messagesToMarkdown, toggleVariants, useAttachmentContext, useAttachmentsContext, useFormField, usePromptInputAttachments, usePromptInputController, usePromptInputReferencedSources, useProviderAttachments, useReasoning, useSidebar };
|