@assistant-ui/react 0.5.41 → 0.5.45
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +69 -37
- package/dist/index.d.ts +69 -37
- package/dist/index.js +305 -122
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +261 -78
- package/dist/index.mjs.map +1 -1
- package/dist/styles/index.css +30 -18
- package/dist/styles/index.css.map +1 -1
- package/dist/styles/tailwindcss/thread.css +4 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -111,8 +111,16 @@ declare class MessageRepository {
|
|
111
111
|
}
|
112
112
|
|
113
113
|
declare namespace SpeechSynthesisAdapter {
|
114
|
+
type Status = {
|
115
|
+
type: "starting" | "running";
|
116
|
+
} | {
|
117
|
+
type: "ended";
|
118
|
+
reason: "finished" | "cancelled" | "error";
|
119
|
+
error?: unknown;
|
120
|
+
};
|
114
121
|
type Utterance = {
|
115
|
-
|
122
|
+
status: Status;
|
123
|
+
cancel: () => void;
|
116
124
|
onEnd: (callback: () => void) => Unsubscribe;
|
117
125
|
};
|
118
126
|
}
|
@@ -128,6 +136,10 @@ type LocalRuntimeOptions = {
|
|
128
136
|
} | undefined;
|
129
137
|
};
|
130
138
|
|
139
|
+
declare class WebSpeechSynthesisAdapter implements SpeechSynthesisAdapter {
|
140
|
+
speak(message: ThreadMessage): SpeechSynthesisAdapter.Utterance;
|
141
|
+
}
|
142
|
+
|
131
143
|
declare class LocalThreadRuntime implements ThreadRuntime {
|
132
144
|
private configProvider;
|
133
145
|
adapter: ChatModelAdapter;
|
@@ -142,6 +154,7 @@ declare class LocalThreadRuntime implements ThreadRuntime {
|
|
142
154
|
unstable_copy: boolean;
|
143
155
|
speak: boolean;
|
144
156
|
};
|
157
|
+
readonly threadId: string;
|
145
158
|
readonly isDisabled = false;
|
146
159
|
get messages(): ThreadMessage[];
|
147
160
|
readonly composer: {
|
@@ -150,6 +163,7 @@ declare class LocalThreadRuntime implements ThreadRuntime {
|
|
150
163
|
};
|
151
164
|
constructor(configProvider: ModelConfigProvider, adapter: ChatModelAdapter, { initialMessages, ...options }: LocalRuntimeOptions);
|
152
165
|
private _options;
|
166
|
+
get options(): LocalRuntimeOptions;
|
153
167
|
set options({ initialMessages, ...options }: LocalRuntimeOptions);
|
154
168
|
getBranches(messageId: string): string[];
|
155
169
|
switchToBranch(branchId: string): void;
|
@@ -160,6 +174,7 @@ declare class LocalThreadRuntime implements ThreadRuntime {
|
|
160
174
|
private notifySubscribers;
|
161
175
|
subscribe(callback: () => void): Unsubscribe;
|
162
176
|
addToolResult({ messageId, toolCallId, result, }: AddToolResultOptions): void;
|
177
|
+
private _utterance;
|
163
178
|
speak(messageId: string): SpeechSynthesisAdapter.Utterance;
|
164
179
|
export(): ExportedMessageRepository;
|
165
180
|
import(data: ExportedMessageRepository): void;
|
@@ -239,7 +254,7 @@ declare const useEdgeRuntime: ({ initialMessages, maxToolRoundtrips, adapters, .
|
|
239
254
|
|
240
255
|
type ThreadMessageLike = {
|
241
256
|
role: "assistant" | "user" | "system";
|
242
|
-
content: (TextContentPart | ImageContentPart | ToolCallContentPart<any, any> | CoreToolCallContentPart<any, any> | UIContentPart)[];
|
257
|
+
content: string | (TextContentPart | ImageContentPart | ToolCallContentPart<any, any> | CoreToolCallContentPart<any, any> | UIContentPart)[];
|
243
258
|
id?: string | undefined;
|
244
259
|
createdAt?: Date | undefined;
|
245
260
|
status?: MessageStatus | undefined;
|
@@ -352,6 +367,7 @@ declare class ExternalStoreThreadRuntime implements ReactThreadRuntime {
|
|
352
367
|
private assistantOptimisticId;
|
353
368
|
private _capabilities;
|
354
369
|
get capabilities(): RuntimeCapabilities;
|
370
|
+
threadId: string;
|
355
371
|
messages: ThreadMessage[];
|
356
372
|
isDisabled: boolean;
|
357
373
|
converter: ThreadMessageConverter;
|
@@ -361,6 +377,7 @@ declare class ExternalStoreThreadRuntime implements ReactThreadRuntime {
|
|
361
377
|
setText: (value: string) => void;
|
362
378
|
};
|
363
379
|
constructor(store: ExternalStoreAdapter<any>);
|
380
|
+
get store(): ExternalStoreAdapter<any>;
|
364
381
|
set store(store: ExternalStoreAdapter<any>);
|
365
382
|
private notifySubscribers;
|
366
383
|
getBranches(messageId: string): string[];
|
@@ -377,6 +394,7 @@ declare class ExternalStoreThreadRuntime implements ReactThreadRuntime {
|
|
377
394
|
declare class ExternalStoreRuntime extends BaseAssistantRuntime<ExternalStoreThreadRuntime> {
|
378
395
|
private readonly _proxyConfigProvider;
|
379
396
|
constructor(store: ExternalStoreAdapter<any>);
|
397
|
+
get store(): ExternalStoreAdapter<any>;
|
380
398
|
set store(store: ExternalStoreAdapter<any>);
|
381
399
|
getModelConfig(): ModelConfig;
|
382
400
|
registerModelConfigProvider(provider: ModelConfigProvider): () => void;
|
@@ -387,19 +405,31 @@ declare const useExternalStoreRuntime: <T>(store: ExternalStoreAdapter<T>) => Ex
|
|
387
405
|
|
388
406
|
declare const getExternalStoreMessage: <T>(message: ThreadMessage) => T | undefined;
|
389
407
|
|
408
|
+
declare namespace useExternalMessageConverter {
|
409
|
+
type Message = ThreadMessageLike | {
|
410
|
+
role: "tool";
|
411
|
+
toolCallId: string;
|
412
|
+
toolName?: string | undefined;
|
413
|
+
result: any;
|
414
|
+
};
|
415
|
+
type Callback<T> = (message: T) => Message | Message[];
|
416
|
+
}
|
417
|
+
declare const useExternalMessageConverter: <T extends WeakKey>({ callback, messages, isRunning, }: {
|
418
|
+
callback: useExternalMessageConverter.Callback<T>;
|
419
|
+
messages: T[];
|
420
|
+
isRunning: boolean;
|
421
|
+
}) => ThreadMessage[];
|
422
|
+
|
390
423
|
type DangerousInBrowserAdapterOptions = CreateEdgeRuntimeAPIOptions;
|
391
424
|
|
392
425
|
type DangerousInBrowserRuntimeOptions = DangerousInBrowserAdapterOptions & LocalRuntimeOptions;
|
393
426
|
declare const useDangerousInBrowserRuntime: ({ initialMessages, ...options }: DangerousInBrowserRuntimeOptions) => LocalRuntime;
|
394
427
|
|
395
|
-
declare class WebSpeechSynthesisAdapter implements SpeechSynthesisAdapter {
|
396
|
-
speak(message: ThreadMessage): SpeechSynthesisAdapter.Utterance;
|
397
|
-
}
|
398
|
-
|
399
428
|
type ThreadRuntimeStore = ThreadRuntime;
|
400
429
|
|
401
430
|
type ThreadState = Readonly<{
|
402
431
|
capabilities: Readonly<RuntimeCapabilities>;
|
432
|
+
threadId: string;
|
403
433
|
isRunning: boolean;
|
404
434
|
isDisabled: boolean;
|
405
435
|
}>;
|
@@ -414,6 +444,7 @@ type RuntimeCapabilities = {
|
|
414
444
|
|
415
445
|
type AddToolResultOptions = {
|
416
446
|
messageId: string;
|
447
|
+
toolName: string;
|
417
448
|
toolCallId: string;
|
418
449
|
result: any;
|
419
450
|
};
|
@@ -430,6 +461,7 @@ type ThreadActionsState = Readonly<{
|
|
430
461
|
type ThreadRuntime = ThreadActionsState & Readonly<{
|
431
462
|
composer: ThreadRuntime.Composer;
|
432
463
|
capabilities: Readonly<RuntimeCapabilities>;
|
464
|
+
threadId: string;
|
433
465
|
isDisabled: boolean;
|
434
466
|
messages: readonly ThreadMessage[];
|
435
467
|
subscribe: (callback: () => void) => Unsubscribe;
|
@@ -1075,11 +1107,11 @@ declare const ThreadConfigProvider: FC<ThreadConfigProviderProps>;
|
|
1075
1107
|
|
1076
1108
|
declare const AssistantActionBar: FC;
|
1077
1109
|
declare const exports$a: {
|
1078
|
-
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<
|
1110
|
+
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
1079
1111
|
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;
|
1080
1112
|
} & {
|
1081
1113
|
asChild?: boolean;
|
1082
|
-
}, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>, "ref"
|
1114
|
+
}, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
1083
1115
|
Reload: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
1084
1116
|
Copy: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
1085
1117
|
Speak: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
@@ -1091,11 +1123,11 @@ declare const _default$9: typeof AssistantActionBar & typeof exports$a;
|
|
1091
1123
|
declare const AssistantMessage: FC;
|
1092
1124
|
type AssistantMessageContentProps = MessagePrimitiveContentProps & ComponentPropsWithoutRef<"div">;
|
1093
1125
|
declare const exports$9: {
|
1094
|
-
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<
|
1126
|
+
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
1095
1127
|
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;
|
1096
1128
|
} & {
|
1097
1129
|
asChild?: boolean;
|
1098
|
-
}, "ref"> & react.RefAttributes<HTMLDivElement>, "ref"
|
1130
|
+
}, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
1099
1131
|
Avatar: FC;
|
1100
1132
|
Content: react.ForwardRefExoticComponent<MessagePrimitiveContentProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
1101
1133
|
};
|
@@ -1112,42 +1144,42 @@ declare const exports$8: {
|
|
1112
1144
|
children?: react.ReactNode | undefined;
|
1113
1145
|
}>;
|
1114
1146
|
Trigger: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
1115
|
-
Content: react.ForwardRefExoticComponent<Partial<Omit<Omit<
|
1147
|
+
Content: react.ForwardRefExoticComponent<Partial<Omit<Omit<PopoverPrimitive.PopoverContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
1116
1148
|
dissmissOnInteractOutside?: boolean | undefined;
|
1117
|
-
} & react.RefAttributes<HTMLDivElement>, "ref"
|
1149
|
+
} & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
1118
1150
|
Button: react.ForwardRefExoticComponent<Partial<AssistantModalButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
1119
|
-
Anchor: react.ForwardRefExoticComponent<Partial<Omit<Omit<
|
1151
|
+
Anchor: react.ForwardRefExoticComponent<Partial<Omit<Omit<PopoverPrimitive.PopoverAnchorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
1120
1152
|
};
|
1121
1153
|
declare const _default$7: typeof AssistantModal & typeof exports$8;
|
1122
1154
|
|
1123
1155
|
declare const BranchPicker: FC;
|
1124
1156
|
declare const exports$7: {
|
1125
|
-
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<
|
1157
|
+
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
1126
1158
|
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;
|
1127
1159
|
} & {
|
1128
1160
|
asChild?: boolean;
|
1129
1161
|
}, "ref"> & {
|
1130
1162
|
hideWhenSingleBranch?: boolean | undefined;
|
1131
|
-
} & react.RefAttributes<HTMLDivElement>, "ref"
|
1163
|
+
} & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
1132
1164
|
Previous: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
1133
1165
|
Next: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
1134
1166
|
};
|
1135
1167
|
declare const _default$6: typeof BranchPicker & typeof exports$7;
|
1136
1168
|
|
1137
1169
|
declare const Composer: FC;
|
1138
|
-
declare const ComposerInputStyled: react.ForwardRefExoticComponent<Partial<Omit<
|
1170
|
+
declare const ComposerInputStyled: react.ForwardRefExoticComponent<Partial<Omit<react_textarea_autosize.TextareaAutosizeProps & {
|
1139
1171
|
asChild?: boolean | undefined;
|
1140
|
-
} & react.RefAttributes<HTMLTextAreaElement>, "ref"
|
1172
|
+
} & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>>;
|
1141
1173
|
type ComposerInputProps = ComponentPropsWithoutRef<typeof ComposerInputStyled>;
|
1142
1174
|
declare const exports$6: {
|
1143
|
-
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<
|
1175
|
+
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
|
1144
1176
|
ref?: ((instance: HTMLFormElement | 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<HTMLFormElement> | null | undefined;
|
1145
1177
|
} & {
|
1146
1178
|
asChild?: boolean;
|
1147
|
-
}, "ref"> & react.RefAttributes<HTMLFormElement>, "ref"
|
1148
|
-
Input: react.ForwardRefExoticComponent<Omit<Partial<Omit<
|
1179
|
+
}, "ref"> & react.RefAttributes<HTMLFormElement>, "ref">> & react.RefAttributes<HTMLFormElement>>;
|
1180
|
+
Input: react.ForwardRefExoticComponent<Omit<Partial<Omit<react_textarea_autosize.TextareaAutosizeProps & {
|
1149
1181
|
asChild?: boolean | undefined;
|
1150
|
-
} & react.RefAttributes<HTMLTextAreaElement>, "ref"
|
1182
|
+
} & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
|
1151
1183
|
Action: FC;
|
1152
1184
|
Send: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
1153
1185
|
Cancel: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
@@ -1156,15 +1188,15 @@ declare const _default$5: typeof Composer & typeof exports$6;
|
|
1156
1188
|
|
1157
1189
|
declare const EditComposer: FC;
|
1158
1190
|
declare const exports$5: {
|
1159
|
-
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<
|
1191
|
+
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
|
1160
1192
|
ref?: ((instance: HTMLFormElement | 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<HTMLFormElement> | null | undefined;
|
1161
1193
|
} & {
|
1162
1194
|
asChild?: boolean;
|
1163
|
-
}, "ref"> & react.RefAttributes<HTMLFormElement>, "ref"
|
1164
|
-
Input: react.ForwardRefExoticComponent<Partial<Omit<
|
1195
|
+
}, "ref"> & react.RefAttributes<HTMLFormElement>, "ref">> & react.RefAttributes<HTMLFormElement>>;
|
1196
|
+
Input: react.ForwardRefExoticComponent<Partial<Omit<react_textarea_autosize.TextareaAutosizeProps & {
|
1165
1197
|
asChild?: boolean | undefined;
|
1166
|
-
} & react.RefAttributes<HTMLTextAreaElement>, "ref"
|
1167
|
-
Footer: react.ForwardRefExoticComponent<Partial<Omit<
|
1198
|
+
} & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>>;
|
1199
|
+
Footer: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
1168
1200
|
Cancel: react.ForwardRefExoticComponent<Partial<ButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
1169
1201
|
Send: react.ForwardRefExoticComponent<Partial<ButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
1170
1202
|
};
|
@@ -1182,11 +1214,11 @@ declare const exports$4: {
|
|
1182
1214
|
} & {
|
1183
1215
|
children?: react.ReactNode | undefined;
|
1184
1216
|
} & react.RefAttributes<HTMLDivElement>>;
|
1185
|
-
Viewport: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<
|
1217
|
+
Viewport: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
1186
1218
|
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;
|
1187
1219
|
} & {
|
1188
1220
|
asChild?: boolean;
|
1189
|
-
}, "ref"> & UseThreadViewportAutoScrollProps & react.RefAttributes<HTMLDivElement>, "ref"
|
1221
|
+
}, "ref"> & UseThreadViewportAutoScrollProps & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
1190
1222
|
Messages: FC<{
|
1191
1223
|
components?: {
|
1192
1224
|
UserMessage?: ComponentType | undefined;
|
@@ -1196,35 +1228,35 @@ declare const exports$4: {
|
|
1196
1228
|
};
|
1197
1229
|
}>;
|
1198
1230
|
ScrollToBottom: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
1199
|
-
ViewportFooter: react.ForwardRefExoticComponent<Partial<Omit<
|
1231
|
+
ViewportFooter: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
1200
1232
|
};
|
1201
1233
|
declare const _default$3: typeof Thread & typeof exports$4;
|
1202
1234
|
|
1203
1235
|
declare const UserMessage: FC;
|
1204
1236
|
type UserMessageContentProps = MessagePrimitiveContentProps & ComponentPropsWithoutRef<"div">;
|
1205
1237
|
declare const exports$3: {
|
1206
|
-
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<
|
1238
|
+
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
1207
1239
|
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;
|
1208
1240
|
} & {
|
1209
1241
|
asChild?: boolean;
|
1210
|
-
}, "ref"> & react.RefAttributes<HTMLDivElement>, "ref"
|
1242
|
+
}, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
1211
1243
|
Content: react.ForwardRefExoticComponent<MessagePrimitiveContentProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
1212
1244
|
};
|
1213
1245
|
declare const _default$2: typeof UserMessage & typeof exports$3;
|
1214
1246
|
|
1215
1247
|
declare const UserActionBar: FC;
|
1216
1248
|
declare const exports$2: {
|
1217
|
-
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<
|
1249
|
+
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
1218
1250
|
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;
|
1219
1251
|
} & {
|
1220
1252
|
asChild?: boolean;
|
1221
|
-
}, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>, "ref"
|
1253
|
+
}, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
1222
1254
|
Edit: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
1223
1255
|
};
|
1224
1256
|
declare const _default$1: typeof UserActionBar & typeof exports$2;
|
1225
1257
|
|
1226
1258
|
declare const ThreadWelcome: FC;
|
1227
|
-
declare const ThreadWelcomeMessageStyled: react.ForwardRefExoticComponent<Partial<Omit<
|
1259
|
+
declare const ThreadWelcomeMessageStyled: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">> & react.RefAttributes<HTMLParagraphElement>>;
|
1228
1260
|
type ThreadWelcomeMessageProps = Omit<ComponentPropsWithoutRef<typeof ThreadWelcomeMessageStyled>, "children"> & {
|
1229
1261
|
message?: string | undefined;
|
1230
1262
|
};
|
@@ -1233,9 +1265,9 @@ type ThreadWelcomeSuggestionProps = {
|
|
1233
1265
|
};
|
1234
1266
|
declare const exports$1: {
|
1235
1267
|
Root: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
1236
|
-
Center: react.ForwardRefExoticComponent<Partial<Omit<
|
1268
|
+
Center: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
1237
1269
|
Avatar: FC;
|
1238
|
-
Message: react.ForwardRefExoticComponent<Omit<Omit<Partial<Omit<
|
1270
|
+
Message: react.ForwardRefExoticComponent<Omit<Omit<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">> & react.RefAttributes<HTMLParagraphElement>, "ref">, "children"> & {
|
1239
1271
|
message?: string | undefined;
|
1240
1272
|
} & react.RefAttributes<HTMLParagraphElement>>;
|
1241
1273
|
Suggestions: FC;
|
@@ -1247,4 +1279,4 @@ declare const exports: {
|
|
1247
1279
|
Text: FC;
|
1248
1280
|
};
|
1249
1281
|
|
1250
|
-
export { index$6 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, type ActionBarPrimitiveSpeakProps, type ActionBarPrimitiveStopSpeakingProps, type AddToolResultOptions, AppendMessage, _default$9 as AssistantActionBar, type AssistantActionsState, type AssistantContextValue, _default$8 as AssistantMessage, type AssistantMessageConfig, type AssistantMessageContentProps, _default$7 as AssistantModal, index$5 as AssistantModalPrimitive, type AssistantModalPrimitiveContentProps, type AssistantModalPrimitiveRootProps, type AssistantModalPrimitiveTriggerProps, type AssistantModelConfigState, type AssistantRuntime, AssistantRuntimeProvider, type AssistantToolProps, type AssistantToolUIProps, type AssistantToolUIsState, _default$6 as BranchPicker, index$4 as BranchPickerPrimitive, type BranchPickerPrimitiveCountProps, type BranchPickerPrimitiveNextProps, type BranchPickerPrimitiveNumberProps, type BranchPickerPrimitivePreviousProps, type BranchPickerPrimitiveRootProps, type ChatModelAdapter, type ChatModelRunOptions, type ChatModelRunResult, type ChatModelRunUpdate, _default$5 as Composer, type ComposerContextValue, type ComposerInputProps, index$3 as ComposerPrimitive, type ComposerPrimitiveCancelProps, type ComposerPrimitiveIfProps, type ComposerPrimitiveInputProps, type ComposerPrimitiveRootProps, type ComposerPrimitiveSendProps, type ComposerState, exports as ContentPart, type ContentPartContextValue, index$2 as ContentPartPrimitive, type ContentPartPrimitiveDisplayProps, type ContentPartPrimitiveImageProps, type ContentPartPrimitiveInProgressProps, type ContentPartPrimitiveTextProps, type ContentPartState, CoreMessage, type DangerousInBrowserRuntimeOptions, EdgeChatAdapter, type EdgeRuntimeOptions, _default$4 as EditComposer, type EditComposerState, type ExternalStoreAdapter, type ExternalStoreMessageConverter, ExternalStoreRuntime, internal as INTERNAL, ImageContentPart, type ImageContentPartComponent, type ImageContentPartProps, type LocalRuntimeOptions, type MessageContextValue, index$1 as MessagePrimitive, type MessagePrimitiveContentProps, type MessagePrimitiveIfProps, type MessagePrimitiveInProgressProps, type MessagePrimitiveRootProps, type MessageState, MessageStatus, type MessageUtilsState, ModelConfig, ModelConfigProvider, type ReactThreadRuntime, SpeechSynthesisAdapter, StreamUtils, type StringsConfig, type SuggestionConfig, TextContentPart, type TextContentPartComponent, type TextContentPartProps, _default$3 as Thread, type ThreadActionsState, ThreadAssistantContentPart, type ThreadConfig, ThreadConfigProvider, type ThreadConfigProviderProps, type ThreadContextValue, ThreadMessage, type ThreadMessageLike, type ThreadMessagesState, index as ThreadPrimitive, type ThreadPrimitiveEmptyProps, type ThreadPrimitiveIfProps, type ThreadPrimitiveMessagesProps, type ThreadPrimitiveRootProps, type ThreadPrimitiveScrollToBottomProps, type ThreadPrimitiveSuggestionProps, type ThreadPrimitiveViewportProps, type ThreadRootProps, ThreadRuntime, type ThreadState, type ThreadViewportState, _default as ThreadWelcome, type ThreadWelcomeConfig, type ThreadWelcomeMessageProps, type ThreadWelcomeSuggestionProps, Tool, ToolCallContentPart, type ToolCallContentPartComponent, type ToolCallContentPartProps, UIContentPart, type UIContentPartComponent, type UIContentPartProps, type Unsubscribe, type UseActionBarCopyProps, _default$1 as UserActionBar, _default$2 as UserMessage, type UserMessageConfig, type UserMessageContentProps, WebSpeechSynthesisAdapter, fromCoreMessage, fromCoreMessages, fromLanguageModelMessages, fromLanguageModelTools, getExternalStoreMessage, makeAssistantTool, makeAssistantToolUI, streamUtils, subscribeToMainThread, toCoreMessage, toCoreMessages, toLanguageModelMessages, toLanguageModelTools, useActionBarCopy, useActionBarEdit, useActionBarReload, useActionBarSpeak, useActionBarStopSpeaking, useAppendMessage, useAssistantContext, useAssistantInstructions, useAssistantTool, useAssistantToolUI, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposerCancel, useComposerContext, useComposerIf, useComposerSend, useContentPartContext, useContentPartDisplay, useContentPartImage, useContentPartText, useDangerousInBrowserRuntime, useEdgeRuntime, useExternalStoreRuntime, useLocalRuntime, useMessageContext, useMessageIf, useSwitchToNewThread, useThreadConfig, useThreadContext, useThreadEmpty, useThreadIf, useThreadScrollToBottom, useThreadSuggestion };
|
1282
|
+
export { index$6 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, type ActionBarPrimitiveSpeakProps, type ActionBarPrimitiveStopSpeakingProps, type AddToolResultOptions, AppendMessage, _default$9 as AssistantActionBar, type AssistantActionsState, type AssistantContextValue, _default$8 as AssistantMessage, type AssistantMessageConfig, type AssistantMessageContentProps, _default$7 as AssistantModal, index$5 as AssistantModalPrimitive, type AssistantModalPrimitiveContentProps, type AssistantModalPrimitiveRootProps, type AssistantModalPrimitiveTriggerProps, type AssistantModelConfigState, type AssistantRuntime, AssistantRuntimeProvider, type AssistantToolProps, type AssistantToolUIProps, type AssistantToolUIsState, _default$6 as BranchPicker, index$4 as BranchPickerPrimitive, type BranchPickerPrimitiveCountProps, type BranchPickerPrimitiveNextProps, type BranchPickerPrimitiveNumberProps, type BranchPickerPrimitivePreviousProps, type BranchPickerPrimitiveRootProps, type ChatModelAdapter, type ChatModelRunOptions, type ChatModelRunResult, type ChatModelRunUpdate, _default$5 as Composer, type ComposerContextValue, type ComposerInputProps, index$3 as ComposerPrimitive, type ComposerPrimitiveCancelProps, type ComposerPrimitiveIfProps, type ComposerPrimitiveInputProps, type ComposerPrimitiveRootProps, type ComposerPrimitiveSendProps, type ComposerState, exports as ContentPart, type ContentPartContextValue, index$2 as ContentPartPrimitive, type ContentPartPrimitiveDisplayProps, type ContentPartPrimitiveImageProps, type ContentPartPrimitiveInProgressProps, type ContentPartPrimitiveTextProps, type ContentPartState, CoreMessage, type DangerousInBrowserRuntimeOptions, EdgeChatAdapter, type EdgeRuntimeOptions, _default$4 as EditComposer, type EditComposerState, type ExternalStoreAdapter, type ExternalStoreMessageConverter, ExternalStoreRuntime, internal as INTERNAL, ImageContentPart, type ImageContentPartComponent, type ImageContentPartProps, type LocalRuntimeOptions, type MessageContextValue, index$1 as MessagePrimitive, type MessagePrimitiveContentProps, type MessagePrimitiveIfProps, type MessagePrimitiveInProgressProps, type MessagePrimitiveRootProps, type MessageState, MessageStatus, type MessageUtilsState, ModelConfig, ModelConfigProvider, type ReactThreadRuntime, SpeechSynthesisAdapter, StreamUtils, type StringsConfig, type SuggestionConfig, TextContentPart, type TextContentPartComponent, type TextContentPartProps, _default$3 as Thread, type ThreadActionsState, ThreadAssistantContentPart, type ThreadConfig, ThreadConfigProvider, type ThreadConfigProviderProps, type ThreadContextValue, ThreadMessage, type ThreadMessageLike, type ThreadMessagesState, index as ThreadPrimitive, type ThreadPrimitiveEmptyProps, type ThreadPrimitiveIfProps, type ThreadPrimitiveMessagesProps, type ThreadPrimitiveRootProps, type ThreadPrimitiveScrollToBottomProps, type ThreadPrimitiveSuggestionProps, type ThreadPrimitiveViewportProps, type ThreadRootProps, ThreadRuntime, type ThreadState, type ThreadViewportState, _default as ThreadWelcome, type ThreadWelcomeConfig, type ThreadWelcomeMessageProps, type ThreadWelcomeSuggestionProps, Tool, ToolCallContentPart, type ToolCallContentPartComponent, type ToolCallContentPartProps, UIContentPart, type UIContentPartComponent, type UIContentPartProps, type Unsubscribe, type UseActionBarCopyProps, _default$1 as UserActionBar, _default$2 as UserMessage, type UserMessageConfig, type UserMessageContentProps, WebSpeechSynthesisAdapter, fromCoreMessage, fromCoreMessages, fromLanguageModelMessages, fromLanguageModelTools, getExternalStoreMessage, makeAssistantTool, makeAssistantToolUI, streamUtils, subscribeToMainThread, toCoreMessage, toCoreMessages, toLanguageModelMessages, toLanguageModelTools, useActionBarCopy, useActionBarEdit, useActionBarReload, useActionBarSpeak, useActionBarStopSpeaking, useAppendMessage, useAssistantContext, useAssistantInstructions, useAssistantTool, useAssistantToolUI, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposerCancel, useComposerContext, useComposerIf, useComposerSend, useContentPartContext, useContentPartDisplay, useContentPartImage, useContentPartText, useDangerousInBrowserRuntime, useEdgeRuntime, useExternalMessageConverter, useExternalStoreRuntime, useLocalRuntime, useMessageContext, useMessageIf, useSwitchToNewThread, useThreadConfig, useThreadContext, useThreadEmpty, useThreadIf, useThreadScrollToBottom, useThreadSuggestion };
|