sceyt-chat-react-uikit 1.6.0 → 1.6.1
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/assets/svg/clear.svg +1 -1
- package/assets/svg/deleteIcon.svg +1 -1
- package/components/ChatContainer/index.d.ts +42 -87
- package/components/Message/index.d.ts +3 -190
- package/index.js +2596 -2255
- package/index.modern.js +2596 -2255
- package/messageUtils/index.d.ts +3 -3
- package/package.json +1 -1
- package/types/index.d.ts +3 -3
package/assets/svg/clear.svg
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.0003 3.83268C6.31843 3.83268 3.33366 6.81745 3.33366 10.4993C3.33366 14.1812 6.31843 17.166 10.0003 17.166C13.6822 17.166 16.667 14.1812 16.667 10.4993C16.667 6.81745 13.6822 3.83268 10.0003 3.83268ZM1.66699 10.4993C1.66699 5.89698 5.39795 2.16602 10.0003 2.16602C14.6027 2.16602 18.3337 5.89698 18.3337 10.4993C18.3337 15.1017 14.6027 18.8327 10.0003 18.8327C5.39795 18.8327 1.66699 15.1017 1.66699 10.4993ZM6.91107 7.41009C7.23651 7.08466 7.76414 7.08466 8.08958 7.41009L10.0003 9.32084L11.9111 7.41009C12.2365 7.08466 12.7641 7.08466 13.0896 7.41009C13.415 7.73553 13.415 8.26317 13.0896 8.5886L11.1788 10.4993L13.0896 12.4101C13.415 12.7355 13.415 13.2632 13.0896 13.5886C12.7641 13.914 12.2365 13.914 11.9111 13.5886L10.0003 11.6779L8.08958 13.5886C7.76414 13.914 7.23651 13.914 6.91107 13.5886C6.58563 13.2632 6.58563 12.7355 6.91107 12.4101L8.82181 10.4993L6.91107 8.5886C6.58563 8.26317 6.58563 7.73553 6.91107 7.41009Z" fill="
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.0003 3.83268C6.31843 3.83268 3.33366 6.81745 3.33366 10.4993C3.33366 14.1812 6.31843 17.166 10.0003 17.166C13.6822 17.166 16.667 14.1812 16.667 10.4993C16.667 6.81745 13.6822 3.83268 10.0003 3.83268ZM1.66699 10.4993C1.66699 5.89698 5.39795 2.16602 10.0003 2.16602C14.6027 2.16602 18.3337 5.89698 18.3337 10.4993C18.3337 15.1017 14.6027 18.8327 10.0003 18.8327C5.39795 18.8327 1.66699 15.1017 1.66699 10.4993ZM6.91107 7.41009C7.23651 7.08466 7.76414 7.08466 8.08958 7.41009L10.0003 9.32084L11.9111 7.41009C12.2365 7.08466 12.7641 7.08466 13.0896 7.41009C13.415 7.73553 13.415 8.26317 13.0896 8.5886L11.1788 10.4993L13.0896 12.4101C13.415 12.7355 13.415 13.2632 13.0896 13.5886C12.7641 13.914 12.2365 13.914 11.9111 13.5886L10.0003 11.6779L8.08958 13.5886C7.76414 13.914 7.23651 13.914 6.91107 13.5886C6.58563 13.2632 6.58563 12.7355 6.91107 12.4101L8.82181 10.4993L6.91107 8.5886C6.58563 8.26317 6.58563 7.73553 6.91107 7.41009Z" fill="CurrentColor"/>
|
|
3
3
|
</svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M15.7143 7.14258V14.6426C15.7143 16.4178 14.2752 17.8569 12.5 17.8569H7.50003C5.72483 17.8569 4.28575 16.4178 4.28575 14.6426V7.14258H3.77874C3.26978 7.14258 2.85718 6.72998 2.85718 6.22101V5.17829C2.85718 4.09345 3.73662 3.21401 4.82146 3.21401H6.00086C6.37493 2.56645 7.07367 2.14258 7.85718 2.14258H12.1429C12.9264 2.14258 13.6251 2.56645 13.9992 3.21401H15.1786C16.2635 3.21401 17.1429 4.09345 17.1429 5.17829V6.22101C17.1429 6.72998 16.7303 7.14258 16.2213 7.14258H15.7143ZM15 5.71401H15.7143V5.17829C15.7143 4.88243 15.4745 4.64258 15.1786 4.64258H13.5265C13.2005 4.64258 12.916 4.42196 12.8347 4.10633C12.7543 3.79408 12.4707 3.57115 12.1429 3.57115H7.85718C7.52942 3.57115 7.24572 3.79408 7.16535 4.10633C7.08412 4.42196 6.79953 4.64258 6.47361 4.64258H4.82146C4.5256 4.64258 4.28575 4.88243 4.28575 5.17829V5.71401H5.00003H15ZM5.71432 7.14258V14.6426C5.71432 15.6288 6.51381 16.4283 7.50003 16.4283H12.5C13.4863 16.4283 14.2857 15.6288 14.2857 14.6426V7.14258H5.71432Z" fill="
|
|
2
|
+
<path d="M15.7143 7.14258V14.6426C15.7143 16.4178 14.2752 17.8569 12.5 17.8569H7.50003C5.72483 17.8569 4.28575 16.4178 4.28575 14.6426V7.14258H3.77874C3.26978 7.14258 2.85718 6.72998 2.85718 6.22101V5.17829C2.85718 4.09345 3.73662 3.21401 4.82146 3.21401H6.00086C6.37493 2.56645 7.07367 2.14258 7.85718 2.14258H12.1429C12.9264 2.14258 13.6251 2.56645 13.9992 3.21401H15.1786C16.2635 3.21401 17.1429 4.09345 17.1429 5.17829V6.22101C17.1429 6.72998 16.7303 7.14258 16.2213 7.14258H15.7143ZM15 5.71401H15.7143V5.17829C15.7143 4.88243 15.4745 4.64258 15.1786 4.64258H13.5265C13.2005 4.64258 12.916 4.42196 12.8347 4.10633C12.7543 3.79408 12.4707 3.57115 12.1429 3.57115H7.85718C7.52942 3.57115 7.24572 3.79408 7.16535 4.10633C7.08412 4.42196 6.79953 4.64258 6.47361 4.64258H4.82146C4.5256 4.64258 4.28575 4.88243 4.28575 5.17829V5.71401H5.00003H15ZM5.71432 7.14258V14.6426C5.71432 15.6288 6.51381 16.4283 7.50003 16.4283H12.5C13.4863 16.4283 14.2857 15.6288 14.2857 14.6426V7.14258H5.71432Z" fill="CurrentColor"/>
|
|
3
3
|
</svg>
|
|
@@ -1,102 +1,57 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {IAttachment, IChannel, ICustomAvatarColors, IMessage, IUser} from '../../types';
|
|
3
|
-
|
|
2
|
+
import { IAttachment, IChannel, ICustomAvatarColors, IMessage, IUser } from '../../types';
|
|
4
3
|
export interface IProgress {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
loaded: number;
|
|
5
|
+
total: number;
|
|
7
6
|
}
|
|
8
|
-
|
|
9
7
|
export interface IUploadTask {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
updateLocalFileLocation?: (newPath: String) => void;
|
|
9
|
+
progress: (progress: IProgress) => void;
|
|
10
|
+
failure: (error: Error) => void;
|
|
11
|
+
success: (uri: string) => void;
|
|
12
|
+
cancel: () => void;
|
|
13
|
+
stop: () => void;
|
|
14
|
+
resume: () => void;
|
|
17
15
|
}
|
|
18
|
-
|
|
19
16
|
export interface ICustomUploader {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
upload: (attachment: IAttachment, uploadTask: IUploadTask) => void;
|
|
18
|
+
download: (uri: string, download: boolean, progressCallback?: (progress: any) => void) => Promise<any>;
|
|
19
|
+
cancelRequest: (requestPromise: any) => void;
|
|
23
20
|
}
|
|
24
|
-
|
|
25
|
-
export declare type ThemeColors =
|
|
26
|
-
| 'accent'
|
|
27
|
-
| 'background'
|
|
28
|
-
| 'sectionBackground'
|
|
29
|
-
| 'focusBackground'
|
|
30
|
-
| 'hoverBackground'
|
|
31
|
-
| 'textPrimary'
|
|
32
|
-
| 'textSecondary'
|
|
33
|
-
| 'textFootnote'
|
|
34
|
-
| 'textOnPrimary'
|
|
35
|
-
| 'border'
|
|
36
|
-
| 'iconPrimary'
|
|
37
|
-
| 'iconInactive'
|
|
38
|
-
| 'surface1'
|
|
39
|
-
| 'surface2'
|
|
40
|
-
| 'overlayBackground'
|
|
41
|
-
| 'overlayBackground2'
|
|
42
|
-
| 'error';
|
|
43
|
-
|
|
21
|
+
export declare type ThemeColors = 'accent' | 'background' | 'sectionBackground' | 'focusBackground' | 'hoverBackground' | 'textPrimary' | 'textSecondary' | 'textFootnote' | 'textOnPrimary' | 'border' | 'iconPrimary' | 'iconInactive' | 'surface1' | 'surface2' | 'overlayBackground' | 'overlayBackground2' | 'error';
|
|
44
22
|
export interface ThemeColor {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
[key: string]: string | undefined;
|
|
23
|
+
light: string;
|
|
24
|
+
dark?: string;
|
|
25
|
+
[key: string]: string | undefined;
|
|
49
26
|
}
|
|
50
|
-
|
|
51
27
|
export interface SceytChatUIKitTheme {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
28
|
+
colors: {
|
|
29
|
+
[key in ThemeColors]?: ThemeColor;
|
|
30
|
+
};
|
|
55
31
|
}
|
|
56
|
-
|
|
57
32
|
export declare type ThemeMode = 'light' | 'dark' | string;
|
|
58
|
-
|
|
59
33
|
export interface IChatClientProps {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
34
|
+
client: any;
|
|
35
|
+
theme?: SceytChatUIKitTheme;
|
|
36
|
+
themeMode?: ThemeMode;
|
|
37
|
+
autoSelectFirstChannel?: boolean;
|
|
38
|
+
avatarColors?: ICustomAvatarColors;
|
|
39
|
+
hideUserPresence?: (user: IUser) => boolean;
|
|
40
|
+
handleNewMessages?: (message: IMessage, channel: IChannel) => IMessage | null;
|
|
41
|
+
showOnlyContactUsers?: boolean;
|
|
42
|
+
sendAttachmentsAsSeparateMessages?: boolean;
|
|
43
|
+
showNotifications?: boolean;
|
|
44
|
+
children?: JSX.Element | JSX.Element[];
|
|
45
|
+
logoSrc?: string;
|
|
46
|
+
CustomUploader?: ICustomUploader;
|
|
47
|
+
channelTypeFilter?: string[];
|
|
48
|
+
membersDisplayTextByChannelTypesMap?: {
|
|
49
|
+
[key: string]: string;
|
|
50
|
+
};
|
|
51
|
+
defaultRolesByChannelTypesMap?: {
|
|
52
|
+
[key: string]: string;
|
|
53
|
+
};
|
|
54
|
+
openChatOnUserInteraction?: boolean;
|
|
81
55
|
}
|
|
82
|
-
|
|
83
|
-
declare const SceytChatContainer: ({
|
|
84
|
-
client,
|
|
85
|
-
theme,
|
|
86
|
-
themeMode,
|
|
87
|
-
avatarColors,
|
|
88
|
-
children,
|
|
89
|
-
showOnlyContactUsers,
|
|
90
|
-
handleNewMessages,
|
|
91
|
-
sendAttachmentsAsSeparateMessages,
|
|
92
|
-
membersDisplayTextByChannelTypesMap,
|
|
93
|
-
defaultRolesByChannelTypesMap,
|
|
94
|
-
channelTypeFilter,
|
|
95
|
-
logoSrc,
|
|
96
|
-
CustomUploader,
|
|
97
|
-
showNotifications,
|
|
98
|
-
hideUserPresence,
|
|
99
|
-
openChatOnUserInteraction,
|
|
100
|
-
autoSelectFirstChannel
|
|
101
|
-
}: IChatClientProps) => React.JSX.Element;
|
|
56
|
+
declare const SceytChatContainer: ({ client, theme, themeMode, avatarColors, children, showOnlyContactUsers, handleNewMessages, sendAttachmentsAsSeparateMessages, membersDisplayTextByChannelTypesMap, defaultRolesByChannelTypesMap, channelTypeFilter, logoSrc, CustomUploader, showNotifications, hideUserPresence, openChatOnUserInteraction, autoSelectFirstChannel }: IChatClientProps) => React.JSX.Element;
|
|
102
57
|
export default SceytChatContainer;
|
|
@@ -1,191 +1,4 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
message: IMessage;
|
|
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
|
-
}>;
|
|
21
|
-
CustomMessageItem?: FC<{
|
|
22
|
-
channel: IChannel;
|
|
23
|
-
message: IMessage;
|
|
24
|
-
prevMessage?: IMessage;
|
|
25
|
-
nextMessage?: IMessage;
|
|
26
|
-
unreadMessageId: string;
|
|
27
|
-
isUnreadMessage: boolean;
|
|
28
|
-
messageActionsShow: boolean;
|
|
29
|
-
selectionIsActive?: boolean;
|
|
30
|
-
emojisPopupOpen: boolean;
|
|
31
|
-
frequentlyEmojisOpen: boolean;
|
|
32
|
-
messageTextRef: any;
|
|
33
|
-
emojisPopupPosition: string;
|
|
34
|
-
handleSetMessageForEdit?: () => void;
|
|
35
|
-
handleResendMessage?: () => void;
|
|
36
|
-
handleOpenDeleteMessage?: () => void;
|
|
37
|
-
handleOpenForwardMessage?: () => void;
|
|
38
|
-
handleCopyMessage?: () => void;
|
|
39
|
-
handleReportMessage?: () => void;
|
|
40
|
-
handleSelectMessage?: () => void;
|
|
41
|
-
handleOpenEmojis?: () => void;
|
|
42
|
-
handleReplyMessage?: (threadReply?: boolean) => void;
|
|
43
|
-
handleMouseEnter: () => void;
|
|
44
|
-
handleMouseLeave: () => void;
|
|
45
|
-
closeMessageActions?: () => void;
|
|
46
|
-
setEmojisPopupOpen: (state: boolean) => void;
|
|
47
|
-
handleCreateChat: (user: IUser) => void;
|
|
48
|
-
handleReactionAddDelete: (selectedEmoji: any) => void;
|
|
49
|
-
handleScrollToRepliedMessage: (messageId: string) => void;
|
|
50
|
-
handleMediaItemClick?: (attachment: IAttachment) => void;
|
|
51
|
-
isThreadMessage?: boolean;
|
|
52
|
-
}>;
|
|
53
|
-
isPendingMessage?: boolean;
|
|
54
|
-
prevMessage?: IMessage;
|
|
55
|
-
nextMessage: IMessage;
|
|
56
|
-
stopScrolling: (stop: boolean) => void;
|
|
57
|
-
setLastVisibleMessageId?: (msgId: string) => void;
|
|
58
|
-
handleScrollToRepliedMessage: (msgId: string) => void;
|
|
59
|
-
handleMediaItemClick?: (attachment: IAttachment) => void;
|
|
60
|
-
unreadMessageId: string;
|
|
61
|
-
isUnreadMessage: boolean;
|
|
62
|
-
isThreadMessage: boolean;
|
|
63
|
-
fontFamily?: string;
|
|
64
|
-
ownMessageOnRightSide?: boolean;
|
|
65
|
-
messageWidthPercent?: string | number;
|
|
66
|
-
showSenderNameOnDirectChannel?: boolean;
|
|
67
|
-
showSenderNameOnGroupChannel?: boolean;
|
|
68
|
-
showSenderNameOnOwnMessages?: boolean;
|
|
69
|
-
messageStatusAndTimePosition?: 'bottomOfMessage' | 'onMessage';
|
|
70
|
-
messageStatusDisplayingType?: 'ticks' | 'text';
|
|
71
|
-
ownMessageBackground?: string;
|
|
72
|
-
incomingMessageBackground?: string;
|
|
73
|
-
ownRepliedMessageBackground?: string;
|
|
74
|
-
incomingRepliedMessageBackground?: string;
|
|
75
|
-
showOwnAvatar?: boolean;
|
|
76
|
-
showMessageStatus?: boolean;
|
|
77
|
-
showMessageTimeAndStatusOnlyOnHover?: boolean;
|
|
78
|
-
showMessageTime?: boolean;
|
|
79
|
-
showMessageStatusForEachMessage?: boolean;
|
|
80
|
-
showMessageTimeForEachMessage?: boolean;
|
|
81
|
-
hoverBackground?: boolean;
|
|
82
|
-
messageReaction?: boolean;
|
|
83
|
-
editMessage?: boolean;
|
|
84
|
-
copyMessage?: boolean;
|
|
85
|
-
replyMessage?: boolean;
|
|
86
|
-
replyMessageInThread?: boolean;
|
|
87
|
-
forwardMessage?: boolean;
|
|
88
|
-
deleteMessage?: boolean;
|
|
89
|
-
selectMessage?: boolean;
|
|
90
|
-
allowEditDeleteIncomingMessage?: boolean;
|
|
91
|
-
reportMessage?: boolean;
|
|
92
|
-
reactionIcon?: JSX.Element;
|
|
93
|
-
editIcon?: JSX.Element;
|
|
94
|
-
copyIcon?: JSX.Element;
|
|
95
|
-
replyIcon?: JSX.Element;
|
|
96
|
-
replyInThreadIcon?: JSX.Element;
|
|
97
|
-
forwardIcon?: JSX.Element;
|
|
98
|
-
deleteIcon?: JSX.Element;
|
|
99
|
-
selectIcon?: JSX.Element;
|
|
100
|
-
starIcon?: JSX.Element;
|
|
101
|
-
staredIcon?: JSX.Element;
|
|
102
|
-
reportIcon?: JSX.Element;
|
|
103
|
-
openFrequentlyUsedReactions?: boolean;
|
|
104
|
-
fixEmojiCategoriesTitleOnTop?: boolean;
|
|
105
|
-
emojisCategoryIconsPosition?: 'top' | 'bottom';
|
|
106
|
-
emojisContainerBorderRadius?: string;
|
|
107
|
-
reactionIconOrder?: number;
|
|
108
|
-
editIconOrder?: number;
|
|
109
|
-
copyIconOrder?: number;
|
|
110
|
-
replyIconOrder?: number;
|
|
111
|
-
replyInThreadIconOrder?: number;
|
|
112
|
-
forwardIconOrder?: number;
|
|
113
|
-
deleteIconOrder?: number;
|
|
114
|
-
selectIconOrder?: number;
|
|
115
|
-
starIconOrder?: number;
|
|
116
|
-
reportIconOrder?: number;
|
|
117
|
-
reactionIconTooltipText?: string;
|
|
118
|
-
editIconTooltipText?: string;
|
|
119
|
-
copyIconTooltipText?: string;
|
|
120
|
-
replyIconTooltipText?: string;
|
|
121
|
-
replyInThreadIconTooltipText?: string;
|
|
122
|
-
forwardIconTooltipText?: string;
|
|
123
|
-
deleteIconTooltipText?: string;
|
|
124
|
-
selectIconTooltipText?: string;
|
|
125
|
-
starIconTooltipText?: string;
|
|
126
|
-
reportIconTooltipText?: string;
|
|
127
|
-
messageActionIconsColor?: string;
|
|
128
|
-
inlineReactionIcon?: JSX.Element;
|
|
129
|
-
reactionsDisplayCount?: number;
|
|
130
|
-
showEachReactionCount?: boolean;
|
|
131
|
-
showTotalReactionCount?: boolean;
|
|
132
|
-
reactionItemBorder?: string;
|
|
133
|
-
reactionItemBorderRadius?: string;
|
|
134
|
-
reactionItemBackground?: string;
|
|
135
|
-
reactionItemPadding?: string;
|
|
136
|
-
reactionItemMargin?: string;
|
|
137
|
-
reactionsFontSize?: string;
|
|
138
|
-
reactionsContainerBoxShadow?: string;
|
|
139
|
-
reactionsContainerBorder?: string;
|
|
140
|
-
reactionsContainerBorderRadius?: string;
|
|
141
|
-
reactionsContainerBackground?: string;
|
|
142
|
-
reactionsContainerTopPosition?: string;
|
|
143
|
-
reactionsDetailsPopupBorderRadius?: string;
|
|
144
|
-
reactionsDetailsPopupHeaderItemsStyle?: 'bubbles' | 'inline';
|
|
145
|
-
reactionsContainerPadding?: string;
|
|
146
|
-
messageStatusSize?: string;
|
|
147
|
-
messageStatusColor?: string;
|
|
148
|
-
messageReadStatusColor?: string;
|
|
149
|
-
messageStateFontSize?: string;
|
|
150
|
-
messageStateColor?: string;
|
|
151
|
-
messageTimeFontSize?: string;
|
|
152
|
-
messageTimeColor?: string;
|
|
153
|
-
messageStatusAndTimeLineHeight?: string;
|
|
154
|
-
fileAttachmentsBoxWidth?: number;
|
|
155
|
-
fileAttachmentsBoxBackground?: string;
|
|
156
|
-
fileAttachmentsBoxBorder?: string;
|
|
157
|
-
fileAttachmentsTitleColor?: string;
|
|
158
|
-
fileAttachmentsSizeColor?: string;
|
|
159
|
-
fileAttachmentsIcon?: JSX.Element;
|
|
160
|
-
imageAttachmentMaxWidth?: number;
|
|
161
|
-
imageAttachmentMaxHeight?: number;
|
|
162
|
-
videoAttachmentMaxWidth?: number;
|
|
163
|
-
videoAttachmentMaxHeight?: number;
|
|
164
|
-
sameUserMessageSpacing?: string;
|
|
165
|
-
differentUserMessageSpacing?: string;
|
|
166
|
-
selectedMessagesMap?: Map<string, IMessage>;
|
|
167
|
-
contactsMap: {
|
|
168
|
-
[key: string]: any;
|
|
169
|
-
};
|
|
170
|
-
openedMessageMenuId?: string;
|
|
171
|
-
tabIsActive?: boolean;
|
|
172
|
-
connectionStatus: string;
|
|
173
|
-
theme: string;
|
|
174
|
-
messageTextFontSize?: string;
|
|
175
|
-
messageTextLineHeight?: string;
|
|
176
|
-
}
|
|
177
|
-
declare const _default: React.MemoExoticComponent<({ message, channel, MessageActionsMenu, CustomMessageItem, 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, messageStatusSize, messageStatusColor, messageReadStatusColor, messageStateFontSize, messageStateColor, messageTimeFontSize, messageTimeColor, messageStatusAndTimeLineHeight, 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, messageTextFontSize, messageTextLineHeight }: IMessageProps) => React.JSX.Element>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IMessageProps } from './Message.types';
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ message, channel, MessageActionsMenu, CustomMessageItem, handleScrollToRepliedMessage, handleMediaItemClick, stopScrolling, isPendingMessage, 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, messageStatusSize, messageStatusColor, messageReadStatusColor, messageStateFontSize, messageStateColor, messageTimeFontSize, messageTimeColor, messageStatusAndTimeLineHeight, 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, messageTextFontSize, messageTextLineHeight }: IMessageProps) => React.JSX.Element>;
|
|
178
4
|
export default _default;
|
|
179
|
-
export declare const MessageStatusAndTime: import("styled-components").StyledComponent<"span", any, {
|
|
180
|
-
withAttachment?: boolean | undefined;
|
|
181
|
-
fileAttachment?: boolean | undefined;
|
|
182
|
-
hide?: boolean | undefined;
|
|
183
|
-
isSelfMessage?: boolean | undefined;
|
|
184
|
-
marginBottom?: string | undefined;
|
|
185
|
-
leftMargin?: boolean | undefined;
|
|
186
|
-
rtlDirection?: boolean | undefined;
|
|
187
|
-
bottomOfMessage?: boolean | undefined;
|
|
188
|
-
showOnlyOnHover?: boolean | undefined;
|
|
189
|
-
lineHeight?: string | undefined;
|
|
190
|
-
statusColor?: string | undefined;
|
|
191
|
-
}, never>;
|