@progress/kendo-react-conversational-ui 13.3.0 → 13.4.0-develop.1

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 (66) hide show
  1. package/ai-prompt/AIPrompt.d.ts +176 -0
  2. package/ai-prompt/AIPromptContent.d.ts +30 -0
  3. package/ai-prompt/AIPromptContext.d.ts +32 -0
  4. package/ai-prompt/AIPromptExpander.d.ts +23 -0
  5. package/ai-prompt/AIPromptFooter.d.ts +22 -0
  6. package/ai-prompt/AIPromptHeader.d.ts +39 -0
  7. package/ai-prompt/views/AIPromptCommandsView.d.ts +58 -0
  8. package/ai-prompt/views/AIPromptOutputView.d.ts +63 -0
  9. package/ai-prompt/views/AIPromptView.d.ts +43 -0
  10. package/ai-prompt/views/AIPromptView.mjs +5 -5
  11. package/ai-prompt/views/AIPromptViewRender.d.ts +26 -0
  12. package/ai-prompt/views/constants.d.ts +20 -0
  13. package/api/action.interface.d.ts +36 -0
  14. package/api/attachment.interface.d.ts +37 -0
  15. package/api/message.interface.d.ts +99 -0
  16. package/api/user.interface.d.ts +29 -0
  17. package/chat/ChatPropsAndState.d.ts +498 -0
  18. package/chat/Events.d.ts +50 -0
  19. package/chat/ViewItem.d.ts +64 -0
  20. package/chat/components/Action.d.ts +25 -0
  21. package/chat/components/ActionGroup.d.ts +26 -0
  22. package/chat/components/Attachment.d.ts +27 -0
  23. package/chat/components/AttachmentGroup.d.ts +24 -0
  24. package/chat/components/Chat.d.ts +13 -0
  25. package/chat/components/ChatContext.d.ts +45 -0
  26. package/chat/components/ChatMessage.d.ts +110 -0
  27. package/chat/components/ChatMessage.mjs +6 -6
  28. package/chat/components/DateMarker.d.ts +23 -0
  29. package/chat/components/Header.d.ts +13 -0
  30. package/chat/components/MessageGroup.d.ts +37 -0
  31. package/chat/components/NewMessage.d.ts +52 -0
  32. package/chat/components/Notification.d.ts +26 -0
  33. package/chat/components/ScrollButtonsWrapper.d.ts +47 -0
  34. package/chat/components/SuggestionsGroup.d.ts +63 -0
  35. package/chat/components/elements/FileBox.d.ts +37 -0
  36. package/chat/components/elements/FileBox.mjs +3 -3
  37. package/chat/components/elements/PinnedMessage.d.ts +22 -0
  38. package/chat/components/templates/HeroCard.d.ts +43 -0
  39. package/chat/hooks/useScrollWithButtons.d.ts +57 -0
  40. package/chat/utils/fieldMapping.d.ts +56 -0
  41. package/chat/utils/messageSettings.d.ts +82 -0
  42. package/chat/utils/scroll.d.ts +32 -0
  43. package/chat/utils.d.ts +41 -0
  44. package/codemods/v12/author-id.js +1 -8
  45. package/codemods/v12/chat-send-message.js +2 -9
  46. package/codemods/v12/index.js +0 -7
  47. package/codemods/v12/message-template.js +1 -8
  48. package/codemods/v12/send-message.js +1 -8
  49. package/codemods/v12/show-toolbar.js +1 -8
  50. package/codemods/v12/toolbar-action-execute.js +1 -8
  51. package/codemods/v12/toolbar.js +1 -8
  52. package/codemods/v12/utils.js +2 -9
  53. package/dist/cdn/js/kendo-react-conversational-ui.js +1 -1
  54. package/index.d.mts +23 -1627
  55. package/index.d.ts +23 -1627
  56. package/inline-ai-prompt/InlineAIPrompt.d.ts +163 -0
  57. package/inline-ai-prompt/InlineAIPrompt.mjs +4 -4
  58. package/inline-ai-prompt/InlineAIPromptInput.d.ts +62 -0
  59. package/inline-ai-prompt/InlineAIPromptInput.js +2 -2
  60. package/inline-ai-prompt/InlineAIPromptInput.mjs +45 -44
  61. package/inline-ai-prompt/InlineAIPromptPopup.d.ts +57 -0
  62. package/messages/index.d.ts +112 -0
  63. package/package-metadata.d.ts +12 -0
  64. package/package-metadata.js +1 -1
  65. package/package-metadata.mjs +11 -16
  66. package/package.json +11 -11
