@assistant-ui/react 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.mts CHANGED
@@ -30,7 +30,9 @@ declare const ThreadViewport: react.ForwardRefExoticComponent<Pick<Omit<react.De
30
30
  ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
31
31
  } & {
32
32
  asChild?: boolean;
33
- }, "key" | keyof react.HTMLAttributes<HTMLDivElement> | "asChild"> & react.RefAttributes<HTMLDivElement>>;
33
+ }, "key" | keyof react.HTMLAttributes<HTMLDivElement> | "asChild"> & {
34
+ autoScroll?: boolean;
35
+ } & react.RefAttributes<HTMLDivElement>>;
34
36
 
35
37
  type ThreadMessagesProps = {
36
38
  components: {
@@ -47,8 +49,14 @@ type ThreadMessagesProps = {
47
49
  };
48
50
  declare const ThreadMessages: FC<ThreadMessagesProps>;
49
51
 
52
+ declare const ThreadScrollToBottom: react.ForwardRefExoticComponent<Pick<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
53
+ ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
54
+ } & {
55
+ asChild?: boolean;
56
+ }, "key" | "asChild" | keyof react.ButtonHTMLAttributes<HTMLButtonElement>> & react.RefAttributes<HTMLButtonElement>>;
57
+
50
58
  declare namespace index$4 {
51
- export { ThreadEmpty as Empty, ThreadIf as If, ThreadMessages as Messages, ThreadRoot as Root, ThreadViewport as Viewport };
59
+ export { ThreadEmpty as Empty, ThreadIf as If, ThreadMessages as Messages, ThreadRoot as Root, ThreadScrollToBottom as ScrollToBottom, ThreadViewport as Viewport };
52
60
  }
53
61
 
54
62
  declare const ComposerRoot: react.ForwardRefExoticComponent<Pick<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
@@ -278,6 +286,7 @@ type MessageState = {
278
286
  type MessageStore = ComposerStore & {
279
287
  useMessage: UseBoundStore<StoreApi<MessageState>>;
280
288
  };
289
+
281
290
  declare const useMessageContext: () => MessageStore;
282
291
 
283
292
  declare const useCopyMessage: ({ copiedDuration }: {
package/dist/index.d.ts CHANGED
@@ -30,7 +30,9 @@ declare const ThreadViewport: react.ForwardRefExoticComponent<Pick<Omit<react.De
30
30
  ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
31
31
  } & {
32
32
  asChild?: boolean;
33
- }, "key" | keyof react.HTMLAttributes<HTMLDivElement> | "asChild"> & react.RefAttributes<HTMLDivElement>>;
33
+ }, "key" | keyof react.HTMLAttributes<HTMLDivElement> | "asChild"> & {
34
+ autoScroll?: boolean;
35
+ } & react.RefAttributes<HTMLDivElement>>;
34
36
 
35
37
  type ThreadMessagesProps = {
36
38
  components: {
@@ -47,8 +49,14 @@ type ThreadMessagesProps = {
47
49
  };
48
50
  declare const ThreadMessages: FC<ThreadMessagesProps>;
49
51
 
52
+ declare const ThreadScrollToBottom: react.ForwardRefExoticComponent<Pick<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
53
+ ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
54
+ } & {
55
+ asChild?: boolean;
56
+ }, "key" | "asChild" | keyof react.ButtonHTMLAttributes<HTMLButtonElement>> & react.RefAttributes<HTMLButtonElement>>;
57
+
50
58
  declare namespace index$4 {
51
- export { ThreadEmpty as Empty, ThreadIf as If, ThreadMessages as Messages, ThreadRoot as Root, ThreadViewport as Viewport };
59
+ export { ThreadEmpty as Empty, ThreadIf as If, ThreadMessages as Messages, ThreadRoot as Root, ThreadScrollToBottom as ScrollToBottom, ThreadViewport as Viewport };
52
60
  }
53
61
 
54
62
  declare const ComposerRoot: react.ForwardRefExoticComponent<Pick<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
@@ -278,6 +286,7 @@ type MessageState = {
278
286
  type MessageStore = ComposerStore & {
279
287
  useMessage: UseBoundStore<StoreApi<MessageState>>;
280
288
  };
289
+
281
290
  declare const useMessageContext: () => MessageStore;
282
291
 
283
292
  declare const useCopyMessage: ({ copiedDuration }: {