@helpway/react 0.5.0 → 0.6.0

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/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export { ConversationSummary, HelpwayAPI, RealtimeEvent, TimelineItem, WidgetEve
5
5
  import * as react from 'react';
6
6
  import react__default, { ReactNode } from 'react';
7
7
  import * as _helpway_types from '@helpway/types';
8
- import { TimelineItem, RealtimeEvent, TimelineItemPart } from '@helpway/types';
8
+ import { TimelineItem, RealtimeEvent, TimelineItemPart, TimelineItemMetadata } from '@helpway/types';
9
9
 
10
10
  interface HelpwayWidgetProps {
11
11
  /**
@@ -260,9 +260,13 @@ interface MessageBubbleProps {
260
260
  senderName?: string;
261
261
  parts?: TimelineItemPart[] | null;
262
262
  timestamp?: string;
263
+ /** Variant payload for interactive messages (quick replies, …). */
264
+ metadata?: TimelineItemMetadata | null;
265
+ /** Called when the visitor taps a quick-reply option. */
266
+ onQuickReplyTap?: (optionId: string, stepId: string) => void;
263
267
  }
264
268
  /** Single message bubble — Intercom-style, renders text + image/file parts */
265
- declare function MessageBubble({ text, sender, senderName, parts, timestamp }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
269
+ declare function MessageBubble({ text, sender, senderName, parts, timestamp, metadata, onQuickReplyTap, }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
266
270
 
267
271
  interface MessageListProps {
268
272
  items: TimelineItem[];