@plaisolutions/react 0.11.0 → 0.13.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.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { ChatStatus, ChatStatus as ChatStatus$1, ChatTransport, DatasourceReadModel, DatasourceToolResultMetadata, DocumentMetadata, FileUploadState, FileUploadState as FileUploadState$1, FileUploadStatus, FolderReadModel, GetResourceDownloadUrlFn, MediaFile, MessageRating, PlaiChatError, PlaiChatError as PlaiChatError$1, PlaiSseEvent, PlaiSseEvent as PlaiSseEvent$1, RateMessageInput, RateMessageInput as RateMessageInput$1, ResendMessageInput, ResendMessageInput as ResendMessageInput$1, ResourceReadModel, ResourceReadModel as ResourceReadModel$1, SendMessageDocument, SendMessageInput, SendMessageInput as SendMessageInput$1, TranscribeAudioFn, TranscribeAudioFn as TranscribeAudioFn$1, UIAgentInvocationToolCallPart, UIBrowserToolCallPart, UIDatasourceToolCallPart, UIExternalDatasourceToolCallPart, UIFirecrawlSearchToolCallPart, UIHttpRequestToolCallPart, UIMcpToolCallPart, UIMessage, UIMessage as UIMessage$1, UIMessagePart, UIOfficeDocumentsToolCallPart, UIPerplexityToolCallPart, UIThinkingPart, UIThinkingPart as UIThinkingPart$1, UIToolCallPart, UIWorkflowDispatchToolCallPart, UploadFileFn, UploadFileFn as UploadFileFn$1, UploadFileOptions, UploadFileProgress, Usage, Usage as Usage$1 } from "@plaisolutions/client";
2
- import * as react6 from "react";
1
+ import { ChatStatus, ChatStatus as ChatStatus$1, ChatTransport, DatasourceReadModel, DatasourceToolResultMetadata, DocumentMetadata, FileUploadState, FileUploadState as FileUploadState$1, FileUploadStatus, FolderReadModel, GetMemoryProposalFn, GetResourceDownloadUrlFn, MediaFile, MemoryProposal, MemoryProposal as MemoryProposal$1, MemoryProposalActionInput, MemoryProposalActions, MemoryProposalActions as MemoryProposalActions$1, MemoryProposalStatus, MemoryScope, MessageRating, PlaiChatError, PlaiChatError as PlaiChatError$1, PlaiSseEvent, PlaiSseEvent as PlaiSseEvent$1, RateMessageInput, RateMessageInput as RateMessageInput$1, ResendMessageInput, ResendMessageInput as ResendMessageInput$1, ResolveMemoryProposalFn, ResourceReadModel, ResourceReadModel as ResourceReadModel$1, SendMessageDocument, SendMessageInput, SendMessageInput as SendMessageInput$1, TranscribeAudioFn, TranscribeAudioFn as TranscribeAudioFn$1, UIAgentInvocationToolCallPart, UIBrowserToolCallPart, UIDatasourceToolCallPart, UIExternalDatasourceToolCallPart, UIFirecrawlSearchToolCallPart, UIHttpRequestToolCallPart, UIMcpToolCallPart, UIMessage, UIMessage as UIMessage$1, UIMessagePart, UIOfficeDocumentsToolCallPart, UIPerplexityToolCallPart, UIThinkingPart, UIThinkingPart as UIThinkingPart$1, UIToolCallPart, UIWorkflowDispatchToolCallPart, UploadFileFn, UploadFileFn as UploadFileFn$1, UploadFileOptions, UploadFileProgress, Usage, Usage as Usage$1 } from "@plaisolutions/client";
2
+ import * as react5 from "react";
3
3
  import { ButtonHTMLAttributes, DialogHTMLAttributes, HTMLAttributes, PropsWithChildren, ReactNode, SVGProps } from "react";
4
4
 
5
5
  //#region src/use-chat.d.ts
@@ -20,6 +20,9 @@ type UseChatResult = {
20
20
  uploadState: FileUploadState$1;
21
21
  sendMessage: (input: SendMessageInput$1) => Promise<void>;
22
22
  rateMessage: (input: RateMessageInput$1) => Promise<void>;
23
+ getMemoryProposal: GetMemoryProposalFn;
24
+ acceptMemoryProposal: ResolveMemoryProposalFn;
25
+ rejectMemoryProposal: ResolveMemoryProposalFn;
23
26
  getResourceDownloadUrl: GetResourceDownloadUrlFn;
24
27
  resendMessage: (input: ResendMessageInput$1) => Promise<void>;
25
28
  transcribeAudio: TranscribeAudioFn$1;
@@ -39,7 +42,7 @@ declare function MessageRoot({
39
42
  align,
40
43
  className,
41
44
  ...props
42
- }: MessageRootProps): react6.JSX.Element;
45
+ }: MessageRootProps): react5.JSX.Element;
43
46
  type MessageAvatarProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
44
47
  src: string;
45
48
  fallback: string;
