@miiflow/assistant-ui 0.2.3 → 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/{WelcomeScreen-YsXZsAwZ.d.ts → WelcomeScreen-DAa22X9b.d.ts} +1 -1
- package/dist/{chunk-POKFMILU.js → chunk-IM4WITWJ.js} +9 -11
- package/dist/chunk-IM4WITWJ.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/styled/index.d.ts +1 -1
- package/dist/styled/index.js +1 -1
- package/dist/styles-no-preflight.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +9 -18
- package/dist/WelcomeScreen-BiY3uGhp.d.cts +0 -301
- package/dist/avatar-CL1hlGO5.d.cts +0 -109
- package/dist/branding-SzYU4ncD.d.cts +0 -18
- package/dist/chunk-3SEVU272.cjs +0 -2
- package/dist/chunk-3SEVU272.cjs.map +0 -1
- package/dist/chunk-HVCCZKEO.cjs +0 -2
- package/dist/chunk-HVCCZKEO.cjs.map +0 -1
- package/dist/chunk-KSMAVBLY.cjs +0 -2
- package/dist/chunk-KSMAVBLY.cjs.map +0 -1
- package/dist/chunk-POKFMILU.js.map +0 -1
- package/dist/chunk-QGRXQAWZ.cjs +0 -22
- package/dist/chunk-QGRXQAWZ.cjs.map +0 -1
- package/dist/chunk-SFEPMZCU.cjs +0 -2
- package/dist/chunk-SFEPMZCU.cjs.map +0 -1
- package/dist/chunk-TOYU46SZ.cjs +0 -2
- package/dist/chunk-TOYU46SZ.cjs.map +0 -1
- package/dist/chunk-ZKMXEECD.cjs +0 -2
- package/dist/chunk-ZKMXEECD.cjs.map +0 -1
- package/dist/client/index.cjs +0 -9
- package/dist/client/index.cjs.map +0 -1
- package/dist/client/index.d.cts +0 -249
- package/dist/context/index.cjs +0 -2
- package/dist/context/index.cjs.map +0 -1
- package/dist/context/index.d.cts +0 -43
- package/dist/hooks/index.cjs +0 -2
- package/dist/hooks/index.cjs.map +0 -1
- package/dist/hooks/index.d.cts +0 -146
- package/dist/index.cjs +0 -2
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -157
- package/dist/message-9z0crkf9.d.cts +0 -88
- package/dist/primitives/index.cjs +0 -2
- package/dist/primitives/index.cjs.map +0 -1
- package/dist/primitives/index.d.cts +0 -91
- package/dist/streaming-CF63E6iS.d.cts +0 -426
- package/dist/styled/index.cjs +0 -2
- package/dist/styled/index.cjs.map +0 -1
- package/dist/styled/index.d.cts +0 -477
package/dist/styled/index.d.cts
DELETED
|
@@ -1,477 +0,0 @@
|
|
|
1
|
-
export { A as AttachmentPreview, j as AttachmentPreviewProps, a as Avatar, k as AvatarProps, C as ChatContainer, l as ChatContainerProps, b as ChatLayout, m as ChatLayoutProps, M as MarkdownContent, n as MarkdownContentProps, c as Message, d as MessageActionBar, o as MessageActionBarProps, e as MessageComposer, p as MessageComposerProps, f as MessageList, q as MessageListProps, r as MessageProps, S as ScrollToBottomButton, s as ScrollToBottomButtonProps, g as StreamingText, t as StreamingTextProps, h as SuggestedActions, u as SuggestedActionsProps, v as ToolStatus, T as ToolStatusIndicator, w as ToolStatusIndicatorProps, i as TypingIndicator, x as TypingIndicatorProps, W as WelcomeScreen, y as WelcomeScreenProps } from '../WelcomeScreen-BiY3uGhp.cjs';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import react__default, { ReactNode } from 'react';
|
|
4
|
-
import { A as Attachment, S as SourceReference } from '../message-9z0crkf9.cjs';
|
|
5
|
-
export { C as ChatMessage, M as MessageData, a as MessageError, b as Participant, P as ParticipantRole, c as SourceTypeConfig, d as SuggestedAction, e as SuggestedActionType } from '../message-9z0crkf9.cjs';
|
|
6
|
-
import { S as StreamingChunk, P as PlanData, C as ClarificationData, V as VisualizationChunkData, d as VisualizationActionEvent, e as ChartVisualizationData, f as VisualizationConfig, T as TableVisualizationData, g as CardVisualizationData, K as KpiVisualizationData, h as CodePreviewVisualizationData, F as FormVisualizationData, E as Event, i as EventStatus } from '../streaming-CF63E6iS.cjs';
|
|
7
|
-
export { j as ChunkType, k as ClaudeToolChunkData, l as EventType, m as FileOperationChunkData, n as FollowupAction, O as ObservationEvent, o as ParallelSubtaskData, p as PlanningEvent, q as ProgressData, r as SearchResultsChunkData, s as StreamingMessage, t as SubTaskData, u as SubagentChunkData, v as SubagentInfo, w as SubtaskEvent, x as TerminalChunkData, y as ThinkingEvent, z as ToolEvent, A as VisualizationType, W as WaveData, B as WebOperationChunkData } from '../streaming-CF63E6iS.cjs';
|
|
8
|
-
import { z, ZodSchema } from 'zod';
|
|
9
|
-
export { ChatContextValue, ChatProvider, ChatProviderProps, useChatContext } from '../context/index.cjs';
|
|
10
|
-
export { B as BrandingData } from '../branding-SzYU4ncD.cjs';
|
|
11
|
-
export { u as useComposer, g as useMessage } from '../avatar-CL1hlGO5.cjs';
|
|
12
|
-
|
|
13
|
-
interface LoadingDotsProps {
|
|
14
|
-
/** Size variant */
|
|
15
|
-
size?: "small" | "medium" | "large";
|
|
16
|
-
/** Additional CSS classes */
|
|
17
|
-
className?: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Animated loading dots indicator
|
|
21
|
-
*/
|
|
22
|
-
declare function LoadingDots({ size, className }: LoadingDotsProps): react_jsx_runtime.JSX.Element;
|
|
23
|
-
|
|
24
|
-
interface TimeMarkerProps {
|
|
25
|
-
/** The label to display (e.g. "Today", "Yesterday", "Monday") */
|
|
26
|
-
label: string;
|
|
27
|
-
/** Additional CSS classes */
|
|
28
|
-
className?: string;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Centered time separator between message groups.
|
|
32
|
-
* Displays a label like "Today" or "Yesterday" with horizontal rules.
|
|
33
|
-
*/
|
|
34
|
-
declare function TimeMarker({ label, className }: TimeMarkerProps): react_jsx_runtime.JSX.Element;
|
|
35
|
-
|
|
36
|
-
interface ChatHeaderAction {
|
|
37
|
-
id: string;
|
|
38
|
-
label: string;
|
|
39
|
-
icon?: react__default.ReactNode;
|
|
40
|
-
onClick: () => void;
|
|
41
|
-
disabled?: boolean;
|
|
42
|
-
}
|
|
43
|
-
interface ChatHeaderProps {
|
|
44
|
-
/** Assistant/chat title */
|
|
45
|
-
title: string;
|
|
46
|
-
/** Optional subtitle/description */
|
|
47
|
-
subtitle?: string;
|
|
48
|
-
/** Logo URL or element */
|
|
49
|
-
logo?: string | react__default.ReactNode;
|
|
50
|
-
/** Menu actions */
|
|
51
|
-
actions?: ChatHeaderAction[];
|
|
52
|
-
/** Show close button */
|
|
53
|
-
showClose?: boolean;
|
|
54
|
-
/** Close button handler */
|
|
55
|
-
onClose?: () => void;
|
|
56
|
-
/** Loading state */
|
|
57
|
-
loading?: boolean;
|
|
58
|
-
/** Additional class names */
|
|
59
|
-
className?: string;
|
|
60
|
-
/** Custom styles via CSS variables */
|
|
61
|
-
style?: react__default.CSSProperties;
|
|
62
|
-
}
|
|
63
|
-
declare function ChatHeader({ title, subtitle, logo, actions, showClose, onClose, loading, className, style, }: ChatHeaderProps): react_jsx_runtime.JSX.Element;
|
|
64
|
-
|
|
65
|
-
interface MessageAttachmentsProps {
|
|
66
|
-
/** List of attachments to display */
|
|
67
|
-
attachments: Attachment[];
|
|
68
|
-
/** Custom download handler */
|
|
69
|
-
onDownload?: (attachment: Attachment) => void;
|
|
70
|
-
/** Custom preview handler */
|
|
71
|
-
onPreview?: (attachment: Attachment) => void;
|
|
72
|
-
/** Additional class names */
|
|
73
|
-
className?: string;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Display attachments (images, videos, documents) in messages
|
|
77
|
-
*/
|
|
78
|
-
declare function MessageAttachments({ attachments, onDownload, onPreview, className, }: MessageAttachmentsProps): react_jsx_runtime.JSX.Element | null;
|
|
79
|
-
|
|
80
|
-
interface ReasoningPanelProps {
|
|
81
|
-
/** Whether currently streaming */
|
|
82
|
-
isStreaming?: boolean;
|
|
83
|
-
/** Streaming chunks */
|
|
84
|
-
chunks?: StreamingChunk[];
|
|
85
|
-
/** Execution plan for Plan & Execute mode */
|
|
86
|
-
plan?: PlanData;
|
|
87
|
-
/** Execution timeline (completed messages) */
|
|
88
|
-
executionTimeline?: any[];
|
|
89
|
-
/** User message timestamp for duration calculation */
|
|
90
|
-
userMessageTimestamp?: number;
|
|
91
|
-
/** Total execution time in seconds */
|
|
92
|
-
executionTime?: number;
|
|
93
|
-
/** Whether expanded by default */
|
|
94
|
-
defaultExpanded?: boolean;
|
|
95
|
-
/** Controlled expanded state */
|
|
96
|
-
expanded?: boolean;
|
|
97
|
-
/** Callback when expanded state changes */
|
|
98
|
-
onExpandedChange?: (expanded: boolean) => void;
|
|
99
|
-
/** Additional class names */
|
|
100
|
-
className?: string;
|
|
101
|
-
}
|
|
102
|
-
declare function ReasoningPanel({ isStreaming, chunks, plan, executionTimeline, userMessageTimestamp, executionTime, defaultExpanded, expanded: controlledExpanded, onExpandedChange, className, }: ReasoningPanelProps): react_jsx_runtime.JSX.Element | null;
|
|
103
|
-
|
|
104
|
-
interface ClarificationPanelProps {
|
|
105
|
-
clarification: ClarificationData;
|
|
106
|
-
onSubmit: (response: string) => void;
|
|
107
|
-
onOptionSelect?: (option: string) => void;
|
|
108
|
-
disabled?: boolean;
|
|
109
|
-
loading?: boolean;
|
|
110
|
-
className?: string;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Stateless clarification panel - displays when the AI agent needs user input.
|
|
114
|
-
* Orange left-border panel with question, radio options, and free-text input.
|
|
115
|
-
*/
|
|
116
|
-
declare function ClarificationPanel({ clarification, onSubmit, onOptionSelect, disabled, loading, className, }: ClarificationPanelProps): react_jsx_runtime.JSX.Element;
|
|
117
|
-
|
|
118
|
-
interface CitationSourcesProps {
|
|
119
|
-
sources: SourceReference[];
|
|
120
|
-
className?: string;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Renders citation sources as a horizontal row of clickable chips.
|
|
124
|
-
* Clicking a chip opens a modal showing full source content.
|
|
125
|
-
*/
|
|
126
|
-
declare function CitationSources({ sources, className }: CitationSourcesProps): react_jsx_runtime.JSX.Element | null;
|
|
127
|
-
interface SourceDetailModalProps {
|
|
128
|
-
source: SourceReference | null;
|
|
129
|
-
onClose: () => void;
|
|
130
|
-
}
|
|
131
|
-
declare function SourceDetailModal({ source, onClose, }: SourceDetailModalProps): react_jsx_runtime.JSX.Element | null;
|
|
132
|
-
/**
|
|
133
|
-
* Inline citation badge - renders a small numbered badge like [1]
|
|
134
|
-
* with optional tooltip on hover and click-to-open URL.
|
|
135
|
-
*/
|
|
136
|
-
interface InlineCitationProps {
|
|
137
|
-
index: number;
|
|
138
|
-
source?: SourceReference;
|
|
139
|
-
}
|
|
140
|
-
declare function InlineCitation({ index, source }: InlineCitationProps): react_jsx_runtime.JSX.Element;
|
|
141
|
-
|
|
142
|
-
interface ClaudeToolPreviewProps {
|
|
143
|
-
chunk: StreamingChunk;
|
|
144
|
-
}
|
|
145
|
-
declare function ClaudeToolPreview({ chunk }: ClaudeToolPreviewProps): react_jsx_runtime.JSX.Element | null;
|
|
146
|
-
|
|
147
|
-
interface TerminalOutputProps {
|
|
148
|
-
chunk: StreamingChunk;
|
|
149
|
-
}
|
|
150
|
-
declare function TerminalOutput({ chunk }: TerminalOutputProps): react_jsx_runtime.JSX.Element | null;
|
|
151
|
-
|
|
152
|
-
interface FileOperationPreviewProps {
|
|
153
|
-
chunk: StreamingChunk;
|
|
154
|
-
}
|
|
155
|
-
declare function FileOperationPreview({ chunk }: FileOperationPreviewProps): react_jsx_runtime.JSX.Element | null;
|
|
156
|
-
|
|
157
|
-
interface SearchResultsViewProps {
|
|
158
|
-
chunk: StreamingChunk;
|
|
159
|
-
}
|
|
160
|
-
declare function SearchResultsView({ chunk }: SearchResultsViewProps): react_jsx_runtime.JSX.Element | null;
|
|
161
|
-
|
|
162
|
-
interface WebOperationPreviewProps {
|
|
163
|
-
chunk: StreamingChunk;
|
|
164
|
-
}
|
|
165
|
-
declare function WebOperationPreview({ chunk }: WebOperationPreviewProps): react_jsx_runtime.JSX.Element | null;
|
|
166
|
-
|
|
167
|
-
interface SubagentPanelProps {
|
|
168
|
-
chunk: StreamingChunk;
|
|
169
|
-
}
|
|
170
|
-
declare function SubagentPanel({ chunk }: SubagentPanelProps): react_jsx_runtime.JSX.Element | null;
|
|
171
|
-
|
|
172
|
-
declare const chartVisualizationSchema: z.ZodObject<{
|
|
173
|
-
chartType: z.ZodEnum<{
|
|
174
|
-
line: "line";
|
|
175
|
-
bar: "bar";
|
|
176
|
-
pie: "pie";
|
|
177
|
-
area: "area";
|
|
178
|
-
scatter: "scatter";
|
|
179
|
-
composed: "composed";
|
|
180
|
-
}>;
|
|
181
|
-
series: z.ZodArray<z.ZodObject<{
|
|
182
|
-
name: z.ZodString;
|
|
183
|
-
data: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
184
|
-
x: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
185
|
-
y: z.ZodNumber;
|
|
186
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
187
|
-
name: z.ZodString;
|
|
188
|
-
value: z.ZodNumber;
|
|
189
|
-
}, z.core.$strip>]>>;
|
|
190
|
-
color: z.ZodOptional<z.ZodString>;
|
|
191
|
-
}, z.core.$strip>>;
|
|
192
|
-
xAxis: z.ZodOptional<z.ZodObject<{
|
|
193
|
-
label: z.ZodOptional<z.ZodString>;
|
|
194
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
195
|
-
number: "number";
|
|
196
|
-
category: "category";
|
|
197
|
-
time: "time";
|
|
198
|
-
}>>;
|
|
199
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
200
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
201
|
-
}, z.core.$strip>>;
|
|
202
|
-
yAxis: z.ZodOptional<z.ZodObject<{
|
|
203
|
-
label: z.ZodOptional<z.ZodString>;
|
|
204
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
205
|
-
number: "number";
|
|
206
|
-
category: "category";
|
|
207
|
-
time: "time";
|
|
208
|
-
}>>;
|
|
209
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
210
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
211
|
-
}, z.core.$strip>>;
|
|
212
|
-
}, z.core.$strip>;
|
|
213
|
-
declare const tableVisualizationSchema: z.ZodObject<{
|
|
214
|
-
columns: z.ZodArray<z.ZodObject<{
|
|
215
|
-
key: z.ZodString;
|
|
216
|
-
label: z.ZodString;
|
|
217
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
218
|
-
string: "string";
|
|
219
|
-
number: "number";
|
|
220
|
-
boolean: "boolean";
|
|
221
|
-
progress: "progress";
|
|
222
|
-
currency: "currency";
|
|
223
|
-
date: "date";
|
|
224
|
-
badge: "badge";
|
|
225
|
-
link: "link";
|
|
226
|
-
}>>;
|
|
227
|
-
align: z.ZodOptional<z.ZodEnum<{
|
|
228
|
-
left: "left";
|
|
229
|
-
center: "center";
|
|
230
|
-
right: "right";
|
|
231
|
-
}>>;
|
|
232
|
-
width: z.ZodOptional<z.ZodString>;
|
|
233
|
-
}, z.core.$strip>>;
|
|
234
|
-
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
235
|
-
}, z.core.$strip>;
|
|
236
|
-
declare const cardVisualizationSchema: z.ZodObject<{
|
|
237
|
-
subtitle: z.ZodOptional<z.ZodString>;
|
|
238
|
-
imageUrl: z.ZodOptional<z.ZodString>;
|
|
239
|
-
sections: z.ZodArray<z.ZodObject<{
|
|
240
|
-
title: z.ZodOptional<z.ZodString>;
|
|
241
|
-
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
242
|
-
label: z.ZodString;
|
|
243
|
-
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
244
|
-
}, z.core.$strip>>>;
|
|
245
|
-
content: z.ZodOptional<z.ZodString>;
|
|
246
|
-
}, z.core.$strip>>;
|
|
247
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
248
|
-
label: z.ZodString;
|
|
249
|
-
action: z.ZodString;
|
|
250
|
-
variant: z.ZodOptional<z.ZodEnum<{
|
|
251
|
-
primary: "primary";
|
|
252
|
-
secondary: "secondary";
|
|
253
|
-
text: "text";
|
|
254
|
-
}>>;
|
|
255
|
-
}, z.core.$strip>>>;
|
|
256
|
-
}, z.core.$strip>;
|
|
257
|
-
declare const kpiVisualizationSchema: z.ZodObject<{
|
|
258
|
-
metrics: z.ZodArray<z.ZodObject<{
|
|
259
|
-
label: z.ZodString;
|
|
260
|
-
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
261
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
262
|
-
trend: z.ZodOptional<z.ZodEnum<{
|
|
263
|
-
up: "up";
|
|
264
|
-
down: "down";
|
|
265
|
-
neutral: "neutral";
|
|
266
|
-
}>>;
|
|
267
|
-
change: z.ZodOptional<z.ZodString>;
|
|
268
|
-
changeLabel: z.ZodOptional<z.ZodString>;
|
|
269
|
-
sparkline: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
270
|
-
color: z.ZodOptional<z.ZodString>;
|
|
271
|
-
}, z.core.$strip>>;
|
|
272
|
-
layout: z.ZodOptional<z.ZodEnum<{
|
|
273
|
-
row: "row";
|
|
274
|
-
grid: "grid";
|
|
275
|
-
}>>;
|
|
276
|
-
}, z.core.$strip>;
|
|
277
|
-
declare const codePreviewVisualizationSchema: z.ZodObject<{
|
|
278
|
-
code: z.ZodString;
|
|
279
|
-
language: z.ZodString;
|
|
280
|
-
lineNumbers: z.ZodOptional<z.ZodBoolean>;
|
|
281
|
-
highlightLines: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
282
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
283
|
-
}, z.core.$strip>;
|
|
284
|
-
declare const formVisualizationSchema: z.ZodObject<{
|
|
285
|
-
fields: z.ZodArray<z.ZodObject<{
|
|
286
|
-
name: z.ZodString;
|
|
287
|
-
type: z.ZodEnum<{
|
|
288
|
-
number: "number";
|
|
289
|
-
date: "date";
|
|
290
|
-
text: "text";
|
|
291
|
-
email: "email";
|
|
292
|
-
select: "select";
|
|
293
|
-
multiselect: "multiselect";
|
|
294
|
-
checkbox: "checkbox";
|
|
295
|
-
radio: "radio";
|
|
296
|
-
textarea: "textarea";
|
|
297
|
-
datetime: "datetime";
|
|
298
|
-
}>;
|
|
299
|
-
label: z.ZodString;
|
|
300
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
301
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
302
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
303
|
-
value: z.ZodString;
|
|
304
|
-
label: z.ZodString;
|
|
305
|
-
}, z.core.$strip>>>;
|
|
306
|
-
defaultValue: z.ZodOptional<z.ZodUnknown>;
|
|
307
|
-
validation: z.ZodOptional<z.ZodObject<{
|
|
308
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
309
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
310
|
-
pattern: z.ZodOptional<z.ZodString>;
|
|
311
|
-
message: z.ZodOptional<z.ZodString>;
|
|
312
|
-
}, z.core.$strip>>;
|
|
313
|
-
}, z.core.$strip>>;
|
|
314
|
-
submitAction: z.ZodOptional<z.ZodString>;
|
|
315
|
-
}, z.core.$strip>;
|
|
316
|
-
|
|
317
|
-
interface VisualizationRendererProps {
|
|
318
|
-
data: VisualizationChunkData;
|
|
319
|
-
isStreaming?: boolean;
|
|
320
|
-
onAction?: (event: VisualizationActionEvent) => void;
|
|
321
|
-
}
|
|
322
|
-
declare function VisualizationRenderer({ data, isStreaming, onAction, }: VisualizationRendererProps): react_jsx_runtime.JSX.Element;
|
|
323
|
-
|
|
324
|
-
interface ChartVisualizationProps {
|
|
325
|
-
data: ChartVisualizationData;
|
|
326
|
-
config?: VisualizationConfig;
|
|
327
|
-
isStreaming?: boolean;
|
|
328
|
-
}
|
|
329
|
-
declare function ChartVisualization({ data, config, isStreaming }: ChartVisualizationProps): react_jsx_runtime.JSX.Element;
|
|
330
|
-
|
|
331
|
-
interface TableVisualizationProps {
|
|
332
|
-
data: TableVisualizationData;
|
|
333
|
-
config?: VisualizationConfig;
|
|
334
|
-
isStreaming?: boolean;
|
|
335
|
-
}
|
|
336
|
-
declare function TableVisualization({ data, config }: TableVisualizationProps): react_jsx_runtime.JSX.Element;
|
|
337
|
-
|
|
338
|
-
interface CardVisualizationProps {
|
|
339
|
-
data: CardVisualizationData;
|
|
340
|
-
config?: VisualizationConfig;
|
|
341
|
-
isStreaming?: boolean;
|
|
342
|
-
onAction?: (event: VisualizationActionEvent) => void;
|
|
343
|
-
}
|
|
344
|
-
declare function CardVisualization({ data, config, onAction }: CardVisualizationProps): react_jsx_runtime.JSX.Element;
|
|
345
|
-
|
|
346
|
-
interface KpiVisualizationProps {
|
|
347
|
-
data: KpiVisualizationData;
|
|
348
|
-
config?: VisualizationConfig;
|
|
349
|
-
isStreaming?: boolean;
|
|
350
|
-
}
|
|
351
|
-
declare function KpiVisualization({ data, config, isStreaming }: KpiVisualizationProps): react_jsx_runtime.JSX.Element;
|
|
352
|
-
|
|
353
|
-
interface CodePreviewVisualizationProps {
|
|
354
|
-
data: CodePreviewVisualizationData;
|
|
355
|
-
config?: VisualizationConfig;
|
|
356
|
-
isStreaming?: boolean;
|
|
357
|
-
}
|
|
358
|
-
declare function CodePreviewVisualization({ data }: CodePreviewVisualizationProps): react_jsx_runtime.JSX.Element;
|
|
359
|
-
|
|
360
|
-
interface FormVisualizationProps {
|
|
361
|
-
data: FormVisualizationData;
|
|
362
|
-
config?: VisualizationConfig;
|
|
363
|
-
isStreaming?: boolean;
|
|
364
|
-
onAction?: (event: VisualizationActionEvent) => void;
|
|
365
|
-
}
|
|
366
|
-
declare function FormVisualization({ data, config, isStreaming, onAction }: FormVisualizationProps): react_jsx_runtime.JSX.Element;
|
|
367
|
-
|
|
368
|
-
interface VisualizationEntry {
|
|
369
|
-
component: React.ComponentType<{
|
|
370
|
-
data: any;
|
|
371
|
-
config?: VisualizationConfig;
|
|
372
|
-
isStreaming?: boolean;
|
|
373
|
-
onAction?: (event: VisualizationActionEvent) => void;
|
|
374
|
-
}>;
|
|
375
|
-
schema?: ZodSchema;
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
* Register a visualization type. Built-in types are registered at module load.
|
|
379
|
-
* Consumers can call this to add custom visualization types.
|
|
380
|
-
*/
|
|
381
|
-
declare function registerVisualization(type: string, entry: VisualizationEntry): void;
|
|
382
|
-
/**
|
|
383
|
-
* Look up a registered visualization by type string.
|
|
384
|
-
*/
|
|
385
|
-
declare function getVisualization(type: string): VisualizationEntry | undefined;
|
|
386
|
-
/**
|
|
387
|
-
* Return all registered visualization type strings.
|
|
388
|
-
*/
|
|
389
|
-
declare function getRegisteredTypes(): string[];
|
|
390
|
-
|
|
391
|
-
interface EventContentProps {
|
|
392
|
-
event: Event;
|
|
393
|
-
className?: string;
|
|
394
|
-
/** When true, shows beamer scanning effect on tool items */
|
|
395
|
-
isRunning?: boolean;
|
|
396
|
-
}
|
|
397
|
-
/**
|
|
398
|
-
* Renders content for different event types
|
|
399
|
-
* - Thinking: Markdown content with subtle styling
|
|
400
|
-
* - Planning: Markdown content with planning context
|
|
401
|
-
* - Tool: Inline icon + text display with beamer effect when running
|
|
402
|
-
* - Observation: Colored result panel
|
|
403
|
-
*/
|
|
404
|
-
declare function EventContent({ event, className, isRunning }: EventContentProps): react_jsx_runtime.JSX.Element | null;
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* Convert StreamingChunk to Event format
|
|
408
|
-
*/
|
|
409
|
-
declare function convertChunkToEvent(chunk: StreamingChunk, index: number): Event | null;
|
|
410
|
-
/**
|
|
411
|
-
* Convert timeline items (from metadata) to Events
|
|
412
|
-
*/
|
|
413
|
-
declare function convertTimelineToEvents(timeline: Array<Record<string, unknown>>): Event[];
|
|
414
|
-
interface EventTimelineProps {
|
|
415
|
-
events: Event[];
|
|
416
|
-
isStreaming?: boolean;
|
|
417
|
-
className?: string;
|
|
418
|
-
}
|
|
419
|
-
/**
|
|
420
|
-
* Unified event timeline component
|
|
421
|
-
* Displays thinking, tool execution, and observation events
|
|
422
|
-
*/
|
|
423
|
-
declare function EventTimeline({ events, className }: EventTimelineProps): react_jsx_runtime.JSX.Element | null;
|
|
424
|
-
|
|
425
|
-
interface PlanTimelineProps {
|
|
426
|
-
plan: PlanData;
|
|
427
|
-
streamingChunks?: StreamingChunk[];
|
|
428
|
-
className?: string;
|
|
429
|
-
}
|
|
430
|
-
/**
|
|
431
|
-
* Minimal timeline for Plan & Execute mode.
|
|
432
|
-
* Matches in-house style: simple "Plan:" header + inline text rows.
|
|
433
|
-
*/
|
|
434
|
-
declare function PlanTimeline({ plan, streamingChunks, className, }: PlanTimelineProps): react_jsx_runtime.JSX.Element;
|
|
435
|
-
|
|
436
|
-
interface StatusBadgeProps {
|
|
437
|
-
status: EventStatus;
|
|
438
|
-
size?: number;
|
|
439
|
-
className?: string;
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* Circular status badge with magical animations
|
|
443
|
-
* - Pending: Dashed circle (muted)
|
|
444
|
-
* - Running: Glowing orb with pulse effect
|
|
445
|
-
* - Completed: Green check with pop + flash animation
|
|
446
|
-
* - Failed: Red X
|
|
447
|
-
*/
|
|
448
|
-
declare function StatusBadge({ status, size, className }: StatusBadgeProps): react_jsx_runtime.JSX.Element;
|
|
449
|
-
|
|
450
|
-
interface TimelineItemData {
|
|
451
|
-
id: string;
|
|
452
|
-
status: EventStatus;
|
|
453
|
-
content: ReactNode;
|
|
454
|
-
}
|
|
455
|
-
interface TimelineProps {
|
|
456
|
-
items: TimelineItemData[];
|
|
457
|
-
badgeSize?: number;
|
|
458
|
-
className?: string;
|
|
459
|
-
}
|
|
460
|
-
/**
|
|
461
|
-
* Vertical timeline component
|
|
462
|
-
* Displays items with status badges and connecting lines
|
|
463
|
-
*/
|
|
464
|
-
declare function Timeline({ items, badgeSize, className }: TimelineProps): react_jsx_runtime.JSX.Element | null;
|
|
465
|
-
interface TimelineItemProps {
|
|
466
|
-
status: EventStatus;
|
|
467
|
-
isLast?: boolean;
|
|
468
|
-
badgeSize?: number;
|
|
469
|
-
children: ReactNode;
|
|
470
|
-
className?: string;
|
|
471
|
-
}
|
|
472
|
-
/**
|
|
473
|
-
* Single timeline item (alternative API)
|
|
474
|
-
*/
|
|
475
|
-
declare function TimelineItem({ status, isLast, badgeSize, children, className, }: TimelineItemProps): react_jsx_runtime.JSX.Element;
|
|
476
|
-
|
|
477
|
-
export { Attachment, CardVisualization, type CardVisualizationProps, ChartVisualization, type ChartVisualizationProps, ChatHeader, type ChatHeaderAction, type ChatHeaderProps, CitationSources, type CitationSourcesProps, ClarificationData, ClarificationPanel, type ClarificationPanelProps, ClaudeToolPreview, type ClaudeToolPreviewProps, CodePreviewVisualization, type CodePreviewVisualizationProps, Event, EventContent, EventStatus, EventTimeline, type EventTimelineProps, FileOperationPreview, type FileOperationPreviewProps, FormVisualization, type FormVisualizationProps, InlineCitation, type InlineCitationProps, KpiVisualization, type KpiVisualizationProps, LoadingDots, type LoadingDotsProps, MessageAttachments, type MessageAttachmentsProps, PlanData, PlanTimeline, type PlanTimelineProps, ReasoningPanel, type ReasoningPanelProps, SearchResultsView, type SearchResultsViewProps, SourceDetailModal, type SourceDetailModalProps, SourceReference, StatusBadge, StreamingChunk, SubagentPanel, type SubagentPanelProps, TableVisualization, type TableVisualizationProps, TerminalOutput, type TerminalOutputProps, TimeMarker, type TimeMarkerProps, Timeline, TimelineItem, type TimelineItemData, type TimelineItemProps, type TimelineProps, VisualizationActionEvent, VisualizationChunkData, VisualizationConfig, type VisualizationEntry, VisualizationRenderer, type VisualizationRendererProps, WebOperationPreview, type WebOperationPreviewProps, cardVisualizationSchema, chartVisualizationSchema, codePreviewVisualizationSchema, convertChunkToEvent, convertTimelineToEvents, formVisualizationSchema, getRegisteredTypes, getVisualization, kpiVisualizationSchema, registerVisualization, tableVisualizationSchema };
|