@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
|
@@ -23865,6 +23865,7 @@ const useSeamlyActivityEventHandler = () => (0,preact_hooks__WEBPACK_IMPORTED_MO
|
|
|
23865
23865
|
|
|
23866
23866
|
|
|
23867
23867
|
const useSeamlyChat = () => {
|
|
23868
|
+
const events = (0,_seamly_state_hooks__WEBPACK_IMPORTED_MODULE_10__.useEvents)();
|
|
23868
23869
|
const {
|
|
23869
23870
|
t
|
|
23870
23871
|
} = (0,domains_i18n_hooks__WEBPACK_IMPORTED_MODULE_1__.useI18n)();
|
|
@@ -23930,6 +23931,17 @@ const useSeamlyChat = () => {
|
|
|
23930
23931
|
clearTimeout(spinnerTimeout.current);
|
|
23931
23932
|
};
|
|
23932
23933
|
}, [dispatch]);
|
|
23934
|
+
(0,preact_hooks__WEBPACK_IMPORTED_MODULE_5__.useEffect)(() => {
|
|
23935
|
+
if (events.length) {
|
|
23936
|
+
spinnerTimeout.current = _babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_0___default()(() => {
|
|
23937
|
+
dispatch((0,domains_store_slice__WEBPACK_IMPORTED_MODULE_2__.setIsLoading)(false));
|
|
23938
|
+
}, 5000);
|
|
23939
|
+
}
|
|
23940
|
+
|
|
23941
|
+
return () => {
|
|
23942
|
+
clearTimeout(spinnerTimeout.current);
|
|
23943
|
+
};
|
|
23944
|
+
}, [events, dispatch]);
|
|
23933
23945
|
(0,preact_hooks__WEBPACK_IMPORTED_MODULE_5__.useEffect)(() => {
|
|
23934
23946
|
// This is needed to reset the ref to allow connect and start to happen again.
|
|
23935
23947
|
// Mostly due to Interrupt situations and a reset being called.
|