@seamly/web-ui 22.3.1 → 22.3.2

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.
@@ -11522,6 +11522,7 @@ class ConversationConnector {
11522
11522
  _ConversationConnector_connectionListeners.set(this, []);
11523
11523
  }
11524
11524
  connect(url, channelName, channelTopic, accessToken) {
11525
+ var _a;
11525
11526
  return __awaiter(this, void 0, void 0, function* () {
11526
11527
  this.url = url;
11527
11528
  this.accessToken = accessToken;
@@ -11531,7 +11532,7 @@ class ConversationConnector {
11531
11532
  url: splittedUrl,
11532
11533
  params
11533
11534
  } = split_url_params(this.url);
11534
- if (!this.socket) {
11535
+ if (!((_a = this.socket) === null || _a === void 0 ? void 0 : _a.isConnected())) {
11535
11536
  this.socket = new Socket(splittedUrl, {
11536
11537
  params: Object.assign(Object.assign({}, params), {
11537
11538
  v: javascripts_config/* apiVersion */.tW
@@ -11610,6 +11611,8 @@ class ConversationConnector {
11610
11611
  disconnect() {
11611
11612
  var _a;
11612
11613
  (_a = this.channel) === null || _a === void 0 ? void 0 : _a.leave().receive('ok', () => {
11614
+ var _a;
11615
+ (_a = this.socket) === null || _a === void 0 ? void 0 : _a.disconnect();
11613
11616
  log('[CHANNEL][LEAVE] OK');
11614
11617
  __classPrivateFieldSet(this, _ConversationConnector_connectionListeners, [], "f");
11615
11618
  });
@@ -12152,7 +12155,7 @@ _API_ready = new WeakMap(), _API_externalId = new WeakMap(), _API_conversationAu
12152
12155
  return {
12153
12156
  clientName: "@seamly/web-ui",
12154
12157
  clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
12155
- clientVersion: "22.3.1",
12158
+ clientVersion: "22.3.2",
12156
12159
  currentUrl: window.location.toString(),
12157
12160
  screenResolution: `${window.screen.width}x${window.screen.height}`,
12158
12161
  timezone: getTimeZone(),