@epam/ai-dial-conversation-input 1.2.0-dev.21 → 1.2.0-dev.213

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.
Files changed (37) hide show
  1. package/components/AddAttachmentButton/AddAttachmentButton.d.ts +6 -0
  2. package/components/AddAttachmentButton/AddAttachmentButton.d.ts.map +1 -1
  3. package/components/ConversationInput/ConversationInput.d.ts.map +1 -1
  4. package/components/EditMessageInput/EditMessageInput.d.ts.map +1 -1
  5. package/components/Input/Input.d.ts +2 -3
  6. package/components/Input/Input.d.ts.map +1 -1
  7. package/components/Input/ModelSelectorControl.d.ts +3 -1
  8. package/components/Input/ModelSelectorControl.d.ts.map +1 -1
  9. package/components/ModelSelectorBottomSheet/ModelSelectorBottomSheet.d.ts +3 -0
  10. package/components/ModelSelectorBottomSheet/ModelSelectorBottomSheet.d.ts.map +1 -1
  11. package/components/ToolsChips/ToolsChips.d.ts +11 -0
  12. package/components/ToolsChips/ToolsChips.d.ts.map +1 -1
  13. package/constants/public-class-names.d.ts +41 -0
  14. package/constants/public-class-names.d.ts.map +1 -0
  15. package/hooks/useAttachments.d.ts.map +1 -1
  16. package/hooks/useCommandMenu/useCommandMenu.d.ts +35 -5
  17. package/hooks/useCommandMenu/useCommandMenu.d.ts.map +1 -1
  18. package/hooks/useComposerSeed.d.ts +32 -0
  19. package/hooks/useComposerSeed.d.ts.map +1 -0
  20. package/hooks/useMentionSelectionMirror.d.ts +22 -0
  21. package/hooks/useMentionSelectionMirror.d.ts.map +1 -0
  22. package/hooks/useModelSelector.d.ts +7 -13
  23. package/hooks/useModelSelector.d.ts.map +1 -1
  24. package/hooks/useTextInsertion.d.ts +24 -2
  25. package/hooks/useTextInsertion.d.ts.map +1 -1
  26. package/hooks/useVoiceRecorder.d.ts.map +1 -1
  27. package/index.css +2 -2
  28. package/index.d.ts +5 -2
  29. package/index.d.ts.map +1 -1
  30. package/index.js +1527 -1163
  31. package/models/ConversationInput.d.ts +99 -16
  32. package/models/ConversationInput.d.ts.map +1 -1
  33. package/models/Input.d.ts +201 -25
  34. package/models/Input.d.ts.map +1 -1
  35. package/package.json +4 -4
  36. package/utils/highlight-mirror.d.ts +17 -0
  37. package/utils/highlight-mirror.d.ts.map +1 -0
@@ -1,6 +1,7 @@
1
+ import { AttachmentTrayStyles } from '@epam/ai-dial-attachment-input';
1
2
  import { Attachment, AttachmentErrorReason, DeploymentItem, DisplayAttachment, ToolMenuItem, UploadedAttachmentResult } from '@epam/ai-dial-chat-shared';
2
3
  import { ReactNode } from 'react';
3
- import { ChatSettingsConfig, CommandMenuConfig, InputColors, InputTypography, MenuOverlayConfig, ModelSelectorLabels, SendOnEnter, TextInsertion, ToolsChipLabels } from './Input';
4
+ import { ActionRowLayout, ChatSettingsConfig, CommandMenuConfig, HighlightedTextRange, InputColors, InputTypography, MenuOverlayConfig, ModelMenuStyles, ModelSelectorLabels, SendOnEnter, TextInsertion, ToolsChipLabels } from './Input';
4
5
  import { TranscribeAudio } from './Voice';
5
6
  /** CSS custom-property overrides for the `ConversationInput` component. */