@@ -53,22 +56,22 @@ declare function MessageAvatar({
53
56
  className,
54
57
  imageClassName,
55
58
  ...props
56
- }: MessageAvatarProps): react6.JSX.Element;
59
+ }: MessageAvatarProps): react5.JSX.Element;
57
60
  type MessageContentProps = HTMLAttributes<HTMLDivElement>;
58
61
  declare function MessageContent({
59
62
  className,
60
63
  ...props
61
- }: MessageContentProps): react6.JSX.Element;
64
+ }: MessageContentProps): react5.JSX.Element;
62
65
  type MessageHeaderProps = HTMLAttributes<HTMLElement>;
63
66
  declare function MessageHeader({
64
67
  className,
65
68
  ...props
66
- }: MessageHeaderProps): react6.JSX.Element;
69
+ }: MessageHeaderProps): react5.JSX.Element;
67
70
  type MessageFooterProps = HTMLAttributes<HTMLElement>;
68
71
  declare function MessageFooter({
69
72
  className,
70
73
  ...props
71
- }: MessageFooterProps): react6.JSX.Element;
74
+ }: MessageFooterProps): react5.JSX.Element;
72
75
  type MessagePartsProps = HTMLAttributes<HTMLDivElement> & {
73
76
  message: UIMessage$1;
74
77
  collapseThreshold?: number;
@@ -80,6 +83,10 @@ type MessagePartsProps = HTMLAttributes<HTMLDivElement> & {
80
83
  onOpenAgentThread?: (threadId: string) => void;
81
84
  getResourceDownloadUrl?: GetResourceDownloadUrlFn;
82
85
  locale?: string | null;
86
+ memoryProposal?: {
87
+ actions: MemoryProposalActions$1;
88
+ activeAgentId: string;
89
+ };
83
90
  renderText?: (part: Extract<UIMessagePart, {
84
91
  type: "text";
85
92
  }>, context: {
@@ -108,6 +115,7 @@ declare function MessageParts({
108
115
  onOpenAgentThread,
109
116
  getResourceDownloadUrl,
110
117
  locale,
118
+ memoryProposal,
111
119
  renderText,
112
120
  renderToolCall,
113
121
  renderThinking,
@@ -118,7 +126,7 @@ declare function MessageParts({
118
126
  readLessLabel,
119
127
  className,
120
128
  ...props
121
- }: MessagePartsProps): react6.JSX.Element;
129
+ }: MessagePartsProps): react5.JSX.Element;
122
130
  //#endregion
123
131
  //#region src/components/message-router.d.ts
124
132
  type RoutedMessagePartsProps = Omit<MessagePartsProps, "className" | "message">;
@@ -135,7 +143,7 @@ type RoutedMessageProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
135
143
  getResourceDownloadUrl?: GetResourceDownloadUrlFn;
136
144
  };
137
145
  type MessageProps = MessageRootProps | RoutedMessageProps;
138
- declare function Message(props: MessageProps): react6.JSX.Element;
146
+ declare function Message(props: MessageProps): react5.JSX.Element;
139
147
  //#endregion
140
148
  //#region src/components/assistant-message.d.ts
141
149
  type AssistantMessagePartsProps = Omit<MessagePartsProps, "className" | "message">;
@@ -162,7 +170,7 @@ declare function AssistantMessage({
162
170
  messagePartsProps,
163
171
  className,
164
172
  ...props
165
- }: AssistantMessageProps): react6.JSX.Element;
173
+ }: AssistantMessageProps): react5.JSX.Element;
166
174
  //#endregion
167
175
  //#region src/components/user-message.d.ts
168
176
  type UserMessagePartsProps = Omit<MessagePartsProps, "className" | "message">;
@@ -183,7 +191,7 @@ declare function UserMessage({
183
191
  messagePartsProps,
184
192
  className,
185
193
  ...props
186
- }: UserMessageProps): react6.JSX.Element;
194
+ }: UserMessageProps): react5.JSX.Element;
187
195
  //#endregion
188
196
  //#region src/components/aggregated-source-results.d.ts
189
197
  type SourceToolPart = UIDatasourceToolCallPart | UIFirecrawlSearchToolCallPart | UIPerplexityToolCallPart;
@@ -200,31 +208,34 @@ declare function AggregatedSourceResults({
200
208
  maxVisible,
201
209
  className,
202
210
  getResourceDownloadUrl
203
- }: AggregatedSourceResultsProps): react6.JSX.Element | null;
211
+ }: AggregatedSourceResultsProps): react5.JSX.Element | null;
204
212
  //#endregion
205
213
  //#region src/components/thinking.d.ts
206
214
  type ThinkingProps = Omit<HTMLAttributes<HTMLElement>, "part"> & {
207
215
  part: UIThinkingPart$1;
208
216
  thinkingLabel?: string;
209
217
  completedLabel?: string;
218
+ locale?: string | null;
210
219
  defaultOpen?: boolean;
211
220
  };
