@linktr.ee/messaging-react 3.5.6-rc-1783060033 → 3.5.6-rc-1783097662
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-DYe76Xh3.cjs → Card-4eHS-HQB.cjs} +2 -2
- package/dist/{Card-DYe76Xh3.cjs.map → Card-4eHS-HQB.cjs.map} +1 -1
- package/dist/{Card-CAJnEq1K.cjs → Card-Bxu71IQM.cjs} +2 -2
- package/dist/{Card-CAJnEq1K.cjs.map → Card-Bxu71IQM.cjs.map} +1 -1
- package/dist/{Card-D_N5hclc.cjs → Card-By-eDX0U.cjs} +2 -2
- package/dist/{Card-D_N5hclc.cjs.map → Card-By-eDX0U.cjs.map} +1 -1
- package/dist/{Card-rblNjC58.js → Card-CmLNgIdO.js} +2 -2
- package/dist/{Card-rblNjC58.js.map → Card-CmLNgIdO.js.map} +1 -1
- package/dist/{Card-B5lE5A2D.js → Card-XSDNvOZf.js} +3 -3
- package/dist/{Card-B5lE5A2D.js.map → Card-XSDNvOZf.js.map} +1 -1
- package/dist/{Card-MBp3Wg6r.js → Card-mDB7sZiu.js} +2 -2
- package/dist/{Card-MBp3Wg6r.js.map → Card-mDB7sZiu.js.map} +1 -1
- package/dist/{LockedThumbnail-BqyPPVrO.js → LockedThumbnail-C44Wkle9.js} +3 -3
- package/dist/{LockedThumbnail-BqyPPVrO.js.map → LockedThumbnail-C44Wkle9.js.map} +1 -1
- package/dist/{LockedThumbnail-C7PpVZQ0.cjs → LockedThumbnail-CWhzO3wx.cjs} +2 -2
- package/dist/{LockedThumbnail-C7PpVZQ0.cjs.map → LockedThumbnail-CWhzO3wx.cjs.map} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/{index-BXzwYXLT.js → index-BRV621wo.js} +55 -67
- package/dist/index-BRV621wo.js.map +1 -0
- package/dist/index-DBVgTHrA.cjs +2 -0
- package/dist/index-DBVgTHrA.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/components/AttachmentCard/index.tsx +1 -1
- package/src/components/CustomLinkPreviewList/CustomLinkPreviewCard.tsx +1 -1
- package/src/components/CustomLinkPreviewList/index.tsx +6 -12
- package/src/components/CustomMessage/CustomMessage.stories.tsx +27 -0
- package/src/components/CustomMessage/MessageAttachmentConversations.stories.tsx +2 -2
- package/src/components/CustomMessage/MessageTag.stories.tsx +2 -2
- package/src/components/CustomMessageInput/index.tsx +4 -12
- package/src/components/LinkAttachment/components/_shared/CardShell.tsx +1 -1
- package/src/components/LockedAttachment/components/_shared/LockedCardShell.tsx +1 -1
- package/src/components/MediaMessage/index.tsx +8 -1
- package/src/components/MessageAttachment/_shared/Bubble.tsx +7 -7
- package/src/components/MessageAttachment/_shared/CompactDocumentRow.tsx +3 -3
- package/src/styles.css +104 -9
- package/dist/index-BXzwYXLT.js.map +0 -1
- package/dist/index-BflWZq0e.cjs +0 -2
- package/dist/index-BflWZq0e.cjs.map +0 -1
|
@@ -645,7 +645,7 @@ function en({
|
|
|
645
645
|
const s = e == null ? void 0 : e.text, a = Js(t);
|
|
646
646
|
return a ? ((r = e == null ? void 0 : e.i18n) == null ? void 0 : r[`${a}_text`]) ?? s : s;
|
|
647
647
|
}
|
|
648
|
-
const Zs = $.lazy(() => import("./Card-
|
|
648
|
+
const Zs = $.lazy(() => import("./Card-CmLNgIdO.js")), Qs = $.lazy(() => import("./Card-mDB7sZiu.js")), ea = $.lazy(() => import("./Card-XSDNvOZf.js")), Qe = () => /* @__PURE__ */ n(
|
|
649
649
|
"div",
|
|
650
650
|
{
|
|
651
651
|
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)]",
|
|
@@ -1046,7 +1046,7 @@ const la = (e) => {
|
|
|
1046
1046
|
"data-testid": m,
|
|
1047
1047
|
className: C(
|
|
1048
1048
|
"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)]",
|
|
1049
|
-
f ? "bg-[#
|
|
1049
|
+
f ? "bg-[#1e2330]" : "bg-white"
|
|
1050
1050
|
),
|
|
1051
1051
|
children: [
|
|
1052
1052
|
d ? /* @__PURE__ */ n("div", { className: "pointer-events-auto absolute left-3 top-3 z-50", children: d }) : null,
|
|
@@ -1094,7 +1094,7 @@ function on(e) {
|
|
|
1094
1094
|
return e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
|
|
1095
1095
|
}
|
|
1096
1096
|
function et(e) {
|
|
1097
|
-
return `w-[280px] select-none overflow-hidden rounded-[24px] ${e ? "bg-[#
|
|
1097
|
+
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)]`;
|
|
1098
1098
|
}
|
|
1099
1099
|
function ua(e) {
|
|
1100
1100
|
return e ? "bg-white/10" : "bg-black/5";
|
|
@@ -1283,6 +1283,7 @@ const cn = ({
|
|
|
1283
1283
|
"div",
|
|
1284
1284
|
{
|
|
1285
1285
|
className: "str-chat__message-bubble",
|
|
1286
|
+
"data-attachment-bubble": "true",
|
|
1286
1287
|
style: { padding: 0, borderRadius: 0, overflow: "visible", background: "transparent" },
|
|
1287
1288
|
children: s ? /* @__PURE__ */ n("div", { className: et(t), children: /* @__PURE__ */ n(tt, { attachment: s, isMyMessage: t }) }) : t ? /* @__PURE__ */ n(cn, { ...a }) : /* @__PURE__ */ n(dn, { ...a })
|
|
1288
1289
|
}
|
|
@@ -1699,7 +1700,7 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1699
1700
|
href: s,
|
|
1700
1701
|
target: "_blank",
|
|
1701
1702
|
rel: "noopener noreferrer",
|
|
1702
|
-
className: "relative block w-full rounded-[24px] bg-[#
|
|
1703
|
+
className: "relative block w-full rounded-[24px] bg-[#1e2330] p-2 no-underline transition-opacity hover:opacity-90",
|
|
1703
1704
|
children: [
|
|
1704
1705
|
r && /* @__PURE__ */ n(
|
|
1705
1706
|
"img",
|
|
@@ -1739,17 +1740,14 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1739
1740
|
), s = (r) => {
|
|
1740
1741
|
e.dismissPreview(r);
|
|
1741
1742
|
};
|
|
1742
|
-
return t.length > 0 ? (
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
// fixed-height hero would spill out of the collapsed card box.
|
|
1751
|
-
/* @__PURE__ */ n("div", { className: "messaging-link-preview-list flex min-h-0 flex-col items-stretch w-full gap-2 mb-4 overflow-y-auto overscroll-contain", children: t.map((r) => /* @__PURE__ */ n("div", { className: "w-full shrink-0", children: /* @__PURE__ */ n(Oa, { link: r, onDismiss: s }) }, r.og_scrape_url)) })
|
|
1752
|
-
) : null;
|
|
1743
|
+
return t.length > 0 ? /* @__PURE__ */ n("div", { className: "flex flex-col items-stretch w-full gap-2 mb-4", children: t.map((r) => /* @__PURE__ */ n(
|
|
1744
|
+
Oa,
|
|
1745
|
+
{
|
|
1746
|
+
link: r,
|
|
1747
|
+
onDismiss: s
|
|
1748
|
+
},
|
|
1749
|
+
r.og_scrape_url
|
|
1750
|
+
)) }) : null;
|
|
1753
1751
|
}, at = $.createContext(!1), Ai = () => ye(at), $a = ({ sendMessage: e, disabled: t, ...s }) => /* @__PURE__ */ n(
|
|
1754
1752
|
"button",
|
|
1755
1753
|
{
|
|
@@ -1765,51 +1763,41 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1765
1763
|
SendButton: r = $a,
|
|
1766
1764
|
AttachmentPreviewList: i = as
|
|
1767
1765
|
} = Ht("CustomMessageInput");
|
|
1768
|
-
return (
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
className: "str-chat__send-button mt-auto flex justify-center items-center flex-shrink-0 rounded-full size-8 bg-[#121110] disabled:bg-[#F1F0EE] disabled:text-black/20 text-white focus-ring",
|
|
1804
|
-
"data-testid": "send-button",
|
|
1805
|
-
disabled: a,
|
|
1806
|
-
type: "button"
|
|
1807
|
-
}
|
|
1808
|
-
)
|
|
1809
|
-
] })
|
|
1810
|
-
]
|
|
1811
|
-
}
|
|
1812
|
-
)
|
|
1766
|
+
return /* @__PURE__ */ h(
|
|
1767
|
+
"div",
|
|
1768
|
+
{
|
|
1769
|
+
className: "central-container flex flex-col gap-2 min-w-0 w-full p-2 bg-white rounded-[1.5rem] shadow-[0_4px_16px_0_rgba(0,0,0,0.08),0_1px_2px_0_rgba(0,0,0,0.04),0_0_0_1px_rgba(0,0,0,0.04)]",
|
|
1770
|
+
"data-dd-privacy": "mask",
|
|
1771
|
+
children: [
|
|
1772
|
+
/* @__PURE__ */ n(rs, {}),
|
|
1773
|
+
/* @__PURE__ */ n(Fa, {}),
|
|
1774
|
+
/* @__PURE__ */ n(i, {}),
|
|
1775
|
+
/* @__PURE__ */ h("div", { className: "flex", children: [
|
|
1776
|
+
/* @__PURE__ */ n("div", { className: "w-full ml-2 mr-4 self-center leading-[0]", children: /* @__PURE__ */ n(
|
|
1777
|
+
is,
|
|
1778
|
+
{
|
|
1779
|
+
"aria-disabled": e || void 0,
|
|
1780
|
+
className: "w-full resize-none outline-none leading-5 placeholder:text-black/30 text-sm",
|
|
1781
|
+
autoFocus: !e,
|
|
1782
|
+
maxRows: 4,
|
|
1783
|
+
readOnly: e,
|
|
1784
|
+
tabIndex: e ? -1 : void 0
|
|
1785
|
+
}
|
|
1786
|
+
) }),
|
|
1787
|
+
/* @__PURE__ */ n(
|
|
1788
|
+
r,
|
|
1789
|
+
{
|
|
1790
|
+
sendMessage: t,
|
|
1791
|
+
"aria-label": "Send",
|
|
1792
|
+
className: "str-chat__send-button mt-auto flex justify-center items-center flex-shrink-0 rounded-full size-8 bg-[#121110] disabled:bg-[#F1F0EE] disabled:text-black/20 text-white focus-ring",
|
|
1793
|
+
"data-testid": "send-button",
|
|
1794
|
+
disabled: a,
|
|
1795
|
+
type: "button"
|
|
1796
|
+
}
|
|
1797
|
+
)
|
|
1798
|
+
] })
|
|
1799
|
+
]
|
|
1800
|
+
}
|
|
1813
1801
|
);
|
|
1814
1802
|
}, ja = ({
|
|
1815
1803
|
renderActions: e,
|
|
@@ -1823,13 +1811,13 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1823
1811
|
return s ? /* @__PURE__ */ h(se, { children: [
|
|
1824
1812
|
/* @__PURE__ */ n("div", { className: "messaging-composer-locked-panel flex w-full flex-col items-center justify-center gap-3 px-6 py-4", children: a ? /* @__PURE__ */ n("p", { className: "max-w-[345px] text-center text-xs font-normal leading-[1.3] tracking-[0.12px] text-black/40", children: a }) : null }),
|
|
1825
1813
|
t == null ? void 0 : t()
|
|
1826
|
-
] }) : /* @__PURE__ */ h("div", { className: "flex
|
|
1814
|
+
] }) : /* @__PURE__ */ h("div", { className: "flex flex-col gap-4 p-4", children: [
|
|
1827
1815
|
/* @__PURE__ */ h(
|
|
1828
1816
|
"div",
|
|
1829
1817
|
{
|
|
1830
1818
|
inert: o ? "" : void 0,
|
|
1831
1819
|
"aria-disabled": o || void 0,
|
|
1832
|
-
className: "message-input flex
|
|
1820
|
+
className: "message-input flex items-end gap-4 aria-disabled:opacity-40",
|
|
1833
1821
|
children: [
|
|
1834
1822
|
e && /* @__PURE__ */ n("div", { className: "flex h-12 shrink-0 items-center justify-center", children: e() }),
|
|
1835
1823
|
/* @__PURE__ */ n(at.Provider, { value: o, children: /* @__PURE__ */ n(ts, { Input: r ?? Ba }) })
|
|
@@ -3125,7 +3113,7 @@ const hr = {
|
|
|
3125
3113
|
}) => {
|
|
3126
3114
|
const u = s != null || a != null, g = C(
|
|
3127
3115
|
vr,
|
|
3128
|
-
l ?? (e === "dark" ? "bg-[#
|
|
3116
|
+
l ?? (e === "dark" ? "bg-[#1e2330]" : "bg-white"),
|
|
3129
3117
|
// `focus-ring` is a design-system utility from the component-library
|
|
3130
3118
|
// tailwind preset — outline-none + a black 2px focus-visible ring
|
|
3131
3119
|
// with offset, so keyboard users can see the focused card.
|
|
@@ -3428,11 +3416,11 @@ const hr = {
|
|
|
3428
3416
|
Sent: yr,
|
|
3429
3417
|
Received: _r
|
|
3430
3418
|
}, Cr = {
|
|
3431
|
-
dark: "bg-[#
|
|
3432
|
-
light: "bg-[#
|
|
3419
|
+
dark: "bg-[#1e2330]",
|
|
3420
|
+
light: "bg-[#f2f1ef]"
|
|
3433
3421
|
}, kr = {
|
|
3434
3422
|
dark: "text-white",
|
|
3435
|
-
light: "text-[#
|
|
3423
|
+
light: "text-[#000000]"
|
|
3436
3424
|
}, Er = {
|
|
3437
3425
|
dark: "border-white/[0.08]",
|
|
3438
3426
|
light: "border-black/[0.08]"
|
|
@@ -4684,4 +4672,4 @@ export {
|
|
|
4684
4672
|
st as y,
|
|
4685
4673
|
Zt as z
|
|
4686
4674
|
};
|
|
4687
|
-
//# sourceMappingURL=index-
|
|
4675
|
+
//# sourceMappingURL=index-BRV621wo.js.map
|