sceyt-chat-react-uikit 1.8.9 → 1.9.0-beta.10

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.
@@ -0,0 +1,3 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M3.125 10C3.125 6.20304 6.20304 3.125 10 3.125C13.797 3.125 16.875 6.20304 16.875 10C16.875 13.797 13.797 16.875 10 16.875C6.20304 16.875 3.125 13.797 3.125 10ZM10 1.25C5.16751 1.25 1.25 5.16751 1.25 10C1.25 14.8325 5.16751 18.75 10 18.75C14.8325 18.75 18.75 14.8325 18.75 10C18.75 5.16751 14.8325 1.25 10 1.25ZM9.91291 6.52283C9.5468 6.15672 8.95321 6.15672 8.58709 6.52283C8.22097 6.88895 8.22097 7.48254 8.58709 7.84866L10.7384 9.99994L8.58709 12.1512C8.22097 12.5173 8.22097 13.1109 8.58709 13.477C8.95321 13.8432 9.5468 13.8432 9.91291 13.477L12.7271 10.6629C12.9029 10.487 13.0017 10.2486 13.0017 9.99994C13.0017 9.7513 12.9029 9.51284 12.7271 9.33703L9.91291 6.52283Z" fill="#818C99"/>
3
+ </svg>
@@ -17,6 +17,7 @@ interface AttachmentPops {
17
17
  imageMinWidth?: string;
18
18
  closeMessageActions?: (state: boolean) => void;
19
19
  fileAttachmentWidth?: number;
20
+ fileSvgSize?: number;
20
21
  imageAttachmentMaxWidth?: number;
21
22
  imageAttachmentMaxHeight?: number;
22
23
  videoAttachmentMaxWidth?: number;
@@ -28,8 +29,24 @@ interface AttachmentPops {
28
29
  viewOnce?: boolean;
29
30
  onlyVideoImage?: boolean;
30
31
  }
31
- 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, viewOnce, onlyVideoImage }: AttachmentPops) => React.JSX.Element>;
32
+ declare const _default: React.MemoExoticComponent<({ attachment, isPreview, removeSelected, isRepliedMessage, borderRadius, handleMediaItemClick, setVideoIsReadyToSend, selectedFileAttachmentsIcon, backgroundColor, selectedFileAttachmentsBoxBorder, selectedFileAttachmentsTitleColor, selectedFileAttachmentsSizeColor, isDetailsView, imageMinWidth, closeMessageActions, fileAttachmentWidth, fileSvgSize, imageAttachmentMaxWidth, imageAttachmentMaxHeight, videoAttachmentMaxWidth, videoAttachmentMaxHeight, messageType, messagePlayed, channelId, incoming, viewOnce, onlyVideoImage }: AttachmentPops) => React.JSX.Element>;
32
33
  export default _default;
34
+ export declare const AttachmentImgCont: import("styled-components").StyledComponent<"div", any, {
35
+ isPreview: boolean;
36
+ backgroundColor?: string | undefined;
37
+ ref?: any;
38
+ borderRadius?: string | undefined;
39
+ imgIsLoaded?: boolean | undefined;
40
+ isRepliedMessage?: boolean | undefined;
41
+ withPrefix?: boolean | undefined;
42
+ fitTheContainer?: boolean | undefined;
43
+ width?: number | undefined;
44
+ height?: number | undefined;
45
+ }, never>;
46
+ export declare const FileThumbnail: import("styled-components").StyledComponent<"img", any, any, never>;
47
+ export declare const FileThumbnailSkeleton: import("styled-components").StyledComponent<"div", any, {
48
+ color: string;
49
+ }, never>;
33
50
  export declare const SizeProgress: import("styled-components").StyledComponent<"span", any, {
34
51
  color: string;
35
52
  }, never>;
@@ -42,6 +59,7 @@ export declare const AttachmentFile: import("styled-components").StyledComponent
42
59
  border?: string | undefined;
43
60
  width?: number | undefined;
44
61
  borderColor: string;
62
+ fileSvgSize?: number | undefined;
45
63
  }, never>;