212
221
  declare function Thinking({
213
222
  part,
214
223
  thinkingLabel,
215
224
  completedLabel,
225
+ locale,
216
226
  defaultOpen,
217
227
  className,
218
228
  ...props
219
- }: ThinkingProps): react6.JSX.Element;
229
+ }: ThinkingProps): react5.JSX.Element;
220
230
  //#endregion
221
231
  //#region src/components/datasource-tool-result-card.d.ts
222
232
  type DatasourceToolResultCardProps = {
223
233
  title: string;
224
234
  description: string;
225
235
  type: string;
236
+ locale?: string | null;
226
237
  };
227
- declare function DatasourceToolResultCard(props: DatasourceToolResultCardProps): react6.JSX.Element;
238
+ declare function DatasourceToolResultCard(props: DatasourceToolResultCardProps): react5.JSX.Element;
228
239
  //#endregion
229
240
  //#region src/components/clipboard.d.ts
230
241
  type ClipboardState = {
@@ -237,6 +248,7 @@ type ClipboardProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" |
237
248
  copiedDuration?: number;
238
249
  copyLabel?: string;
239
250
  copiedLabel?: string;
251
+ locale?: string | null;
240
252
  children?: ReactNode | ((state: ClipboardState) => ReactNode);
241
253
  };
242
254
  declare function Clipboard({
@@ -245,13 +257,14 @@ declare function Clipboard({
245
257
  copiedDuration,
246
258
  copyLabel,
247
259
  copiedLabel,
260
+ locale,
248
261
  children,
249
262
  className,
250
263
  disabled,
251
264
  onClick,
252
265
  type,
253
266
  ...props
254
- }: ClipboardProps): react6.JSX.Element;
267
+ }: ClipboardProps): react5.JSX.Element;
255
268
  //#endregion
256
269
  //#region src/components/thumbs.d.ts
257
270
  type ThumbButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
@@ -261,33 +274,39 @@ type ThumbButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
261
274
  type ThumbClickHandler = NonNullable<ButtonHTMLAttributes<HTMLButtonElement>["onClick"]>;
262
275
  type ThumbUpProps = Omit<ThumbButtonProps, "icon" | "label" | "onClick"> & {
263
276
  label?: string;
277
+ locale?: string | null;
264
278
  onClick: ThumbClickHandler;
265
279
  };
266
280
  declare function ThumbUp({
267
281
  label,
282
+ locale,
268
283
  ...props
269
- }: ThumbUpProps): react6.JSX.Element;
284
+ }: ThumbUpProps): react5.JSX.Element;
270
285
  type ThumbDownProps = Omit<ThumbButtonProps, "icon" | "label" | "onClick"> & {
271
286
  label?: string;
287
+ locale?: string | null;
272
288
  onClick: ThumbClickHandler;
273
289
  };
274
290
  declare function ThumbDown({
275
291
  label,
292
+ locale,
276
293
  ...props
277
- }: ThumbDownProps): react6.JSX.Element;
294
+ }: ThumbDownProps): react5.JSX.Element;
278
295
  //#endregion
279
296
  //#region src/components/reload.d.ts
280
297
  type ReloadClickHandler = NonNullable<ButtonHTMLAttributes<HTMLButtonElement>["onClick"]>;
281
298
  type ReloadProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "onClick"> & {
282
299
  label?: string;
300
+ locale?: string | null;
283
301
  onClick: ReloadClickHandler;
284
302
  };
285
303
  declare function Reload({
286
304
  label,
305
+ locale,
287
306
  className,
288
307
  type,
289
308
  ...props
290
- }: ReloadProps): react6.JSX.Element;
309
+ }: ReloadProps): react5.JSX.Element;
291
310
  //#endregion
292
311
  //#region src/components/resource-card.d.ts
