@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.
@@ -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.5",
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 seamlyCommands = use_seamly_commands();
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 && seamlyCommands[action]) {
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
- seamlyCommands[action]();
9803
+ reset();
9802
9804
  }
9803
9805
  return () => {
9804
9806
  if (limitTimer.current) clearTimeout(limitTimer.current);
9805
9807
  };
9806
- }, [action, seamlyCommands, isExpiredError, dispatch]);
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) {