@linktr.ee/messaging-react 4.3.1-rc-1787564018 → 4.3.1-rc-1787564868

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.
@@ -815,7 +815,7 @@ const Ta = {
815
815
  function Ra(e) {
816
816
  return he(Ns)[e] ?? Aa[e];
817
817
  }
818
- const La = R.lazy(() => import("./Card-BzvDr-pU.js")), Ma = R.lazy(() => import("./Card-C-v4hEGd.js")), Da = () => /* @__PURE__ */ s(
818
+ const La = R.lazy(() => import("./Card-BzvDr-pU.js")), Ma = R.lazy(() => import("./Card-CPjlTEDn.js")), Da = () => /* @__PURE__ */ s(
819
819
  "div",
820
820
  {
821
821
  className: "w-[280px] min-h-[200px] animate-pulse rounded-md bg-black/[0.06] shadow-[0_0_0_1px_rgba(0,0,0,0.04),0_1px_2px_rgba(0,0,0,0.04),0_8px_32px_rgba(0,0,0,0.1)]",
@@ -1217,11 +1217,12 @@ const er = {
1217
1217
  u && /* @__PURE__ */ s(ks, { variant: t ?? e, cta: u })
1218
1218
  ] });
1219
1219
  }, ar = "Loading link preview", rr = y(
1220
- // Fluid width, capped by a channel-scoped token: default 290px. A read-only
1221
- // surface with no composer (the official channel) sets `--lt-msg-card-width`
1222
- // on its root (see ChannelView). `w-full` fills the content column up to that
1223
- // cap so a card never overflows a narrower viewport — it shrinks to fit.
1224
- "relative max-w-[var(--lt-msg-card-width,290px)] w-full select-none overflow-hidden",
1220
+ // Width is a channel-scoped token: default 290px, but a read-only surface with no
1221
+ // composer (the official channel) sets `--lt-msg-card-width` on its root to widen the
1222
+ // content column (see ChannelView). Consumers that don't set the var keep 290px.
1223
+ // `max-w-full` caps the card to its container so a widened value can never overflow
1224
+ // horizontally on a narrow (sub-393px) viewport — it shrinks to fit instead.
1225
+ "relative w-[var(--lt-msg-card-width,290px)] max-w-full select-none overflow-hidden",
1225
1226
  // 20px corners — no token exists for it in the component-library preset,
1226
1227
  // whose radius scale is sm .5rem / md 1rem / lg 1.5rem / xl 4rem.
1227
1228
  "rounded-[20px]"
@@ -1609,9 +1610,9 @@ const pr = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
1609
1610
  children: a
1610
1611
  }) => n ? (
1611
1612
  // `isolate` keeps the tail's negative z-index from escaping behind the
1612
- // thread background. Same width contract as `CardShell` (`w-full` up to
1613
- // the channel cap) so a short title cannot shrink the card.
1614
- /* @__PURE__ */ h("div", { className: "relative isolate w-full max-w-[var(--lt-msg-card-width,290px)]", children: [
1613
+ // thread background; `w-fit` stops the wrapper from stretching in the
1614
+ // composer's flex list.
1615
+ /* @__PURE__ */ h("div", { className: "relative isolate w-fit", children: [
1615
1616
  a,
1616
1617
  /* @__PURE__ */ s(
1617
1618
  "span",
@@ -4858,7 +4859,7 @@ const io = { last_message_at: -1 }, oo = R.memo(
4858
4859
  }
4859
4860
  );
4860
4861
  oo.displayName = "ChannelList";
4861
- const lo = "line-clamp-2 text-body-small-medium", co = "text-body-small-regular", uo = () => /* @__PURE__ */ h(G, { children: [
4862
+ const lo = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.02em]", co = "text-[14px] leading-5 tracking-[0.02em]", uo = () => /* @__PURE__ */ h(G, { children: [
4862
4863
  /* @__PURE__ */ s("br", {}),
4863
4864
  /* @__PURE__ */ s("span", { "aria-hidden": !0, className: "block h-1.5" })
4864
4865
  ] }), mo = (e) => e.split(/\r?\n/).map((t, n, a) => /* @__PURE__ */ h(R.Fragment, { children: [
@@ -5115,13 +5116,12 @@ const lo = "line-clamp-2 text-body-small-medium", co = "text-body-small-regular"
5115
5116
  tail: n = !0,
5116
5117
  header: a,
5117
5118
  className: r
5118
- }) => /* @__PURE__ */ s(
5119
+ }) => /* @__PURE__ */ h(
5119
5120
  "div",
5120
5121
  {
5121
5122
  "data-dd-privacy": "mask",
5122
5123
  className: y(
5123
- "str-chat__message-bubble",
5124
- "relative",
5124
+ "relative px-4 py-3",
5125
5125
  "text-[0.875rem] leading-[1.3125rem] tracking-[0.14px]",
5126
5126
  r
5127
5127
  ),
@@ -5130,11 +5130,11 @@ const lo = "line-clamp-2 text-body-small-medium", co = "text-body-small-regular"
5130
5130
  borderRadius: "var(--str-chat__message-bubble-border-radius, 1.5rem)",
5131
5131
  isolation: "isolate"
5132
5132
  },
5133
- children: /* @__PURE__ */ h("div", { className: "str-chat__message-text", children: [
5133
+ children: [
5134
5134
  a != null && /* @__PURE__ */ s("div", { className: "mb-1 font-medium", "data-testid": "message-bubble-header", children: a }),
5135
5135
  /* @__PURE__ */ s("p", { className: "m-0 whitespace-pre-wrap break-words hyphens-manual", children: t }),
5136
5136
  n && /* @__PURE__ */ s(So, { variant: e })
5137
- ] })
5137
+ ]
5138
5138
  }
5139
5139
  ), Eo = ({
5140
5140
  text: e,
@@ -5255,4 +5255,4 @@ export {
5255
5255
  xs as y,
5256
5256
  Ho as z
5257
5257
  };
5258
- //# sourceMappingURL=index-B0knLCIZ.js.map
5258
+ //# sourceMappingURL=index-BJ1FkeL1.js.map