293
312
  type ResourceCardProps = {
@@ -301,8 +320,9 @@ type ResourceCardProps = {
301
320
  resourceId?: string;
302
321
  requiresDownloadUrl?: boolean;
303
322
  getResourceDownloadUrl?: GetResourceDownloadUrlFn;
323
+ locale?: string | null;
304
324
  };
305
- declare function ResourceCard(props: ResourceCardProps): react6.JSX.Element;
325
+ declare function ResourceCard(props: ResourceCardProps): react5.JSX.Element;
306
326
  //#endregion
307
327
  //#region src/components/datasource-folder-card.d.ts
308
328
  type DatasourceFolderCardProps = {
@@ -313,6 +333,7 @@ type DatasourceFolderCardProps = {
313
333
  url?: string | null;
314
334
  resources: ResourceCardProps[];
315
335
  variant?: "card" | "list";
336
+ locale?: string | null;
316
337
  };
317
338
  declare function DatasourceFolderCard({
318
339
  icon,
@@ -321,8 +342,9 @@ declare function DatasourceFolderCard({
321
342
  type,
322
343
  url,
323
344
  resources,
324
- variant
325
- }: DatasourceFolderCardProps): react6.JSX.Element;
345
+ variant,
346
+ locale
347
+ }: DatasourceFolderCardProps): react5.JSX.Element;
326
348
  //#endregion
327
349
  //#region src/components/datasource-tool-resources.d.ts
328
350
  type DatasourceToolResourcesProps = {
@@ -336,7 +358,7 @@ declare function DatasourceToolResources({
336
358
  locale,
337
359
  className,
338
360
  getResourceDownloadUrl
339
- }: DatasourceToolResourcesProps): react6.JSX.Element;
361
+ }: DatasourceToolResourcesProps): react5.JSX.Element;
340
362
  //#endregion
341
363
  //#region src/components/opengraph.d.ts
342
364
  type OpenGraphField = "title" | "description" | "url" | "image" | "type";
@@ -371,6 +393,7 @@ type SheetContentProps = Omit<DialogHTMLAttributes<HTMLDialogElement>, "open"> &
371
393
  side?: "top" | "right" | "bottom" | "left";
372
394
  showCloseButton?: boolean;
373
395
  closeLabel?: string;
396
+ locale?: string | null;
374
397
  };
375
398
  type SheetHeaderProps = HTMLAttributes<HTMLDivElement>;
376
399
  type SheetFooterProps = HTMLAttributes<HTMLDivElement>;
@@ -381,36 +404,37 @@ declare function Sheet({
381
404
  open: controlledOpen,
382
405
  defaultOpen,
383
406
  onOpenChange
384
- }: SheetProps): react6.JSX.Element;
385
- declare const SheetTrigger: react6.ForwardRefExoticComponent<SheetTriggerProps & react6.RefAttributes<HTMLButtonElement>>;
386
- declare const SheetClose: react6.ForwardRefExoticComponent<SheetCloseProps & react6.RefAttributes<HTMLButtonElement>>;
387
- declare const SheetContent: react6.ForwardRefExoticComponent<Omit<DialogHTMLAttributes<HTMLDialogElement>, "open"> & {
407
+ }: SheetProps): react5.JSX.Element;
408
+ declare const SheetTrigger: react5.ForwardRefExoticComponent<SheetTriggerProps & react5.RefAttributes<HTMLButtonElement>>;
409
+ declare const SheetClose: react5.ForwardRefExoticComponent<SheetCloseProps & react5.RefAttributes<HTMLButtonElement>>;
410
+ declare const SheetContent: react5.ForwardRefExoticComponent<Omit<DialogHTMLAttributes<HTMLDialogElement>, "open"> & {
388
411
  side?: "top" | "right" | "bottom" | "left";
389
412
  showCloseButton?: boolean;
390
413
  closeLabel?: string;
391
- } & react6.RefAttributes<HTMLDialogElement>>;
392
- declare const SheetHeader: react6.ForwardRefExoticComponent<SheetHeaderProps & react6.RefAttributes<HTMLDivElement>>;
393
- declare const SheetFooter: react6.ForwardRefExoticComponent<SheetFooterProps & react6.RefAttributes<HTMLDivElement>>;
394
- declare const SheetTitle: react6.ForwardRefExoticComponent<SheetTitleProps & react6.RefAttributes<HTMLHeadingElement>>;
395
- declare const SheetDescription: react6.ForwardRefExoticComponent<SheetDescriptionProps & react6.RefAttributes<HTMLParagraphElement>>;
414
+ locale?: string | null;
415
+ } & react5.RefAttributes<HTMLDialogElement>>;
416
+ declare const SheetHeader: react5.ForwardRefExoticComponent<SheetHeaderProps & react5.RefAttributes<HTMLDivElement>>;
417
+ declare const SheetFooter: react5.ForwardRefExoticComponent<SheetFooterProps & react5.RefAttributes<HTMLDivElement>>;
418
+ declare const SheetTitle: react5.ForwardRefExoticComponent<SheetTitleProps & react5.RefAttributes<HTMLHeadingElement>>;
419
+ declare const SheetDescription: react5.ForwardRefExoticComponent<SheetDescriptionProps & react5.RefAttributes<HTMLParagraphElement>>;
396
420
  //#endregion
397
421
  //#region src/components/icons/arrow.d.ts
398
- declare function ArrowUp(props: SVGProps<SVGSVGElement>): react6.JSX.Element;
422
+ declare function ArrowUp(props: SVGProps<SVGSVGElement>): react5.JSX.Element;
399
423
  //#endregion
400
424
  //#region src/components/icons/loader.d.ts
401
- declare function Loader(props: SVGProps<SVGSVGElement>): react6.JSX.Element;
425
+ declare function Loader(props: SVGProps<SVGSVGElement>): react5.JSX.Element;
402
426
  //#endregion
403
427
  //#region src/components/icons/microphone.d.ts
404
- declare function Microphone(props: SVGProps<SVGSVGElement>): react6.JSX.Element;
428
+ declare function Microphone(props: SVGProps<SVGSVGElement>): react5.JSX.Element;
405
429
  //#endregion
