@seamly/web-ui 24.0.0-beta.2 → 24.0.0-beta.3
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/index.debug.js +15 -23
- 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 +15 -23
- 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 +15 -23
- 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 +15 -23
- 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 +15 -23
- 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/components/core/seamly-event-subscriber.ts +20 -24
|
@@ -4336,7 +4336,7 @@ class API {
|
|
|
4336
4336
|
return {
|
|
4337
4337
|
clientName: "@seamly/web-ui",
|
|
4338
4338
|
clientVariant: this.#layoutMode,
|
|
4339
|
-
clientVersion: "24.0.0-beta.
|
|
4339
|
+
clientVersion: "24.0.0-beta.3",
|
|
4340
4340
|
currentUrl: window.location.toString(),
|
|
4341
4341
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
4342
4342
|
timezone: getTimeZone(),
|
|
@@ -17142,28 +17142,6 @@ const SeamlyEventSubscriber = () => {
|
|
|
17142
17142
|
const {
|
|
17143
17143
|
emitEvent
|
|
17144
17144
|
} = use_seamly_commands();
|
|
17145
|
-
(0,hooks_module/* useEffect */.vJ)(() => {
|
|
17146
|
-
if (conversation.socket) {
|
|
17147
|
-
const {
|
|
17148
|
-
onError,
|
|
17149
|
-
onOpen
|
|
17150
|
-
} = conversation;
|
|
17151
|
-
onError(err => {
|
|
17152
|
-
const seamlyOfflineError = new SeamlyOfflineError(err);
|
|
17153
|
-
dispatch(setInterrupt({
|
|
17154
|
-
name: seamlyOfflineError.name,
|
|
17155
|
-
message: seamlyOfflineError.message,
|
|
17156
|
-
langKey: seamlyOfflineError.langKey,
|
|
17157
|
-
originalEvent: seamlyOfflineError.originalEvent,
|
|
17158
|
-
originalError: seamlyOfflineError.originalError
|
|
17159
|
-
}));
|
|
17160
|
-
dispatch(clearEvents());
|
|
17161
|
-
});
|
|
17162
|
-
onOpen(() => {
|
|
17163
|
-
dispatch(clearInterrupt());
|
|
17164
|
-
});
|
|
17165
|
-
}
|
|
17166
|
-
}, [conversation, conversation.socket, dispatch]);
|
|
17167
17145
|
(0,hooks_module/* useEffect */.vJ)(() => {
|
|
17168
17146
|
if (conversation.socket) {
|
|
17169
17147
|
conversation.onConnection(({
|
|
@@ -17183,6 +17161,20 @@ const SeamlyEventSubscriber = () => {
|
|
|
17183
17161
|
}
|
|
17184
17162
|
return false;
|
|
17185
17163
|
});
|
|
17164
|
+
conversation.onError(err => {
|
|
17165
|
+
const seamlyOfflineError = new SeamlyOfflineError(err);
|
|
17166
|
+
dispatch(setInterrupt({
|
|
17167
|
+
name: seamlyOfflineError.name,
|
|
17168
|
+
message: seamlyOfflineError.message,
|
|
17169
|
+
langKey: seamlyOfflineError.langKey,
|
|
17170
|
+
originalEvent: seamlyOfflineError.originalEvent,
|
|
17171
|
+
originalError: seamlyOfflineError.originalError
|
|
17172
|
+
}));
|
|
17173
|
+
dispatch(clearEvents());
|
|
17174
|
+
});
|
|
17175
|
+
conversation.onOpen(() => {
|
|
17176
|
+
dispatch(clearInterrupt());
|
|
17177
|
+
});
|
|
17186
17178
|
}
|
|
17187
17179
|
}, [conversation, conversation.socket, dispatch]);
|
|
17188
17180
|
(0,hooks_module/* useEffect */.vJ)(() => {
|