@seamly/web-ui 24.0.0-beta.3 → 24.0.0-beta.5

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.
@@ -4003,7 +4003,7 @@ class API {
4003
4003
  return {
4004
4004
  clientName: "@seamly/web-ui",
4005
4005
  clientVariant: this.#layoutMode,
4006
- clientVersion: "24.0.0-beta.3",
4006
+ clientVersion: "23.0.6",
4007
4007
  currentUrl: window.location.toString(),
4008
4008
  screenResolution: `${window.screen.width}x${window.screen.height}`,
4009
4009
  timezone: getTimeZone(),
@@ -12648,7 +12648,8 @@ const useSeamlyChat = () => {
12648
12648
  (0,hooks_.useEffect)(() => {
12649
12649
  // This is needed to reset the ref to allow connect and start to happen again.
12650
12650
  // Mostly due to Interrupt situations and a reset being called.
12651
- if (!apiConfigReady || !apiConnected) {
12651
+ // Only do this in case both are `false` (reset does this), because the websocket itself will automatically try to reconnect.
12652
+ if (!apiConfigReady && !apiConnected) {
12652
12653
  connectCalled.current = false;
12653
12654
  }
12654
12655
  }, [apiConfigReady, apiConnected]);
@@ -24345,7 +24346,7 @@ const SeamlyStaticCore = ({
24345
24346
  const {
24346
24347
  translations: initialTranslations,
24347
24348
  interrupt: initialInterrupt,
24348
- config: initialConfig = {},
24349
+ config: initialConfig,
24349
24350
  visibility: initialVisibility,
24350
24351
  ...initialState
24351
24352
  } = state || {};