@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
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: "24.0.0-beta.
|
|
4290
|
+
clientVersion: "24.0.0-beta.3",
|
|
4291
4291
|
currentUrl: window.location.toString(),
|
|
4292
4292
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
4293
4293
|
timezone: getTimeZone(),
|
|
@@ -17093,28 +17093,6 @@ const SeamlyEventSubscriber = () => {
|
|
|
17093
17093
|
const {
|
|
17094
17094
|
emitEvent
|
|
17095
17095
|
} = use_seamly_commands();
|
|
17096
|
-
(0,hooks_.useEffect)(() => {
|
|
17097
|
-
if (conversation.socket) {
|
|
17098
|
-
const {
|
|
17099
|
-
onError,
|
|
17100
|
-
onOpen
|
|
17101
|
-
} = conversation;
|
|
17102
|
-
onError(err => {
|
|
17103
|
-
const seamlyOfflineError = new SeamlyOfflineError(err);
|
|
17104
|
-
dispatch(setInterrupt({
|
|
17105
|
-
name: seamlyOfflineError.name,
|
|
17106
|
-
message: seamlyOfflineError.message,
|
|
17107
|
-
langKey: seamlyOfflineError.langKey,
|
|
17108
|
-
originalEvent: seamlyOfflineError.originalEvent,
|
|
17109
|
-
originalError: seamlyOfflineError.originalError
|
|
17110
|
-
}));
|
|
17111
|
-
dispatch(clearEvents());
|
|
17112
|
-
});
|
|
17113
|
-
onOpen(() => {
|
|
17114
|
-
dispatch(clearInterrupt());
|
|
17115
|
-
});
|
|
17116
|
-
}
|
|
17117
|
-
}, [conversation, conversation.socket, dispatch]);
|
|
17118
17096
|
(0,hooks_.useEffect)(() => {
|
|
17119
17097
|
if (conversation.socket) {
|
|
17120
17098
|
conversation.onConnection(({
|
|
@@ -17134,6 +17112,20 @@ const SeamlyEventSubscriber = () => {
|
|
|
17134
17112
|
}
|
|
17135
17113
|
return false;
|
|
17136
17114
|
});
|
|
17115
|
+
conversation.onError(err => {
|
|
17116
|
+
const seamlyOfflineError = new SeamlyOfflineError(err);
|
|
17117
|
+
dispatch(setInterrupt({
|
|
17118
|
+
name: seamlyOfflineError.name,
|
|
17119
|
+
message: seamlyOfflineError.message,
|
|
17120
|
+
langKey: seamlyOfflineError.langKey,
|
|
17121
|
+
originalEvent: seamlyOfflineError.originalEvent,
|
|
17122
|
+
originalError: seamlyOfflineError.originalError
|
|
17123
|
+
}));
|
|
17124
|
+
dispatch(clearEvents());
|
|
17125
|
+
});
|
|
17126
|
+
conversation.onOpen(() => {
|
|
17127
|
+
dispatch(clearInterrupt());
|
|
17128
|
+
});
|
|
17137
17129
|
}
|
|
17138
17130
|
}, [conversation, conversation.socket, dispatch]);
|
|
17139
17131
|
(0,hooks_.useEffect)(() => {
|