@linktr.ee/messaging-react 3.38.0 → 3.38.2-rc-1786356681

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 CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-ClrAsOSz.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;
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-BZmVfHbm.js";
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.0",
3
+ "version": "3.38.2-rc-1786356681",
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-rc-1786356681",
54
54
  "@linktr.ee/messaging-taxonomy": "^0.9.0",
55
55
  "@phosphor-icons/react": "^2.1.10"
56
56
  },
@@ -292,17 +292,22 @@ 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
- // the fitted media box (capped so a long in-bubble caption can
297
- // not stretch it past the 330px design maximum); the stacked
298
- // card is a fixed 383px, capped so it cannot overflow a narrow
299
- // viewport. `bordered={false}` because a hairline on top of the
300
- // 2px frame would read as a third edge and push the card 2px
301
- // over its measured width.
295
+ // `cornerRadius: 20` with no stroke. The single card sizes to the
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.
304
+ // `bordered={false}` because a hairline on top of the 2px frame
305
+ // would read as a third edge and push the card 2px over its
306
+ // measured width.
302
307
  bordered={false}
303
308
  widthClassName={
304
309
  isSingle
305
- ? 'w-fit max-w-[313px] sm:max-w-[330px]'
310
+ ? 'w-fit max-w-[min(100%,313px)] sm:max-w-[min(100%,330px)]'
306
311
  : 'w-[383px] max-w-full'
307
312
  }
308
313
  paddingClassName="p-0.5"
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
  }