@assistant-ui/react 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/experimental.d.mts +2 -0
- package/dist/experimental.d.ts +2 -0
- package/dist/index.d.mts +113 -99
- package/dist/index.d.ts +113 -99
- package/dist/index.js +850 -728
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +839 -718
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -1
package/dist/experimental.d.mts
CHANGED
package/dist/experimental.d.ts
CHANGED
package/dist/index.d.mts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import { FC,
|
2
|
+
import { FC, PropsWithChildren, ComponentPropsWithoutRef, ComponentType, ReactNode } from 'react';
|
3
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
3
4
|
import { TextareaAutosizeProps } from 'react-textarea-autosize';
|
5
|
+
import { Primitive } from '@radix-ui/react-primitive';
|
4
6
|
import { T as TextContentPartComponent, I as ImageContentPartComponent, U as UIContentPartComponent, a as ToolCallContentPartComponent, b as ToolCallContentPartProps, c as ThreadState, d as ThreadActionsState, e as Unsubscribe, M as ModelConfigProvider, f as ThreadMessage, g as ModelConfig, A as AssistantContentPart, h as AppendMessage } from './ThreadActions-BLcKtagX.mjs';
|
5
7
|
export { l as AppendContentPart, i as AssistantMessage, m as TextContentPart, k as UserContentPart, j as UserMessage } from './ThreadActions-BLcKtagX.mjs';
|
6
|
-
import { Primitive } from '@radix-ui/react-primitive';
|
7
8
|
import 'zod';
|
8
9
|
|
9
10
|
type UseActionBarCopyProps = {
|
@@ -73,63 +74,80 @@ type UseApplyThreadSuggestionProps = {
|
|
73
74
|
};
|
74
75
|
declare const useThreadSuggestion: ({ prompt, autoSend, }: UseApplyThreadSuggestionProps) => (() => void) | null;
|
75
76
|
|
76
|
-
|
77
|
+
type UseActionBarFloatStatusProps = {
|
78
|
+
hideWhenRunning?: boolean | undefined;
|
79
|
+
autohide?: "always" | "not-last" | "never" | undefined;
|
80
|
+
autohideFloat?: "always" | "single-branch" | "never" | undefined;
|
81
|
+
};
|
82
|
+
declare const ActionBarRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
77
83
|
ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
|
78
84
|
} & {
|
79
85
|
asChild?: boolean;
|
80
|
-
}, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
81
|
-
|
82
|
-
type ThreadEmptyProps = {
|
83
|
-
children: ReactNode;
|
84
|
-
};
|
85
|
-
declare const ThreadEmpty: FC<ThreadEmptyProps>;
|
86
|
+
}, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>>;
|
86
87
|
|
87
|
-
|
88
|
-
|
88
|
+
declare const ActionBarCopy: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
89
|
+
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
90
|
+
} & {
|
91
|
+
asChild?: boolean;
|
92
|
+
}, "ref"> & {
|
93
|
+
copiedDuration?: number;
|
94
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
89
95
|
|
90
|
-
|
91
|
-
|
92
|
-
}
|
96
|
+
declare const ActionBarReload: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
97
|
+
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
98
|
+
} & {
|
99
|
+
asChild?: boolean;
|
100
|
+
}, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
93
101
|
|
94
|
-
declare const
|
95
|
-
ref?: ((instance:
|
102
|
+
declare const ActionBarEdit: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
103
|
+
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
96
104
|
} & {
|
97
105
|
asChild?: boolean;
|
98
|
-
}, "ref"> &
|
106
|
+
}, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
99
107
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
UserMessage?: ComponentType;
|
104
|
-
EditComposer?: ComponentType;
|
105
|
-
AssistantMessage?: ComponentType;
|
106
|
-
} | {
|
107
|
-
Message?: ComponentType;
|
108
|
-
UserMessage: ComponentType;
|
109
|
-
EditComposer?: ComponentType;
|
110
|
-
AssistantMessage: ComponentType;
|
111
|
-
};
|
112
|
-
};
|
113
|
-
declare const ThreadMessages: FC<ThreadMessagesProps>;
|
108
|
+
declare namespace index$6 {
|
109
|
+
export { ActionBarCopy as Copy, ActionBarEdit as Edit, ActionBarReload as Reload, ActionBarRoot as Root };
|
110
|
+
}
|
114
111
|
|
115
|
-
|
112
|
+
type AssistantModalRootProps = PopoverPrimitive.PopoverProps;
|
113
|
+
declare const AssistantModalRoot: FC<AssistantModalRootProps>;
|
114
|
+
|
115
|
+
declare const AssistantModalTrigger: react.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
116
|
+
|
117
|
+
declare const AssistantModalContent: react.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
118
|
+
dissmissOnInteractOutside?: boolean;
|
119
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
120
|
+
|
121
|
+
declare namespace index$5 {
|
122
|
+
export { AssistantModalContent as Content, AssistantModalRoot as Root, AssistantModalTrigger as Trigger };
|
123
|
+
}
|
124
|
+
|
125
|
+
declare const BranchPickerNext: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
116
126
|
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
117
127
|
} & {
|
118
128
|
asChild?: boolean;
|
119
129
|
}, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
120
130
|
|
121
|
-
declare const
|
131
|
+
declare const BranchPickerPrevious: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
122
132
|
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
123
133
|
} & {
|
124
134
|
asChild?: boolean;
|
135
|
+
}, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
136
|
+
|
137
|
+
declare const BranchPickerCount: FC;
|
138
|
+
|
139
|
+
declare const BranchPickerNumber: FC;
|
140
|
+
|
141
|
+
declare const BranchPickerRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
142
|
+
ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
|
143
|
+
} & {
|
144
|
+
asChild?: boolean;
|
125
145
|
}, "ref"> & {
|
126
|
-
|
127
|
-
|
128
|
-
autoSend?: boolean;
|
129
|
-
} & react.RefAttributes<HTMLButtonElement>>;
|
146
|
+
hideWhenSingleBranch?: boolean;
|
147
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
130
148
|
|
131
|
-
declare namespace index$
|
132
|
-
export {
|
149
|
+
declare namespace index$4 {
|
150
|
+
export { BranchPickerCount as Count, BranchPickerNext as Next, BranchPickerNumber as Number, BranchPickerPrevious as Previous, BranchPickerRoot as Root };
|
133
151
|
}
|
134
152
|
|
135
153
|
declare const ComposerRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
|
@@ -157,10 +175,28 @@ declare const ComposerCancel: react.ForwardRefExoticComponent<Omit<Omit<react.De
|
|
157
175
|
type ComposerIfProps = PropsWithChildren<UseComposerIfProps>;
|
158
176
|
declare const ComposerIf: FC<ComposerIfProps>;
|
159
177
|
|
160
|
-
declare namespace index$
|
178
|
+
declare namespace index$3 {
|
161
179
|
export { ComposerCancel as Cancel, ComposerIf as If, ComposerInput as Input, ComposerRoot as Root, ComposerSend as Send };
|
162
180
|
}
|
163
181
|
|
182
|
+
declare const ContentPartInProgressIndicator: FC;
|
183
|
+
|
184
|
+
type PrimitiveSpanProps = ComponentPropsWithoutRef<typeof Primitive.span>;
|
185
|
+
type ContentPartTextProps = Omit<PrimitiveSpanProps, "children">;
|
186
|
+
declare const ContentPartText: react.ForwardRefExoticComponent<ContentPartTextProps & react.RefAttributes<HTMLSpanElement>>;
|
187
|
+
|
188
|
+
declare const ContentPartImage: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
|
189
|
+
ref?: ((instance: HTMLImageElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLImageElement> | null | undefined;
|
190
|
+
} & {
|
191
|
+
asChild?: boolean;
|
192
|
+
}, "ref"> & react.RefAttributes<HTMLImageElement>>;
|
193
|
+
|
194
|
+
declare const ContentPartDisplay: FC;
|
195
|
+
|
196
|
+
declare namespace index$2 {
|
197
|
+
export { ContentPartDisplay as Display, ContentPartImage as Image, ContentPartInProgressIndicator as InProgressIndicator, ContentPartText as Text };
|
198
|
+
}
|
199
|
+
|
164
200
|
declare const MessageRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
165
201
|
ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
|
166
202
|
} & {
|
@@ -189,89 +225,67 @@ declare const MessageInProgress: react.ForwardRefExoticComponent<Omit<Omit<react
|
|
189
225
|
asChild?: boolean;
|
190
226
|
}, "ref"> & react.RefAttributes<HTMLSpanElement>>;
|
191
227
|
|
192
|
-
declare namespace index$
|
228
|
+
declare namespace index$1 {
|
193
229
|
export { MessageContent as Content, MessageIf as If, MessageInProgress as InProgress, MessageRoot as Root };
|
194
230
|
}
|
195
231
|
|
196
|
-
declare const
|
197
|
-
ref?: ((instance:
|
232
|
+
declare const ThreadRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
233
|
+
ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
|
198
234
|
} & {
|
199
235
|
asChild?: boolean;
|
200
|
-
}, "ref"> & react.RefAttributes<
|
236
|
+
}, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
201
237
|
|
202
|
-
|
203
|
-
|
204
|
-
}
|
205
|
-
|
206
|
-
}, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
238
|
+
type ThreadEmptyProps = {
|
239
|
+
children: ReactNode;
|
240
|
+
};
|
241
|
+
declare const ThreadEmpty: FC<ThreadEmptyProps>;
|
207
242
|
|
208
|
-
|
243
|
+
type ThreadIfProps = PropsWithChildren<UseThreadIfProps>;
|
244
|
+
declare const ThreadIf: FC<ThreadIfProps>;
|
209
245
|
|
210
|
-
|
246
|
+
type UseThreadViewportAutoScrollProps = {
|
247
|
+
autoScroll?: boolean | undefined;
|
248
|
+
};
|
211
249
|
|
212
|
-
declare const
|
250
|
+
declare const ThreadViewport: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
213
251
|
ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
|
214
252
|
} & {
|
215
253
|
asChild?: boolean;
|
216
|
-
}, "ref"> &
|
217
|
-
hideWhenSingleBranch?: boolean;
|
218
|
-
} & react.RefAttributes<HTMLDivElement>>;
|
219
|
-
|
220
|
-
declare namespace index$2 {
|
221
|
-
export { BranchPickerCount as Count, BranchPickerNext as Next, BranchPickerNumber as Number, BranchPickerPrevious as Previous, BranchPickerRoot as Root };
|
222
|
-
}
|
254
|
+
}, "ref"> & UseThreadViewportAutoScrollProps & react.RefAttributes<HTMLDivElement>>;
|
223
255
|
|
224
|
-
type
|
225
|
-
|
226
|
-
|
227
|
-
|
256
|
+
type ThreadMessagesProps = {
|
257
|
+
components: {
|
258
|
+
Message: ComponentType;
|
259
|
+
UserMessage?: ComponentType;
|
260
|
+
EditComposer?: ComponentType;
|
261
|
+
AssistantMessage?: ComponentType;
|
262
|
+
} | {
|
263
|
+
Message?: ComponentType;
|
264
|
+
UserMessage: ComponentType;
|
265
|
+
EditComposer?: ComponentType;
|
266
|
+
AssistantMessage: ComponentType;
|
267
|
+
};
|
228
268
|
};
|
229
|
-
declare const
|
230
|
-
ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
|
231
|
-
} & {
|
232
|
-
asChild?: boolean;
|
233
|
-
}, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>>;
|
234
|
-
|
235
|
-
declare const ActionBarCopy: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
236
|
-
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
237
|
-
} & {
|
238
|
-
asChild?: boolean;
|
239
|
-
}, "ref"> & {
|
240
|
-
copiedDuration?: number;
|
241
|
-
} & react.RefAttributes<HTMLButtonElement>>;
|
269
|
+
declare const ThreadMessages: FC<ThreadMessagesProps>;
|
242
270
|
|
243
|
-
declare const
|
271
|
+
declare const ThreadScrollToBottom: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
244
272
|
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
245
273
|
} & {
|
246
274
|
asChild?: boolean;
|
247
275
|
}, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
248
276
|
|
249
|
-
declare const
|
277
|
+
declare const ThreadSuggestion: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
250
278
|
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
251
279
|
} & {
|
252
280
|
asChild?: boolean;
|
253
|
-
}, "ref"> &
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
}
|
258
|
-
|
259
|
-
declare const ContentPartInProgressIndicator: FC;
|
260
|
-
|
261
|
-
type PrimitiveSpanProps = ComponentPropsWithoutRef<typeof Primitive.span>;
|
262
|
-
type ContentPartTextProps = Omit<PrimitiveSpanProps, "children">;
|
263
|
-
declare const ContentPartText: react.ForwardRefExoticComponent<ContentPartTextProps & react.RefAttributes<HTMLSpanElement>>;
|
264
|
-
|
265
|
-
declare const ContentPartImage: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
|
266
|
-
ref?: ((instance: HTMLImageElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLImageElement> | null | undefined;
|
267
|
-
} & {
|
268
|
-
asChild?: boolean;
|
269
|
-
}, "ref"> & react.RefAttributes<HTMLImageElement>>;
|
270
|
-
|
271
|
-
declare const ContentPartDisplay: FC;
|
281
|
+
}, "ref"> & {
|
282
|
+
prompt: string;
|
283
|
+
method: "replace";
|
284
|
+
autoSend?: boolean;
|
285
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
272
286
|
|
273
287
|
declare namespace index {
|
274
|
-
export {
|
288
|
+
export { ThreadEmpty as Empty, ThreadIf as If, ThreadMessages as Messages, ThreadRoot as Root, ThreadScrollToBottom as ScrollToBottom, ThreadSuggestion as Suggestion, ThreadViewport as Viewport };
|
275
289
|
}
|
276
290
|
|
277
291
|
type ThreadRuntime = Readonly<ThreadState & ThreadActionsState & {
|
@@ -354,4 +368,4 @@ declare namespace internal {
|
|
354
368
|
export { internal_MessageRepository as MessageRepository, internal_ProxyConfigProvider as ProxyConfigProvider };
|
355
369
|
}
|
356
370
|
|
357
|
-
export { index$
|
371
|
+
export { index$6 as ActionBarPrimitive, AppendMessage, AssistantContentPart, index$5 as AssistantModalPrimitive, type AssistantRuntime, AssistantRuntimeProvider, index$4 as BranchPickerPrimitive, type ChatModelAdapter, type ChatModelRunOptions, index$3 as ComposerPrimitive, index$2 as ContentPartPrimitive, internal as INTERNAL, index$1 as MessagePrimitive, type ReactThreadRuntime, ThreadMessage, index as ThreadPrimitive, type ThreadRuntime, Unsubscribe, useActionBarCopy, useActionBarEdit, useActionBarReload, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposerCancel, useComposerIf, useComposerSend, useContentPartDisplay, useContentPartImage, useContentPartInProgressIndicator, useContentPartText, useLocalRuntime, useMessageIf, useThreadEmpty, useThreadIf, useThreadScrollToBottom, useThreadSuggestion };
|
package/dist/index.d.ts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import { FC,
|
2
|
+
import { FC, PropsWithChildren, ComponentPropsWithoutRef, ComponentType, ReactNode } from 'react';
|
3
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
3
4
|
import { TextareaAutosizeProps } from 'react-textarea-autosize';
|
5
|
+
import { Primitive } from '@radix-ui/react-primitive';
|
4
6
|
import { T as TextContentPartComponent, I as ImageContentPartComponent, U as UIContentPartComponent, a as ToolCallContentPartComponent, b as ToolCallContentPartProps, c as ThreadState, d as ThreadActionsState, e as Unsubscribe, M as ModelConfigProvider, f as ThreadMessage, g as ModelConfig, A as AssistantContentPart, h as AppendMessage } from './ThreadActions-BLcKtagX.js';
|
5
7
|
export { l as AppendContentPart, i as AssistantMessage, m as TextContentPart, k as UserContentPart, j as UserMessage } from './ThreadActions-BLcKtagX.js';
|
6
|
-
import { Primitive } from '@radix-ui/react-primitive';
|
7
8
|
import 'zod';
|
8
9
|
|
9
10
|
type UseActionBarCopyProps = {
|
@@ -73,63 +74,80 @@ type UseApplyThreadSuggestionProps = {
|
|
73
74
|
};
|
74
75
|
declare const useThreadSuggestion: ({ prompt, autoSend, }: UseApplyThreadSuggestionProps) => (() => void) | null;
|
75
76
|
|
76
|
-
|
77
|
+
type UseActionBarFloatStatusProps = {
|
78
|
+
hideWhenRunning?: boolean | undefined;
|
79
|
+
autohide?: "always" | "not-last" | "never" | undefined;
|
80
|
+
autohideFloat?: "always" | "single-branch" | "never" | undefined;
|
81
|
+
};
|
82
|
+
declare const ActionBarRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
77
83
|
ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
|
78
84
|
} & {
|
79
85
|
asChild?: boolean;
|
80
|
-
}, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
81
|
-
|
82
|
-
type ThreadEmptyProps = {
|
83
|
-
children: ReactNode;
|
84
|
-
};
|
85
|
-
declare const ThreadEmpty: FC<ThreadEmptyProps>;
|
86
|
+
}, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>>;
|
86
87
|
|
87
|
-
|
88
|
-
|
88
|
+
declare const ActionBarCopy: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
89
|
+
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
90
|
+
} & {
|
91
|
+
asChild?: boolean;
|
92
|
+
}, "ref"> & {
|
93
|
+
copiedDuration?: number;
|
94
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
89
95
|
|
90
|
-
|
91
|
-
|
92
|
-
}
|
96
|
+
declare const ActionBarReload: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
97
|
+
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
98
|
+
} & {
|
99
|
+
asChild?: boolean;
|
100
|
+
}, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
93
101
|
|
94
|
-
declare const
|
95
|
-
ref?: ((instance:
|
102
|
+
declare const ActionBarEdit: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
103
|
+
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
96
104
|
} & {
|
97
105
|
asChild?: boolean;
|
98
|
-
}, "ref"> &
|
106
|
+
}, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
99
107
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
UserMessage?: ComponentType;
|
104
|
-
EditComposer?: ComponentType;
|
105
|
-
AssistantMessage?: ComponentType;
|
106
|
-
} | {
|
107
|
-
Message?: ComponentType;
|
108
|
-
UserMessage: ComponentType;
|
109
|
-
EditComposer?: ComponentType;
|
110
|
-
AssistantMessage: ComponentType;
|
111
|
-
};
|
112
|
-
};
|
113
|
-
declare const ThreadMessages: FC<ThreadMessagesProps>;
|
108
|
+
declare namespace index$6 {
|
109
|
+
export { ActionBarCopy as Copy, ActionBarEdit as Edit, ActionBarReload as Reload, ActionBarRoot as Root };
|
110
|
+
}
|
114
111
|
|
115
|
-
|
112
|
+
type AssistantModalRootProps = PopoverPrimitive.PopoverProps;
|
113
|
+
declare const AssistantModalRoot: FC<AssistantModalRootProps>;
|
114
|
+
|
115
|
+
declare const AssistantModalTrigger: react.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
116
|
+
|
117
|
+
declare const AssistantModalContent: react.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
118
|
+
dissmissOnInteractOutside?: boolean;
|
119
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
120
|
+
|
121
|
+
declare namespace index$5 {
|
122
|
+
export { AssistantModalContent as Content, AssistantModalRoot as Root, AssistantModalTrigger as Trigger };
|
123
|
+
}
|
124
|
+
|
125
|
+
declare const BranchPickerNext: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
116
126
|
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
117
127
|
} & {
|
118
128
|
asChild?: boolean;
|
119
129
|
}, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
120
130
|
|
121
|
-
declare const
|
131
|
+
declare const BranchPickerPrevious: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
122
132
|
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
123
133
|
} & {
|
124
134
|
asChild?: boolean;
|
135
|
+
}, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
136
|
+
|
137
|
+
declare const BranchPickerCount: FC;
|
138
|
+
|
139
|
+
declare const BranchPickerNumber: FC;
|
140
|
+
|
141
|
+
declare const BranchPickerRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
142
|
+
ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
|
143
|
+
} & {
|
144
|
+
asChild?: boolean;
|
125
145
|
}, "ref"> & {
|
126
|
-
|
127
|
-
|
128
|
-
autoSend?: boolean;
|
129
|
-
} & react.RefAttributes<HTMLButtonElement>>;
|
146
|
+
hideWhenSingleBranch?: boolean;
|
147
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
130
148
|
|
131
|
-
declare namespace index$
|
132
|
-
export {
|
149
|
+
declare namespace index$4 {
|
150
|
+
export { BranchPickerCount as Count, BranchPickerNext as Next, BranchPickerNumber as Number, BranchPickerPrevious as Previous, BranchPickerRoot as Root };
|
133
151
|
}
|
134
152
|
|
135
153
|
declare const ComposerRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
|
@@ -157,10 +175,28 @@ declare const ComposerCancel: react.ForwardRefExoticComponent<Omit<Omit<react.De
|
|
157
175
|
type ComposerIfProps = PropsWithChildren<UseComposerIfProps>;
|
158
176
|
declare const ComposerIf: FC<ComposerIfProps>;
|
159
177
|
|
160
|
-
declare namespace index$
|
178
|
+
declare namespace index$3 {
|
161
179
|
export { ComposerCancel as Cancel, ComposerIf as If, ComposerInput as Input, ComposerRoot as Root, ComposerSend as Send };
|
162
180
|
}
|
163
181
|
|
182
|
+
declare const ContentPartInProgressIndicator: FC;
|
183
|
+
|
184
|
+
type PrimitiveSpanProps = ComponentPropsWithoutRef<typeof Primitive.span>;
|
185
|
+
type ContentPartTextProps = Omit<PrimitiveSpanProps, "children">;
|
186
|
+
declare const ContentPartText: react.ForwardRefExoticComponent<ContentPartTextProps & react.RefAttributes<HTMLSpanElement>>;
|
187
|
+
|
188
|
+
declare const ContentPartImage: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
|
189
|
+
ref?: ((instance: HTMLImageElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLImageElement> | null | undefined;
|
190
|
+
} & {
|
191
|
+
asChild?: boolean;
|
192
|
+
}, "ref"> & react.RefAttributes<HTMLImageElement>>;
|
193
|
+
|
194
|
+
declare const ContentPartDisplay: FC;
|
195
|
+
|
196
|
+
declare namespace index$2 {
|
197
|
+
export { ContentPartDisplay as Display, ContentPartImage as Image, ContentPartInProgressIndicator as InProgressIndicator, ContentPartText as Text };
|
198
|
+
}
|
199
|
+
|
164
200
|
declare const MessageRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
165
201
|
ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
|
166
202
|
} & {
|
@@ -189,89 +225,67 @@ declare const MessageInProgress: react.ForwardRefExoticComponent<Omit<Omit<react
|
|
189
225
|
asChild?: boolean;
|
190
226
|
}, "ref"> & react.RefAttributes<HTMLSpanElement>>;
|
191
227
|
|
192
|
-
declare namespace index$
|
228
|
+
declare namespace index$1 {
|
193
229
|
export { MessageContent as Content, MessageIf as If, MessageInProgress as InProgress, MessageRoot as Root };
|
194
230
|
}
|
195
231
|
|
196
|
-
declare const
|
197
|
-
ref?: ((instance:
|
232
|
+
declare const ThreadRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
233
|
+
ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
|
198
234
|
} & {
|
199
235
|
asChild?: boolean;
|
200
|
-
}, "ref"> & react.RefAttributes<
|
236
|
+
}, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
201
237
|
|
202
|
-
|
203
|
-
|
204
|
-
}
|
205
|
-
|
206
|
-
}, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
238
|
+
type ThreadEmptyProps = {
|
239
|
+
children: ReactNode;
|
240
|
+
};
|
241
|
+
declare const ThreadEmpty: FC<ThreadEmptyProps>;
|
207
242
|
|
208
|
-
|
243
|
+
type ThreadIfProps = PropsWithChildren<UseThreadIfProps>;
|
244
|
+
declare const ThreadIf: FC<ThreadIfProps>;
|
209
245
|
|
210
|
-
|
246
|
+
type UseThreadViewportAutoScrollProps = {
|
247
|
+
autoScroll?: boolean | undefined;
|
248
|
+
};
|
211
249
|
|
212
|
-
declare const
|
250
|
+
declare const ThreadViewport: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
213
251
|
ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
|
214
252
|
} & {
|
215
253
|
asChild?: boolean;
|
216
|
-
}, "ref"> &
|
217
|
-
hideWhenSingleBranch?: boolean;
|
218
|
-
} & react.RefAttributes<HTMLDivElement>>;
|
219
|
-
|
220
|
-
declare namespace index$2 {
|
221
|
-
export { BranchPickerCount as Count, BranchPickerNext as Next, BranchPickerNumber as Number, BranchPickerPrevious as Previous, BranchPickerRoot as Root };
|
222
|
-
}
|
254
|
+
}, "ref"> & UseThreadViewportAutoScrollProps & react.RefAttributes<HTMLDivElement>>;
|
223
255
|
|
224
|
-
type
|
225
|
-
|
226
|
-
|
227
|
-
|
256
|
+
type ThreadMessagesProps = {
|
257
|
+
components: {
|
258
|
+
Message: ComponentType;
|
259
|
+
UserMessage?: ComponentType;
|
260
|
+
EditComposer?: ComponentType;
|
261
|
+
AssistantMessage?: ComponentType;
|
262
|
+
} | {
|
263
|
+
Message?: ComponentType;
|
264
|
+
UserMessage: ComponentType;
|
265
|
+
EditComposer?: ComponentType;
|
266
|
+
AssistantMessage: ComponentType;
|
267
|
+
};
|
228
268
|
};
|
229
|
-
declare const
|
230
|
-
ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
|
231
|
-
} & {
|
232
|
-
asChild?: boolean;
|
233
|
-
}, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>>;
|
234
|
-
|
235
|
-
declare const ActionBarCopy: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
236
|
-
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
237
|
-
} & {
|
238
|
-
asChild?: boolean;
|
239
|
-
}, "ref"> & {
|
240
|
-
copiedDuration?: number;
|
241
|
-
} & react.RefAttributes<HTMLButtonElement>>;
|
269
|
+
declare const ThreadMessages: FC<ThreadMessagesProps>;
|
242
270
|
|
243
|
-
declare const
|
271
|
+
declare const ThreadScrollToBottom: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
244
272
|
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
245
273
|
} & {
|
246
274
|
asChild?: boolean;
|
247
275
|
}, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
248
276
|
|
249
|
-
declare const
|
277
|
+
declare const ThreadSuggestion: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
250
278
|
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
251
279
|
} & {
|
252
280
|
asChild?: boolean;
|
253
|
-
}, "ref"> &
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
}
|
258
|
-
|
259
|
-
declare const ContentPartInProgressIndicator: FC;
|
260
|
-
|
261
|
-
type PrimitiveSpanProps = ComponentPropsWithoutRef<typeof Primitive.span>;
|
262
|
-
type ContentPartTextProps = Omit<PrimitiveSpanProps, "children">;
|
263
|
-
declare const ContentPartText: react.ForwardRefExoticComponent<ContentPartTextProps & react.RefAttributes<HTMLSpanElement>>;
|
264
|
-
|
265
|
-
declare const ContentPartImage: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
|
266
|
-
ref?: ((instance: HTMLImageElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLImageElement> | null | undefined;
|
267
|
-
} & {
|
268
|
-
asChild?: boolean;
|
269
|
-
}, "ref"> & react.RefAttributes<HTMLImageElement>>;
|
270
|
-
|
271
|
-
declare const ContentPartDisplay: FC;
|
281
|
+
}, "ref"> & {
|
282
|
+
prompt: string;
|
283
|
+
method: "replace";
|
284
|
+
autoSend?: boolean;
|
285
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
272
286
|
|
273
287
|
declare namespace index {
|
274
|
-
export {
|
288
|
+
export { ThreadEmpty as Empty, ThreadIf as If, ThreadMessages as Messages, ThreadRoot as Root, ThreadScrollToBottom as ScrollToBottom, ThreadSuggestion as Suggestion, ThreadViewport as Viewport };
|
275
289
|
}
|
276
290
|
|
277
291
|
type ThreadRuntime = Readonly<ThreadState & ThreadActionsState & {
|
@@ -354,4 +368,4 @@ declare namespace internal {
|
|
354
368
|
export { internal_MessageRepository as MessageRepository, internal_ProxyConfigProvider as ProxyConfigProvider };
|
355
369
|
}
|
356
370
|
|
357
|
-
export { index$
|
371
|
+
export { index$6 as ActionBarPrimitive, AppendMessage, AssistantContentPart, index$5 as AssistantModalPrimitive, type AssistantRuntime, AssistantRuntimeProvider, index$4 as BranchPickerPrimitive, type ChatModelAdapter, type ChatModelRunOptions, index$3 as ComposerPrimitive, index$2 as ContentPartPrimitive, internal as INTERNAL, index$1 as MessagePrimitive, type ReactThreadRuntime, ThreadMessage, index as ThreadPrimitive, type ThreadRuntime, Unsubscribe, useActionBarCopy, useActionBarEdit, useActionBarReload, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposerCancel, useComposerIf, useComposerSend, useContentPartDisplay, useContentPartImage, useContentPartInProgressIndicator, useContentPartText, useLocalRuntime, useMessageIf, useThreadEmpty, useThreadIf, useThreadScrollToBottom, useThreadSuggestion };
|