@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.
@@ -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.2",
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)(() => {