@linktr.ee/messaging-react 3.38.2-rc-1786356402 → 3.38.2
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-CylgDdQD.js → Card-2Ms7lBDO.js} +2 -2
- package/dist/{Card-CylgDdQD.js.map → Card-2Ms7lBDO.js.map} +1 -1
- package/dist/{Card-DS29e_aW.cjs → Card-KwVE3M5j.cjs} +2 -2
- package/dist/{Card-DS29e_aW.cjs.map → Card-KwVE3M5j.cjs.map} +1 -1
- package/dist/{index-22DgIMQi.cjs → index-DzOGH7lG.cjs} +2 -2
- package/dist/index-DzOGH7lG.cjs.map +1 -0
- package/dist/{index-dUqmPdEF.js → index-i03XGFsr.js} +3 -3
- package/dist/index-i03XGFsr.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 +13 -6
- package/dist/index-22DgIMQi.cjs.map +0 -1
- package/dist/index-dUqmPdEF.js.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-DzOGH7lG.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-i03XGFsr.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.2
|
|
3
|
+
"version": "3.38.2",
|
|
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": "2.4.0
|
|
53
|
+
"@linktr.ee/messaging-core": "^2.4.0",
|
|
54
54
|
"@linktr.ee/messaging-taxonomy": "^0.9.0",
|
|
55
55
|
"@phosphor-icons/react": "^2.1.10"
|
|
56
56
|
},
|
|
@@ -293,16 +293,23 @@ const ImageBubbleRow: React.FC<InternalImageRowProps> = ({
|
|
|
293
293
|
// flattens against a caption bubble — `attachment-single-media`
|
|
294
294
|
// 330×250 and `attachment-single-image` 383×290, both `pad2`
|
|
295
295
|
// `cornerRadius: 20` with no stroke. The single card sizes to the
|
|
296
|
-
// fitted media box
|
|
297
|
-
//
|
|
298
|
-
//
|
|
299
|
-
//
|
|
300
|
-
//
|
|
296
|
+
// fitted media box, capped at `min(100%, 313/330px)`: the `100%`
|
|
297
|
+
// keeps it inside the attachment bubble (Stream pins that to 300px;
|
|
298
|
+
// a fixed `max-w-[330px]` overflowed it into the message-list
|
|
299
|
+
// gutter), and the 313/330 ceiling holds in a wider or standalone
|
|
300
|
+
// container so a long caption cannot stretch the card past the
|
|
301
|
+
// design maximum. The media itself is separately capped by
|
|
302
|
+
// `MediaStackGrid`'s `--mes-single-width-cap`; the stacked card is a
|
|
303
|
+
// fixed 383px with `max-w-full` for the same bubble fit.
|
|
301
304
|
// `bordered={false}` because a hairline on top of the 2px frame
|
|
302
305
|
// would read as a third edge and push the card 2px over its
|
|
303
306
|
// measured width.
|
|
304
307
|
bordered={false}
|
|
305
|
-
widthClassName={
|
|
308
|
+
widthClassName={
|
|
309
|
+
isSingle
|
|
310
|
+
? 'w-fit max-w-[min(100%,313px)] sm:max-w-[min(100%,330px)]'
|
|
311
|
+
: 'w-[383px] max-w-full'
|
|
312
|
+
}
|
|
306
313
|
paddingClassName="p-0.5"
|
|
307
314
|
radiusClassName="rounded-[20px]"
|
|
308
315
|
data-testid="image-attachment"
|