@linktr.ee/messaging-react 4.3.1-rc-1787557003 → 4.3.1-rc-1787558724
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-CB9OpgaG.cjs → Card-DYAFJ-5_.cjs} +2 -2
- package/dist/{Card-CB9OpgaG.cjs.map → Card-DYAFJ-5_.cjs.map} +1 -1
- package/dist/{Card-F2Xuo1QP.js → Card-m1XS9XI5.js} +2 -2
- package/dist/{Card-F2Xuo1QP.js.map → Card-m1XS9XI5.js.map} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/{index-B5ueZK6v.cjs → index-CRi-q06D.cjs} +2 -2
- package/dist/index-CRi-q06D.cjs.map +1 -0
- package/dist/{index-CPgytAmz.js → index-p4ZqXlB1.js} +7 -8
- package/dist/index-p4ZqXlB1.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/components/LinkAttachment/components/_shared/CardShell.tsx +10 -10
- package/src/styles.css +2 -1
- package/dist/index-B5ueZK6v.cjs.map +0 -1
- package/dist/index-CPgytAmz.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-CRi-q06D.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.MessageAttachment=e.MessageAttachment;exports.MessageBubble=e.MessageBubble;exports.MessagingLoggerProvider=e.MessagingLoggerProvider;exports.MessagingProvider=e.MessagingProvider;exports.MessagingShell=e.MessagingShell;exports.RichCard=e.RichCard;exports.TipMessage=e.TipMessage;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.isTipMessage=e.isTipMessage;exports.isUuidLike=e.isUuidLike;exports.messageAttachmentGroupPositionFromStream=e.bubbleGroupPositionFromStream;exports.normalizeLanguageCode=e.normalizeLanguageCode;exports.optimizeMessagingAttachmentUrl=e.optimizeMessagingAttachmentUrl;exports.resolveConversationParticipant=e.resolveConversationParticipant;exports.resolveParticipantDisplayName=e.resolveParticipantDisplayName;exports.useComposerLocked=e.useComposerLocked;exports.useCustomMessage=e.useCustomMessage;exports.useMessaging=e.useMessaging;exports.useMessagingLogger=e.useMessagingLogger;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as t, C as i, b as n, c as o, d as g, F as r, e as m, L as l, f as M, M as c, h as L, i as p, j as u, k as h, R as C, T as d, l as v, m as A, n as b, p as k, q as F, s as P, t as T, u as f, v as x, w as y, o as z, x as S, y as q, z as B, B as D, D as E, E as R } from "./index-
|
|
1
|
+
import { A as e, a as t, C as i, b as n, c as o, d as g, F as r, e as m, L as l, f as M, M as c, h as L, i as p, j as u, k as h, R as C, T as d, l as v, m as A, n as b, p as k, q as F, s as P, t as T, u as f, v as x, w as y, o as z, x as S, y as q, z as B, B as D, D as E, E as R } from "./index-p4ZqXlB1.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": "4.3.1-rc-
|
|
3
|
+
"version": "4.3.1-rc-1787558724",
|
|
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.5.0-rc-
|
|
53
|
+
"@linktr.ee/messaging-core": "2.5.0-rc-1787558724",
|
|
54
54
|
"@linktr.ee/messaging-taxonomy": "^0.10.0",
|
|
55
55
|
"@phosphor-icons/react": "^2.1.10"
|
|
56
56
|
},
|
|
@@ -65,25 +65,25 @@ export interface CardShellProps {
|
|
|
65
65
|
export const LOADING_LABEL = 'Loading link preview'
|
|
66
66
|
|
|
67
67
|
const SHELL_CLASS = classNames(
|
|
68
|
-
//
|
|
69
|
-
// composer (the official channel) sets `--lt-msg-card-width`
|
|
70
|
-
//
|
|
71
|
-
//
|
|
72
|
-
|
|
73
|
-
'relative w-[var(--lt-msg-card-width,290px)] max-w-full select-none overflow-hidden',
|
|
68
|
+
// Fluid width, capped by a channel-scoped token: default 395px. A read-only
|
|
69
|
+
// surface with no composer (the official channel) sets `--lt-msg-card-width`
|
|
70
|
+
// on its root (see ChannelView). `w-full` fills the content column up to that
|
|
71
|
+
// cap so a card never overflows a narrower viewport — it shrinks to fit.
|
|
72
|
+
'relative max-w-[var(--lt-msg-card-width,395px)] w-full select-none overflow-hidden',
|
|
74
73
|
// 20px corners — no token exists for it in the component-library preset,
|
|
75
74
|
// whose radius scale is sm .5rem / md 1rem / lg 1.5rem / xl 4rem.
|
|
76
75
|
'rounded-[20px]'
|
|
77
76
|
)
|
|
78
77
|
|
|
79
|
-
// The
|
|
78
|
+
// The 250px height lock: the chin takes the height its 1-2 line title needs
|
|
80
79
|
// (82px at two lines, 62px at one) and the hero absorbs the remainder.
|
|
81
80
|
const FIXED_HEIGHT_CLASS = 'flex h-[250px] flex-col'
|
|
82
81
|
|
|
83
82
|
/**
|
|
84
|
-
* Outer chrome for every `LinkAttachment.*` card. Matches the
|
|
85
|
-
*
|
|
86
|
-
* composer and sent instances in Figma.
|
|
83
|
+
* Outer chrome for every `LinkAttachment.*` card. Matches the 395px-capped
|
|
84
|
+
* fluid width, 20px corner radius, and borderless / shadowless treatment of
|
|
85
|
+
* the composer and sent instances in Figma. Featured cards still lock to a
|
|
86
|
+
* 250px box.
|
|
87
87
|
*/
|
|
88
88
|
const CardShell: React.FC<CardShellProps> = ({
|
|
89
89
|
variant,
|
package/src/styles.css
CHANGED
|
@@ -407,7 +407,8 @@
|
|
|
407
407
|
(MES-1278). Scoped to messages with a single `.str-chat__message-bubble`
|
|
408
408
|
that carries `.str-chat__message-text` — other media still use fixed
|
|
409
409
|
widths and need to go fluid before the same spacing can apply generally. */
|
|
410
|
-
&:has(.str-chat__message-bubble:only-child .str-chat__message-text)
|
|
410
|
+
&:has(.str-chat__message-bubble:only-child .str-chat__message-text),
|
|
411
|
+
&:has(.messaging-link-card) {
|
|
411
412
|
padding-inline-end: calc(100% / 6);
|
|
412
413
|
}
|
|
413
414
|
}
|