sceyt-chat-react-uikit 1.7.2-beta.9 → 1.7.3-beta.1
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/Attachment/index.d.ts +4 -1
- package/components/AudioPlayer/index.d.ts +3 -0
- package/components/ChannelList/index.d.ts +1 -1
- package/components/Message/Message.types.d.ts +24 -1
- package/components/Message/MessageActions/index.d.ts +1 -1
- package/components/Message/MessageBody/index.d.ts +6 -1
- package/components/Message/index.d.ts +1 -1
- package/components/Messages/MessageList/index.d.ts +22 -1
- package/components/Messages/index.d.ts +22 -1
- package/index.js +1347 -656
- package/index.modern.js +1347 -656
- package/package.json +1 -1
- package/types/index.d.ts +25 -8
|
@@ -22,8 +22,11 @@ interface AttachmentPops {
|
|
|
22
22
|
videoAttachmentMaxWidth?: number;
|
|
23
23
|
videoAttachmentMaxHeight?: number;
|
|
24
24
|
messageType?: string | null | undefined;
|
|
25
|
+
messagePlayed?: boolean | undefined;
|
|
26
|
+
channelId?: string;
|
|
27
|
+
incoming?: boolean;
|
|
25
28
|
}
|
|
26
|
-
declare const _default: React.MemoExoticComponent<({ attachment, isPreview, removeSelected, isRepliedMessage, borderRadius, handleMediaItemClick, setVideoIsReadyToSend, selectedFileAttachmentsIcon, backgroundColor, selectedFileAttachmentsBoxBorder, selectedFileAttachmentsTitleColor, selectedFileAttachmentsSizeColor, isDetailsView, imageMinWidth, closeMessageActions, fileAttachmentWidth, imageAttachmentMaxWidth, imageAttachmentMaxHeight, videoAttachmentMaxWidth, videoAttachmentMaxHeight, messageType }: AttachmentPops) => React.JSX.Element>;
|
|
29
|
+
declare const _default: React.MemoExoticComponent<({ attachment, isPreview, removeSelected, isRepliedMessage, borderRadius, handleMediaItemClick, setVideoIsReadyToSend, selectedFileAttachmentsIcon, backgroundColor, selectedFileAttachmentsBoxBorder, selectedFileAttachmentsTitleColor, selectedFileAttachmentsSizeColor, isDetailsView, imageMinWidth, closeMessageActions, fileAttachmentWidth, imageAttachmentMaxWidth, imageAttachmentMaxHeight, videoAttachmentMaxWidth, videoAttachmentMaxHeight, messageType, messagePlayed, channelId, incoming }: AttachmentPops) => React.JSX.Element>;
|
|
27
30
|
export default _default;
|
|
28
31
|
export declare const SizeProgress: import("styled-components").StyledComponent<"span", any, {
|
|
29
32
|
color: string;
|
|
@@ -3,6 +3,9 @@ import { IAttachment } from '../../types';
|
|
|
3
3
|
interface AudioPlayerProps {
|
|
4
4
|
url: string;
|
|
5
5
|
file: IAttachment;
|
|
6
|
+
messagePlayed: boolean | undefined;
|
|
7
|
+
channelId?: string;
|
|
8
|
+
incoming?: boolean;
|
|
6
9
|
}
|
|
7
10
|
declare const AudioPlayer: React.FC<AudioPlayerProps>;
|
|
8
11
|
export default AudioPlayer;
|
|
@@ -78,7 +78,7 @@ interface IChannelListProps {
|
|
|
78
78
|
getCustomLatestMessage?: (lastMessage: IMessage, typingOrRecording: any, draftMessageText: any, textSecondary: string, channel: IChannel, channelLastMessageFontSize: string, channelLastMessageHeight: string, isDirectChannel: boolean, textPrimary: string, messageAuthorRef: any, contactsMap: {
|
|
79
79
|
[key: string]: IContact;
|
|
80
80
|
}, getFromContacts: boolean, warningColor: string, user: IUser, MessageText: any) => any;
|
|
81
|
-
doNotShowMessageDeliveryTypes
|
|
81
|
+
doNotShowMessageDeliveryTypes?: string[];
|
|
82
82
|
}
|
|
83
83
|
declare const ChannelList: React.FC<IChannelListProps>;
|
|
84
84
|
export default ChannelList;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAttachment, IChannel, IMessage, IUser } from '../../types';
|
|
1
|
+
import { IAttachment, IChannel, IMarker, IMessage, IUser, ITabsStyles, IListItemStyles, ILabels, MessageInfoTab } from '../../types';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
export interface IMessageActions {
|
|
4
4
|
message: IMessage;
|
|
@@ -46,6 +46,7 @@ interface ICustomMessageItem {
|
|
|
46
46
|
handleCopyMessage?: () => void;
|
|
47
47
|
handleReportMessage?: () => void;
|
|
48
48
|
handleSelectMessage?: () => void;
|
|
49
|
+
handleOpenInfoMessage?: () => void;
|
|
49
50
|
handleOpenEmojis?: () => void;
|
|
50
51
|
handleReplyMessage?: (threadReply?: boolean) => void;
|
|
51
52
|
handleMouseEnter: () => void;
|
|
@@ -101,6 +102,8 @@ export interface IMessageProps {
|
|
|
101
102
|
forwardMessage?: boolean;
|
|
102
103
|
deleteMessage?: boolean;
|
|
103
104
|
selectMessage?: boolean;
|
|
105
|
+
showInfoMessage?: boolean;
|
|
106
|
+
infoIcon?: JSX.Element;
|
|
104
107
|
allowEditDeleteIncomingMessage?: boolean;
|
|
105
108
|
reportMessage?: boolean;
|
|
106
109
|
reactionIcon?: JSX.Element;
|
|
@@ -128,6 +131,7 @@ export interface IMessageProps {
|
|
|
128
131
|
selectIconOrder?: number;
|
|
129
132
|
starIconOrder?: number;
|
|
130
133
|
reportIconOrder?: number;
|
|
134
|
+
infoIconOrder?: number;
|
|
131
135
|
reactionIconTooltipText?: string;
|
|
132
136
|
editIconTooltipText?: string;
|
|
133
137
|
copyIconTooltipText?: string;
|
|
@@ -138,6 +142,7 @@ export interface IMessageProps {
|
|
|
138
142
|
selectIconTooltipText?: string;
|
|
139
143
|
starIconTooltipText?: string;
|
|
140
144
|
reportIconTooltipText?: string;
|
|
145
|
+
infoIconTooltipText?: string;
|
|
141
146
|
messageActionIconsColor?: string;
|
|
142
147
|
inlineReactionIcon?: JSX.Element;
|
|
143
148
|
reactionsDisplayCount?: number;
|
|
@@ -189,5 +194,23 @@ export interface IMessageProps {
|
|
|
189
194
|
messageTextLineHeight?: string;
|
|
190
195
|
messageTimeColorOnAttachment?: string;
|
|
191
196
|
shouldOpenUserProfileForMention?: boolean;
|
|
197
|
+
showInfoMessageProps?: {
|
|
198
|
+
togglePopup?: () => void;
|
|
199
|
+
labels?: ILabels;
|
|
200
|
+
tabsOrder?: {
|
|
201
|
+
key: MessageInfoTab;
|
|
202
|
+
label: string;
|
|
203
|
+
data: IMarker[];
|
|
204
|
+
}[];
|
|
205
|
+
showCounts?: boolean;
|
|
206
|
+
avatarSize?: number;
|
|
207
|
+
maxWidth?: string;
|
|
208
|
+
minWidth?: string;
|
|
209
|
+
height?: string;
|
|
210
|
+
renderItem?: (marker: IMarker, defaultNode: JSX.Element) => JSX.Element;
|
|
211
|
+
formatDate?: (date: Date) => string;
|
|
212
|
+
tabsStyles?: ITabsStyles;
|
|
213
|
+
listItemStyles?: IListItemStyles;
|
|
214
|
+
};
|
|
192
215
|
}
|
|
193
216
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function MessageActions({ editModeToggle, channel, handleResendMessage, handleOpenDeleteMessage, handleOpenForwardMessage, handleCopyMessage, handleReportMessage, messageStatus, handleSelectMessage, handleReplyMessage, isThreadMessage, rtlDirection, showMessageReaction, showEditMessage, showCopyMessage, showReplyMessage, showReplyMessageInThread, showForwardMessage, showDeleteMessage, showSelectMessage, showReportMessage, reactionIcon, editIcon, copyIcon, replyIcon, replyInThreadIcon, deleteIcon, selectIcon, allowEditDeleteIncomingMessage, reportIcon, reactionIconOrder, editIconOrder, copyIconOrder, replyIconOrder, replyInThreadIconOrder, forwardIcon, forwardIconOrder, deleteIconOrder, selectIconOrder, reportIconOrder, reactionIconTooltipText, editIconTooltipText, copyIconTooltipText, replyIconTooltipText, replyInThreadIconTooltipText, forwardIconTooltipText, deleteIconTooltipText, selectIconTooltipText, reportIconTooltipText, myRole, isIncoming, messageActionIconsColor, handleOpenEmojis }: any): React.JSX.Element;
|
|
2
|
+
export default function MessageActions({ editModeToggle, channel, handleResendMessage, handleOpenDeleteMessage, handleOpenForwardMessage, handleCopyMessage, handleReportMessage, messageStatus, handleSelectMessage, handleReplyMessage, handleOpenInfoMessage, isThreadMessage, rtlDirection, showMessageReaction, showEditMessage, showCopyMessage, showReplyMessage, showReplyMessageInThread, showForwardMessage, showDeleteMessage, showSelectMessage, showReportMessage, showInfoMessage, infoIconOrder, reactionIcon, editIcon, copyIcon, replyIcon, replyInThreadIcon, deleteIcon, selectIcon, infoIcon, allowEditDeleteIncomingMessage, reportIcon, reactionIconOrder, editIconOrder, copyIconOrder, replyIconOrder, replyInThreadIconOrder, forwardIcon, forwardIconOrder, deleteIconOrder, selectIconOrder, reportIconOrder, reactionIconTooltipText, editIconTooltipText, copyIconTooltipText, replyIconTooltipText, replyInThreadIconTooltipText, forwardIconTooltipText, deleteIconTooltipText, selectIconTooltipText, infoIconTooltipText, reportIconTooltipText, myRole, isIncoming, messageActionIconsColor, handleOpenEmojis }: any): React.JSX.Element;
|
|
@@ -37,6 +37,7 @@ interface IMessageBodyProps {
|
|
|
37
37
|
forwardMessage?: boolean;
|
|
38
38
|
deleteMessage?: boolean;
|
|
39
39
|
selectMessage?: boolean;
|
|
40
|
+
showInfoMessage?: boolean;
|
|
40
41
|
allowEditDeleteIncomingMessage?: boolean;
|
|
41
42
|
reportMessage?: boolean;
|
|
42
43
|
reactionIcon?: JSX.Element;
|
|
@@ -46,6 +47,7 @@ interface IMessageBodyProps {
|
|
|
46
47
|
replyInThreadIcon?: JSX.Element;
|
|
47
48
|
forwardIcon?: JSX.Element;
|
|
48
49
|
deleteIcon?: JSX.Element;
|
|
50
|
+
infoIcon?: JSX.Element;
|
|
49
51
|
selectIcon?: JSX.Element;
|
|
50
52
|
starIcon?: JSX.Element;
|
|
51
53
|
staredIcon?: JSX.Element;
|
|
@@ -60,6 +62,7 @@ interface IMessageBodyProps {
|
|
|
60
62
|
replyInThreadIconOrder?: number;
|
|
61
63
|
forwardIconOrder?: number;
|
|
62
64
|
deleteIconOrder?: number;
|
|
65
|
+
infoIconOrder?: number;
|
|
63
66
|
selectIconOrder?: number;
|
|
64
67
|
starIconOrder?: number;
|
|
65
68
|
reportIconOrder?: number;
|
|
@@ -73,6 +76,7 @@ interface IMessageBodyProps {
|
|
|
73
76
|
selectIconTooltipText?: string;
|
|
74
77
|
starIconTooltipText?: string;
|
|
75
78
|
reportIconTooltipText?: string;
|
|
79
|
+
infoIconTooltipText?: string;
|
|
76
80
|
messageActionIconsColor?: string;
|
|
77
81
|
inlineReactionIcon?: JSX.Element;
|
|
78
82
|
messageStatusSize?: string;
|
|
@@ -107,6 +111,7 @@ interface IMessageBodyProps {
|
|
|
107
111
|
setMessageActionsShow: (state: boolean) => void;
|
|
108
112
|
closeMessageActions: () => void;
|
|
109
113
|
handleToggleForwardMessagePopup: () => void;
|
|
114
|
+
handleToggleInfoMessagePopupOpen: () => void;
|
|
110
115
|
handleReplyMessage: (rely: boolean) => void;
|
|
111
116
|
handleToggleDeleteMessagePopup: () => void;
|
|
112
117
|
handleToggleReportPopupOpen: () => void;
|
|
@@ -128,5 +133,5 @@ interface IMessageBodyProps {
|
|
|
128
133
|
handleOpenUserProfile: (user: IUser) => void;
|
|
129
134
|
shouldOpenUserProfileForMention?: boolean;
|
|
130
135
|
}
|
|
131
|
-
declare const _default: React.MemoExoticComponent<({ message, channel, MessageActionsMenu, handleScrollToRepliedMessage, handleMediaItemClick, isPendingMessage, prevMessage, nextMessage, isUnreadMessage, 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, allowEditDeleteIncomingMessage, forwardMessage, reportMessage, reactionIcon, editIcon, copyIcon, replyIcon, replyInThreadIcon, forwardIcon, deleteIcon, selectIcon, starIcon, staredIcon, reportIcon, reactionIconOrder, editIconOrder, copyIconOrder, replyIconOrder, replyInThreadIconOrder, forwardIconOrder, deleteIconOrder, selectIconOrder, starIconOrder, reportIconOrder, reactionIconTooltipText, editIconTooltipText, copyIconTooltipText, replyIconTooltipText, replyInThreadIconTooltipText, forwardIconTooltipText, deleteIconTooltipText, selectIconTooltipText, starIconTooltipText, reportIconTooltipText, messageActionIconsColor, messageStatusSize, messageStatusColor, messageReadStatusColor, messageStateFontSize, messageStateColor, messageTimeFontSize, messageTimeColor, messageStatusAndTimeLineHeight, messageTimeColorOnAttachment, fileAttachmentsIcon, fileAttachmentsBoxWidth, fileAttachmentsBoxBorder, fileAttachmentsTitleColor, fileAttachmentsSizeColor, imageAttachmentMaxWidth, imageAttachmentMaxHeight, videoAttachmentMaxWidth, videoAttachmentMaxHeight, emojisCategoryIconsPosition, emojisContainerBorderRadius, fixEmojiCategoriesTitleOnTop, selectedMessagesMap, contactsMap, theme, messageTextFontSize, messageTextLineHeight, handleToggleForwardMessagePopup, messageActionsShow, closeMessageActions, handleDeletePendingMessage, handleReplyMessage, handleToggleDeleteMessagePopup, handleToggleReportPopupOpen, handleResendMessage, handleOpenEmojis, emojisPopupOpen, setEmojisPopupOpen, emojisPopupPosition, frequentlyEmojisOpen, handleCopyMessage, toggleEditMode, handleSelectMessage, handleMouseEnter, handleMouseLeave, handleReactionAddDelete, handleCreateChat, messageTextRef, handleOpenUserProfile, shouldOpenUserProfileForMention }: IMessageBodyProps) => React.JSX.Element>;
|
|
136
|
+
declare const _default: React.MemoExoticComponent<({ message, channel, MessageActionsMenu, handleScrollToRepliedMessage, handleMediaItemClick, isPendingMessage, prevMessage, nextMessage, isUnreadMessage, 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, 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, theme, messageTextFontSize, messageTextLineHeight, handleToggleForwardMessagePopup, handleToggleInfoMessagePopupOpen, messageActionsShow, closeMessageActions, handleDeletePendingMessage, handleReplyMessage, handleToggleDeleteMessagePopup, handleToggleReportPopupOpen, handleResendMessage, handleOpenEmojis, emojisPopupOpen, setEmojisPopupOpen, emojisPopupPosition, frequentlyEmojisOpen, handleCopyMessage, toggleEditMode, handleSelectMessage, handleMouseEnter, handleMouseLeave, handleReactionAddDelete, handleCreateChat, messageTextRef, handleOpenUserProfile, shouldOpenUserProfileForMention }: IMessageBodyProps) => React.JSX.Element>;
|
|
132
137
|
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, isUnreadMessage, 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, allowEditDeleteIncomingMessage, forwardMessage, reportMessage, reactionIcon, editIcon, copyIcon, replyIcon, replyInThreadIcon, forwardIcon, deleteIcon, selectIcon, starIcon, staredIcon, reportIcon, reactionIconOrder, openFrequentlyUsedReactions, editIconOrder, copyIconOrder, replyIconOrder, replyInThreadIconOrder, forwardIconOrder, deleteIconOrder, selectIconOrder, starIconOrder, reportIconOrder, reactionIconTooltipText, editIconTooltipText, copyIconTooltipText, replyIconTooltipText, replyInThreadIconTooltipText, forwardIconTooltipText, deleteIconTooltipText, selectIconTooltipText, starIconTooltipText, reportIconTooltipText, 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, theme, messageTextFontSize, messageTextLineHeight, messageTimeColorOnAttachment, shouldOpenUserProfileForMention }: IMessageProps) => React.JSX.Element>;
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ message, channel, MessageActionsMenu, CustomMessageItem, handleScrollToRepliedMessage, handleMediaItemClick, stopScrolling, isPendingMessage, prevMessage, nextMessage, setLastVisibleMessageId, isUnreadMessage, 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, 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, theme, messageTextFontSize, messageTextLineHeight, messageTimeColorOnAttachment, shouldOpenUserProfileForMention, showInfoMessageProps }: IMessageProps) => React.JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
import { IAttachment, IChannel, IMessage, IUser } from '../../../types';
|
|
2
|
+
import { IAttachment, IChannel, IMarker, IMessage, IUser, ILabels, MessageInfoTab, ITabsStyles, IListItemStyles } from '../../../types';
|
|
3
3
|
import { IAttachmentProperties, IMessageStyles } from '../../Message/Message.types';
|
|
4
4
|
import { HiddenMessageProperty } from 'types/enum';
|
|
5
5
|
interface MessagesProps {
|
|
@@ -112,9 +112,12 @@ interface MessagesProps {
|
|
|
112
112
|
allowEditDeleteIncomingMessage?: boolean;
|
|
113
113
|
starIconOrder?: number;
|
|
114
114
|
reportIconOrder?: number;
|
|
115
|
+
infoIconOrder?: number;
|
|
116
|
+
showInfoMessage?: boolean;
|
|
115
117
|
reactionIconTooltipText?: string;
|
|
116
118
|
editIconTooltipText?: string;
|
|
117
119
|
replyIconTooltipText?: string;
|
|
120
|
+
infoIconTooltipText?: string;
|
|
118
121
|
copyIconTooltipText?: string;
|
|
119
122
|
replyInThreadIconTooltipText?: string;
|
|
120
123
|
forwardIconTooltipText?: string;
|
|
@@ -174,6 +177,24 @@ interface MessagesProps {
|
|
|
174
177
|
messageTextLineHeight?: string;
|
|
175
178
|
hiddenMessagesProperties?: HiddenMessageProperty[];
|
|
176
179
|
shouldOpenUserProfileForMention?: boolean;
|
|
180
|
+
showInfoMessageProps?: {
|
|
181
|
+
togglePopup?: () => void;
|
|
182
|
+
labels?: ILabels;
|
|
183
|
+
tabsOrder?: {
|
|
184
|
+
key: MessageInfoTab;
|
|
185
|
+
label: string;
|
|
186
|
+
data: IMarker[];
|
|
187
|
+
}[];
|
|
188
|
+
showCounts?: boolean;
|
|
189
|
+
avatarSize?: number;
|
|
190
|
+
maxWidth?: string;
|
|
191
|
+
minWidth?: string;
|
|
192
|
+
height?: string;
|
|
193
|
+
renderItem?: (marker: IMarker, defaultNode: JSX.Element) => JSX.Element;
|
|
194
|
+
formatDate?: (date: Date) => string;
|
|
195
|
+
tabsStyles?: ITabsStyles;
|
|
196
|
+
listItemStyles?: IListItemStyles;
|
|
197
|
+
};
|
|
177
198
|
}
|
|
178
199
|
declare const MessageList: React.FC<MessagesProps>;
|
|
179
200
|
export default MessageList;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
import { IAttachment, IChannel, IMessage, IUser } from '../../types';
|
|
2
|
+
import { IAttachment, IChannel, IMarker, IMessage, IUser, MessageInfoTab, ILabels, ITabsStyles, IListItemStyles } from '../../types';
|
|
3
3
|
import { IAttachmentProperties, IMessageStyles } from '../Message/Message.types';
|
|
4
4
|
import { HiddenMessageProperty } from 'types/enum';
|
|
5
5
|
interface MessagesProps {
|
|
@@ -77,6 +77,7 @@ interface MessagesProps {
|
|
|
77
77
|
forwardMessage?: boolean;
|
|
78
78
|
deleteMessage?: boolean;
|
|
79
79
|
selectMessage?: boolean;
|
|
80
|
+
showInfoMessage?: boolean;
|
|
80
81
|
reportMessage?: boolean;
|
|
81
82
|
reactionIcon?: JSX.Element;
|
|
82
83
|
editIcon?: JSX.Element;
|
|
@@ -101,6 +102,7 @@ interface MessagesProps {
|
|
|
101
102
|
forwardIconOrder?: number;
|
|
102
103
|
deleteIconOrder?: number;
|
|
103
104
|
selectIconOrder?: number;
|
|
105
|
+
infoIconOrder?: number;
|
|
104
106
|
allowEditDeleteIncomingMessage?: boolean;
|
|
105
107
|
starIconOrder?: number;
|
|
106
108
|
reportIconOrder?: number;
|
|
@@ -114,6 +116,7 @@ interface MessagesProps {
|
|
|
114
116
|
selectIconTooltipText?: string;
|
|
115
117
|
starIconTooltipText?: string;
|
|
116
118
|
reportIconTooltipText?: string;
|
|
119
|
+
infoIconTooltipText?: string;
|
|
117
120
|
messageActionIconsColor?: string;
|
|
118
121
|
dateDividerFontSize?: string;
|
|
119
122
|
dateDividerTextColor?: string;
|
|
@@ -174,6 +177,24 @@ interface MessagesProps {
|
|
|
174
177
|
messageStatusAndTimeLineHeight?: string;
|
|
175
178
|
hiddenMessagesProperties?: HiddenMessageProperty[];
|
|
176
179
|
shouldOpenUserProfileForMention?: boolean;
|
|
180
|
+
showInfoMessageProps?: {
|
|
181
|
+
togglePopup?: () => void;
|
|
182
|
+
labels?: ILabels;
|
|
183
|
+
tabsOrder?: {
|
|
184
|
+
key: MessageInfoTab;
|
|
185
|
+
label: string;
|
|
186
|
+
data: IMarker[];
|
|
187
|
+
}[];
|
|
188
|
+
showCounts?: boolean;
|
|
189
|
+
avatarSize?: number;
|
|
190
|
+
maxWidth?: string;
|
|
191
|
+
minWidth?: string;
|
|
192
|
+
height?: string;
|
|
193
|
+
renderItem?: (marker: IMarker, defaultNode: JSX.Element) => JSX.Element;
|
|
194
|
+
formatDate?: (date: Date) => string;
|
|
195
|
+
tabsStyles?: ITabsStyles;
|
|
196
|
+
listItemStyles?: IListItemStyles;
|
|
197
|
+
};
|
|
177
198
|
}
|
|
178
199
|
declare const MessagesContainer: React.FC<MessagesProps>;
|
|
179
200
|
export default MessagesContainer;
|