@linktr.ee/messaging-react 3.38.0 → 3.38.2-rc-1786356402
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-CiuDrF-d.js → Card-CylgDdQD.js} +2 -2
- package/dist/{Card-CiuDrF-d.js.map → Card-CylgDdQD.js.map} +1 -1
- package/dist/{Card-AWrAZndz.cjs → Card-DS29e_aW.cjs} +2 -2
- package/dist/{Card-AWrAZndz.cjs.map → Card-DS29e_aW.cjs.map} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/{index-ClrAsOSz.cjs → index-22DgIMQi.cjs} +2 -2
- package/dist/index-22DgIMQi.cjs.map +1 -0
- package/dist/{index-BZmVfHbm.js → index-dUqmPdEF.js} +3 -3
- package/dist/index-dUqmPdEF.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/components/MessageAttachment/Image/index.tsx +10 -12
- package/src/styles.css +9 -2
- package/dist/index-BZmVfHbm.js.map +0 -1
- package/dist/index-ClrAsOSz.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-22DgIMQi.cjs");exports.ActionButton=e.ActionButton;exports.Avatar=e.Avatar;exports.ChannelEmptyState=e.ChannelEmptyState;exports.ChannelList=e.ChannelList;exports.ChannelView=e.ChannelView;exports.CustomMessageProvider=e.CustomMessageProvider;exports.FaqList=e.FaqList;exports.FaqListItem=e.FaqListItem;exports.LinkAttachment=e.LinkAttachment;exports.LockedAttachment=e.LockedAttachment;exports.MediaMessage=e.MediaMessage;exports.MessageAttachment=e.MessageAttachment;exports.MessageBubble=e.MessageBubble;exports.MessagingProvider=e.MessagingProvider;exports.MessagingShell=e.MessagingShell;exports.RichCard=e.RichCard;exports.buildCompactMetaLabel=e.buildCompactMetaLabel;exports.formatFileSize=e.formatFileSize;exports.formatRelativeTime=e.formatRelativeTime;exports.getFileExtensionLabel=e.getFileExtensionLabel;exports.getMessageDisplayText=e.getMessageDisplayText;exports.isLinkAttachment=e.isLinkAttachment;exports.isUuidLike=e.isUuidLike;exports.messageAttachmentGroupPositionFromStream=e.bubbleGroupPositionFromStream;exports.normalizeLanguageCode=e.normalizeLanguageCode;exports.optimizeMessagingAttachmentUrl=e.optimizeMessagingAttachmentUrl;exports.resolveConversationParticipant=e.resolveConversationParticipant;exports.resolveLinkAttachment=e.resolveLinkAttachment;exports.resolveMediaFromMessage=e.resolveMediaFromMessage;exports.resolveParticipantDisplayName=e.resolveParticipantDisplayName;exports.useComposerLocked=e.useComposerLocked;exports.useCustomMessage=e.useCustomMessage;exports.useMessaging=e.useMessaging;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, b as t, C as i, c as n, d as o, e as m, F as r, f as l, L as g, h as c, M, i as h, j as L, k as u, l as d, R as p, m as C, n as v, p as A, q as k, s as F, t as b, u as P, v as f, w as x, o as y, x as z, y as S, z as q, B, D, E, G as R } from "./index-
|
|
1
|
+
import { a as e, b as t, C as i, c as n, d as o, e as m, F as r, f as l, L as g, h as c, M, i as h, j as L, k as u, l as d, R as p, m as C, n as v, p as A, q as k, s as F, t as b, u as P, v as f, w as x, o as y, x as z, y as S, z as q, B, D, E, G as R } from "./index-dUqmPdEF.js";
|
|
2
2
|
export {
|
|
3
3
|
e as ActionButton,
|
|
4
4
|
t as Avatar,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linktr.ee/messaging-react",
|
|
3
|
-
"version": "3.38.
|
|
3
|
+
"version": "3.38.2-rc-1786356402",
|
|
4
4
|
"description": "React messaging components built on messaging-core for web applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"chromatic:local": "yarn storybook:build && chromatic"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@linktr.ee/messaging-core": "
|
|
53
|
+
"@linktr.ee/messaging-core": "2.4.0-rc-1786356402",
|
|
54
54
|
"@linktr.ee/messaging-taxonomy": "^0.9.0",
|
|
55
55
|
"@phosphor-icons/react": "^2.1.10"
|
|
56
56
|
},
|
|
@@ -292,19 +292,17 @@ const ImageBubbleRow: React.FC<InternalImageRowProps> = ({
|
|
|
292
292
|
// for a 2px frame around the media, at a uniform r20 that never
|
|
293
293
|
// flattens against a caption bubble — `attachment-single-media`
|
|
294
294
|
// 330×250 and `attachment-single-image` 383×290, both `pad2`
|
|
295
|
-
// `cornerRadius: 20` with no stroke. The single card sizes to
|
|
296
|
-
//
|
|
297
|
-
//
|
|
298
|
-
//
|
|
299
|
-
//
|
|
300
|
-
//
|
|
301
|
-
//
|
|
295
|
+
// `cornerRadius: 20` with no stroke. The single card sizes to the
|
|
296
|
+
// fitted media box; its 330px design ceiling lives in
|
|
297
|
+
// `MediaStackGrid`'s `--mes-single-width-cap`, so both single and
|
|
298
|
+
// stacked take `max-w-full` here and never exceed the attachment
|
|
299
|
+
// bubble — Stream pins that to 300px, and a fixed `max-w-[330px]`
|
|
300
|
+
// shell overflowed it into the message-list gutter.
|
|
301
|
+
// `bordered={false}` because a hairline on top of the 2px frame
|
|
302
|
+
// would read as a third edge and push the card 2px over its
|
|
303
|
+
// measured width.
|
|
302
304
|
bordered={false}
|
|
303
|
-
widthClassName={
|
|
304
|
-
isSingle
|
|
305
|
-
? 'w-fit max-w-[313px] sm:max-w-[330px]'
|
|
306
|
-
: 'w-[383px] max-w-full'
|
|
307
|
-
}
|
|
305
|
+
widthClassName={isSingle ? 'w-fit max-w-full' : 'w-[383px] max-w-full'}
|
|
308
306
|
paddingClassName="p-0.5"
|
|
309
307
|
radiusClassName="rounded-[20px]"
|
|
310
308
|
data-testid="image-attachment"
|
package/src/styles.css
CHANGED
|
@@ -818,7 +818,14 @@
|
|
|
818
818
|
the lightness to this side's `--surface-l` stop. Only paints where the browser
|
|
819
819
|
resolves relative colour syntax and an accent is set — otherwise the card's
|
|
820
820
|
`bg-[…]` fallback fill shows through. The stops clear 4.5:1 against each side's
|
|
821
|
-
ink at every hue.
|
|
821
|
+
ink at every hue.
|
|
822
|
+
|
|
823
|
+
`[data-variant]` is repeated in the accent selector purely for specificity:
|
|
824
|
+
the `bg-[…]` fallback is a consumer-generated Tailwind utility, and a consumer
|
|
825
|
+
that scopes its utilities under a wrapper class (e.g. admin's `.mes`) emits it
|
|
826
|
+
as `.mes .bg-[…]` at (0,2,0) — tying a bare `.messaging-link-card[style*=…]`
|
|
827
|
+
and, loading later, winning. The extra attribute lifts this rule to (0,3,0) so
|
|
828
|
+
the accent reliably outranks one scoping ancestor. */
|
|
822
829
|
.messaging-link-card[data-variant='dark'] {
|
|
823
830
|
--surface-l: 0.3;
|
|
824
831
|
}
|
|
@@ -827,7 +834,7 @@
|
|
|
827
834
|
}
|
|
828
835
|
|
|
829
836
|
@supports (background: oklch(from red l c h)) {
|
|
830
|
-
.messaging-link-card[style*='--accent'] {
|
|
837
|
+
.messaging-link-card[style*='--accent'][data-variant] {
|
|
831
838
|
background: oklch(from var(--accent) var(--surface-l) c h);
|
|
832
839
|
}
|
|
833
840
|
}
|