cometchat-visual-builder-no-code 1.0.20-authtest3 → 1.0.20-authtest5
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,4 +1,5 @@
|
|
|
1
1
|
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
2
|
+
import { CometChatAuth } from "./auth/cometchat-auth";
|
|
2
3
|
declare let appID: string;
|
|
3
4
|
declare let appRegion: string;
|
|
4
5
|
declare let authKey: string;
|
|
@@ -61,5 +62,6 @@ declare const CometChatApp: {
|
|
|
61
62
|
showDockedUnreadCount: (show?: boolean) => void;
|
|
62
63
|
showGroupActionMessages: (show?: boolean) => void;
|
|
63
64
|
CometChat: typeof CometChat;
|
|
65
|
+
CometChatAuth: typeof CometChatAuth;
|
|
64
66
|
};
|
|
65
67
|
export default CometChatApp;
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
export declare namespace CometChatAuth {
|
|
25
|
+
function start(config: CometChatWidgetConfig): Promise<void>;
|
|
26
|
+
}
|
|
27
|
+
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-authtest5",
|
|
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-authtest5",
|
|
8
8
|
"prodName": "@cometchat/chat-embed",
|
|
9
9
|
"devName": "cometchat-visual-builder-no-code",
|
|
10
10
|
"name": "cometchat-visual-builder-react-no-code",
|