@linktr.ee/messaging-react 1.24.3-rc-1773288966 → 1.24.3

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": "1.24.3-rc-1773288966",
3
+ "version": "1.24.3",
4
4
  "description": "React messaging components built on messaging-core for web applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -254,6 +254,33 @@ WithMessageActions.parameters = {
254
254
  },
255
255
  }
256
256
 
257
+ export const WithConversationFooter: StoryFn<TemplateProps> = Template.bind({})
258
+ WithConversationFooter.args = {
259
+ showBackButton: false,
260
+ renderConversationFooter: (channel) => (
261
+ <div className="mx-4 mb-2 rounded-xl border border-black/10 bg-[#F9F7F4] px-4 py-3">
262
+ <p className="text-sm text-charcoal">
263
+ You will get notified when a new reply arrives in this conversation.
264
+ </p>
265
+ <button
266
+ type="button"
267
+ className="mt-2 rounded-full bg-charcoal px-3 py-1.5 text-xs font-medium text-white"
268
+ onClick={() => console.log('Footer CTA clicked', channel.id)}
269
+ >
270
+ Open Notification Settings
271
+ </button>
272
+ </div>
273
+ ),
274
+ }
275
+ WithConversationFooter.parameters = {
276
+ docs: {
277
+ description: {
278
+ story:
279
+ 'Channel view with a custom footer rendered between the message list and message input via renderConversationFooter(channel).',
280
+ },
281
+ },
282
+ }
283
+
257
284
  export const WithMessageDecoration: StoryFn<TemplateProps> = Template.bind({})
258
285
  WithMessageDecoration.args = {
259
286
  showBackButton: false,