@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.
@@ -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.5",
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 seamlyCommands = use_seamly_commands();
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 && seamlyCommands[action]) {
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
- seamlyCommands[action]();
20562
+ reset();
20561
20563
  }
20562
20564
  return () => {
20563
20565
  if (limitTimer.current) clearTimeout(limitTimer.current);
20564
20566
  };
20565
- }, [action, seamlyCommands, isExpiredError, dispatch]);
20567
+ }, [action, reset, isExpiredError, dispatch]);
20566
20568
  }
20567
20569
  ;// CONCATENATED MODULE: ./src/javascripts/ui/hooks/use-seamly-chat.ts
20568
20570