@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.
- package/build/dist/lib/components.js +2 -1
- package/build/dist/lib/components.js.map +1 -1
- package/build/dist/lib/hooks.js +2 -1
- 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 +3 -2
- package/build/dist/lib/index.debug.js.map +1 -1
- 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 +3 -2
- 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 +3 -2
- 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 +4 -3
- 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 +3 -2
- 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/style-guide/components/static-core.tsx +7 -3
- package/src/javascripts/ui/hooks/use-seamly-chat.ts +2 -1
package/build/dist/lib/index.js
CHANGED
|
@@ -4287,7 +4287,7 @@ class API {
|
|
|
4287
4287
|
return {
|
|
4288
4288
|
clientName: "@seamly/web-ui",
|
|
4289
4289
|
clientVariant: this.#layoutMode,
|
|
4290
|
-
clientVersion: "
|
|
4290
|
+
clientVersion: "23.0.6",
|
|
4291
4291
|
currentUrl: window.location.toString(),
|
|
4292
4292
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
4293
4293
|
timezone: getTimeZone(),
|
|
@@ -12932,7 +12932,8 @@ const useSeamlyChat = () => {
|
|
|
12932
12932
|
(0,hooks_.useEffect)(() => {
|
|
12933
12933
|
// This is needed to reset the ref to allow connect and start to happen again.
|
|
12934
12934
|
// Mostly due to Interrupt situations and a reset being called.
|
|
12935
|
-
|
|
12935
|
+
// Only do this in case both are `false` (reset does this), because the websocket itself will automatically try to reconnect.
|
|
12936
|
+
if (!apiConfigReady && !apiConnected) {
|
|
12936
12937
|
connectCalled.current = false;
|
|
12937
12938
|
}
|
|
12938
12939
|
}, [apiConfigReady, apiConnected]);
|