sceyt-chat-react-uikit 1.8.5-beta.8 → 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 +4 -2
- package/components/Message/MessageBody/index.d.ts +3 -2
- package/components/Message/index.d.ts +1 -1
- package/components/Messages/MessageList/index.d.ts +2 -1
- package/components/Messages/MessageList/useChatController.d.ts +3 -1
- package/components/Messages/SystemMessage/index.d.ts +1 -5
- package/components/Messages/index.d.ts +2 -1
- package/index.js +2346 -2195
- package/index.modern.js +2348 -2196
- package/messageUtils/index.d.ts +1 -5
- package/package.json +1 -1
|
@@ -65,6 +65,7 @@ interface ICustomMessageItem {
|
|
|
65
65
|
handleOpenUserProfile: (user: IUser) => void;
|
|
66
66
|
unsupportedMessage: boolean;
|
|
67
67
|
onInviteLinkClick?: (key: string) => void;
|
|
68
|
+
ifLatestAndHasNotPreview: boolean;
|
|
68
69
|
}
|
|
69
70
|
export interface IMessageProps {
|
|
70
71
|
message: IMessage;
|
|
@@ -78,13 +79,13 @@ export interface IMessageProps {
|
|
|
78
79
|
setLastVisibleMessageId?: (message: IMessage) => void;
|
|
79
80
|
queueReadMarker?: (channelId: string, messageId?: string) => void;
|
|
80
81
|
queueDeliveredMarker?: (channelId: string, messageId?: string) => void;
|
|
82
|
+
disableAutoReadTracking?: boolean;
|
|
81
83
|
handleScrollToRepliedMessage: (msgId: string) => void;
|
|
82
84
|
handleMediaItemClick?: (attachment: IAttachment) => void;
|
|
83
85
|
unreadMessageId: string;
|
|
84
86
|
isUnreadMessage: boolean;
|
|
85
87
|
nextMessageStartsUnreadSection?: boolean;
|
|
86
88
|
isThreadMessage: boolean;
|
|
87
|
-
disableAutoReadTracking?: boolean;
|
|
88
89
|
fontFamily?: string;
|
|
89
90
|
ownMessageOnRightSide?: boolean;
|
|
90
91
|
messageWidthPercent?: string | number;
|
|
@@ -224,7 +225,8 @@ export interface IMessageProps {
|
|
|
224
225
|
tabsStyles?: ITabsStyles;
|
|
225
226
|
listItemStyles?: IListItemStyles;
|
|
226
227
|
};
|
|
227
|
-
|
|
228
|
+
collapsedLinesLimit?: number;
|
|
228
229
|
createChatOnAvatarTap?: boolean;
|
|
230
|
+
ifLatestAndHasNotPreview: boolean;
|
|
229
231
|
}
|
|
230
232
|
export {};
|
|
@@ -138,7 +138,8 @@ interface IMessageBodyProps {
|
|
|
138
138
|
ogMetadataProps?: OGMetadataProps;
|
|
139
139
|
unsupportedMessage: boolean;
|
|
140
140
|
onInviteLinkClick?: (key: string) => void;
|
|
141
|
-
|
|
141
|
+
ifLatestAndHasNotPreview: boolean;
|
|
142
|
+
collapsedLinesLimit?: number;
|
|
142
143
|
}
|
|
143
|
-
declare const _default: React.MemoExoticComponent<({ message, channel, MessageActionsMenu, handleScrollToRepliedMessage, handleMediaItemClick, isPendingMessage, prevMessage, nextMessage, unreadMessageId, isThreadMessage, fontFamily, ownMessageOnRightSide, showSenderNameOnDirectChannel, showSenderNameOnGroupChannel, showSenderNameOnOwnMessages, messageStatusAndTimePosition, messageStatusDisplayingType, outgoingMessageStyles, incomingMessageStyles, ownRepliedMessageBackground, incomingRepliedMessageBackground, showMessageStatus, showMessageTimeAndStatusOnlyOnHover, showMessageTime, showMessageStatusForEachMessage, showMessageTimeForEachMessage, messageReaction, editMessage, copyMessage, replyMessage, replyMessageInThread, deleteMessage, selectMessage, showInfoMessage, allowEditDeleteIncomingMessage, forwardMessage, reportMessage, reactionIcon, editIcon, copyIcon, replyIcon, replyInThreadIcon, forwardIcon, deleteIcon, infoIcon, selectIcon, retractVoteIcon, endVoteIcon, starIcon, staredIcon, reportIcon, reactionIconOrder, editIconOrder, copyIconOrder, replyIconOrder, replyInThreadIconOrder, forwardIconOrder, deleteIconOrder, infoIconOrder, selectIconOrder, starIconOrder, reportIconOrder, reactionIconTooltipText, editIconTooltipText, copyIconTooltipText, replyIconTooltipText, replyInThreadIconTooltipText, forwardIconTooltipText, deleteIconTooltipText, selectIconTooltipText, starIconTooltipText, reportIconTooltipText, infoIconTooltipText, messageActionIconsColor, messageStatusSize, messageStatusColor, messageReadStatusColor, messageStateFontSize, messageStateColor, messageTimeFontSize, messageTimeColor, messageStatusAndTimeLineHeight, messageTimeColorOnAttachment, fileAttachmentsIcon, fileAttachmentsBoxWidth, fileAttachmentsBoxBorder, fileAttachmentsTitleColor, fileAttachmentsSizeColor, imageAttachmentMaxWidth, imageAttachmentMaxHeight, videoAttachmentMaxWidth, videoAttachmentMaxHeight, emojisCategoryIconsPosition, emojisContainerBorderRadius, fixEmojiCategoriesTitleOnTop, selectedMessagesMap, contactsMap, messageTextFontSize, messageTextLineHeight, handleToggleForwardMessagePopup, handleToggleInfoMessagePopupOpen, messageActionsShow, handleRetractVote, handleEndVote, closeMessageActions, handleDeletePendingMessage, handleReplyMessage, handleToggleDeleteMessagePopup, handleToggleReportPopupOpen, handleResendMessage, handleOpenEmojis, emojisPopupOpen, setEmojisPopupOpen, emojisPopupPosition, frequentlyEmojisOpen, handleCopyMessage, toggleEditMode, handleSelectMessage, handleMouseEnter, handleMouseLeave, handleReactionAddDelete, handleCreateChat, messageTextRef, handleOpenUserProfile, shouldOpenUserProfileForMention, ogMetadataProps, unsupportedMessage, onInviteLinkClick,
|
|
144
|
+
declare const _default: React.MemoExoticComponent<({ message, channel, MessageActionsMenu, handleScrollToRepliedMessage, handleMediaItemClick, isPendingMessage, prevMessage, nextMessage, unreadMessageId, isThreadMessage, fontFamily, ownMessageOnRightSide, showSenderNameOnDirectChannel, showSenderNameOnGroupChannel, showSenderNameOnOwnMessages, messageStatusAndTimePosition, messageStatusDisplayingType, outgoingMessageStyles, incomingMessageStyles, ownRepliedMessageBackground, incomingRepliedMessageBackground, showMessageStatus, showMessageTimeAndStatusOnlyOnHover, showMessageTime, showMessageStatusForEachMessage, showMessageTimeForEachMessage, messageReaction, editMessage, copyMessage, replyMessage, replyMessageInThread, deleteMessage, selectMessage, showInfoMessage, allowEditDeleteIncomingMessage, forwardMessage, reportMessage, reactionIcon, editIcon, copyIcon, replyIcon, replyInThreadIcon, forwardIcon, deleteIcon, infoIcon, selectIcon, retractVoteIcon, endVoteIcon, starIcon, staredIcon, reportIcon, reactionIconOrder, editIconOrder, copyIconOrder, replyIconOrder, replyInThreadIconOrder, forwardIconOrder, deleteIconOrder, infoIconOrder, selectIconOrder, starIconOrder, reportIconOrder, reactionIconTooltipText, editIconTooltipText, copyIconTooltipText, replyIconTooltipText, replyInThreadIconTooltipText, forwardIconTooltipText, deleteIconTooltipText, selectIconTooltipText, starIconTooltipText, reportIconTooltipText, infoIconTooltipText, messageActionIconsColor, messageStatusSize, messageStatusColor, messageReadStatusColor, messageStateFontSize, messageStateColor, messageTimeFontSize, messageTimeColor, messageStatusAndTimeLineHeight, messageTimeColorOnAttachment, fileAttachmentsIcon, fileAttachmentsBoxWidth, fileAttachmentsBoxBorder, fileAttachmentsTitleColor, fileAttachmentsSizeColor, imageAttachmentMaxWidth, imageAttachmentMaxHeight, videoAttachmentMaxWidth, videoAttachmentMaxHeight, emojisCategoryIconsPosition, emojisContainerBorderRadius, fixEmojiCategoriesTitleOnTop, selectedMessagesMap, contactsMap, messageTextFontSize, messageTextLineHeight, handleToggleForwardMessagePopup, handleToggleInfoMessagePopupOpen, messageActionsShow, handleRetractVote, handleEndVote, closeMessageActions, handleDeletePendingMessage, handleReplyMessage, handleToggleDeleteMessagePopup, handleToggleReportPopupOpen, handleResendMessage, handleOpenEmojis, emojisPopupOpen, setEmojisPopupOpen, emojisPopupPosition, frequentlyEmojisOpen, handleCopyMessage, toggleEditMode, handleSelectMessage, handleMouseEnter, handleMouseLeave, handleReactionAddDelete, handleCreateChat, messageTextRef, handleOpenUserProfile, shouldOpenUserProfileForMention, ogMetadataProps, unsupportedMessage, onInviteLinkClick, collapsedLinesLimit, ifLatestAndHasNotPreview }: IMessageBodyProps) => React.JSX.Element>;
|
|
144
145
|
export default _default;
|
|
@@ -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;
|
|
@@ -74,6 +74,7 @@ interface MessagesProps {
|
|
|
74
74
|
isThreadMessage?: boolean;
|
|
75
75
|
unsupportedMessage: boolean;
|
|
76
76
|
onInviteLinkClick?: (key: string) => void;
|
|
77
|
+
ifLatestAndHasNotPreview: boolean;
|
|
77
78
|
}>;
|
|
78
79
|
messageReaction?: boolean;
|
|
79
80
|
editMessage?: boolean;
|
|
@@ -204,7 +205,7 @@ interface MessagesProps {
|
|
|
204
205
|
listItemStyles?: IListItemStyles;
|
|
205
206
|
};
|
|
206
207
|
ogMetadataProps?: OGMetadataProps;
|
|
207
|
-
|
|
208
|
+
collapsedLinesLimit?: number;
|
|
208
209
|
createChatOnAvatarTap?: boolean;
|
|
209
210
|
allowSendAttachment?: boolean;
|
|
210
211
|
}
|
|
@@ -22,6 +22,7 @@ declare type TimelineItem = {
|
|
|
22
22
|
nextItemStartsUnreadSection: boolean;
|
|
23
23
|
startsNewDay: boolean;
|
|
24
24
|
registerItemElement: (el: HTMLElement | null) => void;
|
|
25
|
+
ifLatestAndHasNotPreview: boolean;
|
|
25
26
|
};
|
|
26
27
|
export interface UseChatControllerParams {
|
|
27
28
|
messages: IMessage[];
|
|
@@ -43,8 +44,9 @@ export interface UseChatControllerParams {
|
|
|
43
44
|
selectedMessagesMap: Map<string, any>;
|
|
44
45
|
allowEditDeleteIncomingMessage: boolean;
|
|
45
46
|
dispatch: (...args: any[]) => void;
|
|
47
|
+
tabIsActive?: boolean;
|
|
46
48
|
}
|
|
47
|
-
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): {
|
|
48
50
|
scrollRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
49
51
|
setLastVisibleMessageId: (message: IMessage) => void;
|
|
50
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;
|
|
@@ -71,6 +71,7 @@ interface MessagesProps {
|
|
|
71
71
|
isThreadMessage?: boolean;
|
|
72
72
|
handleRetractVote?: () => void;
|
|
73
73
|
handleEndVote?: () => void;
|
|
74
|
+
ifLatestAndHasNotPreview: boolean;
|
|
74
75
|
}>;
|
|
75
76
|
showOwnAvatar?: boolean;
|
|
76
77
|
messageReaction?: boolean;
|
|
@@ -202,7 +203,7 @@ interface MessagesProps {
|
|
|
202
203
|
listItemStyles?: IListItemStyles;
|
|
203
204
|
};
|
|
204
205
|
ogMetadataProps?: OGMetadataProps;
|
|
205
|
-
|
|
206
|
+
collapsedLinesLimit?: number;
|
|
206
207
|
createChatOnAvatarTap?: boolean;
|
|
207
208
|
allowSendAttachment?: boolean;
|
|
208
209
|
}
|