@linktr.ee/messaging-react 3.12.4-rc-1784097764 → 3.12.4-rc-1784099103
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-CWlzDHJA.js → Card-CEcDWSUV.js} +16 -16
- package/dist/Card-CEcDWSUV.js.map +1 -0
- package/dist/{Card-qS17qnN0.js → Card-CNVnUwPO.js} +21 -21
- package/dist/Card-CNVnUwPO.js.map +1 -0
- package/dist/Card-Ce9FOfFE.cjs +2 -0
- package/dist/Card-Ce9FOfFE.cjs.map +1 -0
- package/dist/Card-DzatAhX7.cjs +2 -0
- package/dist/Card-DzatAhX7.cjs.map +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/{index-B2BrYTjw.js → index-CINy7e9F.js} +12 -13
- package/dist/index-CINy7e9F.js.map +1 -0
- package/dist/index-CuaKXN_X.cjs +2 -0
- package/dist/index-CuaKXN_X.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/components/AttachmentCard/index.tsx +1 -1
- package/src/components/CustomMessage/LockedAttachment/components/_shared/MediaShell.tsx +1 -1
- package/src/components/CustomMessage/LockedAttachment/components/_shared/TextShell.tsx +1 -1
- package/src/components/CustomMessage/LockedAttachment/index.tsx +1 -1
- package/src/components/LinkAttachment/components/_shared/CardShell.tsx +3 -3
- package/src/components/LinkAttachment/types.ts +4 -3
- package/src/components/MediaMessage/index.tsx +1 -1
- package/src/components/MessageAttachment/_shared/Bubble.tsx +6 -7
- package/src/styles.css +6 -3
- package/dist/Card-415OfRhw.cjs +0 -2
- package/dist/Card-415OfRhw.cjs.map +0 -1
- package/dist/Card-BMJl2xlA.cjs +0 -2
- package/dist/Card-BMJl2xlA.cjs.map +0 -1
- package/dist/Card-CWlzDHJA.js.map +0 -1
- package/dist/Card-qS17qnN0.js.map +0 -1
- package/dist/index-B2BrYTjw.js.map +0 -1
- package/dist/index-DSxpS5J9.cjs +0 -2
- package/dist/index-DSxpS5J9.cjs.map +0 -1
|
@@ -1240,7 +1240,7 @@ const Ea = (e) => {
|
|
|
1240
1240
|
ref: f,
|
|
1241
1241
|
"data-testid": h,
|
|
1242
1242
|
className: k(
|
|
1243
|
-
"relative w-[280px] select-none overflow-hidden rounded-[24px] shadow-[0_0_0_1px_rgba(0,0,0,0.04),0_4px_8px_rgba(0,0,0,0.06)]",
|
|
1243
|
+
"relative w-full max-w-[280px] select-none overflow-hidden rounded-[24px] shadow-[0_0_0_1px_rgba(0,0,0,0.04),0_4px_8px_rgba(0,0,0,0.06)]",
|
|
1244
1244
|
g ? "bg-[#1e2330]" : "bg-white"
|
|
1245
1245
|
),
|
|
1246
1246
|
children: [
|
|
@@ -1289,7 +1289,7 @@ function ps(e) {
|
|
|
1289
1289
|
return e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
|
|
1290
1290
|
}
|
|
1291
1291
|
function ht(e) {
|
|
1292
|
-
return `w-[280px] select-none overflow-hidden rounded-[24px] ${e ? "bg-[#1e2330]" : "bg-[#F3F3F1]"} shadow-[0_0_0_1px_rgba(0,0,0,0.04),0_4px_8px_rgba(0,0,0,0.06)]`;
|
|
1292
|
+
return `w-full max-w-[280px] select-none overflow-hidden rounded-[24px] ${e ? "bg-[#1e2330]" : "bg-[#F3F3F1]"} shadow-[0_0_0_1px_rgba(0,0,0,0.04),0_4px_8px_rgba(0,0,0,0.06)]`;
|
|
1293
1293
|
}
|
|
1294
1294
|
function Ma(e) {
|
|
1295
1295
|
return e ? "bg-white/10" : "bg-black/5";
|
|
@@ -1543,13 +1543,12 @@ const vs = ({
|
|
|
1543
1543
|
"data-testid": o,
|
|
1544
1544
|
"data-group-position": a,
|
|
1545
1545
|
className: k(
|
|
1546
|
-
// 280px
|
|
1547
|
-
//
|
|
1548
|
-
//
|
|
1549
|
-
//
|
|
1550
|
-
//
|
|
1551
|
-
|
|
1552
|
-
"relative w-[280px] overflow-hidden px-2 py-2",
|
|
1546
|
+
// Caps at 280px and shrinks with the message row so mweb padding
|
|
1547
|
+
// can't force horizontal overflow. The 8px / 16px inset matches
|
|
1548
|
+
// `--str-chat__spacing-2 --str-chat__spacing-4` so attachments
|
|
1549
|
+
// share the same hit / negative-space rhythm as surrounding
|
|
1550
|
+
// `CustomMessage` text bubbles.
|
|
1551
|
+
"relative w-full max-w-[280px] overflow-hidden px-2 py-2",
|
|
1553
1552
|
d,
|
|
1554
1553
|
Ua[e],
|
|
1555
1554
|
Ba[e],
|
|
@@ -2669,10 +2668,10 @@ const rr = ({
|
|
|
2669
2668
|
function Pr(e) {
|
|
2670
2669
|
return Te(As)[e] ?? Fr[e];
|
|
2671
2670
|
}
|
|
2672
|
-
const Or = V.lazy(() => import("./Card-
|
|
2671
|
+
const Or = V.lazy(() => import("./Card-CNVnUwPO.js")), $r = V.lazy(() => import("./Card-CEcDWSUV.js")), Ur = () => /* @__PURE__ */ s(
|
|
2673
2672
|
"div",
|
|
2674
2673
|
{
|
|
2675
|
-
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)]",
|
|
2674
|
+
className: "w-full max-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)]",
|
|
2676
2675
|
"aria-hidden": !0
|
|
2677
2676
|
}
|
|
2678
2677
|
), Pe = (e) => /* @__PURE__ */ s(Gs, { fallback: /* @__PURE__ */ s(Ur, {}), children: e.contentType === "text" ? /* @__PURE__ */ s(Or, { ...e }) : /* @__PURE__ */ s($r, { ...e }) }), Br = ({ size: e = 15 }) => /* @__PURE__ */ s(
|
|
@@ -2885,7 +2884,7 @@ const Jr = {
|
|
|
2885
2884
|
o && /* @__PURE__ */ s(Qr, { variant: e, cta: o })
|
|
2886
2885
|
] });
|
|
2887
2886
|
}, ni = k(
|
|
2888
|
-
"relative block w-[280px] select-none overflow-hidden rounded-md",
|
|
2887
|
+
"relative block w-full max-w-[280px] select-none overflow-hidden rounded-md",
|
|
2889
2888
|
// 1px hairline border that sits flush with the card chrome — matches
|
|
2890
2889
|
// the messaging design system's "small border around link attachments"
|
|
2891
2890
|
// treatment from the mobile spec. The drop shadow remains for depth.
|
|
@@ -5349,4 +5348,4 @@ export {
|
|
|
5349
5348
|
He as y,
|
|
5350
5349
|
gt as z
|
|
5351
5350
|
};
|
|
5352
|
-
//# sourceMappingURL=index-
|
|
5351
|
+
//# sourceMappingURL=index-CINy7e9F.js.map
|