@linktr.ee/messaging-react 3.31.2-rc-1785926144 → 3.31.2-rc-1785926721
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-Ch6N2pkc.js → Card-CqYFVF6m.js} +2 -2
- package/dist/{Card-Ch6N2pkc.js.map → Card-CqYFVF6m.js.map} +1 -1
- package/dist/index-Ct_Jgy8P.cjs.map +1 -1
- package/dist/{index-BKkCNnea.js → index-ilHx7pIO.js} +11 -16
- package/dist/index-ilHx7pIO.js.map +1 -0
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/components/LinkAttachment/LinkAttachment.stories.tsx +7 -9
- package/src/components/LinkAttachment/LinkAttachment.test.tsx +7 -8
- package/src/components/LinkAttachment/components/_shared/BubbleTail.tsx +4 -4
- package/src/components/LinkAttachment/components/_shared/CardBody.tsx +1 -1
- package/src/components/LinkAttachment/components/_shared/CardShell.tsx +12 -17
- package/src/components/LinkAttachment/components/_shared/hex.ts +3 -5
- package/src/components/LinkAttachment/components/_shared/useChinPalette.ts +20 -32
- package/src/styles.css +9 -11
- package/dist/index-BKkCNnea.js.map +0 -1
|
@@ -2803,7 +2803,7 @@ const vr = ({
|
|
|
2803
2803
|
function ii(e) {
|
|
2804
2804
|
return _e(zs)[e] ?? ri[e];
|
|
2805
2805
|
}
|
|
2806
|
-
const oi = F.lazy(() => import("./Card-qS17qnN0.js")), li = F.lazy(() => import("./Card-
|
|
2806
|
+
const oi = F.lazy(() => import("./Card-qS17qnN0.js")), li = F.lazy(() => import("./Card-CqYFVF6m.js")), ci = () => /* @__PURE__ */ s(
|
|
2807
2807
|
"div",
|
|
2808
2808
|
{
|
|
2809
2809
|
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)]",
|
|
@@ -3143,25 +3143,20 @@ const Ni = {
|
|
|
3143
3143
|
m ? Ai : "block",
|
|
3144
3144
|
// The plain fallback fill, kept underneath the `--accent` derivation: the
|
|
3145
3145
|
// `.messaging-link-card[style*='--accent']` rule in `styles.css` outranks
|
|
3146
|
-
// this single class, so a published accent paints over it
|
|
3147
|
-
//
|
|
3148
|
-
// lands on this sane surface.
|
|
3146
|
+
// this single class, so a published accent paints over it and an unset one
|
|
3147
|
+
// lands on this surface.
|
|
3149
3148
|
//
|
|
3150
|
-
//
|
|
3151
|
-
// Tailwind utilities
|
|
3152
|
-
//
|
|
3153
|
-
//
|
|
3154
|
-
//
|
|
3155
|
-
// on the Arbor preset and has no such colour, so `bg-shade` was silently
|
|
3156
|
-
// dropped, the chin rendered transparent, and the own-message `color: white`
|
|
3157
|
-
// left the title and URL invisible (MES-1388). An arbitrary value is
|
|
3158
|
-
// generated from the class name alone and cannot depend on consumer theme.
|
|
3149
|
+
// Must be an arbitrary value, not a theme token: this package ships no
|
|
3150
|
+
// Tailwind utilities, so consumers generate our classes by scanning
|
|
3151
|
+
// `messaging-react/dist` against their own theme. A theme colour a consumer
|
|
3152
|
+
// lacks compiles to nothing and leaves the chin transparent; an arbitrary
|
|
3153
|
+
// value is generated from the class name alone.
|
|
3159
3154
|
//
|
|
3160
3155
|
// Both values are the plain message bubble's own fill, so a card with no
|
|
3161
3156
|
// usable accent matches the text bubbles around it: `#1e2330` is
|
|
3162
3157
|
// `--str-chat__own-message-bubble-background-color` and `#f1f0ee` is
|
|
3163
|
-
// `--str-chat__message-bubble-background-color
|
|
3164
|
-
//
|
|
3158
|
+
// `--str-chat__message-bubble-background-color`, mirrored by the bubble
|
|
3159
|
+
// tail's own fills in `styles.css`.
|
|
3165
3160
|
o ?? (e === "dark" ? "bg-[#1e2330]" : "bg-[#f1f0ee]"),
|
|
3166
3161
|
// `focus-ring` is a design-system utility from the component-library
|
|
3167
3162
|
// tailwind preset — outline-none + a black 2px focus-visible ring
|
|
@@ -5674,4 +5669,4 @@ export {
|
|
|
5674
5669
|
fs as y,
|
|
5675
5670
|
ut as z
|
|
5676
5671
|
};
|
|
5677
|
-
//# sourceMappingURL=index-
|
|
5672
|
+
//# sourceMappingURL=index-ilHx7pIO.js.map
|