@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
|
@@ -2641,7 +2641,7 @@ _API_ready = new WeakMap(), _API_externalId = new WeakMap(), _API_conversationAu
|
|
|
2641
2641
|
return {
|
|
2642
2642
|
clientName: "@seamly/web-ui",
|
|
2643
2643
|
clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
|
|
2644
|
-
clientVersion: "22.3.
|
|
2644
|
+
clientVersion: "22.3.6",
|
|
2645
2645
|
currentUrl: window.location.toString(),
|
|
2646
2646
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
2647
2647
|
timezone: getTimeZone(),
|
|
@@ -9776,12 +9776,14 @@ function useSessionExpiredCommand() {
|
|
|
9776
9776
|
}
|
|
9777
9777
|
} = useInterrupt();
|
|
9778
9778
|
const dispatch = useAppDispatch();
|
|
9779
|
-
const
|
|
9779
|
+
const {
|
|
9780
|
+
reset
|
|
9781
|
+
} = use_seamly_commands();
|
|
9780
9782
|
const isExpiredError = (originalError === null || originalError === void 0 ? void 0 : originalError.name) === 'SeamlySessionExpiredError';
|
|
9781
9783
|
const limit = (0,hooks_.useRef)(0);
|
|
9782
9784
|
const limitTimer = (0,hooks_.useRef)(null);
|
|
9783
9785
|
(0,hooks_.useEffect)(() => {
|
|
9784
|
-
if (isExpiredError &&
|
|
9786
|
+
if (isExpiredError && action === 'reset') {
|
|
9785
9787
|
if (limit.current >= 10) {
|
|
9786
9788
|
limitTimer.current = setTimeout(() => {
|
|
9787
9789
|
limit.current = 0;
|
|
@@ -9798,12 +9800,12 @@ function useSessionExpiredCommand() {
|
|
|
9798
9800
|
return () => {};
|
|
9799
9801
|
}
|
|
9800
9802
|
limit.current += 1;
|
|
9801
|
-
|
|
9803
|
+
reset();
|
|
9802
9804
|
}
|
|
9803
9805
|
return () => {
|
|
9804
9806
|
if (limitTimer.current) clearTimeout(limitTimer.current);
|
|
9805
9807
|
};
|
|
9806
|
-
}, [action,
|
|
9808
|
+
}, [action, reset, isExpiredError, dispatch]);
|
|
9807
9809
|
}
|
|
9808
9810
|
;// CONCATENATED MODULE: ./src/javascripts/ui/hooks/use-seamly-chat.ts
|
|
9809
9811
|
var use_seamly_chat_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|