6
7
  export interface ConversationInputColors {
@@ -26,23 +27,71 @@ export interface ConversationInputStyles {
26
27
  colors?: ConversationInputColors;
27
28
  /** Typography overrides for the welcome heading and input. */
28
29
  typography?: ConversationInputTypography;
30
+ /**
31
+ * Style overrides for the composer's attachment tray. Its `card` slot
32
+ * carries `AttachmentCardStyles` through to every tile, which is how a host
33
+ * sizes a tile or restyles its meta line without a descendant selector on
34
+ * `ATTACHMENT_INPUT_CLASS`.
35
+ */
36
+ attachmentTray?: AttachmentTrayStyles;
37
+ /**
38
+ * Styling hooks for the model menu in both presentations — the desktop
39
+ * dropdown and the mobile sheet — so a host restyles its panel, search row
40
+ * and selected row without a descendant selector on
41
+ * `CONVERSATION_INPUT_CLASS.modelMenu*`.
42
+ */
43
+ modelMenu?: ModelMenuStyles;
29
44
  }
30
45
  /** Props accepted by the `EditMessageInput` component. */
31
46
  export interface EditMessageInputProps {
32
47
  /** Initial message text pre-populated in the textarea. */
33
48
  message?: string;
34
49
  /**
35
- * Host-supplied content rendered inside the text area at its inline-start;
36
- * typed text starts after it on the first line and wraps at full width
37
- * below. Forwarded to the inner `Input`.
50
+ * Optional token that forces the textarea to resync from `message`, even
51
+ * when `message` itself is the same string as before (e.g. the host
52
+ * spliced a mention into its own copy of the draft at a known position and
53
+ * needs the textarea to adopt it). Forwarded to the inner `Input`.
54
+ */
55
+ messageRevision?: number;
56
+ /**
57
+ * Called with the textarea's current value on every change (typing,
58
+ * deleting, pasting, undo/redo) — not only on save. A host tracking live
59
+ * state derived from the draft (e.g. skill-mention anchors that must
60
+ * reconcile as the user edits around them) wires this; omit it to ignore
61
+ * keystrokes between saves.
62
+ */
63
+ onChange?: (message: string) => void;
64
+ /**
65
+ * Ranges of `message` rendered as highlighted runs (e.g. a restored skill
66
+ * mention). Forwarded to the inner `Input`.
38
67
  */
39
- inlineStartSlot?: ReactNode;
68
+ activeMentions?: HighlightedTextRange[];
40
69
  /**
41
- * Called when Backspace is pressed with the caret collapsed at position 0
42
- * while `inlineStartSlot` content is shown (the slot's remove gesture).
70
+ * Called on Backspace with the caret collapsed at some position, to ask
71
+ * whether a tracked range ends exactly there — see `Input`'s prop of the
72
+ * same name. Forwarded to the inner `Input`.
73
+ */
74
+ onBackspaceAtCaret?: (caretPosition: number) => HighlightedTextRange | undefined;
75
+ /**
76
+ * One-shot caret placement applied whenever the internal message resyncs
77
+ * from a new `message` value (e.g. right after inserting a mention).
43
78
  * Forwarded to the inner `Input`.
44
79
  */
45
- onInlineStartRemove?: () => void;
80
+ caretPositionOverride?: number;
81
+ /**
82
+ * Host-injected slash-command menu, forwarded to the inner `Input` — see
83
+ * `Input`'s prop of the same name. Absent disables the mechanism during
84
+ * edit.
85
+ */
86
+ commandMenu?: CommandMenuConfig;
87
+ /**
88
+ * Host-injected overlay entries for the `+` menu. `EditMessageInput` hides
89
+ * the inner `Input`'s own footer (`hideActionBar`) and renders its own
90
+ * external `AddAttachmentButton` instead, so these entries are forwarded to
91
+ * that button, not to `Input`. Absent renders no add-menu overlay entries
92
+ * during edit.
93
+ */
94
+ menuOverlays?: MenuOverlayConfig[];
46
95
  /** Pre-existing attachments from the original message, shown in the attachment tray. */
47
96
  initialAttachments?: DisplayAttachment[];
48
97
  /** Called when the user clicks the Cancel button. */
@@ -149,8 +198,25 @@ export interface EditMessageInputProps {
149
198
  }
150
199
  /** Props accepted by the `ConversationInput` component. */
151
200
  export interface ConversationInputProps {
201
+ /** Changing this token requests textarea focus without altering its value or caret. */
202
+ focusRequestId?: number;
152
203
  /** Placeholder text shown inside the textarea when empty. */
153
204
  placeholder?: string;
205
+ /**
206
+ * How the action row arranges the textarea and the controls around it.
207
+ * Defaults to `ActionRowLayout.Stacked`. `ActionRowLayout.Inline` applies
208
+ * from the desktop breakpoint (1280px) up, unless
209
+ * `isInlineActionRowAllowedBelowDesktop` opts the narrower widths in.
210
+ */
211
+ actionRowLayout?: ActionRowLayout;
212
+ /**
213
+ * When `true`, `ActionRowLayout.Inline` also applies below the desktop
214
+ * breakpoint (1280px). Set it when the embedded composer is wide enough
215
+ * there — a phone-width one is not. Affects the action row alone: the add
216
+ * menu and model picker keep their bottom-sheet presentation. Defaults to
217
+ * `false`.
218
+ */
219
+ isInlineActionRowAllowedBelowDesktop?: boolean;
154
220
  /**
155
221
  * Message value. Sets the initial textarea content on mount and syncs the
156
222
  * textarea whenever the value changes.
@@ -161,6 +227,14 @@ export interface ConversationInputProps {
161
227
  * when `message` itself is the same string as before.
162
228
  */
163
229
  messageRevision?: number;
230
+ /**
231
+ * Called with the textarea's current value on every change (typing,
232
+ * deleting, pasting, undo/redo) — not only on send. A host tracking live
233
+ * state derived from the draft (e.g. skill-mention anchors that must
234
+ * reconcile as the user edits around them) wires this; omit it to ignore
235
+ * keystrokes between sends, as before this prop existed.
236
+ */
237
+ onChange?: (message: string) => void;
164
238
  /**
165
239
  * Text inserted at the caret each time its `revision` changes, leaving the
166
240
  * surrounding draft intact. Unlike `message`, this never replaces what the
@@ -172,6 +246,8 @@ export interface ConversationInputProps {
172
246
  welcomeText?: string;
173
247
  /** Optional description text rendered below the welcome heading. Ignored when `welcomeText` is absent. */
174
248
  descriptionText?: string;
249
+ /** Slot rendered between the welcome heading and the input, e.g. conversation starters. */
250
+ belowWelcomeSlot?: ReactNode;
175
251
  /** Called when the user submits a message (Enter or send button). Receives the current local attachments as the second argument. */
176
252
  onSend?: (message: string, attachments: Attachment[]) => void;
177
253
  /** Called immediately after an attachment is added. Returns the uploaded attachment URL and stored name. */
@@ -220,6 +296,8 @@ export interface ConversationInputProps {
220
296
  sendLabel?: string;
221
297
  /** Tooltip shown on hover over the send button. */
222
298
  sendTooltip?: string;
299
+ /** Tooltip for an empty composer (no text, attachments, or inline-start slot). Defaults to sendTooltip. */
300
+ emptyMessageTooltip?: string;
223
301
  /** Accessible label for the stop button. */
224
302
  stopLabel?: string;
225
303
  /** Accessible label for each attachment card's remove button. Defaults to `'Remove attachment'`. */
@@ -379,17 +457,22 @@ export interface ConversationInputProps {
379
457
  */
380
458
  menuOverlays?: MenuOverlayConfig[];
381
459
  /**
382
- * Host-supplied content rendered inside the text area at its inline-start;
383
- * typed text starts after it on the first line and wraps at full width
384
- * below. Forwarded to the inner `Input`.
460
+ * Ranges of `message` rendered as highlighted runs (e.g. a tracked skill
461
+ * mention). Forwarded to the inner `Input`.
385
462
  */
386
- inlineStartSlot?: ReactNode;
463
+ activeMentions?: HighlightedTextRange[];
387
464
  /**
388
- * Called when Backspace is pressed with the caret collapsed at position 0
389
- * while `inlineStartSlot` is present (the slot's remove gesture). Forwarded
390
- * to the inner `Input`.
465
+ * Called on Backspace with the caret collapsed at some position, to ask
466
+ * whether a tracked range ends exactly there — see `Input`'s prop of the
467
+ * same name. Forwarded to the inner `Input`.
468
+ */
469
+ onBackspaceAtCaret?: (caretPosition: number) => HighlightedTextRange | undefined;
470
+ /**
471
+ * One-shot caret placement applied whenever the internal message resyncs
472
+ * from a new `message` value (e.g. right after inserting a mention).
473
+ * Forwarded to the inner `Input`.
391
474
  */
392
- onInlineStartRemove?: () => void;
475
+ caretPositionOverride?: number;
393
476
  /**
394
477
  * Host-injected slash-command menu: typing `triggerPrefix` as the first
395
478
  * character of an empty textarea — or pasting into an empty textarea a
@@ -1 +1 @@
1
- {"version":3,"file":"ConversationInput.d.ts","sourceRoot":"","sources":["../../src/models/ConversationInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,wBAAwB,EACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,eAAe,EAChB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,2EAA2E;AAC3E,MAAM,WAAW,uBAAuB;IACtC,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gEAAgE;IAChE,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,kEAAkE;AAClE,MAAM,WAAW,2BAA2B;IAC1C,qGAAqG;IACrG,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,4GAA4G;IAC5G,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qEAAqE;IACrE,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;AAED,qFAAqF;AACrF,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,8DAA8D;IAC9D,UAAU,CAAC,EAAE,2BAA2B,CAAC;CAC1C;AAED,0DAA0D;AAC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G;IACH,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,4IAA4I;IAC5I,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1D"}
1
+ {"version":3,"file":"ConversationInput.d.ts","sourceRoot":"","sources":["../../src/models/ConversationInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EACV,UAAU,EACV,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,wBAAwB,EACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,eAAe,EAChB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,2EAA2E;AAC3E,MAAM,WAAW,uBAAuB;IACtC,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gEAAgE;IAChE,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,kEAAkE;AAClE,MAAM,WAAW,2BAA2B;IAC1C,qGAAqG;IACrG,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,4GAA4G;IAC5G,oBAAoB,CAAC,EAAE,MAAM,CA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AC;IAC/B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,4IAA4I;IAC5I,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1D"}
package/models/Input.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { AttachmentTrayStyles } from '@epam/ai-dial-attachment-input';
1
2
  import { Attachment, AttachmentErrorReason, DeploymentFeatures, DeploymentItem, DisplayAttachment, ResponseFormat, ToolMenuItem, UploadedAttachmentResult } from '@epam/ai-dial-chat-shared';
2
3
  import { ReactNode } from 'react';
3
4
  import { TranscribeAudio } from './Voice';
@@ -8,6 +9,13 @@ export declare enum SendOnEnter {
8
9
  /** ⌘+Enter (macOS) / Ctrl+Enter (Windows/Linux) submits; bare Enter inserts a newline. */
9
10
  MetaEnter = "meta-enter"
10
11
  }
12
+ /** Controls how the `Input` component arranges the textarea and the controls around it. */
13
+ export declare enum ActionRowLayout {
14
+ /** Textarea occupies its own line; the add button, tool chips, and footer actions wrap below it. */
15
+ Stacked = "stacked",
16
+ /** Add button, textarea, and footer actions share one line; tool chips move to their own row above. Applies below the desktop breakpoint only when the host opts in. */
17
+ Inline = "inline"
18
+ }
11
19
  /** CSS custom-property overrides for the `Input` component. */
12
20
  export interface InputColors {
13
21
  /** Input area background color. */
@@ -38,6 +46,14 @@ export interface InputColors {
38
46
  voiceWaveform?: string;
39
47
  /** Voice bar stop button and recording-dot accent color. Defaults to `--text-error`. */
40
48
  voiceAccent?: string;
49
+ /** Background color of a tracked skill mention's highlighted run. Defaults to `--bg-control-accent-alpha`. */
50
+ mentionHighlightBg?: string;
51
+ /** Text color of a tracked skill mention's highlighted run. Defaults to `--text-accent`. */
52
+ mentionHighlightText?: string;
53
+ /** Background color of a tracked skill mention's highlighted run while unsupported. Defaults to `--bg-error`. */
54
+ mentionHighlightUnsupportedBg?: string;
55
+ /** Text color of a tracked skill mention's highlighted run while unsupported. Defaults to `--text-error`. */
56
+ mentionHighlightUnsupportedText?: string;
41
57
  }
42
58
  /** Typography overrides for the `Input` component. */
43
59
  export interface InputTypography {
@@ -61,10 +77,51 @@ export interface ModelSelectorLabels {
61
77
  /** Tooltip shown when the selected deployment is no longer available (e.g. removed from the catalog). Defaults to `'This deployment is no longer available'`. */
62
78
  unavailableTooltip?: string;
63
79
  }
80
+ /** Color overrides for the model menu, applied as CSS custom properties. */
81
+ export interface ModelMenuColors {
82
+ /**
83
+ * Background of the search row above the deployment list. Defaults to
84
+ * `--bg-layer-raised` in the desktop dropdown, where the row is sticky over
85
+ * scrolling items, and to transparent in the mobile sheet.
86
+ */
87
+ searchHeaderBackground?: string;
88
+ /** Label and icon color of every deployment row. Defaults to `--text-primary`. */
89
+ itemText?: string;
90
+ /** Background of a hovered deployment row. Defaults to `--bg-control-accent-alpha-hover` on desktop and `--bg-layer-raised` in the sheet. */
91
+ itemHoverBackground?: string;
92
+ /** Background of the selected deployment row at rest. Defaults to none. */
93
+ selectedItemBackground?: string;
94
+ /** Label color of the selected deployment row. Defaults to `itemText`. */
95
+ selectedItemText?: string;
96
+ /** Color of the check mark on the selected row. Defaults to the row's text color on desktop and `--text-accent` in the sheet. */
97
+ checkIcon?: string;
98
+ }
99
+ /**
100
+ * Styling hooks for the model menu, applied in both presentations: the desktop
101
+ * dropdown and the mobile bottom sheet. Every class is merged after the
102
+ * component's own, so a conflicting utility replaces the default rather than
103
+ * landing beside it.
104
+ */
105
+ export interface ModelMenuStyles {
106
+ /** Class on the menu panel: the dropdown overlay on desktop, the sheet on mobile. Also applied when `modelPickerOverlay` supplies the content. */
107
+ className?: string;
108
+ /** Class on the search row above the deployment list. */
109
+ searchHeaderClassName?: string;
110
+ /** Class on every deployment row. */
111
+ itemClassName?: string;
112
+ /** Class on the currently selected deployment row, additive to `itemClassName`. */
113
+ selectedItemClassName?: string;
114
+ /** Color overrides applied as CSS custom properties. */
115
+ colors?: ModelMenuColors;
116
+ }
64
117
  /** Labels for the tool chips rendered in the conversation input. */
65
118
  export interface ToolsChipLabels {
66
119
  /** Returns the accessible label for a chip's × button, which drops the tool from the input. Receives the tool label. Defaults to `"Remove {toolLabel}"`. */
67
120
  removeLabel?: (toolLabel: string) => string;
121
+ /** Visible state text shown after the tool label while the tool is on, e.g. `"ON"`. Renders only when `stateOffLabel` is also set. */
122
+ stateOnLabel?: string;
123
+ /** Visible state text shown after the tool label while the tool is off, e.g. `"OFF"`. Renders only when `stateOnLabel` is also set. */
124
+ stateOffLabel?: string;
68
125
  }
69
126
  /** A host-injected overlay entry for the `+` menu: a menu item whose submenu renders host-owned content. */
70
127
  export interface MenuOverlayConfig {
@@ -74,8 +131,18 @@ export interface MenuOverlayConfig {
74
131
  title: string;
75
132
  /** Icon node rendered to the left of the menu-item label. */
76
133
  icon: ReactNode;
77
- /** Renders the overlay panel content. Receives a callback the panel calls to close the whole menu once selection is complete. */
78
- renderOverlay: (onClose: () => void) => ReactNode;
134
+ /**
135
+ * Renders the overlay panel content. Receives a callback the panel calls to
136
+ * close the whole menu once selection is complete, and the textarea's
137
+ * caret offset at the moment the overlay opened (0 when it cannot be
138
+ * determined) — e.g. so a selection made here can splice text in at that
139
+ * exact position via `message`/`messageRevision`/`caretPositionOverride`.
140
+ * The content is mounted inside a `role="menu"` container — the desktop
141
+ * submenu panel or the mobile sheet's wrapper — so selectable rows should
142
+ * be `role="menuitem"`: those are the rows the desktop submenu's
143
+ * ArrowUp/ArrowDown/Home/End navigation moves between.
144
+ */
145
+ renderOverlay: (onClose: () => void, caretPosition: number) => ReactNode;
79
146
  /** Accessible label for the back arrow in the mobile stacked bottom sheet. Defaults to `'Back'`. */
80
147
  backLabel?: string;
81
148
  }
@@ -83,6 +150,8 @@ export interface MenuOverlayConfig {
83
150
  export interface CommandMenuContext {
84
151
  /** Current query: the value typed after the trigger prefix, with no whitespace or second prefix character. */
85
152
  query: string;
153
+ /** Character offset where the triggering word (prefix + query) starts in the textarea's current value. */
154
+ caretPosition: number;
86
155
  /**
87
156
  * Closes the menu. Pass `{ consumeQuery: true }` to also remove the trigger
88
157
  * prefix and query from the textarea (the selection path — the `/query`
@@ -91,10 +160,33 @@ export interface CommandMenuContext {
91
160
  close: (options?: {
92
161
  consumeQuery?: boolean;
93
162
  }) => void;
163
+ /**
164
+ * Id the menu puts on its `role="listbox"` element. The textarea references
165
+ * it through `aria-controls` while the menu is open.
166
+ */
167
+ listboxId: string;
168
+ /**
169
+ * Id of the option the keyboard currently has active, or `null` when none
170
+ * is. The textarea moves it through the menu's `role="option"` elements
171
+ * with ArrowDown/ArrowUp (wrapping at the ends) and exposes it through
172
+ * `aria-activedescendant`; the menu marks the matching option with
173
+ * `aria-selected="true"` and a visible highlight. Enter clicks the active
174
+ * option, so an option's `onClick` is its selection path for mouse and
175
+ * keyboard alike. Options must carry unique `id`s; one with
176
+ * `aria-disabled="true"` is skipped. Reset whenever the query changes.
177
+ */
178
+ activeOptionId: string | null;
94
179
  }
95
- /** Host-injected slash-command menu: an overlay opened by entering a trigger prefix into an empty textarea — typed or pasted. */
180
+ /**
181
+ * Host-injected slash-command menu: an overlay opened by entering a trigger
182
+ * prefix as its own word anywhere in the textarea. While it is open the
183
+ * textarea drives it as a list autocomplete: ArrowDown/ArrowUp move the
184
+ * active option (instead of navigating message history), Enter takes the
185
+ * active option and never sends the message, and Escape closes the menu
186
+ * keeping the text.
187
+ */
96
188
  export interface CommandMenuConfig {
97
- /** Prefix that opens the menu when entered into an empty textarea (e.g. `'/'`) — typed as its first character, or arriving in a paste whose result is the prefix alone or with a whitespace-free query. */
189
+ /** Prefix that opens the menu when it starts a whitespace-delimited word (e.g. `'/'`) — typed as the word's first character, or arriving in a paste that produces such a word. */
98
190
  triggerPrefix: string;
99
191
  /** Renders the menu content for the current query. */
100
192
  renderMenu: (ctx: CommandMenuContext) => ReactNode;
@@ -107,6 +199,35 @@ export interface CommandMenuConfig {
107
199
  /** Accessible name for the menu region. When absent, the content is rendered without a labeled wrapper. */
108
200
  menuLabel?: string;
109
201
  }
202
+ /**
203
+ * A range within `Input`'s current `message` text, rendered as a highlighted
204
+ * run (e.g. a skill mention's `/{name}` text). Positional only — beyond
205
+ * placement, `Input` attaches no meaning to what a range represents.
206
+ */
207
+ export interface HighlightedTextRange {
208
+ /** Character offset where the highlighted run starts. */
209
+ start: number;
210
+ /** Length of the highlighted run. */
211
+ length: number;
212
+ /**
213
+ * Renders the run in its error styling instead of the default highlight
214
+ * (e.g. a skill mention selected on a deployment that doesn't support
215
+ * skills). Ignored when `render` is provided — the renderer owns its own
216
+ * error styling. Defaults to `false`.
217
+ */
218
+ isUnsupported?: boolean;
219
+ /**
220
+ * Renders this range as host-owned content (e.g. `ChatSkill`, the same
221
+ * interactive chip a sent message renders it as) instead of the default
222
+ * highlight span. Unlike the rest of the mirror — which duplicates the
223
+ * textarea's own text purely for visual highlighting and stays inert
224
+ * (`pointer-events: none`, `aria-hidden`) — the returned node is rendered
225
+ * with real pointer events and outside `aria-hidden`, so hover/focus/click
226
+ * (a tooltip, a "View details" action) work exactly as they do once the
227
+ * mention is part of sent history.
228
+ */
229
+ render?: () => ReactNode;
230
+ }
110
231
  /** One-shot text hand-off that the `Input` inserts at the caret. */
111
232
  export interface TextInsertion {
112
233
  /** Text inserted at the caret, replacing whatever is selected. */
@@ -114,8 +235,20 @@ export interface TextInsertion {
114
235
  /** Token that performs the insertion; bump it to insert the same text again. */
115
236
  revision: number;
116
237
  }
238
+ /**
239
+ * Imperative handle exposed by `Input` via `ref`. Lets a host that renders
240
+ * its own UI outside `Input` (e.g. `EditMessageInput`'s external add-menu
241
+ * button, which sits alongside `Input` rather than inside it) read the live
242
+ * caret position without owning the textarea itself.
243
+ */
244
+ export interface InputHandle {
245
+ /** The textarea's current caret offset (its `selectionStart`), or the message's length when it cannot be read. */
246
+ getCaretPosition: () => number;
247
+ }
117
248
  /** Props accepted by the `Input` component. */
118
249
  export interface InputProps {
250
+ /** Changing this token requests textarea focus without altering its value or caret. */
251
+ focusRequestId?: number;
119
252
  /**
120
253
  * Message value. Sets the initial textarea content on mount and syncs the
121
254
  * textarea whenever the value changes.
@@ -129,8 +262,9 @@ export interface InputProps {
129
262
  /**
130
263
  * Text inserted at the caret each time its `revision` changes, leaving the
131
264
  * surrounding draft intact. Unlike `message`, this never replaces what the
132
- * user has written, and it is made through the browser's editing pipeline so
133
- * the native undo shortcut reverts it.
265
+ * user has written, and `Ctrl`/`Cmd`+`Z` undoes it. The insert lands one
266
+ * microtask after the render that requests it, and leaves the caret after
267
+ * the inserted text.
134
268
  */
135
269
  textInsertion?: TextInsertion;
136
270
  /** Called on every keystroke with the current textarea value. */
@@ -153,6 +287,13 @@ export interface InputProps {
153
287
  colors?: InputColors;
154
288
  /** Typography overrides applied as CSS custom properties. */
155
289
  typography?: InputTypography;
290
+ /**
291
+ * Style overrides for the attachment tray inside the composer and, through
292
+ * its `card` slot, for every tile in it.
293
+ */
294
+ attachmentTray?: AttachmentTrayStyles;
295
+ /** Styling hooks for the model menu: its panel, search row and deployment rows. */
296
+ modelMenu?: ModelMenuStyles;
156
297
  /** Label for the attach-file menu item. */
157
298
  attachLabel?: string;
158
299
  /**
@@ -175,6 +316,8 @@ export interface InputProps {
175
316
  sendLabel?: string;
176
317
  /** Tooltip shown on hover over the send button. */
177
318
  sendTooltip?: string;
319
+ /** Tooltip for an empty composer (no text, attachments, or inline-start slot). Defaults to sendTooltip. */
320
+ emptyMessageTooltip?: string;
178
321
  /** Accessible label for the stop button. */
179
322
  stopLabel?: string;
180
323
  /** Extra class name(s) merged onto the root wrapper element. */
@@ -253,6 +396,21 @@ export interface InputProps {
253
396
  * `EditMessageInput` where the action row lives outside the bordered box.
254
397
  */
255
398
  hideActionBar?: boolean;
399
+ /**
400
+ * How the action row arranges the textarea and the controls around it.
401
+ * Defaults to `ActionRowLayout.Stacked`. `ActionRowLayout.Inline` applies
402
+ * from the desktop breakpoint (1280px) up, unless
403
+ * `isInlineActionRowAllowedBelowDesktop` opts the narrower widths in.
404
+ */
405
+ actionRowLayout?: ActionRowLayout;
406
+ /**
407
+ * When `true`, `ActionRowLayout.Inline` also applies below the desktop
408
+ * breakpoint (1280px). Set it when the embedded composer is wide enough
409
+ * there — a phone-width one is not. Affects the action row alone: the add
410
+ * menu and model picker keep their bottom-sheet presentation. Defaults to
411
+ * `false`.
412
+ */
413
+ isInlineActionRowAllowedBelowDesktop?: boolean;
256
414
  /**
257
415
  * When provided, replaces the default send/stop/model-selector area with custom content.
258
416
  * Receives `canSend` (textarea has non-empty trimmed content) and `onSend` (triggers the
@@ -339,21 +497,33 @@ export interface InputProps {
339
497
  */
340
498
  menuOverlays?: MenuOverlayConfig[];
341
499
  /**
342
- * Host-supplied content rendered inside the text area at its inline-start;
343
- * typed text starts after it on the first line and wraps at full width
344
- * below. The slot's width is measured and the first text line indents past
345
- * it, and the placeholder is suppressed. Absent renders the text area
346
- * unchanged.
500
+ * Ranges of `message` rendered as highlighted runs — e.g. a host-tracked
501
+ * skill mention's `/{name}` text. The textarea's own text is rendered
502
+ * transparent (its caret stays visible and normally colored) and a
503
+ * non-interactive mirror underneath renders the same text with each range
504
+ * wrapped in a highlight span, so the highlighted text stays pixel-aligned
505
+ * with the real, editable characters underneath it. Carries no semantic
506
+ * meaning to `Input` beyond where to draw a highlight. Absent (or empty)
507
+ * renders the text area unchanged, with normal (non-transparent) text.
508
+ */
509
+ activeMentions?: HighlightedTextRange[];
510
+ /**
511
+ * Called on Backspace with the caret collapsed at some position, to ask the
512
+ * host whether a tracked range ends exactly there. Returning a range makes
513
+ * `Input` delete that whole range in one native edit (preserving undo)
514
+ * instead of the browser's default single-character deletion; returning
515
+ * `undefined` leaves Backspace unhandled. Absent disables the mechanism
516
+ * entirely (ordinary Backspace behavior).
347
517
  */
348
- inlineStartSlot?: ReactNode;
518
+ onBackspaceAtCaret?: (caretPosition: number) => HighlightedTextRange | undefined;
349
519
  /**
350
- * Called when Backspace is pressed with the caret collapsed at position 0
351
- * while `inlineStartSlot` is present — the slot's remove gesture (there is
352
- * nothing to delete backwards at position 0, so the keypress is redirected
353
- * to the slot and suppressed). Absent leaves Backspace with no slot-side
354
- * behavior.
520
+ * One-shot caret placement applied whenever `messageRevision` changes (e.g.
521
+ * right after the host pushes a new `message` that inserted a mention at a
522
+ * known position) — moves the caret there once, after the value updates.
523
+ * Absent leaves the caret wherever the browser puts it after the value
524
+ * change.
355
525
  */
356
- onInlineStartRemove?: () => void;
526
+ caretPositionOverride?: number;
357
527
  /**
358
528
  * Host-injected slash-command menu. When provided, typing `triggerPrefix`
359
529
  * as the first character of an empty textarea — or pasting into an empty
@@ -361,13 +531,19 @@ export interface InputProps {
361
531
  * whitespace-free, prefix-free query — opens an overlay above the input;
362
532
  * it stays open while the value keeps matching the prefix followed by a
363
533
  * query with no whitespace or second prefix character, and closes on
364
- * unmatch, Escape, or an outside click (a dismissed menu reopens only
365
- * after the value stops matching and the trigger is typed or pasted
366
- * again). Any other pasted value, and any paste into a non-empty
367
- * textarea, inserts as a regular paste and opens nothing. Selection
368
- * typically goes through `ctx.close({ consumeQuery: true })`, which
369
- * removes the `/query` text from the textarea. Absent disables the
370
- * mechanism.
534
+ * unmatch, Escape, or an outside click. Escape is the one dismissal that
535
+ * latches: the menu stays closed over that same word until the value stops
536
+ * matching and the trigger is typed or pasted again. An outside click only
537
+ * closes it for the moment — typing/deleting within the same still-matching
538
+ * word, or moving the caret back into it (a click, or refocusing the
539
+ * textarea), reopens it with no need to retype the trigger. A message can
540
+ * hold more than one command-shaped word at once; the menu always tracks
541
+ * whichever one the caret is actually in, re-evaluated on every such caret
542
+ * move rather than assumed from whichever word was active before. Any other
543
+ * pasted value, and any paste into a non-empty textarea, inserts as a
544
+ * regular paste and opens nothing. Selection typically goes through
545
+ * `ctx.close({ consumeQuery: true })`, which removes the `/query` text from
546
+ * the textarea. Absent disables the mechanism.
371
547
  */
372
548
  commandMenu?: CommandMenuConfig;
373
549
  /** When `true`, focuses the textarea on mount. Defaults to `false`. */
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../src/models/Input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,wBAAwB,EACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,mFAAmF;AACnF,oBAAY,WAAW;IACrB,oDAAoD;IACpD,KAAK,UAAU;IACf,0FAA0F;IAC1F,SAAS,eAAe;CACzB;AAED,+DAA+D;AAC/D,MAAM,WAAW,WAAW;IAC1B,mCAAmC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2IAA2I;IAC3I,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mGAAmG;IACnG,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,wFAAwF;IACxF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,6FAA6F;IAC7F,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sFAAsF;IACtF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wFAAwF;IACxF,WAAW,CAAC,EAAE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AAE,MAAM,CAAC;IAC3B,gFAAgF;IAChF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,4HAA4H;IAC5H,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,qDAAqD;IACrD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+FAA+F;IAC/F,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kGAAkG;IAClG,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-conversation-input",
3
3
  "description": "Conversation message input with model selection, attachments, voice input, and edit mode",
4
- "version": "1.2.0-dev.21",
4
+ "version": "1.2.0-dev.213",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -19,13 +19,13 @@
19
19
  "dependencies": {
20
20
  "react-window": "^2.2.7",
21
21
  "@tabler/icons-react": "^3.44.0",
22
- "@epam/ai-dial-attachment-input": "1.2.0-dev.21"
22
+ "@epam/ai-dial-attachment-input": "1.2.0-dev.213"
23
23
  },
24
24
  "peerDependencies": {
25
- "@epam/ai-dial-chat-shared": "1.2.0-dev.21",
25
+ "@epam/ai-dial-chat-shared": "1.2.0-dev.213",
26
26
  "react": "^19.2.8",
27
27
  "react-dom": "^19.2.8",
28
- "@epam/ai-dial-ui-kit": "^0.14.2"
28
+ "@epam/ai-dial-ui-kit": "^0.15.0-dev.27"
29
29
  },
30
30
  "repository": {
31
31
  "type": "git",
@@ -0,0 +1,17 @@
1
+ import { ReactNode } from 'react';
2
+ import { HighlightedTextRange } from '../models/Input';
3
+ export interface MirrorInsertion {
4
+ offset: number;
5
+ /** A React element carrying its own `key`. */
6
+ node: ReactNode;
7
+ }
8
+ export declare const renderHighlightedText: (text: string, ranges: HighlightedTextRange[], insertions: MirrorInsertion[], mentionHighlightClassName: string, mentionHighlightUnsupportedClassName: string) => ReactNode[];
9
+ /**
10
+ * A DOM `Range` spanning `[start, end)` characters of `message` within the
11
+ * highlight mirror, or `null` when either boundary can't be located (see
12
+ * `locateMirrorOffset`). Used to read the exact, wrap-aware pixel rectangles
13
+ * of the current native text selection via `Range.getClientRects()`, rather
14
+ * than re-deriving line-wrapping by hand.
15
+ */
16
+ export declare const buildMirrorSelectionRange: (root: HTMLElement, start: number, end: number) => Range | null;
17
+ //# sourceMappingURL=highlight-mirror.d.ts.map