@bcc-code/vue-bcc-chat-ui 3.18.0 → 3.19.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.
- package/dist/chat/login.d.ts +1 -0
- package/dist/components/BccChatMessageBubble.vue.d.ts +9 -0
- package/dist/offline/index.d.ts +2 -0
- package/dist/offline/types.d.ts +5 -0
- package/dist/vue-bcc-chat-ui.js +10668 -10633
- package/package.json +1 -1
- package/src/components/BccChatMessageBubble.vue +28 -1
- package/src/components/BccChatMessageList.vue +4 -0
package/dist/chat/login.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const getAccessToken: () => string | null;
|
|
1
2
|
export declare const loggedIn: import('vue').Ref<boolean, boolean>;
|
|
2
3
|
export declare const login: (accessToken?: string | null | undefined) => Promise<boolean | undefined>;
|
|
3
4
|
export declare const logout: () => Promise<boolean>;
|
|
@@ -7,6 +7,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
7
7
|
metadata: {
|
|
8
8
|
type: ObjectConstructor;
|
|
9
9
|
};
|
|
10
|
+
guid: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
10
14
|
mentionedUsers: {
|
|
11
15
|
type: {
|
|
12
16
|
(arrayLength: number): User[];
|
|
@@ -45,6 +49,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
45
49
|
metadata: {
|
|
46
50
|
type: ObjectConstructor;
|
|
47
51
|
};
|
|
52
|
+
guid: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
48
56
|
mentionedUsers: {
|
|
49
57
|
type: {
|
|
50
58
|
(arrayLength: number): User[];
|
|
@@ -79,5 +87,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
79
87
|
message: MediaMessage;
|
|
80
88
|
src: string;
|
|
81
89
|
placeholderImage: string;
|
|
90
|
+
guid: string;
|
|
82
91
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
83
92
|
export default _default;
|
package/dist/offline/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { OfflineStore } from './types.js';
|
|
2
|
+
export declare let offlineStore: OfflineStore;
|
|
1
3
|
export declare function installOfflineCaching(): void;
|
|
2
4
|
export declare function purgeLeftChatsFromCache(conversations: CometChat.Conversation[]): void;
|
|
3
5
|
declare const _default: {
|
package/dist/offline/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MessageCategory } from '@cometchat/chat-sdk-javascript';
|
|
1
2
|
export type ReqType = {
|
|
2
3
|
url: URL;
|
|
3
4
|
query: Record<string, any>;
|
|
@@ -18,7 +19,10 @@ export interface Message {
|
|
|
18
19
|
id: string;
|
|
19
20
|
conversationId: string;
|
|
20
21
|
receiver: string;
|
|
22
|
+
receiverType: string;
|
|
21
23
|
sentAt: number;
|
|
24
|
+
category: MessageCategory;
|
|
25
|
+
type: string;
|
|
22
26
|
parentId?: string;
|
|
23
27
|
data?: any;
|
|
24
28
|
}
|
|
@@ -28,6 +32,7 @@ export interface Conversation {
|
|
|
28
32
|
}
|
|
29
33
|
export interface Group {
|
|
30
34
|
guid: string;
|
|
35
|
+
hasJoined: boolean | undefined;
|
|
31
36
|
}
|
|
32
37
|
export interface PaginatedResponse<T> {
|
|
33
38
|
data: T[];
|