sceyt-chat-react-uikit 1.8.6 → 1.8.7-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.
@@ -48,6 +48,11 @@ interface IChannelProps {
48
48
  }) => any;
49
49
  doNotShowMessageDeliveryTypes: string[];
50
50
  showPhoneNumber?: boolean;
51
+ channelListWidth?: number;
52
+ getCustomIconOnAvatar?: (args: {
53
+ channel: IChannel;
54
+ user: IUser;
55
+ }) => any;
51
56
  }
52
57
  declare const Channel: React.FC<IChannelProps>;
53
58
  export default Channel;
@@ -123,6 +128,8 @@ export declare const DeliveryIconCont: import("styled-components").StyledCompone
123
128
  export declare const UnreadMentionIconWrapper: import("styled-components").StyledComponent<"span", any, {
124
129
  iconColor: string;
125
130
  rightMargin?: boolean | undefined;
131
+ onAvatar?: boolean | undefined;
132
+ mainBg?: string | undefined;
126
133
  }, never>;
127
134
  export declare const TypingIndicator: import("styled-components").StyledComponent<"span", any, {}, never>;
128
135
  export declare const ReactionItem: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -9,6 +9,7 @@ interface IChannelSearchProps {
9
9
  searchInputTextColor?: string;
10
10
  fontSize?: string;
11
11
  width?: string;
12
+ isCompact?: boolean;
12
13
  }
13
14
  declare const ChannelSearch: React.FC<IChannelSearchProps>;
14
15
  export default ChannelSearch;
@@ -21,6 +21,7 @@ interface IChannelProps {
21
21
  channelSubjectColor?: string;
22
22
  channelAvatarSize?: number;
23
23
  channelAvatarTextSize?: number;
24
+ channelListWidth?: number;
24
25
  createChatWithContact: (contact: IContact) => void;
25
26
  }
26
27
  declare const ContactItem: React.FC<IChannelProps>;
@@ -78,8 +78,10 @@ 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
+ getCustomIconOnAvatar?: (channel: IChannel, user: IUser) => any;
81
82
  doNotShowMessageDeliveryTypes?: string[];
82
83
  showPhoneNumber?: boolean;
84
+ channelListWidth?: number;
83
85
  }
84
86
  declare const ChannelList: React.FC<IChannelListProps>;
85
87
  export default ChannelList;
@@ -1,5 +1,5 @@
1
1
  import { IAttachment, IChannel, IMarker, IMessage, IUser, ITabsStyles, IListItemStyles, ILabels, MessageInfoTab, OGMetadataProps } from '../../types';
2
- import { FC } from 'react';
2
+ import { FC, MutableRefObject } from 'react';
3
3
  export interface IMessageActions {
4
4
  message: IMessage;
5
5
  channel: IChannel;
@@ -201,6 +201,7 @@ export interface IMessageProps {
201
201
  };
202
202
  openedMessageMenuId?: string;
203
203
  tabIsActive?: boolean;
204
+ tabIsActiveRef?: MutableRefObject<boolean>;
204
205
  connectionStatus: string;
205
206
  messageTextFontSize?: string;
206
207
  messageTextLineHeight?: string;
@@ -0,0 +1 @@
1
+ export {};
@@ -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, 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 }: IMessageProps) => React.JSX.Element>;
4
4
  export default _default;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { IChannel, IMessage } from '../../../types';
3
3
  export declare const PRELOAD_TRIGGER_PX = 5;
4
- export declare const LATEST_EDGE_GAP_PX = 5;
4
+ export declare const LATEST_EDGE_GAP_PX = 0;
5
5
  declare type TimelineItem = {
6
6
  type: 'date-divider';
7
7
  key: string;