@seamly/web-ui 20.8.0-beta.2 → 20.8.0-beta.4
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/build/dist/lib/index.debug.js +1 -1
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.js +12 -0
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/standalone.js +12 -0
- package/build/dist/lib/standalone.min.js +1 -1
- package/package.json +1 -1
- package/src/javascripts/ui/hooks/use-seamly-chat.js +14 -1
package/build/dist/lib/index.js
CHANGED
|
@@ -22122,6 +22122,7 @@ const useSeamlyActivityEventHandler = () => (0,preact_hooks__WEBPACK_IMPORTED_MO
|
|
|
22122
22122
|
|
|
22123
22123
|
|
|
22124
22124
|
const useSeamlyChat = () => {
|
|
22125
|
+
const events = (0,_seamly_state_hooks__WEBPACK_IMPORTED_MODULE_9__.useEvents)();
|
|
22125
22126
|
const {
|
|
22126
22127
|
t
|
|
22127
22128
|
} = (0,domains_i18n_hooks__WEBPACK_IMPORTED_MODULE_0__.useI18n)();
|
|
@@ -22187,6 +22188,17 @@ const useSeamlyChat = () => {
|
|
|
22187
22188
|
clearTimeout(spinnerTimeout.current);
|
|
22188
22189
|
};
|
|
22189
22190
|
}, [dispatch]);
|
|
22191
|
+
(0,preact_hooks__WEBPACK_IMPORTED_MODULE_4__.useEffect)(() => {
|
|
22192
|
+
if (events.length) {
|
|
22193
|
+
spinnerTimeout.current = setTimeout(() => {
|
|
22194
|
+
dispatch((0,domains_store_slice__WEBPACK_IMPORTED_MODULE_1__.setIsLoading)(false));
|
|
22195
|
+
}, 5000);
|
|
22196
|
+
}
|
|
22197
|
+
|
|
22198
|
+
return () => {
|
|
22199
|
+
clearTimeout(spinnerTimeout.current);
|
|
22200
|
+
};
|
|
22201
|
+
}, [events, dispatch]);
|
|
22190
22202
|
(0,preact_hooks__WEBPACK_IMPORTED_MODULE_4__.useEffect)(() => {
|
|
22191
22203
|
// This is needed to reset the ref to allow connect and start to happen again.
|
|
22192
22204
|
// Mostly due to Interrupt situations and a reset being called.
|