easemob-chat-uikit 2.3.1 → 2.3.2-beta.2
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/ChatUI.esm.js +10468 -10439
- package/ChatUI.js +62 -62
- package/ChatUI.umd.js +62 -62
- package/package.json +1 -1
- package/types/component/icon/const.d.ts +7 -1
- package/types/module/chatroom/Chatroom.d.ts +6 -0
- package/types/module/conversation/ConversationList.d.ts +1 -0
- package/types/module/hooks/useConversation.d.ts +3 -3
package/package.json
CHANGED
|
@@ -107,6 +107,12 @@ declare enum ICON_TYPES {
|
|
|
107
107
|
PERSON_SLASH_FILL = "PERSON_SLASH_FILL",
|
|
108
108
|
CHEVRON_4_ALL_AROUND = "CHEVRON_4_ALL_AROUND",
|
|
109
109
|
CHEVRON_4_CLUSTER = "CHEVRON_4_CLUSTER",
|
|
110
|
-
BOXES = "BOXES"
|
|
110
|
+
BOXES = "BOXES",
|
|
111
|
+
THREE_CHART = "THREE_CHART",
|
|
112
|
+
PERSON_3LINES_FILL = "PERSON_3LINES_FILL",
|
|
113
|
+
BAR_SQUARE_FILL = "BAR_SQUARE_FILL",
|
|
114
|
+
DOC_LOCK = "DOC_LOCK",
|
|
115
|
+
BOX_UP_ARROW = "BOX_UP_ARROW",
|
|
116
|
+
SHIELD_STAR = "SHIELD_STAR"
|
|
111
117
|
}
|
|
112
118
|
export { ICON_TYPES };
|
|
@@ -5,6 +5,7 @@ import { MsgListProps } from '../chat/MessageList';
|
|
|
5
5
|
import { ChatroomMessageActionConfig } from '../chatroomMessage';
|
|
6
6
|
import { BroadcastProps } from '../../component/broadcast';
|
|
7
7
|
import { ChatroomInfo } from '../store/AddressStore';
|
|
8
|
+
import { MessageRenderer } from '../chat/MessageList';
|
|
8
9
|
export declare let reportType: Record<string, string>;
|
|
9
10
|
export interface ChatroomProps {
|
|
10
11
|
prefix?: string;
|
|
@@ -27,6 +28,11 @@ export interface ChatroomProps {
|
|
|
27
28
|
chatroomId: string;
|
|
28
29
|
reportType?: Record<string, string>;
|
|
29
30
|
messageActionConfig?: ChatroomMessageActionConfig;
|
|
31
|
+
customMessageRenderers?: {
|
|
32
|
+
txt?: MessageRenderer;
|
|
33
|
+
custom?: MessageRenderer;
|
|
34
|
+
};
|
|
35
|
+
showUnreadCount?: boolean;
|
|
30
36
|
}
|
|
31
37
|
declare let Chatroom: (props: ChatroomProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
38
|
export { Chatroom };
|
|
@@ -21,6 +21,7 @@ export interface ConversationListProps {
|
|
|
21
21
|
itemProps?: Partial<ConversationItemProps>;
|
|
22
22
|
presence?: boolean;
|
|
23
23
|
showSearchList?: boolean;
|
|
24
|
+
includeEmptyConversations?: boolean;
|
|
24
25
|
}
|
|
25
26
|
declare const ConversationList: React.FunctionComponent<ConversationListProps>;
|
|
26
27
|
export { ConversationList };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const useConversations: () => {
|
|
1
|
+
declare const useConversations: (includeEmptyConversations?: boolean) => {
|
|
2
2
|
getConversationList: () => Promise<void>;
|
|
3
3
|
hasConversationNext: boolean;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
export { useConversations,
|
|
5
|
+
declare const clearCursor: () => void;
|
|
6
|
+
export { useConversations, clearCursor };
|