cometchat-visual-builder-no-code 1.0.20-authtest4 → 1.0.20-authtest6
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.
|
@@ -61,5 +61,18 @@ declare const CometChatApp: {
|
|
|
61
61
|
showDockedUnreadCount: (show?: boolean) => void;
|
|
62
62
|
showGroupActionMessages: (show?: boolean) => void;
|
|
63
63
|
CometChat: typeof CometChat;
|
|
64
|
+
CometChatAuth: {
|
|
65
|
+
_config: import("./auth/cometchat-auth").CometChatWidgetConfig & {
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
};
|
|
68
|
+
start(config: import("./auth/cometchat-auth").CometChatWidgetConfig): Promise<void>;
|
|
69
|
+
_validateConfig(): void;
|
|
70
|
+
_initSDK(): Promise<void>;
|
|
71
|
+
_login(): Promise<any>;
|
|
72
|
+
_ensureUserExists(uid: string, isGuest?: boolean): Promise<void>;
|
|
73
|
+
_getOrCreateGuestUID(): string;
|
|
74
|
+
_getCookie(name: string): string | undefined;
|
|
75
|
+
_launchWidget(): Promise<any>;
|
|
76
|
+
};
|
|
64
77
|
};
|
|
65
78
|
export default CometChatApp;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface CometChatWidgetConfig {
|
|
2
|
+
appID: string;
|
|
3
|
+
region: string;
|
|
4
|
+
mode: "guest" | "uid" | "authToken";
|
|
5
|
+
authKey?: string;
|
|
6
|
+
uid?: string;
|
|
7
|
+
authToken?: string;
|
|
8
|
+
user?: {
|
|
9
|
+
name?: string;
|
|
10
|
+
avatar?: string;
|
|
11
|
+
link?: string;
|
|
12
|
+
metadata?: any;
|
|
13
|
+
};
|
|
14
|
+
mount: string;
|
|
15
|
+
width?: string;
|
|
16
|
+
height?: string;
|
|
17
|
+
isDocked?: boolean;
|
|
18
|
+
variantID?: string;
|
|
19
|
+
chatType?: string;
|
|
20
|
+
defaultChatID?: string;
|
|
21
|
+
dockedAlignment?: string;
|
|
22
|
+
targetElementID?: string;
|
|
23
|
+
}
|
|
24
|
+
type InternalConfig = CometChatWidgetConfig & {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
};
|
|
27
|
+
declare global {
|
|
28
|
+
interface Window {
|
|
29
|
+
CometChatApp: any;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export declare const CometChatAuth: {
|
|
33
|
+
_config: InternalConfig;
|
|
34
|
+
start(config: CometChatWidgetConfig): Promise<void>;
|
|
35
|
+
_validateConfig(): void;
|
|
36
|
+
_initSDK(): Promise<void>;
|
|
37
|
+
_login(): Promise<any>;
|
|
38
|
+
_ensureUserExists(uid: string, isGuest?: boolean): Promise<void>;
|
|
39
|
+
_getOrCreateGuestUID(): string;
|
|
40
|
+
_getCookie(name: string): string | undefined;
|
|
41
|
+
_launchWidget(): Promise<any>;
|
|
42
|
+
};
|
|
43
|
+
export default CometChatAuth;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cometchat-visual-builder-no-code",
|
|
3
|
-
"version": "1.0.20-
|
|
3
|
+
"version": "1.0.20-authtest6",
|
|
4
4
|
"description": "CometChat Widget Builder No-Code Integration",
|
|
5
5
|
"cometChatCustomConfig": {
|
|
6
6
|
"prodVersion": "1.0.19",
|
|
7
|
-
"devStagingVersion": "1.0.20-
|
|
7
|
+
"devStagingVersion": "1.0.20-authtest6",
|
|
8
8
|
"prodName": "@cometchat/chat-embed",
|
|
9
9
|
"devName": "cometchat-visual-builder-no-code",
|
|
10
10
|
"name": "cometchat-visual-builder-react-no-code",
|