@bcc-code/vue-bcc-chat-ui 1.4.1 → 1.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/connection.d.ts +8 -7
- package/dist/chat/data.d.ts +2 -2
- package/dist/chat/index.d.ts +5 -12
- package/dist/chat/mobileView.d.ts +0 -1
- package/dist/chat/token.d.ts +3 -1
- package/dist/chat/uiKit.d.ts +0 -1
- package/dist/vue-bcc-chat-ui.js +70172 -69688
- package/package.json +4 -5
- package/src/components/BccChatMessageList.vue +83 -105
- package/dist/chat/login.d.ts +0 -9
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const setAccessToken: (token: string | null | undefined) => void;
|
|
2
|
+
export declare const refreshConnection: () => Promise<void>;
|
|
3
|
+
export declare const connect: (connectionName: string | null | undefined) => Promise<null | undefined>;
|
|
4
|
+
export declare const disconnect: (connectionName: string | null | undefined) => Promise<any>;
|
|
2
5
|
export declare const reconnect: () => Promise<boolean>;
|
|
3
|
-
export declare const connect: (connectionName?: string | null | undefined) => Promise<boolean>;
|
|
4
|
-
export declare const disconnect: (connectionName?: string | null | undefined) => Promise<void>;
|
|
5
|
-
export declare const setAccessToken: (token: string) => Promise<void>;
|
|
6
6
|
declare const _default: {
|
|
7
|
-
setAccessToken: (token: string) =>
|
|
8
|
-
connect: (connectionName
|
|
9
|
-
disconnect: (connectionName
|
|
7
|
+
setAccessToken: (token: string | null | undefined) => void;
|
|
8
|
+
connect: (connectionName: string | null | undefined) => Promise<null | undefined>;
|
|
9
|
+
disconnect: (connectionName: string | null | undefined) => Promise<any>;
|
|
10
10
|
reconnect: () => Promise<boolean>;
|
|
11
|
+
refreshConnection: () => Promise<void>;
|
|
11
12
|
connected: import("vue").ComputedRef<boolean>;
|
|
12
13
|
};
|
|
13
14
|
export default _default;
|
package/dist/chat/data.d.ts
CHANGED
|
@@ -15,12 +15,12 @@ export interface MessageInfo {
|
|
|
15
15
|
sentAt: Date;
|
|
16
16
|
}
|
|
17
17
|
export declare const userChats: Ref<UserChatInfo[]>;
|
|
18
|
-
export declare const getGroup: (groupUid: string) => Promise<Group
|
|
18
|
+
export declare const getGroup: (groupUid: string) => Promise<Group>;
|
|
19
19
|
export declare const clearGroupChatCount: (groupUid: string) => Promise<void>;
|
|
20
20
|
export declare const getGroupOnlineCount: (groupUid: string) => Promise<Object | 0>;
|
|
21
21
|
export declare const getUserChats: () => Promise<Ref<UserChatInfo[]>> | undefined;
|
|
22
22
|
declare const _default: {
|
|
23
|
-
getGroup: (groupUid: string) => Promise<Group
|
|
23
|
+
getGroup: (groupUid: string) => Promise<Group>;
|
|
24
24
|
userChats: Ref<UserChatInfo[]>;
|
|
25
25
|
getUserChats: () => Promise<Ref<UserChatInfo[]>> | undefined;
|
|
26
26
|
clearGroupChatCount: (groupUid: string) => Promise<void>;
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -10,10 +10,8 @@ export * as mobileView from "./mobileView";
|
|
|
10
10
|
export * as connection from "./connection";
|
|
11
11
|
export * as data from "./data";
|
|
12
12
|
export * as environment from "./environment";
|
|
13
|
-
export * as login from "./login";
|
|
14
13
|
declare const _default: {
|
|
15
14
|
install: (app: any, options: ChatInstallOptions) => Promise<void>;
|
|
16
|
-
initialized: import("vue").ComputedRef<boolean>;
|
|
17
15
|
environment: {
|
|
18
16
|
install: (_: any, environment: string) => void;
|
|
19
17
|
setCurrentEnvironment: (environment: string | null) => import("./environment").ChatEnvironmentConfig;
|
|
@@ -29,26 +27,21 @@ declare const _default: {
|
|
|
29
27
|
install: (app: any) => Promise<void>;
|
|
30
28
|
switchView: () => void;
|
|
31
29
|
isMobileView: any;
|
|
32
|
-
watchAndApplyStyle: typeof import("./mobileView").watchAndApplyStyle;
|
|
33
30
|
};
|
|
34
31
|
connection: {
|
|
35
|
-
setAccessToken: (token: string) =>
|
|
36
|
-
connect: (connectionName
|
|
37
|
-
disconnect: (connectionName
|
|
32
|
+
setAccessToken: (token: string | null | undefined) => void;
|
|
33
|
+
connect: (connectionName: string | null | undefined) => Promise<null | undefined>;
|
|
34
|
+
disconnect: (connectionName: string | null | undefined) => Promise<any>;
|
|
38
35
|
reconnect: () => Promise<boolean>;
|
|
36
|
+
refreshConnection: () => Promise<void>;
|
|
39
37
|
connected: import("vue").ComputedRef<boolean>;
|
|
40
38
|
};
|
|
41
39
|
data: {
|
|
42
|
-
getGroup: (groupUid: string) => Promise<import("@cometchat/chat-sdk-javascript").Group
|
|
40
|
+
getGroup: (groupUid: string) => Promise<import("@cometchat/chat-sdk-javascript").Group>;
|
|
43
41
|
userChats: Ref<import("./data").UserChatInfo[]>;
|
|
44
42
|
getUserChats: () => Promise<Ref<import("./data").UserChatInfo[]>> | undefined;
|
|
45
43
|
clearGroupChatCount: (groupUid: string) => Promise<void>;
|
|
46
44
|
getGroupOnlineCount: (groupUid: string) => Promise<Object | 0>;
|
|
47
45
|
};
|
|
48
|
-
login: {
|
|
49
|
-
loggedIn: Ref<boolean>;
|
|
50
|
-
login: (accessToken?: string | null | undefined) => Promise<boolean | undefined>;
|
|
51
|
-
logout: () => Promise<boolean>;
|
|
52
|
-
};
|
|
53
46
|
};
|
|
54
47
|
export default _default;
|
package/dist/chat/token.d.ts
CHANGED
package/dist/chat/uiKit.d.ts
CHANGED