assistant-chat-scroll
Advanced tools
Comparing version 0.0.1-alpha.6 to 0.0.1-alpha.7
import React from 'react'; | ||
import { AssistantChatScrollProps } from './AssistantChatScrollProps'; | ||
import { ScrollToIndex } from './types'; | ||
export type AssistantChatScrollRef = { | ||
getAnchorIndex: () => number; | ||
saveScrollPosition: () => void; | ||
scrollToIndex: ScrollToIndex; | ||
restoreScrollPosition: () => void; | ||
loadHistory: () => Promise<void>; | ||
}; | ||
export declare const AssistantChatScroll: React.FC<AssistantChatScrollProps>; |
@@ -1,8 +0,16 @@ | ||
import React from 'react'; | ||
import { PrependScrollTargetIndex, AssistantChatLoadHistoryWorker, GetScrollButton, PrependScrollRestorationStrategy, AppendScrollTargetIndex, ScrollAlignment } from './types'; | ||
import React, { Ref } from 'react'; | ||
import { PrependScrollTargetIndex, AssistantChatLoadHistoryWorker, GetScrollButton, PrependScrollRestorationStrategy, AppendScrollTargetIndex, ScrollAlignment, ScrollToIndex } from './types'; | ||
export declare const defaultPrependScrollTargetIndex: PrependScrollTargetIndex; | ||
export declare const defaultAppendScrollTargetIndex: AppendScrollTargetIndex; | ||
export type AssistantChatScrollRef = { | ||
getAnchorIndex: () => number; | ||
saveScrollPosition: () => void; | ||
scrollToIndex: ScrollToIndex; | ||
restoreScrollPosition: () => void; | ||
loadHistory: () => Promise<void>; | ||
}; | ||
export type AssistantChatScrollProps = { | ||
style?: React.CSSProperties; | ||
children?: React.ReactNode; | ||
ref?: Ref<AssistantChatScrollRef>; | ||
itemClassName?: string; | ||
@@ -28,3 +36,4 @@ } & AssistantChatScrollSettings; | ||
children?: React.ReactNode; | ||
ref?: React.Ref<AssistantChatScrollRef> | undefined; | ||
itemClassName?: string | undefined; | ||
} & AssistantChatScrollSettings & Required<AssistantChatScrollSettings>; |
{ | ||
"name": "assistant-chat-scroll", | ||
"version": "0.0.1-alpha.6", | ||
"version": "0.0.1-alpha.7", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
700793
20474