406
430
  //#region src/components/icons/paperclip.d.ts
407
- declare function Paperclip(props: SVGProps<SVGSVGElement>): react6.JSX.Element;
431
+ declare function Paperclip(props: SVGProps<SVGSVGElement>): react5.JSX.Element;
408
432
  //#endregion
409
433
  //#region src/components/icons/stop.d.ts
410
- declare function Stop(props: SVGProps<SVGSVGElement>): react6.JSX.Element;
434
+ declare function Stop(props: SVGProps<SVGSVGElement>): react5.JSX.Element;
411
435
  //#endregion
412
436
  //#region src/components/icons/x.d.ts
413
- declare function X(props: SVGProps<SVGSVGElement>): react6.JSX.Element;
437
+ declare function X(props: SVGProps<SVGSVGElement>): react5.JSX.Element;
414
438
  //#endregion
415
439
  //#region src/components/prompt-form/file-attachments.d.ts
416
440
  declare const PROMPT_FORM_FILE_ACCEPT = "image/*,.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx";
@@ -430,7 +454,7 @@ declare function PromptFormIconButton({
430
454
  className,
431
455
  type,
432
456
  ...props
433
- }: PromptFormIconButtonProps): react6.JSX.Element;
457
+ }: PromptFormIconButtonProps): react5.JSX.Element;
434
458
  type PromptFormSubmitInput = {
435
459
  text: string;
436
460
  enabledTools?: string[];
@@ -441,6 +465,7 @@ type PromptFormProps = {
441
465
  onValueChange: (value: string) => void;
442
466
  onSubmit: (input: PromptFormSubmitInput) => void | Promise<void>;
443
467
  status?: ChatStatus$1;
468
+ locale?: string | null;
444
469
  uploadState?: FileUploadState$1;
445
470
  onStop?: () => void;
446
471
  disabled?: boolean;
@@ -479,20 +504,21 @@ declare function PromptForm({
479
504
  onValueChange,
480
505
  onSubmit,
481
506
  status,
507
+ locale,
482
508
  uploadState,
483
509
  onStop,
484
510
  disabled,
485
511
  hasPendingInput,
486
512
  clearOnSubmit,
487
513
  enabledTools,
488
- placeholder,
489
- sendLabel,
490
- stopLabel,
491
- attachLabel,
492
- removeFileLabel,
493
- uploadingLabel,
494
- processingUploadLabel,
495
- uploadErrorLabel,
514
+ placeholder: placeholderProp,
515
+ sendLabel: sendLabelProp,
516
+ stopLabel: stopLabelProp,
517
+ attachLabel: attachLabelProp,
518
+ removeFileLabel: removeFileLabelProp,
519
+ uploadingLabel: uploadingLabelProp,
520
+ processingUploadLabel: processingUploadLabelProp,
521
+ uploadErrorLabel: uploadErrorLabelProp,
496
522
  enableAttachments,
497
523
  files: filesProp,
498
524
  onFilesChange,
@@ -509,10 +535,11 @@ declare function PromptForm({
509
535
  rightSlot,
510
536
  submitOnEnter,
511
537
  onTextareaKeyDown
512
- }: PromptFormProps): react6.JSX.Element;
538
+ }: PromptFormProps): react5.JSX.Element;
513
539
  //#endregion
514
540
  //#region src/components/prompt-form/prompt-form-attach-button.d.ts
515
541
  type PromptFormAttachButtonProps = {
542
+ locale?: string | null;
516
543
  onFilesSelected: (files: File[]) => void;
517
544
  onInvalidFiles?: (invalidFiles: InvalidPromptFormFile[]) => void;
518
545
  accept?: string;
@@ -521,11 +548,12 @@ type PromptFormAttachButtonProps = {
521
548
  declare function PromptFormAttachButton({
522
549
  onFilesSelected,
523
550
  onInvalidFiles,
551
+ locale,
524
552
  accept,
525
553
  disabled,
526
554
  label,
527
555
  ...props
528
- }: PromptFormAttachButtonProps): react6.JSX.Element;
556
+ }: PromptFormAttachButtonProps): react5.JSX.Element;
529
557
  //#endregion
530
558
  //#region src/components/speech-to-text-toggle/transcribe-audio.d.ts
531
559
  declare function dummyTranscribeAudio(_audio: Blob, signal?: AbortSignal): Promise<string>;
@@ -557,6 +585,7 @@ declare function useSpeechToText({
557
585
  //#endregion
558
586
  //#region src/components/speech-to-text-toggle/speech-to-text-toggle.d.ts
559
587
  type SpeechToTextToggleCommonProps = {
588
+ locale?: string | null;
560
589
  label?: string;
561
590
  listeningLabel?: string;
562
591
  cancelLabel?: string;
@@ -582,6 +611,7 @@ declare function SpeechToTextToggle({
582
611
  onTranscriptionComplete,
583
612
  onTranscriptionError,
584
613
  transcribe,
614
+ locale,
585
615
  disabled,
586
616
  label,
587
617
  listeningLabel,
@@ -592,7 +622,7 @@ declare function SpeechToTextToggle({
592
622
  className,
593
623
  onClick,
594
624
  ...props
595
- }: SpeechToTextToggleProps): react6.JSX.Element;
625
+ }: SpeechToTextToggleProps): react5.JSX.Element;
596
626
  //#endregion
597
627
  //#region src/components/tool-result-card.d.ts
598
628
  type ToolResultCardProps = {
@@ -602,6 +632,10 @@ type ToolResultCardProps = {
602
632
  locale?: string | null;
603
633
  onOpenAgentThread?: (threadId: string) => void;
604
634
  getResourceDownloadUrl?: GetResourceDownloadUrlFn;
635
+ memoryProposal?: {
636
+ actions: MemoryProposalActions$1;
637
+ activeAgentId: string;
638
+ };
605
639
  };
606
640
  declare function ToolResultCard({
607
641
  part,
@@ -609,8 +643,25 @@ declare function ToolResultCard({
609
643
  detailsOpen,
610
644
  locale,
611
645
  onOpenAgentThread,
612
- getResourceDownloadUrl
613
- }: ToolResultCardProps): react6.JSX.Element | null;
646
+ getResourceDownloadUrl,
647
+ memoryProposal
648
+ }: ToolResultCardProps): react5.JSX.Element | null;
649
+ //#endregion
650
+ //#region src/components/memory-proposal-card.d.ts
651
+ type MemoryProposalCardProps = {
652
+ proposal: MemoryProposal$1;
653
+ actions: MemoryProposalActions$1;
654
+ activeAgentId: string;
655
+ locale?: string | null;
656
+ className?: string;
657
+ };
658
+ declare function MemoryProposalCard({
659
+ proposal: initial,
660
+ actions,
661
+ activeAgentId,
662
+ locale,
663
+ className
664
+ }: MemoryProposalCardProps): react5.JSX.Element;
614
665
  //#endregion
615
666
  //#region src/components/tool-error.d.ts
616
667
  type ToolErrorProps = Omit<HTMLAttributes<HTMLElement>, "children" | "part"> & {
@@ -624,7 +675,7 @@ declare function ToolError({
624
675
  defaultOpen,
625
676
  className,
626
677
  ...props
627
- }: ToolErrorProps): react6.JSX.Element;
678
+ }: ToolErrorProps): react5.JSX.Element;
628
679
  //#endregion
629
680
  //#region src/components/tool-use-indicator.d.ts
630
681
  declare function getToolUseLabel(part: Pick<UIToolCallPart, "name" | "toolType">, locale?: string | null): string;
@@ -637,89 +688,105 @@ declare function ToolUseIndicator({
637
688
  locale,
638
689
  className,
639
690
  ...props
640
- }: ToolUseIndicatorProps): react6.JSX.Element;
691
+ }: ToolUseIndicatorProps): react5.JSX.Element;
641
692
  //#endregion
642
693
  //#region src/components/tool-result-agent-invocation-card.d.ts
643
694
  type ToolResultAgentInvocationCardProps = {
644
695
  part: UIAgentInvocationToolCallPart;
645
696
  className?: string;
697
+ locale?: string | null;
646
698
  onOpenThread?: (threadId: string) => void;
647
699
  };
648
700
  declare function ToolResultAgentInvocationCard({
649
701
  part,
650
702
  className,
651
- onOpenThread
652
- }: ToolResultAgentInvocationCardProps): react6.JSX.Element;
703
+ onOpenThread,
704
+ locale
705
+ }: ToolResultAgentInvocationCardProps): react5.JSX.Element;
653
706
  //#endregion
654
707
  //#region src/components/tool-result-browser-card.d.ts
655
708
  type ToolResultBrowserCardProps = {
656
709
  part: UIBrowserToolCallPart;
657
710
  className?: string;
711
+ locale?: string | null;
658
712
  };
659
713
  declare function ToolResultBrowserCard({
660
714
  part,
661
- className
662
- }: ToolResultBrowserCardProps): react6.JSX.Element;
715
+ className,
716
+ locale
717
+ }: ToolResultBrowserCardProps): react5.JSX.Element;
663
718
  //#endregion
