cometchat-visual-builder-no-code 1.0.20-authtest5 → 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.
@@ -1,5 +1,4 @@
1
1
  import { CometChat } from "@cometchat/chat-sdk-javascript";
2
- import { CometChatAuth } from "./auth/cometchat-auth";
3
2
  declare let appID: string;
4
3
  declare let appRegion: string;
5
4
  declare let authKey: string;
@@ -62,6 +61,18 @@ declare const CometChatApp: {
62
61
  showDockedUnreadCount: (show?: boolean) => void;
63
62
  showGroupActionMessages: (show?: boolean) => void;
64
63
  CometChat: typeof CometChat;
65
- CometChatAuth: typeof CometChatAuth;
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
+ };
66
77
  };
67
78
  export default CometChatApp;
@@ -21,7 +21,23 @@ export interface CometChatWidgetConfig {
21
21
  dockedAlignment?: string;
22
22
  targetElementID?: string;
23
23
  }
24
- export declare namespace CometChatAuth {
25
- function start(config: CometChatWidgetConfig): Promise<void>;
24
+ type InternalConfig = CometChatWidgetConfig & {
25
+ [key: string]: any;
26
+ };
27
+ declare global {
28
+ interface Window {
29
+ CometChatApp: any;
30
+ }
26
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
+ };
27
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-authtest5",
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-authtest5",
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",