@linktr.ee/messaging-react 4.3.1-rc-1787564018 → 4.3.1-rc-1787565170
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/{Card-C-v4hEGd.js → Card-CyWHWq0c.js} +2 -2
- package/dist/{Card-C-v4hEGd.js.map → Card-CyWHWq0c.js.map} +1 -1
- package/dist/{Card-BGMEzK3U.cjs → Card-DnxM0CSC.cjs} +2 -2
- package/dist/{Card-BGMEzK3U.cjs.map → Card-DnxM0CSC.cjs.map} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/index-BtVpvpDD.cjs +3 -0
- package/dist/index-BtVpvpDD.cjs.map +1 -0
- package/dist/{index-B0knLCIZ.js → index-CtmXbMa5.js} +12 -11
- package/dist/index-CtmXbMa5.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/components/LinkAttachment/components/_shared/BubbleTail.test.tsx +1 -3
- package/src/components/LinkAttachment/components/_shared/BubbleTail.tsx +3 -3
- package/src/components/LinkAttachment/components/_shared/CardShell.tsx +10 -10
- package/src/components/MessageBubble/MessageBubble.stories.tsx +7 -1
- package/src/components/RichCard/RichCard.stories.tsx +1 -13
- package/src/components/RichCard/RichCardBody.tsx +3 -2
- package/src/styles.css +2 -4
- package/dist/index-8NJc4beJ.cjs +0 -3
- package/dist/index-8NJc4beJ.cjs.map +0 -1
- package/dist/index-B0knLCIZ.js.map +0 -1
|
@@ -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-
|
|
818
|
+
const La = R.lazy(() => import("./Card-BzvDr-pU.js")), Ma = R.lazy(() => import("./Card-CyWHWq0c.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
|
-
//
|
|
1221
|
-
//
|
|
1222
|
-
//
|
|
1223
|
-
//
|
|
1224
|
-
|
|
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
|
|
1613
|
-
//
|
|
1614
|
-
/* @__PURE__ */ h("div", { className: "relative isolate w-
|
|
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-
|
|
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: [
|
|
@@ -5255,4 +5256,4 @@ export {
|
|
|
5255
5256
|
xs as y,
|
|
5256
5257
|
Ho as z
|
|
5257
5258
|
};
|
|
5258
|
-
//# sourceMappingURL=index-
|
|
5259
|
+
//# sourceMappingURL=index-CtmXbMa5.js.map
|