@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.
@@ -4003,7 +4003,7 @@ class API {
4003
4003
  return {
4004
4004
  clientName: "@seamly/web-ui",
4005
4005
  clientVariant: this.#layoutMode,
4006
- clientVersion: "24.0.0-beta.2",
4006
+ clientVersion: "24.0.0-beta.3",
4007
4007
  currentUrl: window.location.toString(),
4008
4008
  screenResolution: `${window.screen.width}x${window.screen.height}`,
4009
4009
  timezone: getTimeZone(),
@@ -16809,28 +16809,6 @@ const SeamlyEventSubscriber = () => {
16809
16809
  const {
16810
16810
  emitEvent
16811
16811
  } = use_seamly_commands();
16812
- (0,hooks_.useEffect)(() => {
16813
- if (conversation.socket) {
16814
- const {
16815
- onError,
16816
- onOpen
16817
- } = conversation;
16818
- onError(err => {
16819
- const seamlyOfflineError = new SeamlyOfflineError(err);
16820
- dispatch(setInterrupt({
16821
- name: seamlyOfflineError.name,
16822
- message: seamlyOfflineError.message,
16823
- langKey: seamlyOfflineError.langKey,
16824
- originalEvent: seamlyOfflineError.originalEvent,
16825
- originalError: seamlyOfflineError.originalError
16826
- }));
16827
- dispatch(clearEvents());
16828
- });
16829
- onOpen(() => {
16830
- dispatch(clearInterrupt());
16831
- });
16832
- }
16833
- }, [conversation, conversation.socket, dispatch]);
16834
16812
  (0,hooks_.useEffect)(() => {
16835
16813
  if (conversation.socket) {
16836
16814
  conversation.onConnection(({
@@ -16850,6 +16828,20 @@ const SeamlyEventSubscriber = () => {
16850
16828
  }
16851
16829
  return false;
16852
16830
  });
16831
+ conversation.onError(err => {
16832
+ const seamlyOfflineError = new SeamlyOfflineError(err);
16833
+ dispatch(setInterrupt({
16834
+ name: seamlyOfflineError.name,
16835
+ message: seamlyOfflineError.message,
16836
+ langKey: seamlyOfflineError.langKey,
16837
+ originalEvent: seamlyOfflineError.originalEvent,
16838
+ originalError: seamlyOfflineError.originalError
16839
+ }));
16840
+ dispatch(clearEvents());
16841
+ });
16842
+ conversation.onOpen(() => {
16843
+ dispatch(clearInterrupt());
16844
+ });
16853
16845
  }
16854
16846
  }, [conversation, conversation.socket, dispatch]);
16855
16847
  (0,hooks_.useEffect)(() => {