sceyt-chat-react-uikit 1.7.5-beta.14 → 1.7.5-beta.16

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.
@@ -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;
@@ -138,6 +138,7 @@ interface IMessageBodyProps {
138
138
  shouldOpenUserProfileForMention?: boolean;
139
139
  ogMetadataProps?: OGMetadataProps;
140
140
  unsupportedMessage: boolean;
141
+ onInviteLinkClick?: (key: string) => void;
141
142
  }
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>;
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>;
143
144
  export default _default;
@@ -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;
package/index.js CHANGED
@@ -13652,12 +13652,6 @@ var CopiedTooltip = styled__default.span(_templateObject41 || (_templateObject41
13652
13652
  return p.color;
13653
13653
  });
13654
13654
 
13655
- var SceytReduxContext = /*#__PURE__*/React__default.createContext(null);
13656
-
13657
- var useSelector = reactRedux.createSelectorHook(SceytReduxContext);
13658
- var useDispatch = reactRedux.createDispatchHook(SceytReduxContext);
13659
- var useStore = reactRedux.createStoreHook(SceytReduxContext);
13660
-
13661
13655
  var _templateObject$1, _templateObject2$1, _templateObject3$1, _templateObject4$1, _templateObject5$1;
13662
13656
  var StatusText = styled__default.span(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n color: ", ";\n font-weight: 400;\n font-size: ", ";\n"])), function (props) {
13663
13657
  return props.color;
@@ -13793,11 +13787,8 @@ var MessageTextFormat = function MessageTextFormat(_ref2) {
13793
13787
  _ref2$target = _ref2.target,
13794
13788
  target = _ref2$target === void 0 ? '_blank' : _ref2$target,
13795
13789
  _ref2$isInviteLink = _ref2.isInviteLink,
13796
- isInviteLink = _ref2$isInviteLink === void 0 ? false : _ref2$isInviteLink;
13797
- var dispatch = useDispatch();
13798
- var onInviteLinkClick = function onInviteLinkClick(key) {
13799
- dispatch(getChannelByInviteKeyAC(key));
13800
- };
13790
+ isInviteLink = _ref2$isInviteLink === void 0 ? false : _ref2$isInviteLink,
13791
+ onInviteLinkClick = _ref2.onInviteLinkClick;
13801
13792
  try {
13802
13793
  var messageText = [];
13803
13794
  var linkify = new LinkifyIt();
@@ -18823,7 +18814,8 @@ function sendMessage(action) {
18823
18814
  metadata: messageResponse.metadata,
18824
18815
  parentMessage: messageResponse.parentMessage,
18825
18816
  repliedInThread: messageResponse.repliedInThread,
18826
- createdAt: messageResponse.createdAt
18817
+ createdAt: messageResponse.createdAt,
18818
+ channelId: channel.id
18827
18819
  };
18828
18820
  _context2.n = 9;
18829
18821
  return effects.put(updateMessageAC(messageToSend.tid, JSON.parse(JSON.stringify(messageUpdateData))));
@@ -19222,7 +19214,8 @@ function forwardMessage(action) {
19222
19214
  metadata: messageResponse.metadata,
19223
19215
  parentMessage: messageResponse.parentMessage,
19224
19216
  repliedInThread: messageResponse.repliedInThread,
19225
- createdAt: messageResponse.createdAt
19217
+ createdAt: messageResponse.createdAt,
19218
+ channelId: channel.id
19226
19219
  };
19227
19220
  if (!(channelId === activeChannelId)) {
19228
19221
  _context5.n = 15;
@@ -19468,7 +19461,8 @@ function resendMessage(action) {
19468
19461
  parentMessage: messageResponse.parentMessage,
19469
19462
  repliedInThread: messageResponse.repliedInThread,
19470
19463
  bodyAttributes: messageResponse.bodyAttributes,
19471
- createdAt: messageResponse.createdAt
19464
+ createdAt: messageResponse.createdAt,
19465
+ channelId: channel.id
19472
19466
  };
19473
19467
  removePendingMessageFromMap(channel.id, messageCopy.tid);
19474
19468
  _context6.n = 20;
@@ -19544,7 +19538,8 @@ function resendMessage(action) {
19544
19538
  parentMessage: _messageResponse.parentMessage,
19545
19539
  repliedInThread: _messageResponse.repliedInThread,
19546
19540
  bodyAttributes: _messageResponse.bodyAttributes,
19547
- createdAt: _messageResponse.createdAt
19541
+ createdAt: _messageResponse.createdAt,
19542
+ channelId: channel.id
19548
19543
  };
19549
19544
  isInActiveChannel = (_getMessagesFromMap = getMessagesFromMap(channelId)) === null || _getMessagesFromMap === void 0 ? void 0 : _getMessagesFromMap.find(function (message) {
19550
19545
  return message.id === _messageCopy2.tid;
@@ -22358,6 +22353,12 @@ var store = configureStore({
22358
22353
  });
22359
22354
  sagaMiddleware.run(rootSaga);
22360
22355
 
22356
+ var SceytReduxContext = /*#__PURE__*/React__default.createContext(null);
22357
+
22358
+ var useSelector = reactRedux.createSelectorHook(SceytReduxContext);
22359
+ var useDispatch = reactRedux.createDispatchHook(SceytReduxContext);
22360
+ var useStore = reactRedux.createStoreHook(SceytReduxContext);
22361
+
22361
22362
  var channelsSelector = function channelsSelector(store) {
22362
22363
  return store.ChannelReducer.channels;
22363
22364
  };
@@ -23820,7 +23821,7 @@ var Channel = function Channel(_ref3) {
23820
23821
  draftMessageText: draftMessageText,
23821
23822
  lastMessage: draftMessage || lastMessage,
23822
23823
  isDirectChannel: isDirectChannel,
23823
- unsupportedMessage: unsupportedMessage
23824
+ unsupportedMessage: unsupportedMessage && !getCustomLatestMessage
23824
23825
  });
23825
23826
  }, [typingOrRecording === null || typingOrRecording === void 0 ? void 0 : typingOrRecording.isTyping, typingOrRecording === null || typingOrRecording === void 0 ? void 0 : typingOrRecording.isRecording, draftMessageText, lastMessage, user, contactsMap, getFromContacts, lastMessageMetas, accentColor, typingOrRecording, channel, isDirectChannel, unsupportedMessage]);
23826
23827
  var getCustomLatestMessageComponent = React.useCallback(function (_ref4) {
@@ -35007,7 +35008,8 @@ var MessageBody = function MessageBody(_ref) {
35007
35008
  handleOpenUserProfile = _ref.handleOpenUserProfile,
35008
35009
  shouldOpenUserProfileForMention = _ref.shouldOpenUserProfileForMention,
35009
35010
  ogMetadataProps = _ref.ogMetadataProps,
35010
- unsupportedMessage = _ref.unsupportedMessage;
35011
+ unsupportedMessage = _ref.unsupportedMessage,
35012
+ onInviteLinkClick = _ref.onInviteLinkClick;
35011
35013
  var _useColor = useColors(),
35012
35014
  accentColor = _useColor[THEME_COLORS.ACCENT],
35013
35015
  textPrimary = _useColor[THEME_COLORS.TEXT_PRIMARY],
@@ -35289,7 +35291,10 @@ var MessageBody = function MessageBody(_ref) {
35289
35291
  textSecondary: textSecondary,
35290
35292
  onMentionNameClick: handleOpenUserProfile,
35291
35293
  shouldOpenUserProfileForMention: !!shouldOpenUserProfileForMention,
35292
- unsupportedMessage: unsupportedMessage
35294
+ unsupportedMessage: unsupportedMessage,
35295
+ target: ogMetadataProps === null || ogMetadataProps === void 0 ? void 0 : ogMetadataProps.target,
35296
+ isInviteLink: (ogMetadataProps === null || ogMetadataProps === void 0 ? void 0 : ogMetadataProps.isInviteLink) || false,
35297
+ onInviteLinkClick: onInviteLinkClick
35293
35298
  }))), !withAttachments && message.state === MESSAGE_STATUS.DELETE ? (/*#__PURE__*/React__default.createElement(MessageStatusDeleted$1, {
35294
35299
  color: textSecondary
35295
35300
  }, " Message was deleted. ")) : '', !ogContainerFirst && linkAttachment && !mediaAttachment && !withMediaAttachment && !fileAttachment && (/*#__PURE__*/React__default.createElement(OGMetadata, {
@@ -36372,6 +36377,9 @@ var Message$1 = function Message(_ref) {
36372
36377
  var unsupportedMessage = React.useMemo(function () {
36373
36378
  return isMessageUnsupported(message);
36374
36379
  }, [message]);
36380
+ var onInviteLinkClick = function onInviteLinkClick(key) {
36381
+ dispatch(getChannelByInviteKeyAC(key));
36382
+ };
36375
36383
  return /*#__PURE__*/React__default.createElement(MessageItem, {
36376
36384
  className: 'message_item',
36377
36385
  rtl: ownMessageOnRightSide && !message.incoming,
@@ -36445,8 +36453,10 @@ var Message$1 = function Message(_ref) {
36445
36453
  handleMediaItemClick: handleMediaItemClick,
36446
36454
  isThreadMessage: isThreadMessage,
36447
36455
  handleOpenUserProfile: handleOpenUserProfile,
36448
- unsupportedMessage: unsupportedMessage
36456
+ unsupportedMessage: unsupportedMessage,
36457
+ onInviteLinkClick: onInviteLinkClick
36449
36458
  })) : (/*#__PURE__*/React__default.createElement(MessageBody$1, {
36459
+ onInviteLinkClick: onInviteLinkClick,
36450
36460
  handleRetractVote: handleRetractVote,
36451
36461
  handleEndVote: handleEndVote,
36452
36462
  message: message,
@@ -44075,7 +44085,7 @@ function InviteLinkModal(_ref) {
44075
44085
  })), showCopiedToast && (/*#__PURE__*/React__default.createElement(CopiedTooltip, {
44076
44086
  background: tooltipBackground,
44077
44087
  color: textOnPrimary
44078
- }, "Copied")))), showHistorySection && /*#__PURE__*/React__default.createElement(SectionTitle, {
44088
+ }, "Link copied")))), showHistorySection && /*#__PURE__*/React__default.createElement(SectionTitle, {
44079
44089
  color: textSecondary
44080
44090
  }, historyTitle), showHistorySection && (/*#__PURE__*/React__default.createElement(HistoryRow, null, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(FieldLabel, {
44081
44091
  color: textPrimary
package/index.modern.js CHANGED
@@ -13651,12 +13651,6 @@ var CopiedTooltip = styled.span(_templateObject41 || (_templateObject41 = _tagge
13651
13651
  return p.color;
13652
13652
  });
13653
13653
 
13654
- var SceytReduxContext = /*#__PURE__*/React__default.createContext(null);
13655
-
13656
- var useSelector = createSelectorHook(SceytReduxContext);
13657
- var useDispatch = createDispatchHook(SceytReduxContext);
13658
- var useStore = createStoreHook(SceytReduxContext);
13659
-
13660
13654
  var _templateObject$1, _templateObject2$1, _templateObject3$1, _templateObject4$1, _templateObject5$1;
13661
13655
  var StatusText = styled.span(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n color: ", ";\n font-weight: 400;\n font-size: ", ";\n"])), function (props) {
13662
13656
  return props.color;
@@ -13792,11 +13786,8 @@ var MessageTextFormat = function MessageTextFormat(_ref2) {
13792
13786
  _ref2$target = _ref2.target,
13793
13787
  target = _ref2$target === void 0 ? '_blank' : _ref2$target,
13794
13788
  _ref2$isInviteLink = _ref2.isInviteLink,
13795
- isInviteLink = _ref2$isInviteLink === void 0 ? false : _ref2$isInviteLink;
13796
- var dispatch = useDispatch();
13797
- var onInviteLinkClick = function onInviteLinkClick(key) {
13798
- dispatch(getChannelByInviteKeyAC(key));
13799
- };
13789
+ isInviteLink = _ref2$isInviteLink === void 0 ? false : _ref2$isInviteLink,
13790
+ onInviteLinkClick = _ref2.onInviteLinkClick;
13800
13791
  try {
13801
13792
  var messageText = [];
13802
13793
  var linkify = new LinkifyIt();
@@ -18822,7 +18813,8 @@ function sendMessage(action) {
18822
18813
  metadata: messageResponse.metadata,
18823
18814
  parentMessage: messageResponse.parentMessage,
18824
18815
  repliedInThread: messageResponse.repliedInThread,
18825
- createdAt: messageResponse.createdAt
18816
+ createdAt: messageResponse.createdAt,
18817
+ channelId: channel.id
18826
18818
  };
18827
18819
  _context2.n = 9;
18828
18820
  return put(updateMessageAC(messageToSend.tid, JSON.parse(JSON.stringify(messageUpdateData))));
@@ -19221,7 +19213,8 @@ function forwardMessage(action) {
19221
19213
  metadata: messageResponse.metadata,
19222
19214
  parentMessage: messageResponse.parentMessage,
19223
19215
  repliedInThread: messageResponse.repliedInThread,
19224
- createdAt: messageResponse.createdAt
19216
+ createdAt: messageResponse.createdAt,
19217
+ channelId: channel.id
19225
19218
  };
19226
19219
  if (!(channelId === activeChannelId)) {
19227
19220
  _context5.n = 15;
@@ -19467,7 +19460,8 @@ function resendMessage(action) {
19467
19460
  parentMessage: messageResponse.parentMessage,
19468
19461
  repliedInThread: messageResponse.repliedInThread,
19469
19462
  bodyAttributes: messageResponse.bodyAttributes,
19470
- createdAt: messageResponse.createdAt
19463
+ createdAt: messageResponse.createdAt,
19464
+ channelId: channel.id
19471
19465
  };
19472
19466
  removePendingMessageFromMap(channel.id, messageCopy.tid);
19473
19467
  _context6.n = 20;
@@ -19543,7 +19537,8 @@ function resendMessage(action) {
19543
19537
  parentMessage: _messageResponse.parentMessage,
19544
19538
  repliedInThread: _messageResponse.repliedInThread,
19545
19539
  bodyAttributes: _messageResponse.bodyAttributes,
19546
- createdAt: _messageResponse.createdAt
19540
+ createdAt: _messageResponse.createdAt,
19541
+ channelId: channel.id
19547
19542
  };
19548
19543
  isInActiveChannel = (_getMessagesFromMap = getMessagesFromMap(channelId)) === null || _getMessagesFromMap === void 0 ? void 0 : _getMessagesFromMap.find(function (message) {
19549
19544
  return message.id === _messageCopy2.tid;
@@ -22357,6 +22352,12 @@ var store = configureStore({
22357
22352
  });
22358
22353
  sagaMiddleware.run(rootSaga);
22359
22354
 
22355
+ var SceytReduxContext = /*#__PURE__*/React__default.createContext(null);
22356
+
22357
+ var useSelector = createSelectorHook(SceytReduxContext);
22358
+ var useDispatch = createDispatchHook(SceytReduxContext);
22359
+ var useStore = createStoreHook(SceytReduxContext);
22360
+
22360
22361
  var channelsSelector = function channelsSelector(store) {
22361
22362
  return store.ChannelReducer.channels;
22362
22363
  };
@@ -23819,7 +23820,7 @@ var Channel = function Channel(_ref3) {
23819
23820
  draftMessageText: draftMessageText,
23820
23821
  lastMessage: draftMessage || lastMessage,
23821
23822
  isDirectChannel: isDirectChannel,
23822
- unsupportedMessage: unsupportedMessage
23823
+ unsupportedMessage: unsupportedMessage && !getCustomLatestMessage
23823
23824
  });
23824
23825
  }, [typingOrRecording === null || typingOrRecording === void 0 ? void 0 : typingOrRecording.isTyping, typingOrRecording === null || typingOrRecording === void 0 ? void 0 : typingOrRecording.isRecording, draftMessageText, lastMessage, user, contactsMap, getFromContacts, lastMessageMetas, accentColor, typingOrRecording, channel, isDirectChannel, unsupportedMessage]);
23825
23826
  var getCustomLatestMessageComponent = useCallback(function (_ref4) {
@@ -35006,7 +35007,8 @@ var MessageBody = function MessageBody(_ref) {
35006
35007
  handleOpenUserProfile = _ref.handleOpenUserProfile,
35007
35008
  shouldOpenUserProfileForMention = _ref.shouldOpenUserProfileForMention,
35008
35009
  ogMetadataProps = _ref.ogMetadataProps,
35009
- unsupportedMessage = _ref.unsupportedMessage;
35010
+ unsupportedMessage = _ref.unsupportedMessage,
35011
+ onInviteLinkClick = _ref.onInviteLinkClick;
35010
35012
  var _useColor = useColors(),
35011
35013
  accentColor = _useColor[THEME_COLORS.ACCENT],
35012
35014
  textPrimary = _useColor[THEME_COLORS.TEXT_PRIMARY],
@@ -35288,7 +35290,10 @@ var MessageBody = function MessageBody(_ref) {
35288
35290
  textSecondary: textSecondary,
35289
35291
  onMentionNameClick: handleOpenUserProfile,
35290
35292
  shouldOpenUserProfileForMention: !!shouldOpenUserProfileForMention,
35291
- unsupportedMessage: unsupportedMessage
35293
+ unsupportedMessage: unsupportedMessage,
35294
+ target: ogMetadataProps === null || ogMetadataProps === void 0 ? void 0 : ogMetadataProps.target,
35295
+ isInviteLink: (ogMetadataProps === null || ogMetadataProps === void 0 ? void 0 : ogMetadataProps.isInviteLink) || false,
35296
+ onInviteLinkClick: onInviteLinkClick
35292
35297
  }))), !withAttachments && message.state === MESSAGE_STATUS.DELETE ? (/*#__PURE__*/React__default.createElement(MessageStatusDeleted$1, {
35293
35298
  color: textSecondary
35294
35299
  }, " Message was deleted. ")) : '', !ogContainerFirst && linkAttachment && !mediaAttachment && !withMediaAttachment && !fileAttachment && (/*#__PURE__*/React__default.createElement(OGMetadata, {
@@ -36371,6 +36376,9 @@ var Message$1 = function Message(_ref) {
36371
36376
  var unsupportedMessage = useMemo(function () {
36372
36377
  return isMessageUnsupported(message);
36373
36378
  }, [message]);
36379
+ var onInviteLinkClick = function onInviteLinkClick(key) {
36380
+ dispatch(getChannelByInviteKeyAC(key));
36381
+ };
36374
36382
  return /*#__PURE__*/React__default.createElement(MessageItem, {
36375
36383
  className: 'message_item',
36376
36384
  rtl: ownMessageOnRightSide && !message.incoming,
@@ -36444,8 +36452,10 @@ var Message$1 = function Message(_ref) {
36444
36452
  handleMediaItemClick: handleMediaItemClick,
36445
36453
  isThreadMessage: isThreadMessage,
36446
36454
  handleOpenUserProfile: handleOpenUserProfile,
36447
- unsupportedMessage: unsupportedMessage
36455
+ unsupportedMessage: unsupportedMessage,
36456
+ onInviteLinkClick: onInviteLinkClick
36448
36457
  })) : (/*#__PURE__*/React__default.createElement(MessageBody$1, {
36458
+ onInviteLinkClick: onInviteLinkClick,
36449
36459
  handleRetractVote: handleRetractVote,
36450
36460
  handleEndVote: handleEndVote,
36451
36461
  message: message,
@@ -44074,7 +44084,7 @@ function InviteLinkModal(_ref) {
44074
44084
  })), showCopiedToast && (/*#__PURE__*/React__default.createElement(CopiedTooltip, {
44075
44085
  background: tooltipBackground,
44076
44086
  color: textOnPrimary
44077
- }, "Copied")))), showHistorySection && /*#__PURE__*/React__default.createElement(SectionTitle, {
44087
+ }, "Link copied")))), showHistorySection && /*#__PURE__*/React__default.createElement(SectionTitle, {
44078
44088
  color: textSecondary
44079
44089
  }, historyTitle), showHistorySection && (/*#__PURE__*/React__default.createElement(HistoryRow, null, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(FieldLabel, {
44080
44090
  color: textPrimary
@@ -8,7 +8,7 @@ declare const MessageStatusIcon: ({ messageStatus, messageStatusDisplayingType,
8
8
  readIconColor?: string | undefined;
9
9
  accentColor?: string | undefined;
10
10
  }) => React.JSX.Element;
11
- declare const MessageTextFormat: ({ text, message, contactsMap, getFromContacts, isLastMessage, asSampleText, accentColor, textSecondary, onMentionNameClick, shouldOpenUserProfileForMention, unsupportedMessage, target, isInviteLink }: {
11
+ declare const MessageTextFormat: ({ text, message, contactsMap, getFromContacts, isLastMessage, asSampleText, accentColor, textSecondary, onMentionNameClick, shouldOpenUserProfileForMention, unsupportedMessage, target, isInviteLink, onInviteLinkClick }: {
12
12
  text: string;
13
13
  message: any;
14
14
  contactsMap?: IContactsMap | undefined;
@@ -22,5 +22,6 @@ declare const MessageTextFormat: ({ text, message, contactsMap, getFromContacts,
22
22
  unsupportedMessage?: boolean | undefined;
23
23
  target?: string | undefined;
24
24
  isInviteLink?: boolean | undefined;
25
+ onInviteLinkClick?: ((key: string) => void) | undefined;
25
26
  }) => any;
26
27
  export { MessageStatusIcon, MessageTextFormat };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sceyt-chat-react-uikit",
3
- "version": "1.7.5-beta.14",
3
+ "version": "1.7.5-beta.16",
4
4
  "description": "Interactive React UI Components for Sceyt Chat.",
5
5
  "author": "Sceyt",
6
6
  "license": "MIT",
package/types/index.d.ts CHANGED
@@ -346,5 +346,6 @@ export interface OGMetadataProps {
346
346
  ogContainerBackground?: string;
347
347
  infoPadding?: string;
348
348
  isInviteLink?: boolean;
349
+ target?: string;
349
350
  }
350
351
  export {};