46
64
  export declare const AttachmentImg: import("styled-components").StyledComponent<"img", any, {
47
65
  absolute?: boolean | undefined;
@@ -14,6 +14,10 @@ export interface IMessageActions {
14
14
  handleOpenEmojis?: () => void;
15
15
  handleSelectMessage?: (event?: any) => void;
16
16
  handleReplyMessage?: () => void;
17
+ handleOpenPinMessage?: () => void;
18
+ handleUnpinMessage?: () => void;
19
+ pinnedMessage?: any;
20
+ isPinned?: boolean;
17
21
  isThreadMessage?: boolean;
18
22
  rtlDirection?: boolean;
19
23
  openBelow?: boolean;
@@ -55,6 +59,10 @@ interface ICustomMessageItem {
55
59
  handleOpenInfoMessage?: () => void;
56
60
  handleOpenEmojis?: () => void;
57
61
  handleReplyMessage?: (threadReply?: boolean) => void;
62
+ handleOpenPinMessage?: () => void;
63
+ handleUnpinMessage?: () => void;
64
+ pinnedMessage?: any;
65
+ isPinned?: boolean;
58
66
  handleMouseEnter: () => void;
59
67
  handleMouseLeave: () => void;
60
68
  closeMessageActions?: () => void;
@@ -82,6 +90,8 @@ export interface IMessageProps {
82
90
  queueReadMarker?: (channelId: string, messageId?: string) => void;
83
91
  queueDeliveredMarker?: (channelId: string, messageId?: string) => void;
84
92
  disableAutoReadTracking?: boolean;
93
+ /** The message is rendered inside the pinned-messages overlay, not #scrollableDiv. */
94
+ isPinnedMessagesList?: boolean;
85
95
  handleScrollToRepliedMessage: (msgId: string) => void;
86
96
  handleMediaItemClick?: (attachment: IAttachment) => void;
87
97
  unreadMessageId: string;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export default function MessageActions({ isPollMessage, allowVoteRetract, isViewOnceMessage, pollClosed, editModeToggle, channel, handleResendMessage, handleOpenDeleteMessage, handleOpenForwardMessage, handleCopyMessage, handleReportMessage, messageStatus, handleSelectMessage, handleRetractVote, handleEndVote, handleReplyMessage, handleOpenInfoMessage, isThreadMessage, rtlDirection, openBelow, showMessageReaction, showEditMessage, showCopyMessage, showReplyMessage, showReplyMessageInThread, showForwardMessage, showDeleteMessage, showSelectMessage, showReportMessage, showInfoMessage, infoIconOrder, reactionIcon, editIcon, copyIcon, replyIcon, replyInThreadIcon, retractVoteIcon, endVoteIcon, 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;
2
+ export default function MessageActions({ isPollMessage, allowVoteRetract, isViewOnceMessage, pollClosed, editModeToggle, channel, handleResendMessage, handleOpenDeleteMessage, handleOpenForwardMessage, handleCopyMessage, handleReportMessage, messageStatus, handleSelectMessage, handleRetractVote, handleEndVote, handleReplyMessage, handleOpenInfoMessage, isThreadMessage, rtlDirection, openBelow, showMessageReaction, showEditMessage, showCopyMessage, showReplyMessage, showReplyMessageInThread, showForwardMessage, showDeleteMessage, showSelectMessage, showReportMessage, showInfoMessage, infoIconOrder, reactionIcon, editIcon, copyIcon, replyIcon, replyInThreadIcon, retractVoteIcon, endVoteIcon, 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, handleOpenPinMessage, handleUnpinMessage, pinnedMessage, isPinned }: any): React.JSX.Element;
@@ -117,6 +117,10 @@ interface IMessageBodyProps {
117
117
  handleToggleForwardMessagePopup: () => void;
118
118
  handleToggleInfoMessagePopupOpen: () => void;
119
119
  handleReplyMessage: (rely: boolean) => void;
120
+ handleOpenPinMessage: () => void;
121
+ handleUnpinMessage: () => void;
122
+ pinnedMessage?: any;
123
+ isPinned?: boolean;
120
124
  handleToggleDeleteMessagePopup: () => void;
121
125
  handleToggleReportPopupOpen: () => void;
122
126
  handleResendMessage: () => void;
@@ -142,5 +146,5 @@ interface IMessageBodyProps {
142
146
  ifLatestAndHasNotPreview: boolean;
143
147
  collapsedLinesLimit?: number;
144
148
  }
145
- 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, messageActionsBelow, 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>;
149
+ 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, messageActionsBelow, handleRetractVote, handleEndVote, closeMessageActions, handleDeletePendingMessage, handleReplyMessage, handleOpenPinMessage, handleUnpinMessage, pinnedMessage, isPinned, 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>;
146
150
  export default _default;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { IForwardMessageNote } from 'common/popups/forwardMessage';
2
3
  import { IChannel, IMessage } from 'types';
3
4
  interface MessagePopupsProps {
4
5
  message: IMessage;
@@ -6,6 +7,7 @@ interface MessagePopupsProps {
6
7
  deletePopupOpen: boolean;
7
8
  forwardPopupOpen: boolean;
8
9
  infoPopupOpen: boolean;
10
+ pinPopupOpen: boolean;
9
11
  showEndVoteConfirmPopup: boolean;
10
12
  allowEditDeleteIncomingMessage?: boolean;
11
13
  showInfoMessageProps?: any;
@@ -15,12 +17,15 @@ interface MessagePopupsProps {
15
17
  anchorRef: React.RefObject<HTMLElement>;
16
18
  onDeleteMessage: (deleteOption: 'forMe' | 'forEveryone') => void;
17
19
  onToggleDeletePopup: () => void;
18
- onForwardMessage: (channelIds: string[]) => void;
20
+ onForwardMessage: (channelIds: string[], accompanyingMessage?: IForwardMessageNote) => void;
19
21
  onToggleForwardPopup: () => void;
20
22
  onToggleInfoPopup: () => void;
21
23
  onEndVote: () => void;
22
24
  onToggleEndVotePopup: () => void;
23
25
  onOpenUserProfile: (user?: any) => void;
26
+ onTogglePinPopup: () => void;
27
+ onPinMessage: (scope: number) => void;
28
+ canPinForAll: boolean;
24
29
  }
25
30
  declare const MessagePopups: React.FC<MessagePopupsProps>;
26
31
  export default MessagePopups;
@@ -4,6 +4,7 @@ export interface MessageState {
4
4
  deletePopupOpen: boolean;
5
5
  forwardPopupOpen: boolean;
6
6
  infoPopupOpen: boolean;
7
+ pinPopupOpen: boolean;
7
8
  messageActionsShow: boolean;
8
9
  showEndVoteConfirmPopup: boolean;
9
10
  emojisPopupOpen: boolean;
@@ -22,6 +23,7 @@ export interface MessageStateSetters {
22
23
  setDeletePopupOpen: (value: boolean | ((prev: boolean) => boolean)) => void;
23
24
  setForwardPopupOpen: (value: boolean | ((prev: boolean) => boolean)) => void;
24
25
  setInfoPopupOpen: (value: boolean | ((prev: boolean) => boolean)) => void;
26
+ setPinPopupOpen: (value: boolean | ((prev: boolean) => boolean)) => void;
25
27
  setMessageActionsShow: (value: boolean | ((prev: boolean) => boolean)) => void;
26
28
  setShowEndVoteConfirmPopup: (value: boolean | ((prev: boolean) => boolean)) => void;
27
29
  setEmojisPopupOpen: (value: boolean | ((prev: boolean) => boolean)) => void;
@@ -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, 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, tabIsActiveRef, connectionStatus, messageTextFontSize, messageTextLineHeight, messageTimeColorOnAttachment, shouldOpenUserProfileForMention, ogMetadataProps, showInfoMessageProps, collapsedLinesLimit, createChatOnAvatarTap, ifLatestAndHasNotPreview }: IMessageProps) => React.JSX.Element>;
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, tabIsActiveRef, connectionStatus, messageTextFontSize, messageTextLineHeight, messageTimeColorOnAttachment, shouldOpenUserProfileForMention, ogMetadataProps, showInfoMessageProps, collapsedLinesLimit, createChatOnAvatarTap, ifLatestAndHasNotPreview, isPinnedMessagesList }: IMessageProps) => React.JSX.Element>;
4
4
  export default _default;
@@ -35,6 +35,9 @@ interface MessagesProps {
35
35
  handleReplyMessage?: () => void;
36
36
  handleRetractVote?: () => void;
37
37
  handleEndVote?: () => void;
38
+ handleOpenPinMessage?: () => void;
39
+ handleUnpinMessage?: () => void;
40
+ pinnedMessage?: any;
38
41
  isThreadMessage?: boolean;
39
42
  rtlDirection?: boolean;
40
43
  }>;
@@ -62,6 +65,9 @@ interface MessagesProps {
62
65
  handleSelectMessage?: () => void;
63
66
  handleOpenEmojis?: () => void;
64
67
  handleReplyMessage?: () => void;
68
+ handleOpenPinMessage?: () => void;
69
+ handleUnpinMessage?: () => void;
70
+ pinnedMessage?: any;
65
71
  handleMouseEnter: () => void;
66
72
  handleMouseLeave: () => void;
67
73
  closeMessageActions?: () => void;
@@ -98,6 +104,8 @@ interface MessagesProps {
98
104
  reportIcon?: JSX.Element;
99
105
  retractVoteIcon?: JSX.Element;
100
106
  endVoteIcon?: JSX.Element;
107
+ /** Replaces the default pin icon in the pinned-messages banner. */
108
+ pinnedMessageIcon?: JSX.Element;
101
109
  messageStatusSize?: string;
102
110
  messageStatusColor?: string;
103
111
  messageReadStatusColor?: string;
@@ -216,6 +224,9 @@ export declare const Container: import("styled-components").StyledComponent<"div
216
224
  backgroundColor?: string | undefined;
217
225
  thumbColor: string;
218
226
  }, never>;
227
+ export declare const MessagesBox: import("styled-components").StyledComponent<"div", any, {
228
+ $isJumping?: boolean | undefined;
229
+ }, never>;
219
230
  export declare const DragAndDropContainer: import("styled-components").StyledComponent<"div", any, {
220
231
  topOffset?: number | undefined;
221
232
  height?: number | undefined;
@@ -48,6 +48,7 @@ export interface UseChatControllerParams {
48
48
  dispatch: (...args: any[]) => void;
49
49
  tabIsActive?: boolean;
50
50
  }
51
+ export declare const formatMessageDateLabel: (message: IMessage) => string;
51
52
  export declare function useChatController({ messages, channel, hasPrevMessages, hasNextMessages, loadingPrevMessages, loadingNextMessages, connectionStatus, scrollToNewMessage, scrollToMentionedMessage, showScrollToNewMessageButton, unreadScrollTo, unreadMessageId, visibleMessagesMap, selectedMessagesMap, allowEditDeleteIncomingMessage, tabIsActive, dispatch }: UseChatControllerParams): {
52
53
  scrollRef: import("react").MutableRefObject<HTMLDivElement | null>;
53
54
  setLastVisibleMessageId: (message: IMessage) => void;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ declare const PinnedMessagesBanner: ({ channelId, pinIcon, onOpenList }: {
3
+ channelId: string;
4
+ pinIcon?: JSX.Element | undefined;
5
+ onOpenList?: (() => void) | undefined;
6
+ }) => React.JSX.Element | null;
7
+ export default PinnedMessagesBanner;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { IMessage } from '../../types';
3
+ declare type RenderPinnedMessage = (args: {
4
+ message: IMessage;
5
+ prevMessage: IMessage | null;
6
+ nextMessage: IMessage | null;
7
+ index: number;
8
+ }) => React.ReactNode;
9
+ declare type ScrollContainerComponent = React.ComponentType<any>;
10
+ declare type MessagesContainerComponent = React.ComponentType<{
11
+ children?: React.ReactNode;
12
+ }>;
13
+ declare const PinnedMessagesList: ({ channelId, onClose, closeRequested, renderMessage, ScrollContainer, MessagesContainer }: {
14
+ channelId: string;
15
+ onClose: () => void;
16
+ closeRequested?: boolean | undefined;
17
+ renderMessage: RenderPinnedMessage;
18
+ ScrollContainer: ScrollContainerComponent;
19
+ MessagesContainer: MessagesContainerComponent;
20
+ }) => React.JSX.Element;
21
+ export default PinnedMessagesList;
@@ -97,6 +97,8 @@ interface MessagesProps {
97
97
  reportIcon?: JSX.Element;
98
98
  retractVoteIcon?: JSX.Element;
99
99
  endVoteIcon?: JSX.Element;
100
+ /** Replaces the default pin icon in the pinned-messages banner. */
101
+ pinnedMessageIcon?: JSX.Element;
100
102
  openFrequentlyUsedReactions?: boolean;
101
103
  fixEmojiCategoriesTitleOnTop?: boolean;
102
104
  emojisCategoryIconsPosition?: 'top' | 'bottom';
@@ -1,6 +1,7 @@
1
1
  export declare const hasSendableTextOrPoll: (messageText: string, isPoll: boolean) => boolean;
2
2
  export declare const DEFAULT_MEDIA_EXTENSIONS: string[];
3
3
  export declare const isDefaultSupportedMediaMimeType: (mimeType: string) => boolean;
4
+ export declare const getClipboardFiles: (clipboardData: Pick<DataTransfer, 'files' | 'items'>) => File[];
4
5
  declare type MediaAttachmentValidationOptions = {
5
6
  allowedExtensions?: string[];
6
7
  sizeLimitKb?: number;
@@ -1,10 +1,12 @@
1
1
  import React from 'react';
2
2
  interface IVideoPlayerProps {
3
3
  src: string;
4
+ poster?: string;
4
5
  videoFileId?: string;
5
6
  activeFileId?: string;
6
7
  onMouseDown?: (e: React.MouseEvent) => void;
7
8
  readyToPlay: boolean;
9
+ onMediaEvent?: (event: string, details: Record<string, string | number | boolean | null>) => void;
8
10
  }
9
- declare const VideoPlayer: ({ src, videoFileId, activeFileId, onMouseDown, readyToPlay }: IVideoPlayerProps) => React.JSX.Element;
11
+ declare const VideoPlayer: ({ src, poster, videoFileId, activeFileId, onMouseDown, readyToPlay, onMediaEvent }: IVideoPlayerProps) => React.JSX.Element;
10
12
  export default VideoPlayer;
@@ -19,6 +19,15 @@ interface IVideoPreviewProps {
19
19
  }
20
20
  declare const VideoPreview: React.NamedExoticComponent<IVideoPreviewProps>;
21
21
  export default VideoPreview;
22
+ export declare const Component: import("styled-components").StyledComponent<"div", any, {
23
+ isPreview?: boolean | undefined;
24
+ isRepliedMessage?: boolean | undefined;
25
+ isDetailsView?: boolean | undefined;
26
+ width?: string | undefined;
27
+ height?: string | undefined;
28
+ borderRadius?: string | undefined;
29
+ backgroundColor: string;
30
+ }, never>;
22
31
  export declare const AttachmentFile: import("styled-components").StyledComponent<"div", any, {
23
32
  isPrevious?: boolean | undefined;
24
33
  borderRadius?: string | undefined;
@@ -19,10 +19,10 @@ import DropDown from '../common/dropdown';
19
19
  import { THEME_COLORS } from '../UIHelper/constants';
20
20
  import { OGMetadata } from './Message/OGMetadata';
21
21
  import PollMessage from './Message/PollMessage';
22
- import ForwardMessagePopup from 'common/popups/forwardMessage';
22
+ import ForwardMessagePopup, { IForwardMessageNote, IForwardPreviewMessage } from 'common/popups/forwardMessage';
23
23
  import { createOrGetDirectChannel, switchChannelActiveChannel, handleSendMessage, handleGetMessage, blockUsers, unBlockUsers } from 'helpers/methods';
24
24
  import { MESSAGE_TYPE } from 'types/enum';
25
- export { SceytChat, ChannelList, Channel, Chat, ChatHeader, MessageList, SendMessage, ChannelDetails, MessagesScrollToBottomButton, MessagesScrollToUnreadMentionsButton, MessagesSearch, CreateChannel, ChannelSearch, Avatar, DropDown, Attachment, PollMessage, OGMetadata, EmojisPopup, FrequentlyEmojis, SceytChatUIKitTheme, ThemeMode, THEME_COLORS, MESSAGE_TYPE, handleSendMessage, handleGetMessage, createOrGetDirectChannel, switchChannelActiveChannel, blockUsers, unBlockUsers, ForwardMessagePopup };
25
+ export { SceytChat, ChannelList, Channel, Chat, ChatHeader, MessageList, SendMessage, ChannelDetails, MessagesScrollToBottomButton, MessagesScrollToUnreadMentionsButton, MessagesSearch, CreateChannel, ChannelSearch, Avatar, DropDown, Attachment, PollMessage, OGMetadata, EmojisPopup, FrequentlyEmojis, SceytChatUIKitTheme, ThemeMode, THEME_COLORS, MESSAGE_TYPE, handleSendMessage, handleGetMessage, createOrGetDirectChannel, switchChannelActiveChannel, blockUsers, unBlockUsers, ForwardMessagePopup, IForwardMessageNote, IForwardPreviewMessage };
26
26
  declare global {
27
27
  interface Window {
28
28
  sceytTabNotifications: any;