@assistant-ui/react 0.5.77 → 0.5.79
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +37 -23
- package/dist/index.d.ts +37 -23
- package/dist/index.js +259 -258
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +169 -168
- package/dist/index.mjs.map +1 -1
- package/dist/styles/index.css +3 -1
- package/dist/styles/index.css.map +1 -1
- package/dist/styles/tailwindcss/base-components.css +5 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -142,6 +142,7 @@ type ThreadRuntimeCore = Readonly<{
|
|
142
142
|
subscribe: (callback: () => void) => Unsubscribe;
|
143
143
|
import(repository: ExportedMessageRepository): void;
|
144
144
|
export(): ExportedMessageRepository;
|
145
|
+
unstable_on(event: "switched-to" | "run-start", callback: () => void): Unsubscribe;
|
145
146
|
}>;
|
146
147
|
|
147
148
|
type AssistantRuntimeCore = {
|
@@ -358,7 +359,8 @@ declare abstract class BaseThreadRuntimeCore implements ThreadRuntimeCore {
|
|
358
359
|
beginEdit(messageId: string): void;
|
359
360
|
getBranches(messageId: string): string[];
|
360
361
|
switchToBranch(branchId: string): void;
|
361
|
-
protected
|
362
|
+
protected _notifySubscribers(): void;
|
363
|
+
_notifyEventSubscribers(event: "switched-to" | "run-start"): void;
|
362
364
|
subscribe(callback: () => void): Unsubscribe;
|
363
365
|
private _submittedFeedback;
|
364
366
|
getSubmittedFeedback(messageId: string): Readonly<{
|
@@ -371,6 +373,8 @@ declare abstract class BaseThreadRuntimeCore implements ThreadRuntimeCore {
|
|
371
373
|
stopSpeaking(): void;
|
372
374
|
export(): ExportedMessageRepository;
|
373
375
|
import(data: ExportedMessageRepository): void;
|
376
|
+
private _eventSubscribers;
|
377
|
+
unstable_on(event: "switched-to" | "run-start", callback: () => void): () => void;
|
374
378
|
}
|
375
379
|
|
376
380
|
declare class LocalThreadRuntimeCore extends BaseThreadRuntimeCore implements ThreadRuntimeCore {
|
@@ -619,10 +623,6 @@ type LegacyThreadComposerState = Readonly<{
|
|
619
623
|
send: () => void;
|
620
624
|
/** @deprecated Use `useComposerRuntime().cancel` instead. This will be removed in 0.6.0. */
|
621
625
|
cancel: () => void;
|
622
|
-
/** @deprecated This feature is being removed in 0.6.0. Submit feedback if you need it. */
|
623
|
-
focus: () => void;
|
624
|
-
/** @deprecated This feature is being removed in 0.6.0. Submit feedback if you need it. */
|
625
|
-
onFocus: (listener: () => void) => Unsubscribe;
|
626
626
|
}>;
|
627
627
|
type BaseComposerState = {
|
628
628
|
text: string;
|
@@ -720,10 +720,6 @@ type ThreadComposerRuntime = Omit<ComposerRuntime, "getState" | "getAttachmentBy
|
|
720
720
|
* @deprecated Use `getState().attachments` instead. This will be removed in 0.6.0.
|
721
721
|
*/
|
722
722
|
attachments: readonly PendingAttachment[];
|
723
|
-
/** @deprecated This feature is being removed in 0.6.0. Submit feedback if you need it. */
|
724
|
-
focus(): void;
|
725
|
-
/** @deprecated This feature is being removed in 0.6.0. Submit feedback if you need it. */
|
726
|
-
onFocus(callback: () => void): Unsubscribe;
|
727
723
|
getAttachmentByIndex(idx: number): AttachmentRuntime & {
|
728
724
|
source: "thread-composer";
|
729
725
|
};
|
@@ -734,15 +730,6 @@ declare class ThreadComposerRuntimeImpl extends ComposerRuntimeImpl implements T
|
|
734
730
|
constructor(core: ThreadComposerRuntimeCoreBinding);
|
735
731
|
get attachments(): readonly Attachment$1[] & readonly PendingAttachment[];
|
736
732
|
getState(): ThreadComposerState;
|
737
|
-
private _focusListeners;
|
738
|
-
/**
|
739
|
-
* @deprecated This feature is being removed in 0.6.0. Submit feedback if you need it.
|
740
|
-
*/
|
741
|
-
focus(): void;
|
742
|
-
/**
|
743
|
-
* @deprecated This feature is being removed in 0.6.0. Submit feedback if you need it.
|
744
|
-
*/
|
745
|
-
onFocus(callback: () => void): () => boolean;
|
746
733
|
getAttachmentByIndex(idx: number): ThreadComposerAttachmentRuntimeImpl;
|
747
734
|
}
|
748
735
|
type EditComposerRuntime = Omit<ComposerRuntime, "getState" | "getAttachmentByIndex"> & {
|
@@ -919,7 +906,9 @@ type CreateAppendMessage = string | {
|
|
919
906
|
content: AppendMessage["content"];
|
920
907
|
attachments?: AppendMessage["attachments"] | undefined;
|
921
908
|
};
|
922
|
-
type ThreadRuntimeCoreBinding = SubscribableWithState<ThreadRuntimeCore
|
909
|
+
type ThreadRuntimeCoreBinding = SubscribableWithState<ThreadRuntimeCore> & {
|
910
|
+
outerSubscribe(callback: () => void): Unsubscribe;
|
911
|
+
};
|
923
912
|
type ThreadState = Readonly<{
|
924
913
|
threadId: string;
|
925
914
|
isDisabled: boolean;
|
@@ -946,6 +935,7 @@ type ThreadRuntime = {
|
|
946
935
|
import(repository: ExportedMessageRepository): void;
|
947
936
|
getMesssageByIndex(idx: number): MessageRuntime;
|
948
937
|
stopSpeaking: () => void;
|
938
|
+
unstable_on(event: "switched-to" | "run-start", callback: () => void): Unsubscribe;
|
949
939
|
/**
|
950
940
|
* @deprecated Use `getState().capabilities` instead. This will be removed in 0.6.0.
|
951
941
|
*/
|
@@ -1003,11 +993,11 @@ type ThreadRuntime = {
|
|
1003
993
|
*/
|
1004
994
|
submitFeedback: (feedback: SubmitFeedbackOptions) => void;
|
1005
995
|
/**
|
1006
|
-
* @deprecated Use `getMesssageById(id).
|
996
|
+
* @deprecated Use `getMesssageById(id).composer` instead. This will be removed in 0.6.0.
|
1007
997
|
*/
|
1008
998
|
getEditComposer: (messageId: string) => ComposerRuntimeCore | undefined;
|
1009
999
|
/**
|
1010
|
-
* @deprecated Use `getMesssageById(id).
|
1000
|
+
* @deprecated Use `getMesssageById(id).composer.beginEdit()` instead. This will be removed in 0.6.0.
|
1011
1001
|
*/
|
1012
1002
|
beginEdit: (messageId: string) => void;
|
1013
1003
|
};
|
@@ -1081,6 +1071,7 @@ declare class ThreadRuntimeImpl implements ThreadRuntimeCore, ThreadRuntime {
|
|
1081
1071
|
subscribe: (callback: () => void) => Unsubscribe;
|
1082
1072
|
import(repository: ExportedMessageRepository): void;
|
1083
1073
|
export(): ExportedMessageRepository;
|
1074
|
+
unstable_on(event: "switched-to" | "run-start", callback: () => void): Unsubscribe;
|
1084
1075
|
}>;
|
1085
1076
|
private _threadBinding;
|
1086
1077
|
constructor(threadBinding: ThreadRuntimeCoreBinding);
|
@@ -1149,6 +1140,8 @@ declare class ThreadRuntimeImpl implements ThreadRuntimeCore, ThreadRuntime {
|
|
1149
1140
|
export(): ExportedMessageRepository;
|
1150
1141
|
import(data: ExportedMessageRepository): void;
|
1151
1142
|
getMesssageByIndex(idx: number): MessageRuntimeImpl;
|
1143
|
+
private _eventListenerNestedSubscriptions;
|
1144
|
+
unstable_on(event: "switched-to" | "run-start", callback: () => void): Unsubscribe;
|
1152
1145
|
}
|
1153
1146
|
|
1154
1147
|
type ContentPartState = (ThreadUserContentPart | ThreadAssistantContentPart) & {
|
@@ -2038,9 +2031,11 @@ declare namespace index$7 {
|
|
2038
2031
|
/**
|
2039
2032
|
* @deprecated Use `AssistantModalPrimitive.Root.Props` instead. This will be removed in 0.6.
|
2040
2033
|
*/
|
2041
|
-
type AssistantModalPrimitiveRootProps =
|
2034
|
+
type AssistantModalPrimitiveRootProps = AssistantModalPrimitiveRoot.Props;
|
2042
2035
|
declare namespace AssistantModalPrimitiveRoot {
|
2043
|
-
type Props = PopoverPrimitive.PopoverProps
|
2036
|
+
type Props = PopoverPrimitive.PopoverProps & {
|
2037
|
+
unstable_openOnRunStart?: boolean | undefined;
|
2038
|
+
};
|
2044
2039
|
}
|
2045
2040
|
declare const AssistantModalPrimitiveRoot: FC<AssistantModalPrimitiveRoot.Props>;
|
2046
2041
|
|
@@ -2210,12 +2205,18 @@ declare namespace ComposerPrimitiveInput {
|
|
2210
2205
|
asChild?: boolean | undefined;
|
2211
2206
|
submitOnEnter?: boolean | undefined;
|
2212
2207
|
cancelOnEscape?: boolean | undefined;
|
2208
|
+
unstable_focusOnRunStart?: boolean | undefined;
|
2209
|
+
unstable_focusOnScrollToBottom?: boolean | undefined;
|
2210
|
+
unstable_focusOnThreadSwitched?: boolean | undefined;
|
2213
2211
|
};
|
2214
2212
|
}
|
2215
2213
|
declare const ComposerPrimitiveInput: react.ForwardRefExoticComponent<TextareaAutosizeProps & {
|
2216
2214
|
asChild?: boolean | undefined;
|
2217
2215
|
submitOnEnter?: boolean | undefined;
|
2218
2216
|
cancelOnEscape?: boolean | undefined;
|
2217
|
+
unstable_focusOnRunStart?: boolean | undefined;
|
2218
|
+
unstable_focusOnScrollToBottom?: boolean | undefined;
|
2219
|
+
unstable_focusOnThreadSwitched?: boolean | undefined;
|
2219
2220
|
} & react.RefAttributes<HTMLTextAreaElement>>;
|
2220
2221
|
|
2221
2222
|
/**
|
@@ -2440,6 +2441,7 @@ declare const ThreadPrimitiveIf: FC<ThreadPrimitiveIf.Props>;
|
|
2440
2441
|
|
2441
2442
|
type UseThreadViewportAutoScrollProps = {
|
2442
2443
|
autoScroll?: boolean | undefined;
|
2444
|
+
unstable_scrollToBottomOnRunStart?: boolean | undefined;
|
2443
2445
|
};
|
2444
2446
|
|
2445
2447
|
/**
|
@@ -2757,6 +2759,9 @@ declare const ComposerInputStyled: react.ForwardRefExoticComponent<Partial<Omit<
|
|
2757
2759
|
asChild?: boolean | undefined;
|
2758
2760
|
submitOnEnter?: boolean | undefined;
|
2759
2761
|
cancelOnEscape?: boolean | undefined;
|
2762
|
+
unstable_focusOnRunStart?: boolean | undefined;
|
2763
|
+
unstable_focusOnScrollToBottom?: boolean | undefined;
|
2764
|
+
unstable_focusOnThreadSwitched?: boolean | undefined;
|
2760
2765
|
} & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>>;
|
2761
2766
|
/**
|
2762
2767
|
* @deprecated Use `ComposerInput.Props` instead. This will be removed in 0.6.
|
@@ -2770,6 +2775,9 @@ declare const ComposerInput: react.ForwardRefExoticComponent<Omit<Partial<Omit<r
|
|
2770
2775
|
asChild?: boolean | undefined;
|
2771
2776
|
submitOnEnter?: boolean | undefined;
|
2772
2777
|
cancelOnEscape?: boolean | undefined;
|
2778
|
+
unstable_focusOnRunStart?: boolean | undefined;
|
2779
|
+
unstable_focusOnScrollToBottom?: boolean | undefined;
|
2780
|
+
unstable_focusOnThreadSwitched?: boolean | undefined;
|
2773
2781
|
} & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
|
2774
2782
|
declare const exports$7: {
|
2775
2783
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
|
@@ -2781,6 +2789,9 @@ declare const exports$7: {
|
|
2781
2789
|
asChild?: boolean | undefined;
|
2782
2790
|
submitOnEnter?: boolean | undefined;
|
2783
2791
|
cancelOnEscape?: boolean | undefined;
|
2792
|
+
unstable_focusOnRunStart?: boolean | undefined;
|
2793
|
+
unstable_focusOnScrollToBottom?: boolean | undefined;
|
2794
|
+
unstable_focusOnThreadSwitched?: boolean | undefined;
|
2784
2795
|
} & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
|
2785
2796
|
Action: FC;
|
2786
2797
|
Send: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
@@ -2812,6 +2823,9 @@ declare const exports$5: {
|
|
2812
2823
|
asChild?: boolean | undefined;
|
2813
2824
|
submitOnEnter?: boolean | undefined;
|
2814
2825
|
cancelOnEscape?: boolean | undefined;
|
2826
|
+
unstable_focusOnRunStart?: boolean | undefined;
|
2827
|
+
unstable_focusOnScrollToBottom?: boolean | undefined;
|
2828
|
+
unstable_focusOnThreadSwitched?: boolean | undefined;
|
2815
2829
|
} & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>>;
|
2816
2830
|
Footer: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
2817
2831
|
Cancel: react.ForwardRefExoticComponent<Partial<ButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
package/dist/index.d.ts
CHANGED
@@ -142,6 +142,7 @@ type ThreadRuntimeCore = Readonly<{
|
|
142
142
|
subscribe: (callback: () => void) => Unsubscribe;
|
143
143
|
import(repository: ExportedMessageRepository): void;
|
144
144
|
export(): ExportedMessageRepository;
|
145
|
+
unstable_on(event: "switched-to" | "run-start", callback: () => void): Unsubscribe;
|
145
146
|
}>;
|
146
147
|
|
147
148
|
type AssistantRuntimeCore = {
|
@@ -358,7 +359,8 @@ declare abstract class BaseThreadRuntimeCore implements ThreadRuntimeCore {
|
|
358
359
|
beginEdit(messageId: string): void;
|
359
360
|
getBranches(messageId: string): string[];
|
360
361
|
switchToBranch(branchId: string): void;
|
361
|
-
protected
|
362
|
+
protected _notifySubscribers(): void;
|
363
|
+
_notifyEventSubscribers(event: "switched-to" | "run-start"): void;
|
362
364
|
subscribe(callback: () => void): Unsubscribe;
|
363
365
|
private _submittedFeedback;
|
364
366
|
getSubmittedFeedback(messageId: string): Readonly<{
|
@@ -371,6 +373,8 @@ declare abstract class BaseThreadRuntimeCore implements ThreadRuntimeCore {
|
|
371
373
|
stopSpeaking(): void;
|
372
374
|
export(): ExportedMessageRepository;
|
373
375
|
import(data: ExportedMessageRepository): void;
|
376
|
+
private _eventSubscribers;
|
377
|
+
unstable_on(event: "switched-to" | "run-start", callback: () => void): () => void;
|
374
378
|
}
|
375
379
|
|
376
380
|
declare class LocalThreadRuntimeCore extends BaseThreadRuntimeCore implements ThreadRuntimeCore {
|
@@ -619,10 +623,6 @@ type LegacyThreadComposerState = Readonly<{
|
|
619
623
|
send: () => void;
|
620
624
|
/** @deprecated Use `useComposerRuntime().cancel` instead. This will be removed in 0.6.0. */
|
621
625
|
cancel: () => void;
|
622
|
-
/** @deprecated This feature is being removed in 0.6.0. Submit feedback if you need it. */
|
623
|
-
focus: () => void;
|
624
|
-
/** @deprecated This feature is being removed in 0.6.0. Submit feedback if you need it. */
|
625
|
-
onFocus: (listener: () => void) => Unsubscribe;
|
626
626
|
}>;
|
627
627
|
type BaseComposerState = {
|
628
628
|
text: string;
|
@@ -720,10 +720,6 @@ type ThreadComposerRuntime = Omit<ComposerRuntime, "getState" | "getAttachmentBy
|
|
720
720
|
* @deprecated Use `getState().attachments` instead. This will be removed in 0.6.0.
|
721
721
|
*/
|
722
722
|
attachments: readonly PendingAttachment[];
|
723
|
-
/** @deprecated This feature is being removed in 0.6.0. Submit feedback if you need it. */
|
724
|
-
focus(): void;
|
725
|
-
/** @deprecated This feature is being removed in 0.6.0. Submit feedback if you need it. */
|
726
|
-
onFocus(callback: () => void): Unsubscribe;
|
727
723
|
getAttachmentByIndex(idx: number): AttachmentRuntime & {
|
728
724
|
source: "thread-composer";
|
729
725
|
};
|
@@ -734,15 +730,6 @@ declare class ThreadComposerRuntimeImpl extends ComposerRuntimeImpl implements T
|
|
734
730
|
constructor(core: ThreadComposerRuntimeCoreBinding);
|
735
731
|
get attachments(): readonly Attachment$1[] & readonly PendingAttachment[];
|
736
732
|
getState(): ThreadComposerState;
|
737
|
-
private _focusListeners;
|
738
|
-
/**
|
739
|
-
* @deprecated This feature is being removed in 0.6.0. Submit feedback if you need it.
|
740
|
-
*/
|
741
|
-
focus(): void;
|
742
|
-
/**
|
743
|
-
* @deprecated This feature is being removed in 0.6.0. Submit feedback if you need it.
|
744
|
-
*/
|
745
|
-
onFocus(callback: () => void): () => boolean;
|
746
733
|
getAttachmentByIndex(idx: number): ThreadComposerAttachmentRuntimeImpl;
|
747
734
|
}
|
748
735
|
type EditComposerRuntime = Omit<ComposerRuntime, "getState" | "getAttachmentByIndex"> & {
|
@@ -919,7 +906,9 @@ type CreateAppendMessage = string | {
|
|
919
906
|
content: AppendMessage["content"];
|
920
907
|
attachments?: AppendMessage["attachments"] | undefined;
|
921
908
|
};
|
922
|
-
type ThreadRuntimeCoreBinding = SubscribableWithState<ThreadRuntimeCore
|
909
|
+
type ThreadRuntimeCoreBinding = SubscribableWithState<ThreadRuntimeCore> & {
|
910
|
+
outerSubscribe(callback: () => void): Unsubscribe;
|
911
|
+
};
|
923
912
|
type ThreadState = Readonly<{
|
924
913
|
threadId: string;
|
925
914
|
isDisabled: boolean;
|
@@ -946,6 +935,7 @@ type ThreadRuntime = {
|
|
946
935
|
import(repository: ExportedMessageRepository): void;
|
947
936
|
getMesssageByIndex(idx: number): MessageRuntime;
|
948
937
|
stopSpeaking: () => void;
|
938
|
+
unstable_on(event: "switched-to" | "run-start", callback: () => void): Unsubscribe;
|
949
939
|
/**
|
950
940
|
* @deprecated Use `getState().capabilities` instead. This will be removed in 0.6.0.
|
951
941
|
*/
|
@@ -1003,11 +993,11 @@ type ThreadRuntime = {
|
|
1003
993
|
*/
|
1004
994
|
submitFeedback: (feedback: SubmitFeedbackOptions) => void;
|
1005
995
|
/**
|
1006
|
-
* @deprecated Use `getMesssageById(id).
|
996
|
+
* @deprecated Use `getMesssageById(id).composer` instead. This will be removed in 0.6.0.
|
1007
997
|
*/
|
1008
998
|
getEditComposer: (messageId: string) => ComposerRuntimeCore | undefined;
|
1009
999
|
/**
|
1010
|
-
* @deprecated Use `getMesssageById(id).
|
1000
|
+
* @deprecated Use `getMesssageById(id).composer.beginEdit()` instead. This will be removed in 0.6.0.
|
1011
1001
|
*/
|
1012
1002
|
beginEdit: (messageId: string) => void;
|
1013
1003
|
};
|
@@ -1081,6 +1071,7 @@ declare class ThreadRuntimeImpl implements ThreadRuntimeCore, ThreadRuntime {
|
|
1081
1071
|
subscribe: (callback: () => void) => Unsubscribe;
|
1082
1072
|
import(repository: ExportedMessageRepository): void;
|
1083
1073
|
export(): ExportedMessageRepository;
|
1074
|
+
unstable_on(event: "switched-to" | "run-start", callback: () => void): Unsubscribe;
|
1084
1075
|
}>;
|
1085
1076
|
private _threadBinding;
|
1086
1077
|
constructor(threadBinding: ThreadRuntimeCoreBinding);
|
@@ -1149,6 +1140,8 @@ declare class ThreadRuntimeImpl implements ThreadRuntimeCore, ThreadRuntime {
|
|
1149
1140
|
export(): ExportedMessageRepository;
|
1150
1141
|
import(data: ExportedMessageRepository): void;
|
1151
1142
|
getMesssageByIndex(idx: number): MessageRuntimeImpl;
|
1143
|
+
private _eventListenerNestedSubscriptions;
|
1144
|
+
unstable_on(event: "switched-to" | "run-start", callback: () => void): Unsubscribe;
|
1152
1145
|
}
|
1153
1146
|
|
1154
1147
|
type ContentPartState = (ThreadUserContentPart | ThreadAssistantContentPart) & {
|
@@ -2038,9 +2031,11 @@ declare namespace index$7 {
|
|
2038
2031
|
/**
|
2039
2032
|
* @deprecated Use `AssistantModalPrimitive.Root.Props` instead. This will be removed in 0.6.
|
2040
2033
|
*/
|
2041
|
-
type AssistantModalPrimitiveRootProps =
|
2034
|
+
type AssistantModalPrimitiveRootProps = AssistantModalPrimitiveRoot.Props;
|
2042
2035
|
declare namespace AssistantModalPrimitiveRoot {
|
2043
|
-
type Props = PopoverPrimitive.PopoverProps
|
2036
|
+
type Props = PopoverPrimitive.PopoverProps & {
|
2037
|
+
unstable_openOnRunStart?: boolean | undefined;
|
2038
|
+
};
|
2044
2039
|
}
|
2045
2040
|
declare const AssistantModalPrimitiveRoot: FC<AssistantModalPrimitiveRoot.Props>;
|
2046
2041
|
|
@@ -2210,12 +2205,18 @@ declare namespace ComposerPrimitiveInput {
|
|
2210
2205
|
asChild?: boolean | undefined;
|
2211
2206
|
submitOnEnter?: boolean | undefined;
|
2212
2207
|
cancelOnEscape?: boolean | undefined;
|
2208
|
+
unstable_focusOnRunStart?: boolean | undefined;
|
2209
|
+
unstable_focusOnScrollToBottom?: boolean | undefined;
|
2210
|
+
unstable_focusOnThreadSwitched?: boolean | undefined;
|
2213
2211
|
};
|
2214
2212
|
}
|
2215
2213
|
declare const ComposerPrimitiveInput: react.ForwardRefExoticComponent<TextareaAutosizeProps & {
|
2216
2214
|
asChild?: boolean | undefined;
|
2217
2215
|
submitOnEnter?: boolean | undefined;
|
2218
2216
|
cancelOnEscape?: boolean | undefined;
|
2217
|
+
unstable_focusOnRunStart?: boolean | undefined;
|
2218
|
+
unstable_focusOnScrollToBottom?: boolean | undefined;
|
2219
|
+
unstable_focusOnThreadSwitched?: boolean | undefined;
|
2219
2220
|
} & react.RefAttributes<HTMLTextAreaElement>>;
|
2220
2221
|
|
2221
2222
|
/**
|
@@ -2440,6 +2441,7 @@ declare const ThreadPrimitiveIf: FC<ThreadPrimitiveIf.Props>;
|
|
2440
2441
|
|
2441
2442
|
type UseThreadViewportAutoScrollProps = {
|
2442
2443
|
autoScroll?: boolean | undefined;
|
2444
|
+
unstable_scrollToBottomOnRunStart?: boolean | undefined;
|
2443
2445
|
};
|
2444
2446
|
|
2445
2447
|
/**
|
@@ -2757,6 +2759,9 @@ declare const ComposerInputStyled: react.ForwardRefExoticComponent<Partial<Omit<
|
|
2757
2759
|
asChild?: boolean | undefined;
|
2758
2760
|
submitOnEnter?: boolean | undefined;
|
2759
2761
|
cancelOnEscape?: boolean | undefined;
|
2762
|
+
unstable_focusOnRunStart?: boolean | undefined;
|
2763
|
+
unstable_focusOnScrollToBottom?: boolean | undefined;
|
2764
|
+
unstable_focusOnThreadSwitched?: boolean | undefined;
|
2760
2765
|
} & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>>;
|
2761
2766
|
/**
|
2762
2767
|
* @deprecated Use `ComposerInput.Props` instead. This will be removed in 0.6.
|
@@ -2770,6 +2775,9 @@ declare const ComposerInput: react.ForwardRefExoticComponent<Omit<Partial<Omit<r
|
|
2770
2775
|
asChild?: boolean | undefined;
|
2771
2776
|
submitOnEnter?: boolean | undefined;
|
2772
2777
|
cancelOnEscape?: boolean | undefined;
|
2778
|
+
unstable_focusOnRunStart?: boolean | undefined;
|
2779
|
+
unstable_focusOnScrollToBottom?: boolean | undefined;
|
2780
|
+
unstable_focusOnThreadSwitched?: boolean | undefined;
|
2773
2781
|
} & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
|
2774
2782
|
declare const exports$7: {
|
2775
2783
|
Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
|
@@ -2781,6 +2789,9 @@ declare const exports$7: {
|
|
2781
2789
|
asChild?: boolean | undefined;
|
2782
2790
|
submitOnEnter?: boolean | undefined;
|
2783
2791
|
cancelOnEscape?: boolean | undefined;
|
2792
|
+
unstable_focusOnRunStart?: boolean | undefined;
|
2793
|
+
unstable_focusOnScrollToBottom?: boolean | undefined;
|
2794
|
+
unstable_focusOnThreadSwitched?: boolean | undefined;
|
2784
2795
|
} & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
|
2785
2796
|
Action: FC;
|
2786
2797
|
Send: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
@@ -2812,6 +2823,9 @@ declare const exports$5: {
|
|
2812
2823
|
asChild?: boolean | undefined;
|
2813
2824
|
submitOnEnter?: boolean | undefined;
|
2814
2825
|
cancelOnEscape?: boolean | undefined;
|
2826
|
+
unstable_focusOnRunStart?: boolean | undefined;
|
2827
|
+
unstable_focusOnScrollToBottom?: boolean | undefined;
|
2828
|
+
unstable_focusOnThreadSwitched?: boolean | undefined;
|
2815
2829
|
} & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>>;
|
2816
2830
|
Footer: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
2817
2831
|
Cancel: react.ForwardRefExoticComponent<Partial<ButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|