sceyt-chat-react-uikit 1.5.12 → 1.5.15
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/ChannelList/index.d.ts +4 -4
- package/components/Chat/index.d.ts +3 -2
- package/components/SendMessageInput/index.d.ts +9 -0
- package/index.js +632 -484
- package/index.modern.js +35162 -0
- package/package.json +3 -1
- package/types/index.d.ts +3 -0
|
@@ -11,13 +11,13 @@ interface IChannelListProps {
|
|
|
11
11
|
loadMoreChannels: (count?: number) => void;
|
|
12
12
|
searchValue: string;
|
|
13
13
|
children: React.ReactNode;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
selectedChannel?: IChannel;
|
|
15
|
+
setSelectedChannel?: (channel: IChannel) => void;
|
|
16
16
|
}>;
|
|
17
17
|
ListItem?: FC<{
|
|
18
18
|
channel?: IChannel;
|
|
19
19
|
contact?: IContact;
|
|
20
|
-
|
|
20
|
+
setSelectedChannel?: (channel: IChannel) => void;
|
|
21
21
|
createChatWithContact?: (contact: IContact) => void;
|
|
22
22
|
}>;
|
|
23
23
|
className?: string;
|
|
@@ -29,7 +29,7 @@ interface IChannelListProps {
|
|
|
29
29
|
searchInputTextColor?: string;
|
|
30
30
|
searchChannelsPosition?: 'inline' | 'bottom';
|
|
31
31
|
searchInputBorderRadius?: string;
|
|
32
|
-
|
|
32
|
+
getSelectedChannel?: (channel: IChannel) => void;
|
|
33
33
|
filter?: {
|
|
34
34
|
channelType?: string;
|
|
35
35
|
};
|
|
@@ -4,9 +4,10 @@ interface IProps {
|
|
|
4
4
|
hideChannelList?: boolean;
|
|
5
5
|
className?: string;
|
|
6
6
|
children?: JSX.Element | JSX.Element[];
|
|
7
|
-
|
|
7
|
+
onSelectedChannelUpdated?: (selectedChannel: IChannel) => void;
|
|
8
|
+
selectedChannelId?: string;
|
|
8
9
|
noChannelSelectedBackgroundColor?: string;
|
|
9
10
|
CustomNoChannelSelected?: JSX.Element;
|
|
10
11
|
}
|
|
11
|
-
export default function Chat({ children, hideChannelList,
|
|
12
|
+
export default function Chat({ children, hideChannelList, onSelectedChannelUpdated, selectedChannelId, className, noChannelSelectedBackgroundColor, CustomNoChannelSelected }: IProps): JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -12,6 +12,15 @@ interface SendMessageProps {
|
|
|
12
12
|
AddEmojisIcon?: JSX.Element;
|
|
13
13
|
emojiIcoOrder?: number;
|
|
14
14
|
showAddAttachments?: boolean;
|
|
15
|
+
allowedMediaExtensions?: string[];
|
|
16
|
+
showChooseFileAttachment?: boolean;
|
|
17
|
+
showChooseMediaAttachment?: boolean;
|
|
18
|
+
attachmentSizeLimitErrorMessage?: string;
|
|
19
|
+
allowedMediaExtensionsErrorMessage?: string;
|
|
20
|
+
chooseMediaAttachmentText?: string;
|
|
21
|
+
chooseFileAttachmentText?: string;
|
|
22
|
+
mediaAttachmentSizeLimit?: number;
|
|
23
|
+
fileAttachmentSizeLimit?: number;
|
|
15
24
|
AddAttachmentsIcon?: JSX.Element;
|
|
16
25
|
attachmentIcoOrder?: number;
|
|
17
26
|
sendIconOrder?: number;
|