cometchat-visual-builder-no-code 1.0.20-authtest50 → 1.0.20-authtest52
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.
|
@@ -20,6 +20,7 @@ export interface VcbData {
|
|
|
20
20
|
showDockedUnreadCount?: boolean;
|
|
21
21
|
showGroupActionMessages?: boolean;
|
|
22
22
|
storageMode?: string;
|
|
23
|
+
hostDomain?: string;
|
|
23
24
|
callInitiatedViaAPI?: boolean;
|
|
24
25
|
autoOpenFirstItem?: boolean;
|
|
25
26
|
parentMessageId?: number;
|
|
@@ -33,6 +34,7 @@ declare const CometChatApp: {
|
|
|
33
34
|
appRegion: string;
|
|
34
35
|
authKey?: string;
|
|
35
36
|
storageMode?: string;
|
|
37
|
+
hostDomain?: string;
|
|
36
38
|
}) => Promise<boolean>;
|
|
37
39
|
login: ({ uid, authToken }: {
|
|
38
40
|
uid?: string | undefined;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
type NoCodeConstants = {
|
|
2
2
|
noCodeDomain: string;
|
|
3
3
|
};
|
|
4
|
+
/**
|
|
5
|
+
* Resolve the base host domain (e.g. `cc-cluster-2.io`).
|
|
6
|
+
* When a `hostDomain` is provided (e.g. via CometChatApp.init) it is used as-is;
|
|
7
|
+
* otherwise it falls back to the environment-based default (live vs staging).
|
|
8
|
+
* This is the single source of truth shared by the UI Kit host and No-Code API.
|
|
9
|
+
*/
|
|
10
|
+
export declare const getHostDomain: (hostDomain?: string) => string;
|
|
11
|
+
/**
|
|
12
|
+
* Resolve the No-Code API domain (`https://apivcb.<hostDomain>/v1`),
|
|
13
|
+
* derived from the same base host domain as the UI Kit host.
|
|
14
|
+
*/
|
|
15
|
+
export declare const getNoCodeDomain: (hostDomain?: string) => string;
|
|
4
16
|
declare const noCodeConstants: NoCodeConstants;
|
|
5
17
|
export default noCodeConstants;
|
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-authtest52",
|
|
4
4
|
"description": "CometChat Widget Builder No-Code Integration",
|
|
5
5
|
"cometChatCustomConfig": {
|
|
6
6
|
"prodVersion": "1.0.34",
|
|
7
|
-
"devStagingVersion": "1.0.20-
|
|
7
|
+
"devStagingVersion": "1.0.20-authtest51",
|
|
8
8
|
"prodName": "@cometchat/chat-embed",
|
|
9
9
|
"devName": "cometchat-visual-builder-no-code",
|
|
10
10
|
"name": "cometchat-visual-builder-react-no-code",
|