sceyt-chat-react-uikit 1.7.5-beta.11 → 1.7.5-beta.13
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 +2 -22
- package/components/Message/MessageBody/index.d.ts +2 -22
- package/components/Message/OGMetadata/index.d.ts +2 -1
- package/components/Messages/MessageList/index.d.ts +2 -17
- package/components/Messages/index.d.ts +2 -17
- package/index.js +234 -218
- package/index.modern.js +234 -218
- package/messageUtils/index.d.ts +2 -1
- package/package.json +1 -1
- package/types/index.d.ts +22 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAttachment, IChannel, IMarker, IMessage, IUser, ITabsStyles, IListItemStyles, ILabels, MessageInfoTab } from '../../types';
|
|
1
|
+
import { IAttachment, IChannel, IMarker, IMessage, IUser, ITabsStyles, IListItemStyles, ILabels, MessageInfoTab, OGMetadataProps } from '../../types';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
export interface IMessageActions {
|
|
4
4
|
message: IMessage;
|
|
@@ -201,27 +201,7 @@ export interface IMessageProps {
|
|
|
201
201
|
messageTextLineHeight?: string;
|
|
202
202
|
messageTimeColorOnAttachment?: string;
|
|
203
203
|
shouldOpenUserProfileForMention?: boolean;
|
|
204
|
-
ogMetadataProps?:
|
|
205
|
-
maxWidth?: number;
|
|
206
|
-
maxHeight?: number;
|
|
207
|
-
ogLayoutOrder?: 'link-first' | 'og-first';
|
|
208
|
-
ogShowUrl?: boolean;
|
|
209
|
-
ogShowTitle?: boolean;
|
|
210
|
-
ogShowDescription?: boolean;
|
|
211
|
-
ogShowFavicon?: boolean;
|
|
212
|
-
order?: {
|
|
213
|
-
image?: number;
|
|
214
|
-
title?: number;
|
|
215
|
-
description?: number;
|
|
216
|
-
link?: number;
|
|
217
|
-
};
|
|
218
|
-
ogContainerBorderRadius?: string | number;
|
|
219
|
-
ogContainerPadding?: string;
|
|
220
|
-
ogContainerClassName?: string;
|
|
221
|
-
ogContainerShowBackground?: boolean;
|
|
222
|
-
ogContainerBackground?: string;
|
|
223
|
-
infoPadding?: string;
|
|
224
|
-
};
|
|
204
|
+
ogMetadataProps?: OGMetadataProps;
|
|
225
205
|
showInfoMessageProps?: {
|
|
226
206
|
togglePopup?: () => void;
|
|
227
207
|
labels?: ILabels;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
import { IAttachment, IChannel, IMessage, IUser } from 'types';
|
|
2
|
+
import { IAttachment, IChannel, IMessage, IUser, OGMetadataProps } from 'types';
|
|
3
3
|
import { IMessageActions, IMessageStyles } from '../Message.types';
|
|
4
4
|
interface IMessageBodyProps {
|
|
5
5
|
message: IMessage;
|
|
@@ -136,27 +136,7 @@ interface IMessageBodyProps {
|
|
|
136
136
|
messageTextRef: React.RefObject<HTMLSpanElement>;
|
|
137
137
|
handleOpenUserProfile: (user: IUser) => void;
|
|
138
138
|
shouldOpenUserProfileForMention?: boolean;
|
|
139
|
-
ogMetadataProps?:
|
|
140
|
-
maxWidth?: number;
|
|
141
|
-
maxHeight?: number;
|
|
142
|
-
ogLayoutOrder?: 'link-first' | 'og-first';
|
|
143
|
-
ogShowUrl?: boolean;
|
|
144
|
-
ogShowTitle?: boolean;
|
|
145
|
-
ogShowDescription?: boolean;
|
|
146
|
-
ogShowFavicon?: boolean;
|
|
147
|
-
order?: {
|
|
148
|
-
image?: number;
|
|
149
|
-
title?: number;
|
|
150
|
-
description?: number;
|
|
151
|
-
link?: number;
|
|
152
|
-
};
|
|
153
|
-
ogContainerBorderRadius?: string | number;
|
|
154
|
-
ogContainerPadding?: string;
|
|
155
|
-
ogContainerClassName?: string;
|
|
156
|
-
ogContainerShowBackground?: boolean;
|
|
157
|
-
ogContainerBackground?: string;
|
|
158
|
-
infoPadding?: string;
|
|
159
|
-
};
|
|
139
|
+
ogMetadataProps?: OGMetadataProps;
|
|
160
140
|
unsupportedMessage: boolean;
|
|
161
141
|
}
|
|
162
142
|
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, 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, theme, 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 }: IMessageBodyProps) => React.JSX.Element>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IAttachment } from '../../../types';
|
|
3
|
-
declare const OGMetadata: ({ attachments, state, incoming, ogShowUrl, ogShowTitle, ogShowDescription, ogShowFavicon, order, maxWidth, maxHeight, ogContainerBorderRadius, ogContainerPadding, ogContainerClassName, ogContainerShowBackground, ogContainerBackground, infoPadding, ogContainerMargin, target, metadataGetSuccessCallback }: {
|
|
3
|
+
declare const OGMetadata: ({ attachments, state, incoming, ogShowUrl, ogShowTitle, ogShowDescription, ogShowFavicon, order, maxWidth, maxHeight, ogContainerBorderRadius, ogContainerPadding, ogContainerClassName, ogContainerShowBackground, ogContainerBackground, infoPadding, ogContainerMargin, target, isInviteLink, metadataGetSuccessCallback }: {
|
|
4
4
|
attachments: IAttachment[];
|
|
5
5
|
state: string;
|
|
6
6
|
incoming: boolean;
|
|
@@ -24,6 +24,7 @@ declare const OGMetadata: ({ attachments, state, incoming, ogShowUrl, ogShowTitl
|
|
|
24
24
|
infoPadding?: string | undefined;
|
|
25
25
|
ogContainerMargin?: string | undefined;
|
|
26
26
|
target?: string | undefined;
|
|
27
|
+
isInviteLink?: boolean | undefined;
|
|
27
28
|
metadataGetSuccessCallback?: ((url: string, success: boolean, hasImage: boolean) => void) | undefined;
|
|
28
29
|
}) => React.JSX.Element;
|
|
29
30
|
export { OGMetadata };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
import { IAttachment, IChannel, IMarker, IMessage, IUser, ILabels, MessageInfoTab, ITabsStyles, IListItemStyles } from '../../../types';
|
|
2
|
+
import { IAttachment, IChannel, IMarker, IMessage, IUser, ILabels, MessageInfoTab, ITabsStyles, IListItemStyles, OGMetadataProps } from '../../../types';
|
|
3
3
|
import { IAttachmentProperties, IMessageStyles } from '../../Message/Message.types';
|
|
4
4
|
import { HiddenMessageProperty } from 'types/enum';
|
|
5
5
|
interface MessagesProps {
|
|
@@ -202,22 +202,7 @@ interface MessagesProps {
|
|
|
202
202
|
tabsStyles?: ITabsStyles;
|
|
203
203
|
listItemStyles?: IListItemStyles;
|
|
204
204
|
};
|
|
205
|
-
ogMetadataProps?:
|
|
206
|
-
maxWidth?: number;
|
|
207
|
-
maxHeight?: number;
|
|
208
|
-
ogLayoutOrder?: 'link-first' | 'og-first';
|
|
209
|
-
ogShowUrl?: boolean;
|
|
210
|
-
ogShowTitle?: boolean;
|
|
211
|
-
ogShowDescription?: boolean;
|
|
212
|
-
ogShowFavicon?: boolean;
|
|
213
|
-
order?: {
|
|
214
|
-
image?: number;
|
|
215
|
-
title?: number;
|
|
216
|
-
description?: number;
|
|
217
|
-
link?: number;
|
|
218
|
-
};
|
|
219
|
-
infoPadding?: string;
|
|
220
|
-
};
|
|
205
|
+
ogMetadataProps?: OGMetadataProps;
|
|
221
206
|
}
|
|
222
207
|
declare const MessageList: React.FC<MessagesProps>;
|
|
223
208
|
export default MessageList;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
import { IAttachment, IChannel, IMarker, IMessage, IUser, MessageInfoTab, ILabels, ITabsStyles, IListItemStyles } from '../../types';
|
|
2
|
+
import { IAttachment, IChannel, IMarker, IMessage, IUser, MessageInfoTab, ILabels, ITabsStyles, IListItemStyles, OGMetadataProps } from '../../types';
|
|
3
3
|
import { IAttachmentProperties, IMessageStyles } from '../Message/Message.types';
|
|
4
4
|
import { HiddenMessageProperty } from 'types/enum';
|
|
5
5
|
interface MessagesProps {
|
|
@@ -201,22 +201,7 @@ interface MessagesProps {
|
|
|
201
201
|
tabsStyles?: ITabsStyles;
|
|
202
202
|
listItemStyles?: IListItemStyles;
|
|
203
203
|
};
|
|
204
|
-
ogMetadataProps?:
|
|
205
|
-
maxWidth?: number;
|
|
206
|
-
maxHeight?: number;
|
|
207
|
-
ogLayoutOrder?: 'link-first' | 'og-first';
|
|
208
|
-
ogShowUrl?: boolean;
|
|
209
|
-
ogShowTitle?: boolean;
|
|
210
|
-
ogShowDescription?: boolean;
|
|
211
|
-
ogShowFavicon?: boolean;
|
|
212
|
-
order?: {
|
|
213
|
-
image?: number;
|
|
214
|
-
title?: number;
|
|
215
|
-
description?: number;
|
|
216
|
-
link?: number;
|
|
217
|
-
};
|
|
218
|
-
infoPadding?: string;
|
|
219
|
-
};
|
|
204
|
+
ogMetadataProps?: OGMetadataProps;
|
|
220
205
|
}
|
|
221
206
|
declare const MessagesContainer: React.FC<MessagesProps>;
|
|
222
207
|
export default MessagesContainer;
|