@bcc-code/vue-bcc-chat-ui 5.7.4 → 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.
- package/dist/chat/data.d.ts +5 -1
- package/dist/chat/index.d.ts +4 -0
- package/dist/chat/types.d.ts +3 -0
- package/dist/offline/offlineStoreLocalStorage.d.ts +2 -0
- package/dist/offline/types.d.ts +3 -0
- package/dist/vue-bcc-chat-ui.js +20903 -20837
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/package.json +2 -2
- package/src/components/BccChatMessageList.vue +24 -19
package/dist/chat/data.d.ts
CHANGED
|
@@ -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;
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -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;
|
package/dist/chat/types.d.ts
CHANGED
|
@@ -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;
|
|
@@ -11,6 +11,8 @@ export declare class OfflineStoreLocalStorage implements OfflineStore {
|
|
|
11
11
|
data: Message;
|
|
12
12
|
};
|
|
13
13
|
saveMessages(messages: Message[]): void;
|
|
14
|
+
checkIfCachedMessagesIsExpired(): boolean;
|
|
15
|
+
updateExpiredCachedMessages(): Promise<void>;
|
|
14
16
|
purgeMessages(keepByConversationIds: string[]): void;
|
|
15
17
|
getConversations(pagination: ConversationPaginationMeta): PaginatedResponse<Conversation>;
|
|
16
18
|
saveConversations(conversations: Conversation[]): void;
|
package/dist/offline/types.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export interface Message {
|
|
|
26
26
|
type: string;
|
|
27
27
|
parentId?: string;
|
|
28
28
|
data?: any;
|
|
29
|
+
lastUpdated?: number;
|
|
29
30
|
}
|
|
30
31
|
export interface Conversation {
|
|
31
32
|
conversationId: string;
|
|
@@ -61,4 +62,6 @@ export interface OfflineStore {
|
|
|
61
62
|
storeSettings(participantSettings: CachedParticipantSettings): void;
|
|
62
63
|
getLastMessage(groupId: string): CachedLastMessage | null;
|
|
63
64
|
storeLastMessage(lastMessage: CachedLastMessage): void;
|
|
65
|
+
checkIfCachedMessagesIsExpired(): boolean;
|
|
66
|
+
updateExpiredCachedMessages(): Promise<void>;
|
|
64
67
|
}
|