@linktr.ee/messaging-react 3.29.2-rc-1785808571 → 3.29.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linktr.ee/messaging-react",
|
|
3
|
-
"version": "3.29.2
|
|
3
|
+
"version": "3.29.2",
|
|
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
|
"@linktr.ee/messaging-taxonomy": "^0.5.0",
|
|
55
55
|
"@phosphor-icons/react": "^2.1.10",
|
|
56
56
|
"culori": "^4.0.2"
|
|
@@ -51,7 +51,6 @@ const createMockChannel = async (
|
|
|
51
51
|
type: msg.type ?? ('regular' as const),
|
|
52
52
|
created_at: minutesAgo(messages.length - index),
|
|
53
53
|
updated_at: minutesAgo(messages.length - index),
|
|
54
|
-
html: msg.html ?? `<p>${msg.text}</p>`,
|
|
55
54
|
attachments: msg.attachments ?? [],
|
|
56
55
|
latest_reactions: [],
|
|
57
56
|
own_reactions: [],
|
|
@@ -60,7 +59,7 @@ const createMockChannel = async (
|
|
|
60
59
|
reply_count: 0,
|
|
61
60
|
status: 'received',
|
|
62
61
|
cid: 'messaging:storybook-channel-1',
|
|
63
|
-
mentioned_users: [],
|
|
62
|
+
mentioned_users: msg.mentioned_users ?? [],
|
|
64
63
|
}))
|
|
65
64
|
|
|
66
65
|
const channelData = {
|
|
@@ -114,8 +113,8 @@ interface TemplateProps {
|
|
|
114
113
|
messages: Array<{
|
|
115
114
|
id: string
|
|
116
115
|
text: string
|
|
117
|
-
html?: string
|
|
118
116
|
user: StoryUser
|
|
117
|
+
mentioned_users?: StoryUser[]
|
|
119
118
|
type?: 'regular' | 'system'
|
|
120
119
|
attachments?: Array<Record<string, unknown>>
|
|
121
120
|
metadata?: {
|
|
@@ -245,14 +244,14 @@ MentionContrast.args = {
|
|
|
245
244
|
{
|
|
246
245
|
id: 'msg-1',
|
|
247
246
|
text: 'Hi @Creator, could you take a look at this?',
|
|
248
|
-
html: '<p>Hi <span class="str-chat__message-mention">@Creator</span>, could you take a look at this?</p>',
|
|
249
247
|
user: storyUsers.visitor,
|
|
248
|
+
mentioned_users: [storyUsers.creator],
|
|
250
249
|
},
|
|
251
250
|
{
|
|
252
251
|
id: 'msg-2',
|
|
253
252
|
text: 'Sure thing, @Visitor — I will check it now.',
|
|
254
|
-
html: '<p>Sure thing, <span class="str-chat__message-mention">@Visitor</span> — I will check it now.</p>',
|
|
255
253
|
user: storyUsers.creator,
|
|
254
|
+
mentioned_users: [storyUsers.visitor],
|
|
256
255
|
},
|
|
257
256
|
],
|
|
258
257
|
}
|