@bcc-code/vue-bcc-chat-ui 1.1.0 → 1.1.1
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.
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import { Ref } from "vue";
|
|
2
|
+
export declare const setAccessToken: (token: string | null | undefined) => void;
|
|
3
|
+
export declare const connect: (connectionName: string | null | undefined) => Promise<import("@cometchat/chat-sdk-javascript").User | null | undefined>;
|
|
4
|
+
export declare const disconnect: (connectionName: string | null | undefined) => Promise<void>;
|
|
5
|
+
export declare const reconnect: () => Promise<boolean>;
|
|
3
6
|
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
accessToken: Ref<string | null | undefined>;
|
|
8
|
+
setAccessToken: (token: string | null | undefined) => void;
|
|
9
|
+
connect: (connectionName: string | null | undefined) => Promise<import("@cometchat/chat-sdk-javascript").User | null | undefined>;
|
|
10
|
+
disconnect: (connectionName: string | null | undefined) => Promise<void>;
|
|
11
|
+
reconnect: () => Promise<boolean>;
|
|
12
|
+
connected: import("vue").ComputedRef<boolean>;
|
|
6
13
|
};
|
|
7
14
|
export default _default;
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
import { Ref } from "vue";
|
|
1
2
|
export interface ChatInstallOptions {
|
|
2
3
|
environment: string;
|
|
3
4
|
themeMode: string;
|
|
5
|
+
accessToken?: Ref<string | null | undefined> | null | undefined | string;
|
|
4
6
|
}
|
|
7
|
+
export * as theme from "./theme";
|
|
8
|
+
export * as uiKit from "./uiKit";
|
|
9
|
+
export * as mobileView from "./mobileView";
|
|
10
|
+
export * as connection from "./connection";
|
|
11
|
+
export * as data from "./data";
|
|
12
|
+
export * as environment from "./environment";
|
|
5
13
|
declare const _default: {
|
|
6
14
|
install: (app: any, options: ChatInstallOptions) => Promise<void>;
|
|
7
15
|
environment: {
|
|
@@ -21,8 +29,12 @@ declare const _default: {
|
|
|
21
29
|
isMobileView: any;
|
|
22
30
|
};
|
|
23
31
|
connection: {
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
accessToken: Ref<string | null | undefined>;
|
|
33
|
+
setAccessToken: (token: string | null | undefined) => void;
|
|
34
|
+
connect: (connectionName: string | null | undefined) => Promise<import("@cometchat/chat-sdk-javascript").User | null | undefined>;
|
|
35
|
+
disconnect: (connectionName: string | null | undefined) => Promise<void>;
|
|
36
|
+
reconnect: () => Promise<boolean>;
|
|
37
|
+
connected: import("vue").ComputedRef<boolean>;
|
|
26
38
|
};
|
|
27
39
|
data: {
|
|
28
40
|
getGroup: typeof import("@cometchat/chat-sdk-javascript").CometChat.getGroup;
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
accessToken: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
2
|
chatUid: {
|
|
7
3
|
type: StringConstructor;
|
|
8
4
|
required: true;
|
|
9
5
|
};
|
|
10
6
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
-
accessToken: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
7
|
chatUid: {
|
|
16
8
|
type: StringConstructor;
|
|
17
9
|
required: true;
|