cometchat-visual-builder-no-code 1.0.20-authtest19 → 1.0.20-authtest20
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.
|
@@ -11,6 +11,6 @@ interface CometChatHomeProps {
|
|
|
11
11
|
showGroupActionMessages?: boolean;
|
|
12
12
|
autoOpenFirstItem?: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare function CometChatHome({ defaultUser, defaultGroup, showGroupActionMessages, autoOpenFirstItem }: CometChatHomeProps): import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
declare function CometChatHome({ defaultUser, defaultGroup, showGroupActionMessages, autoOpenFirstItem, }: CometChatHomeProps): import("react/jsx-runtime").JSX.Element | null;
|
|
15
15
|
declare const MemoizedCometChatHome: React.MemoExoticComponent<typeof CometChatHome>;
|
|
16
16
|
export { MemoizedCometChatHome as CometChatHome };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CometChatSettingsInterface } from '../CometChatSettings';
|
|
2
|
+
/**
|
|
3
|
+
* Recursively merges API settings with default settings.
|
|
4
|
+
*
|
|
5
|
+
* Rules:
|
|
6
|
+
* - If a key exists in API response (even if false or null), use the API value
|
|
7
|
+
* - If a key is undefined or missing in API response, use the default value
|
|
8
|
+
* - For nested objects, recursively apply the same merge logic
|
|
9
|
+
* - For arrays, use API value if present, otherwise use default
|
|
10
|
+
*
|
|
11
|
+
* @param apiSettings - Settings from the API (may be partial)
|
|
12
|
+
* @param defaultSettings - Complete default settings
|
|
13
|
+
* @returns Merged settings object with all required keys
|
|
14
|
+
*/
|
|
15
|
+
export declare function mergeWithDefaults<T extends Record<string, unknown>>(apiSettings: Partial<T> | undefined, defaultSettings: T): T;
|
|
16
|
+
/**
|
|
17
|
+
* Merges API builder settings with default CometChat settings.
|
|
18
|
+
* Ensures all required keys and nested properties are present.
|
|
19
|
+
*
|
|
20
|
+
* @param apiSettings - Partial settings from the API
|
|
21
|
+
* @param defaultSettings - Complete default CometChatSettings
|
|
22
|
+
* @returns Complete CometChatSettingsInterface with all required keys
|
|
23
|
+
*/
|
|
24
|
+
export declare function mergeBuilderSettings(apiSettings: Partial<CometChatSettingsInterface> | undefined, defaultSettings: CometChatSettingsInterface): CometChatSettingsInterface;
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cometchat-visual-builder-no-code",
|
|
3
|
-
"version": "1.0.20-
|
|
3
|
+
"version": "1.0.20-authtest20",
|
|
4
4
|
"description": "CometChat Widget Builder No-Code Integration",
|
|
5
5
|
"cometChatCustomConfig": {
|
|
6
|
-
"prodVersion": "1.0.
|
|
6
|
+
"prodVersion": "1.0.24",
|
|
7
7
|
"devStagingVersion": "1.0.20-authtest7",
|
|
8
8
|
"prodName": "@cometchat/chat-embed",
|
|
9
9
|
"devName": "cometchat-visual-builder-no-code",
|
|
10
10
|
"name": "cometchat-visual-builder-react-no-code",
|
|
11
|
-
"version": "1.0.
|
|
11
|
+
"version": "1.0.24",
|
|
12
12
|
"production": true
|
|
13
13
|
},
|
|
14
14
|
"author": "CometChat",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@cometchat/calls-sdk-javascript": "4.2.
|
|
16
|
+
"@cometchat/calls-sdk-javascript": "4.2.2",
|
|
17
17
|
"@cometchat/chat-uikit-react": "6.3.5",
|
|
18
18
|
"react": "18.2.0",
|
|
19
19
|
"react-dom": "18.2.0",
|