@@ -0,0 +1,99 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { Action } from './action.interface.js';
9
+ import { Attachment, AttachmentLayout } from './attachment.interface.js';
10
+ import { User } from './user.interface.js';
11
+ /**
12
+ * Represents a Chat message.
13
+ *
14
+ * > * Provide the `author` field.
15
+ * > * [Local users](https://www.telerik.com/kendo-react-ui/components/conversational-ui/api/chatprops#toc-user) display to the right in left-to-right languages and to the left in right-to-left languages.
16
+ * > * If `typing` is `true`, the Chat displays a typing indicator instead of text.
17
+ */
18
+ export interface Message {
19
+ /**
20
+ * Unique identifier of the message.
21
+ */
22
+ id: number | string;
23
+ /**
24
+ * Author of the message.
25
+ */
26
+ author: User;
27
+ /**
28
+ * Layout used for displaying message attachments, if any ([see example](https://www.telerik.com/kendo-react-ui/components/conversational-ui/chat/file-uploads-and-media/attachments#toc-display-modes)).
29
+ */
30
+ attachmentLayout?: AttachmentLayout;
31
+ /**
32
+ * Optional message attachments ([see example](https://www.telerik.com/kendo-react-ui/components/conversational-ui/chat/file-uploads-and-media/attachments)).
33
+ */
34
+ attachments?: Attachment[];
35
+ /**
36
+ * Suggested quick actions displayed below this message ([see example](https://www.telerik.com/kendo-react-ui/components/conversational-ui/chat/quick-actions/suggested-actions#toc-defining-quick-actions)).
37
+ *
38
+ * > The Chat displays suggested actions only for the last message in the conversation.
39
+ */
40
+ suggestedActions?: Action[];
41
+ /**
42
+ * Optional status string for the message.
43
+ * Displays when you select the message by mouse or keyboard.
44
+ */
45
+ status?: string;
46
+ /**
47
+ * Optional text for the message.
48
+ * Some messages contain only attachments or quick actions.
49
+ */
50
+ text?: string;
51
+ /**
52
+ * Time when the message was composed.
53
+ */
54
+ timestamp?: Date;
55
+ /**
56
+ * Indicates if the user is still typing the message.
57
+ * If `true`, the Chat displays a typing indicator instead of the message.
58
+ */
59
+ typing?: boolean;
60
+ /**
61
+ * Indicates if the message is loading.
62
+ * If `true`, the Chat displays a skeleton placeholder instead of the content.
63
+ */
64
+ isLoading?: boolean;
65
+ /**
66
+ * Indicates if the message is pinned.
67
+ */
68
+ isPinned?: boolean;
69
+ /**
70
+ * Date and time when the message was pinned.
71
+ */
72
+ pinnedAt?: Date;
73
+ /**
74
+ * User who pinned the message.
75
+ */
76
+ pinnedBy?: User;
77
+ /**
78
+ * ID of the message this message replies to.
79
+ */
80
+ replyToId?: number | string;
81
+ /**
82
+ * Indicates if the message has been deleted.
83
+ */
84
+ isDeleted?: boolean;
85
+ /**
86
+ * Files attached to the message.
87
+ */
88
+ files?: any[];
89
+ /**
90
+ * Index used for keyboard selection navigation.
91
+ */
92
+ selectionIndex?: number;
93
+ /**
94
+ * @hidden
95
+ * Original data item containing all the raw fields from the source message.
96
+ * This field preserves the original message structure for custom template access.
97
+ */
98
+ dataItem?: any;
99
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ /**
9
+ * Represents a participant in a Chat conversation.
10
+ */
11
+ export interface User {
12
+ /**
13
+ * Unique ID for this user.
14
+ * Typically a number. Can be a string or an object.
15
+ */
16
+ id: any;
17
+ /**
18
+ * Optional displayed name for the user.
19
+ */
20
+ name?: string;
21
+ /**
22
+ * Optional avatar image URL for the user.
23
+ */
24
+ avatarUrl?: string;
25
+ /**
26
+ * Optional avatar image `alt` text for the user.
27
+ */
28
+ avatarAltText?: string;
29
+ }
@@ -0,0 +1,498 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { Message, ChatActionExecuteEvent, ChatSendMessageEvent } from '../index.js';
9
+ import { ChatMessageProps, ChatMessageTemplateProps, FileAction, MessageAction } from './components/ChatMessage.js';
10
+ import { ChatSuggestion, SuggestionTemplateProps } from './components/SuggestionsGroup.js';
11
+ import { ButtonProps, SpeechToTextButtonProps } from '@progress/kendo-react-buttons';
12
+ import { UploadProps } from '@progress/kendo-react-upload';
13
+ import { DateMarker } from './ViewItem.js';
14
+ /**
15
+ * Represents the properties available to the `statusTemplate` custom component.
16
+ */
17
+ export interface StatusTemplateProps {
18
+ /**
19
+ * Message item containing the status information.
20
+ */
21
+ item: Message;
22
+ }
23
+ /**
24
+ * Represents the properties available to the `userStatusTemplate` custom component.
25
+ */
26
+ export interface UserStatusTemplateProps {
27
+ /**
28
+ * The latest message in the message group as you originally passed it.
29
+ * Regardless of whether field mapping is configured or not, you will always
30
+ * receive the message data in its original format. This is why the type is `any`.
31
+ */
32
+ message: any;
33
+ }
34
+ /**
35
+ * Configuration for mapping custom data fields to Chat properties.
36
+ * Lets the Chat work with various data source formats by mapping
37
+ * your field names to expected Chat interface properties.
38
+ */
39
+ export interface FieldMappingConfig {
40
+ /**
41
+ * Field name for message text content.
42
+ *
43
+ * @default 'text'
44
+ */
45
+ textField?: string;
46
+ /**
47
+ * Field name for message status.
48
+ *
49
+ * @default 'status'
50
+ */
51
+ statusField?: string;
52
+ /**
53
+ * Field name for message author ID.
54
+ *
55
+ * @default 'authorId'
56
+ */
57
+ authorIdField?: string;
58
+ /**
59
+ * Field name for message author name (when flattened).
60
+ *
61
+ * @default 'authorName'
62
+ */
63
+ authorNameField?: string;
64
+ /**
65
+ * Field name for message author avatar URL (when flattened).
66
+ *
67
+ * @default 'authorImageUrl'
68
+ */
69
+ authorImageUrlField?: string;
70
+ /**
71
+ * Field name for alt text of the author's avatar (when flattened).
72
+ *
73
+ * @default 'authorImageAltText'
74
+ */
75
+ authorImageAltTextField?: string;
76
+ /**
77
+ * Field name for message ID.
78
+ *
79
+ * @default 'id'
80
+ */
81
+ idField?: string;
82
+ /**
83
+ * Field name for message timestamp.
84
+ *
85
+ * @default 'timestamp'
86
+ */
87
+ timestampField?: string;
88
+ /**
89
+ * Field name for file attachments.
90
+ *
91
+ * @default 'files'
92
+ */
93
+ filesField?: string;
94
+ /**
95
+ * Field name for message attachments.
96
+ *
97
+ * @default 'attachments'
98
+ */
99
+ attachmentsField?: string;
100
+ /**
101
+ * Field name for reply-to message ID.
102
+ *
103
+ * @default 'replyToId'
104
+ */
105
+ replyToIdField?: string;
106
+ /**
107
+ * Field name for message deletion status.
108
+ *
109
+ * @default 'isDeleted'
110
+ */
111
+ isDeletedField?: string;
112
+ /**
113
+ * Field name for message pinned status.
114
+ *
115
+ * @default 'isPinned'
116
+ */
117
+ isPinnedField?: string;
118
+ /**
119
+ * Field name for the `typing` property of a message.
120
+ *
121
+ * @default 'typing'
122
+ */
123
+ typingField?: string;
124
+ /**
125
+ * Field name for the `suggestedActions` property of a message.
126
+ *
127
+ * @default 'suggestedActions'
128
+ */
129
+ suggestedActionsField?: string;
130
+ }
131
+ /**
132
+ * Represents a file attachment in a Chat message.
133
+ */
134
+ export interface ChatFile {
135
+ /**
136
+ * Unique identifier for the file.
137
+ */
138
+ id: string;
139
+ /**
140
+ * Name of the file.
141
+ */
142
+ name: string;
143
+ /**
144
+ * Size of the file in bytes.
145
+ */
146
+ size: number;
147
+ /**
148
+ * MIME type of the file (for example, `application/pdf`).
149
+ */
150
+ type: string;
151
+ /**
152
+ * Optional URL to download or view the file.
153
+ */
154
+ url?: string;
155
+ }
156
+ /**
157
+ * Represents a Chat message box.
158
+ */
159
+ export interface ChatMessageBoxProps {
160
+ /**
161
+ * Input message element of the Chat.
162
+ */
163
+ messageInput: React.ReactElement;
164
+ /**
165
+ * Send button element of the Chat.
166
+ */
167
+ sendButton: React.ReactElement;
168
+ }
169
+ /**
170
+ * Controls how suggestions behave when they exceed available space.
171
+ * - `scroll`—Suggestions scroll horizontally without navigation buttons.
172
+ * - `wrap`—Suggestions wrap to new lines when they overflow.
173
+ * - `scrollbuttons`—Suggestions scroll horizontally with navigation buttons.
174
+ */
175
+ export type SuggestionsLayoutMode = 'scroll' | 'wrap' | 'scrollbuttons';
176
+ /**
177
+ * Controls how quick actions behave when they exceed available space.
178
+ * - `scroll`—Quick actions scroll horizontally without navigation buttons.
179
+ * - `wrap`—Quick actions wrap to new lines when they overflow.
180
+ * - `scrollbuttons`—Quick actions scroll horizontally with navigation buttons.
181
+ */
182
+ export type QuickActionsLayoutMode = 'scroll' | 'wrap' | 'scrollbuttons';
183
+ /**
184
+ * Controls the layout mode for file attachments in messages.
185
+ * - `vertical`—Files are displayed in a vertical list layout.
186
+ * - `wrap`—Files are displayed in a wrapped layout.
187
+ * - `horizontal`—Files are displayed in a horizontal list layout with scrollable overflow.
188
+ */
189
+ export type FilesLayoutMode = 'vertical' | 'wrap' | 'horizontal';
190
+ /**
191
+ * Controls the width mode for messages.
192
+ * - `full`—Message occupies the full width of the Chat.
193
+ * - `standard`—Message occupies a standard width for a compact display.
194
+ */
195
+ export type MessageWidthMode = 'full' | 'standard';
196
+ /**
197
+ * Represents the timestamp visibility mode options for the Chat component.
198
+ * - `onFocus`—Timestamps are only visible for selected/focused messages (default behavior).
199
+ * - `hidden`—Timestamps are never visible for any messages.
200
+ */
201
+ export type TimestampVisibilityMode = 'onFocus' | 'hidden';
202
+ /**
203
+ * Configuration settings for message display and behavior.
204
+ */
205
+ export interface MessageSettings {
206
+ /**
207
+ * Enables expand or collapse for messages to save space.
208
+ */
209
+ allowMessageCollapse?: boolean;
210
+ /**
211
+ * Sets the message width mode.
212
+ * - `full`—Message occupies the full width of the Chat.
213
+ * - `standard`—Message occupies a standard width for a compact display.
214
+ */
215
+ messageWidthMode?: MessageWidthMode;
216
+ /**
217
+ * Controls whether avatars are displayed for this message type.
218
+ * When provided, this overrides the global showAvatar setting for the specific message type (author/receiver).
219
+ */
220
+ showAvatar?: boolean;
221
+ /**
222
+ * Controls whether author names are displayed for this message type.
223
+ * When provided, this overrides the global showUsername setting for the specific message type (author/receiver).
224
+ */
225
+ showUsername?: boolean;
226
+ /**
227
+ * React functional or class component used as a message template for this message type.
228
+ * The corresponding [`message`](https://www.telerik.com/kendo-react-ui/components/conversational-ui/api/message) is passed as an `item` property.
229
+ * When provided, this template overrides the global messageTemplate for the specific message type (author/receiver).
230
+ */
231
+ messageTemplate?: React.ComponentType<ChatMessageTemplateProps>;
232
+ /**
233
+ * React functional or class component used as a message content template for this message type.
234
+ * Rendered inside the .k-bubble-content element when provided.
235
+ * The corresponding [`message`](https://www.telerik.com/kendo-react-ui/components/conversational-ui/api/message) is passed as an `item` property.
236
+ * When provided, this template overrides the global messageContentTemplate for the specific message type (author/receiver).
237
+ */
238
+ messageContentTemplate?: React.ComponentType<ChatMessageTemplateProps>;
239
+ /**
240
+ * Actions displayed in the message toolbar for this message type.
241
+ * When provided, this overrides the global messageToolbarActions for the specific message type (author/receiver).
242
+ */
243
+ messageToolbarActions?: MessageAction[];
244
+ /**
245
+ * Actions displayed in the message context menu for this message type.
246
+ * When provided, this overrides the global messageContextMenuActions for the specific message type (author/receiver).
247
+ */
248
+ messageContextMenuActions?: MessageAction[];
249
+ /**
250
+ * Actions displayed for files in messages for this message type.
251
+ * When provided, this overrides the global fileActions for the specific message type (author/receiver).
252
+ */
253
+ fileActions?: MessageAction[];
254
+ }
255
+ export interface ChatProps extends FieldMappingConfig {
256
+ /**
257
+ * CSS class of the Chat DOM element.
258
+ */
259
+ className?: string;
260
+ /**
261
+ * ID of the Chat component.
262
+ */
263
+ id?: string;
264
+ /**
265
+ * Represents the styles that are applied to the Chat.
266
+ *
267
+ * @example
268
+ * ```tsx
269
+ * <Chat style={{ maxWidth: '400px' }} />
270
+ * ```
271
+ */
272
+ style?: React.CSSProperties;
273
+ /**
274
+ * Messages of the Chat. Can be an array of `Message` objects or raw data objects
275
+ * that map using the field mapping configuration.
276
+ */
277
+ messages: Message[] | any[];
278
+ /**
279
+ * ID of the local user. Identifies messages authored by the local user.
280
+ */
281
+ authorId: number | string;
282
+ /**
283
+ * React functional or class component used as a message template. The corresponding [`message`](https://www.telerik.com/kendo-react-ui/components/conversational-ui/api/message) is passed as an `item` property.
284
+ */
285
+ messageTemplate?: React.ComponentType<ChatMessageTemplateProps>;
286
+ /**
287
+ * React functional or class component used as a message content template. Rendered inside the .k-bubble-content element when provided. The corresponding [`message`](https://www.telerik.com/kendo-react-ui/components/conversational-ui/api/message) is passed as an `item` property.
288
+ */
289
+ messageContentTemplate?: React.ComponentType<ChatMessageTemplateProps>;
290
+ /**
291
+ * React functional or class component used as an attachment template ([see example](https://www.telerik.com/kendo-react-ui/components/conversational-ui/chat/file-uploads-and-media/attachments#toc-attachment-templates)). The corresponding [`attachment`](https://www.telerik.com/kendo-react-ui/components/conversational-ui/api/attachment) is passed as an `item` property.
292
+ */
293
+ attachmentTemplate?: any;
294
+ /**
295
+ * Width of the Chat.
296
+ */
297
+ width?: string | number;
298
+ /**
299
+ * Height of the Chat.
300
+ */
301
+ height?: string | number;
302
+ /**
303
+ * Fires when the user types a message and clicks **Send** or presses **Enter**. Emits [`SendMessageEvent`](https://www.telerik.com/kendo-react-ui/components/conversational-ui/api/chatsendmessageevent).
304
+ *
305
+ * > The Chat does not automatically update with the new message.
306
+ */
307
+ onSendMessage?: (event: ChatSendMessageEvent) => void;
308
+ /**
309
+ * Fires when the user clicks a quick action button. The Chat internally handles the `reply`, `openUrl`, and `call` [known actions](https://www.telerik.com/kendo-react-ui/components/conversational-ui/api/actiontype). Emits [`ExecuteActionEvent`](https://www.telerik.com/kendo-react-ui/components/conversational-ui/api/chatactionexecuteevent). The event is preventable. If you call `preventDefault`, the built-in action is suppressed.
310
+ */
311
+ onActionExecute?: (event: ChatActionExecuteEvent) => void;
312
+ /**
313
+ * Direction of the Chat component.
314
+ */
315
+ dir?: string;
316
+ /**
317
+ * Text displayed inside the new message input when empty.
318
+ */
319
+ placeholder?: string;
320
+ /**
321
+ * Enables customization or override of the default message box item ([see example](https://www.telerik.com/kendo-react-ui/components/conversational-ui/chat/customization/messagebox-templates)).
322
+ */
323
+ messageBox?: React.ComponentType<ChatMessageBoxProps>;
324
+ /**
325
+ * @hidden
326
+ * Represents the ChatMessage component.
327
+ */
328
+ message?: React.ComponentType<ChatMessageProps>;
329
+ /**
330
+ * List of message suggestions displayed above the message input.
331
+ */
332
+ suggestions?: ChatSuggestion[];
333
+ /**
334
+ * Template for suggestion items displayed above the message input.
335
+ */
336
+ suggestionTemplate?: React.ComponentType<SuggestionTemplateProps>;
337
+ /**
338
+ * Fires when a suggestion is clicked. Provides the clicked suggestion.
339
+ */
340
+ onSuggestionClick?: (suggestion: ChatSuggestion) => void;
341
+ /**
342
+ * Controls how suggestions behave when they exceed available space.
343
+ * - `scroll`&mdash;Suggestions scroll horizontally without navigation buttons.
344
+ * - `wrap`&mdash;Suggestions wrap to new lines when they overflow.
345
+ * - `scrollbuttons`&mdash;Suggestions scroll horizontally with navigation buttons.
346
+ *
347
+ * @default 'scroll'
348
+ */
349
+ suggestionsLayout?: SuggestionsLayoutMode;
350
+ /**
351
+ * Controls how quick actions behave when they exceed available space.
352
+ * - `scroll`&mdash;Quick actions scroll horizontally without navigation buttons.
353
+ * - `wrap`&mdash;Quick actions wrap to new lines when they overflow.
354
+ * - `scrollbuttons`&mdash;Quick actions scroll horizontally with navigation buttons.
355
+ *
356
+ * @default 'scroll'
357
+ */
358
+ quickActionsLayout?: QuickActionsLayoutMode;
359
+ /**
360
+ * Template for the header of the Chat component.
361
+ */
362
+ headerTemplate?: React.ReactElement | (() => React.ReactElement);
363
+ /**
364
+ * Template for the empty Chat state when no messages are present.
365
+ * Only renders when there are no messages and this template is provided.
366
+ */
367
+ noDataTemplate?: React.ReactElement | (() => React.ReactElement);
368
+ /**
369
+ * Template for the timestamp of the message.
370
+ */
371
+ timestampTemplate?: React.ComponentType<{
372
+ item: DateMarker;
373
+ }>;
374
+ /**
375
+ * Template for status items below each message.
376
+ */
377
+ statusTemplate?: React.ComponentType<StatusTemplateProps>;
378
+ /**
379
+ * Template for user status display next to avatars.
380
+ * Only rendered when an avatar for the user is provided.
381
+ */
382
+ userStatusTemplate?: React.ComponentType<UserStatusTemplateProps>;
383
+ /**
384
+ * Enables expand or collapse for messages to save space.
385
+ */
386
+ allowMessageCollapse?: boolean;
387
+ /**
388
+ * Actions displayed in the message toolbar.
389
+ */
390
+ messageToolbarActions?: MessageAction[];
391
+ /**
392
+ * Actions displayed in the message context menu.
393
+ */
394
+ messageContextMenuActions?: MessageAction[];
395
+ /**
396
+ * Actions displayed for files in the message.
397
+ */
398
+ fileActions?: MessageAction[];
399
+ /**
400
+ * Fires when a message is unpinned. Provides the message.
401
+ */
402
+ onUnpin?: (message: Message) => void;
403
+ /**
404
+ * Sets the message width mode.
405
+ * - `full`&mdash;Message occupies the full width of the Chat.
406
+ * - `standard`&mdash;Message occupies a standard width for a compact display.
407
+ *
408
+ * @default 'standard'
409
+ */
410
+ messageWidthMode?: MessageWidthMode;
411
+ /**
412
+ * Controls whether avatars are displayed for messages.
413
+ * Can be overridden by author-specific and receiver-specific settings.
414
+ *
415
+ * @default true
416
+ */
417
+ showAvatar?: boolean;
418
+ /**
419
+ * Controls whether author names are displayed for messages.
420
+ * Can be overridden by author-specific and receiver-specific settings.
421
+ *
422
+ * @default true
423
+ */
424
+ showUsername?: boolean;
425
+ /**
426
+ * Controls when timestamps are visible for messages.
427
+ * - `onFocus`&mdash;Timestamps are only visible for selected/focused messages.
428
+ * - `hidden`&mdash;Timestamps are never visible for any messages.
429
+ *
430
+ * @default 'onFocus'
431
+ */
432
+ timestampVisibility?: TimestampVisibilityMode;
433
+ /**
434
+ * Configuration settings for author messages (messages from the local user).
435
+ * These settings override global message settings for author messages.
436
+ * If both global and author-specific settings are provided, the author-specific settings take precedence.
437
+ */
438
+ authorMessageSettings?: MessageSettings;
439
+ /**
440
+ * Configuration settings for receiver messages (messages from other users).
441
+ * These settings override global message settings for receiver messages.
442
+ * If both global and receiver-specific settings are provided, the receiver-specific settings take precedence.
443
+ */
444
+ receiverMessageSettings?: MessageSettings;
445
+ /**
446
+ * Sets the file layout mode for file attachments in messages.
447
+ * - `vertical`&mdash;Files are displayed in a vertical list layout.
448
+ * - `wrap`&mdash;Files are displayed in a wrapped layout.
449
+ * - `horizontal`&mdash;Files are displayed in a horizontal list layout with scrollable overflow.
450
+ *
451
+ * @default 'vertical'
452
+ */
453
+ messageFilesLayout?: FilesLayoutMode;
454
+ /**
455
+ * Enables the speech-to-text functionality in the Chat.
456
+ * This allows users to dictate messages instead of typing them.
457
+ */
458
+ speechToTextConfig?: boolean | SpeechToTextButtonProps;
459
+ /**
460
+ * Sets the upload configuration for the Chat component.
461
+ * This can be used to customize the file upload behavior, such as accepted file types and maximum file size.
462
+ */
463
+ uploadConfig?: boolean | UploadProps;
464
+ /**
465
+ * Configures the appearance and behavior of the send button in the Chat component.
466
+ */
467
+ sendButtonConfig?: ButtonProps;
468
+ /**
469
+ * Fires when a toolbar action is executed on a message. Provides the action and target message.
470
+ */
471
+ onToolbarAction?: (action: MessageAction, event: React.SyntheticEvent<any>, target: Message) => void;
472
+ /**
473
+ * Fires when a context menu action is executed on a message. Provides the action and target message.
474
+ */
475
+ onContextMenuAction?: (action: MessageAction, event: React.SyntheticEvent<any>, target: Message) => void;
476
+ /**
477
+ * Fires when a file action is executed on a message. Provides the action and target file.
478
+ */
479
+ onFileAction?: (action: FileAction, event: React.SyntheticEvent<any>, target: ChatFile) => void;
480
+ /**
481
+ * Fires when a download action is executed on a message. Provides the selected files and parent message.
482
+ */
483
+ onDownload?: (files: ChatFile[], message: Message) => void;
484
+ /**
485
+ * Fires when the input value changes. Provides the new input value.
486
+ */
487
+ onInputValueChange?: (value: string) => void;
488
+ /**
489
+ * Input value of the Chat component.
490
+ */
491
+ inputValue?: string;
492
+ }
493
+ /**
494
+ * @hidden
495
+ */
496
+ export interface ChatState {
497
+ selectedItemIndex: number | null;
498
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { Action, Message } from '..//index.js';
9
+ import { BaseEvent } from '@progress/kendo-react-common';
10
+ import * as React from 'react';
11
+ /**
12
+ * Arguments for the `actionexecute` event of the hero card.
13
+ */
14
+ export interface HeroCardActionExecuteEvent extends BaseEvent<React.Component> {
15
+ /**
16
+ * The executed action.
17
+ */
18
+ action: Action;
19
+ }
20
+ /**
21
+ * Arguments for the `actionexecute` event of the Chat.
22
+ */
23
+ export interface ChatActionExecuteEvent extends Omit<BaseEvent<React.Component>, 'target'> {
24
+ /**
25
+ * The executed action.
26
+ */
27
+ action: Action;
28
+ /**
29
+ * The target message.
30
+ */
31
+ target?: Message;
32
+ }
33
+ /**
34
+ * Arguments for the `messagesend` event of the Chat.
35
+ */
36
+ export interface ChatSendMessageEvent extends BaseEvent<React.Component> {
37
+ /**
38
+ * The new message.
39
+ */
40
+ message: Message;
41
+ }
42
+ /**
43
+ * Arguments for the `toolbaractionexecute` event of the Chat.
44
+ */
45
+ export interface ChatToolbarActionExecuteEvent extends BaseEvent<React.Component> {
46
+ /**
47
+ * The new toolbarShow value.
48
+ */
49
+ show: boolean;
50
+ }