@linktr.ee/messaging-react 3.7.0-rc-1783338119 → 3.7.0
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-Dm-jfetA.js → Card-BB_Vd9Gj.js} +3 -3
- package/dist/{Card-Dm-jfetA.js.map → Card-BB_Vd9Gj.js.map} +1 -1
- package/dist/{Card-BDzTCHou.cjs → Card-BbYTw4R8.cjs} +2 -2
- package/dist/{Card-BDzTCHou.cjs.map → Card-BbYTw4R8.cjs.map} +1 -1
- package/dist/{Card-DvZ0INEN.cjs → Card-CeWvHxmQ.cjs} +2 -2
- package/dist/{Card-DvZ0INEN.cjs.map → Card-CeWvHxmQ.cjs.map} +1 -1
- package/dist/{Card-VcM0VofY.js → Card-DJm5sWmC.js} +2 -2
- package/dist/{Card-VcM0VofY.js.map → Card-DJm5sWmC.js.map} +1 -1
- package/dist/{Card-B34_3dxf.cjs → Card-DOMWuevV.cjs} +2 -2
- package/dist/{Card-B34_3dxf.cjs.map → Card-DOMWuevV.cjs.map} +1 -1
- package/dist/{Card-BJ1ttS3d.js → Card-b_mGrfMp.js} +2 -2
- package/dist/{Card-BJ1ttS3d.js.map → Card-b_mGrfMp.js.map} +1 -1
- package/dist/{LockedThumbnail-DYz11nhd.cjs → LockedThumbnail-AH9EZwQ1.cjs} +2 -2
- package/dist/{LockedThumbnail-DYz11nhd.cjs.map → LockedThumbnail-AH9EZwQ1.cjs.map} +1 -1
- package/dist/{LockedThumbnail-BDf9eBov.js → LockedThumbnail-C0LOfIvF.js} +2 -2
- package/dist/{LockedThumbnail-BDf9eBov.js.map → LockedThumbnail-C0LOfIvF.js.map} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/{index-27SEkKTJ.js → index-C-2O97qw.js} +761 -783
- package/dist/index-C-2O97qw.js.map +1 -0
- package/dist/index-DdN7z-9Y.cjs +2 -0
- package/dist/index-DdN7z-9Y.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/components/CustomMessage/CustomMessage.stories.tsx +0 -35
- package/src/components/CustomMessage/index.tsx +0 -2
- package/src/styles.css +1 -34
- package/dist/index-27SEkKTJ.js.map +0 -1
- package/dist/index-DupFGSXr.cjs +0 -2
- package/dist/index-DupFGSXr.cjs.map +0 -1
- package/src/components/CustomMessage/SentMessageDeliveryStatus.test.tsx +0 -107
- package/src/components/CustomMessage/SentMessageDeliveryStatus.tsx +0 -86
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-DdN7z-9Y.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.MessageVoteButtons=e.MessageVoteButtons;exports.MessagingProvider=e.MessagingProvider;exports.MessagingShell=e.MessagingShell;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.resolveConversationParticipant=e.resolveConversationParticipant;exports.resolveLinkAttachment=e.resolveLinkAttachment;exports.resolveMediaFromMessage=e.resolveMediaFromMessage;exports.resolveParticipantDisplayName=e.resolveParticipantDisplayName;exports.useComposerLocked=e.useComposerLocked;exports.useCustomMessage=e.useCustomMessage;exports.useMessageVote=e.useMessageVote;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 o, d as n, e as m, F as r, f as g, L as l, h as M, M as c, i as u, j as L, k as h, l as d, m as p, n as v, o as C, p as A, q as k, s as F, t as P, u as b, v as f, w as x, x as y, y as S, z as q, B as z, D as B, E as D, G as E } from "./index-
|
|
1
|
+
import { a as e, b as t, C as i, c as o, d as n, e as m, F as r, f as g, L as l, h as M, M as c, i as u, j as L, k as h, l as d, m as p, n as v, o as C, p as A, q as k, s as F, t as P, u as b, v as f, w as x, x as y, y as S, z as q, B as z, D as B, E as D, G as E } from "./index-C-2O97qw.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.7.0
|
|
3
|
+
"version": "3.7.0",
|
|
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
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@linktr.ee/component-library": "11.8.6",
|
|
53
|
-
"@linktr.ee/messaging-core": "2.
|
|
53
|
+
"@linktr.ee/messaging-core": "^2.2.0",
|
|
54
54
|
"@phosphor-icons/react": "^2.1.10"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
@@ -221,41 +221,6 @@ Default.args = {
|
|
|
221
221
|
],
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
// MES-1036: "✓✓ Delivered" appears below only the most recent *sent*
|
|
225
|
-
// message. Every mock message carries status: 'received', and stream's
|
|
226
|
-
// MessageList derives `lastOwnMessage`, so the indicator lands on the last
|
|
227
|
-
// creator message ("Talk soon!") and not on the earlier sent bubble.
|
|
228
|
-
export const DeliveredStatus: StoryFn<TemplateProps> = Template.bind({})
|
|
229
|
-
DeliveredStatus.args = {
|
|
230
|
-
messages: [
|
|
231
|
-
{
|
|
232
|
-
id: 'msg-1',
|
|
233
|
-
text: 'Hey, did you get my last message?',
|
|
234
|
-
user: storyUsers.visitor,
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
id: 'msg-2',
|
|
238
|
-
text: 'Yes! Just replying now.',
|
|
239
|
-
user: storyUsers.creator,
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
id: 'msg-3',
|
|
243
|
-
text: 'Sounds good.',
|
|
244
|
-
user: storyUsers.visitor,
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
id: 'msg-4',
|
|
248
|
-
text: 'Let me know if you need anything else.',
|
|
249
|
-
user: storyUsers.creator,
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
id: 'msg-5',
|
|
253
|
-
text: 'Talk soon!',
|
|
254
|
-
user: storyUsers.creator,
|
|
255
|
-
},
|
|
256
|
-
],
|
|
257
|
-
}
|
|
258
|
-
|
|
259
224
|
export const WithTipTag: StoryFn<TemplateProps> = Template.bind({})
|
|
260
225
|
WithTipTag.args = {
|
|
261
226
|
messages: [
|
|
@@ -46,7 +46,6 @@ import {
|
|
|
46
46
|
isTipOnlyMessage,
|
|
47
47
|
} from './MessageTag'
|
|
48
48
|
import { MessageVoteButtons } from './MessageVoteButtons'
|
|
49
|
-
import { SentMessageDeliveryStatus } from './SentMessageDeliveryStatus'
|
|
50
49
|
import StreamAttachmentMessage, {
|
|
51
50
|
buildOrderedAttachmentSegments,
|
|
52
51
|
} from './StreamAttachmentMessage'
|
|
@@ -398,7 +397,6 @@ const CustomMessageWithContext = (props: CustomMessageWithContextProps) => {
|
|
|
398
397
|
)}
|
|
399
398
|
</div>
|
|
400
399
|
)}
|
|
401
|
-
<SentMessageDeliveryStatus />
|
|
402
400
|
{showReplyCountButton && (
|
|
403
401
|
<MessageRepliesCountButton
|
|
404
402
|
onClick={handleOpenThread}
|
package/src/styles.css
CHANGED
|
@@ -351,16 +351,12 @@
|
|
|
351
351
|
column-gap: 0.25rem;
|
|
352
352
|
}
|
|
353
353
|
|
|
354
|
-
/* Outer grid for me (outgoing) messages — footer
|
|
355
|
-
after message. `delivery-status` carries the "Delivered" receipt on the
|
|
356
|
-
last sent message (MES-1036); the row collapses to 0 height on messages
|
|
357
|
-
that don't render it. */
|
|
354
|
+
/* Outer grid for me (outgoing) messages — add footer row after message */
|
|
358
355
|
.str-chat__li .str-chat__message--me {
|
|
359
356
|
grid-template-areas:
|
|
360
357
|
'message-reminder'
|
|
361
358
|
'message'
|
|
362
359
|
'footer'
|
|
363
|
-
'delivery-status'
|
|
364
360
|
'replies'
|
|
365
361
|
'translation-notice'
|
|
366
362
|
'custom-metadata'
|
|
@@ -416,35 +412,6 @@
|
|
|
416
412
|
align-items: flex-end;
|
|
417
413
|
}
|
|
418
414
|
|
|
419
|
-
/* "✓✓ Delivered" delivery status under the last sent message (MES-1036).
|
|
420
|
-
`SentMessageDeliveryStatus` renders it through stream's `MessageStatus`,
|
|
421
|
-
whose `.str-chat__message-status` span is the grid item here (right-aligned
|
|
422
|
-
via the outer grid's `justify-items: end`). Stream emits that span for every
|
|
423
|
-
own message and leaves it empty when no state is active (i.e. not the last
|
|
424
|
-
sent message), so `:empty` collapses those away. */
|
|
425
|
-
.str-chat__li .str-chat__message--me .str-chat__message-status {
|
|
426
|
-
grid-area: delivery-status;
|
|
427
|
-
justify-content: flex-end;
|
|
428
|
-
gap: 2px;
|
|
429
|
-
padding-block-start: 2px;
|
|
430
|
-
padding-inline-end: 4px;
|
|
431
|
-
font-size: 12px;
|
|
432
|
-
line-height: 1.4;
|
|
433
|
-
color: var(--str-chat__text-low-emphasis-color, rgba(0, 0, 0, 0.5));
|
|
434
|
-
}
|
|
435
|
-
.str-chat__li .str-chat__message-status:empty {
|
|
436
|
-
display: none;
|
|
437
|
-
}
|
|
438
|
-
/* Match the check icon to the label size/colour (overrides stream's default
|
|
439
|
-
per-state icon sizing and status-colour fill). */
|
|
440
|
-
.str-chat__li .str-chat__message--me .str-chat__message-status svg {
|
|
441
|
-
width: 14px;
|
|
442
|
-
height: 14px;
|
|
443
|
-
}
|
|
444
|
-
.str-chat__li .str-chat__message--me .str-chat__message-status svg path {
|
|
445
|
-
fill: currentColor;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
415
|
/* Channel list load-more button overrides */
|
|
449
416
|
.str-chat__channel-list .str-chat__load-more-button__button {
|
|
450
417
|
background-color: #121110;
|