664
719
  //#region src/components/tool-result-external-datasource-card.d.ts
665
720
  type ToolResultExternalDatasourceCardProps = {
666
721
  part: UIExternalDatasourceToolCallPart;
667
722
  className?: string;
723
+ locale?: string | null;
668
724
  };
669
725
  declare function ToolResultExternalDatasourceCard({
670
726
  part,
671
- className
672
- }: ToolResultExternalDatasourceCardProps): react6.JSX.Element;
727
+ className,
728
+ locale
729
+ }: ToolResultExternalDatasourceCardProps): react5.JSX.Element;
673
730
  //#endregion
674
731
  //#region src/components/tool-result-http-request-card.d.ts
675
732
  type ToolResultHttpRequestCardProps = {
676
733
  part: UIHttpRequestToolCallPart;
677
734
  className?: string;
735
+ locale?: string | null;
678
736
  };
679
737
  declare function ToolResultHttpRequestCard({
680
738
  part,
681
- className
682
- }: ToolResultHttpRequestCardProps): react6.JSX.Element;
739
+ className,
740
+ locale
741
+ }: ToolResultHttpRequestCardProps): react5.JSX.Element;
683
742
  //#endregion
684
743
  //#region src/components/tool-result-mcp-card.d.ts
685
744
  type ToolResultMcpCardProps = {
686
745
  part: UIMcpToolCallPart;
687
746
  className?: string;
747
+ locale?: string | null;
688
748
  };
