@ethora/chat-component 26.3.24 → 26.3.25

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.
@@ -8,7 +8,7 @@ interface MessageInteractionsProps {
8
8
  visible: boolean;
9
9
  x: number;
10
10
  y: number;
11
- };
11
+ } | null;
12
12
  setContextMenu: ({ visible, x, y }: {
13
13
  visible: any;
14
14
  x: any;
package/dist/main.js CHANGED
@@ -48956,7 +48956,7 @@ const kV = Q.div`
48956
48956
  return S + 320 > _ && (N = _ - 320 - 10), D + 435 > I && (B = I - 435 - 10), { adjustedX: N, adjustedY: B };
48957
48957
  };
48958
48958
  return ge(() => {
48959
- if (typeof window > "u")
48959
+ if (typeof window > "u" || !i)
48960
48960
  return;
48961
48961
  const S = () => {
48962
48962
  if (l) {
@@ -48970,7 +48970,7 @@ const kV = Q.div`
48970
48970
  return window.addEventListener("scroll", S), () => {
48971
48971
  typeof window < "u" && window.removeEventListener("scroll", S);
48972
48972
  };
48973
- }, [l, i.x, i.y]), d?.disableInteractions || !i.visible ? null : /* @__PURE__ */ g(je, { children: !n.isDeleted && /* @__PURE__ */ g(EV, { onClick: p, children: /* @__PURE__ */ U(
48973
+ }, [l, i?.x, i?.y]), !i || d?.disableInteractions || !i.visible ? null : /* @__PURE__ */ g(je, { children: !n.isDeleted && /* @__PURE__ */ g(EV, { onClick: p, children: /* @__PURE__ */ U(
48974
48974
  bV,
48975
48975
  {
48976
48976
  style: { top: i.y, left: i.x },
@@ -49414,8 +49414,8 @@ const kV = Q.div`
49414
49414
  })
49415
49415
  ), b({
49416
49416
  visible: !1,
49417
- x: null,
49418
- y: null
49417
+ x: 0,
49418
+ y: 0
49419
49419
  });
49420
49420
  }, I = (B) => {
49421
49421
  if (!e.reaction)
@@ -49478,9 +49478,9 @@ const kV = Q.div`
49478
49478
  {
49479
49479
  $deleted: e.isDeleted,
49480
49480
  $isUser: t,
49481
- onContextMenu: C,
49482
- onTouchStart: y,
49483
- onTouchEnd: S,
49481
+ onContextMenu: a?.disableInteractions ? void 0 : C,
49482
+ onTouchStart: a?.disableInteractions ? void 0 : y,
49483
+ onTouchEnd: a?.disableInteractions ? void 0 : S,
49484
49484
  children: [
49485
49485
  !t && /* @__PURE__ */ g(O_, { $isUser: t, $color: a?.colors?.primary, children: d }),
49486
49486
  !n && h?.text && /* @__PURE__ */ g(