@assistant-ui/react 0.5.76 → 0.5.77
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +36 -46
- package/dist/index.d.ts +36 -46
- package/dist/index.js +145 -80
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +194 -129
- package/dist/index.mjs.map +1 -1
- package/dist/styles/index.css +103 -2
- package/dist/styles/index.css.map +1 -1
- package/dist/styles/tailwindcss/base-components.css +14 -2
- package/dist/styles/tailwindcss/thread.css +8 -4
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { A as Attachment, P as PendingAttachment, T as ThreadMessage, C as CoreMessage, a as AppendMessage, M as ModelConfig, b as ModelConfigProvider, c as ThreadAssistantContentPart, d as MessageStatus, e as ThreadStep, f as PendingAttachmentStatus, g as CompleteAttachment, h as CompleteAttachmentStatus, i as Tool, j as TextContentPart, I as ImageContentPart, k as ToolCallContentPart, l as CoreToolCallContentPart, U as UIContentPart, m as CreateEdgeRuntimeAPIOptions, n as ThreadUserContentPart, o as ContentPartStatus, p as ToolCallContentPartStatus } from './edge-rTP-G718.mjs';
|
1
|
+
import { A as Attachment$1, P as PendingAttachment, T as ThreadMessage, C as CoreMessage, a as AppendMessage, M as ModelConfig, b as ModelConfigProvider, c as ThreadAssistantContentPart, d as MessageStatus, e as ThreadStep, f as PendingAttachmentStatus, g as CompleteAttachment, h as CompleteAttachmentStatus, i as Tool, j as TextContentPart, I as ImageContentPart, k as ToolCallContentPart, l as CoreToolCallContentPart, U as UIContentPart, m as CreateEdgeRuntimeAPIOptions, n as ThreadUserContentPart, o as ContentPartStatus, p as ToolCallContentPartStatus } from './edge-rTP-G718.mjs';
|
2
2
|
export { q as AttachmentStatus, v as CoreAssistantContentPart, y as CoreAssistantMessage, w as CoreSystemMessage, u as CoreUserContentPart, x as CoreUserMessage, E as EdgeRuntimeRequestOptions, s as ThreadAssistantMessage, r as ThreadSystemMessage, t as ThreadUserMessage } from './edge-rTP-G718.mjs';
|
3
3
|
import * as react from 'react';
|
4
4
|
import { ComponentType, PropsWithChildren, FC, ElementRef, ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';
|
@@ -15,7 +15,7 @@ import 'json-schema';
|
|
15
15
|
import 'zod';
|
16
16
|
|
17
17
|
type ComposerRuntimeCore = Readonly<{
|
18
|
-
attachments: readonly Attachment[];
|
18
|
+
attachments: readonly Attachment$1[];
|
19
19
|
getAttachmentAccept(): string;
|
20
20
|
addAttachment: (file: File) => Promise<void>;
|
21
21
|
removeAttachment: (attachmentId: string) => Promise<void>;
|
@@ -218,7 +218,7 @@ type AttachmentAdapter = {
|
|
218
218
|
}): Promise<Omit<PendingAttachment, "status"> & {
|
219
219
|
status?: PendingAttachmentStatus;
|
220
220
|
}>;
|
221
|
-
remove(attachment: Attachment): Promise<void>;
|
221
|
+
remove(attachment: Attachment$1): Promise<void>;
|
222
222
|
send(attachment: PendingAttachment): Promise<Omit<CompleteAttachment, "status"> & {
|
223
223
|
status?: CompleteAttachmentStatus;
|
224
224
|
}>;
|
@@ -268,7 +268,7 @@ declare class CompositeAttachmentAdapter implements AttachmentAdapter {
|
|
268
268
|
send(attachment: PendingAttachment): Promise<Omit<CompleteAttachment, "status"> & {
|
269
269
|
status?: CompleteAttachmentStatus;
|
270
270
|
}>;
|
271
|
-
remove(attachment: Attachment): Promise<void>;
|
271
|
+
remove(attachment: Attachment$1): Promise<void>;
|
272
272
|
}
|
273
273
|
|
274
274
|
declare abstract class BaseComposerRuntimeCore implements ComposerRuntimeCore {
|
@@ -276,8 +276,8 @@ declare abstract class BaseComposerRuntimeCore implements ComposerRuntimeCore {
|
|
276
276
|
protected abstract getAttachmentAdapter(): AttachmentAdapter | undefined;
|
277
277
|
getAttachmentAccept(): string;
|
278
278
|
private _attachments;
|
279
|
-
protected set attachments(value: readonly Attachment[]);
|
280
|
-
get attachments(): readonly Attachment[];
|
279
|
+
protected set attachments(value: readonly Attachment$1[]);
|
280
|
+
get attachments(): readonly Attachment$1[];
|
281
281
|
abstract get canCancel(): boolean;
|
282
282
|
get isEmpty(): boolean;
|
283
283
|
private _text;
|
@@ -600,7 +600,7 @@ type LegacyThreadComposerState = Readonly<{
|
|
600
600
|
value: string;
|
601
601
|
/** @deprecated Use `useComposerRuntime().setText` instead. This will be removed in 0.6.0. */
|
602
602
|
setValue: (value: string) => void;
|
603
|
-
attachments: readonly Attachment[];
|
603
|
+
attachments: readonly Attachment$1[];
|
604
604
|
/** @deprecated Use `useComposerRuntime().addAttachment` instead. This will be removed in 0.6.0. */
|
605
605
|
addAttachment: (file: File) => Promise<void>;
|
606
606
|
/** @deprecated Use `useComposerRuntime().removeAttachment` instead. This will be removed in 0.6.0. */
|
@@ -626,7 +626,7 @@ type LegacyThreadComposerState = Readonly<{
|
|
626
626
|
}>;
|
627
627
|
type BaseComposerState = {
|
628
628
|
text: string;
|
629
|
-
attachments: readonly Attachment[];
|
629
|
+
attachments: readonly Attachment$1[];
|
630
630
|
canCancel: boolean;
|
631
631
|
isEditing: boolean;
|
632
632
|
isEmpty: boolean;
|
@@ -651,7 +651,7 @@ type ComposerRuntime = {
|
|
651
651
|
/** @deprecated Use `getState().text` instead. This will be removed in 0.6.0. */
|
652
652
|
readonly text: string;
|
653
653
|
/** @deprecated Use `getState().attachments` instead. This will be removed in 0.6.0. */
|
654
|
-
readonly attachments: readonly Attachment[];
|
654
|
+
readonly attachments: readonly Attachment$1[];
|
655
655
|
/** @deprecated Use `getState().text` instead. This will be removed in 0.6.0. */
|
656
656
|
readonly value: string;
|
657
657
|
setText(text: string): void;
|
@@ -690,7 +690,7 @@ declare abstract class ComposerRuntimeImpl implements ComposerRuntimeCore, Compo
|
|
690
690
|
/**
|
691
691
|
* @deprecated Use `getState().attachments` instead. This will be removed in 0.6.0.
|
692
692
|
*/
|
693
|
-
get attachments(): readonly Attachment[] | (readonly Attachment[] & readonly PendingAttachment[]);
|
693
|
+
get attachments(): readonly Attachment$1[] | (readonly Attachment$1[] & readonly PendingAttachment[]);
|
694
694
|
/**
|
695
695
|
* @deprecated Use `getState().text` instead. This will be removed in 0.6.0.
|
696
696
|
*/
|
@@ -732,7 +732,7 @@ declare class ThreadComposerRuntimeImpl extends ComposerRuntimeImpl implements T
|
|
732
732
|
get type(): "thread";
|
733
733
|
private _getState;
|
734
734
|
constructor(core: ThreadComposerRuntimeCoreBinding);
|
735
|
-
get attachments(): readonly Attachment[] & readonly PendingAttachment[];
|
735
|
+
get attachments(): readonly Attachment$1[] & readonly PendingAttachment[];
|
736
736
|
getState(): ThreadComposerState;
|
737
737
|
private _focusListeners;
|
738
738
|
/**
|
@@ -785,12 +785,12 @@ type ThreadComposerAttachmentState = PendingAttachment & {
|
|
785
785
|
*/
|
786
786
|
attachment: PendingAttachment;
|
787
787
|
};
|
788
|
-
type EditComposerAttachmentState = Attachment & {
|
788
|
+
type EditComposerAttachmentState = Attachment$1 & {
|
789
789
|
source: "edit-composer";
|
790
790
|
/**
|
791
791
|
* @deprecated You can directly access content part fields in the state. Replace `.attachment.type` with `.type` etc. This will be removed in 0.6.0.
|
792
792
|
*/
|
793
|
-
attachment: Attachment;
|
793
|
+
attachment: Attachment$1;
|
794
794
|
};
|
795
795
|
type AttachmentState = ThreadComposerAttachmentState | EditComposerAttachmentState | MessageAttachmentState;
|
796
796
|
type AttachmentSnapshotBinding<Source extends AttachmentRuntimeSource> = SubscribableWithState<AttachmentState & {
|
@@ -1128,7 +1128,7 @@ declare class ThreadRuntimeImpl implements ThreadRuntimeCore, ThreadRuntime {
|
|
1128
1128
|
* @deprecated Use `getMesssageById(id).getMessageByIndex(idx).composer` instead. This will be removed in 0.6.0.
|
1129
1129
|
*/
|
1130
1130
|
getEditComposer(messageId: string): Readonly<{
|
1131
|
-
attachments: readonly Attachment[];
|
1131
|
+
attachments: readonly Attachment$1[];
|
1132
1132
|
getAttachmentAccept(): string;
|
1133
1133
|
addAttachment: (file: File) => Promise<void>;
|
1134
1134
|
removeAttachment: (attachmentId: string) => Promise<void>;
|
@@ -2681,7 +2681,7 @@ declare const TooltipIconButton: react.ForwardRefExoticComponent<Omit<Omit<react
|
|
2681
2681
|
} & react.RefAttributes<HTMLButtonElement>>;
|
2682
2682
|
|
2683
2683
|
declare const AssistantActionBar: FC;
|
2684
|
-
declare const exports$
|
2684
|
+
declare const exports$b: {
|
2685
2685
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2686
2686
|
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;
|
2687
2687
|
} & {
|
@@ -2697,7 +2697,7 @@ declare const exports$c: {
|
|
2697
2697
|
FeedbackPositive: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2698
2698
|
FeedbackNegative: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2699
2699
|
};
|
2700
|
-
declare const _default$
|
2700
|
+
declare const _default$a: typeof AssistantActionBar & typeof exports$b;
|
2701
2701
|
|
2702
2702
|
declare const AssistantMessage: FC;
|
2703
2703
|
/**
|
@@ -2709,7 +2709,7 @@ declare namespace AssistantMessageContent {
|
|
2709
2709
|
type Props = MessagePrimitiveContent.Props & ComponentPropsWithoutRef<"div">;
|
2710
2710
|
}
|
2711
2711
|
declare const AssistantMessageContent: react.ForwardRefExoticComponent<MessagePrimitiveContent.Props & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
2712
|
-
declare const exports$
|
2712
|
+
declare const exports$a: {
|
2713
2713
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2714
2714
|
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;
|
2715
2715
|
} & {
|
@@ -2718,14 +2718,14 @@ declare const exports$b: {
|
|
2718
2718
|
Avatar: FC;
|
2719
2719
|
Content: react.ForwardRefExoticComponent<MessagePrimitiveContent.Props & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
2720
2720
|
};
|
2721
|
-
declare const _default$
|
2721
|
+
declare const _default$9: typeof AssistantMessage & typeof exports$a;
|
2722
2722
|
|
2723
2723
|
declare const AssistantModal: FC<ThreadConfig>;
|
2724
2724
|
declare namespace AssistantModalRoot {
|
2725
2725
|
type Props = AssistantModalPrimitiveRoot.Props & ThreadConfigProviderProps;
|
2726
2726
|
}
|
2727
2727
|
declare const AssistantModalRoot: FC<AssistantModalRoot.Props>;
|
2728
|
-
declare const exports$
|
2728
|
+
declare const exports$9: {
|
2729
2729
|
Root: FC<AssistantModalRoot.Props>;
|
2730
2730
|
Trigger: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2731
2731
|
Content: react.ForwardRefExoticComponent<Partial<Omit<Omit<PopoverPrimitive.PopoverContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
@@ -2736,10 +2736,10 @@ declare const exports$a: {
|
|
2736
2736
|
} & react.RefAttributes<HTMLButtonElement>>;
|
2737
2737
|
Anchor: react.ForwardRefExoticComponent<Partial<Omit<Omit<PopoverPrimitive.PopoverAnchorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
2738
2738
|
};
|
2739
|
-
declare const _default$
|
2739
|
+
declare const _default$8: typeof AssistantModal & typeof exports$9;
|
2740
2740
|
|
2741
2741
|
declare const BranchPicker: FC;
|
2742
|
-
declare const exports$
|
2742
|
+
declare const exports$8: {
|
2743
2743
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2744
2744
|
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;
|
2745
2745
|
} & {
|
@@ -2750,7 +2750,7 @@ declare const exports$9: {
|
|
2750
2750
|
Previous: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2751
2751
|
Next: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2752
2752
|
};
|
2753
|
-
declare const _default$
|
2753
|
+
declare const _default$7: typeof BranchPicker & typeof exports$8;
|
2754
2754
|
|
2755
2755
|
declare const Composer: FC;
|
2756
2756
|
declare const ComposerInputStyled: react.ForwardRefExoticComponent<Partial<Omit<react_textarea_autosize.TextareaAutosizeProps & {
|
@@ -2771,7 +2771,7 @@ declare const ComposerInput: react.ForwardRefExoticComponent<Omit<Partial<Omit<r
|
|
2771
2771
|
submitOnEnter?: boolean | undefined;
|
2772
2772
|
cancelOnEscape?: boolean | undefined;
|
2773
2773
|
} & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
|
2774
|
-
declare const exports$
|
2774
|
+
declare const exports$7: {
|
2775
2775
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
|
2776
2776
|
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;
|
2777
2777
|
} & {
|
@@ -2788,10 +2788,10 @@ declare const exports$8: {
|
|
2788
2788
|
AddAttachment: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2789
2789
|
Attachments: FC<Partial<ComposerPrimitiveAttachments.Props>>;
|
2790
2790
|
};
|
2791
|
-
declare const _default$
|
2791
|
+
declare const _default$6: typeof Composer & typeof exports$7;
|
2792
2792
|
|
2793
|
-
declare const
|
2794
|
-
declare const exports$
|
2793
|
+
declare const Attachment: FC;
|
2794
|
+
declare const exports$6: {
|
2795
2795
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2796
2796
|
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;
|
2797
2797
|
} & {
|
@@ -2799,10 +2799,10 @@ declare const exports$7: {
|
|
2799
2799
|
}, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
2800
2800
|
Remove: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2801
2801
|
};
|
2802
|
-
declare const _default$
|
2802
|
+
declare const _default$5: typeof Attachment & typeof exports$6;
|
2803
2803
|
|
2804
2804
|
declare const EditComposer: FC;
|
2805
|
-
declare const exports$
|
2805
|
+
declare const exports$5: {
|
2806
2806
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
|
2807
2807
|
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;
|
2808
2808
|
} & {
|
@@ -2817,7 +2817,7 @@ declare const exports$6: {
|
|
2817
2817
|
Cancel: react.ForwardRefExoticComponent<Partial<ButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2818
2818
|
Send: react.ForwardRefExoticComponent<Partial<ButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2819
2819
|
};
|
2820
|
-
declare const _default$
|
2820
|
+
declare const _default$4: typeof EditComposer & typeof exports$5;
|
2821
2821
|
|
2822
2822
|
declare const Thread: FC<ThreadConfig>;
|
2823
2823
|
/**
|
@@ -2837,7 +2837,7 @@ declare const ThreadRoot: react.ForwardRefExoticComponent<Omit<Omit<react.Detail
|
|
2837
2837
|
} & {
|
2838
2838
|
children?: react.ReactNode | undefined;
|
2839
2839
|
} & react.RefAttributes<HTMLDivElement>>;
|
2840
|
-
declare const exports$
|
2840
|
+
declare const exports$4: {
|
2841
2841
|
Root: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2842
2842
|
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;
|
2843
2843
|
} & {
|
@@ -2865,7 +2865,7 @@ declare const exports$5: {
|
|
2865
2865
|
ScrollToBottom: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2866
2866
|
ViewportFooter: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
2867
2867
|
};
|
2868
|
-
declare const _default$
|
2868
|
+
declare const _default$3: typeof Thread & typeof exports$4;
|
2869
2869
|
|
2870
2870
|
declare const UserMessage: FC;
|
2871
2871
|
/**
|
@@ -2877,7 +2877,7 @@ declare namespace UserMessageContent {
|
|
2877
2877
|
type Props = MessagePrimitiveContent.Props & ComponentPropsWithoutRef<"div">;
|
2878
2878
|
}
|
2879
2879
|
declare const UserMessageContent: react.ForwardRefExoticComponent<MessagePrimitiveContent.Props & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
2880
|
-
declare const exports$
|
2880
|
+
declare const exports$3: {
|
2881
2881
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2882
2882
|
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;
|
2883
2883
|
} & {
|
@@ -2886,10 +2886,10 @@ declare const exports$4: {
|
|
2886
2886
|
Content: react.ForwardRefExoticComponent<MessagePrimitiveContent.Props & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
2887
2887
|
Attachments: FC<Partial<MessagePrimitiveAttachments.Props>>;
|
2888
2888
|
};
|
2889
|
-
declare const _default$
|
2889
|
+
declare const _default$2: typeof UserMessage & typeof exports$3;
|
2890
2890
|
|
2891
2891
|
declare const UserActionBar: FC;
|
2892
|
-
declare const exports$
|
2892
|
+
declare const exports$2: {
|
2893
2893
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2894
2894
|
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;
|
2895
2895
|
} & {
|
@@ -2897,17 +2897,7 @@ declare const exports$3: {
|
|
2897
2897
|
}, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
2898
2898
|
Edit: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2899
2899
|
};
|
2900
|
-
declare const _default$
|
2901
|
-
|
2902
|
-
declare const UserMessageAttachment: FC;
|
2903
|
-
declare const exports$2: {
|
2904
|
-
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2905
|
-
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;
|
2906
|
-
} & {
|
2907
|
-
asChild?: boolean;
|
2908
|
-
}, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
2909
|
-
};
|
2910
|
-
declare const _default$1: typeof UserMessageAttachment & typeof exports$2;
|
2900
|
+
declare const _default$1: typeof UserActionBar & typeof exports$2;
|
2911
2901
|
|
2912
2902
|
declare const ThreadWelcome: FC;
|
2913
2903
|
declare const ThreadWelcomeMessageStyled: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">> & react.RefAttributes<HTMLParagraphElement>>;
|
@@ -3033,4 +3023,4 @@ declare namespace internal {
|
|
3033
3023
|
export { internal_AssistantRuntimeImpl as AssistantRuntimeImpl, internal_BaseAssistantRuntimeCore as BaseAssistantRuntimeCore, internal_DefaultThreadComposerRuntimeCore as DefaultThreadComposerRuntimeCore, internal_MessageRepository as MessageRepository, internal_ProxyConfigProvider as ProxyConfigProvider, type internal_ThreadRuntimeCore as ThreadRuntimeCore, type internal_ThreadRuntimeCoreBinding as ThreadRuntimeCoreBinding, internal_ThreadRuntimeImpl as ThreadRuntimeImpl, internal_TooltipIconButton as TooltipIconButton, internal_generateId as generateId, internal_useSmooth as useSmooth, internal_useSmoothStatus as useSmoothStatus, internal_withSmoothContextProvider as withSmoothContextProvider };
|
3034
3024
|
}
|
3035
3025
|
|
3036
|
-
export { index$7 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveFeedbackNegativeProps, type ActionBarPrimitiveFeedbackPositiveProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, type ActionBarPrimitiveSpeakProps, type ActionBarPrimitiveStopSpeakingProps, type AddToolResultOptions, AppendMessage, _default$
|
3026
|
+
export { index$7 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveFeedbackNegativeProps, type ActionBarPrimitiveFeedbackPositiveProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, type ActionBarPrimitiveSpeakProps, type ActionBarPrimitiveStopSpeakingProps, type AddToolResultOptions, AppendMessage, _default$a as AssistantActionBar, type AssistantContextValue, _default$9 as AssistantMessage, type AssistantMessageConfig, type AssistantMessageContentProps, _default$8 as AssistantModal, index$6 as AssistantModalPrimitive, type AssistantModalPrimitiveContentProps, type AssistantModalPrimitiveRootProps, type AssistantModalPrimitiveTriggerProps, type AssistantRuntime, AssistantRuntimeProvider, type AssistantTool, type AssistantToolProps, type AssistantToolUI, type AssistantToolUIProps, type AssistantToolUIsState, Attachment$1 as Attachment, type AttachmentAdapter, index$5 as AttachmentPrimitive, _default$5 as AttachmentUI, _default$7 as BranchPicker, index$4 as BranchPickerPrimitive, type BranchPickerPrimitiveCountProps, type BranchPickerPrimitiveNextProps, type BranchPickerPrimitiveNumberProps, type BranchPickerPrimitivePreviousProps, type BranchPickerPrimitiveRootProps, type ChatModelAdapter, type ChatModelRunOptions, type ChatModelRunResult, type ChatModelRunUpdate, CompleteAttachment, _default$6 as Composer, _default$5 as ComposerAttachment, type ComposerContextValue, type ComposerInputProps, index$3 as ComposerPrimitive, type ComposerPrimitiveCancelProps, type ComposerPrimitiveIfProps, type ComposerPrimitiveInputProps, type ComposerPrimitiveRootProps, type ComposerPrimitiveSendProps, type ComposerRuntime, type ComposerState, CompositeAttachmentAdapter, exports as ContentPart, type ContentPartContextValue, index$2 as ContentPartPrimitive, type ContentPartPrimitiveDisplayProps, type ContentPartPrimitiveImageProps, type ContentPartPrimitiveInProgressProps, type ContentPartPrimitiveTextProps, type ContentPartRuntime, CoreMessage, type DangerousInBrowserRuntimeOptions, EdgeChatAdapter, type EdgeRuntimeOptions, _default$4 as EditComposer, type EditComposerRuntime, type EditComposerState, type EmptyContentPartComponent, type EmptyContentPartProps, type ExternalStoreAdapter, type ExternalStoreMessageConverter, 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 MessageRuntime, type MessageState, MessageStatus, type MessageUtilsState, ModelConfig, ModelConfigProvider, PendingAttachment, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, SpeechSynthesisAdapter, StreamUtils, type StringsConfig, type SubmitFeedbackOptions, type SuggestionConfig, TextContentPart, type TextContentPartComponent, type TextContentPartProps, TextContentPartProvider, _default$3 as Thread, ThreadAssistantContentPart, type ThreadComposerRuntime, type ThreadComposerState, type ThreadConfig, ThreadConfigProvider, type ThreadConfigProviderProps, type ThreadContextValue, ThreadMessage, type ThreadMessageLike, index as ThreadPrimitive, type ThreadPrimitiveEmptyProps, type ThreadPrimitiveIfProps, type ThreadPrimitiveMessagesProps, type ThreadPrimitiveRootProps, type ThreadPrimitiveScrollToBottomProps, type ThreadPrimitiveSuggestionProps, type ThreadPrimitiveViewportProps, type ThreadRootProps, type ThreadRuntime, type ThreadState, type ThreadSuggestion, ThreadUserContentPart, 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, _default$5 as UserMessageAttachment, type UserMessageConfig, type UserMessageContentProps, WebSpeechSynthesisAdapter, fromCoreMessage, fromCoreMessages, fromLanguageModelMessages, fromLanguageModelTools, getExternalStoreMessage, makeAssistantTool, makeAssistantToolUI, streamUtils, subscribeToMainThread, toCoreMessage, toCoreMessages, toLanguageModelMessages, toLanguageModelTools, useActionBarCopy, useActionBarEdit, useActionBarFeedbackNegative, useActionBarFeedbackPositive, useActionBarReload, useActionBarSpeak, useActionBarStopSpeaking, useAppendMessage, useAssistantActions, useAssistantActionsStore, useAssistantContext, useAssistantInstructions, useAssistantRuntime, useAssistantRuntimeStore, useAssistantTool, useAssistantToolUI, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposer, useComposerAddAttachment, useComposerCancel, useComposerContext, useComposerIf, useComposerRuntime, useComposerSend, useComposerStore, useContentPart, useContentPartContext, useContentPartDisplay, useContentPartImage, useContentPartRuntime, useContentPartStore, useContentPartText, useDangerousInBrowserRuntime, useEdgeRuntime, useEditComposer, useEditComposerStore, useExternalMessageConverter, useExternalStoreRuntime, useLocalRuntime, useMessage, useMessageContext, useMessageIf, useMessageRuntime, useMessageStore, useMessageUtils, useMessageUtilsStore, useSwitchToNewThread, useThread, useThreadActions, useThreadActionsStore, useThreadComposer, useThreadComposerStore, useThreadConfig, useThreadContext, useThreadEmpty, useThreadIf, useThreadMessages, useThreadMessagesStore, useThreadRuntime, useThreadRuntimeStore, useThreadScrollToBottom, useThreadStore, useThreadSuggestion, useThreadViewport, useThreadViewportStore, useToolUIs, useToolUIsStore };
|
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { A as Attachment, P as PendingAttachment, T as ThreadMessage, C as CoreMessage, a as AppendMessage, M as ModelConfig, b as ModelConfigProvider, c as ThreadAssistantContentPart, d as MessageStatus, e as ThreadStep, f as PendingAttachmentStatus, g as CompleteAttachment, h as CompleteAttachmentStatus, i as Tool, j as TextContentPart, I as ImageContentPart, k as ToolCallContentPart, l as CoreToolCallContentPart, U as UIContentPart, m as CreateEdgeRuntimeAPIOptions, n as ThreadUserContentPart, o as ContentPartStatus, p as ToolCallContentPartStatus } from './edge-rTP-G718.js';
|
1
|
+
import { A as Attachment$1, P as PendingAttachment, T as ThreadMessage, C as CoreMessage, a as AppendMessage, M as ModelConfig, b as ModelConfigProvider, c as ThreadAssistantContentPart, d as MessageStatus, e as ThreadStep, f as PendingAttachmentStatus, g as CompleteAttachment, h as CompleteAttachmentStatus, i as Tool, j as TextContentPart, I as ImageContentPart, k as ToolCallContentPart, l as CoreToolCallContentPart, U as UIContentPart, m as CreateEdgeRuntimeAPIOptions, n as ThreadUserContentPart, o as ContentPartStatus, p as ToolCallContentPartStatus } from './edge-rTP-G718.js';
|
2
2
|
export { q as AttachmentStatus, v as CoreAssistantContentPart, y as CoreAssistantMessage, w as CoreSystemMessage, u as CoreUserContentPart, x as CoreUserMessage, E as EdgeRuntimeRequestOptions, s as ThreadAssistantMessage, r as ThreadSystemMessage, t as ThreadUserMessage } from './edge-rTP-G718.js';
|
3
3
|
import * as react from 'react';
|
4
4
|
import { ComponentType, PropsWithChildren, FC, ElementRef, ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';
|
@@ -15,7 +15,7 @@ import 'json-schema';
|
|
15
15
|
import 'zod';
|
16
16
|
|
17
17
|
type ComposerRuntimeCore = Readonly<{
|
18
|
-
attachments: readonly Attachment[];
|
18
|
+
attachments: readonly Attachment$1[];
|
19
19
|
getAttachmentAccept(): string;
|
20
20
|
addAttachment: (file: File) => Promise<void>;
|
21
21
|
removeAttachment: (attachmentId: string) => Promise<void>;
|
@@ -218,7 +218,7 @@ type AttachmentAdapter = {
|
|
218
218
|
}): Promise<Omit<PendingAttachment, "status"> & {
|
219
219
|
status?: PendingAttachmentStatus;
|
220
220
|
}>;
|
221
|
-
remove(attachment: Attachment): Promise<void>;
|
221
|
+
remove(attachment: Attachment$1): Promise<void>;
|
222
222
|
send(attachment: PendingAttachment): Promise<Omit<CompleteAttachment, "status"> & {
|
223
223
|
status?: CompleteAttachmentStatus;
|
224
224
|
}>;
|
@@ -268,7 +268,7 @@ declare class CompositeAttachmentAdapter implements AttachmentAdapter {
|
|
268
268
|
send(attachment: PendingAttachment): Promise<Omit<CompleteAttachment, "status"> & {
|
269
269
|
status?: CompleteAttachmentStatus;
|
270
270
|
}>;
|
271
|
-
remove(attachment: Attachment): Promise<void>;
|
271
|
+
remove(attachment: Attachment$1): Promise<void>;
|
272
272
|
}
|
273
273
|
|
274
274
|
declare abstract class BaseComposerRuntimeCore implements ComposerRuntimeCore {
|
@@ -276,8 +276,8 @@ declare abstract class BaseComposerRuntimeCore implements ComposerRuntimeCore {
|
|
276
276
|
protected abstract getAttachmentAdapter(): AttachmentAdapter | undefined;
|
277
277
|
getAttachmentAccept(): string;
|
278
278
|
private _attachments;
|
279
|
-
protected set attachments(value: readonly Attachment[]);
|
280
|
-
get attachments(): readonly Attachment[];
|
279
|
+
protected set attachments(value: readonly Attachment$1[]);
|
280
|
+
get attachments(): readonly Attachment$1[];
|
281
281
|
abstract get canCancel(): boolean;
|
282
282
|
get isEmpty(): boolean;
|
283
283
|
private _text;
|
@@ -600,7 +600,7 @@ type LegacyThreadComposerState = Readonly<{
|
|
600
600
|
value: string;
|
601
601
|
/** @deprecated Use `useComposerRuntime().setText` instead. This will be removed in 0.6.0. */
|
602
602
|
setValue: (value: string) => void;
|
603
|
-
attachments: readonly Attachment[];
|
603
|
+
attachments: readonly Attachment$1[];
|
604
604
|
/** @deprecated Use `useComposerRuntime().addAttachment` instead. This will be removed in 0.6.0. */
|
605
605
|
addAttachment: (file: File) => Promise<void>;
|
606
606
|
/** @deprecated Use `useComposerRuntime().removeAttachment` instead. This will be removed in 0.6.0. */
|
@@ -626,7 +626,7 @@ type LegacyThreadComposerState = Readonly<{
|
|
626
626
|
}>;
|
627
627
|
type BaseComposerState = {
|
628
628
|
text: string;
|
629
|
-
attachments: readonly Attachment[];
|
629
|
+
attachments: readonly Attachment$1[];
|
630
630
|
canCancel: boolean;
|
631
631
|
isEditing: boolean;
|
632
632
|
isEmpty: boolean;
|
@@ -651,7 +651,7 @@ type ComposerRuntime = {
|
|
651
651
|
/** @deprecated Use `getState().text` instead. This will be removed in 0.6.0. */
|
652
652
|
readonly text: string;
|
653
653
|
/** @deprecated Use `getState().attachments` instead. This will be removed in 0.6.0. */
|
654
|
-
readonly attachments: readonly Attachment[];
|
654
|
+
readonly attachments: readonly Attachment$1[];
|
655
655
|
/** @deprecated Use `getState().text` instead. This will be removed in 0.6.0. */
|
656
656
|
readonly value: string;
|
657
657
|
setText(text: string): void;
|
@@ -690,7 +690,7 @@ declare abstract class ComposerRuntimeImpl implements ComposerRuntimeCore, Compo
|
|
690
690
|
/**
|
691
691
|
* @deprecated Use `getState().attachments` instead. This will be removed in 0.6.0.
|
692
692
|
*/
|
693
|
-
get attachments(): readonly Attachment[] | (readonly Attachment[] & readonly PendingAttachment[]);
|
693
|
+
get attachments(): readonly Attachment$1[] | (readonly Attachment$1[] & readonly PendingAttachment[]);
|
694
694
|
/**
|
695
695
|
* @deprecated Use `getState().text` instead. This will be removed in 0.6.0.
|
696
696
|
*/
|
@@ -732,7 +732,7 @@ declare class ThreadComposerRuntimeImpl extends ComposerRuntimeImpl implements T
|
|
732
732
|
get type(): "thread";
|
733
733
|
private _getState;
|
734
734
|
constructor(core: ThreadComposerRuntimeCoreBinding);
|
735
|
-
get attachments(): readonly Attachment[] & readonly PendingAttachment[];
|
735
|
+
get attachments(): readonly Attachment$1[] & readonly PendingAttachment[];
|
736
736
|
getState(): ThreadComposerState;
|
737
737
|
private _focusListeners;
|
738
738
|
/**
|
@@ -785,12 +785,12 @@ type ThreadComposerAttachmentState = PendingAttachment & {
|
|
785
785
|
*/
|
786
786
|
attachment: PendingAttachment;
|
787
787
|
};
|
788
|
-
type EditComposerAttachmentState = Attachment & {
|
788
|
+
type EditComposerAttachmentState = Attachment$1 & {
|
789
789
|
source: "edit-composer";
|
790
790
|
/**
|
791
791
|
* @deprecated You can directly access content part fields in the state. Replace `.attachment.type` with `.type` etc. This will be removed in 0.6.0.
|
792
792
|
*/
|
793
|
-
attachment: Attachment;
|
793
|
+
attachment: Attachment$1;
|
794
794
|
};
|
795
795
|
type AttachmentState = ThreadComposerAttachmentState | EditComposerAttachmentState | MessageAttachmentState;
|
796
796
|
type AttachmentSnapshotBinding<Source extends AttachmentRuntimeSource> = SubscribableWithState<AttachmentState & {
|
@@ -1128,7 +1128,7 @@ declare class ThreadRuntimeImpl implements ThreadRuntimeCore, ThreadRuntime {
|
|
1128
1128
|
* @deprecated Use `getMesssageById(id).getMessageByIndex(idx).composer` instead. This will be removed in 0.6.0.
|
1129
1129
|
*/
|
1130
1130
|
getEditComposer(messageId: string): Readonly<{
|
1131
|
-
attachments: readonly Attachment[];
|
1131
|
+
attachments: readonly Attachment$1[];
|
1132
1132
|
getAttachmentAccept(): string;
|
1133
1133
|
addAttachment: (file: File) => Promise<void>;
|
1134
1134
|
removeAttachment: (attachmentId: string) => Promise<void>;
|
@@ -2681,7 +2681,7 @@ declare const TooltipIconButton: react.ForwardRefExoticComponent<Omit<Omit<react
|
|
2681
2681
|
} & react.RefAttributes<HTMLButtonElement>>;
|
2682
2682
|
|
2683
2683
|
declare const AssistantActionBar: FC;
|
2684
|
-
declare const exports$
|
2684
|
+
declare const exports$b: {
|
2685
2685
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2686
2686
|
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;
|
2687
2687
|
} & {
|
@@ -2697,7 +2697,7 @@ declare const exports$c: {
|
|
2697
2697
|
FeedbackPositive: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2698
2698
|
FeedbackNegative: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2699
2699
|
};
|
2700
|
-
declare const _default$
|
2700
|
+
declare const _default$a: typeof AssistantActionBar & typeof exports$b;
|
2701
2701
|
|
2702
2702
|
declare const AssistantMessage: FC;
|
2703
2703
|
/**
|
@@ -2709,7 +2709,7 @@ declare namespace AssistantMessageContent {
|
|
2709
2709
|
type Props = MessagePrimitiveContent.Props & ComponentPropsWithoutRef<"div">;
|
2710
2710
|
}
|
2711
2711
|
declare const AssistantMessageContent: react.ForwardRefExoticComponent<MessagePrimitiveContent.Props & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
2712
|
-
declare const exports$
|
2712
|
+
declare const exports$a: {
|
2713
2713
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2714
2714
|
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;
|
2715
2715
|
} & {
|
@@ -2718,14 +2718,14 @@ declare const exports$b: {
|
|
2718
2718
|
Avatar: FC;
|
2719
2719
|
Content: react.ForwardRefExoticComponent<MessagePrimitiveContent.Props & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
2720
2720
|
};
|
2721
|
-
declare const _default$
|
2721
|
+
declare const _default$9: typeof AssistantMessage & typeof exports$a;
|
2722
2722
|
|
2723
2723
|
declare const AssistantModal: FC<ThreadConfig>;
|
2724
2724
|
declare namespace AssistantModalRoot {
|
2725
2725
|
type Props = AssistantModalPrimitiveRoot.Props & ThreadConfigProviderProps;
|
2726
2726
|
}
|
2727
2727
|
declare const AssistantModalRoot: FC<AssistantModalRoot.Props>;
|
2728
|
-
declare const exports$
|
2728
|
+
declare const exports$9: {
|
2729
2729
|
Root: FC<AssistantModalRoot.Props>;
|
2730
2730
|
Trigger: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2731
2731
|
Content: react.ForwardRefExoticComponent<Partial<Omit<Omit<PopoverPrimitive.PopoverContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
@@ -2736,10 +2736,10 @@ declare const exports$a: {
|
|
2736
2736
|
} & react.RefAttributes<HTMLButtonElement>>;
|
2737
2737
|
Anchor: react.ForwardRefExoticComponent<Partial<Omit<Omit<PopoverPrimitive.PopoverAnchorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
2738
2738
|
};
|
2739
|
-
declare const _default$
|
2739
|
+
declare const _default$8: typeof AssistantModal & typeof exports$9;
|
2740
2740
|
|
2741
2741
|
declare const BranchPicker: FC;
|
2742
|
-
declare const exports$
|
2742
|
+
declare const exports$8: {
|
2743
2743
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2744
2744
|
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;
|
2745
2745
|
} & {
|
@@ -2750,7 +2750,7 @@ declare const exports$9: {
|
|
2750
2750
|
Previous: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2751
2751
|
Next: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2752
2752
|
};
|
2753
|
-
declare const _default$
|
2753
|
+
declare const _default$7: typeof BranchPicker & typeof exports$8;
|
2754
2754
|
|
2755
2755
|
declare const Composer: FC;
|
2756
2756
|
declare const ComposerInputStyled: react.ForwardRefExoticComponent<Partial<Omit<react_textarea_autosize.TextareaAutosizeProps & {
|
@@ -2771,7 +2771,7 @@ declare const ComposerInput: react.ForwardRefExoticComponent<Omit<Partial<Omit<r
|
|
2771
2771
|
submitOnEnter?: boolean | undefined;
|
2772
2772
|
cancelOnEscape?: boolean | undefined;
|
2773
2773
|
} & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
|
2774
|
-
declare const exports$
|
2774
|
+
declare const exports$7: {
|
2775
2775
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
|
2776
2776
|
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;
|
2777
2777
|
} & {
|
@@ -2788,10 +2788,10 @@ declare const exports$8: {
|
|
2788
2788
|
AddAttachment: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2789
2789
|
Attachments: FC<Partial<ComposerPrimitiveAttachments.Props>>;
|
2790
2790
|
};
|
2791
|
-
declare const _default$
|
2791
|
+
declare const _default$6: typeof Composer & typeof exports$7;
|
2792
2792
|
|
2793
|
-
declare const
|
2794
|
-
declare const exports$
|
2793
|
+
declare const Attachment: FC;
|
2794
|
+
declare const exports$6: {
|
2795
2795
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2796
2796
|
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;
|
2797
2797
|
} & {
|
@@ -2799,10 +2799,10 @@ declare const exports$7: {
|
|
2799
2799
|
}, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
2800
2800
|
Remove: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2801
2801
|
};
|
2802
|
-
declare const _default$
|
2802
|
+
declare const _default$5: typeof Attachment & typeof exports$6;
|
2803
2803
|
|
2804
2804
|
declare const EditComposer: FC;
|
2805
|
-
declare const exports$
|
2805
|
+
declare const exports$5: {
|
2806
2806
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
|
2807
2807
|
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;
|
2808
2808
|
} & {
|
@@ -2817,7 +2817,7 @@ declare const exports$6: {
|
|
2817
2817
|
Cancel: react.ForwardRefExoticComponent<Partial<ButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2818
2818
|
Send: react.ForwardRefExoticComponent<Partial<ButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2819
2819
|
};
|
2820
|
-
declare const _default$
|
2820
|
+
declare const _default$4: typeof EditComposer & typeof exports$5;
|
2821
2821
|
|
2822
2822
|
declare const Thread: FC<ThreadConfig>;
|
2823
2823
|
/**
|
@@ -2837,7 +2837,7 @@ declare const ThreadRoot: react.ForwardRefExoticComponent<Omit<Omit<react.Detail
|
|
2837
2837
|
} & {
|
2838
2838
|
children?: react.ReactNode | undefined;
|
2839
2839
|
} & react.RefAttributes<HTMLDivElement>>;
|
2840
|
-
declare const exports$
|
2840
|
+
declare const exports$4: {
|
2841
2841
|
Root: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2842
2842
|
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;
|
2843
2843
|
} & {
|
@@ -2865,7 +2865,7 @@ declare const exports$5: {
|
|
2865
2865
|
ScrollToBottom: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2866
2866
|
ViewportFooter: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
2867
2867
|
};
|
2868
|
-
declare const _default$
|
2868
|
+
declare const _default$3: typeof Thread & typeof exports$4;
|
2869
2869
|
|
2870
2870
|
declare const UserMessage: FC;
|
2871
2871
|
/**
|
@@ -2877,7 +2877,7 @@ declare namespace UserMessageContent {
|
|
2877
2877
|
type Props = MessagePrimitiveContent.Props & ComponentPropsWithoutRef<"div">;
|
2878
2878
|
}
|
2879
2879
|
declare const UserMessageContent: react.ForwardRefExoticComponent<MessagePrimitiveContent.Props & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
2880
|
-
declare const exports$
|
2880
|
+
declare const exports$3: {
|
2881
2881
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2882
2882
|
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;
|
2883
2883
|
} & {
|
@@ -2886,10 +2886,10 @@ declare const exports$4: {
|
|
2886
2886
|
Content: react.ForwardRefExoticComponent<MessagePrimitiveContent.Props & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
2887
2887
|
Attachments: FC<Partial<MessagePrimitiveAttachments.Props>>;
|
2888
2888
|
};
|
2889
|
-
declare const _default$
|
2889
|
+
declare const _default$2: typeof UserMessage & typeof exports$3;
|
2890
2890
|
|
2891
2891
|
declare const UserActionBar: FC;
|
2892
|
-
declare const exports$
|
2892
|
+
declare const exports$2: {
|
2893
2893
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2894
2894
|
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;
|
2895
2895
|
} & {
|
@@ -2897,17 +2897,7 @@ declare const exports$3: {
|
|
2897
2897
|
}, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
2898
2898
|
Edit: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2899
2899
|
};
|
2900
|
-
declare const _default$
|
2901
|
-
|
2902
|
-
declare const UserMessageAttachment: FC;
|
2903
|
-
declare const exports$2: {
|
2904
|
-
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2905
|
-
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;
|
2906
|
-
} & {
|
2907
|
-
asChild?: boolean;
|
2908
|
-
}, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
2909
|
-
};
|
2910
|
-
declare const _default$1: typeof UserMessageAttachment & typeof exports$2;
|
2900
|
+
declare const _default$1: typeof UserActionBar & typeof exports$2;
|
2911
2901
|
|
2912
2902
|
declare const ThreadWelcome: FC;
|
2913
2903
|
declare const ThreadWelcomeMessageStyled: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">> & react.RefAttributes<HTMLParagraphElement>>;
|
@@ -3033,4 +3023,4 @@ declare namespace internal {
|
|
3033
3023
|
export { internal_AssistantRuntimeImpl as AssistantRuntimeImpl, internal_BaseAssistantRuntimeCore as BaseAssistantRuntimeCore, internal_DefaultThreadComposerRuntimeCore as DefaultThreadComposerRuntimeCore, internal_MessageRepository as MessageRepository, internal_ProxyConfigProvider as ProxyConfigProvider, type internal_ThreadRuntimeCore as ThreadRuntimeCore, type internal_ThreadRuntimeCoreBinding as ThreadRuntimeCoreBinding, internal_ThreadRuntimeImpl as ThreadRuntimeImpl, internal_TooltipIconButton as TooltipIconButton, internal_generateId as generateId, internal_useSmooth as useSmooth, internal_useSmoothStatus as useSmoothStatus, internal_withSmoothContextProvider as withSmoothContextProvider };
|
3034
3024
|
}
|
3035
3025
|
|
3036
|
-
export { index$7 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveFeedbackNegativeProps, type ActionBarPrimitiveFeedbackPositiveProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, type ActionBarPrimitiveSpeakProps, type ActionBarPrimitiveStopSpeakingProps, type AddToolResultOptions, AppendMessage, _default$
|
3026
|
+
export { index$7 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveFeedbackNegativeProps, type ActionBarPrimitiveFeedbackPositiveProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, type ActionBarPrimitiveSpeakProps, type ActionBarPrimitiveStopSpeakingProps, type AddToolResultOptions, AppendMessage, _default$a as AssistantActionBar, type AssistantContextValue, _default$9 as AssistantMessage, type AssistantMessageConfig, type AssistantMessageContentProps, _default$8 as AssistantModal, index$6 as AssistantModalPrimitive, type AssistantModalPrimitiveContentProps, type AssistantModalPrimitiveRootProps, type AssistantModalPrimitiveTriggerProps, type AssistantRuntime, AssistantRuntimeProvider, type AssistantTool, type AssistantToolProps, type AssistantToolUI, type AssistantToolUIProps, type AssistantToolUIsState, Attachment$1 as Attachment, type AttachmentAdapter, index$5 as AttachmentPrimitive, _default$5 as AttachmentUI, _default$7 as BranchPicker, index$4 as BranchPickerPrimitive, type BranchPickerPrimitiveCountProps, type BranchPickerPrimitiveNextProps, type BranchPickerPrimitiveNumberProps, type BranchPickerPrimitivePreviousProps, type BranchPickerPrimitiveRootProps, type ChatModelAdapter, type ChatModelRunOptions, type ChatModelRunResult, type ChatModelRunUpdate, CompleteAttachment, _default$6 as Composer, _default$5 as ComposerAttachment, type ComposerContextValue, type ComposerInputProps, index$3 as ComposerPrimitive, type ComposerPrimitiveCancelProps, type ComposerPrimitiveIfProps, type ComposerPrimitiveInputProps, type ComposerPrimitiveRootProps, type ComposerPrimitiveSendProps, type ComposerRuntime, type ComposerState, CompositeAttachmentAdapter, exports as ContentPart, type ContentPartContextValue, index$2 as ContentPartPrimitive, type ContentPartPrimitiveDisplayProps, type ContentPartPrimitiveImageProps, type ContentPartPrimitiveInProgressProps, type ContentPartPrimitiveTextProps, type ContentPartRuntime, CoreMessage, type DangerousInBrowserRuntimeOptions, EdgeChatAdapter, type EdgeRuntimeOptions, _default$4 as EditComposer, type EditComposerRuntime, type EditComposerState, type EmptyContentPartComponent, type EmptyContentPartProps, type ExternalStoreAdapter, type ExternalStoreMessageConverter, 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 MessageRuntime, type MessageState, MessageStatus, type MessageUtilsState, ModelConfig, ModelConfigProvider, PendingAttachment, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, SpeechSynthesisAdapter, StreamUtils, type StringsConfig, type SubmitFeedbackOptions, type SuggestionConfig, TextContentPart, type TextContentPartComponent, type TextContentPartProps, TextContentPartProvider, _default$3 as Thread, ThreadAssistantContentPart, type ThreadComposerRuntime, type ThreadComposerState, type ThreadConfig, ThreadConfigProvider, type ThreadConfigProviderProps, type ThreadContextValue, ThreadMessage, type ThreadMessageLike, index as ThreadPrimitive, type ThreadPrimitiveEmptyProps, type ThreadPrimitiveIfProps, type ThreadPrimitiveMessagesProps, type ThreadPrimitiveRootProps, type ThreadPrimitiveScrollToBottomProps, type ThreadPrimitiveSuggestionProps, type ThreadPrimitiveViewportProps, type ThreadRootProps, type ThreadRuntime, type ThreadState, type ThreadSuggestion, ThreadUserContentPart, 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, _default$5 as UserMessageAttachment, type UserMessageConfig, type UserMessageContentProps, WebSpeechSynthesisAdapter, fromCoreMessage, fromCoreMessages, fromLanguageModelMessages, fromLanguageModelTools, getExternalStoreMessage, makeAssistantTool, makeAssistantToolUI, streamUtils, subscribeToMainThread, toCoreMessage, toCoreMessages, toLanguageModelMessages, toLanguageModelTools, useActionBarCopy, useActionBarEdit, useActionBarFeedbackNegative, useActionBarFeedbackPositive, useActionBarReload, useActionBarSpeak, useActionBarStopSpeaking, useAppendMessage, useAssistantActions, useAssistantActionsStore, useAssistantContext, useAssistantInstructions, useAssistantRuntime, useAssistantRuntimeStore, useAssistantTool, useAssistantToolUI, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposer, useComposerAddAttachment, useComposerCancel, useComposerContext, useComposerIf, useComposerRuntime, useComposerSend, useComposerStore, useContentPart, useContentPartContext, useContentPartDisplay, useContentPartImage, useContentPartRuntime, useContentPartStore, useContentPartText, useDangerousInBrowserRuntime, useEdgeRuntime, useEditComposer, useEditComposerStore, useExternalMessageConverter, useExternalStoreRuntime, useLocalRuntime, useMessage, useMessageContext, useMessageIf, useMessageRuntime, useMessageStore, useMessageUtils, useMessageUtilsStore, useSwitchToNewThread, useThread, useThreadActions, useThreadActionsStore, useThreadComposer, useThreadComposerStore, useThreadConfig, useThreadContext, useThreadEmpty, useThreadIf, useThreadMessages, useThreadMessagesStore, useThreadRuntime, useThreadRuntimeStore, useThreadScrollToBottom, useThreadStore, useThreadSuggestion, useThreadViewport, useThreadViewportStore, useToolUIs, useToolUIsStore };
|