@seamly/web-ui 22.3.5 → 22.3.6
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/components.js +6 -4
- package/build/dist/lib/components.js.map +1 -1
- package/build/dist/lib/hooks.js +6 -4
- package/build/dist/lib/hooks.js.map +1 -1
- package/build/dist/lib/hooks.min.js +1 -1
- package/build/dist/lib/hooks.min.js.map +1 -1
- package/build/dist/lib/index.debug.js +2 -2
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.map +1 -1
- package/build/dist/lib/index.js +7 -5
- package/build/dist/lib/index.js.map +1 -1
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/index.min.js.map +1 -1
- package/build/dist/lib/standalone.js +7 -5
- package/build/dist/lib/standalone.js.map +1 -1
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/standalone.min.js.map +1 -1
- package/build/dist/lib/style-guide.js +7 -5
- package/build/dist/lib/style-guide.js.map +1 -1
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/style-guide.min.js.map +1 -1
- package/build/dist/lib/utils.js +7 -5
- package/build/dist/lib/utils.js.map +1 -1
- package/build/dist/lib/utils.min.js +1 -1
- package/build/dist/lib/utils.min.js.map +1 -1
- package/package.json +1 -1
- package/src/javascripts/ui/hooks/use-session-expired-command.ts +4 -4
|
@@ -13158,7 +13158,7 @@ _API_ready = new (weak_map_default())(), _API_externalId = new (weak_map_default
|
|
|
13158
13158
|
return {
|
|
13159
13159
|
clientName: "@seamly/web-ui",
|
|
13160
13160
|
clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
|
|
13161
|
-
clientVersion: "22.3.
|
|
13161
|
+
clientVersion: "22.3.6",
|
|
13162
13162
|
currentUrl: window.location.toString(),
|
|
13163
13163
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
13164
13164
|
timezone: getTimeZone(),
|
|
@@ -20535,12 +20535,14 @@ function useSessionExpiredCommand() {
|
|
|
20535
20535
|
}
|
|
20536
20536
|
} = useInterrupt();
|
|
20537
20537
|
const dispatch = useAppDispatch();
|
|
20538
|
-
const
|
|
20538
|
+
const {
|
|
20539
|
+
reset
|
|
20540
|
+
} = use_seamly_commands();
|
|
20539
20541
|
const isExpiredError = (originalError === null || originalError === void 0 ? void 0 : originalError.name) === 'SeamlySessionExpiredError';
|
|
20540
20542
|
const limit = (0,hooks_module/* useRef */.sO)(0);
|
|
20541
20543
|
const limitTimer = (0,hooks_module/* useRef */.sO)(null);
|
|
20542
20544
|
(0,hooks_module/* useEffect */.d4)(() => {
|
|
20543
|
-
if (isExpiredError &&
|
|
20545
|
+
if (isExpiredError && action === 'reset') {
|
|
20544
20546
|
if (limit.current >= 10) {
|
|
20545
20547
|
limitTimer.current = set_timeout_default()(() => {
|
|
20546
20548
|
limit.current = 0;
|
|
@@ -20557,12 +20559,12 @@ function useSessionExpiredCommand() {
|
|
|
20557
20559
|
return () => {};
|
|
20558
20560
|
}
|
|
20559
20561
|
limit.current += 1;
|
|
20560
|
-
|
|
20562
|
+
reset();
|
|
20561
20563
|
}
|
|
20562
20564
|
return () => {
|
|
20563
20565
|
if (limitTimer.current) clearTimeout(limitTimer.current);
|
|
20564
20566
|
};
|
|
20565
|
-
}, [action,
|
|
20567
|
+
}, [action, reset, isExpiredError, dispatch]);
|
|
20566
20568
|
}
|
|
20567
20569
|
;// CONCATENATED MODULE: ./src/javascripts/ui/hooks/use-seamly-chat.ts
|
|
20568
20570
|
|