@bcc-code/vue-bcc-chat-ui 3.24.0 → 3.26.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,6 +1,7 @@
1
1
  import { Ref } from 'vue';
2
2
  import { ChatInstallOptions } from './types';
3
3
  declare function install(app: any, options: ChatInstallOptions): Promise<void>;
4
+ declare function updateGetGroupMessages(groupMessageGetter: ((guid: string, query: string) => Promise<any>) | undefined): void;
4
5
  declare const _default: {
5
6
  setLanguage: (lang: import('./types').Language) => void;
6
7
  getGroupMessages: Ref<((guid: string, query: string) => Promise<any>) | undefined, ((guid: string, query: string) => Promise<any>) | undefined>;
@@ -433,6 +434,7 @@ declare const _default: {
433
434
  proxyImage(imageUrl: string): string;
434
435
  userChats: Ref<import('./types').UserChatInfo[]>;
435
436
  install: typeof install;
437
+ updateGetGroupMessages: typeof updateGetGroupMessages;
436
438
  initialized: Ref<boolean, boolean>;
437
439
  };
438
440
  export default _default;
@@ -5,7 +5,6 @@ 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>;
9
8
  }
10
9
  export interface ChatInstance {
11
10
  componentId: string;
@@ -17,9 +16,17 @@ export interface ChatInstance {
17
16
  height: number;
18
17
  };
19
18
  } | null;
19
+ decoyAttachment: {
20
+ fileObject?: File;
21
+ dimensions?: {
22
+ width: number;
23
+ height: number;
24
+ };
25
+ } | null;
20
26
  scheduledMessageChat?: Group;
21
27
  showScheduledMessagesChat: boolean;
22
28
  showAlert: boolean;
29
+ userInput: string | null;
23
30
  }
24
31
  export interface View {
25
32
  componentName: string;
@@ -1,3 +1,4 @@
1
+ import { PropType } from 'vue';
1
2
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
3
  chatUid: {
3
4
  type: StringConstructor;
@@ -7,6 +8,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
7
8
  type: StringConstructor;
8
9
  required: false;
9
10
  };
11
+ groupMessageGetter: {
12
+ type: PropType<(guid: string, query: string) => Promise<any>>;
13
+ required: false;
14
+ };
10
15
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
16
  chatUid: {
12
17
  type: StringConstructor;
@@ -16,5 +21,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
16
21
  type: StringConstructor;
17
22
  required: false;
18
23
  };
24
+ groupMessageGetter: {
25
+ type: PropType<(guid: string, query: string) => Promise<any>>;
26
+ required: false;
27
+ };
19
28
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
29
  export default _default;