sceyt-chat-react-uikit 1.8.5-beta.9 → 1.8.5
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/Message/Message.types.d.ts +1 -1
- package/components/Message/index.d.ts +1 -1
- package/components/Messages/MessageList/useChatController.d.ts +2 -1
- package/components/Messages/SystemMessage/index.d.ts +1 -5
- package/index.js +2266 -1977
- package/index.modern.js +2267 -1978
- package/package.json +1 -1
|
@@ -79,13 +79,13 @@ export interface IMessageProps {
|
|
|
79
79
|
setLastVisibleMessageId?: (message: IMessage) => void;
|
|
80
80
|
queueReadMarker?: (channelId: string, messageId?: string) => void;
|
|
81
81
|
queueDeliveredMarker?: (channelId: string, messageId?: string) => void;
|
|
82
|
+
disableAutoReadTracking?: boolean;
|
|
82
83
|
handleScrollToRepliedMessage: (msgId: string) => void;
|
|
83
84
|
handleMediaItemClick?: (attachment: IAttachment) => void;
|
|
84
85
|
unreadMessageId: string;
|
|
85
86
|
isUnreadMessage: boolean;
|
|
86
87
|
nextMessageStartsUnreadSection?: boolean;
|
|
87
88
|
isThreadMessage: boolean;
|
|
88
|
-
disableAutoReadTracking?: boolean;
|
|
89
89
|
fontFamily?: string;
|
|
90
90
|
ownMessageOnRightSide?: boolean;
|
|
91
91
|
messageWidthPercent?: string | number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IMessageProps } from './Message.types';
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({ message, channel, MessageActionsMenu, CustomMessageItem, handleScrollToRepliedMessage, handleMediaItemClick, stopScrolling, isPendingMessage, prevMessage, nextMessage, setLastVisibleMessageId, queueReadMarker, queueDeliveredMarker, isUnreadMessage, nextMessageStartsUnreadSection, unreadMessageId, isThreadMessage,
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ message, channel, MessageActionsMenu, CustomMessageItem, handleScrollToRepliedMessage, handleMediaItemClick, stopScrolling, isPendingMessage, prevMessage, nextMessage, setLastVisibleMessageId, queueReadMarker, queueDeliveredMarker, disableAutoReadTracking, isUnreadMessage, nextMessageStartsUnreadSection, unreadMessageId, isThreadMessage, fontFamily, ownMessageOnRightSide, messageWidthPercent, showSenderNameOnDirectChannel, showSenderNameOnGroupChannel, showSenderNameOnOwnMessages, messageStatusAndTimePosition, messageStatusDisplayingType, outgoingMessageStyles, incomingMessageStyles, ownRepliedMessageBackground, incomingRepliedMessageBackground, showOwnAvatar, showMessageStatus, showMessageTimeAndStatusOnlyOnHover, showMessageTime, showMessageStatusForEachMessage, showMessageTimeForEachMessage, hoverBackground, messageReaction, editMessage, copyMessage, replyMessage, replyMessageInThread, deleteMessage, selectMessage, showInfoMessage, allowEditDeleteIncomingMessage, forwardMessage, reportMessage, reactionIcon, editIcon, copyIcon, replyIcon, replyInThreadIcon, forwardIcon, deleteIcon, selectIcon, starIcon, staredIcon, reportIcon, retractVoteIcon, endVoteIcon, reactionIconOrder, openFrequentlyUsedReactions, editIconOrder, copyIconOrder, replyIconOrder, replyInThreadIconOrder, forwardIconOrder, deleteIconOrder, selectIconOrder, starIconOrder, reportIconOrder, infoIconOrder, reactionIconTooltipText, editIconTooltipText, copyIconTooltipText, replyIconTooltipText, replyInThreadIconTooltipText, forwardIconTooltipText, deleteIconTooltipText, selectIconTooltipText, starIconTooltipText, reportIconTooltipText, infoIconTooltipText, messageActionIconsColor, messageStatusSize, messageStatusColor, messageReadStatusColor, messageStateFontSize, messageStateColor, messageTimeFontSize, messageTimeColor, messageStatusAndTimeLineHeight, fileAttachmentsIcon, reactionsDisplayCount, showEachReactionCount, showTotalReactionCount, reactionItemBorder, reactionItemBorderRadius, reactionItemBackground, reactionItemPadding, reactionItemMargin, reactionsFontSize, reactionsContainerBoxShadow, reactionsContainerBorder, reactionsContainerBorderRadius, reactionsContainerBackground, reactionsContainerPadding, reactionsContainerTopPosition, reactionsDetailsPopupBorderRadius, reactionsDetailsPopupHeaderItemsStyle, fileAttachmentsBoxWidth, fileAttachmentsBoxBorder, fileAttachmentsTitleColor, fileAttachmentsSizeColor, imageAttachmentMaxWidth, imageAttachmentMaxHeight, videoAttachmentMaxWidth, videoAttachmentMaxHeight, emojisCategoryIconsPosition, emojisContainerBorderRadius, fixEmojiCategoriesTitleOnTop, sameUserMessageSpacing, differentUserMessageSpacing, selectedMessagesMap, contactsMap, openedMessageMenuId, tabIsActive, connectionStatus, messageTextFontSize, messageTextLineHeight, messageTimeColorOnAttachment, shouldOpenUserProfileForMention, ogMetadataProps, showInfoMessageProps, collapsedLinesLimit, createChatOnAvatarTap, ifLatestAndHasNotPreview }: IMessageProps) => React.JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -44,8 +44,9 @@ export interface UseChatControllerParams {
|
|
|
44
44
|
selectedMessagesMap: Map<string, any>;
|
|
45
45
|
allowEditDeleteIncomingMessage: boolean;
|
|
46
46
|
dispatch: (...args: any[]) => void;
|
|
47
|
+
tabIsActive?: boolean;
|
|
47
48
|
}
|
|
48
|
-
export declare function useChatController({ messages, channel, hasPrevMessages, hasNextMessages, loadingPrevMessages, loadingNextMessages, connectionStatus, scrollToNewMessage, scrollToMentionedMessage, showScrollToNewMessageButton, unreadScrollTo, unreadMessageId, selectedMessagesMap, allowEditDeleteIncomingMessage, dispatch }: UseChatControllerParams): {
|
|
49
|
+
export declare function useChatController({ messages, channel, hasPrevMessages, hasNextMessages, loadingPrevMessages, loadingNextMessages, connectionStatus, scrollToNewMessage, scrollToMentionedMessage, showScrollToNewMessageButton, unreadScrollTo, unreadMessageId, selectedMessagesMap, allowEditDeleteIncomingMessage, tabIsActive, dispatch }: UseChatControllerParams): {
|
|
49
50
|
scrollRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
50
51
|
setLastVisibleMessageId: (message: IMessage) => void;
|
|
51
52
|
handleScrollToRepliedMessage: (itemId: string, smooth?: boolean) => Promise<void>;
|
|
@@ -4,7 +4,6 @@ interface ISystemMessageProps {
|
|
|
4
4
|
channel: IChannel;
|
|
5
5
|
message: IMessage;
|
|
6
6
|
nextMessage: IMessage;
|
|
7
|
-
connectionStatus: string;
|
|
8
7
|
contactsMap: {
|
|
9
8
|
[key: string]: any;
|
|
10
9
|
};
|
|
@@ -14,12 +13,9 @@ interface ISystemMessageProps {
|
|
|
14
13
|
border?: string;
|
|
15
14
|
backgroundColor?: string;
|
|
16
15
|
borderRadius?: string;
|
|
17
|
-
tabIsActive?: boolean;
|
|
18
16
|
setLastVisibleMessageId?: (message: IMessage) => void;
|
|
19
|
-
queueReadMarker?: (channelId: string, messageId?: string) => void;
|
|
20
|
-
disableAutoReadTracking?: boolean;
|
|
21
17
|
}
|
|
22
|
-
declare const _default: React.MemoExoticComponent<({ message, nextMessage,
|
|
18
|
+
declare const _default: React.MemoExoticComponent<({ message, nextMessage, channel, differentUserMessageSpacing, fontSize, textColor, border, backgroundColor, borderRadius, contactsMap, setLastVisibleMessageId }: ISystemMessageProps) => React.JSX.Element>;
|
|
23
19
|
export default _default;
|
|
24
20
|
export declare const Container: import("styled-components").StyledComponent<"div", any, {
|
|
25
21
|
topOffset?: number | undefined;
|