sceyt-chat-react-uikit 1.7.1-beta.9 → 1.7.2-beta.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/components/Channel/index.d.ts +22 -1
- package/components/ChannelList/ChannelSearch/index.d.ts +1 -0
- package/components/ChannelList/index.d.ts +6 -1
- package/index.js +699 -397
- package/index.modern.js +699 -397
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IChannel, IContact } from '../../types';
|
|
2
|
+
import { IChannel, IContact, IMessage, IUser } from '../../types';
|
|
3
3
|
interface IChannelProps {
|
|
4
4
|
channel: IChannel;
|
|
5
5
|
showAvatar?: boolean;
|
|
@@ -26,6 +26,27 @@ interface IChannelProps {
|
|
|
26
26
|
channelLastMessageTimeFontSize?: string;
|
|
27
27
|
channelAvatarSize?: number;
|
|
28
28
|
channelAvatarTextSize?: number;
|
|
29
|
+
setSelectedChannel: (channel: IChannel) => void;
|
|
30
|
+
getCustomLatestMessage?: (args: {
|
|
31
|
+
lastMessage: IMessage;
|
|
32
|
+
typingOrRecording: any;
|
|
33
|
+
draftMessageText: any;
|
|
34
|
+
textSecondary: string;
|
|
35
|
+
channel: IChannel;
|
|
36
|
+
channelLastMessageFontSize: string;
|
|
37
|
+
channelLastMessageHeight: string;
|
|
38
|
+
isDirectChannel: boolean;
|
|
39
|
+
textPrimary: string;
|
|
40
|
+
messageAuthorRef: any;
|
|
41
|
+
contactsMap: {
|
|
42
|
+
[key: string]: IContact;
|
|
43
|
+
};
|
|
44
|
+
getFromContacts: boolean;
|
|
45
|
+
warningColor: string;
|
|
46
|
+
user: IUser;
|
|
47
|
+
MessageText: any;
|
|
48
|
+
}) => any;
|
|
49
|
+
doNotShowMessageDeliveryTypes: string[];
|
|
29
50
|
}
|
|
30
51
|
declare const Channel: React.FC<IChannelProps>;
|
|
31
52
|
export default Channel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
import { IChannel, IContact } from '../../types';
|
|
2
|
+
import { IChannel, IContact, IMessage, IUser } from '../../types';
|
|
3
3
|
interface IChannelListProps {
|
|
4
4
|
List?: FC<{
|
|
5
5
|
channels: IChannel[];
|
|
@@ -28,6 +28,7 @@ interface IChannelListProps {
|
|
|
28
28
|
searchInputBackgroundColor?: string;
|
|
29
29
|
searchInputTextColor?: string;
|
|
30
30
|
searchChannelsPosition?: 'inline' | 'bottom';
|
|
31
|
+
channelSearchWidth?: string;
|
|
31
32
|
searchInputBorderRadius?: string;
|
|
32
33
|
searchChannelsPadding?: string;
|
|
33
34
|
getSelectedChannel?: (channel: IChannel) => void;
|
|
@@ -74,6 +75,10 @@ interface IChannelListProps {
|
|
|
74
75
|
onChannelHidden?: (channelList: IChannel[], hiddenChannel: IChannel, setChannels: (updatedChannelList: IChannel[]) => void) => void;
|
|
75
76
|
onChannelVisible?: (channelList: IChannel[], visibleChannel: IChannel, setChannels: (updatedChannelList: IChannel[]) => void) => void;
|
|
76
77
|
onAddedToChannel?: (channelList: IChannel[], channel: IChannel, setChannels: (updatedChannelList: IChannel[]) => void) => void;
|
|
78
|
+
getCustomLatestMessage?: (lastMessage: IMessage, typingOrRecording: any, draftMessageText: any, textSecondary: string, channel: IChannel, channelLastMessageFontSize: string, channelLastMessageHeight: string, isDirectChannel: boolean, textPrimary: string, messageAuthorRef: any, contactsMap: {
|
|
79
|
+
[key: string]: IContact;
|
|
80
|
+
}, getFromContacts: boolean, warningColor: string, user: IUser, MessageText: any) => any;
|
|
81
|
+
doNotShowMessageDeliveryTypes: string[];
|
|
77
82
|
}
|
|
78
83
|
declare const ChannelList: React.FC<IChannelListProps>;
|
|
79
84
|
export default ChannelList;
|