@linktr.ee/messaging-react 3.28.0-rc-1785470442 → 3.28.0-rc-1785472913
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-zuMJv_vo.cjs → Card-BKQjOG03.cjs} +2 -2
- package/dist/{Card-zuMJv_vo.cjs.map → Card-BKQjOG03.cjs.map} +1 -1
- package/dist/{Card-HhWSvoLR.js → Card-CXDMDpel.js} +2 -2
- package/dist/{Card-HhWSvoLR.js.map → Card-CXDMDpel.js.map} +1 -1
- package/dist/{index-BJ5U682J.cjs → index-BiYs0Wg1.cjs} +2 -2
- package/dist/index-BiYs0Wg1.cjs.map +1 -0
- package/dist/{index-GBUgLtAm.js → index-BvEVNFYW.js} +1087 -1087
- package/dist/index-BvEVNFYW.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/components/CustomMessage/SentMessageDeliveryStatus.test.tsx +33 -0
- package/src/components/CustomMessage/SentMessageDeliveryStatus.tsx +1 -1
- package/dist/index-BJ5U682J.cjs.map +0 -1
- package/dist/index-GBUgLtAm.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-BiYs0Wg1.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.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.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.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 p, m as d, n as v, p as C, q as A, s as k, t as F, u as b, v as P, w as f, x, o as y, y as z, z as B, B as S, D as q, E as D, G as E, H as V, I as w } 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 p, m as d, n as v, p as C, q as A, s as k, t as F, u as b, v as P, w as f, x, o as y, y as z, z as B, B as S, D as q, E as D, G as E, H as V, I as w } from "./index-BvEVNFYW.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.28.0-rc-
|
|
3
|
+
"version": "3.28.0-rc-1785472913",
|
|
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.3.0-rc-
|
|
53
|
+
"@linktr.ee/messaging-core": "2.3.0-rc-1785472913",
|
|
54
54
|
"@linktr.ee/messaging-taxonomy": "^0.3.0",
|
|
55
55
|
"@phosphor-icons/react": "^2.1.10",
|
|
56
56
|
"culori": "^4.0.2"
|
|
@@ -4,6 +4,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'
|
|
|
4
4
|
|
|
5
5
|
import { renderWithProviders, screen, within } from '../../test/utils'
|
|
6
6
|
|
|
7
|
+
import { BroadcastNameContext } from './BroadcastNameContext'
|
|
7
8
|
import { SentMessageDeliveryStatus } from './SentMessageDeliveryStatus'
|
|
8
9
|
|
|
9
10
|
// stream-chat-react's `MessageStatus` owns own-message / not-error gating and
|
|
@@ -269,6 +270,38 @@ describe('SentMessageDeliveryStatus', () => {
|
|
|
269
270
|
)
|
|
270
271
|
})
|
|
271
272
|
|
|
273
|
+
it('passes the resolved broadcast name to the click callback', () => {
|
|
274
|
+
const onBroadcastClick = vi.fn()
|
|
275
|
+
mockedUseMessageContext.mockReturnValue({
|
|
276
|
+
message: {
|
|
277
|
+
id: 'own-2',
|
|
278
|
+
metadata: {
|
|
279
|
+
broadcast_id: 'broadcast-1',
|
|
280
|
+
broadcast_name: 'July 9th Class attendees',
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
|
+
isMyMessage: () => true,
|
|
284
|
+
threadList: false,
|
|
285
|
+
} as never)
|
|
286
|
+
|
|
287
|
+
renderWithProviders(
|
|
288
|
+
<BroadcastNameContext.Provider
|
|
289
|
+
value={() => 'July 9th Class absentee'}
|
|
290
|
+
>
|
|
291
|
+
<SentMessageDeliveryStatus onBroadcastClick={onBroadcastClick} />
|
|
292
|
+
</BroadcastNameContext.Provider>
|
|
293
|
+
)
|
|
294
|
+
|
|
295
|
+
screen.getByRole('button', {
|
|
296
|
+
name: 'View broadcast July 9th Class absentee',
|
|
297
|
+
}).click()
|
|
298
|
+
|
|
299
|
+
expect(onBroadcastClick).toHaveBeenCalledWith({
|
|
300
|
+
id: 'broadcast-1',
|
|
301
|
+
name: 'July 9th Class absentee',
|
|
302
|
+
})
|
|
303
|
+
})
|
|
304
|
+
|
|
272
305
|
it('does not render a broadcast label for a visitor viewing a broadcast message', () => {
|
|
273
306
|
mockedUseMessageContext.mockReturnValue({
|
|
274
307
|
message: {
|