sceyt-chat-react-uikit 1.8.7-beta.8 → 1.8.7
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/components/Messages/MessageList/useChatController.d.ts +3 -1
- package/index.js +12139 -11696
- package/index.modern.js +12140 -11697
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IChannel, IMessage } from '../../../types';
|
|
3
|
+
import { VisibleMessagesMap } from '../../../store/message/reducers';
|
|
3
4
|
export declare const PRELOAD_TRIGGER_PX = 5;
|
|
4
5
|
export declare const LATEST_EDGE_GAP_PX = 0;
|
|
5
6
|
declare type TimelineItem = {
|
|
@@ -41,12 +42,13 @@ export interface UseChatControllerParams {
|
|
|
41
42
|
showScrollToNewMessageButton: boolean;
|
|
42
43
|
unreadScrollTo: boolean | string;
|
|
43
44
|
unreadMessageId: string;
|
|
45
|
+
visibleMessagesMap: VisibleMessagesMap;
|
|
44
46
|
selectedMessagesMap: Map<string, any>;
|
|
45
47
|
allowEditDeleteIncomingMessage: boolean;
|
|
46
48
|
dispatch: (...args: any[]) => void;
|
|
47
49
|
tabIsActive?: boolean;
|
|
48
50
|
}
|
|
49
|
-
export declare function useChatController({ messages, channel, hasPrevMessages, hasNextMessages, loadingPrevMessages, loadingNextMessages, connectionStatus, scrollToNewMessage, scrollToMentionedMessage, showScrollToNewMessageButton, unreadScrollTo, unreadMessageId, selectedMessagesMap, allowEditDeleteIncomingMessage, tabIsActive, dispatch }: UseChatControllerParams): {
|
|
51
|
+
export declare function useChatController({ messages, channel, hasPrevMessages, hasNextMessages, loadingPrevMessages, loadingNextMessages, connectionStatus, scrollToNewMessage, scrollToMentionedMessage, showScrollToNewMessageButton, unreadScrollTo, unreadMessageId, visibleMessagesMap, selectedMessagesMap, allowEditDeleteIncomingMessage, tabIsActive, dispatch }: UseChatControllerParams): {
|
|
50
52
|
scrollRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
51
53
|
setLastVisibleMessageId: (message: IMessage) => void;
|
|
52
54
|
handleScrollToRepliedMessage: (itemId: string, smooth?: boolean) => Promise<void>;
|