@epam/ai-dial-conversation-messages 1.1.0-dev.44 → 1.1.0-dev.49

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.
@@ -11,10 +11,6 @@ export interface StatusMessageBubbleProps {
11
11
  /** User-visible strings. */
12
12
  labels: StatusMessageBubbleLabels;
13
13
  }
14
- /**
15
- * Full-width info banner rendered in the conversation timeline when the active
16
- * deployment changes. Matches Figma node 613:8730 (`section-message`).
17
- * Does not render message actions, ratings, or a copy button.
18
- */
14
+ /** Full-width info banner shown in the conversation timeline when the active deployment changes. */
19
15
  export declare const StatusMessageBubble: FC<StatusMessageBubbleProps>;
20
16
  //# sourceMappingURL=StatusMessageBubble.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StatusMessageBubble.d.ts","sourceRoot":"","sources":["../../../src/components/MessageBubble/StatusMessageBubble.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,4DAA4D;AAC5D,MAAM,WAAW,yBAAyB;IACxC,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wDAAwD;AACxD,MAAM,WAAW,wBAAwB;IACvC,4BAA4B;IAC5B,MAAM,EAAE,yBAAyB,CAAC;CACnC;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAY5D,CAAC"}
1
+ {"version":3,"file":"StatusMessageBubble.d.ts","sourceRoot":"","sources":["../../../src/components/MessageBubble/StatusMessageBubble.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,4DAA4D;AAC5D,MAAM,WAAW,yBAAyB;IACxC,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wDAAwD;AACxD,MAAM,WAAW,wBAAwB;IACvC,4BAA4B;IAC5B,MAAM,EAAE,yBAAyB,CAAC;CACnC;AAED,oGAAoG;AACpG,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAY5D,CAAC"}
package/index.css CHANGED
@@ -1,2 +1,2 @@
1
- ._userBubble_1exhl_1{border-color:var(--cm-bubble-user-border,var(--stroke-secondary,#d1dbea));background:var(--cm-bubble-user-bg,var(--bg-layer-2,#eef1f7))}._collapsibleText_1exhl_6{max-height:var(--cm-bubble-collapsed-height);transition:max-height .2s ease-out}._expandedText_1exhl_11{max-height:var(--cm-bubble-expanded-height)}._collapsedText_1exhl_15:after{content:"";pointer-events:none;background:linear-gradient(to bottom, var(--cm-bubble-fade-start,var(--bg-transparent-black,#0000)), var(--cm-bubble-user-bg,var(--bg-layer-2,#eef1f7)));height:3rem;position:absolute;bottom:0;left:0;right:0}@media (prefers-reduced-motion:reduce){._collapsibleText_1exhl_6{transition:none}}._startersDivider_1exhl_26{border-color:var(--cm-starters-divider,var(--stroke-secondary,#d1dbea))}._text_1exhl_30{color:var(--cm-bubble-text,var(--text-primary,#161b2d))}._button_15boc_1{background:var(--cm-source-bg,var(--bg-neutral,#fcfcfc));border-color:var(--cm-source-border,var(--stroke-secondary,#d1dbea));color:var(--cm-source-text,var(--text-primary,#161b2d))}._button_15boc_1:hover,._button_15boc_1:active,._button_15boc_1:focus-visible{background:var(--cm-source-bg-hover,var(--bg-accent-primary-alpha,#7da4ff2e));border-color:var(--cm-source-border-hover,var(--stroke-accent-primary,#124ace))}
1
+ ._userBubble_1exhl_1{border-color:var(--cm-bubble-user-border,var(--stroke-secondary,#d1dbea));background:var(--cm-bubble-user-bg,var(--bg-layer-2,#eef1f7))}._collapsibleText_1exhl_6{max-height:var(--cm-bubble-collapsed-height);transition:max-height .2s ease-out}._expandedText_1exhl_11{max-height:var(--cm-bubble-expanded-height)}._collapsedText_1exhl_15:after{content:"";pointer-events:none;background:linear-gradient(to bottom, var(--cm-bubble-fade-start,var(--bg-transparent-black,#0000)), var(--cm-bubble-user-bg,var(--bg-layer-2,#eef1f7)));height:3rem;position:absolute;bottom:0;left:0;right:0}@media (prefers-reduced-motion:reduce){._collapsibleText_1exhl_6{transition:none}}._startersDivider_1exhl_26{border-color:var(--cm-starters-divider,var(--stroke-secondary,#d1dbea))}._text_1exhl_30{color:var(--cm-bubble-text,var(--text-primary,#161b2d))}
2
2
  /*$vite$:1*/
package/index.d.ts CHANGED
@@ -3,7 +3,6 @@ export { UserMessageBubble } from './components/MessageBubble/UserMessageBubble'
3
3
  export { AssistantMessageBubble } from './components/MessageBubble/AssistantMessageBubble';
4
4
  export { StatusMessageBubble } from './components/MessageBubble/StatusMessageBubble';
5
5
  export { MessageActions } from './components/MessageActions/MessageActions';
6
- export { MessageSource } from './components/MessageSource/MessageSource';
7
6
  export { BubblePosition } from './types/bubble-position';
8
7
  export type { MessageBubbleProps, UserMessageBubbleProps, AssistantMessageBubbleProps, MessageBubbleStyles, MessageBubbleColors, MessageBubbleTypography, MessageBubbleLabels, AssistantMessageBubbleLabels, } from './models/message-bubble';
9
8
  export type { StatusMessageBubbleLabels, StatusMessageBubbleProps, } from './components/MessageBubble/StatusMessageBubble';
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,YAAY,EACV,kBAAkB,EAClB,sBAAsB,EACtB,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,gDAAgD,CAAC;AACxD,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,YAAY,EACV,kBAAkB,EAClB,sBAAsB,EACtB,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,gDAAgD,CAAC;AACxD,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,yBAAyB,CAAC"}
package/index.js CHANGED
@@ -510,14 +510,19 @@ je(({ tabs: e, activeTabId: t, onTabChange: n, styles: r }) => {
510
510
  let { tabClassName: i = "dial-tiny-semi-text" } = r?.typography ?? {};
511
511
  return /* @__PURE__ */ q("div", {
512
512
  className: "flex flex-nowrap gap-1",
513
+ role: "tablist",
513
514
  children: e.map((e) => {
514
515
  let r = t === e.id;
515
- return /* @__PURE__ */ q(w, {
516
- label: e.label,
517
- selected: r,
518
- onClick: () => n(e.id),
516
+ return /* @__PURE__ */ q("div", {
517
+ role: "tab",
519
518
  "aria-selected": r,
520
- className: d("box-border h-auto shrink-0 justify-center rounded-full p-2 text-center", i, it.tabContainer, r && it.tabActive)
519
+ className: "contents",
520
+ children: /* @__PURE__ */ q(w, {
521
+ label: e.label,
522
+ selected: r,
523
+ onClick: () => n(e.id),
524
+ className: d("box-border h-auto shrink-0 justify-center rounded-full p-2 text-center", i, it.tabContainer, r && it.tabActive)
525
+ })
521
526
  }, e.id);
522
527
  })
523
528
  });
@@ -905,21 +910,6 @@ var lt = 2e3, ut = ({ role: e = s.User, onEdit: t, onEditHover: n, onDelete: r,
905
910
  ...r,
906
911
  markdownComponents: n,
907
912
  onAttachmentClick: t
908
- }), _t = { button: "_button_15boc_1" }, vt = ({ labels: { label: e }, onClick: t, styles: n }) => {
909
- let { colors: r, typography: i, className: a } = n ?? {};
910
- return /* @__PURE__ */ q("button", {
911
- type: "button",
912
- onClick: t,
913
- style: u({
914
- "--cm-source-bg": r?.background,
915
- "--cm-source-border": r?.border,
916
- "--cm-source-text": r?.text,
917
- "--cm-source-bg-hover": r?.backgroundHover,
918
- "--cm-source-border-hover": r?.borderHover
919
- }),
920
- className: d(_t.button, "relative flex h-6 items-center justify-center px-2", "border border-solid", "outline-none focus-visible:outline focus-visible:outline-1", "focus-visible:outline-offset-[3px]", "cursor-pointer whitespace-nowrap", i?.fontClassName, a),
921
- children: e
922
- });
923
- };
913
+ });
924
914
  //#endregion
925
- export { dt as AssistantMessageBubble, pt as BubblePosition, ut as MessageActions, gt as MessageBubble, vt as MessageSource, ft as StatusMessageBubble, ht as UserMessageBubble };
915
+ export { dt as AssistantMessageBubble, pt as BubblePosition, ut as MessageActions, gt as MessageBubble, ft as StatusMessageBubble, ht as UserMessageBubble };
@@ -1,5 +1,5 @@
1
1
  import { MessageRating, MessageRole } from '@epam/ai-dial-chat-shared';
2
- /** Tooltip labels for each message action button. All fields are optional; omitting a field falls back to the built-in default. */
2
+ /** Tooltip overrides for each action button. Omitted fields fall back to built-in defaults. */
3
3
  export interface MessageActionTooltips {
4
4
  /** Tooltip for the Edit button. */
5
5
  edit?: string;
@@ -20,7 +20,7 @@ export interface MessageActionTooltips {
20
20
  /** Tooltip for the Dislike button. */
21
21
  dislike?: string;
22
22
  }
23
- /** Accessible labels for each message action button. All fields are optional; omitting a field falls back to the built-in English default. */
23
+ /** aria-label overrides for each action button. Omitted fields fall back to built-in English defaults. */
24
24
  export interface MessageActionAriaLabels {
25
25
  /** aria-label for the Edit button. */
26
26
  editMessage?: string;
@@ -36,47 +36,47 @@ export interface MessageActionAriaLabels {
36
36
  likeResponse?: string;
37
37
  /** aria-label for the Dislike button. */
38
38
  dislikeResponse?: string;
39
- /** Accessible name for the action bar as a whole, exposed via `role="toolbar"`. */
39
+ /** aria-label for the toolbar container. */
40
40
  actionsGroup?: string;
41
- /** Status message announced to assistive tech after copying the response text. */
41
+ /** Announced after copying the response text. */
42
42
  copiedStatus?: string;
43
- /** Status message announced to assistive tech after copying the response as Markdown. */
43
+ /** Announced after copying the response as Markdown. */
44
44
  copiedMarkdownStatus?: string;
45
45
  }
46
- /** Tooltip and accessible label overrides for the `MessageActions` component. */
46
+ /** Tooltip and aria-label overrides for `MessageActions`. */
47
47
  export interface MessageActionLabels {
48
- /** Override tooltip labels for individual action buttons. */
48
+ /** Tooltip overrides per button. */
49
49
  tooltips?: MessageActionTooltips;
50
- /** Override accessible labels (aria-label) for individual action buttons. */
50
+ /** aria-label overrides per button. */
51
51
  ariaLabels?: MessageActionAriaLabels;
52
52
  }
53
- /** Props accepted by the `MessageActions` component. */
53
+ /** Props for the `MessageActions` component. */
54
54
  export interface MessageActionsProps {
55
- /** Which action set to render — `'User'` shows Edit/Delete, `'Agent'` shows Regenerate/Copy/Markdown/Like/Dislike. Defaults to `'User'`. */
55
+ /** Which actions are shown. `'User'` = Edit/Delete; `'Agent'` = Regenerate/Copy/Like/Dislike. Defaults to `'User'`. */
56
56
  role?: MessageRole;
57
- /** Extra class name(s) merged onto the root wrapper element. */
57
+ /** Extra class(es) on the root element. */
58
58
  className?: string;
59
- /** When `true`, actions are always visible instead of appearing only on group hover. */
59
+ /** Shows actions permanently instead of on group hover only. */
60
60
  isAlwaysVisible?: boolean;
61
- /** Override tooltip and accessible labels for individual action buttons. */
61
+ /** Tooltip and aria-label overrides. */
62
62
  labels?: MessageActionLabels;
63
- /** Called when the user clicks the Edit button (User source only). */
63
+ /** Fires on Edit click. User role only. */
64
64
  onEdit?: () => void;
65
- /** Called when the user hovers over the Edit button (User source only). Useful for preloading the edit UI. */
65
+ /** Fires on Edit hover; useful for preloading the edit UI. User role only. */
66
66
  onEditHover?: () => void;
67
- /** Called when the user clicks the Delete button (User source only). */
67
+ /** Fires on Delete click. User role only. */
68
68
  onDelete?: () => void;
69
- /** Called when the user clicks the Regenerate button (Agent source only). */
69
+ /** Fires on Regenerate click. Agent role only. */
70
70
  onRegenerate?: () => void;
71
- /** Called when the user clicks the Copy button (Agent source only). */
71
+ /** Fires on Copy click. Agent role only. */
72
72
  onCopy?: () => void;
73
- /** Called when the user clicks the Copy Markdown button (Agent source only). */
73
+ /** Fires on Copy Markdown click. Agent role only. */
74
74
  onCopyMarkdown?: () => void;
75
- /** Called when the user clicks the Like button (Agent source only). */
75
+ /** Fires on Like click. Agent role only. */
76
76
  onLike?: () => void;
77
- /** Called when the user clicks the Dislike button (Agent source only). */
77
+ /** Fires on Dislike click. Agent role only. */
78
78
  onDislike?: () => void;
79
- /** Currently active rating for this message, if any. When set, the matching button is visually highlighted. */
79
+ /** Active rating; highlights the matching Like/Dislike button when set. */
80
80
  activeRating?: MessageRating;
81
81
  }
82
82
  //# sourceMappingURL=message-actions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"message-actions.d.ts","sourceRoot":"","sources":["../../src/models/message-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEvE,mIAAmI;AACnI,MAAM,WAAW,qBAAqB;IACpC,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,8IAA8I;AAC9I,MAAM,WAAW,uBAAuB;IACtC,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wCAAwC;IACxC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4CAA4C;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sCAAsC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kDAAkD;IAClD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sCAAsC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mFAAmF;IACnF,YAAY,CAAC,EAAE,MAAM,CAAC;I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AAE,WAAW,CAAC;IACnB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wCAAwC;IACxC,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,2CAA2C;IAC3C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,8EAA8E;IAC9E,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,kDAAkD;IAClD,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,qDAAqD;IACrD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,2EAA2E;IAC3E,YAAY,CAAC,EAAE,aAAa,CAAC;CAC9B"}
@@ -9,11 +9,11 @@ export interface MessageBubbleColors {
9
9
  userBackground?: string;
10
10
  /** Border color of the user message bubble. */
11
11
  userBorder?: string;
12
- /** Starting color of the fade-out gradient shown over a collapsed user message. Defaults to transparent. */
12
+ /** Gradient start color for a collapsed user message fade-out. Defaults to transparent. */
13
13
  fadeStart?: string;
14
14
  /** Text color applied to all message bubbles. */
15
15
  text?: string;
16
- /** Border color of the divider line above quick-reply starter buttons. Falls back to `--color-secondary` when omitted. */
16
+ /** Divider color above quick-reply buttons. Falls back to `--color-secondary`. */
17
17
  startersDivider?: string;
18
18
  }
19
19
  /** Typography overrides for message bubble components. */
@@ -21,65 +21,53 @@ export interface MessageBubbleTypography {
21
21
  /** Tailwind (or custom) class applied to message text. */
22
22
  fontClassName?: string;
23
23
  }
24
- /** Combined style overrides (colors and typography) for message bubble components. */
24
+ /** Color and typography overrides for message bubble components. */
25
25
  export interface MessageBubbleStyles {
26
26
  /** Color overrides applied as CSS custom properties. */
27
27
  colors?: MessageBubbleColors;
28
28
  /** Typography overrides applied via CSS custom properties. */
29
29
  typography?: MessageBubbleTypography;
30
- /** Extra class name(s) merged onto the outer row wrapper. */
30
+ /** Extra class(es) on the row wrapper. */
31
31
  className?: string;
32
- /** Extra class name(s) merged onto the bubble element itself. */
32
+ /** Extra class(es) on the bubble element. */
33
33
  bubbleClassName?: string;
34
34
  }
35
35
  /** Localised labels for message bubble components. */
36
36
  export interface MessageBubbleLabels {
37
- /** Button label shown when a collapsed user message can be expanded. Defaults to `"Show more"`. */
37
+ /** Expand button label. Defaults to `"Show more"`. */
38
38
  showMoreLabel?: string;
39
- /** Button label shown when an expanded user message can be collapsed. Defaults to `"Show less"`. */
39
+ /** Collapse button label. Defaults to `"Show less"`. */
40
40
  showLessLabel?: string;
41
- /** Accessible label for the expand button. Defaults to the `showMoreLabel` value. */
41
+ /** aria-label for the expand button. Defaults to `showMoreLabel`. */
42
42
  showMoreAriaLabel?: string;
43
- /** Accessible label for the collapse button. Defaults to the `showLessLabel` value. */
43
+ /** aria-label for the collapse button. Defaults to `showLessLabel`. */
44
44
  showLessAriaLabel?: string;
45
- /** Accessible name for the message region, exposed via `role="group"`. Defaults to `"User message"`. */
45
+ /** aria-label for the user message group. Defaults to `"User message"`. */
46
46
  userMessageAriaLabel?: string;
47
- /** Accessible name for the message region, exposed via `role="group"`. Defaults to `"Assistant message"`. */
47
+ /** aria-label for the assistant message group. Defaults to `"Assistant message"`. */
48
48
  assistantMessageAriaLabel?: string;
49
- /** Accessible label forwarded to each attachment tile/row when it is interactive. */
49
+ /** aria-label for interactive attachment tiles. */
50
50
  attachmentClickLabel?: string;
51
- /** Accessible label for each attachment row's retry action. */
51
+ /** aria-label for the attachment retry button. */
52
52
  attachmentRetryLabel?: string;
53
- /** Accessible label for each attachment tile's open-in-new-tab button. */
53
+ /** aria-label for the attachment open-in-new-tab button. */
54
54
  attachmentOpenInNewTabLabel?: string;
55
- /**
56
- * Bold prefix text for the status message banner.
57
- * Only used when `role === MessageRole.Status`. Defaults to `"Model switched."`.
58
- */
55
+ /** Bold prefix for the status banner. Used when `role === MessageRole.Status`. Defaults to `"Model switched."`. */
59
56
  statusTitleText?: string;
60
- /**
61
- * Full description text for the status message banner, e.g. "The model has been switched from GPT to Imagen."
62
- * Required when `role === MessageRole.Status`.
63
- */
57
+ /** Body text for the status banner. Required when `role === MessageRole.Status`. */
64
58
  statusBodyText?: string;
65
59
  }
66
60
  /** Localised labels for the `AssistantMessageBubble` component. */
67
61
  export interface AssistantMessageBubbleLabels extends MessageBubbleLabels {
68
- /** Accessible label for the quick-reply buttons list. Defaults to `"Quick reply buttons"`. */
62
+ /** aria-label for the quick-reply list. Defaults to `"Quick reply buttons"`. */
69
63
  startersAriaLabel?: string;
70
- /**
71
- * Label shown with a shimmer animation while `isStreaming` is true and the message text is still empty.
72
- * Pass a translated string from the consuming app. Defaults to `'Thinking'`.
73
- */
64
+ /** Shimmer placeholder shown while streaming and message text is empty. Defaults to `'Thinking'`. */
74
65
  thinkingLabel?: string;
75
- /** Accessible label for the copy button in code blocks. Forwarded to `MDMessageViewer`. */
66
+ /** aria-label for the code block copy button. */
76
67
  codeBlockCopyLabel?: string;
77
- /** Accessible label for the copy button after copying. Forwarded to `MDMessageViewer`. */
68
+ /** aria-label for the code block copy button after copying. */
78
69
  codeBlockCopiedLabel?: string;
79
- /**
80
- * Fallback accessible name for the deployment icon when `deploymentDisplayName`
81
- * is not supplied. Defaults to `'AI'`.
82
- */
70
+ /** Fallback aria-label for the deployment icon. Defaults to `'AI'`. */
83
71
  deploymentIconFallbackLabel?: string;
84
72
  }
85
73
  /** Shared props for user and assistant message bubble components. */
@@ -88,70 +76,52 @@ interface BaseMessageBubbleProps {
88
76
  text: string;
89
77
  /** Color and typography overrides applied as CSS custom properties. */
90
78
  styles?: MessageBubbleStyles;
91
- /** Props forwarded to the `MessageActions` bar rendered below the bubble. */
79
+ /** Props for the `MessageActions` bar below the bubble. */
92
80
  actions?: MessageActionsProps;
93
- /** When `true`, the actions bar is always visible instead of appearing only on group hover. */
81
+ /** Shows the actions bar permanently instead of on group hover only. */
94
82
  hasAlwaysVisibleActions?: boolean;
95
83
  /** When `true`, assistant markdown text reveals newly appended content smoothly. */
96
84
  isStreaming?: boolean;
97
- /** Display attachments associated with the message. Rendered above text for user messages and below text for assistant messages. */
85
+ /** Attachments shown above (user) or below (assistant) the message text. */
98
86
  attachments?: DisplayAttachment[];
99
- /** Localised labels for the bubble's toggle button and attachment rows. */
87
+ /** Localised labels for the toggle button and attachment rows. */
100
88
  labels?: MessageBubbleLabels;
101
- /** Called when the user clicks an attachment tile/row. Passed through to `AttachmentGroup`. */
89
+ /** Fires when an attachment is clicked. */
102
90
  onAttachmentClick?: (attachment: DisplayAttachment) => void;
103
- /**
104
- * Called with every currently downloadable attachment when the user
105
- * activates the group's "download all" action. Passed through to
106
- * `AttachmentGroup`.
107
- */
91
+ /** Fires with all downloadable attachments when "download all" is triggered. */
108
92
  onDownloadAll?: (attachments: DisplayAttachment[]) => void;
109
- /** Called when the user retries a failed attachment upload. */
93
+ /** Fires when a failed attachment upload is retried. */
110
94
  onAttachmentRetry?: (id: string) => void;
111
95
  }
112
- /** Props accepted by the `UserMessageBubble` component. */
96
+ /** Props for `UserMessageBubble`. */
113
97
  export interface UserMessageBubbleProps extends BaseMessageBubbleProps {
114
- /** Position within a message group — controls which corner is rounded. Defaults to `BubblePosition.Bottom`. */
98
+ /** Corner rounding position within a message group. Defaults to `BubblePosition.Bottom`. */
115
99
  position?: BubblePosition;
116
100
  /** Maximum number of text lines shown while a long user message is collapsed. Defaults to `10`. */
117
101
  collapsedLineCount?: number;
118
102
  }
119
- /** Props accepted by the `AssistantMessageBubble` component. */
103
+ /** Props for `AssistantMessageBubble`. */
120
104
  export interface AssistantMessageBubbleProps extends BaseMessageBubbleProps {
121
- /**
122
- * react-markdown component overrides merged on top of the built-in map.
123
- * Pass a custom `p` (or other element) renderer here to inject React nodes
124
- * — such as citation markers — into specific markdown elements.
125
- */
105
+ /** react-markdown component overrides. Use to inject custom renderers (e.g. citation markers) into markdown elements. */
126
106
  markdownComponents?: Components;
127
- /**
128
- * Quick-reply buttons derived from the assistant message's `form_schema`.
129
- * Rendered below the message text when the array is non-empty.
130
- */
107
+ /** Quick-reply buttons rendered below the message text when non-empty. */
131
108
  starters?: StarterOption[];
132
- /** Called with the selected `StarterOption` when a quick-reply button is clicked. */
109
+ /** Fires with the clicked `StarterOption`. */
133
110
  onSelectStarter?: (starter: StarterOption) => void;
134
111
  /** Content rendered between the message body and the actions bar (e.g. a stages panel). */
135
112
  afterContent?: ReactNode;
136
- /**
137
- * Resolved URL for the deployment icon shown in the message header.
138
- * When absent (e.g. legacy messages without a stored `deploymentId`), no icon is rendered.
139
- */
113
+ /** Deployment icon URL. When absent, no icon is rendered. */
140
114
  deploymentIconUrl?: string;
141
- /** Human-readable deployment name shown as the icon's accessible label. */
115
+ /** Deployment name used as the icon's accessible label. */
142
116
  deploymentDisplayName?: string;
143
- /** Syntax highlight color theme for code blocks. Forwarded to `MDMessageViewer`, which defaults to `'dark'` when omitted. */
117
+ /** Syntax highlight theme for code blocks. Defaults to `'dark'`. */
144
118
  codeBlockTheme?: CodeBlockTheme;
145
119
  /** Localised labels for quick replies, the thinking indicator, and code block copy actions. */
146
120
  labels?: AssistantMessageBubbleLabels;
147
121
  }
148
- /**
149
- * Props accepted by the `MessageBubble` role-switching wrapper — the union of
150
- * `AssistantMessageBubbleProps` (the richer variant) with the user-only
151
- * `position`/`collapsedLineCount` fields, plus the discriminant `role`.
152
- */
122
+ /** Props for `MessageBubble` — `AssistantMessageBubbleProps` plus user-only fields and `role`. */
153
123
  export type MessageBubbleProps = AssistantMessageBubbleProps & Pick<UserMessageBubbleProps, 'position' | 'collapsedLineCount'> & {
154
- /** Whether the message was authored by the user, the assistant, or is a status banner. */
124
+ /** Message author/type: user, assistant, or status banner. */
155
125
  role: MessageRole;
156
126
  };
157
127
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"message-bubble.d.ts","sourceRoot":"","sources":["../../src/models/message-bubble.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,aAAa,EACd,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,mEAAmE;AACnE,MAAM,WAAW,mBAAmB;IAClC,mDAAmD;IACnD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4GAA4G;IAC5G,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0HAA0H;IAC1H,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,0DAA0D;AAC1D,MAAM,WAAW,uBAAuB;IACtC,0DAA0D;IAC1D,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,sFAAsF;AACtF,MAAM,WAAW,mBAAmB;IAClC,wDAAwD;IACxD,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,8DAA8D;IAC9D,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,sDAAsD;AACtD,MAAM,WAAW,mBAAmB;IAClC,mGAAmG;IACnG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oGAAoG;IACpG,aAAa,C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AC,WAAW,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IAC3D,wDAAwD;IACxD,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AAED,qCAAqC;AACrC,MAAM,WAAW,sBAAuB,SAAQ,sBAAsB;IACpE,4FAA4F;IAC5F,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,mGAAmG;IACnG,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,0CAA0C;AAC1C,MAAM,WAAW,2BAA4B,SAAQ,sBAAsB;IACzE,yHAAyH;IACzH,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAChC,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAC3B,8CAA8C;IAC9C,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IACnD,2FAA2F;IAC3F,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,6DAA6D;IAC7D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2DAA2D;IAC3D,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,oEAAoE;IACpE,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,+FAA+F;IAC/F,MAAM,CAAC,EAAE,4BAA4B,CAAC;CACvC;AAED,kGAAkG;AAClG,MAAM,MAAM,kBAAkB,GAAG,2BAA2B,GAC1D,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,oBAAoB,CAAC,GAAG;IAChE,8DAA8D;IAC9D,IAAI,EAAE,WAAW,CAAC;CACnB,CAAC"}
@@ -1,4 +1,4 @@
1
- /** CSS custom-property overrides for the `MessageSource` component. */
1
+ /** CSS custom-property overrides for `MessageSource`. */
2
2
  export interface MessageSourceColors {
3
3
  /** Button background color in the default state. */
4
4
  background?: string;
@@ -11,30 +11,30 @@ export interface MessageSourceColors {
11
11
  /** Button border color on hover and active. */
12
12
  borderHover?: string;
13
13
  }
14
- /** Typography overrides for the `MessageSource` component. */
14
+ /** Typography overrides for `MessageSource`. */
15
15
  export interface MessageSourceTypography {
16
16
  /** Tailwind (or custom) class applied to the button. */
17
17
  fontClassName?: string;
18
18
  }
19
- /** Combined style overrides (colors and typography) for the `MessageSource` component. */
19
+ /** Color and typography overrides for `MessageSource`. */
20
20
  export interface MessageSourceStyles {
21
21
  /** Color overrides applied as CSS custom properties. */
22
22
  colors?: MessageSourceColors;
23
23
  /** Typography overrides applied via CSS custom properties. */
24
24
  typography?: MessageSourceTypography;
25
- /** Extra class name(s) merged onto the button element. */
25
+ /** Extra class(es) on the button. */
26
26
  className?: string;
27
27
  }
28
- /** User-visible strings for the `MessageSource` component. */
28
+ /** Localised strings for `MessageSource`. */
29
29
  export interface MessageSourceLabels {
30
- /** Text label displayed inside the button. */
30
+ /** Button label text. */
31
31
  label: string;
32
32
  }
33
- /** Props accepted by the `MessageSource` component. */
33
+ /** Props for the `MessageSource` component. */
34
34
  export interface MessageSourceProps {
35
35
  /** User-visible strings. */
36
36
  labels: MessageSourceLabels;
37
- /** Called when the user clicks the source button. */
37
+ /** Fires on click. */
38
38
  onClick?: () => void;
39
39
  /** Color and typography overrides applied as CSS custom properties. */
40
40
  styles?: MessageSourceStyles;
@@ -1 +1 @@
1
- {"version":3,"file":"message-source.d.ts","sourceRoot":"","sources":["../../src/models/message-source.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,MAAM,WAAW,mBAAmB;IAClC,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,8DAA8D;AAC9D,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,0FAA0F;AAC1F,MAAM,WAAW,mBAAmB;IAClC,wDAAwD;IACxD,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,8DAA8D;IAC9D,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,8DAA8D;AAC9D,MAAM,WAAW,mBAAmB;IAClC,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;CACf;AAED,uDAAuD;AACvD,MAAM,WAAW,kBAAkB;IACjC,4BAA4B;IAC5B,MAAM,EAAE,mBAAmB,CAAC;IAC5B,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,uEAAuE;IACvE,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B"}
1
+ {"version":3,"file":"message-source.d.ts","sourceRoot":"","sources":["../../src/models/message-source.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,MAAM,WAAW,mBAAmB;IAClC,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,gDAAgD;AAChD,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,0DAA0D;AAC1D,MAAM,WAAW,mBAAmB;IAClC,wDAAwD;IACxD,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,8DAA8D;IAC9D,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,6CAA6C;AAC7C,MAAM,WAAW,mBAAmB;IAClC,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,+CAA+C;AAC/C,MAAM,WAAW,kBAAkB;IACjC,4BAA4B;IAC5B,MAAM,EAAE,mBAAmB,CAAC;IAC5B,sBAAsB;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,uEAAuE;IACvE,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-conversation-messages",
3
3
  "description": "Message bubble components for rendering conversation history with actions and source citations",
4
- "version": "1.1.0-dev.44",
4
+ "version": "1.1.0-dev.49",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -19,8 +19,8 @@
19
19
  "peerDependencies": {
20
20
  "react": "^19.0.0",
21
21
  "@tabler/icons-react": "^3.0.0",
22
- "@epam/ai-dial-chat-shared": "1.1.0-dev.44",
23
- "@epam/ai-dial-conversation-input": "1.1.0-dev.44",
22
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.49",
23
+ "@epam/ai-dial-conversation-input": "1.1.0-dev.49",
24
24
  "react-markdown": "^10.1.0",
25
25
  "@epam/ai-dial-ui-kit": "^0.13.0-dev.12"
26
26
  },
@@ -1,8 +1,8 @@
1
- /** Controls which corners of the message bubble are rounded, allowing adjacent bubbles to visually group together. */
1
+ /** Controls bubble corner rounding for grouping adjacent messages. */
2
2
  export declare enum BubblePosition {
3
- /** First bubble in a group — rounds the bottom-right corner. */
3
+ /** First bubble in a group; bottom-start corner is squared. */
4
4
  Bottom = "Bottom",
5
- /** Subsequent bubble in a group — rounds the top-right corner. */
5
+ /** Subsequent bubble in a group; top-start corner is squared. */
6
6
  Top = "Top"
7
7
  }
8
8
  //# sourceMappingURL=bubble-position.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bubble-position.d.ts","sourceRoot":"","sources":["../../src/types/bubble-position.ts"],"names":[],"mappings":"AAAA,sHAAsH;AACtH,oBAAY,cAAc;IACxB,gEAAgE;IAChE,MAAM,WAAW;IACjB,kEAAkE;IAClE,GAAG,QAAQ;CACZ"}
1
+ {"version":3,"file":"bubble-position.d.ts","sourceRoot":"","sources":["../../src/types/bubble-position.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oBAAY,cAAc;IACxB,+DAA+D;IAC/D,MAAM,WAAW;IACjB,iEAAiE;IACjE,GAAG,QAAQ;CACZ"}
@@ -1,5 +0,0 @@
1
- import { FC } from 'react';
2
- import { MessageSourceProps } from '../../models/message-source';
3
- /** Styled pill button for a message source reference. */
4
- export declare const MessageSource: FC<MessageSourceProps>;
5
- //# sourceMappingURL=MessageSource.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageSource.d.ts","sourceRoot":"","sources":["../../../src/components/MessageSource/MessageSource.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAGtE,yDAAyD;AACzD,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAiChD,CAAC"}