@linktr.ee/messaging-react 3.5.1-rc-1782843024 → 3.5.1
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-BaurkIJ0.js → Card-7aAvaUCW.js} +3 -3
- package/dist/{Card-BaurkIJ0.js.map → Card-7aAvaUCW.js.map} +1 -1
- package/dist/{Card-DYBRxXnN.js → Card-BSNUuIZb.js} +2 -2
- package/dist/{Card-DYBRxXnN.js.map → Card-BSNUuIZb.js.map} +1 -1
- package/dist/{Card-CgMV-1UG.cjs → Card-BSZuzK2_.cjs} +2 -2
- package/dist/{Card-CgMV-1UG.cjs.map → Card-BSZuzK2_.cjs.map} +1 -1
- package/dist/{Card-fAFTUIb2.js → Card-CM877v9R.js} +2 -2
- package/dist/{Card-fAFTUIb2.js.map → Card-CM877v9R.js.map} +1 -1
- package/dist/{Card-BFDouCWj.cjs → Card-DhDFVQ7O.cjs} +2 -2
- package/dist/{Card-BFDouCWj.cjs.map → Card-DhDFVQ7O.cjs.map} +1 -1
- package/dist/{Card-J7NpeEF2.cjs → Card-Dj-xMf40.cjs} +2 -2
- package/dist/{Card-J7NpeEF2.cjs.map → Card-Dj-xMf40.cjs.map} +1 -1
- package/dist/{LockedThumbnail-DAjFHtRQ.js → LockedThumbnail-DZP7ke4x.js} +2 -2
- package/dist/{LockedThumbnail-DAjFHtRQ.js.map → LockedThumbnail-DZP7ke4x.js.map} +1 -1
- package/dist/{LockedThumbnail-BDs4bOlZ.cjs → LockedThumbnail-DckzKrnU.cjs} +2 -2
- package/dist/{LockedThumbnail-BDs4bOlZ.cjs.map → LockedThumbnail-DckzKrnU.cjs.map} +1 -1
- package/dist/{index-q1Rt81SE.cjs → index-9Go_hBkB.cjs} +2 -2
- package/dist/{index-q1Rt81SE.cjs.map → index-9Go_hBkB.cjs.map} +1 -1
- package/dist/{index-fO4nwAA3.js → index-BD4riB9V.js} +10 -9
- package/dist/{index-fO4nwAA3.js.map → index-BD4riB9V.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.js +18 -17
- package/package.json +2 -2
- package/src/index.ts +1 -0
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-9Go_hBkB.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.d.ts
CHANGED
|
@@ -147,6 +147,10 @@ export declare interface ChannelListProps {
|
|
|
147
147
|
viewerLanguage?: string;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
+
declare type ChannelMember = ChannelMembers[string];
|
|
151
|
+
|
|
152
|
+
declare type ChannelMembers = NonNullable<Channel['state']>['members'];
|
|
153
|
+
|
|
150
154
|
export declare type ChannelPreviewProps = ChannelPreviewUIComponentProps & {
|
|
151
155
|
selectedChannel?: Channel | null;
|
|
152
156
|
onChannelSelect: (channel: Channel) => void;
|
|
@@ -1382,6 +1386,18 @@ export declare interface ReceivedCardProps extends LockedAttachmentBaseProps {
|
|
|
1382
1386
|
isUnlocking?: boolean;
|
|
1383
1387
|
}
|
|
1384
1388
|
|
|
1389
|
+
/**
|
|
1390
|
+
* Resolves the member to display as the conversation's "other party".
|
|
1391
|
+
*
|
|
1392
|
+
* For a normal 1:1 channel this is the member that isn't the current user. The
|
|
1393
|
+
* official channel is special: its display identity is always the official
|
|
1394
|
+
* sender ("Linktree"), regardless of who is viewing. That matters because an
|
|
1395
|
+
* unverified sensitive linker reads the official channel as a guest whose
|
|
1396
|
+
* random Stream id isn't a member, so the "not me" heuristic would otherwise
|
|
1397
|
+
* fall back to the linker's own member and show their name instead of Linktree.
|
|
1398
|
+
*/
|
|
1399
|
+
export declare function resolveConversationParticipant(members: ChannelMembers | undefined, currentUserId: string | undefined, channelType: string | undefined): ChannelMember | undefined;
|
|
1400
|
+
|
|
1385
1401
|
export declare function resolveLinkAttachment(message: LocalMessage): Attachment | undefined;
|
|
1386
1402
|
|
|
1387
1403
|
export declare function resolveMediaFromMessage(message: LocalMessage): MediaMessageResolved | null;
|
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
|
|
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-BD4riB9V.js";
|
|
2
2
|
export {
|
|
3
3
|
e as ActionButton,
|
|
4
4
|
t as Avatar,
|
|
@@ -6,30 +6,31 @@ export {
|
|
|
6
6
|
o as ChannelList,
|
|
7
7
|
n as ChannelView,
|
|
8
8
|
m as CustomMessageProvider,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
r as FaqList,
|
|
10
|
+
g as FaqListItem,
|
|
11
11
|
l as LinkAttachment,
|
|
12
12
|
M as LockedAttachment,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
c as MediaMessage,
|
|
14
|
+
u as MessageAttachment,
|
|
15
|
+
L as MessageVoteButtons,
|
|
16
16
|
h as MessagingProvider,
|
|
17
17
|
d as MessagingShell,
|
|
18
18
|
p as buildCompactMetaLabel,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
v as formatFileSize,
|
|
20
|
+
C as formatRelativeTime,
|
|
21
21
|
A as getFileExtensionLabel,
|
|
22
22
|
k as getMessageDisplayText,
|
|
23
23
|
F as isLinkAttachment,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
P as isUuidLike,
|
|
25
|
+
b as messageAttachmentGroupPositionFromStream,
|
|
26
|
+
f as normalizeLanguageCode,
|
|
27
|
+
x as resolveConversationParticipant,
|
|
27
28
|
y as resolveLinkAttachment,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
S as resolveMediaFromMessage,
|
|
30
|
+
q as resolveParticipantDisplayName,
|
|
31
|
+
z as useComposerLocked,
|
|
32
|
+
B as useCustomMessage,
|
|
33
|
+
D as useMessageVote,
|
|
34
|
+
E as useMessaging
|
|
34
35
|
};
|
|
35
36
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linktr.ee/messaging-react",
|
|
3
|
-
"version": "3.5.1
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"description": "React messaging components built on messaging-core for web applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@linktr.ee/component-library": "11.8.6",
|
|
41
|
-
"@linktr.ee/messaging-core": "2.
|
|
41
|
+
"@linktr.ee/messaging-core": "^2.2.0",
|
|
42
42
|
"@phosphor-icons/react": "^2.1.10"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
package/src/index.ts
CHANGED
|
@@ -46,6 +46,7 @@ export {
|
|
|
46
46
|
isUuidLike,
|
|
47
47
|
} from './utils/resolveParticipantDisplayName'
|
|
48
48
|
export type { ParticipantDisplayUser } from './utils/resolveParticipantDisplayName'
|
|
49
|
+
export { resolveConversationParticipant } from './utils/resolveConversationParticipant'
|
|
49
50
|
|
|
50
51
|
// Types
|
|
51
52
|
export type {
|