@arc-lo/ui 0.2.1 → 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/index.cjs +1069 -186
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +197 -88
- package/dist/index.d.ts +197 -88
- package/dist/index.js +1069 -188
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles.css +177 -16
package/dist/index.d.cts
CHANGED
|
@@ -4,6 +4,8 @@ import { HTMLAttributes, ReactNode, TextareaHTMLAttributes } from 'react';
|
|
|
4
4
|
type StreamingState = "pending" | "streaming" | "done" | "interrupted" | "error" | "ratelimit";
|
|
5
5
|
type ConfidenceLevel = "high" | "medium" | "low" | "unknown";
|
|
6
6
|
type ChunkSize = "char" | "word" | "line";
|
|
7
|
+
type ImageGenState = "idle" | "pending" | "generating" | "done" | "error";
|
|
8
|
+
type VideoGenState = "idle" | "queued" | "processing" | "rendering" | "done" | "error";
|
|
7
9
|
|
|
8
10
|
interface UseStreamingTextOptions {
|
|
9
11
|
/** ReadableStream of text chunks from an AI response */
|
|
@@ -49,7 +51,7 @@ declare function useStreamingTextContext(): StreamingTextContextValue;
|
|
|
49
51
|
interface StreamingTextRootProps extends UseStreamingTextOptions, Omit<HTMLAttributes<HTMLDivElement>, "children" | "onError"> {
|
|
50
52
|
children?: ReactNode;
|
|
51
53
|
}
|
|
52
|
-
declare const Root$
|
|
54
|
+
declare const Root$7: react.ForwardRefExoticComponent<StreamingTextRootProps & react.RefAttributes<HTMLDivElement>>;
|
|
53
55
|
interface StreamingTextContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
54
56
|
/** Custom render function for the text */
|
|
55
57
|
render?: (text: string) => ReactNode;
|
|
@@ -71,7 +73,7 @@ interface StreamingTextErrorProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
71
73
|
/** Show retry button */
|
|
72
74
|
onRetry?: () => void;
|
|
73
75
|
}
|
|
74
|
-
declare const ErrorFallback: react.ForwardRefExoticComponent<StreamingTextErrorProps & react.RefAttributes<HTMLDivElement>>;
|
|
76
|
+
declare const ErrorFallback$2: react.ForwardRefExoticComponent<StreamingTextErrorProps & react.RefAttributes<HTMLDivElement>>;
|
|
75
77
|
interface StreamingTextRateLimitProps extends HTMLAttributes<HTMLDivElement> {
|
|
76
78
|
/** Retry delay in seconds */
|
|
77
79
|
retryAfter?: number;
|
|
@@ -82,31 +84,29 @@ interface StreamingTextToolbarProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
82
84
|
/** Only show toolbar in these states. Default: ["done", "interrupted"] */
|
|
83
85
|
showIn?: StreamingState[];
|
|
84
86
|
}
|
|
85
|
-
declare const Toolbar: react.ForwardRefExoticComponent<StreamingTextToolbarProps & react.RefAttributes<HTMLDivElement>>;
|
|
87
|
+
declare const Toolbar$2: react.ForwardRefExoticComponent<StreamingTextToolbarProps & react.RefAttributes<HTMLDivElement>>;
|
|
86
88
|
interface StreamingTextStopProps extends HTMLAttributes<HTMLButtonElement> {
|
|
87
89
|
}
|
|
88
90
|
declare const Stop: react.ForwardRefExoticComponent<StreamingTextStopProps & react.RefAttributes<HTMLButtonElement>>;
|
|
89
91
|
|
|
90
|
-
declare const index$
|
|
91
|
-
declare const index$
|
|
92
|
-
declare const index$
|
|
93
|
-
declare const index$
|
|
94
|
-
|
|
95
|
-
type index$
|
|
96
|
-
type index$
|
|
97
|
-
type index$
|
|
98
|
-
type index$
|
|
99
|
-
type index$
|
|
100
|
-
type index$
|
|
101
|
-
type index$
|
|
102
|
-
type index$
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
declare
|
|
107
|
-
|
|
108
|
-
declare namespace index$5 {
|
|
109
|
-
export { Content$1 as Content, index$5_Cursor as Cursor, index$5_ErrorFallback as ErrorFallback, index$5_RateLimit as RateLimit, Root$5 as Root, index$5_Skeleton as Skeleton, index$5_Stop as Stop, type index$5_StreamingTextContentProps as StreamingTextContentProps, type index$5_StreamingTextCursorProps as StreamingTextCursorProps, type index$5_StreamingTextErrorProps as StreamingTextErrorProps, type index$5_StreamingTextRateLimitProps as StreamingTextRateLimitProps, type index$5_StreamingTextRootProps as StreamingTextRootProps, type index$5_StreamingTextSkeletonProps as StreamingTextSkeletonProps, type index$5_StreamingTextStopProps as StreamingTextStopProps, type index$5_StreamingTextToolbarProps as StreamingTextToolbarProps, index$5_Toolbar as Toolbar, type index$5_UseStreamingTextOptions as UseStreamingTextOptions, type index$5_UseStreamingTextReturn as UseStreamingTextReturn, index$5_useStreamingText as useStreamingText, index$5_useStreamingTextContext as useStreamingTextContext };
|
|
92
|
+
declare const index$7_Cursor: typeof Cursor;
|
|
93
|
+
declare const index$7_RateLimit: typeof RateLimit;
|
|
94
|
+
declare const index$7_Skeleton: typeof Skeleton;
|
|
95
|
+
declare const index$7_Stop: typeof Stop;
|
|
96
|
+
type index$7_StreamingTextContentProps = StreamingTextContentProps;
|
|
97
|
+
type index$7_StreamingTextCursorProps = StreamingTextCursorProps;
|
|
98
|
+
type index$7_StreamingTextErrorProps = StreamingTextErrorProps;
|
|
99
|
+
type index$7_StreamingTextRateLimitProps = StreamingTextRateLimitProps;
|
|
100
|
+
type index$7_StreamingTextRootProps = StreamingTextRootProps;
|
|
101
|
+
type index$7_StreamingTextSkeletonProps = StreamingTextSkeletonProps;
|
|
102
|
+
type index$7_StreamingTextStopProps = StreamingTextStopProps;
|
|
103
|
+
type index$7_StreamingTextToolbarProps = StreamingTextToolbarProps;
|
|
104
|
+
type index$7_UseStreamingTextOptions = UseStreamingTextOptions;
|
|
105
|
+
type index$7_UseStreamingTextReturn = UseStreamingTextReturn;
|
|
106
|
+
declare const index$7_useStreamingText: typeof useStreamingText;
|
|
107
|
+
declare const index$7_useStreamingTextContext: typeof useStreamingTextContext;
|
|
108
|
+
declare namespace index$7 {
|
|
109
|
+
export { Content$1 as Content, index$7_Cursor as Cursor, ErrorFallback$2 as ErrorFallback, index$7_RateLimit as RateLimit, Root$7 as Root, index$7_Skeleton as Skeleton, index$7_Stop as Stop, type index$7_StreamingTextContentProps as StreamingTextContentProps, type index$7_StreamingTextCursorProps as StreamingTextCursorProps, type index$7_StreamingTextErrorProps as StreamingTextErrorProps, type index$7_StreamingTextRateLimitProps as StreamingTextRateLimitProps, type index$7_StreamingTextRootProps as StreamingTextRootProps, type index$7_StreamingTextSkeletonProps as StreamingTextSkeletonProps, type index$7_StreamingTextStopProps as StreamingTextStopProps, type index$7_StreamingTextToolbarProps as StreamingTextToolbarProps, Toolbar$2 as Toolbar, type index$7_UseStreamingTextOptions as UseStreamingTextOptions, type index$7_UseStreamingTextReturn as UseStreamingTextReturn, index$7_useStreamingText as useStreamingText, index$7_useStreamingTextContext as useStreamingTextContext };
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
interface PromptBoxContextValue {
|
|
@@ -132,7 +132,7 @@ interface PromptBoxRootProps extends Omit<HTMLAttributes<HTMLFormElement>, "onSu
|
|
|
132
132
|
disabled?: boolean;
|
|
133
133
|
children?: ReactNode;
|
|
134
134
|
}
|
|
135
|
-
declare const Root$
|
|
135
|
+
declare const Root$6: react.ForwardRefExoticComponent<PromptBoxRootProps & react.RefAttributes<HTMLFormElement>>;
|
|
136
136
|
interface PromptBoxChipsProps extends HTMLAttributes<HTMLDivElement> {
|
|
137
137
|
}
|
|
138
138
|
declare const Chips: react.ForwardRefExoticComponent<PromptBoxChipsProps & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -159,21 +159,21 @@ interface PromptBoxSuggestionsProps extends Omit<HTMLAttributes<HTMLDivElement>,
|
|
|
159
159
|
}
|
|
160
160
|
declare const Suggestions: react.ForwardRefExoticComponent<PromptBoxSuggestionsProps & react.RefAttributes<HTMLDivElement>>;
|
|
161
161
|
|
|
162
|
-
declare const index$
|
|
163
|
-
declare const index$
|
|
164
|
-
declare const index$
|
|
165
|
-
type index$
|
|
166
|
-
type index$
|
|
167
|
-
type index$
|
|
168
|
-
type index$
|
|
169
|
-
type index$
|
|
170
|
-
type index$
|
|
171
|
-
type index$
|
|
172
|
-
declare const index$
|
|
173
|
-
declare const index$
|
|
174
|
-
declare const index$
|
|
175
|
-
declare namespace index$
|
|
176
|
-
export { index$
|
|
162
|
+
declare const index$6_Chip: typeof Chip;
|
|
163
|
+
declare const index$6_Chips: typeof Chips;
|
|
164
|
+
declare const index$6_Footer: typeof Footer;
|
|
165
|
+
type index$6_PromptBoxChipProps = PromptBoxChipProps;
|
|
166
|
+
type index$6_PromptBoxChipsProps = PromptBoxChipsProps;
|
|
167
|
+
type index$6_PromptBoxFooterProps = PromptBoxFooterProps;
|
|
168
|
+
type index$6_PromptBoxInputProps = PromptBoxInputProps;
|
|
169
|
+
type index$6_PromptBoxRootProps = PromptBoxRootProps;
|
|
170
|
+
type index$6_PromptBoxSubmitProps = PromptBoxSubmitProps;
|
|
171
|
+
type index$6_PromptBoxSuggestionsProps = PromptBoxSuggestionsProps;
|
|
172
|
+
declare const index$6_SubmitButton: typeof SubmitButton;
|
|
173
|
+
declare const index$6_Suggestions: typeof Suggestions;
|
|
174
|
+
declare const index$6_usePromptBoxContext: typeof usePromptBoxContext;
|
|
175
|
+
declare namespace index$6 {
|
|
176
|
+
export { index$6_Chip as Chip, index$6_Chips as Chips, index$6_Footer as Footer, Input$1 as Input, type index$6_PromptBoxChipProps as PromptBoxChipProps, type index$6_PromptBoxChipsProps as PromptBoxChipsProps, type index$6_PromptBoxFooterProps as PromptBoxFooterProps, type index$6_PromptBoxInputProps as PromptBoxInputProps, type index$6_PromptBoxRootProps as PromptBoxRootProps, type index$6_PromptBoxSubmitProps as PromptBoxSubmitProps, type index$6_PromptBoxSuggestionsProps as PromptBoxSuggestionsProps, Root$6 as Root, index$6_SubmitButton as SubmitButton, index$6_Suggestions as Suggestions, index$6_usePromptBoxContext as usePromptBoxContext };
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
type FeedbackValue = "up" | "down" | null;
|
|
@@ -182,7 +182,7 @@ interface FeedbackBarRootProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
182
182
|
onFeedback?: (value: FeedbackValue) => void;
|
|
183
183
|
children?: ReactNode;
|
|
184
184
|
}
|
|
185
|
-
declare const Root$
|
|
185
|
+
declare const Root$5: react.ForwardRefExoticComponent<FeedbackBarRootProps & react.RefAttributes<HTMLDivElement>>;
|
|
186
186
|
interface FeedbackBarThumbsUpProps extends HTMLAttributes<HTMLButtonElement> {
|
|
187
187
|
}
|
|
188
188
|
declare const ThumbsUp: react.ForwardRefExoticComponent<FeedbackBarThumbsUpProps & react.RefAttributes<HTMLButtonElement>>;
|
|
@@ -199,17 +199,17 @@ interface FeedbackBarRegenerateProps extends HTMLAttributes<HTMLButtonElement> {
|
|
|
199
199
|
}
|
|
200
200
|
declare const Regenerate: react.ForwardRefExoticComponent<FeedbackBarRegenerateProps & react.RefAttributes<HTMLButtonElement>>;
|
|
201
201
|
|
|
202
|
-
declare const index$
|
|
203
|
-
type index$
|
|
204
|
-
type index$
|
|
205
|
-
type index$
|
|
206
|
-
type index$
|
|
207
|
-
type index$
|
|
208
|
-
declare const index$
|
|
209
|
-
declare const index$
|
|
210
|
-
declare const index$
|
|
211
|
-
declare namespace index$
|
|
212
|
-
export { index$
|
|
202
|
+
declare const index$5_Copy: typeof Copy;
|
|
203
|
+
type index$5_FeedbackBarCopyProps = FeedbackBarCopyProps;
|
|
204
|
+
type index$5_FeedbackBarRegenerateProps = FeedbackBarRegenerateProps;
|
|
205
|
+
type index$5_FeedbackBarRootProps = FeedbackBarRootProps;
|
|
206
|
+
type index$5_FeedbackBarThumbsDownProps = FeedbackBarThumbsDownProps;
|
|
207
|
+
type index$5_FeedbackBarThumbsUpProps = FeedbackBarThumbsUpProps;
|
|
208
|
+
declare const index$5_Regenerate: typeof Regenerate;
|
|
209
|
+
declare const index$5_ThumbsDown: typeof ThumbsDown;
|
|
210
|
+
declare const index$5_ThumbsUp: typeof ThumbsUp;
|
|
211
|
+
declare namespace index$5 {
|
|
212
|
+
export { index$5_Copy as Copy, type index$5_FeedbackBarCopyProps as FeedbackBarCopyProps, type index$5_FeedbackBarRegenerateProps as FeedbackBarRegenerateProps, type index$5_FeedbackBarRootProps as FeedbackBarRootProps, type index$5_FeedbackBarThumbsDownProps as FeedbackBarThumbsDownProps, type index$5_FeedbackBarThumbsUpProps as FeedbackBarThumbsUpProps, index$5_Regenerate as Regenerate, Root$5 as Root, index$5_ThumbsDown as ThumbsDown, index$5_ThumbsUp as ThumbsUp };
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
type ThinkingState = "thinking" | "done" | "error";
|
|
@@ -224,7 +224,7 @@ interface ThinkingBlockRootProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
224
224
|
duration?: number | null;
|
|
225
225
|
children?: ReactNode;
|
|
226
226
|
}
|
|
227
|
-
declare const Root$
|
|
227
|
+
declare const Root$4: react.ForwardRefExoticComponent<ThinkingBlockRootProps & react.RefAttributes<HTMLDivElement>>;
|
|
228
228
|
interface ThinkingBlockTriggerProps extends HTMLAttributes<HTMLButtonElement> {
|
|
229
229
|
/** Custom label. Default: auto from state */
|
|
230
230
|
label?: string;
|
|
@@ -234,14 +234,14 @@ interface ThinkingBlockContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
234
234
|
}
|
|
235
235
|
declare const Content: react.ForwardRefExoticComponent<ThinkingBlockContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
236
236
|
|
|
237
|
-
declare const index$
|
|
238
|
-
type index$
|
|
239
|
-
type index$
|
|
240
|
-
type index$
|
|
241
|
-
type index$
|
|
242
|
-
declare const index$
|
|
243
|
-
declare namespace index$
|
|
244
|
-
export { index$
|
|
237
|
+
declare const index$4_Content: typeof Content;
|
|
238
|
+
type index$4_ThinkingBlockContentProps = ThinkingBlockContentProps;
|
|
239
|
+
type index$4_ThinkingBlockRootProps = ThinkingBlockRootProps;
|
|
240
|
+
type index$4_ThinkingBlockTriggerProps = ThinkingBlockTriggerProps;
|
|
241
|
+
type index$4_ThinkingState = ThinkingState;
|
|
242
|
+
declare const index$4_Trigger: typeof Trigger;
|
|
243
|
+
declare namespace index$4 {
|
|
244
|
+
export { index$4_Content as Content, Root$4 as Root, type index$4_ThinkingBlockContentProps as ThinkingBlockContentProps, type index$4_ThinkingBlockRootProps as ThinkingBlockRootProps, type index$4_ThinkingBlockTriggerProps as ThinkingBlockTriggerProps, type index$4_ThinkingState as ThinkingState, index$4_Trigger as Trigger };
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
type ToolCallStatus = "pending" | "running" | "success" | "error";
|
|
@@ -254,7 +254,7 @@ interface ToolCallRootProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
254
254
|
defaultOpen?: boolean;
|
|
255
255
|
children?: ReactNode;
|
|
256
256
|
}
|
|
257
|
-
declare const Root$
|
|
257
|
+
declare const Root$3: react.ForwardRefExoticComponent<ToolCallRootProps & react.RefAttributes<HTMLDivElement>>;
|
|
258
258
|
interface ToolCallHeaderProps extends HTMLAttributes<HTMLButtonElement> {
|
|
259
259
|
}
|
|
260
260
|
declare const Header: react.ForwardRefExoticComponent<ToolCallHeaderProps & react.RefAttributes<HTMLButtonElement>>;
|
|
@@ -269,23 +269,23 @@ interface ToolCallOutputProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
269
269
|
}
|
|
270
270
|
declare const Output: react.ForwardRefExoticComponent<ToolCallOutputProps & react.RefAttributes<HTMLDivElement>>;
|
|
271
271
|
|
|
272
|
-
declare const index$
|
|
273
|
-
declare const index$
|
|
274
|
-
declare const index$
|
|
275
|
-
type index$
|
|
276
|
-
type index$
|
|
277
|
-
type index$
|
|
278
|
-
type index$
|
|
279
|
-
type index$
|
|
280
|
-
declare namespace index$
|
|
281
|
-
export { index$
|
|
272
|
+
declare const index$3_Header: typeof Header;
|
|
273
|
+
declare const index$3_Input: typeof Input;
|
|
274
|
+
declare const index$3_Output: typeof Output;
|
|
275
|
+
type index$3_ToolCallHeaderProps = ToolCallHeaderProps;
|
|
276
|
+
type index$3_ToolCallInputProps = ToolCallInputProps;
|
|
277
|
+
type index$3_ToolCallOutputProps = ToolCallOutputProps;
|
|
278
|
+
type index$3_ToolCallRootProps = ToolCallRootProps;
|
|
279
|
+
type index$3_ToolCallStatus = ToolCallStatus;
|
|
280
|
+
declare namespace index$3 {
|
|
281
|
+
export { index$3_Header as Header, index$3_Input as Input, index$3_Output as Output, Root$3 as Root, type index$3_ToolCallHeaderProps as ToolCallHeaderProps, type index$3_ToolCallInputProps as ToolCallInputProps, type index$3_ToolCallOutputProps as ToolCallOutputProps, type index$3_ToolCallRootProps as ToolCallRootProps, type index$3_ToolCallStatus as ToolCallStatus };
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
type MessageRole = "user" | "assistant" | "system";
|
|
285
285
|
interface ChatThreadRootProps extends HTMLAttributes<HTMLDivElement> {
|
|
286
286
|
children: ReactNode;
|
|
287
287
|
}
|
|
288
|
-
declare const Root: react.ForwardRefExoticComponent<ChatThreadRootProps & react.RefAttributes<HTMLDivElement>>;
|
|
288
|
+
declare const Root$2: react.ForwardRefExoticComponent<ChatThreadRootProps & react.RefAttributes<HTMLDivElement>>;
|
|
289
289
|
interface ChatThreadMessagesProps extends HTMLAttributes<HTMLDivElement> {
|
|
290
290
|
children: ReactNode;
|
|
291
291
|
}
|
|
@@ -315,23 +315,132 @@ interface ChatThreadScrollAnchorProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
315
315
|
}
|
|
316
316
|
declare const ScrollAnchor: react.ForwardRefExoticComponent<ChatThreadScrollAnchorProps & react.RefAttributes<HTMLDivElement>>;
|
|
317
317
|
|
|
318
|
-
declare const
|
|
319
|
-
type
|
|
320
|
-
type
|
|
321
|
-
type
|
|
322
|
-
type
|
|
323
|
-
type
|
|
324
|
-
type
|
|
325
|
-
type
|
|
326
|
-
declare const
|
|
327
|
-
type
|
|
328
|
-
declare const
|
|
318
|
+
declare const index$2_AssistantMessage: typeof AssistantMessage;
|
|
319
|
+
type index$2_ChatThreadAssistantMessageProps = ChatThreadAssistantMessageProps;
|
|
320
|
+
type index$2_ChatThreadMessageProps = ChatThreadMessageProps;
|
|
321
|
+
type index$2_ChatThreadMessagesProps = ChatThreadMessagesProps;
|
|
322
|
+
type index$2_ChatThreadRootProps = ChatThreadRootProps;
|
|
323
|
+
type index$2_ChatThreadScrollAnchorProps = ChatThreadScrollAnchorProps;
|
|
324
|
+
type index$2_ChatThreadSystemMessageProps = ChatThreadSystemMessageProps;
|
|
325
|
+
type index$2_ChatThreadUserMessageProps = ChatThreadUserMessageProps;
|
|
326
|
+
declare const index$2_Message: typeof Message;
|
|
327
|
+
type index$2_MessageRole = MessageRole;
|
|
328
|
+
declare const index$2_Messages: typeof Messages;
|
|
329
|
+
declare const index$2_ScrollAnchor: typeof ScrollAnchor;
|
|
330
|
+
declare const index$2_SystemMessage: typeof SystemMessage;
|
|
331
|
+
declare const index$2_UserMessage: typeof UserMessage;
|
|
332
|
+
declare namespace index$2 {
|
|
333
|
+
export { index$2_AssistantMessage as AssistantMessage, type index$2_ChatThreadAssistantMessageProps as ChatThreadAssistantMessageProps, type index$2_ChatThreadMessageProps as ChatThreadMessageProps, type index$2_ChatThreadMessagesProps as ChatThreadMessagesProps, type index$2_ChatThreadRootProps as ChatThreadRootProps, type index$2_ChatThreadScrollAnchorProps as ChatThreadScrollAnchorProps, type index$2_ChatThreadSystemMessageProps as ChatThreadSystemMessageProps, type index$2_ChatThreadUserMessageProps as ChatThreadUserMessageProps, index$2_Message as Message, type index$2_MessageRole as MessageRole, index$2_Messages as Messages, Root$2 as Root, index$2_ScrollAnchor as ScrollAnchor, index$2_SystemMessage as SystemMessage, index$2_UserMessage as UserMessage };
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
interface ImageGenRootProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
337
|
+
state: ImageGenState;
|
|
338
|
+
src?: string | null;
|
|
339
|
+
alt?: string;
|
|
340
|
+
aspectRatio?: string;
|
|
341
|
+
prompt?: string;
|
|
342
|
+
onRetry?: () => void;
|
|
343
|
+
onDownload?: () => void;
|
|
344
|
+
blurReveal?: boolean;
|
|
345
|
+
children?: ReactNode;
|
|
346
|
+
}
|
|
347
|
+
declare const Root$1: react.ForwardRefExoticComponent<ImageGenRootProps & react.RefAttributes<HTMLDivElement>>;
|
|
348
|
+
interface ImageGenPlaceholderProps extends HTMLAttributes<HTMLDivElement> {
|
|
349
|
+
}
|
|
350
|
+
declare const Placeholder$1: react.ForwardRefExoticComponent<ImageGenPlaceholderProps & react.RefAttributes<HTMLDivElement>>;
|
|
351
|
+
interface ImageGenPreviewProps extends Omit<HTMLAttributes<HTMLImageElement>, "src" | "alt"> {
|
|
352
|
+
}
|
|
353
|
+
declare const Preview: react.ForwardRefExoticComponent<ImageGenPreviewProps & react.RefAttributes<HTMLImageElement>>;
|
|
354
|
+
interface ImageGenProgressProps extends HTMLAttributes<HTMLDivElement> {
|
|
355
|
+
progress?: number;
|
|
356
|
+
}
|
|
357
|
+
declare const Progress$1: react.ForwardRefExoticComponent<ImageGenProgressProps & react.RefAttributes<HTMLDivElement>>;
|
|
358
|
+
interface ImageGenOverlayProps extends HTMLAttributes<HTMLDivElement> {
|
|
359
|
+
label?: string;
|
|
360
|
+
}
|
|
361
|
+
declare const Overlay: react.ForwardRefExoticComponent<ImageGenOverlayProps & react.RefAttributes<HTMLDivElement>>;
|
|
362
|
+
interface ImageGenErrorFallbackProps extends HTMLAttributes<HTMLDivElement> {
|
|
363
|
+
message?: string;
|
|
364
|
+
}
|
|
365
|
+
declare const ErrorFallback$1: react.ForwardRefExoticComponent<ImageGenErrorFallbackProps & react.RefAttributes<HTMLDivElement>>;
|
|
366
|
+
interface ImageGenToolbarProps extends HTMLAttributes<HTMLDivElement> {
|
|
367
|
+
}
|
|
368
|
+
declare const Toolbar$1: react.ForwardRefExoticComponent<ImageGenToolbarProps & react.RefAttributes<HTMLDivElement>>;
|
|
369
|
+
interface ImageGenDownloadProps extends HTMLAttributes<HTMLButtonElement> {
|
|
370
|
+
}
|
|
371
|
+
declare const Download: react.ForwardRefExoticComponent<ImageGenDownloadProps & react.RefAttributes<HTMLButtonElement>>;
|
|
372
|
+
interface ImageGenRetryProps extends HTMLAttributes<HTMLButtonElement> {
|
|
373
|
+
}
|
|
374
|
+
declare const Retry: react.ForwardRefExoticComponent<ImageGenRetryProps & react.RefAttributes<HTMLButtonElement>>;
|
|
375
|
+
|
|
376
|
+
declare const index$1_Download: typeof Download;
|
|
377
|
+
type index$1_ImageGenRootProps = ImageGenRootProps;
|
|
378
|
+
declare const index$1_Overlay: typeof Overlay;
|
|
379
|
+
declare const index$1_Preview: typeof Preview;
|
|
380
|
+
declare const index$1_Retry: typeof Retry;
|
|
381
|
+
declare namespace index$1 {
|
|
382
|
+
export { index$1_Download as Download, ErrorFallback$1 as ErrorFallback, type index$1_ImageGenRootProps as ImageGenRootProps, index$1_Overlay as Overlay, Placeholder$1 as Placeholder, index$1_Preview as Preview, Progress$1 as Progress, index$1_Retry as Retry, Root$1 as Root, Toolbar$1 as Toolbar };
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
interface VideoGenRootProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
386
|
+
state: VideoGenState;
|
|
387
|
+
src?: string | null;
|
|
388
|
+
poster?: string | null;
|
|
389
|
+
progress?: number;
|
|
390
|
+
aspectRatio?: string;
|
|
391
|
+
duration?: number | null;
|
|
392
|
+
prompt?: string;
|
|
393
|
+
onRetry?: () => void;
|
|
394
|
+
onDownload?: () => void;
|
|
395
|
+
onPlay?: () => void;
|
|
396
|
+
children?: ReactNode;
|
|
397
|
+
}
|
|
398
|
+
declare const Root: react.ForwardRefExoticComponent<VideoGenRootProps & react.RefAttributes<HTMLDivElement>>;
|
|
399
|
+
interface VideoGenPlaceholderProps extends HTMLAttributes<HTMLDivElement> {
|
|
400
|
+
}
|
|
401
|
+
declare const Placeholder: react.ForwardRefExoticComponent<VideoGenPlaceholderProps & react.RefAttributes<HTMLDivElement>>;
|
|
402
|
+
interface VideoGenThumbnailProps extends HTMLAttributes<HTMLImageElement> {
|
|
403
|
+
}
|
|
404
|
+
declare const Thumbnail: react.ForwardRefExoticComponent<VideoGenThumbnailProps & react.RefAttributes<HTMLImageElement>>;
|
|
405
|
+
interface VideoGenPlayerProps extends HTMLAttributes<HTMLVideoElement> {
|
|
406
|
+
/** Additional props passed to the <video> element */
|
|
407
|
+
autoPlay?: boolean;
|
|
408
|
+
loop?: boolean;
|
|
409
|
+
muted?: boolean;
|
|
410
|
+
}
|
|
411
|
+
declare const Player: react.ForwardRefExoticComponent<VideoGenPlayerProps & react.RefAttributes<HTMLVideoElement>>;
|
|
412
|
+
interface VideoGenProgressProps extends HTMLAttributes<HTMLDivElement> {
|
|
413
|
+
}
|
|
414
|
+
declare const Progress: react.ForwardRefExoticComponent<VideoGenProgressProps & react.RefAttributes<HTMLDivElement>>;
|
|
415
|
+
interface VideoGenStageLabelProps extends HTMLAttributes<HTMLSpanElement> {
|
|
416
|
+
/** Override the auto-generated label */
|
|
417
|
+
label?: string;
|
|
418
|
+
}
|
|
419
|
+
declare const StageLabel: react.ForwardRefExoticComponent<VideoGenStageLabelProps & react.RefAttributes<HTMLSpanElement>>;
|
|
420
|
+
interface VideoGenErrorFallbackProps extends HTMLAttributes<HTMLDivElement> {
|
|
421
|
+
/** Custom error message */
|
|
422
|
+
message?: string;
|
|
423
|
+
}
|
|
424
|
+
declare const ErrorFallback: react.ForwardRefExoticComponent<VideoGenErrorFallbackProps & react.RefAttributes<HTMLDivElement>>;
|
|
425
|
+
interface VideoGenToolbarProps extends HTMLAttributes<HTMLDivElement> {
|
|
426
|
+
}
|
|
427
|
+
declare const Toolbar: react.ForwardRefExoticComponent<VideoGenToolbarProps & react.RefAttributes<HTMLDivElement>>;
|
|
428
|
+
interface VideoGenPlayButtonProps extends HTMLAttributes<HTMLButtonElement> {
|
|
429
|
+
}
|
|
430
|
+
declare const PlayButton: react.ForwardRefExoticComponent<VideoGenPlayButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
431
|
+
|
|
432
|
+
declare const index_ErrorFallback: typeof ErrorFallback;
|
|
433
|
+
declare const index_Placeholder: typeof Placeholder;
|
|
434
|
+
declare const index_PlayButton: typeof PlayButton;
|
|
435
|
+
declare const index_Player: typeof Player;
|
|
436
|
+
declare const index_Progress: typeof Progress;
|
|
329
437
|
declare const index_Root: typeof Root;
|
|
330
|
-
declare const
|
|
331
|
-
declare const
|
|
332
|
-
declare const
|
|
438
|
+
declare const index_StageLabel: typeof StageLabel;
|
|
439
|
+
declare const index_Thumbnail: typeof Thumbnail;
|
|
440
|
+
declare const index_Toolbar: typeof Toolbar;
|
|
441
|
+
type index_VideoGenRootProps = VideoGenRootProps;
|
|
333
442
|
declare namespace index {
|
|
334
|
-
export {
|
|
443
|
+
export { index_ErrorFallback as ErrorFallback, index_Placeholder as Placeholder, index_PlayButton as PlayButton, index_Player as Player, index_Progress as Progress, index_Root as Root, index_StageLabel as StageLabel, index_Thumbnail as Thumbnail, index_Toolbar as Toolbar, type index_VideoGenRootProps as VideoGenRootProps };
|
|
335
444
|
}
|
|
336
445
|
|
|
337
446
|
interface ConfidenceBadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
@@ -512,4 +621,4 @@ interface SuggestTopicsProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
512
621
|
}
|
|
513
622
|
declare const SuggestTopics: react.ForwardRefExoticComponent<SuggestTopicsProps & react.RefAttributes<HTMLDivElement>>;
|
|
514
623
|
|
|
515
|
-
export { index as ChatThread, type ChatThreadMessageProps, type ChatThreadRootProps, type ChunkSize, CitationGroup, type CitationGroupProps, CitationInline, type CitationInlineProps, CodeBlock, type CodeBlockProps, ConfidenceBadge, type ConfidenceBadgeProps, type ConfidenceLevel, ConversationBranch, type ConversationBranchProps, index$
|
|
624
|
+
export { index$2 as ChatThread, type ChatThreadMessageProps, type ChatThreadRootProps, type ChunkSize, CitationGroup, type CitationGroupProps, CitationInline, type CitationInlineProps, CodeBlock, type CodeBlockProps, ConfidenceBadge, type ConfidenceBadgeProps, type ConfidenceLevel, ConversationBranch, type ConversationBranchProps, index$5 as FeedbackBar, FileAttachment, type FileAttachmentProps, type FileAttachmentType, index$1 as ImageGen, type ImageGenRootProps, type ImageGenState, MarkdownRenderer, type MarkdownRendererProps, type MessageRole, type ModelOption, ModelSelector, type ModelSelectorProps, index$6 as PromptBox, RefusalCard, type RefusalCardProps, SourceCard, type SourceCardProps, StatusIndicator, type StatusIndicatorProps, type StatusIndicatorState, type StreamingState, index$7 as StreamingText, SuggestTopics, type SuggestTopicsProps, index$4 as ThinkingBlock, type ThinkingBlockRootProps, type ThinkingState, TokenUsage, type TokenUsageProps, index$3 as ToolCall, type ToolCallRootProps, type ToolCallStatus, TopicCard, type TopicCardProps, type UseStreamingTextOptions, type UseStreamingTextReturn, index as VideoGen, type VideoGenRootProps, type VideoGenState, useStreamingText };
|