@linktr.ee/messaging-react 3.8.0 → 3.8.1-rc-1783410975

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.
Files changed (38) hide show
  1. package/dist/{Card-BJ1ttS3d.js → Card-BRvcFjsq.js} +2 -2
  2. package/dist/{Card-BJ1ttS3d.js.map → Card-BRvcFjsq.js.map} +1 -1
  3. package/dist/{Card-DvZ0INEN.cjs → Card-BuXkok0A.cjs} +2 -2
  4. package/dist/{Card-DvZ0INEN.cjs.map → Card-BuXkok0A.cjs.map} +1 -1
  5. package/dist/{Card-VcM0VofY.js → Card-CvNHv3me.js} +2 -2
  6. package/dist/{Card-VcM0VofY.js.map → Card-CvNHv3me.js.map} +1 -1
  7. package/dist/{Card-B34_3dxf.cjs → Card-DOSuQdnk.cjs} +2 -2
  8. package/dist/{Card-B34_3dxf.cjs.map → Card-DOSuQdnk.cjs.map} +1 -1
  9. package/dist/{Card-BDzTCHou.cjs → Card-NnQw99XE.cjs} +2 -2
  10. package/dist/{Card-BDzTCHou.cjs.map → Card-NnQw99XE.cjs.map} +1 -1
  11. package/dist/{Card-Dm-jfetA.js → Card-jGOcSN1O.js} +3 -3
  12. package/dist/{Card-Dm-jfetA.js.map → Card-jGOcSN1O.js.map} +1 -1
  13. package/dist/{LockedThumbnail-BDf9eBov.js → LockedThumbnail-EsjaAqLR.js} +3 -3
  14. package/dist/{LockedThumbnail-BDf9eBov.js.map → LockedThumbnail-EsjaAqLR.js.map} +1 -1
  15. package/dist/{LockedThumbnail-DYz11nhd.cjs → LockedThumbnail-uAauUd5c.cjs} +2 -2
  16. package/dist/{LockedThumbnail-DYz11nhd.cjs.map → LockedThumbnail-uAauUd5c.cjs.map} +1 -1
  17. package/dist/assets/index.css +1 -1
  18. package/dist/{index-27SEkKTJ.js → index-BCgRoF_u.js} +10 -9
  19. package/dist/index-BCgRoF_u.js.map +1 -0
  20. package/dist/index-DRurVQ0-.cjs +2 -0
  21. package/dist/index-DRurVQ0-.cjs.map +1 -0
  22. package/dist/index.cjs +1 -1
  23. package/dist/index.js +1 -1
  24. package/package.json +2 -2
  25. package/src/components/AttachmentCard/index.tsx +1 -1
  26. package/src/components/CustomLinkPreviewList/CustomLinkPreviewCard.tsx +1 -1
  27. package/src/components/CustomMessage/CustomMessage.stories.tsx +27 -0
  28. package/src/components/CustomMessage/MessageAttachmentConversations.stories.tsx +2 -2
  29. package/src/components/CustomMessage/MessageTag.stories.tsx +2 -2
  30. package/src/components/LinkAttachment/components/_shared/CardShell.tsx +1 -1
  31. package/src/components/LockedAttachment/components/_shared/LockedCardShell.tsx +1 -1
  32. package/src/components/MediaMessage/index.tsx +8 -1
  33. package/src/components/MessageAttachment/_shared/Bubble.tsx +7 -7
  34. package/src/components/MessageAttachment/_shared/CompactDocumentRow.tsx +3 -3
  35. package/src/styles.css +101 -9
  36. package/dist/index-27SEkKTJ.js.map +0 -1
  37. package/dist/index-DupFGSXr.cjs +0 -2
  38. package/dist/index-DupFGSXr.cjs.map +0 -1
