@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
package/build/dist/lib/utils.js
CHANGED
|
@@ -7663,12 +7663,14 @@ function useSessionExpiredCommand() {
|
|
|
7663
7663
|
}
|
|
7664
7664
|
} = (0,interrupt_hooks/* useInterrupt */.i)();
|
|
7665
7665
|
const dispatch = (0,store/* useAppDispatch */.T)();
|
|
7666
|
-
const
|
|
7666
|
+
const {
|
|
7667
|
+
reset
|
|
7668
|
+
} = (0,use_seamly_commands/* default */.Z)();
|
|
7667
7669
|
const isExpiredError = (originalError === null || originalError === void 0 ? void 0 : originalError.name) === 'SeamlySessionExpiredError';
|
|
7668
7670
|
const limit = (0,hooks_.useRef)(0);
|
|
7669
7671
|
const limitTimer = (0,hooks_.useRef)(null);
|
|
7670
7672
|
(0,hooks_.useEffect)(() => {
|
|
7671
|
-
if (isExpiredError &&
|
|
7673
|
+
if (isExpiredError && action === 'reset') {
|
|
7672
7674
|
if (limit.current >= 10) {
|
|
7673
7675
|
limitTimer.current = setTimeout(() => {
|
|
7674
7676
|
limit.current = 0;
|
|
@@ -7685,12 +7687,12 @@ function useSessionExpiredCommand() {
|
|
|
7685
7687
|
return () => {};
|
|
7686
7688
|
}
|
|
7687
7689
|
limit.current += 1;
|
|
7688
|
-
|
|
7690
|
+
reset();
|
|
7689
7691
|
}
|
|
7690
7692
|
return () => {
|
|
7691
7693
|
if (limitTimer.current) clearTimeout(limitTimer.current);
|
|
7692
7694
|
};
|
|
7693
|
-
}, [action,
|
|
7695
|
+
}, [action, reset, isExpiredError, dispatch]);
|
|
7694
7696
|
}
|
|
7695
7697
|
;// CONCATENATED MODULE: ./src/javascripts/ui/hooks/use-seamly-chat.ts
|
|
7696
7698
|
var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
@@ -12238,7 +12240,7 @@ _API_ready = new WeakMap(), _API_externalId = new WeakMap(), _API_conversationAu
|
|
|
12238
12240
|
return {
|
|
12239
12241
|
clientName: "@seamly/web-ui",
|
|
12240
12242
|
clientVariant: __classPrivateFieldGet(this, _API_layoutMode, "f"),
|
|
12241
|
-
clientVersion: "22.3.
|
|
12243
|
+
clientVersion: "22.3.6",
|
|
12242
12244
|
currentUrl: window.location.toString(),
|
|
12243
12245
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
12244
12246
|
timezone: getTimeZone(),
|