@@ -8,7 +8,7 @@ import dxChat, {
88import { Component as BaseComponent , IHtmlOptions , ComponentRef , NestedComponentMeta } from "./core/component" ;
99import NestedOption from "./core/nested-option" ;
1010
11- import type { Message , AttachmentDownloadClickEvent , DisposingEvent , InitializedEvent , MessageDeletedEvent , MessageDeletingEvent , MessageEditCanceledEvent , MessageEditingStartEvent , MessageEnteredEvent , MessageUpdatedEvent , MessageUpdatingEvent , TypingEndEvent , TypingStartEvent , Attachment as ChatAttachment , User as ChatUser , SendButtonAction , SendButtonClickEvent } from "devextreme/ui/chat" ;
11+ import type { Message , AttachmentDownloadClickEvent , DisposingEvent , InitializedEvent , MessageDeletedEvent , MessageDeletingEvent , MessageEditCanceledEvent , MessageEditingStartEvent , MessageEnteredEvent , MessageUpdatedEvent , MessageUpdatingEvent , TypingEndEvent , TypingStartEvent , Attachment as ChatAttachment , User as ChatUser , MessageType , SendButtonAction , SendButtonClickEvent } from "devextreme/ui/chat" ;
1212import type { DisposingEvent as FileUploaderDisposingEvent , InitializedEvent as FileUploaderInitializedEvent , BeforeSendEvent , ContentReadyEvent , DropZoneEnterEvent , DropZoneLeaveEvent , FilesUploadedEvent , OptionChangedEvent , ProgressEvent , UploadAbortedEvent , UploadedEvent , UploadErrorEvent , UploadStartedEvent , ValueChangedEvent , UploadHttpMethod , FileUploadMode } from "devextreme/ui/file_uploader" ;
1313import type { DisposingEvent as SpeechToTextDisposingEvent , InitializedEvent as SpeechToTextInitializedEvent , ContentReadyEvent as SpeechToTextContentReadyEvent , OptionChangedEvent as SpeechToTextOptionChangedEvent , CustomSpeechRecognizer as SpeechToTextCustomSpeechRecognizer , EndEvent , ErrorEvent , ResultEvent , StartClickEvent , StopClickEvent , SpeechRecognitionConfig as SpeechToTextSpeechRecognitionConfig } from "devextreme/ui/speech_to_text" ;
1414import type { DisposingEvent as ButtonGroupDisposingEvent , InitializedEvent as ButtonGroupInitializedEvent , ContentReadyEvent as ButtonGroupContentReadyEvent , OptionChangedEvent as ButtonGroupOptionChangedEvent , dxButtonGroupItem , ItemClickEvent , SelectionChangedEvent } from "devextreme/ui/button_group" ;
@@ -187,7 +187,7 @@ type IChatItemProps = React.PropsWithChildren<{
187187 src ?: string ;
188188 text ?: string ;
189189 timestamp ?: Date | number | string ;
190- type ?: string | undefined ;
190+ type ?: MessageType ;
191191} >
192192const _componentChatItem = ( props : IChatItemProps ) => {
193193 return React . createElement ( NestedOption < IChatItemProps > , {
@@ -367,7 +367,7 @@ type IItemProps = React.PropsWithChildren<{
367367 src ?: string ;
368368 text ?: string ;
369369 timestamp ?: Date | number | string ;
370- type ?: string | undefined | ButtonType ;
370+ type ?: MessageType | ButtonType | string ;
371371 disabled ?: boolean ;
372372 elementAttr ?: Record < string , any > ;
373373 hint ?: string ;
0 commit comments