@@ -818,7 +818,7 @@ function hs({
818
818
  const n = e == null ? void 0 : e.text, a = wa(t);
819
819
  return a ? ((r = e == null ? void 0 : e.i18n) == null ? void 0 : r[`${a}_text`]) ?? n : n;
820
820
  }
821
- const _a = V.lazy(() => import("./Card-BJ1ttS3d.js")), Na = V.lazy(() => import("./Card-VcM0VofY.js")), ya = V.lazy(() => import("./Card-Dm-jfetA.js")), dt = () => /* @__PURE__ */ s(
821
+ const _a = V.lazy(() => import("./Card-BRvcFjsq.js")), Na = V.lazy(() => import("./Card-CvNHv3me.js")), ya = V.lazy(() => import("./Card-jGOcSN1O.js")), dt = () => /* @__PURE__ */ s(
822
822
  "div",
823
823
  {
824
824
  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)]",
@@ -1219,7 +1219,7 @@ const Ma = (e) => {
1219
1219
  "data-testid": h,
1220
1220
  className: k(
1221
1221
  "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)]",
1222
- f ? "bg-[#121110]" : "bg-white"
1222
+ f ? "bg-[#1e2330]" : "bg-white"
1223
1223
  ),
1224
1224
  children: [
1225
1225
  d ? /* @__PURE__ */ s("div", { className: "pointer-events-auto absolute left-3 top-3 z-50", children: d }) : null,
@@ -1267,7 +1267,7 @@ function xs(e) {
1267
1267
  return e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
1268
1268
  }
1269
1269
  function ut(e) {
1270
- return `w-[280px] select-none overflow-hidden rounded-[24px] ${e ? "bg-[#121110]" : "bg-[#F3F3F1]"} shadow-[0_0_0_1px_rgba(0,0,0,0.04),0_4px_8px_rgba(0,0,0,0.06)]`;
1270
+ 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)]`;
1271
1271
  }
1272
1272
  function La(e) {
1273
1273
  return e ? "bg-white/10" : "bg-black/5";
@@ -1456,6 +1456,7 @@ const _s = ({
1456
1456
  "div",
1457
1457
  {
1458
1458
  className: "str-chat__message-bubble",
1459
+ "data-attachment-bubble": "true",
1459
1460
  style: { padding: 0, borderRadius: 0, overflow: "visible", background: "transparent" },
1460
1461
  children: n ? /* @__PURE__ */ s("div", { className: ut(t), children: /* @__PURE__ */ s(mt, { attachment: n, isMyMessage: t }) }) : t ? /* @__PURE__ */ s(_s, { ...a }) : /* @__PURE__ */ s(Ns, { ...a })
1461
1462
  }
@@ -1483,11 +1484,11 @@ const _s = ({
1483
1484
  Creator: ja,
1484
1485
  Visitor: Va
1485
1486
  }), Ga = {
1486
- dark: "bg-[#121110]",
1487
- light: "bg-[#e9eaed]"
1487
+ dark: "bg-[#1e2330]",
1488
+ light: "bg-[#f2f1ef]"
1488
1489
  }, Ha = {
1489
1490
  dark: "text-white",
1490
- light: "text-[#080707]"
1491
+ light: "text-[#000000]"
1491
1492
  }, Ya = {
1492
1493
  dark: "border-white/[0.08]",
1493
1494
  light: "border-black/[0.08]"
@@ -2869,7 +2870,7 @@ const Zr = {
2869
2870
  }) => {
2870
2871
  const u = n != null || a != null, p = k(
2871
2872
  ni,
2872
- l ?? (e === "dark" ? "bg-[#121110]" : "bg-white"),
2873
+ l ?? (e === "dark" ? "bg-[#1e2330]" : "bg-white"),
2873
2874
  // `focus-ring` is a design-system utility from the component-library
2874
2875
  // tailwind preset — outline-none + a black 2px focus-visible ring
2875
2876
  // with offset, so keyboard users can see the focused card.
@@ -3740,7 +3741,7 @@ const xi = ({
3740
3741
  href: n,
3741
3742
  target: "_blank",
3742
3743
  rel: "noopener noreferrer",
3743
- className: "relative block w-full rounded-[24px] bg-[#121110] p-2 no-underline transition-opacity hover:opacity-90",
3744
+ className: "relative block w-full rounded-[24px] bg-[#1e2330] p-2 no-underline transition-opacity hover:opacity-90",
3744
3745
  children: [
3745
3746
  r && /* @__PURE__ */ s(
3746
3747
  "img",
@@ -5198,4 +5199,4 @@ export {
5198
5199
  ft as y,
5199
5200
  ct as z
5200
5201
  };
5201
- //# sourceMappingURL=index-27SEkKTJ.js.map
5202
+ //# sourceMappingURL=index-BCgRoF_u.js.map