sceyt-chat-react-uikit 1.5.2 → 1.5.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.
- package/README.md +2 -2
- package/assets/svg/addAttachment.svg +1 -1
- package/assets/svg/addChat.svg +1 -1
- package/assets/svg/addMember.svg +1 -1
- package/assets/svg/arrowLeft.svg +2 -2
- package/assets/svg/avatar.svg +1 -1
- package/assets/svg/blockChannel.svg +1 -1
- package/assets/svg/bold.svg +5 -0
- package/assets/svg/cancel.svg +2 -2
- package/assets/svg/checkCircle.svg +5 -0
- package/assets/svg/close.svg +2 -2
- package/assets/svg/deleteChannel.svg +1 -1
- package/assets/svg/deleteUpload.svg +2 -2
- package/assets/svg/fileIcon.svg +3 -5
- package/assets/svg/italic.svg +5 -0
- package/assets/svg/linkIcon.svg +1 -1
- package/assets/svg/markAsRead.svg +2 -2
- package/assets/svg/markAsUnread.svg +6 -0
- package/assets/svg/mono.svg +5 -0
- package/assets/svg/noMessagesIcon.svg +9 -0
- package/assets/svg/notifications.svg +2 -7
- package/assets/svg/pause.svg +1 -1
- package/assets/svg/pauseRecord.svg +5 -0
- package/assets/svg/play.svg +1 -1
- package/assets/svg/playRecord.svg +2 -2
- package/assets/svg/selectionIcon.svg +5 -0
- package/assets/svg/strikethrough.svg +8 -0
- package/assets/svg/underline.svg +8 -0
- package/assets/svg/unmuteNotifications.svg +4 -0
- package/components/Attachment/index.d.ts +7 -6
- package/components/AudioRecord/index.d.ts +8 -1
- package/components/Avatar/index.d.ts +2 -0
- package/components/Channel/index.d.ts +17 -5
- package/components/ChannelDetails/Actions/index.d.ts +2 -1
- package/components/ChannelDetails/DetailsTab/Files/index.d.ts +2 -1
- package/components/ChannelDetails/DetailsTab/Media/index.d.ts +3 -2
- package/components/ChannelDetails/DetailsTab/Members/change-member-role/index.d.ts +2 -1
- package/components/ChannelDetails/DetailsTab/Members/index.d.ts +3 -2
- package/components/ChannelDetails/DetailsTab/Voices/voiceItem.d.ts +1 -3
- package/components/ChannelDetails/DetailsTab/index.d.ts +2 -1
- package/components/ChannelDetails/EditChannel/index.d.ts +2 -1
- package/components/ChannelDetails/index.d.ts +1 -1
- package/components/ChannelDetailsContainer/index.d.ts +5 -1
- package/components/ChannelList/ChannelSearch/index.d.ts +3 -0
- package/components/ChannelList/ContactItem/index.d.ts +29 -0
- package/components/ChannelList/CreateChannelButton/index.d.ts +1 -0
- package/components/ChannelList/index.d.ts +28 -16
- package/components/ChatContainer/index.d.ts +13 -5
- package/components/Message/MessageActions/index.d.ts +1 -1
- package/components/Message/TextFormat/index.d.ts +19 -0
- package/components/Message/index.d.ts +37 -5
- package/components/MessageDivider/index.d.ts +3 -2
- package/components/Messages/MessageList/index.d.ts +166 -0
- package/components/Messages/SystemMessage/index.d.ts +31 -0
- package/components/Messages/index.d.ts +26 -20
- package/components/MessagesScrollToBottomButton/index.d.ts +2 -0
- package/components/Profile/EditProfile/index.d.ts +2 -0
- package/components/Profile/index.d.ts +3 -0
- package/components/SceytChat/index.d.ts +2 -1
- package/components/SceytChat/styled.d.ts +1 -1
- package/components/SendMessageInput/EditMessagePlugin/index.d.ts +8 -0
- package/components/SendMessageInput/EmojiNode/index.d.ts +18 -0
- package/components/SendMessageInput/EmojisPlugin/index.d.ts +15 -0
- package/components/SendMessageInput/FloatingTextFormatToolbarPlugin/index.d.ts +10 -0
- package/components/SendMessageInput/FormatMessagePlugin/index.d.ts +2 -0
- package/components/SendMessageInput/MentionNode/index.d.ts +22 -0
- package/components/SendMessageInput/MentionsPlugin/index.d.ts +26 -0
- package/components/SendMessageInput/index.d.ts +5 -4
- package/components/VideoPreview/index.d.ts +6 -4
- package/components/index.d.ts +3 -3
- package/index.js +15996 -9027
- package/package.json +6 -3
- package/types/attachment/index.d.ts +1 -1
- package/types/index.d.ts +46 -27
- package/assets/svg/markAsUnRead.svg +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IDetailsProps } from '../ChannelDetailsContainer';
|
|
3
|
-
declare const Details: ({ channelEditIcon, editChannelSaveButtonBackgroundColor, editChannelSaveButtonTextColor, editChannelCancelButtonBackgroundColor, editChannelCancelButtonTextColor, showMuteUnmuteNotifications, muteUnmuteNotificationsOrder, muteNotificationIcon, unmuteNotificationIcon, muteNotificationIconColor, unmuteNotificationIconColor, muteUnmuteNotificationSwitcherColor, muteUnmuteNotificationTextColor, timeOptionsToMuteNotifications, showStarredMessages, starredMessagesOrder, staredMessagesIcon, staredMessagesIconColor, staredMessagesTextColor, showPinChannel, pinChannelOrder, pinChannelIcon, pinChannelIconColor, pinChannelTextColor, showMarkAsReadUnread, markAsReadUnreadOrder, markAsReadIcon, markAsUnreadIcon, markAsReadIconColor, markAsUnreadIconColor, markAsReadUnreadTextColor, showLeaveChannel, leaveChannelOrder, leaveChannelIcon, leaveChannelIconColor, leaveChannelTextColor, showReportChannel, reportChannelIcon, reportChannelOrder, reportChannelIconColor, reportChannelTextColor, deleteChannelIcon, showDeleteChannel, deleteChannelIconColor, deleteChannelTextColor, deleteChannelOrder, showBlockAndLeaveChannel, showBlockUser, blockAndLeaveChannelIcon, blockAndLeaveChannelIconColor, blockAndLeaveChannelTextColor, unblockUserIcon, linkPreviewIcon, linkPreviewHoverIcon, linkPreviewTitleColor, linkPreviewColor, linkPreviewHoverBackgroundColor, voicePreviewPlayIcon, voicePreviewPlayHoverIcon, voicePreviewPauseIcon, voicePreviewPauseHoverIcon, voicePreviewTitleColor, voicePreviewDateAndTimeColor, voicePreviewHoverBackgroundColor, filePreviewIcon, filePreviewHoverIcon, filePreviewTitleColor, filePreviewSizeColor, filePreviewHoverBackgroundColor, filePreviewDownloadIcon, showClearHistory, clearHistoryOrder, clearHistoryIcon, clearHistoryTextColor, showDeleteAllMessages, deleteAllMessagesOrder, deleteAllMessagesIcon, deleteAllMessagesTextColor, showChangeMemberRole, showKickMember, showKickAndBlockMember, showMakeMemberAdmin }: IDetailsProps) => JSX.Element;
|
|
3
|
+
declare const Details: ({ size, showAboutChannel, showAboutChannelTitle, avatarAndNameDirection, channelEditIcon, editChannelSaveButtonBackgroundColor, editChannelSaveButtonTextColor, editChannelCancelButtonBackgroundColor, editChannelCancelButtonTextColor, showMuteUnmuteNotifications, muteUnmuteNotificationsOrder, muteNotificationIcon, unmuteNotificationIcon, muteNotificationIconColor, unmuteNotificationIconColor, muteUnmuteNotificationSwitcherColor, muteUnmuteNotificationTextColor, timeOptionsToMuteNotifications, showStarredMessages, starredMessagesOrder, staredMessagesIcon, staredMessagesIconColor, staredMessagesTextColor, showPinChannel, pinChannelOrder, pinChannelIcon, pinChannelIconColor, pinChannelTextColor, showMarkAsReadUnread, markAsReadUnreadOrder, markAsReadIcon, markAsUnreadIcon, markAsReadIconColor, markAsUnreadIconColor, markAsReadUnreadTextColor, showLeaveChannel, leaveChannelOrder, leaveChannelIcon, leaveChannelIconColor, leaveChannelTextColor, showReportChannel, reportChannelIcon, reportChannelOrder, reportChannelIconColor, reportChannelTextColor, deleteChannelIcon, showDeleteChannel, deleteChannelIconColor, deleteChannelTextColor, deleteChannelOrder, showBlockAndLeaveChannel, showBlockUser, blockAndLeaveChannelIcon, blockAndLeaveChannelIconColor, blockAndLeaveChannelTextColor, unblockUserIcon, linkPreviewIcon, linkPreviewHoverIcon, linkPreviewTitleColor, linkPreviewColor, linkPreviewHoverBackgroundColor, voicePreviewPlayIcon, voicePreviewPlayHoverIcon, voicePreviewPauseIcon, voicePreviewPauseHoverIcon, voicePreviewTitleColor, voicePreviewDateAndTimeColor, voicePreviewHoverBackgroundColor, filePreviewIcon, filePreviewHoverIcon, filePreviewTitleColor, filePreviewSizeColor, filePreviewHoverBackgroundColor, filePreviewDownloadIcon, showClearHistory, clearHistoryOrder, clearHistoryIcon, clearHistoryTextColor, showDeleteAllMessages, deleteAllMessagesOrder, deleteAllMessagesIcon, deleteAllMessagesTextColor, showChangeMemberRole, showKickMember, showKickAndBlockMember, showMakeMemberAdmin }: IDetailsProps) => JSX.Element;
|
|
4
4
|
export default Details;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MuteTime } from '../../types';
|
|
3
3
|
export interface IDetailsProps {
|
|
4
|
+
size?: 'small' | 'medium' | 'large';
|
|
5
|
+
showAboutChannel?: boolean;
|
|
6
|
+
showAboutChannelTitle?: boolean;
|
|
7
|
+
avatarAndNameDirection?: 'row' | 'column';
|
|
4
8
|
channelEditIcon?: JSX.Element;
|
|
5
9
|
editChannelSaveButtonBackgroundColor?: string;
|
|
6
10
|
editChannelSaveButtonTextColor?: string;
|
|
@@ -85,5 +89,5 @@ export interface IDetailsProps {
|
|
|
85
89
|
showKickAndBlockMember?: boolean;
|
|
86
90
|
showMakeMemberAdmin?: boolean;
|
|
87
91
|
}
|
|
88
|
-
declare const ChannelDetailsContainer: ({ channelEditIcon, editChannelSaveButtonBackgroundColor, editChannelSaveButtonTextColor, editChannelCancelButtonBackgroundColor, editChannelCancelButtonTextColor, showMuteUnmuteNotifications, muteUnmuteNotificationsOrder, muteNotificationIcon, unmuteNotificationIcon, muteNotificationIconColor, unmuteNotificationIconColor, muteUnmuteNotificationSwitcherColor, muteUnmuteNotificationTextColor, timeOptionsToMuteNotifications, showStarredMessages, starredMessagesOrder, staredMessagesIcon, staredMessagesIconColor, staredMessagesTextColor, showPinChannel, pinChannelOrder, pinChannelIcon, pinChannelIconColor, pinChannelTextColor, showMarkAsReadUnread, markAsReadUnreadOrder, markAsReadIcon, markAsUnreadIcon, markAsReadIconColor, markAsUnreadIconColor, markAsReadUnreadTextColor, showLeaveChannel, leaveChannelOrder, leaveChannelIcon, leaveChannelIconColor, leaveChannelTextColor, showReportChannel, reportChannelIcon, reportChannelOrder, reportChannelIconColor, reportChannelTextColor, showDeleteChannel, deleteChannelIcon, deleteChannelIconColor, deleteChannelTextColor, deleteChannelOrder, showBlockAndLeaveChannel, showBlockUser, blockAndLeaveChannelIcon, blockAndLeaveChannelIconColor, blockAndLeaveChannelTextColor, unblockUserIcon, linkPreviewIcon, linkPreviewHoverIcon, linkPreviewTitleColor, linkPreviewColor, linkPreviewHoverBackgroundColor, filePreviewIcon, filePreviewHoverIcon, filePreviewTitleColor, filePreviewSizeColor, filePreviewHoverBackgroundColor, filePreviewDownloadIcon, showClearHistory, clearHistoryOrder, clearHistoryIcon, clearHistoryTextColor, showDeleteAllMessages, deleteAllMessagesOrder, deleteAllMessagesIcon, deleteAllMessagesTextColor, showChangeMemberRole, showKickMember, showKickAndBlockMember }: IDetailsProps) => JSX.Element;
|
|
92
|
+
declare const ChannelDetailsContainer: ({ size, channelEditIcon, showAboutChannel, showAboutChannelTitle, avatarAndNameDirection, editChannelSaveButtonBackgroundColor, editChannelSaveButtonTextColor, editChannelCancelButtonBackgroundColor, editChannelCancelButtonTextColor, showMuteUnmuteNotifications, muteUnmuteNotificationsOrder, muteNotificationIcon, unmuteNotificationIcon, muteNotificationIconColor, unmuteNotificationIconColor, muteUnmuteNotificationSwitcherColor, muteUnmuteNotificationTextColor, timeOptionsToMuteNotifications, showStarredMessages, starredMessagesOrder, staredMessagesIcon, staredMessagesIconColor, staredMessagesTextColor, showPinChannel, pinChannelOrder, pinChannelIcon, pinChannelIconColor, pinChannelTextColor, showMarkAsReadUnread, markAsReadUnreadOrder, markAsReadIcon, markAsUnreadIcon, markAsReadIconColor, markAsUnreadIconColor, markAsReadUnreadTextColor, showLeaveChannel, leaveChannelOrder, leaveChannelIcon, leaveChannelIconColor, leaveChannelTextColor, showReportChannel, reportChannelIcon, reportChannelOrder, reportChannelIconColor, reportChannelTextColor, showDeleteChannel, deleteChannelIcon, deleteChannelIconColor, deleteChannelTextColor, deleteChannelOrder, showBlockAndLeaveChannel, showBlockUser, blockAndLeaveChannelIcon, blockAndLeaveChannelIconColor, blockAndLeaveChannelTextColor, unblockUserIcon, linkPreviewIcon, linkPreviewHoverIcon, linkPreviewTitleColor, linkPreviewColor, linkPreviewHoverBackgroundColor, filePreviewIcon, filePreviewHoverIcon, filePreviewTitleColor, filePreviewSizeColor, filePreviewHoverBackgroundColor, filePreviewDownloadIcon, showClearHistory, clearHistoryOrder, clearHistoryIcon, clearHistoryTextColor, showDeleteAllMessages, deleteAllMessagesOrder, deleteAllMessagesIcon, deleteAllMessagesTextColor, showChangeMemberRole, showKickMember, showKickAndBlockMember }: IDetailsProps) => JSX.Element;
|
|
89
93
|
export default ChannelDetailsContainer;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface IChannelSearchProps {
|
|
3
3
|
searchValue: string;
|
|
4
|
+
theme?: string;
|
|
4
5
|
handleSearchValueChange: (e: any) => void;
|
|
5
6
|
getMyChannels: () => void;
|
|
6
7
|
inline?: boolean;
|
|
7
8
|
borderRadius?: string;
|
|
9
|
+
searchInputBackgroundColor?: string;
|
|
10
|
+
searchInputTextColor?: string;
|
|
8
11
|
}
|
|
9
12
|
declare const ChannelSearch: React.FC<IChannelSearchProps>;
|
|
10
13
|
export default ChannelSearch;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IContact } from '../../../types';
|
|
3
|
+
interface IChannelProps {
|
|
4
|
+
contact: IContact;
|
|
5
|
+
showAvatar?: boolean;
|
|
6
|
+
theme?: string;
|
|
7
|
+
notificationsIsMutedIcon?: JSX.Element;
|
|
8
|
+
notificationsIsMutedIconColor?: string;
|
|
9
|
+
selectedChannelLeftBorder?: string;
|
|
10
|
+
selectedChannelBackground?: string;
|
|
11
|
+
contactsMap: {
|
|
12
|
+
[key: string]: IContact;
|
|
13
|
+
};
|
|
14
|
+
selectedChannelBorderRadius?: string;
|
|
15
|
+
selectedChannelPaddings?: string;
|
|
16
|
+
channelsPaddings?: string;
|
|
17
|
+
channelsMargin?: string;
|
|
18
|
+
createChatWithContact: (contact: IContact) => void;
|
|
19
|
+
}
|
|
20
|
+
declare const ContactItem: React.FC<IChannelProps>;
|
|
21
|
+
export default ContactItem;
|
|
22
|
+
export declare const ChannelInfo: import("styled-components").StyledComponent<"div", any, {
|
|
23
|
+
avatar?: boolean | undefined;
|
|
24
|
+
theme?: string | undefined;
|
|
25
|
+
}, never>;
|
|
26
|
+
export declare const AvatarWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
27
|
+
export declare const UserStatus: import("styled-components").StyledComponent<"span", any, {
|
|
28
|
+
backgroundColor?: string | undefined;
|
|
29
|
+
}, never>;
|
|
@@ -1,28 +1,40 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
import { IChannel } from '../../types';
|
|
3
|
-
interface IChannelGroup {
|
|
4
|
-
groupName: string;
|
|
5
|
-
channelList: IChannel[];
|
|
6
|
-
}
|
|
2
|
+
import { IChannel, IContact } from '../../types';
|
|
7
3
|
interface IChannelListProps {
|
|
8
4
|
List?: FC<{
|
|
9
5
|
channels: IChannel[];
|
|
6
|
+
searchedChannels: {
|
|
7
|
+
chats_groups: [];
|
|
8
|
+
channels: [];
|
|
9
|
+
contacts: [];
|
|
10
|
+
};
|
|
10
11
|
loadMoreChannels: (count?: number) => void;
|
|
11
|
-
searchValue
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
searchValue: string;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
activeChannel?: IChannel;
|
|
15
|
+
setActiveChannel?: (channel: IChannel) => void;
|
|
16
|
+
}>;
|
|
17
|
+
ListItem?: FC<{
|
|
18
|
+
channel?: IChannel;
|
|
19
|
+
contact?: IContact;
|
|
20
|
+
setActiveChannel?: (channel: IChannel) => void;
|
|
21
|
+
createChatWithContact?: (contact: IContact) => void;
|
|
14
22
|
}>;
|
|
15
|
-
|
|
23
|
+
Profile?: JSX.Element;
|
|
24
|
+
CreateChannel?: JSX.Element;
|
|
25
|
+
ChannelsTitle?: JSX.Element;
|
|
26
|
+
backgroundColor?: string;
|
|
27
|
+
searchInputBackgroundColor?: string;
|
|
28
|
+
searchInputTextColor?: string;
|
|
16
29
|
searchChannelsPosition?: 'inline' | 'bottom';
|
|
17
30
|
searchInputBorderRadius?: string;
|
|
18
31
|
getActiveChannel?: (channel: IChannel) => void;
|
|
19
|
-
Profile?: JSX.Element;
|
|
20
32
|
filter?: {
|
|
21
33
|
channelType?: string;
|
|
22
34
|
};
|
|
23
35
|
limit?: number;
|
|
24
36
|
sort?: 'byLastMessage' | 'byCreationDate';
|
|
25
|
-
|
|
37
|
+
showAvatar?: boolean;
|
|
26
38
|
showSearch?: boolean;
|
|
27
39
|
searchOption?: 'custom' | 'default';
|
|
28
40
|
forceUpdateChannelList?: () => void;
|
|
@@ -42,11 +54,11 @@ interface IChannelListProps {
|
|
|
42
54
|
selectedChannelPaddings?: string;
|
|
43
55
|
channelsPaddings?: string;
|
|
44
56
|
channelsMargin?: string;
|
|
45
|
-
onChannelDeleted?: (setChannels: (
|
|
46
|
-
onChannelCreated?: (setChannels: (
|
|
47
|
-
onChannelHidden?: (setChannels: (
|
|
48
|
-
onChannelVisible?: (setChannels: (
|
|
49
|
-
onAddedToChannel?: (setChannels: (
|
|
57
|
+
onChannelDeleted?: (channelList: IChannel[], deletedChannel: IChannel, setChannels: (updatedChannelList: IChannel[]) => void) => void;
|
|
58
|
+
onChannelCreated?: (channelList: IChannel[], createdChannel: IChannel, setChannels: (updatedChannelList: IChannel[]) => void) => void;
|
|
59
|
+
onChannelHidden?: (channelList: IChannel[], hiddenChannel: IChannel, setChannels: (updatedChannelList: IChannel[]) => void) => void;
|
|
60
|
+
onChannelVisible?: (channelList: IChannel[], visibleChannel: IChannel, setChannels: (updatedChannelList: IChannel[]) => void) => void;
|
|
61
|
+
onAddedToChannel?: (channelList: IChannel[], channel: IChannel, setChannels: (updatedChannelList: IChannel[]) => void) => void;
|
|
50
62
|
}
|
|
51
63
|
declare const ChannelList: React.FC<IChannelListProps>;
|
|
52
64
|
export default ChannelList;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import SceytChatClient from 'sceyt-chat';
|
|
3
2
|
import { ICustomAvatarColors } from '../Channel/types';
|
|
4
|
-
import { IAttachment, IUser } from '../../types';
|
|
3
|
+
import { IAttachment, IChannel, IMessage, IUser } from '../../types';
|
|
5
4
|
export interface IProgress {
|
|
6
5
|
loaded: number;
|
|
7
6
|
total: number;
|
|
@@ -17,18 +16,27 @@ export interface IUploadTask {
|
|
|
17
16
|
}
|
|
18
17
|
export interface ICustomUploader {
|
|
19
18
|
upload: (attachment: IAttachment, uploadTask: IUploadTask) => void;
|
|
20
|
-
download: (uri: string, progressCallback?: (progress: any) => void) => Promise<
|
|
19
|
+
download: (uri: string, download: boolean, progressCallback?: (progress: any) => void) => Promise<any>;
|
|
20
|
+
cancelRequest: (requestPromise: any) => void;
|
|
21
21
|
}
|
|
22
22
|
export interface IChatClientProps {
|
|
23
|
-
client:
|
|
23
|
+
client: any;
|
|
24
|
+
theme?: 'dark' | 'light';
|
|
24
25
|
avatarColors?: ICustomAvatarColors;
|
|
25
26
|
hideUserPresence?: (user: IUser) => boolean;
|
|
27
|
+
handleNewMessages?: (message: IMessage, channel: IChannel) => IMessage | null;
|
|
26
28
|
showOnlyContactUsers?: boolean;
|
|
27
29
|
sendAttachmentsAsSeparateMessages?: boolean;
|
|
28
30
|
showNotifications?: boolean;
|
|
29
31
|
children?: JSX.Element | JSX.Element[];
|
|
30
32
|
logoSrc?: string;
|
|
31
33
|
CustomUploader?: ICustomUploader;
|
|
34
|
+
membersDisplayTextByChannelTypesMap?: {
|
|
35
|
+
[key: string]: string;
|
|
36
|
+
};
|
|
37
|
+
defaultRolesByChannelTypesMap?: {
|
|
38
|
+
[key: string]: string;
|
|
39
|
+
};
|
|
32
40
|
customColors?: {
|
|
33
41
|
primaryColor?: string;
|
|
34
42
|
primaryLight?: string;
|
|
@@ -39,5 +47,5 @@ export interface IChatClientProps {
|
|
|
39
47
|
defaultAvatarBackground?: string;
|
|
40
48
|
};
|
|
41
49
|
}
|
|
42
|
-
declare const SceytChatContainer: ({ client, avatarColors, children, showOnlyContactUsers, sendAttachmentsAsSeparateMessages, logoSrc, CustomUploader, customColors, showNotifications, hideUserPresence }: IChatClientProps) => JSX.Element;
|
|
50
|
+
declare const SceytChatContainer: ({ client, theme, avatarColors, children, showOnlyContactUsers, handleNewMessages, sendAttachmentsAsSeparateMessages, membersDisplayTextByChannelTypesMap, defaultRolesByChannelTypesMap, logoSrc, CustomUploader, customColors, showNotifications, hideUserPresence }: IChatClientProps) => JSX.Element;
|
|
43
51
|
export default SceytChatContainer;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export default function MessageActions({ editModeToggle, channel, handleResendMessage, handleOpenDeleteMessage,
|
|
2
|
+
export default function MessageActions({ editModeToggle, channel, handleResendMessage, handleOpenDeleteMessage, handleOpenForwardMessage, handleCopyMessage, handleReportMessage, messageStatus, handleSelectMessage, handleReplyMessage, isThreadMessage, rtlDirection, showMessageReaction, showEditMessage, showCopyMessage, showReplyMessage, showReplyMessageInThread, showForwardMessage, showDeleteMessage, showSelectMessage, showReportMessage, reactionIcon, editIcon, copyIcon, replyIcon, replyInThreadIcon, deleteIcon, selectIcon, allowEditDeleteIncomingMessage, reportIcon, reactionIconOrder, editIconOrder, copyIconOrder, replyIconOrder, replyInThreadIconOrder, forwardIcon, forwardIconOrder, deleteIconOrder, selectIconOrder, reportIconOrder, reactionIconTooltipText, editIconTooltipText, copyIconTooltipText, replyIconTooltipText, replyInThreadIconTooltipText, forwardIconTooltipText, deleteIconTooltipText, selectIconTooltipText, reportIconTooltipText, myRole, isIncoming, messageActionIconsColor, handleOpenEmojis }: any): JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export default function TextFormat({ handleFormatToBold, handleFormatToItalic, handleFormatToStrikethrough, handleFormatToMonospace, handleClosePopup, isBoldText, isItalicText, isStrikethroughText, isMonospaceText, top, bottom, right, left, theme, editorProps }: {
|
|
3
|
+
top?: string;
|
|
4
|
+
bottom?: string;
|
|
5
|
+
right?: string;
|
|
6
|
+
left?: string;
|
|
7
|
+
isBoldText?: boolean;
|
|
8
|
+
isItalicText?: boolean;
|
|
9
|
+
isStrikethroughText?: boolean;
|
|
10
|
+
isMonospaceText?: boolean;
|
|
11
|
+
isUnderlineText?: boolean;
|
|
12
|
+
handleFormatToBold?: (props?: any) => void;
|
|
13
|
+
handleFormatToItalic?: (props?: any) => void;
|
|
14
|
+
handleFormatToStrikethrough?: (props?: any) => void;
|
|
15
|
+
handleFormatToMonospace?: (props?: any) => void;
|
|
16
|
+
handleClosePopup?: () => void;
|
|
17
|
+
theme?: string;
|
|
18
|
+
editorProps: any;
|
|
19
|
+
}): JSX.Element;
|
|
@@ -1,15 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
2
|
import { IAttachment, IChannel, IMessage } from '../../types';
|
|
3
3
|
interface IMessageProps {
|
|
4
4
|
message: IMessage;
|
|
5
5
|
channel: IChannel;
|
|
6
|
+
MessageActionsMenu?: FC<{
|
|
7
|
+
message: IMessage;
|
|
8
|
+
channel: IChannel;
|
|
9
|
+
handleSetMessageForEdit?: () => void;
|
|
10
|
+
handleResendMessage?: () => void;
|
|
11
|
+
handleOpenDeleteMessage?: () => void;
|
|
12
|
+
handleOpenForwardMessage?: () => void;
|
|
13
|
+
handleCopyMessage?: () => void;
|
|
14
|
+
handleReportMessage?: () => void;
|
|
15
|
+
handleOpenEmojis?: () => void;
|
|
16
|
+
handleSelectMessage?: (event?: any) => void;
|
|
17
|
+
handleReplyMessage?: () => void;
|
|
18
|
+
isThreadMessage?: boolean;
|
|
19
|
+
rtlDirection?: boolean;
|
|
20
|
+
}>;
|
|
6
21
|
isPendingMessage?: boolean;
|
|
7
22
|
prevMessage?: IMessage;
|
|
8
23
|
nextMessage: IMessage;
|
|
9
24
|
stopScrolling: (stop: boolean) => void;
|
|
10
|
-
setLastVisibleMessageId
|
|
25
|
+
setLastVisibleMessageId?: (msgId: string) => void;
|
|
11
26
|
handleScrollToRepliedMessage?: (msgId: string) => void;
|
|
12
27
|
handleMediaItemClick?: (attachment: IAttachment) => void;
|
|
28
|
+
unreadMessageId: string;
|
|
13
29
|
isUnreadMessage: boolean;
|
|
14
30
|
isThreadMessage: boolean;
|
|
15
31
|
fontFamily?: string;
|
|
@@ -22,8 +38,11 @@ interface IMessageProps {
|
|
|
22
38
|
messageStatusDisplayingType?: 'ticks' | 'text';
|
|
23
39
|
ownMessageBackground?: string;
|
|
24
40
|
incomingMessageBackground?: string;
|
|
41
|
+
ownRepliedMessageBackground?: string;
|
|
42
|
+
incomingRepliedMessageBackground?: string;
|
|
25
43
|
showOwnAvatar?: boolean;
|
|
26
44
|
showMessageStatus?: boolean;
|
|
45
|
+
showMessageTimeAndStatusOnlyOnHover?: boolean;
|
|
27
46
|
showMessageTime?: boolean;
|
|
28
47
|
showMessageStatusForEachMessage?: boolean;
|
|
29
48
|
showMessageTimeForEachMessage?: boolean;
|
|
@@ -35,6 +54,7 @@ interface IMessageProps {
|
|
|
35
54
|
replyMessageInThread?: boolean;
|
|
36
55
|
forwardMessage?: boolean;
|
|
37
56
|
deleteMessage?: boolean;
|
|
57
|
+
selectMessage?: boolean;
|
|
38
58
|
allowEditDeleteIncomingMessage?: boolean;
|
|
39
59
|
reportMessage?: boolean;
|
|
40
60
|
reactionIcon?: JSX.Element;
|
|
@@ -44,6 +64,7 @@ interface IMessageProps {
|
|
|
44
64
|
replyInThreadIcon?: JSX.Element;
|
|
45
65
|
forwardIcon?: JSX.Element;
|
|
46
66
|
deleteIcon?: JSX.Element;
|
|
67
|
+
selectIcon?: JSX.Element;
|
|
47
68
|
starIcon?: JSX.Element;
|
|
48
69
|
staredIcon?: JSX.Element;
|
|
49
70
|
reportIcon?: JSX.Element;
|
|
@@ -58,6 +79,7 @@ interface IMessageProps {
|
|
|
58
79
|
replyInThreadIconOrder?: number;
|
|
59
80
|
forwardIconOrder?: number;
|
|
60
81
|
deleteIconOrder?: number;
|
|
82
|
+
selectIconOrder?: number;
|
|
61
83
|
starIconOrder?: number;
|
|
62
84
|
reportIconOrder?: number;
|
|
63
85
|
reactionIconTooltipText?: string;
|
|
@@ -67,6 +89,7 @@ interface IMessageProps {
|
|
|
67
89
|
replyInThreadIconTooltipText?: string;
|
|
68
90
|
forwardIconTooltipText?: string;
|
|
69
91
|
deleteIconTooltipText?: string;
|
|
92
|
+
selectIconTooltipText?: string;
|
|
70
93
|
starIconTooltipText?: string;
|
|
71
94
|
reportIconTooltipText?: string;
|
|
72
95
|
messageActionIconsColor?: string;
|
|
@@ -100,10 +123,18 @@ interface IMessageProps {
|
|
|
100
123
|
videoAttachmentMaxHeight?: number;
|
|
101
124
|
sameUserMessageSpacing?: string;
|
|
102
125
|
differentUserMessageSpacing?: string;
|
|
126
|
+
selectedMessagesMap?: Map<string, IMessage>;
|
|
127
|
+
contactsMap: {
|
|
128
|
+
[key: string]: any;
|
|
129
|
+
};
|
|
130
|
+
openedMessageMenuId?: string;
|
|
131
|
+
tabIsActive?: boolean;
|
|
132
|
+
connectionStatus: string;
|
|
133
|
+
theme: string;
|
|
103
134
|
}
|
|
104
|
-
declare const
|
|
105
|
-
export default
|
|
106
|
-
export declare const MessageStatusAndTime: import("styled-components").StyledComponent<"
|
|
135
|
+
declare const _default: React.MemoExoticComponent<({ message, channel, MessageActionsMenu, handleScrollToRepliedMessage, handleMediaItemClick, stopScrolling, prevMessage, nextMessage, setLastVisibleMessageId, isUnreadMessage, unreadMessageId, isThreadMessage, fontFamily, ownMessageOnRightSide, messageWidthPercent, showSenderNameOnDirectChannel, showSenderNameOnGroupChannel, showSenderNameOnOwnMessages, messageStatusAndTimePosition, messageStatusDisplayingType, ownMessageBackground, incomingMessageBackground, ownRepliedMessageBackground, incomingRepliedMessageBackground, showOwnAvatar, showMessageStatus, showMessageTimeAndStatusOnlyOnHover, showMessageTime, showMessageStatusForEachMessage, showMessageTimeForEachMessage, hoverBackground, messageReaction, editMessage, copyMessage, replyMessage, replyMessageInThread, deleteMessage, selectMessage, 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, reactionIconTooltipText, editIconTooltipText, copyIconTooltipText, replyIconTooltipText, replyInThreadIconTooltipText, forwardIconTooltipText, deleteIconTooltipText, selectIconTooltipText, starIconTooltipText, reportIconTooltipText, messageActionIconsColor, 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 }: IMessageProps) => JSX.Element>;
|
|
136
|
+
export default _default;
|
|
137
|
+
export declare const MessageStatusAndTime: import("styled-components").StyledComponent<"span", any, {
|
|
107
138
|
withAttachment?: boolean | undefined;
|
|
108
139
|
fileAttachment?: boolean | undefined;
|
|
109
140
|
hide?: boolean | undefined;
|
|
@@ -112,4 +143,5 @@ export declare const MessageStatusAndTime: import("styled-components").StyledCom
|
|
|
112
143
|
leftMargin?: boolean | undefined;
|
|
113
144
|
rtlDirection?: boolean | undefined;
|
|
114
145
|
bottomOfMessage?: boolean | undefined;
|
|
146
|
+
showOnlyOnHover?: boolean | undefined;
|
|
115
147
|
}, never>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export declare const Container: import("styled-components").StyledComponent<"div", any, any, never>;
|
|
3
3
|
interface IProps {
|
|
4
4
|
dividerText: string;
|
|
5
|
+
theme?: string;
|
|
5
6
|
visibility?: boolean;
|
|
6
7
|
unread?: boolean;
|
|
7
8
|
dateDividerFontSize?: string;
|
|
@@ -18,8 +19,8 @@ interface IProps {
|
|
|
18
19
|
newMessagesSeparatorBackground?: string;
|
|
19
20
|
newMessagesSeparatorLeftRightSpaceWidth?: string;
|
|
20
21
|
noMargin?: boolean;
|
|
21
|
-
marginBottom?:
|
|
22
|
+
marginBottom?: string;
|
|
22
23
|
marginTop?: string;
|
|
23
24
|
}
|
|
24
|
-
export default function MessageDivider({ dividerText, visibility, unread, dateDividerFontSize, dateDividerTextColor, dateDividerBorder, dateDividerBackgroundColor, dateDividerBorderRadius, systemMessage, newMessagesSeparatorTextColor, newMessagesSeparatorFontSize, newMessagesSeparatorWidth, newMessagesSeparatorBorder, newMessagesSeparatorBorderRadius, newMessagesSeparatorBackground, newMessagesSeparatorLeftRightSpaceWidth, noMargin, marginTop, marginBottom }: IProps): JSX.Element;
|
|
25
|
+
export default function MessageDivider({ dividerText, visibility, unread, dateDividerFontSize, dateDividerTextColor, dateDividerBorder, dateDividerBackgroundColor, dateDividerBorderRadius, systemMessage, newMessagesSeparatorTextColor, newMessagesSeparatorFontSize, newMessagesSeparatorWidth, newMessagesSeparatorBorder, newMessagesSeparatorBorderRadius, newMessagesSeparatorBackground, newMessagesSeparatorLeftRightSpaceWidth, noMargin, marginTop, theme, marginBottom }: IProps): JSX.Element;
|
|
25
26
|
export {};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { IChannel, IMessage } from '../../../types';
|
|
3
|
+
interface MessagesProps {
|
|
4
|
+
messages: IMessage[];
|
|
5
|
+
fontFamily?: string;
|
|
6
|
+
ownMessageOnRightSide?: boolean;
|
|
7
|
+
messageWidthPercent?: string | number;
|
|
8
|
+
messageStatusAndTimePosition?: 'onMessage' | 'bottomOfMessage';
|
|
9
|
+
messageStatusDisplayingType?: 'ticks' | 'text';
|
|
10
|
+
ownMessageBackground?: string;
|
|
11
|
+
incomingMessageBackground?: string;
|
|
12
|
+
ownRepliedMessageBackground?: string;
|
|
13
|
+
incomingRepliedMessageBackground?: string;
|
|
14
|
+
showMessageStatus?: boolean;
|
|
15
|
+
showMessageTimeAndStatusOnlyOnHover?: boolean;
|
|
16
|
+
showMessageTime?: boolean;
|
|
17
|
+
showMessageStatusForEachMessage?: boolean;
|
|
18
|
+
showMessageTimeForEachMessage?: boolean;
|
|
19
|
+
hoverBackground?: boolean;
|
|
20
|
+
showSenderNameOnDirectChannel?: boolean;
|
|
21
|
+
showSenderNameOnOwnMessages?: boolean;
|
|
22
|
+
showSenderNameOnGroupChannel?: boolean;
|
|
23
|
+
showOwnAvatar?: boolean;
|
|
24
|
+
MessageActionsMenu?: FC<{
|
|
25
|
+
message: IMessage;
|
|
26
|
+
channel: IChannel;
|
|
27
|
+
handleSetMessageForEdit?: () => void;
|
|
28
|
+
handleResendMessage?: () => void;
|
|
29
|
+
handleOpenDeleteMessage?: () => void;
|
|
30
|
+
handleOpenForwardMessage?: () => void;
|
|
31
|
+
handleCopyMessage?: () => void;
|
|
32
|
+
handleReportMessage?: () => void;
|
|
33
|
+
handleOpenEmojis?: () => void;
|
|
34
|
+
handleReplyMessage?: () => void;
|
|
35
|
+
isThreadMessage?: boolean;
|
|
36
|
+
rtlDirection?: boolean;
|
|
37
|
+
}>;
|
|
38
|
+
messageReaction?: boolean;
|
|
39
|
+
editMessage?: boolean;
|
|
40
|
+
copyMessage?: boolean;
|
|
41
|
+
replyMessage?: boolean;
|
|
42
|
+
replyMessageInThread?: boolean;
|
|
43
|
+
forwardMessage?: boolean;
|
|
44
|
+
deleteMessage?: boolean;
|
|
45
|
+
selectMessage?: boolean;
|
|
46
|
+
reportMessage?: boolean;
|
|
47
|
+
reactionIcon?: JSX.Element;
|
|
48
|
+
editIcon?: JSX.Element;
|
|
49
|
+
copyIcon?: JSX.Element;
|
|
50
|
+
replyIcon?: JSX.Element;
|
|
51
|
+
replyInThreadIcon?: JSX.Element;
|
|
52
|
+
forwardIcon?: JSX.Element;
|
|
53
|
+
deleteIcon?: JSX.Element;
|
|
54
|
+
selectIcon?: JSX.Element;
|
|
55
|
+
starIcon?: JSX.Element;
|
|
56
|
+
staredIcon?: JSX.Element;
|
|
57
|
+
reportIcon?: JSX.Element;
|
|
58
|
+
openFrequentlyUsedReactions?: boolean;
|
|
59
|
+
fixEmojiCategoriesTitleOnTop?: boolean;
|
|
60
|
+
emojisCategoryIconsPosition?: 'top' | 'bottom';
|
|
61
|
+
emojisContainerBorderRadius?: string;
|
|
62
|
+
reactionIconOrder?: number;
|
|
63
|
+
editIconOrder?: number;
|
|
64
|
+
copyIconOrder?: number;
|
|
65
|
+
replyIconOrder?: number;
|
|
66
|
+
replyInThreadIconOrder?: number;
|
|
67
|
+
forwardIconOrder?: number;
|
|
68
|
+
deleteIconOrder?: number;
|
|
69
|
+
selectIconOrder?: number;
|
|
70
|
+
allowEditDeleteIncomingMessage?: boolean;
|
|
71
|
+
starIconOrder?: number;
|
|
72
|
+
reportIconOrder?: number;
|
|
73
|
+
reactionIconTooltipText?: string;
|
|
74
|
+
editIconTooltipText?: string;
|
|
75
|
+
replyIconTooltipText?: string;
|
|
76
|
+
copyIconTooltipText?: string;
|
|
77
|
+
replyInThreadIconTooltipText?: string;
|
|
78
|
+
forwardIconTooltipText?: string;
|
|
79
|
+
deleteIconTooltipText?: string;
|
|
80
|
+
selectIconTooltipText?: string;
|
|
81
|
+
starIconTooltipText?: string;
|
|
82
|
+
reportIconTooltipText?: string;
|
|
83
|
+
messageActionIconsColor?: string;
|
|
84
|
+
dateDividerFontSize?: string;
|
|
85
|
+
dateDividerTextColor?: string;
|
|
86
|
+
dateDividerBorder?: string;
|
|
87
|
+
dateDividerBorderRadius?: string;
|
|
88
|
+
dateDividerBackgroundColor?: string;
|
|
89
|
+
showTopFixedDate?: boolean;
|
|
90
|
+
inlineReactionIcon?: JSX.Element;
|
|
91
|
+
reactionsDisplayCount?: number;
|
|
92
|
+
showEachReactionCount?: boolean;
|
|
93
|
+
showTotalReactionCount?: boolean;
|
|
94
|
+
reactionItemBorder?: string;
|
|
95
|
+
reactionItemBorderRadius?: string;
|
|
96
|
+
reactionItemBackground?: string;
|
|
97
|
+
reactionItemPadding?: string;
|
|
98
|
+
reactionItemMargin?: string;
|
|
99
|
+
reactionsFontSize?: string;
|
|
100
|
+
reactionsContainerBoxShadow?: string;
|
|
101
|
+
reactionsContainerBorder?: string;
|
|
102
|
+
reactionsContainerBorderRadius?: string;
|
|
103
|
+
reactionsContainerPadding?: string;
|
|
104
|
+
reactionsContainerBackground?: string;
|
|
105
|
+
reactionsContainerTopPosition?: string;
|
|
106
|
+
reactionsDetailsPopupBorderRadius?: string;
|
|
107
|
+
reactionsDetailsPopupHeaderItemsStyle?: 'bubbles' | 'inline';
|
|
108
|
+
newMessagesSeparatorText?: string;
|
|
109
|
+
newMessagesSeparatorFontSize?: string;
|
|
110
|
+
newMessagesSeparatorTextColor?: string;
|
|
111
|
+
newMessagesSeparatorWidth?: string;
|
|
112
|
+
newMessagesSeparatorBorder?: string;
|
|
113
|
+
newMessagesSeparatorBorderRadius?: string;
|
|
114
|
+
newMessagesSeparatorBackground?: string;
|
|
115
|
+
newMessagesSeparatorTextLeftRightSpacesWidth?: string;
|
|
116
|
+
fileAttachmentsBoxWidth?: number;
|
|
117
|
+
fileAttachmentsBoxBackground?: string;
|
|
118
|
+
fileAttachmentsBoxBorder?: string;
|
|
119
|
+
fileAttachmentsTitleColor?: string;
|
|
120
|
+
fileAttachmentsSizeColor?: string;
|
|
121
|
+
fileAttachmentsIcon?: JSX.Element;
|
|
122
|
+
imageAttachmentMaxWidth?: number;
|
|
123
|
+
imageAttachmentMaxHeight?: number;
|
|
124
|
+
videoAttachmentMaxWidth?: number;
|
|
125
|
+
videoAttachmentMaxHeight?: number;
|
|
126
|
+
attachmentsPreview?: boolean;
|
|
127
|
+
sameUserMessageSpacing?: string;
|
|
128
|
+
differentUserMessageSpacing?: string;
|
|
129
|
+
}
|
|
130
|
+
declare const MessageList: React.FC<MessagesProps>;
|
|
131
|
+
export default MessageList;
|
|
132
|
+
export declare const Container: import("styled-components").StyledComponent<"div", any, {
|
|
133
|
+
stopScrolling?: boolean | undefined;
|
|
134
|
+
}, never>;
|
|
135
|
+
export declare const EmptyDiv: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
136
|
+
export declare const MessageTopDate: import("styled-components").StyledComponent<"div", any, {
|
|
137
|
+
topOffset?: number | undefined;
|
|
138
|
+
marginTop?: string | undefined;
|
|
139
|
+
marginBottom?: string | undefined;
|
|
140
|
+
visible?: boolean | undefined;
|
|
141
|
+
dateDividerFontSize?: string | undefined;
|
|
142
|
+
dateDividerTextColor?: string | undefined;
|
|
143
|
+
dateDividerBackgroundColor?: string | undefined;
|
|
144
|
+
dateDividerBorder?: string | undefined;
|
|
145
|
+
dateDividerBorderRadius?: string | undefined;
|
|
146
|
+
}, never>;
|
|
147
|
+
export declare const DragAndDropContainer: import("styled-components").StyledComponent<"div", any, {
|
|
148
|
+
topOffset?: number | undefined;
|
|
149
|
+
height?: number | undefined;
|
|
150
|
+
}, never>;
|
|
151
|
+
export declare const IconWrapper: import("styled-components").StyledComponent<"span", any, {
|
|
152
|
+
iconColor?: string | undefined;
|
|
153
|
+
}, never>;
|
|
154
|
+
export declare const DropAttachmentArea: import("styled-components").StyledComponent<"div", any, {
|
|
155
|
+
margin?: string | undefined;
|
|
156
|
+
}, never>;
|
|
157
|
+
export declare const MessageWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
158
|
+
export declare const NoMessagesContainer: import("styled-components").StyledComponent<"div", any, {
|
|
159
|
+
color?: string | undefined;
|
|
160
|
+
}, never>;
|
|
161
|
+
export declare const NoMessagesTitle: import("styled-components").StyledComponent<"h4", any, {
|
|
162
|
+
color?: string | undefined;
|
|
163
|
+
}, never>;
|
|
164
|
+
export declare const NoMessagesText: import("styled-components").StyledComponent<"p", any, {
|
|
165
|
+
color?: string | undefined;
|
|
166
|
+
}, never>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IChannel, IMessage } from '../../../types';
|
|
3
|
+
interface ISystemMessageProps {
|
|
4
|
+
channel: IChannel;
|
|
5
|
+
message: IMessage;
|
|
6
|
+
nextMessage: IMessage;
|
|
7
|
+
connectionStatus: string;
|
|
8
|
+
contactsMap: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
differentUserMessageSpacing?: string;
|
|
12
|
+
fontSize?: string;
|
|
13
|
+
textColor?: string;
|
|
14
|
+
border?: string;
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
borderRadius?: string;
|
|
17
|
+
tabIsActive?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: React.MemoExoticComponent<({ message, nextMessage, connectionStatus, channel, tabIsActive, differentUserMessageSpacing, fontSize, textColor, border, backgroundColor, borderRadius, contactsMap }: ISystemMessageProps) => JSX.Element>;
|
|
20
|
+
export default _default;
|
|
21
|
+
export declare const Container: import("styled-components").StyledComponent<"div", any, {
|
|
22
|
+
topOffset?: number | undefined;
|
|
23
|
+
marginTop?: string | undefined;
|
|
24
|
+
marginBottom?: string | undefined;
|
|
25
|
+
visible?: boolean | undefined;
|
|
26
|
+
textColor?: string | undefined;
|
|
27
|
+
backgroundColor?: string | undefined;
|
|
28
|
+
borderRadius?: string | undefined;
|
|
29
|
+
fontSize?: string | undefined;
|
|
30
|
+
border?: string | undefined;
|
|
31
|
+
}, never>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { IChannel, IMessage } from '../../types';
|
|
2
3
|
interface MessagesProps {
|
|
3
4
|
fontFamily?: string;
|
|
4
5
|
ownMessageOnRightSide?: boolean;
|
|
@@ -7,7 +8,10 @@ interface MessagesProps {
|
|
|
7
8
|
messageStatusDisplayingType?: 'ticks' | 'text';
|
|
8
9
|
ownMessageBackground?: string;
|
|
9
10
|
incomingMessageBackground?: string;
|
|
11
|
+
ownRepliedMessageBackground?: string;
|
|
12
|
+
incomingRepliedMessageBackground?: string;
|
|
10
13
|
showMessageStatus?: boolean;
|
|
14
|
+
showMessageTimeAndStatusOnlyOnHover?: boolean;
|
|
11
15
|
showMessageTime?: boolean;
|
|
12
16
|
showMessageStatusForEachMessage?: boolean;
|
|
13
17
|
showMessageTimeForEachMessage?: boolean;
|
|
@@ -15,6 +19,21 @@ interface MessagesProps {
|
|
|
15
19
|
showSenderNameOnDirectChannel?: boolean;
|
|
16
20
|
showSenderNameOnOwnMessages?: boolean;
|
|
17
21
|
showSenderNameOnGroupChannel?: boolean;
|
|
22
|
+
MessageActionsMenu?: FC<{
|
|
23
|
+
message: IMessage;
|
|
24
|
+
channel: IChannel;
|
|
25
|
+
handleSetMessageForEdit?: () => void;
|
|
26
|
+
handleResendMessage?: () => void;
|
|
27
|
+
handleOpenDeleteMessage?: () => void;
|
|
28
|
+
handleOpenForwardMessage?: () => void;
|
|
29
|
+
handleCopyMessage?: () => void;
|
|
30
|
+
handleReportMessage?: () => void;
|
|
31
|
+
handleOpenEmojis?: () => void;
|
|
32
|
+
handleSelectMessage?: () => void;
|
|
33
|
+
handleReplyMessage?: () => void;
|
|
34
|
+
isThreadMessage?: boolean;
|
|
35
|
+
rtlDirection?: boolean;
|
|
36
|
+
}>;
|
|
18
37
|
showOwnAvatar?: boolean;
|
|
19
38
|
messageReaction?: boolean;
|
|
20
39
|
editMessage?: boolean;
|
|
@@ -23,6 +42,7 @@ interface MessagesProps {
|
|
|
23
42
|
replyMessageInThread?: boolean;
|
|
24
43
|
forwardMessage?: boolean;
|
|
25
44
|
deleteMessage?: boolean;
|
|
45
|
+
selectMessage?: boolean;
|
|
26
46
|
reportMessage?: boolean;
|
|
27
47
|
reactionIcon?: JSX.Element;
|
|
28
48
|
editIcon?: JSX.Element;
|
|
@@ -31,6 +51,7 @@ interface MessagesProps {
|
|
|
31
51
|
replyInThreadIcon?: JSX.Element;
|
|
32
52
|
forwardIcon?: JSX.Element;
|
|
33
53
|
deleteIcon?: JSX.Element;
|
|
54
|
+
selectIcon?: JSX.Element;
|
|
34
55
|
starIcon?: JSX.Element;
|
|
35
56
|
staredIcon?: JSX.Element;
|
|
36
57
|
reportIcon?: JSX.Element;
|
|
@@ -45,6 +66,7 @@ interface MessagesProps {
|
|
|
45
66
|
replyInThreadIconOrder?: number;
|
|
46
67
|
forwardIconOrder?: number;
|
|
47
68
|
deleteIconOrder?: number;
|
|
69
|
+
selectIconOrder?: number;
|
|
48
70
|
allowEditDeleteIncomingMessage?: boolean;
|
|
49
71
|
starIconOrder?: number;
|
|
50
72
|
reportIconOrder?: number;
|
|
@@ -55,6 +77,7 @@ interface MessagesProps {
|
|
|
55
77
|
replyInThreadIconTooltipText?: string;
|
|
56
78
|
forwardIconTooltipText?: string;
|
|
57
79
|
deleteIconTooltipText?: string;
|
|
80
|
+
selectIconTooltipText?: string;
|
|
58
81
|
starIconTooltipText?: string;
|
|
59
82
|
reportIconTooltipText?: string;
|
|
60
83
|
messageActionIconsColor?: string;
|
|
@@ -104,22 +127,5 @@ interface MessagesProps {
|
|
|
104
127
|
sameUserMessageSpacing?: string;
|
|
105
128
|
differentUserMessageSpacing?: string;
|
|
106
129
|
}
|
|
107
|
-
declare const
|
|
108
|
-
export default
|
|
109
|
-
export declare const Container: import("styled-components").StyledComponent<"div", any, {
|
|
110
|
-
stopScrolling?: boolean | undefined;
|
|
111
|
-
}, never>;
|
|
112
|
-
export declare const EmptyDiv: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
113
|
-
export declare const MessageTopDate: import("styled-components").StyledComponent<"div", any, any, never>;
|
|
114
|
-
export declare const DragAndDropContainer: import("styled-components").StyledComponent<"div", any, {
|
|
115
|
-
topOffset?: number | undefined;
|
|
116
|
-
height?: number | undefined;
|
|
117
|
-
}, never>;
|
|
118
|
-
export declare const IconWrapper: import("styled-components").StyledComponent<"span", any, {
|
|
119
|
-
iconColor?: string | undefined;
|
|
120
|
-
}, never>;
|
|
121
|
-
export declare const DropAttachmentArea: import("styled-components").StyledComponent<"div", any, {
|
|
122
|
-
margin?: string | undefined;
|
|
123
|
-
}, never>;
|
|
124
|
-
export declare const MessageWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
125
|
-
export declare const NoMessagesContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
130
|
+
declare const MessagesContainer: React.FC<MessagesProps>;
|
|
131
|
+
export default MessagesContainer;
|