@distri/react 0.2.8 → 0.3.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/globals.css +124 -74
- package/dist/index.cjs +650 -11280
- package/dist/index.css +124 -582
- package/dist/index.d.cts +55 -8
- package/dist/index.d.ts +55 -8
- package/dist/index.js +650 -11281
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Agent as Agent$1, DistriChatMessage, DistriBaseTool, ToolExecutionOptions, DistriMessage, DistriPart, AgentDefinition, DistriThread, DistriFnTool, ToolCall, ToolResult, PlanStep, DistriConfiguration, DistriClient, DistriClientConfig, SpeechToTextConfig, StreamingTranscriptionOptions, ConfigurationMeta, ConfigurationResponse, DistriEvent, ImagePart } from '@distri/core';
|
|
1
|
+
import { Agent as Agent$1, DistriChatMessage, DistriBaseTool, ToolExecutionOptions, DistriMessage, DistriPart, AgentDefinition, DistriThread, ThreadListParams, AgentUsageInfo, DistriFnTool, ToolCall, ToolResult, PlanStep, DistriConfiguration, DistriClient, DistriClientConfig, SpeechToTextConfig, StreamingTranscriptionOptions, ConfigurationMeta, ConfigurationResponse, DistriEvent, ImagePart } from '@distri/core';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { ReactNode } from 'react';
|
|
4
4
|
import * as zustand from 'zustand';
|
|
@@ -61,17 +61,37 @@ declare function useAgentDefinitions(): UseAgentsResult;
|
|
|
61
61
|
|
|
62
62
|
interface UseThreadsResult {
|
|
63
63
|
threads: DistriThread[];
|
|
64
|
+
total: number;
|
|
65
|
+
page: number;
|
|
66
|
+
pageSize: number;
|
|
64
67
|
loading: boolean;
|
|
65
68
|
error: Error | null;
|
|
69
|
+
params: ThreadListParams;
|
|
70
|
+
setParams: (params: ThreadListParams) => void;
|
|
66
71
|
refetch: () => Promise<void>;
|
|
67
72
|
deleteThread: (threadId: string) => Promise<void>;
|
|
68
73
|
fetchThread: (threadId: string) => Promise<DistriThread>;
|
|
69
74
|
updateThread: (threadId: string, localId?: string) => Promise<void>;
|
|
75
|
+
nextPage: () => void;
|
|
76
|
+
prevPage: () => void;
|
|
77
|
+
goToPage: (page: number) => void;
|
|
78
|
+
setPageSize: (size: number) => void;
|
|
70
79
|
}
|
|
71
80
|
interface UseThreadsOptions {
|
|
72
81
|
enabled?: boolean;
|
|
82
|
+
initialParams?: ThreadListParams;
|
|
73
83
|
}
|
|
74
84
|
declare function useThreads(options?: UseThreadsOptions): UseThreadsResult;
|
|
85
|
+
/**
|
|
86
|
+
* Hook to get agents sorted by usage (thread count)
|
|
87
|
+
*/
|
|
88
|
+
interface UseAgentsByUsageResult {
|
|
89
|
+
agents: AgentUsageInfo[];
|
|
90
|
+
loading: boolean;
|
|
91
|
+
error: Error | null;
|
|
92
|
+
refetch: () => Promise<void>;
|
|
93
|
+
}
|
|
94
|
+
declare function useAgentsByUsage(): UseAgentsByUsageResult;
|
|
75
95
|
interface UseThreadMessagesOptions {
|
|
76
96
|
threadId: string | null;
|
|
77
97
|
}
|
|
@@ -212,9 +232,9 @@ interface ChatState {
|
|
|
212
232
|
wrapOptions?: {
|
|
213
233
|
autoExecute?: boolean;
|
|
214
234
|
};
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
235
|
+
browserSessionId?: string;
|
|
236
|
+
browserViewerUrl?: string;
|
|
237
|
+
browserStreamUrl?: string;
|
|
218
238
|
}
|
|
219
239
|
type ChatStateTool = DistriAnyTool & {
|
|
220
240
|
executionType: 'backend' | 'external';
|
|
@@ -226,12 +246,12 @@ interface ChatStateStore extends ChatState {
|
|
|
226
246
|
setDebug: (debug: boolean) => void;
|
|
227
247
|
setStreamingIndicator: (indicator: StreamingIndicator | undefined) => void;
|
|
228
248
|
setCurrentThought: (thought: string | undefined) => void;
|
|
229
|
-
|
|
249
|
+
setBrowserSession: (sessionId: string, viewerUrl?: string, streamUrl?: string) => void;
|
|
250
|
+
clearBrowserSession: () => void;
|
|
230
251
|
addMessage: (message: DistriChatMessage) => void;
|
|
231
252
|
processMessage: (message: DistriChatMessage, isFromStream?: boolean) => void;
|
|
232
253
|
clearAllStates: () => void;
|
|
233
254
|
clearTask: (taskId: string) => void;
|
|
234
|
-
clearBrowserFrame: () => void;
|
|
235
255
|
getToolByName: (toolName: string) => ChatStateTool | undefined;
|
|
236
256
|
completeRunningSteps: () => void;
|
|
237
257
|
resetStreamingStates: () => void;
|
|
@@ -407,6 +427,12 @@ interface AppSidebarProps {
|
|
|
407
427
|
}
|
|
408
428
|
declare function AppSidebar({ selectedThreadId, currentPage, onNewChat, onThreadSelect, onThreadDelete, onThreadRename, onLogoClick, onPageChange, }: AppSidebarProps): react_jsx_runtime.JSX.Element;
|
|
409
429
|
|
|
430
|
+
declare global {
|
|
431
|
+
interface Window {
|
|
432
|
+
CodeMirror?: any;
|
|
433
|
+
__distriCodeMirrorLoader?: Promise<void>;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
410
436
|
interface AttachedImage {
|
|
411
437
|
id: string;
|
|
412
438
|
file: File;
|
|
@@ -419,6 +445,10 @@ interface ChatInputProps {
|
|
|
419
445
|
onSend: (content: string | DistriPart[]) => void;
|
|
420
446
|
onStop?: () => void;
|
|
421
447
|
browserEnabled?: boolean;
|
|
448
|
+
/** Whether browser has an active session (used for highlighting) */
|
|
449
|
+
browserHasSession?: boolean;
|
|
450
|
+
/** Whether browser session is being created */
|
|
451
|
+
browserLoading?: boolean;
|
|
422
452
|
onToggleBrowser?: (enabled: boolean) => void;
|
|
423
453
|
placeholder?: string;
|
|
424
454
|
disabled?: boolean;
|
|
@@ -458,7 +488,8 @@ declare const BrowserPreviewPanel: React__default.FC<BrowserPreviewPanelProps>;
|
|
|
458
488
|
interface BrowserViewportProps {
|
|
459
489
|
className?: string;
|
|
460
490
|
emptyState?: React__default.ReactNode;
|
|
461
|
-
|
|
491
|
+
/** Optional custom viewer URL override */
|
|
492
|
+
viewerUrl?: string;
|
|
462
493
|
}
|
|
463
494
|
declare const BrowserViewport: React__default.FC<BrowserViewportProps>;
|
|
464
495
|
|
|
@@ -501,6 +532,22 @@ interface DistriProviderProps {
|
|
|
501
532
|
config: DistriClientConfig;
|
|
502
533
|
children: ReactNode;
|
|
503
534
|
defaultTheme?: 'dark' | 'light' | 'system';
|
|
535
|
+
/**
|
|
536
|
+
* Set to false while waiting for auth token from backend.
|
|
537
|
+
* When false, isLoading will be true and hooks will wait.
|
|
538
|
+
* Defaults to true (auth is ready).
|
|
539
|
+
*
|
|
540
|
+
* @example
|
|
541
|
+
* // Backend token loading
|
|
542
|
+
* const [token, setToken] = useState<string | null>(null);
|
|
543
|
+
* useEffect(() => { fetchToken().then(setToken); }, []);
|
|
544
|
+
*
|
|
545
|
+
* <DistriProvider
|
|
546
|
+
* config={{ ...config, accessToken: token }}
|
|
547
|
+
* authReady={token !== null}
|
|
548
|
+
* />
|
|
549
|
+
*/
|
|
550
|
+
authReady?: boolean;
|
|
504
551
|
}
|
|
505
552
|
/**
|
|
506
553
|
* Core provider for Distri SDK. Initializes the DistriClient and handles authentication.
|
|
@@ -861,4 +908,4 @@ interface UserMessageRendererProps {
|
|
|
861
908
|
}
|
|
862
909
|
declare const UserMessageRenderer: React__default.FC<UserMessageRendererProps>;
|
|
863
910
|
|
|
864
|
-
export { AgentSelect, AppSidebar, AssistantMessageRenderer, type AssistantMessageRendererProps, type AttachedImage, AuthLoading, type AuthStatus, Badge, BrowserPreviewPanel, BrowserViewport, type BrowserViewportProps, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Chat, type ChatContainerProps, type ChatCustomRenderers, type ChatEmptyStateCategory, type ChatEmptyStateController, type ChatEmptyStateOptions, type ChatEmptyStateStarter, ChatInner, ChatInput, type ChatInputProps, type ChatInstance, type ChatProps, type ChatState, type ChatStateStore, ConfigurationPanel, DialogRoot as Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger, type DistriAnyTool, DistriAuthProvider, DistriContext, DistriProvider, type DistriUiTool, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type ExtractedContent, ImageRenderer, type ImageRendererProps, Input, LoadingAnimation, type LoadingAnimationConfig, type LoadingAnimationPreset, type LoadingAnimationProps, LoadingShimmer, MessageRenderer, type MessageRendererProps, type ModelOption, type PlanState, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, StepBasedRenderer, type StepBasedRendererProps, type StepState, type StreamingIndicator, StreamingTextRenderer, type StreamingTtsOptions, type TaskState, Textarea, ThemeProvider, ThemeToggle, ThinkingRenderer, type ThinkingRendererProps, type ToolCallState, type ToolCallStatus, type ToolRendererMap, type ToolRendererProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TtsConfig, type TtsRequest, TypingIndicator, type UiToolProps, type UseAgentOptions, type UseAgentResult, type UseAgentsResult, type UseChatMessagesOptions, type UseChatMessagesReturn, type UseChatOptions, type UseChatReturn, type UseConfigurationResult, type UseThreadMessagesOptions, type UseThreadsOptions, type UseThreadsResult, UserMessageRenderer, type UserMessageRendererProps, VoiceInput, type VoiceInputProps, extractContent, useAgent, useAgentDefinitions, useChat, useChatMessages, useChatStateStore, useConfiguration, useDistri, useDistriAuth, useDistriToken, useSidebar, useSpeechToText, useTheme, useThreads, useTts, wrapFnToolAsUiTool, wrapTools };
|
|
911
|
+
export { AgentSelect, AppSidebar, AssistantMessageRenderer, type AssistantMessageRendererProps, type AttachedImage, AuthLoading, type AuthStatus, Badge, BrowserPreviewPanel, BrowserViewport, type BrowserViewportProps, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Chat, type ChatContainerProps, type ChatCustomRenderers, type ChatEmptyStateCategory, type ChatEmptyStateController, type ChatEmptyStateOptions, type ChatEmptyStateStarter, ChatInner, ChatInput, type ChatInputProps, type ChatInstance, type ChatProps, type ChatState, type ChatStateStore, ConfigurationPanel, DialogRoot as Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger, type DistriAnyTool, DistriAuthProvider, DistriContext, DistriProvider, type DistriUiTool, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type ExtractedContent, ImageRenderer, type ImageRendererProps, Input, LoadingAnimation, type LoadingAnimationConfig, type LoadingAnimationPreset, type LoadingAnimationProps, LoadingShimmer, MessageRenderer, type MessageRendererProps, type ModelOption, type PlanState, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, StepBasedRenderer, type StepBasedRendererProps, type StepState, type StreamingIndicator, StreamingTextRenderer, type StreamingTtsOptions, type TaskState, Textarea, ThemeProvider, ThemeToggle, ThinkingRenderer, type ThinkingRendererProps, type ToolCallState, type ToolCallStatus, type ToolRendererMap, type ToolRendererProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TtsConfig, type TtsRequest, TypingIndicator, type UiToolProps, type UseAgentOptions, type UseAgentResult, type UseAgentsByUsageResult, type UseAgentsResult, type UseChatMessagesOptions, type UseChatMessagesReturn, type UseChatOptions, type UseChatReturn, type UseConfigurationResult, type UseThreadMessagesOptions, type UseThreadsOptions, type UseThreadsResult, UserMessageRenderer, type UserMessageRendererProps, VoiceInput, type VoiceInputProps, extractContent, useAgent, useAgentDefinitions, useAgentsByUsage, useChat, useChatMessages, useChatStateStore, useConfiguration, useDistri, useDistriAuth, useDistriToken, useSidebar, useSpeechToText, useTheme, useThreads, useTts, wrapFnToolAsUiTool, wrapTools };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Agent as Agent$1, DistriChatMessage, DistriBaseTool, ToolExecutionOptions, DistriMessage, DistriPart, AgentDefinition, DistriThread, DistriFnTool, ToolCall, ToolResult, PlanStep, DistriConfiguration, DistriClient, DistriClientConfig, SpeechToTextConfig, StreamingTranscriptionOptions, ConfigurationMeta, ConfigurationResponse, DistriEvent, ImagePart } from '@distri/core';
|
|
1
|
+
import { Agent as Agent$1, DistriChatMessage, DistriBaseTool, ToolExecutionOptions, DistriMessage, DistriPart, AgentDefinition, DistriThread, ThreadListParams, AgentUsageInfo, DistriFnTool, ToolCall, ToolResult, PlanStep, DistriConfiguration, DistriClient, DistriClientConfig, SpeechToTextConfig, StreamingTranscriptionOptions, ConfigurationMeta, ConfigurationResponse, DistriEvent, ImagePart } from '@distri/core';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { ReactNode } from 'react';
|
|
4
4
|
import * as zustand from 'zustand';
|
|
@@ -61,17 +61,37 @@ declare function useAgentDefinitions(): UseAgentsResult;
|
|
|
61
61
|
|
|
62
62
|
interface UseThreadsResult {
|
|
63
63
|
threads: DistriThread[];
|
|
64
|
+
total: number;
|
|
65
|
+
page: number;
|
|
66
|
+
pageSize: number;
|
|
64
67
|
loading: boolean;
|
|
65
68
|
error: Error | null;
|
|
69
|
+
params: ThreadListParams;
|
|
70
|
+
setParams: (params: ThreadListParams) => void;
|
|
66
71
|
refetch: () => Promise<void>;
|
|
67
72
|
deleteThread: (threadId: string) => Promise<void>;
|
|
68
73
|
fetchThread: (threadId: string) => Promise<DistriThread>;
|
|
69
74
|
updateThread: (threadId: string, localId?: string) => Promise<void>;
|
|
75
|
+
nextPage: () => void;
|
|
76
|
+
prevPage: () => void;
|
|
77
|
+
goToPage: (page: number) => void;
|
|
78
|
+
setPageSize: (size: number) => void;
|
|
70
79
|
}
|
|
71
80
|
interface UseThreadsOptions {
|
|
72
81
|
enabled?: boolean;
|
|
82
|
+
initialParams?: ThreadListParams;
|
|
73
83
|
}
|
|
74
84
|
declare function useThreads(options?: UseThreadsOptions): UseThreadsResult;
|
|
85
|
+
/**
|
|
86
|
+
* Hook to get agents sorted by usage (thread count)
|
|
87
|
+
*/
|
|
88
|
+
interface UseAgentsByUsageResult {
|
|
89
|
+
agents: AgentUsageInfo[];
|
|
90
|
+
loading: boolean;
|
|
91
|
+
error: Error | null;
|
|
92
|
+
refetch: () => Promise<void>;
|
|
93
|
+
}
|
|
94
|
+
declare function useAgentsByUsage(): UseAgentsByUsageResult;
|
|
75
95
|
interface UseThreadMessagesOptions {
|
|
76
96
|
threadId: string | null;
|
|
77
97
|
}
|
|
@@ -212,9 +232,9 @@ interface ChatState {
|
|
|
212
232
|
wrapOptions?: {
|
|
213
233
|
autoExecute?: boolean;
|
|
214
234
|
};
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
235
|
+
browserSessionId?: string;
|
|
236
|
+
browserViewerUrl?: string;
|
|
237
|
+
browserStreamUrl?: string;
|
|
218
238
|
}
|
|
219
239
|
type ChatStateTool = DistriAnyTool & {
|
|
220
240
|
executionType: 'backend' | 'external';
|
|
@@ -226,12 +246,12 @@ interface ChatStateStore extends ChatState {
|
|
|
226
246
|
setDebug: (debug: boolean) => void;
|
|
227
247
|
setStreamingIndicator: (indicator: StreamingIndicator | undefined) => void;
|
|
228
248
|
setCurrentThought: (thought: string | undefined) => void;
|
|
229
|
-
|
|
249
|
+
setBrowserSession: (sessionId: string, viewerUrl?: string, streamUrl?: string) => void;
|
|
250
|
+
clearBrowserSession: () => void;
|
|
230
251
|
addMessage: (message: DistriChatMessage) => void;
|
|
231
252
|
processMessage: (message: DistriChatMessage, isFromStream?: boolean) => void;
|
|
232
253
|
clearAllStates: () => void;
|
|
233
254
|
clearTask: (taskId: string) => void;
|
|
234
|
-
clearBrowserFrame: () => void;
|
|
235
255
|
getToolByName: (toolName: string) => ChatStateTool | undefined;
|
|
236
256
|
completeRunningSteps: () => void;
|
|
237
257
|
resetStreamingStates: () => void;
|
|
@@ -407,6 +427,12 @@ interface AppSidebarProps {
|
|
|
407
427
|
}
|
|
408
428
|
declare function AppSidebar({ selectedThreadId, currentPage, onNewChat, onThreadSelect, onThreadDelete, onThreadRename, onLogoClick, onPageChange, }: AppSidebarProps): react_jsx_runtime.JSX.Element;
|
|
409
429
|
|
|
430
|
+
declare global {
|
|
431
|
+
interface Window {
|
|
432
|
+
CodeMirror?: any;
|
|
433
|
+
__distriCodeMirrorLoader?: Promise<void>;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
410
436
|
interface AttachedImage {
|
|
411
437
|
id: string;
|
|
412
438
|
file: File;
|
|
@@ -419,6 +445,10 @@ interface ChatInputProps {
|
|
|
419
445
|
onSend: (content: string | DistriPart[]) => void;
|
|
420
446
|
onStop?: () => void;
|
|
421
447
|
browserEnabled?: boolean;
|
|
448
|
+
/** Whether browser has an active session (used for highlighting) */
|
|
449
|
+
browserHasSession?: boolean;
|
|
450
|
+
/** Whether browser session is being created */
|
|
451
|
+
browserLoading?: boolean;
|
|
422
452
|
onToggleBrowser?: (enabled: boolean) => void;
|
|
423
453
|
placeholder?: string;
|
|
424
454
|
disabled?: boolean;
|
|
@@ -458,7 +488,8 @@ declare const BrowserPreviewPanel: React__default.FC<BrowserPreviewPanelProps>;
|
|
|
458
488
|
interface BrowserViewportProps {
|
|
459
489
|
className?: string;
|
|
460
490
|
emptyState?: React__default.ReactNode;
|
|
461
|
-
|
|
491
|
+
/** Optional custom viewer URL override */
|
|
492
|
+
viewerUrl?: string;
|
|
462
493
|
}
|
|
463
494
|
declare const BrowserViewport: React__default.FC<BrowserViewportProps>;
|
|
464
495
|
|
|
@@ -501,6 +532,22 @@ interface DistriProviderProps {
|
|
|
501
532
|
config: DistriClientConfig;
|
|
502
533
|
children: ReactNode;
|
|
503
534
|
defaultTheme?: 'dark' | 'light' | 'system';
|
|
535
|
+
/**
|
|
536
|
+
* Set to false while waiting for auth token from backend.
|
|
537
|
+
* When false, isLoading will be true and hooks will wait.
|
|
538
|
+
* Defaults to true (auth is ready).
|
|
539
|
+
*
|
|
540
|
+
* @example
|
|
541
|
+
* // Backend token loading
|
|
542
|
+
* const [token, setToken] = useState<string | null>(null);
|
|
543
|
+
* useEffect(() => { fetchToken().then(setToken); }, []);
|
|
544
|
+
*
|
|
545
|
+
* <DistriProvider
|
|
546
|
+
* config={{ ...config, accessToken: token }}
|
|
547
|
+
* authReady={token !== null}
|
|
548
|
+
* />
|
|
549
|
+
*/
|
|
550
|
+
authReady?: boolean;
|
|
504
551
|
}
|
|
505
552
|
/**
|
|
506
553
|
* Core provider for Distri SDK. Initializes the DistriClient and handles authentication.
|
|
@@ -861,4 +908,4 @@ interface UserMessageRendererProps {
|
|
|
861
908
|
}
|
|
862
909
|
declare const UserMessageRenderer: React__default.FC<UserMessageRendererProps>;
|
|
863
910
|
|
|
864
|
-
export { AgentSelect, AppSidebar, AssistantMessageRenderer, type AssistantMessageRendererProps, type AttachedImage, AuthLoading, type AuthStatus, Badge, BrowserPreviewPanel, BrowserViewport, type BrowserViewportProps, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Chat, type ChatContainerProps, type ChatCustomRenderers, type ChatEmptyStateCategory, type ChatEmptyStateController, type ChatEmptyStateOptions, type ChatEmptyStateStarter, ChatInner, ChatInput, type ChatInputProps, type ChatInstance, type ChatProps, type ChatState, type ChatStateStore, ConfigurationPanel, DialogRoot as Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger, type DistriAnyTool, DistriAuthProvider, DistriContext, DistriProvider, type DistriUiTool, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type ExtractedContent, ImageRenderer, type ImageRendererProps, Input, LoadingAnimation, type LoadingAnimationConfig, type LoadingAnimationPreset, type LoadingAnimationProps, LoadingShimmer, MessageRenderer, type MessageRendererProps, type ModelOption, type PlanState, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, StepBasedRenderer, type StepBasedRendererProps, type StepState, type StreamingIndicator, StreamingTextRenderer, type StreamingTtsOptions, type TaskState, Textarea, ThemeProvider, ThemeToggle, ThinkingRenderer, type ThinkingRendererProps, type ToolCallState, type ToolCallStatus, type ToolRendererMap, type ToolRendererProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TtsConfig, type TtsRequest, TypingIndicator, type UiToolProps, type UseAgentOptions, type UseAgentResult, type UseAgentsResult, type UseChatMessagesOptions, type UseChatMessagesReturn, type UseChatOptions, type UseChatReturn, type UseConfigurationResult, type UseThreadMessagesOptions, type UseThreadsOptions, type UseThreadsResult, UserMessageRenderer, type UserMessageRendererProps, VoiceInput, type VoiceInputProps, extractContent, useAgent, useAgentDefinitions, useChat, useChatMessages, useChatStateStore, useConfiguration, useDistri, useDistriAuth, useDistriToken, useSidebar, useSpeechToText, useTheme, useThreads, useTts, wrapFnToolAsUiTool, wrapTools };
|
|
911
|
+
export { AgentSelect, AppSidebar, AssistantMessageRenderer, type AssistantMessageRendererProps, type AttachedImage, AuthLoading, type AuthStatus, Badge, BrowserPreviewPanel, BrowserViewport, type BrowserViewportProps, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Chat, type ChatContainerProps, type ChatCustomRenderers, type ChatEmptyStateCategory, type ChatEmptyStateController, type ChatEmptyStateOptions, type ChatEmptyStateStarter, ChatInner, ChatInput, type ChatInputProps, type ChatInstance, type ChatProps, type ChatState, type ChatStateStore, ConfigurationPanel, DialogRoot as Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger, type DistriAnyTool, DistriAuthProvider, DistriContext, DistriProvider, type DistriUiTool, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type ExtractedContent, ImageRenderer, type ImageRendererProps, Input, LoadingAnimation, type LoadingAnimationConfig, type LoadingAnimationPreset, type LoadingAnimationProps, LoadingShimmer, MessageRenderer, type MessageRendererProps, type ModelOption, type PlanState, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, StepBasedRenderer, type StepBasedRendererProps, type StepState, type StreamingIndicator, StreamingTextRenderer, type StreamingTtsOptions, type TaskState, Textarea, ThemeProvider, ThemeToggle, ThinkingRenderer, type ThinkingRendererProps, type ToolCallState, type ToolCallStatus, type ToolRendererMap, type ToolRendererProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TtsConfig, type TtsRequest, TypingIndicator, type UiToolProps, type UseAgentOptions, type UseAgentResult, type UseAgentsByUsageResult, type UseAgentsResult, type UseChatMessagesOptions, type UseChatMessagesReturn, type UseChatOptions, type UseChatReturn, type UseConfigurationResult, type UseThreadMessagesOptions, type UseThreadsOptions, type UseThreadsResult, UserMessageRenderer, type UserMessageRendererProps, VoiceInput, type VoiceInputProps, extractContent, useAgent, useAgentDefinitions, useAgentsByUsage, useChat, useChatMessages, useChatStateStore, useConfiguration, useDistri, useDistriAuth, useDistriToken, useSidebar, useSpeechToText, useTheme, useThreads, useTts, wrapFnToolAsUiTool, wrapTools };
|