sceyt-chat-react-uikit 1.8.6-beta.7 → 1.8.6-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/SendMessageInput/index.d.ts +6 -1
- package/index.js +7 -2
- package/index.modern.js +7 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
import { IMessage } from '../../types';
|
|
3
|
-
interface SendMessageProps {
|
|
3
|
+
export interface SendMessageProps {
|
|
4
4
|
draggedAttachments?: boolean;
|
|
5
5
|
handleAttachmentSelected?: (state: boolean) => void;
|
|
6
6
|
handleSendMessage?: (message: IMessage, channelId: string) => Promise<IMessage>;
|
|
@@ -61,6 +61,11 @@ interface SendMessageProps {
|
|
|
61
61
|
replyEditMessageContainerBottomPosition?: string;
|
|
62
62
|
replyEditMessageContainerLeftPosition?: string;
|
|
63
63
|
replyEditMessageContainerPadding?: string;
|
|
64
|
+
customReplyMessageTypes?: string[];
|
|
65
|
+
CustomReplyMessageContainer?: FC<{
|
|
66
|
+
messageForReply: IMessage;
|
|
67
|
+
onClose: () => void;
|
|
68
|
+
}>;
|
|
64
69
|
editMessageIcon?: JSX.Element;
|
|
65
70
|
editMessageBackgroundColor?: string;
|
|
66
71
|
editMessageTextColor?: string;
|
package/index.js
CHANGED
|
@@ -50254,6 +50254,8 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
50254
50254
|
replyEditMessageContainerBottomPosition = _ref3.replyEditMessageContainerBottomPosition,
|
|
50255
50255
|
replyEditMessageContainerPadding = _ref3.replyEditMessageContainerPadding,
|
|
50256
50256
|
replyEditMessageContainerLeftPosition = _ref3.replyEditMessageContainerLeftPosition,
|
|
50257
|
+
customReplyMessageTypes = _ref3.customReplyMessageTypes,
|
|
50258
|
+
CustomReplyMessageContainer = _ref3.CustomReplyMessageContainer,
|
|
50257
50259
|
sendAttachmentSeparately = _ref3.sendAttachmentSeparately,
|
|
50258
50260
|
_ref3$allowMentionUse = _ref3.allowMentionUser,
|
|
50259
50261
|
allowMentionUser = _ref3$allowMentionUse === void 0 ? true : _ref3$allowMentionUse,
|
|
@@ -51769,7 +51771,10 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
51769
51771
|
}, /*#__PURE__*/React__default.createElement(CloseEditMode, {
|
|
51770
51772
|
color: textSecondary,
|
|
51771
51773
|
onClick: handleCloseReply
|
|
51772
|
-
}, /*#__PURE__*/React__default.createElement(SvgClose, null)),
|
|
51774
|
+
}, /*#__PURE__*/React__default.createElement(SvgClose, null)), CustomReplyMessageContainer && customReplyMessageTypes !== null && customReplyMessageTypes !== void 0 && customReplyMessageTypes.includes(messageForReply.type) ? (/*#__PURE__*/React__default.createElement(CustomReplyMessageContainer, {
|
|
51775
|
+
messageForReply: messageForReply,
|
|
51776
|
+
onClose: handleCloseReply
|
|
51777
|
+
})) : (/*#__PURE__*/React__default.createElement(ReplyMessageCont, null, !!(messageForReply.attachments && messageForReply.attachments.length) && !messageForReply.viewOnce && (messageForReply.attachments[0].type === attachmentTypes.image || messageForReply.attachments[0].type === attachmentTypes.video ? (/*#__PURE__*/React__default.createElement(Attachment$1, {
|
|
51773
51778
|
attachment: messageForReply.attachments[0],
|
|
51774
51779
|
backgroundColor: selectedFileAttachmentsBoxBackground || '',
|
|
51775
51780
|
isRepliedMessage: true
|
|
@@ -51820,7 +51825,7 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
51820
51825
|
getFromContacts: getFromContacts,
|
|
51821
51826
|
accentColor: accentColor,
|
|
51822
51827
|
textSecondary: textSecondary
|
|
51823
|
-
}))))), showLinkPreview && linkPreview && (/*#__PURE__*/React__default.createElement(LinkPreviewContainer, {
|
|
51828
|
+
})))))), showLinkPreview && linkPreview && (/*#__PURE__*/React__default.createElement(LinkPreviewContainer, {
|
|
51824
51829
|
backgroundColor: surface1Background,
|
|
51825
51830
|
borderColor: borderColor,
|
|
51826
51831
|
isClosing: isClosingPreview,
|
package/index.modern.js
CHANGED
|
@@ -50253,6 +50253,8 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
50253
50253
|
replyEditMessageContainerBottomPosition = _ref3.replyEditMessageContainerBottomPosition,
|
|
50254
50254
|
replyEditMessageContainerPadding = _ref3.replyEditMessageContainerPadding,
|
|
50255
50255
|
replyEditMessageContainerLeftPosition = _ref3.replyEditMessageContainerLeftPosition,
|
|
50256
|
+
customReplyMessageTypes = _ref3.customReplyMessageTypes,
|
|
50257
|
+
CustomReplyMessageContainer = _ref3.CustomReplyMessageContainer,
|
|
50256
50258
|
sendAttachmentSeparately = _ref3.sendAttachmentSeparately,
|
|
50257
50259
|
_ref3$allowMentionUse = _ref3.allowMentionUser,
|
|
50258
50260
|
allowMentionUser = _ref3$allowMentionUse === void 0 ? true : _ref3$allowMentionUse,
|
|
@@ -51768,7 +51770,10 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
51768
51770
|
}, /*#__PURE__*/React__default.createElement(CloseEditMode, {
|
|
51769
51771
|
color: textSecondary,
|
|
51770
51772
|
onClick: handleCloseReply
|
|
51771
|
-
}, /*#__PURE__*/React__default.createElement(SvgClose, null)),
|
|
51773
|
+
}, /*#__PURE__*/React__default.createElement(SvgClose, null)), CustomReplyMessageContainer && customReplyMessageTypes !== null && customReplyMessageTypes !== void 0 && customReplyMessageTypes.includes(messageForReply.type) ? (/*#__PURE__*/React__default.createElement(CustomReplyMessageContainer, {
|
|
51774
|
+
messageForReply: messageForReply,
|
|
51775
|
+
onClose: handleCloseReply
|
|
51776
|
+
})) : (/*#__PURE__*/React__default.createElement(ReplyMessageCont, null, !!(messageForReply.attachments && messageForReply.attachments.length) && !messageForReply.viewOnce && (messageForReply.attachments[0].type === attachmentTypes.image || messageForReply.attachments[0].type === attachmentTypes.video ? (/*#__PURE__*/React__default.createElement(Attachment$1, {
|
|
51772
51777
|
attachment: messageForReply.attachments[0],
|
|
51773
51778
|
backgroundColor: selectedFileAttachmentsBoxBackground || '',
|
|
51774
51779
|
isRepliedMessage: true
|
|
@@ -51819,7 +51824,7 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
51819
51824
|
getFromContacts: getFromContacts,
|
|
51820
51825
|
accentColor: accentColor,
|
|
51821
51826
|
textSecondary: textSecondary
|
|
51822
|
-
}))))), showLinkPreview && linkPreview && (/*#__PURE__*/React__default.createElement(LinkPreviewContainer, {
|
|
51827
|
+
})))))), showLinkPreview && linkPreview && (/*#__PURE__*/React__default.createElement(LinkPreviewContainer, {
|
|
51823
51828
|
backgroundColor: surface1Background,
|
|
51824
51829
|
borderColor: borderColor,
|
|
51825
51830
|
isClosing: isClosingPreview,
|