@xcelsior/ui-chat 2.0.1 → 2.0.3

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/README.md CHANGED
@@ -19,7 +19,7 @@ A comprehensive, real-time chat widget component for React applications with Web
19
19
  ## Installation
20
20
 
21
21
  ```bash
22
- pnpm add @xcelsior/ui-chat @xcelsior/design-system @xcelsior/ui-fields
22
+ pnpm add @xcelsior/ui-chat
23
23
  ```
24
24
 
25
25
  ### Peer Dependencies
package/dist/index.d.mts CHANGED
@@ -310,6 +310,9 @@ interface UseWebSocketReturn {
310
310
  /**
311
311
  * Hook for WebSocket connection in chat widget.
312
312
  * Can use an external WebSocket connection (for agents) via the externalWebSocket prop.
313
+ *
314
+ * Handles React Strict Mode (dev) gracefully — tracks whether the effect has been
315
+ * cleaned up so that an aborted connection doesn't trigger reconnection.
313
316
  */
314
317
  declare function useWebSocket(config: IChatConfig, externalWebSocket?: WebSocket | null): UseWebSocketReturn;
315
318
 
package/dist/index.d.ts CHANGED
@@ -310,6 +310,9 @@ interface UseWebSocketReturn {
310
310
  /**
311
311
  * Hook for WebSocket connection in chat widget.
312
312
  * Can use an external WebSocket connection (for agents) via the externalWebSocket prop.
313
+ *
314
+ * Handles React Strict Mode (dev) gracefully — tracks whether the effect has been
315
+ * cleaned up so that an aborted connection doesn't trigger reconnection.
313
316
  */
314
317
  declare function useWebSocket(config: IChatConfig, externalWebSocket?: WebSocket | null): UseWebSocketReturn;
315
318