sceyt-chat-react-uikit 1.7.4-beta.7 → 1.7.4-beta.8
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 +21 -0
- package/components/Message/MessageBody/index.d.ts +22 -1
- package/components/Message/OGMetadata/index.d.ts +20 -1
- package/components/Message/index.d.ts +1 -1
- package/components/Messages/MessageList/index.d.ts +16 -0
- package/components/Messages/index.d.ts +16 -0
- package/index.js +499 -387
- package/index.modern.js +499 -387
- package/package.json +1 -1
|
@@ -195,6 +195,27 @@ export interface IMessageProps {
|
|
|
195
195
|
messageTextLineHeight?: string;
|
|
196
196
|
messageTimeColorOnAttachment?: string;
|
|
197
197
|
shouldOpenUserProfileForMention?: boolean;
|
|
198
|
+
ogMetadataProps?: {
|
|
199
|
+
maxWidth?: number;
|
|
200
|
+
maxHeight?: number;
|
|
201
|
+
ogLayoutOrder?: 'link-first' | 'og-first';
|
|
202
|
+
ogShowUrl?: boolean;
|
|
203
|
+
ogShowTitle?: boolean;
|
|
204
|
+
ogShowDescription?: boolean;
|
|
205
|
+
ogShowFavicon?: boolean;
|
|
206
|
+
order?: {
|
|
207
|
+
image?: number;
|
|
208
|
+
title?: number;
|
|
209
|
+
description?: number;
|
|
210
|
+
link?: number;
|
|
211
|
+
};
|
|
212
|
+
ogContainerBorderRadius?: string | number;
|
|
213
|
+
ogContainerPadding?: string;
|
|
214
|
+
ogContainerClassName?: string;
|
|
215
|
+
ogContainerShowBackground?: boolean;
|
|
216
|
+
ogContainerBackground?: string;
|
|
217
|
+
infoPadding?: string;
|
|
218
|
+
};
|
|
198
219
|
showInfoMessageProps?: {
|
|
199
220
|
togglePopup?: () => void;
|
|
200
221
|
labels?: ILabels;
|
|
@@ -132,7 +132,28 @@ interface IMessageBodyProps {
|
|
|
132
132
|
messageTextRef: React.RefObject<HTMLSpanElement>;
|
|
133
133
|
handleOpenUserProfile: (user: IUser) => void;
|
|
134
134
|
shouldOpenUserProfileForMention?: boolean;
|
|
135
|
+
ogMetadataProps?: {
|
|
136
|
+
maxWidth?: number;
|
|
137
|
+
maxHeight?: number;
|
|
138
|
+
ogLayoutOrder?: 'link-first' | 'og-first';
|
|
139
|
+
ogShowUrl?: boolean;
|
|
140
|
+
ogShowTitle?: boolean;
|
|
141
|
+
ogShowDescription?: boolean;
|
|
142
|
+
ogShowFavicon?: boolean;
|
|
143
|
+
order?: {
|
|
144
|
+
image?: number;
|
|
145
|
+
title?: number;
|
|
146
|
+
description?: number;
|
|
147
|
+
link?: number;
|
|
148
|
+
};
|
|
149
|
+
ogContainerBorderRadius?: string | number;
|
|
150
|
+
ogContainerPadding?: string;
|
|
151
|
+
ogContainerClassName?: string;
|
|
152
|
+
ogContainerShowBackground?: boolean;
|
|
153
|
+
ogContainerBackground?: string;
|
|
154
|
+
infoPadding?: string;
|
|
155
|
+
};
|
|
135
156
|
unsupportedMessage: boolean;
|
|
136
157
|
}
|
|
137
|
-
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, unsupportedMessage }: IMessageBodyProps) => React.JSX.Element>;
|
|
158
|
+
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, ogMetadataProps, unsupportedMessage }: IMessageBodyProps) => React.JSX.Element>;
|
|
138
159
|
export default _default;
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IAttachment } from '../../../types';
|
|
3
|
-
declare const OGMetadata: ({ attachments, state, incoming, target }: {
|
|
3
|
+
declare const OGMetadata: ({ attachments, state, incoming, ogShowUrl, ogShowTitle, ogShowDescription, ogShowFavicon, order, maxWidth, maxHeight, ogContainerBorderRadius, ogContainerPadding, ogContainerClassName, ogContainerShowBackground, ogContainerBackground, infoPadding, ogContainerMargin, target }: {
|
|
4
4
|
attachments: IAttachment[];
|
|
5
5
|
state: string;
|
|
6
6
|
incoming: boolean;
|
|
7
|
+
ogShowUrl?: boolean | undefined;
|
|
8
|
+
ogShowTitle?: boolean | undefined;
|
|
9
|
+
ogShowDescription?: boolean | undefined;
|
|
10
|
+
ogShowFavicon?: boolean | undefined;
|
|
11
|
+
order?: {
|
|
12
|
+
image?: number | undefined;
|
|
13
|
+
title?: number | undefined;
|
|
14
|
+
description?: number | undefined;
|
|
15
|
+
link?: number | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
maxWidth?: number | undefined;
|
|
18
|
+
maxHeight?: number | undefined;
|
|
19
|
+
ogContainerBorderRadius?: string | number | undefined;
|
|
20
|
+
ogContainerPadding?: string | undefined;
|
|
21
|
+
ogContainerClassName?: string | undefined;
|
|
22
|
+
ogContainerShowBackground?: boolean | undefined;
|
|
23
|
+
ogContainerBackground?: string | undefined;
|
|
24
|
+
infoPadding?: string | undefined;
|
|
25
|
+
ogContainerMargin?: string | undefined;
|
|
7
26
|
target?: string | undefined;
|
|
8
27
|
}) => React.JSX.Element;
|
|
9
28
|
export { OGMetadata };
|
|
@@ -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, 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>;
|
|
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, ogMetadataProps, showInfoMessageProps }: IMessageProps) => React.JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -196,6 +196,22 @@ interface MessagesProps {
|
|
|
196
196
|
tabsStyles?: ITabsStyles;
|
|
197
197
|
listItemStyles?: IListItemStyles;
|
|
198
198
|
};
|
|
199
|
+
ogMetadataProps?: {
|
|
200
|
+
maxWidth?: number;
|
|
201
|
+
maxHeight?: number;
|
|
202
|
+
ogLayoutOrder?: 'link-first' | 'og-first';
|
|
203
|
+
ogShowUrl?: boolean;
|
|
204
|
+
ogShowTitle?: boolean;
|
|
205
|
+
ogShowDescription?: boolean;
|
|
206
|
+
ogShowFavicon?: boolean;
|
|
207
|
+
order?: {
|
|
208
|
+
image?: number;
|
|
209
|
+
title?: number;
|
|
210
|
+
description?: number;
|
|
211
|
+
link?: number;
|
|
212
|
+
};
|
|
213
|
+
infoPadding?: string;
|
|
214
|
+
};
|
|
199
215
|
}
|
|
200
216
|
declare const MessageList: React.FC<MessagesProps>;
|
|
201
217
|
export default MessageList;
|
|
@@ -195,6 +195,22 @@ interface MessagesProps {
|
|
|
195
195
|
tabsStyles?: ITabsStyles;
|
|
196
196
|
listItemStyles?: IListItemStyles;
|
|
197
197
|
};
|
|
198
|
+
ogMetadataProps?: {
|
|
199
|
+
maxWidth?: number;
|
|
200
|
+
maxHeight?: number;
|
|
201
|
+
ogLayoutOrder?: 'link-first' | 'og-first';
|
|
202
|
+
ogShowUrl?: boolean;
|
|
203
|
+
ogShowTitle?: boolean;
|
|
204
|
+
ogShowDescription?: boolean;
|
|
205
|
+
ogShowFavicon?: boolean;
|
|
206
|
+
order?: {
|
|
207
|
+
image?: number;
|
|
208
|
+
title?: number;
|
|
209
|
+
description?: number;
|
|
210
|
+
link?: number;
|
|
211
|
+
};
|
|
212
|
+
infoPadding?: string;
|
|
213
|
+
};
|
|
198
214
|
}
|
|
199
215
|
declare const MessagesContainer: React.FC<MessagesProps>;
|
|
200
216
|
export default MessagesContainer;
|