cometchat-visual-builder-no-code 1.0.10-test43 → 1.0.10-test45
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.
- package/dist/assets/svg/collaborative_whiteboard.25e29644e4591c341125.svg +4 -0
- package/dist/assets/svg/outgoing_video.5381c4a37cb744fc30a7.svg +8 -0
- package/dist/assets/svg/phone_incoming.d8337717bd699169eaa5.svg +3 -0
- package/dist/assets/svg/phone_outgoing.fe790222212ccc2b0221.svg +4 -0
- package/dist/main.js +1 -1
- package/dist/src/CometChat/CometChatSettings.d.ts +1 -0
- package/dist/src/CometChat/context/CometChatContext.d.ts +1 -0
- package/dist/src/CometChatNoCode/customHooks/useMessageIndicatorClick.d.ts +17 -0
- package/package.json +2 -2
- package/dist/src/CometChatNoCode/customHooks/useIframeIndicatorClick.d.ts +0 -15
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom React hook to attach a click listener to CometChat message indicators
|
|
3
|
+
* inside an iframe. The callback will trigger when a user clicks on
|
|
4
|
+
* a `.cometchat-message-list__message-indicator` element or any of its child buttons.
|
|
5
|
+
*
|
|
6
|
+
* This hook works for indicators and buttons that exist at the time the iframe is loaded.
|
|
7
|
+
* It uses the capture phase to ensure clicks are caught even if internal CometChat
|
|
8
|
+
* handlers stop propagation.
|
|
9
|
+
*
|
|
10
|
+
* @param {() => void} callback - Function to be called when a message indicator is clicked.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* useMessageIndicatorClick(() => {
|
|
14
|
+
* console.log("A message indicator was clicked!");
|
|
15
|
+
* });
|
|
16
|
+
*/
|
|
17
|
+
export declare function useMessageIndicatorClick(callback: () => void): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cometchat-visual-builder-no-code",
|
|
3
|
-
"version": "1.0.10-
|
|
3
|
+
"version": "1.0.10-test45",
|
|
4
4
|
"description": "CometChat Chat Builder No-Code Integration",
|
|
5
5
|
"cometChatCustomConfig": {
|
|
6
6
|
"prodVersion": "1.0.12",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"author": "CometChat",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@cometchat/calls-sdk-javascript": "4.1.0",
|
|
17
|
-
"@cometchat/chat-uikit-react": "6.
|
|
17
|
+
"@cometchat/chat-uikit-react": "6.3.0",
|
|
18
18
|
"react": "18.2.0",
|
|
19
19
|
"react-dom": "18.2.0",
|
|
20
20
|
"react-frame-component": "^5.2.7",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom React hook that listens for clicks on the
|
|
3
|
-
* `.cometchat-message-list__message-indicator` element inside an iframe
|
|
4
|
-
* with the static ID `"cometchat-frame"`.
|
|
5
|
-
*
|
|
6
|
-
* When such a click is detected, the provided callback is executed.
|
|
7
|
-
*
|
|
8
|
-
* @param {() => void} callback - Function to execute when the message indicator is clicked inside the iframe.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* useIframeIndicatorClick(() => {
|
|
12
|
-
* console.log("Message indicator clicked inside iframe");
|
|
13
|
-
* });
|
|
14
|
-
*/
|
|
15
|
-
export declare function useIframeIndicatorClick(callback: () => void): void;
|