@bcc-code/vue-bcc-chat-ui 3.19.0 → 3.21.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/index.d.ts +7 -5
- package/dist/chat/types.d.ts +1 -0
- package/dist/vue-bcc-chat-ui.js +7745 -7732
- package/package.json +1 -1
- package/src/components/BccChatMessageList.vue +13 -1
package/dist/chat/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
1
2
|
import { ChatInstallOptions } from './types';
|
|
2
3
|
declare function install(app: any, options: ChatInstallOptions): Promise<void>;
|
|
3
4
|
declare const _default: {
|
|
4
5
|
setLanguage: (lang: import('./types').Language) => void;
|
|
6
|
+
getGroupMessages: Ref<((guid: string, query: string) => Promise<any>) | undefined, ((guid: string, query: string) => Promise<any>) | undefined>;
|
|
5
7
|
onlineMode: import('vue').WritableComputedRef<import('../offline/types').OnlineStatus, import('../offline/types').OnlineStatus>;
|
|
6
8
|
onlineStatus: import('vue').ComputedRef<import('../offline/types').OnlineStatus>;
|
|
7
|
-
theme:
|
|
9
|
+
theme: Ref<{
|
|
8
10
|
palette: {
|
|
9
11
|
mode: string;
|
|
10
12
|
background: {
|
|
@@ -410,7 +412,7 @@ declare const _default: {
|
|
|
410
412
|
};
|
|
411
413
|
}>;
|
|
412
414
|
setThemeMode: (mode: import('./types').ThemeMode) => void;
|
|
413
|
-
loggedIn:
|
|
415
|
+
loggedIn: Ref<boolean, boolean>;
|
|
414
416
|
login: (accessToken?: string | null | undefined) => Promise<boolean | undefined>;
|
|
415
417
|
logout: () => Promise<boolean>;
|
|
416
418
|
loginWithChatToken: (chatToken: string) => Promise<boolean>;
|
|
@@ -426,11 +428,11 @@ declare const _default: {
|
|
|
426
428
|
clearGroupChatCount(groupUid: string): Promise<void>;
|
|
427
429
|
getGroupOnlineCount(groupUid: string): Promise<number>;
|
|
428
430
|
getUserChats(): Promise<import('./types').UserChatInfo[]>;
|
|
429
|
-
getSenderDisplayName(message: import('@cometchat/chat-sdk-javascript').BaseMessage | undefined, group?:
|
|
431
|
+
getSenderDisplayName(message: import('@cometchat/chat-sdk-javascript').BaseMessage | undefined, group?: Ref<import('@cometchat/chat-sdk-javascript').Group | undefined>): any;
|
|
430
432
|
getMessageTextPreview(message?: import('@cometchat/chat-sdk-javascript').BaseMessage, showEmoji?: boolean, showAttachmentName?: boolean): string;
|
|
431
433
|
proxyImage(imageUrl: string): string;
|
|
432
|
-
userChats:
|
|
434
|
+
userChats: Ref<import('./types').UserChatInfo[]>;
|
|
433
435
|
install: typeof install;
|
|
434
|
-
initialized:
|
|
436
|
+
initialized: Ref<boolean, boolean>;
|
|
435
437
|
};
|
|
436
438
|
export default _default;
|
package/dist/chat/types.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export interface ChatInstallOptions {
|
|
|
5
5
|
language?: Language;
|
|
6
6
|
themeMode: ThemeMode;
|
|
7
7
|
accessToken?: Ref<string | null | undefined> | null | undefined | string;
|
|
8
|
+
groupMessagesGetter?: (guid: string, query: string) => Promise<any>;
|
|
8
9
|
}
|
|
9
10
|
export interface ChatInstance {
|
|
10
11
|
componentId: string;
|