689
749
  declare function ToolResultMcpCard({
690
750
  part,
691
- className
692
- }: ToolResultMcpCardProps): react6.JSX.Element;
751
+ className,
752
+ locale
753
+ }: ToolResultMcpCardProps): react5.JSX.Element;
693
754
  //#endregion
694
755
  //#region src/components/tool-result-office-documents-card.d.ts
695
756
  type ToolResultOfficeDocumentsCardProps = {
696
757
  part: UIOfficeDocumentsToolCallPart;
697
758
  className?: string;
759
+ locale?: string | null;
698
760
  };
699
761
  declare function ToolResultOfficeDocumentsCard({
700
762
  part,
701
- className
702
- }: ToolResultOfficeDocumentsCardProps): react6.JSX.Element;
763
+ className,
764
+ locale
765
+ }: ToolResultOfficeDocumentsCardProps): react5.JSX.Element;
703
766
  //#endregion
704
767
  //#region src/components/tool-result-web-search-card.d.ts
705
768
  type ToolResultWebSearchCardProps = {
706
769
  part: UIPerplexityToolCallPart | UIFirecrawlSearchToolCallPart;
770
+ locale?: string | null;
707
771
  className?: string;
708
772
  };
709
773
  declare function ToolResultWebSearchCard({
710
774
  part,
775
+ locale,
711
776
  className
712
- }: ToolResultWebSearchCardProps): react6.JSX.Element;
777
+ }: ToolResultWebSearchCardProps): react5.JSX.Element | null;
713
778
  //#endregion
714
779
  //#region src/components/tool-result-workflow-dispatch-card.d.ts
715
780
  type ToolResultWorkflowDispatchCardProps = {
716
781
  part: UIWorkflowDispatchToolCallPart;
717
782
  className?: string;
783
+ locale?: string | null;
718
784
  };
719
785
  declare function ToolResultWorkflowDispatchCard({
720
786
  part,
721
- className
722
- }: ToolResultWorkflowDispatchCardProps): react6.JSX.Element;
787
+ className,
788
+ locale
789
+ }: ToolResultWorkflowDispatchCardProps): react5.JSX.Element;
723
790
  //#endregion
