@bcc-code/vue-bcc-chat-ui 1.4.0 → 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 -11
- package/dist/chat/mobileView.d.ts +9 -0
- package/dist/chat/token.d.ts +3 -1
- package/dist/chat/uiKit.d.ts +0 -1
- package/dist/vue-bcc-chat-ui.js +70352 -69835
- package/package.json +4 -5
- package/src/components/BccChatMessageList.vue +95 -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;
|
|
@@ -31,23 +29,19 @@ declare const _default: {
|
|
|
31
29
|
isMobileView: any;
|
|
32
30
|
};
|
|
33
31
|
connection: {
|
|
34
|
-
setAccessToken: (token: string) =>
|
|
35
|
-
connect: (connectionName
|
|
36
|
-
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>;
|
|
37
35
|
reconnect: () => Promise<boolean>;
|
|
36
|
+
refreshConnection: () => Promise<void>;
|
|
38
37
|
connected: import("vue").ComputedRef<boolean>;
|
|
39
38
|
};
|
|
40
39
|
data: {
|
|
41
|
-
getGroup: (groupUid: string) => Promise<import("@cometchat/chat-sdk-javascript").Group
|
|
40
|
+
getGroup: (groupUid: string) => Promise<import("@cometchat/chat-sdk-javascript").Group>;
|
|
42
41
|
userChats: Ref<import("./data").UserChatInfo[]>;
|
|
43
42
|
getUserChats: () => Promise<Ref<import("./data").UserChatInfo[]>> | undefined;
|
|
44
43
|
clearGroupChatCount: (groupUid: string) => Promise<void>;
|
|
45
44
|
getGroupOnlineCount: (groupUid: string) => Promise<Object | 0>;
|
|
46
45
|
};
|
|
47
|
-
login: {
|
|
48
|
-
loggedIn: Ref<boolean>;
|
|
49
|
-
login: (accessToken?: string | null | undefined) => Promise<boolean | undefined>;
|
|
50
|
-
logout: () => Promise<boolean>;
|
|
51
|
-
};
|
|
52
46
|
};
|
|
53
47
|
export default _default;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
export declare const switchView: () => void;
|
|
2
2
|
export declare const install: (app: any) => Promise<void>;
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param targetSelector
|
|
6
|
+
* @param searchSelector Which elements to find and apply the style to
|
|
7
|
+
* @param style The css styles to apply
|
|
8
|
+
* @param shadowDomSelector (optional) If the elements are in a shadow dom, you can specify the selector to find the shadow dom (e.g. 'my-element'
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
export declare function watchAndApplyStyle(targetSelector: string, searchSelector: string, style: Record<string, string>, shadowDomSelector?: string): MutationObserver | undefined;
|
|
3
12
|
declare const _default: {
|
|
4
13
|
install: (app: any) => Promise<void>;
|
|
5
14
|
switchView: () => void;
|
package/dist/chat/token.d.ts
CHANGED
package/dist/chat/uiKit.d.ts
CHANGED