@linktr.ee/messaging-react 4.0.2 → 4.0.3-rc-1786431808
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-Uf-xzlU1.cjs → Card-BsuzLLto.cjs} +2 -2
- package/dist/{Card-Uf-xzlU1.cjs.map → Card-BsuzLLto.cjs.map} +1 -1
- package/dist/{Card-CTyW9Kgf.js → Card-Bt1ZWSDt.js} +2 -2
- package/dist/{Card-CTyW9Kgf.js.map → Card-Bt1ZWSDt.js.map} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/index-CySvYnYr.cjs +3 -0
- package/dist/index-CySvYnYr.cjs.map +1 -0
- package/dist/{index-BMcKJFQs.js → index-wbdGLZCu.js} +4 -4
- package/dist/index-wbdGLZCu.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/components/ChannelHeader.tsx +7 -5
- package/src/styles.css +20 -0
- package/dist/index-BMcKJFQs.js.map +0 -1
- package/dist/index-JMYJWHTI.cjs +0 -3
- package/dist/index-JMYJWHTI.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-CySvYnYr.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-wbdGLZCu.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.0.
|
|
3
|
+
"version": "4.0.3-rc-1786431808",
|
|
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-1786431808",
|
|
54
54
|
"@linktr.ee/messaging-taxonomy": "^0.10.0",
|
|
55
55
|
"@phosphor-icons/react": "^2.1.10"
|
|
56
56
|
},
|
|
@@ -135,11 +135,13 @@ const ChannelHeader: React.FC<ChannelHeaderProps> = ({
|
|
|
135
135
|
</span>
|
|
136
136
|
)}
|
|
137
137
|
{showStarBadge && (
|
|
138
|
-
<span
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
138
|
+
<span className="messaging-header-star-badge flex overflow-hidden">
|
|
139
|
+
<span
|
|
140
|
+
aria-label="Starred conversation"
|
|
141
|
+
className="flex size-4 shrink-0 items-center justify-center rounded-full bg-[#FFD60A] text-white"
|
|
142
|
+
>
|
|
143
|
+
<StarIcon className="size-2.5" weight="fill" />
|
|
144
|
+
</span>
|
|
143
145
|
</span>
|
|
144
146
|
)}
|
|
145
147
|
{onParticipantNameClick && (
|
package/src/styles.css
CHANGED
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
@import 'stream-chat-react/dist/css/v2/index.css';
|
|
49
49
|
|
|
50
50
|
.str-chat {
|
|
51
|
+
interpolate-size: allow-keywords;
|
|
52
|
+
|
|
51
53
|
/* Inherit the host's font instead of stream-chat-react's hardcoded system stack.
|
|
52
54
|
In admin (federation host) this resolves to Link Sans; on linktr.ee profile
|
|
53
55
|
pages it resolves to the creator's profile font. */
|
|
@@ -61,6 +63,24 @@
|
|
|
61
63
|
--str-chat__own-message-bubble-color: #fff;
|
|
62
64
|
}
|
|
63
65
|
|
|
66
|
+
/* Channel-header starred badge: grow the name pill open when the star appears.
|
|
67
|
+
@starting-style animates width 0 → auto on insertion (enter only — unstar
|
|
68
|
+
removes the node, which snaps). Chrome/Edge 129+; elsewhere it just appears. */
|
|
69
|
+
.messaging-header-star-badge {
|
|
70
|
+
width: calc-size(auto, size);
|
|
71
|
+
transition: width 250ms;
|
|
72
|
+
}
|
|
73
|
+
@starting-style {
|
|
74
|
+
.messaging-header-star-badge {
|
|
75
|
+
width: 0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
@media (prefers-reduced-motion: reduce) {
|
|
79
|
+
.messaging-header-star-badge {
|
|
80
|
+
transition: none;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
64
84
|
.messaging-channel-message-list--floating .str-chat__message-list-scroll {
|
|
65
85
|
padding-bottom: calc(var(--messaging-composer-height, 9rem) + 1.25rem);
|
|
66
86
|
}
|