sceyt-chat-react-uikit 1.7.5-beta.9 → 1.7.5

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.
@@ -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;
@@ -64,6 +64,7 @@ interface ICustomMessageItem {
64
64
  isThreadMessage?: boolean;
65
65
  handleOpenUserProfile: (user: IUser) => void;
66
66
  unsupportedMessage: boolean;
67
+ onInviteLinkClick?: (key: string) => void;
67
68
  }
68
69
  export interface IMessageProps {
69
70
  message: IMessage;
@@ -201,27 +202,7 @@ export interface IMessageProps {
201
202
  messageTextLineHeight?: string;
202
203
  messageTimeColorOnAttachment?: string;
203
204
  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
- };
205
+ ogMetadataProps?: OGMetadataProps;
225
206
  showInfoMessageProps?: {
226
207
  togglePopup?: () => void;
227
208
  labels?: ILabels;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export default function MessageActions({ isPollMessage, editModeToggle, channel, handleResendMessage, handleOpenDeleteMessage, handleOpenForwardMessage, handleCopyMessage, handleReportMessage, messageStatus, handleSelectMessage, handleEndVote, handleReplyMessage, handleOpenInfoMessage, isThreadMessage, rtlDirection, showMessageReaction, showEditMessage, showCopyMessage, showReplyMessage, showReplyMessageInThread, showForwardMessage, showDeleteMessage, showSelectMessage, showReportMessage, showInfoMessage, infoIconOrder, reactionIcon, editIcon, copyIcon, replyIcon, replyInThreadIcon, 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, editModeToggle, channel, handleResendMessage, handleOpenDeleteMessage, handleOpenForwardMessage, handleCopyMessage, handleReportMessage, messageStatus, handleSelectMessage, handleRetractVote, handleEndVote, handleReplyMessage, handleOpenInfoMessage, isThreadMessage, rtlDirection, 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;
@@ -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,28 +136,9 @@ 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;
141
+ onInviteLinkClick?: (key: string) => void;
161
142
  }
162
- 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>;
143
+ 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, onInviteLinkClick }: IMessageBodyProps) => React.JSX.Element>;
163
144
  export default _default;
@@ -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 {
@@ -73,6 +73,7 @@ interface MessagesProps {
73
73
  handleOpenUserProfile: (user: IUser) => void;
74
74
  isThreadMessage?: boolean;
75
75
  unsupportedMessage: boolean;
76
+ onInviteLinkClick?: (key: string) => void;
76
77
  }>;
77
78
  messageReaction?: boolean;
78
79
  editMessage?: boolean;
@@ -202,22 +203,7 @@ interface MessagesProps {
202
203
  tabsStyles?: ITabsStyles;
203
204
  listItemStyles?: IListItemStyles;
204
205
  };
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
- };
206
+ ogMetadataProps?: OGMetadataProps;
221
207
  }
222
208
  declare const MessageList: React.FC<MessagesProps>;
223
209
  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;