@bcc-code/vue-bcc-chat-ui 5.3.0 → 5.4.2
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 +2 -2
- package/dist/chat/index.d.ts +2 -2
- package/dist/chat/types.d.ts +6 -1
- package/dist/offline/offlineStoreLocalStorage.d.ts +4 -1
- package/dist/offline/types.d.ts +3 -0
- package/dist/vue-bcc-chat-ui.js +9347 -9323
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/package.json +1 -1
- package/src/components/BccChatMessageList.vue +2 -2
package/dist/chat/data.d.ts
CHANGED
|
@@ -12,5 +12,5 @@ export declare function scrollToMessage(messageId: string): void;
|
|
|
12
12
|
export declare function getSenderDisplayName(message: BaseMessage | undefined, group?: Ref<Group | undefined>): any;
|
|
13
13
|
export declare function getMessageTextPreview(message?: BaseMessage, showEmoji?: boolean, showAttachmentName?: boolean): string;
|
|
14
14
|
export declare function proxyImage(imageUrl: string): string;
|
|
15
|
-
export declare function getMutedUntil(chatUid: string): Promise<
|
|
16
|
-
export declare function muteChat(chatUid: string, mutedUntil:
|
|
15
|
+
export declare function getMutedUntil(chatUid: string): Promise<string | null>;
|
|
16
|
+
export declare function muteChat(chatUid: string, mutedUntil: string | null): Promise<string | null>;
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -435,8 +435,8 @@ declare const _default: {
|
|
|
435
435
|
getSenderDisplayName(message: import('@cometchat/chat-sdk-javascript').BaseMessage | undefined, group?: Ref<import('@cometchat/chat-sdk-javascript').Group | undefined>): any;
|
|
436
436
|
getMessageTextPreview(message?: import('@cometchat/chat-sdk-javascript').BaseMessage, showEmoji?: boolean, showAttachmentName?: boolean): string;
|
|
437
437
|
proxyImage(imageUrl: string): string;
|
|
438
|
-
getMutedUntil(chatUid: string): Promise<
|
|
439
|
-
muteChat(chatUid: string, mutedUntil:
|
|
438
|
+
getMutedUntil(chatUid: string): Promise<string | null>;
|
|
439
|
+
muteChat(chatUid: string, mutedUntil: string | null): Promise<string | null>;
|
|
440
440
|
userChats: Ref<import('./types').UserChatInfo[]>;
|
|
441
441
|
install: typeof install;
|
|
442
442
|
updateGetGroupMessages: typeof updateGetGroupMessages;
|
package/dist/chat/types.d.ts
CHANGED
|
@@ -97,5 +97,10 @@ export interface SearchedItems {
|
|
|
97
97
|
export interface ParticipantSettings {
|
|
98
98
|
chatUid: string;
|
|
99
99
|
personUid: string;
|
|
100
|
-
mutedUntil:
|
|
100
|
+
mutedUntil: string | null;
|
|
101
|
+
}
|
|
102
|
+
export interface CachedParticipantSettings {
|
|
103
|
+
chatUid: string;
|
|
104
|
+
mutedUntil: string | null;
|
|
105
|
+
lastUpdated: number;
|
|
101
106
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Conversation, ConversationPaginationMeta, Group, Message, MessagePaginationMeta, OfflineStore, PaginatedResponse } from './types';
|
|
2
1
|
import { default as Fuse } from 'fuse.js';
|
|
2
|
+
import { CachedParticipantSettings } from '../chat/types';
|
|
3
|
+
import { Conversation, ConversationPaginationMeta, Group, Message, MessagePaginationMeta, OfflineStore, PaginatedResponse } from './types';
|
|
3
4
|
export declare class OfflineStoreLocalStorage implements OfflineStore {
|
|
4
5
|
#private;
|
|
5
6
|
storePrefix: string;
|
|
@@ -19,4 +20,6 @@ export declare class OfflineStoreLocalStorage implements OfflineStore {
|
|
|
19
20
|
purgeGroups(keepGroupIds: string[]): void;
|
|
20
21
|
getFuseConversations(): Fuse<Conversation>;
|
|
21
22
|
getFuseMessages(): Fuse<Message>;
|
|
23
|
+
getParticipantSettings(uid: string): CachedParticipantSettings | null;
|
|
24
|
+
storeSettings(participantSettings: CachedParticipantSettings): void;
|
|
22
25
|
}
|
package/dist/offline/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as Fuse } from 'fuse.js';
|
|
2
|
+
import { CachedParticipantSettings } from '../chat/types';
|
|
2
3
|
export type ReqType = {
|
|
3
4
|
url: URL;
|
|
4
5
|
query: Record<string, any>;
|
|
@@ -56,4 +57,6 @@ export interface OfflineStore {
|
|
|
56
57
|
getGroup(groupId: string): Group | null;
|
|
57
58
|
saveGroup(group: Group): void;
|
|
58
59
|
purgeGroups(keepGroupIds: string[]): void;
|
|
60
|
+
getParticipantSettings(uid: string): CachedParticipantSettings | null;
|
|
61
|
+
storeSettings(participantSettings: CachedParticipantSettings): void;
|
|
59
62
|
}
|