@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.
@@ -14975,7 +14975,7 @@ class API {
14975
14975
  return {
14976
14976
  clientName: "@seamly/web-ui",
14977
14977
  clientVariant: this.#layoutMode,
14978
- clientVersion: "24.0.0-beta.2",
14978
+ clientVersion: "24.0.0-beta.3",
14979
14979
  currentUrl: window.location.toString(),
14980
14980
  screenResolution: `${window.screen.width}x${window.screen.height}`,
14981
14981
  timezone: getTimeZone(),
@@ -18119,28 +18119,6 @@ const SeamlyEventSubscriber = () => {
18119
18119
  const {
18120
18120
  emitEvent
18121
18121
  } = (0,seamly_hooks/* useSeamlyCommands */.Li)();
18122
- (0,hooks_.useEffect)(() => {
18123
- if (conversation.socket) {
18124
- const {
18125
- onError,
18126
- onOpen
18127
- } = conversation;
18128
- onError(err => {
18129
- const seamlyOfflineError = new seamly_offline_error/* default */.A(err);
18130
- dispatch((0,interrupt_slice/* setInterrupt */.y7)({
18131
- name: seamlyOfflineError.name,
18132
- message: seamlyOfflineError.message,
18133
- langKey: seamlyOfflineError.langKey,
18134
- originalEvent: seamlyOfflineError.originalEvent,
18135
- originalError: seamlyOfflineError.originalError
18136
- }));
18137
- dispatch((0,store_slice/* clearEvents */.lh)());
18138
- });
18139
- onOpen(() => {
18140
- dispatch((0,interrupt_slice/* clearInterrupt */.DB)());
18141
- });
18142
- }
18143
- }, [conversation, conversation.socket, dispatch]);
18144
18122
  (0,hooks_.useEffect)(() => {
18145
18123
  if (conversation.socket) {
18146
18124
  conversation.onConnection(({
@@ -18160,6 +18138,20 @@ const SeamlyEventSubscriber = () => {
18160
18138
  }
18161
18139
  return false;
18162
18140
  });
18141
+ conversation.onError(err => {
18142
+ const seamlyOfflineError = new seamly_offline_error/* default */.A(err);
18143
+ dispatch((0,interrupt_slice/* setInterrupt */.y7)({
18144
+ name: seamlyOfflineError.name,
18145
+ message: seamlyOfflineError.message,
18146
+ langKey: seamlyOfflineError.langKey,
18147
+ originalEvent: seamlyOfflineError.originalEvent,
18148
+ originalError: seamlyOfflineError.originalError
18149
+ }));
18150
+ dispatch((0,store_slice/* clearEvents */.lh)());
18151
+ });
18152
+ conversation.onOpen(() => {
18153
+ dispatch((0,interrupt_slice/* clearInterrupt */.DB)());
18154
+ });
18163
18155
  }
18164
18156
  }, [conversation, conversation.socket, dispatch]);
18165
18157
  (0,hooks_.useEffect)(() => {