@linktr.ee/messaging-react 3.4.0-rc-1782373728 → 3.4.0-rc-1782374156
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.4.0-rc-
|
|
3
|
+
"version": "3.4.0-rc-1782374156",
|
|
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.3.0-rc-
|
|
41
|
+
"@linktr.ee/messaging-core": "2.3.0-rc-1782374156",
|
|
42
42
|
"@phosphor-icons/react": "^2.1.10"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -251,6 +251,22 @@ Default.parameters = {
|
|
|
251
251
|
},
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
+
export const ParticipantNameTrigger: StoryFn<TemplateProps> = Template.bind({})
|
|
255
|
+
ParticipantNameTrigger.args = {
|
|
256
|
+
showBackButton: false,
|
|
257
|
+
onParticipantNameClick: () =>
|
|
258
|
+
// eslint-disable-next-line no-alert
|
|
259
|
+
window.alert('Participant name clicked — open Thread content'),
|
|
260
|
+
}
|
|
261
|
+
ParticipantNameTrigger.parameters = {
|
|
262
|
+
docs: {
|
|
263
|
+
description: {
|
|
264
|
+
story:
|
|
265
|
+
'Header with `onParticipantNameClick` set: the participant name renders as a button with a trailing caret (both the mobile and desktop header layouts). Click the name to fire the callback (shows an alert here). With the prop omitted (see Default) the name is plain, non-interactive text.',
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
}
|
|
269
|
+
|
|
254
270
|
export const DmAgentHeader: StoryFn<TemplateProps> = Template.bind({})
|
|
255
271
|
DmAgentHeader.args = {
|
|
256
272
|
showBackButton: false,
|