@connectycube/chat-widget 0.40.0 → 0.41.0

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.
package/dist/index.es.js CHANGED
@@ -4961,11 +4961,11 @@ const Wu = ({ id: q, text: A = "", onReady: V = () => {
4961
4961
  i && e(i);
4962
4962
  }, [i]), y(() => {
4963
4963
  n > s.current && (s.current = n, V());
4964
- }, [n]), /* @__PURE__ */ React.createElement("div", { className: "flex flex-col gap-1" }, i.map((c, l, g) => {
4964
+ }, [n]), /* @__PURE__ */ t.createElement("div", { className: "flex flex-col gap-1" }, i.map((c, l, g) => {
4965
4965
  const m = r.get(c);
4966
4966
  if (m) {
4967
4967
  const u = `link_preview_${q || Yq()}_${l}`, p = g.length > 1, { url: d, title: w, description: k, images: C, favicons: I } = m;
4968
- return /* @__PURE__ */ React.createElement(
4968
+ return /* @__PURE__ */ t.createElement(
4969
4969
  Le,
4970
4970
  {
4971
4971
  key: u,
@@ -5010,18 +5010,18 @@ const Pu = ({ isLast: q, message: A, prevMessage: V, scrollToBottom: e = () => {
5010
5010
  v += l("CallHistory.Ended");
5011
5011
  break;
5012
5012
  }
5013
- return v += " ", v += L === qA.VIDEO ? l("CallHistory.videoCall") : L === qA.AUDIO ? l("CallHistory.audioCall") : l("CallHistory.defaultCall"), A.duration && (v += ` - ${Zu(Number(A.duration))}`), /* @__PURE__ */ React.createElement(
5013
+ return v += " ", v += L === qA.VIDEO ? l("CallHistory.videoCall") : L === qA.AUDIO ? l("CallHistory.audioCall") : l("CallHistory.defaultCall"), A.duration && (v += ` - ${Zu(Number(A.duration))}`), /* @__PURE__ */ t.createElement(
5014
5014
  je,
5015
5015
  {
5016
5016
  isLast: q,
5017
5017
  info: v,
5018
5018
  formattedDateProps: B,
5019
- iconElement: /* @__PURE__ */ React.createElement(ve, { fromMe: C, status: R })
5019
+ iconElement: /* @__PURE__ */ t.createElement(ve, { fromMe: C, status: R })
5020
5020
  }
5021
5021
  );
5022
5022
  }
5023
- const E = r?.type === bq.GROUP, Q = V?.sender_id === A.sender_id && !V.callHistory && !V.custom, M = E && !C ? i[A.sender_id] : void 0, T = M ? qq(M, !0) : void 0, f = M ? dq(M?.avatar) : void 0, S = A.custom && A.tag === qV.AI_TEXT_SUMMARY, N = A.attachments?.[0], U = S ? { fallbackIconElement: /* @__PURE__ */ React.createElement(Lt, { className: "text-orange-500" }) } : void 0, Y = N ? { className: "mb-2" } : void 0;
5024
- return /* @__PURE__ */ React.createElement(
5023
+ const E = r?.type === bq.GROUP, Q = V?.sender_id === A.sender_id && !V.callHistory && !V.custom, M = E && !C ? i[A.sender_id] : void 0, T = M ? qq(M, !0) : void 0, f = M ? dq(M?.avatar) : void 0, S = A.custom && A.tag === qV.AI_TEXT_SUMMARY, N = A.attachments?.[0], U = S ? { fallbackIconElement: /* @__PURE__ */ t.createElement(Lt, { className: "text-orange-500" }) } : void 0, Y = N ? { className: "mb-2" } : void 0;
5024
+ return /* @__PURE__ */ t.createElement(
5025
5025
  Je,
5026
5026
  {
5027
5027
  isLast: q,
@@ -5036,7 +5036,7 @@ const Pu = ({ isLast: q, message: A, prevMessage: V, scrollToBottom: e = () => {
5036
5036
  formattedDateProps: B,
5037
5037
  statusSent: A.status
5038
5038
  },
5039
- N ? /* @__PURE__ */ React.createElement(
5039
+ N ? /* @__PURE__ */ t.createElement(
5040
5040
  Ge,
5041
5041
  {
5042
5042
  uid: N.uid,
@@ -5045,8 +5045,8 @@ const Pu = ({ isLast: q, message: A, prevMessage: V, scrollToBottom: e = () => {
5045
5045
  pending: A.pending,
5046
5046
  onReady: w
5047
5047
  }
5048
- ) : /* @__PURE__ */ React.createElement(be, { text: d, pending: A.pending, onReady: w }),
5049
- c && /* @__PURE__ */ React.createElement(Wu, { id: p, text: d, onReady: w })
5048
+ ) : /* @__PURE__ */ t.createElement(be, { text: d, pending: A.pending, onReady: w }),
5049
+ c && /* @__PURE__ */ t.createElement(Wu, { id: p, text: d, onReady: w })
5050
5050
  );
5051
5051
  };
5052
5052
  function Hu({
@@ -5665,21 +5665,39 @@ function Ed({
5665
5665
  "div",
5666
5666
  {
5667
5667
  ...B,
5668
- className: h("relative self-stretch flex-1 flex-col text-foreground", B?.className)
5668
+ className: h("relative self-stretch flex-1 flex-col min-w-0 text-foreground", B?.className)
5669
5669
  },
5670
- /* @__PURE__ */ a.createElement("div", { ...E, className: h("flex items-center justify-between gap-1", E?.className) }, /* @__PURE__ */ a.createElement("div", { ...Q, className: h("flex items-center gap-1", Q?.className) }, !A && s && /* @__PURE__ */ a.createElement(
5671
- Zt,
5670
+ /* @__PURE__ */ a.createElement("div", { ...E, className: h("flex items-center justify-between gap-1", E?.className) }, /* @__PURE__ */ a.createElement(
5671
+ "div",
5672
5672
  {
5673
- ...M,
5674
- className: h("text-muted-foreground size-4 min-w-4", M?.className)
5675
- }
5676
- ), /* @__PURE__ */ a.createElement("span", { ...T, className: h("font-medium text-left line-clamp-1", T?.className) }, o)), /* @__PURE__ */ a.createElement("div", { ...f, className: h("flex items-center gap-1", f?.className) }, /* @__PURE__ */ a.createElement(cV, { status: c, ...S }), /* @__PURE__ */ a.createElement(xA, { date: l, language: k, ...N }))),
5677
- /* @__PURE__ */ a.createElement("div", { ...U, className: h("flex items-start justify-between gap-1", U?.className) }, /* @__PURE__ */ a.createElement(
5673
+ ...Q,
5674
+ className: h("flex items-center gap-1 min-w-0 flex-1", Q?.className)
5675
+ },
5676
+ !A && s && /* @__PURE__ */ a.createElement(
5677
+ Zt,
5678
+ {
5679
+ ...M,
5680
+ className: h("text-muted-foreground size-4 min-w-4 shrink-0", M?.className)
5681
+ }
5682
+ ),
5683
+ /* @__PURE__ */ a.createElement(
5684
+ "span",
5685
+ {
5686
+ ...T,
5687
+ className: h(
5688
+ "font-medium text-left line-clamp-1 min-w-0 break-all overflow-hidden",
5689
+ T?.className
5690
+ )
5691
+ },
5692
+ o
5693
+ )
5694
+ ), /* @__PURE__ */ a.createElement("div", { ...f, className: h("flex items-center gap-1", f?.className) }, /* @__PURE__ */ a.createElement(cV, { status: c, ...S }), /* @__PURE__ */ a.createElement(xA, { date: l, language: k, ...N }))),
5695
+ /* @__PURE__ */ a.createElement("div", { ...U, className: h("flex items-start justify-between gap-1 min-w-0", U?.className) }, /* @__PURE__ */ a.createElement(
5678
5696
  "span",
5679
5697
  {
5680
5698
  ...Y,
5681
5699
  className: h(
5682
- "text-sm text-left text-muted-foreground break-all line-clamp-2",
5700
+ "text-sm text-left text-muted-foreground break-all wrap-break-word line-clamp-2 min-w-0 overflow-hidden",
5683
5701
  Y?.className
5684
5702
  )
5685
5703
  },