@linktr.ee/messaging-react 4.4.1-rc-1787616600 → 4.4.1-rc-1787626707
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +20 -29
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/MessageBubble/MessageBubble.stories.tsx +2 -4
- package/src/components/MessageBubble/MessageBubble.test.tsx +10 -21
- package/src/components/MessageBubble/components/_shared/BubbleShell.tsx +16 -33
- package/src/components/MessageBubble/types.ts +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1361,10 +1361,10 @@ export declare interface MessageBubbleBaseProps {
|
|
|
1361
1361
|
*/
|
|
1362
1362
|
tail?: boolean;
|
|
1363
1363
|
/**
|
|
1364
|
-
* Extra classes on the
|
|
1365
|
-
*
|
|
1366
|
-
*
|
|
1367
|
-
*
|
|
1364
|
+
* Extra classes on the outer bubble. Width is caller-controlled: pass
|
|
1365
|
+
* `w-fit` to hug the text (chat/preview) or `w-full` to fill the container
|
|
1366
|
+
* (card-like list rows). With no width class the bubble fills its
|
|
1367
|
+
* container. Also where you'd set `max-w-[…]`.
|
|
1368
1368
|
*/
|
|
1369
1369
|
className?: string;
|
|
1370
1370
|
}
|
package/dist/index.js
CHANGED
|
@@ -3848,35 +3848,26 @@ var aa = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.02em]", oa
|
|
|
3848
3848
|
backgroundColor: "var(--str-chat__message-bubble-background-color, #f1f0ee)",
|
|
3849
3849
|
color: "var(--str-chat__message-bubble-color, #000000)"
|
|
3850
3850
|
}
|
|
3851
|
-
}, Ta = ({ variant: e, text: t, tail: n = !0, header: r, className: i }) => /* @__PURE__ */
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
children:
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
/* @__PURE__ */ U("p", {
|
|
3872
|
-
className: "m-0 whitespace-pre-wrap break-words hyphens-manual",
|
|
3873
|
-
children: t
|
|
3874
|
-
}),
|
|
3875
|
-
n && /* @__PURE__ */ U(Ca, { variant: e })
|
|
3876
|
-
]
|
|
3877
|
-
})
|
|
3878
|
-
})
|
|
3879
|
-
})
|
|
3851
|
+
}, Ta = ({ variant: e, text: t, tail: n = !0, header: r, className: i }) => /* @__PURE__ */ W("div", {
|
|
3852
|
+
"data-dd-privacy": "mask",
|
|
3853
|
+
className: J("relative px-4 py-3", "text-[0.875rem] leading-[1.3125rem] tracking-[0.14px]", i),
|
|
3854
|
+
style: {
|
|
3855
|
+
...wa[e],
|
|
3856
|
+
borderRadius: "var(--str-chat__message-bubble-border-radius, 1.5rem)",
|
|
3857
|
+
isolation: "isolate"
|
|
3858
|
+
},
|
|
3859
|
+
children: [
|
|
3860
|
+
r != null && /* @__PURE__ */ U("div", {
|
|
3861
|
+
className: "mb-1 font-medium",
|
|
3862
|
+
"data-testid": "message-bubble-header",
|
|
3863
|
+
children: r
|
|
3864
|
+
}),
|
|
3865
|
+
/* @__PURE__ */ U("p", {
|
|
3866
|
+
className: "m-0 whitespace-pre-wrap break-words hyphens-manual",
|
|
3867
|
+
children: t
|
|
3868
|
+
}),
|
|
3869
|
+
n && /* @__PURE__ */ U(Ca, { variant: e })
|
|
3870
|
+
]
|
|
3880
3871
|
}), Ea = {
|
|
3881
3872
|
Sent: ({ text: e, tail: t, className: n }) => /* @__PURE__ */ U(Ta, {
|
|
3882
3873
|
variant: "sent",
|