@bcc-code/vue-bcc-chat-ui 3.40.2 → 3.41.0
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/dist/chat/data.d.ts +2 -1
- package/dist/chat/index.d.ts +1 -0
- package/dist/chat/types.d.ts +6 -0
- package/dist/components/BccChatMessageList.vue.d.ts +6 -2
- package/dist/vue-bcc-chat-ui.js +11911 -11831
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/package.json +1 -1
- package/src/components/BccChatMessageList.vue +68 -7
package/dist/chat/data.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Group, BaseMessage } from '@cometchat/chat-sdk-javascript';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
|
-
import { UserChatInfo } from './types';
|
|
3
|
+
import { ParticipantInfo, UserChatInfo } from './types';
|
|
4
4
|
export declare function getGroup(groupUid: string): Promise<Group | null>;
|
|
5
5
|
export declare function clearGroupChatCount(groupUid: string): Promise<void>;
|
|
6
6
|
export declare function getGroupOnlineCount(groupUid: string): Promise<number>;
|
|
7
|
+
export declare function getGroupMembersInfo(groupUid: string): Promise<ParticipantInfo[]>;
|
|
7
8
|
export declare const userChats: Ref<UserChatInfo[]>;
|
|
8
9
|
export declare function getUserChats(): Promise<UserChatInfo[]>;
|
|
9
10
|
export declare function getSenderDisplayName(message: BaseMessage | undefined, group?: Ref<Group | undefined>): any;
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -428,6 +428,7 @@ declare const _default: {
|
|
|
428
428
|
getGroup(groupUid: string): Promise<import('@cometchat/chat-sdk-javascript').Group | null>;
|
|
429
429
|
clearGroupChatCount(groupUid: string): Promise<void>;
|
|
430
430
|
getGroupOnlineCount(groupUid: string): Promise<number>;
|
|
431
|
+
getGroupMembersInfo(groupUid: string): Promise<import('./types').ParticipantInfo[]>;
|
|
431
432
|
getUserChats(): Promise<import('./types').UserChatInfo[]>;
|
|
432
433
|
getSenderDisplayName(message: import('@cometchat/chat-sdk-javascript').BaseMessage | undefined, group?: Ref<import('@cometchat/chat-sdk-javascript').Group | undefined>): any;
|
|
433
434
|
getMessageTextPreview(message?: import('@cometchat/chat-sdk-javascript').BaseMessage, showEmoji?: boolean, showAttachmentName?: boolean): string;
|
package/dist/chat/types.d.ts
CHANGED
|
@@ -58,6 +58,12 @@ export interface MessageInfo {
|
|
|
58
58
|
senderName: string;
|
|
59
59
|
sentAt: Date;
|
|
60
60
|
}
|
|
61
|
+
export interface ParticipantInfo {
|
|
62
|
+
uid: string;
|
|
63
|
+
displayName: string;
|
|
64
|
+
avatar: string;
|
|
65
|
+
role: string;
|
|
66
|
+
}
|
|
61
67
|
export interface DispatchData {
|
|
62
68
|
muid: string;
|
|
63
69
|
originalChatUid: string;
|
|
@@ -17,7 +17,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
17
17
|
type: PropType<(guid: string, query: string) => Promise<any>>;
|
|
18
18
|
required: false;
|
|
19
19
|
};
|
|
20
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
groupMembersFetched: (...args: any[]) => void;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
23
|
chatUid: {
|
|
22
24
|
type: StringConstructor;
|
|
23
25
|
required: true;
|
|
@@ -35,7 +37,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
35
37
|
type: PropType<(guid: string, query: string) => Promise<any>>;
|
|
36
38
|
required: false;
|
|
37
39
|
};
|
|
38
|
-
}>> & Readonly<{
|
|
40
|
+
}>> & Readonly<{
|
|
41
|
+
onGroupMembersFetched?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
}>, {
|
|
39
43
|
hideDeletedMessages: boolean;
|
|
40
44
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
41
45
|
export default _default;
|