724
- export { AggregatedSourceResults, type AggregatedSourceResultsProps, ArrowUp, AssistantMessage, type AssistantMessageProps, type ChatStatus, Clipboard, type ClipboardProps, type ClipboardState, DatasourceFolderCard, type DatasourceFolderCardProps, type DatasourceReadModel, DatasourceToolResources, type DatasourceToolResourcesProps, DatasourceToolResultCard, type DatasourceToolResultCardProps, type DatasourceToolResultMetadata, type DocumentMetadata, type FileUploadState, type FileUploadStatus, type FolderReadModel, type InvalidPromptFormFile, Loader, type LocalizedOpenGraph, type MediaFile, Message, MessageAvatar, type MessageAvatarProps, MessageContent, type MessageContentProps, MessageFooter, type MessageFooterProps, MessageHeader, type MessageHeaderProps, MessageParts, type MessagePartsProps, type MessageProps, type MessageRating, MessageRoot, type MessageRootProps, Microphone, type OpenGraphContainer, type OpenGraphField, type OpenGraphTranslation, PROMPT_FORM_FILE_ACCEPT, Paperclip, type PlaiChatError, type PlaiSseEvent, PromptForm, PromptFormAttachButton, type PromptFormAttachButtonProps, PromptFormIconButton, type PromptFormIconButtonProps, type PromptFormProps, type PromptFormSubmitInput, type RateMessageInput, Reload, type ReloadProps, type ResendMessageInput, ResourceCard, type ResourceCardProps, type ResourceReadModel, type RoutedMessageProps, type SendMessageDocument, type SendMessageInput, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, type SheetProps, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps, type SourceToolPart, type SpeechToTextController, type SpeechToTextStatus, SpeechToTextToggle, type SpeechToTextToggleProps, Stop, Thinking, type ThinkingProps, ThumbDown, type ThumbDownProps, ThumbUp, type ThumbUpProps, ToolError, type ToolErrorProps, ToolResultAgentInvocationCard, type ToolResultAgentInvocationCardProps, ToolResultBrowserCard, type ToolResultBrowserCardProps, ToolResultCard, type ToolResultCardProps, ToolResultExternalDatasourceCard, type ToolResultExternalDatasourceCardProps, ToolResultHttpRequestCard, type ToolResultHttpRequestCardProps, ToolResultMcpCard, type ToolResultMcpCardProps, ToolResultOfficeDocumentsCard, type ToolResultOfficeDocumentsCardProps, ToolResultWebSearchCard, type ToolResultWebSearchCardProps, ToolResultWorkflowDispatchCard, type ToolResultWorkflowDispatchCardProps, ToolUseIndicator, type ToolUseIndicatorProps, type TranscribeAudioFn, type UIMessage, type UIThinkingPart, type UploadFileFn, type UploadFileOptions, type UploadFileProgress, type Usage, type UseChatOptions, type UseChatResult, type UseSpeechToTextOptions, UserMessage, type UserMessageProps, X, dummyTranscribeAudio, getLocalizedOpenGraphValue, getResourceDescription, getResourceIcon, getResourceOpenGraphImage, getResourceOpenGraphType, getResourceTitle, getResourceType, getResourceUrl, getToolUseLabel, isAllowedPromptFormFile, partitionPromptFormFiles, useChat, useSpeechToText };
791
+ export { AggregatedSourceResults, type AggregatedSourceResultsProps, ArrowUp, AssistantMessage, type AssistantMessageProps, type ChatStatus, Clipboard, type ClipboardProps, type ClipboardState, DatasourceFolderCard, type DatasourceFolderCardProps, type DatasourceReadModel, DatasourceToolResources, type DatasourceToolResourcesProps, DatasourceToolResultCard, type DatasourceToolResultCardProps, type DatasourceToolResultMetadata, type DocumentMetadata, type FileUploadState, type FileUploadStatus, type FolderReadModel, type InvalidPromptFormFile, Loader, type LocalizedOpenGraph, type MediaFile, type MemoryProposal, type MemoryProposalActionInput, type MemoryProposalActions, MemoryProposalCard, type MemoryProposalCardProps, type MemoryProposalStatus, type MemoryScope, Message, MessageAvatar, type MessageAvatarProps, MessageContent, type MessageContentProps, MessageFooter, type MessageFooterProps, MessageHeader, type MessageHeaderProps, MessageParts, type MessagePartsProps, type MessageProps, type MessageRating, MessageRoot, type MessageRootProps, Microphone, type OpenGraphContainer, type OpenGraphField, type OpenGraphTranslation, PROMPT_FORM_FILE_ACCEPT, Paperclip, type PlaiChatError, type PlaiSseEvent, PromptForm, PromptFormAttachButton, type PromptFormAttachButtonProps, PromptFormIconButton, type PromptFormIconButtonProps, type PromptFormProps, type PromptFormSubmitInput, type RateMessageInput, Reload, type ReloadProps, type ResendMessageInput, ResourceCard, type ResourceCardProps, type ResourceReadModel, type RoutedMessageProps, type SendMessageDocument, type SendMessageInput, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, type SheetProps, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps, type SourceToolPart, type SpeechToTextController, type SpeechToTextStatus, SpeechToTextToggle, type SpeechToTextToggleProps, Stop, Thinking, type ThinkingProps, ThumbDown, type ThumbDownProps, ThumbUp, type ThumbUpProps, ToolError, type ToolErrorProps, ToolResultAgentInvocationCard, type ToolResultAgentInvocationCardProps, ToolResultBrowserCard, type ToolResultBrowserCardProps, ToolResultCard, type ToolResultCardProps, ToolResultExternalDatasourceCard, type ToolResultExternalDatasourceCardProps, ToolResultHttpRequestCard, type ToolResultHttpRequestCardProps, ToolResultMcpCard, type ToolResultMcpCardProps, ToolResultOfficeDocumentsCard, type ToolResultOfficeDocumentsCardProps, ToolResultWebSearchCard, type ToolResultWebSearchCardProps, ToolResultWorkflowDispatchCard, type ToolResultWorkflowDispatchCardProps, ToolUseIndicator, type ToolUseIndicatorProps, type TranscribeAudioFn, type UIMessage, type UIThinkingPart, type UploadFileFn, type UploadFileOptions, type UploadFileProgress, type Usage, type UseChatOptions, type UseChatResult, type UseSpeechToTextOptions, UserMessage, type UserMessageProps, X, dummyTranscribeAudio, getLocalizedOpenGraphValue, getResourceDescription, getResourceIcon, getResourceOpenGraphImage, getResourceOpenGraphType, getResourceTitle, getResourceType, getResourceUrl, getToolUseLabel, isAllowedPromptFormFile, partitionPromptFormFiles, useChat, useSpeechToText };
725
792
  //# sourceMappingURL=index.d.ts.map