@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 +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +236 -182
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +236 -182
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -6
- package/src/components/MessageList.tsx +1 -1
- package/src/components/Spinner.tsx +50 -0
- package/src/hooks/useWebSocket.ts +18 -1
package/README.md
CHANGED
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
|
|