@bcc-code/vue-bcc-chat-ui 5.7.6 → 5.7.7

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,6 @@
1
1
  import { BaseMessage, Group, User } from '@cometchat/chat-sdk-javascript';
2
2
  import { Ref } from 'vue';
3
- import { ParticipantInfo, SearchedItems, UserChatInfo } from './types';
3
+ import { ParticipantInfo, PersonSettings, SearchedItems, UserChatInfo } from './types';
4
4
  export declare function getGroup(groupUid: string): Promise<Group | null | undefined>;
5
5
  export declare function clearGroupChatCount(groupUid: string): Promise<void>;
6
6
  export declare function getGroupOnlineCount(groupUid: string): Promise<number>;
@@ -14,4 +14,8 @@ export declare function getMessageTextPreview(message?: BaseMessage, showEmoji?:
14
14
  export declare function proxyImage(imageUrl: string): string;
15
15
  export declare function getMutedUntil(chatUid: string): Promise<string | null>;
16
16
  export declare function muteChat(chatUid: string, mutedUntil: string | null): Promise<string | null>;
17
+ export declare function getMyChatSettings(): Promise<PersonSettings>;
18
+ export declare function updateMyChatSettings(settings: Partial<PersonSettings>): Promise<PersonSettings>;
19
+ export declare function setMuteAll(mute: boolean): Promise<boolean>;
20
+ export declare function toggleMuteAll(): Promise<boolean>;
17
21
  export declare function toMarkdownHtml(str: string, mentionedUsers?: User[]): string;
@@ -437,6 +437,10 @@ declare const _default: {
437
437
  proxyImage(imageUrl: string): string;
438
438
  getMutedUntil(chatUid: string): Promise<string | null>;
439
439
  muteChat(chatUid: string, mutedUntil: string | null): Promise<string | null>;
440
+ getMyChatSettings(): Promise<import('./types').PersonSettings>;
441
+ updateMyChatSettings(settings: Partial<import('./types').PersonSettings>): Promise<import('./types').PersonSettings>;
442
+ setMuteAll(mute: boolean): Promise<boolean>;
443
+ toggleMuteAll(): Promise<boolean>;
440
444
  toMarkdownHtml(str: string, mentionedUsers?: import('@cometchat/chat-sdk-javascript').User[]): string;
441
445
  userChats: Ref<import('./types').UserChatInfo[]>;
442
446
  install: typeof install;
@@ -107,6 +107,9 @@ export interface ParticipantSettings {
107
107
  personUid: string;
108
108
  mutedUntil: string | null;
109
109
  }
110
+ export interface PersonSettings {
111
+ mutedAll: boolean;
112
+ }
110
113
  export interface CachedParticipantSettings {
111
114
  chatUid: string;
112
115
  mutedUntil: string | null;