dolphin-components 2.2.14 → 2.2.16

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.
@@ -47151,7 +47151,7 @@ const nx = /* @__PURE__ */ new WeakMap(), nP = {
47151
47151
  o.__tooltipHandlers && (o.__tooltipHandlers.updateBinding(e), o.matches(":hover") && o.__tooltipHandlers.createTooltip());
47152
47152
  },
47153
47153
  unmounted(o) {
47154
- o.__tooltipHandlers && (o.removeEventListener("mouseenter", o.__tooltipHandlers.showTooltip), o.removeEventListener("mouseleave", o.__tooltipHandlers.hideTooltip), o.__tooltipHandlers.clearShowTimeout(), delete o.__tooltipHandlers);
47154
+ o.__tooltipHandlers && (o.__tooltipHandlers.hideTooltip(), o.removeEventListener("mouseenter", o.__tooltipHandlers.showTooltip), o.removeEventListener("mouseleave", o.__tooltipHandlers.hideTooltip), o.__tooltipHandlers.clearShowTimeout(), delete o.__tooltipHandlers);
47155
47155
  }
47156
47156
  };
47157
47157
  class cP {
@@ -47162,15 +47162,15 @@ class cP {
47162
47162
  this.url = e;
47163
47163
  }
47164
47164
  init() {
47165
- return this.url == "" ? (console.log("❗WebSocket url not set!"), Promise.resolve(this)) : (this.socket?.readyState == WebSocket.OPEN && this.socket?.close(), this.socket ? (console.log("❗WebSocket is already initialized"), Promise.resolve(this)) : (this.socket = new WebSocket(this.url), new Promise((e, t) => {
47165
+ return this.url == "" ? (console.log("❗WebSocket url not set!"), Promise.resolve(this)) : this.socket && this.socket.readyState !== WebSocket.CLOSED && this.socket.readyState !== WebSocket.CLOSING ? (console.log("❗WebSocket is already initialized"), Promise.resolve(this)) : (this.socket = new WebSocket(this.url), new Promise((e, t) => {
47166
47166
  this.socket.onopen = () => {
47167
47167
  this.isConnected = !0, console.log("✅ WebSocket connected"), e(this);
47168
47168
  }, this.socket.onclose = () => {
47169
- this.isConnected = !1;
47169
+ this.isConnected = !1, console.log("❌ WebSocket connection closed");
47170
47170
  }, this.socket.onerror = (i) => {
47171
47171
  this.close(), console.error("⛔ WebSocket error occurred:", i), t(i);
47172
47172
  };
47173
- })));
47173
+ }));
47174
47174
  }
47175
47175
  onMessage(e) {
47176
47176
  return this.socket ? (this.socket.onmessage = (t) => {
@@ -47192,7 +47192,7 @@ class cP {
47192
47192
  });
47193
47193
  }
47194
47194
  close() {
47195
- this.socket && (this.socket.close(), this.isConnected = !1, console.log("❌ WebSocket connection closed"));
47195
+ this.socket && (this.socket.close(), this.socket = null, this.isConnected = !1, console.log("❌ WebSocket connection closed"));
47196
47196
  }
47197
47197
  getConnectionStatus() {
47198
47198
  return this.isConnected;
@@ -48867,9 +48867,9 @@ const un = (o) => ps.mixin({
48867
48867
  };
48868
48868
  }, uP = (o, e) => {
48869
48869
  let t = null;
48870
- return { run: () => {
48870
+ return { run: (s) => {
48871
48871
  t && clearTimeout(t), t = setTimeout(() => {
48872
- o(), t = null;
48872
+ o(s), t = null;
48873
48873
  }, e);
48874
48874
  }, cancel: () => {
48875
48875
  t && (clearTimeout(t), t = null);