@bcc-code/vue-bcc-chat-ui 3.20.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.
@@ -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: import('vue').Ref<{
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: import('vue').Ref<boolean, boolean>;
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?: import('vue').Ref<import('@cometchat/chat-sdk-javascript').Group | undefined>): any;
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: import('vue').Ref<import('./types').UserChatInfo[]>;
434
+ userChats: Ref<import('./types').UserChatInfo[]>;
433
435
  install: typeof install;
434
- initialized: import('vue').Ref<boolean, boolean>;
436
+ initialized: Ref<boolean, boolean>;
435
437
  };
436
438
  export default _default;
@@ -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;