1717
1818import { TextFieldModule } from '@angular/cdk/text-field' ;
1919import { CommonModule , DOCUMENT , NgClass , NgStyle } from '@angular/common' ;
20- import { AfterViewInit , ChangeDetectionStrategy , Component , ElementRef , EventEmitter , inject , Inject , Input , OnChanges , Output , Renderer2 , signal , SimpleChanges , ViewChild , } from '@angular/core' ;
20+ import { AfterViewInit , ChangeDetectionStrategy , Component , ElementRef , EventEmitter , inject , Inject , Input , OnChanges , Output , Renderer2 , signal , SimpleChanges , ViewChild , Type } from '@angular/core' ;
2121import { FormsModule } from '@angular/forms' ;
2222import { MatButtonModule } from '@angular/material/button' ;
2323import { MatCardModule } from '@angular/material/card' ;
@@ -34,7 +34,7 @@ import type {EvalCase} from '../../core/models/Eval';
3434import { STRING_TO_COLOR_SERVICE } from '../../core/services/interfaces/string-to-color' ;
3535import { MediaType , } from '../artifact-tab/artifact-tab.component' ;
3636import { AudioPlayerComponent } from '../audio-player/audio-player.component' ;
37- import { MarkdownComponent } from '../markdown/markdown.component' ;
37+ import { MARKDOWN_COMPONENT , MarkdownComponentInterface } from '../markdown/markdown.component.interface ' ;
3838
3939import { ChatPanelMessagesInjectionToken } from './chat-panel.component.i18n' ;
4040
@@ -49,7 +49,7 @@ const ROOT_AGENT = 'root_agent';
4949 CommonModule , FormsModule , MatIconModule , MatCardModule ,
5050 MatProgressBarModule , MatButtonModule , MatInputModule , TextFieldModule ,
5151 MatFormFieldModule , MatMenuModule , NgxJsonViewerModule ,
52- AudioPlayerComponent , MatTooltipModule , NgClass , NgStyle , MarkdownComponent
52+ AudioPlayerComponent , MatTooltipModule , NgClass , NgStyle ,
5353 ] ,
5454} )
5555export class ChatPanelComponent implements OnChanges , AfterViewInit {
@@ -101,6 +101,9 @@ export class ChatPanelComponent implements OnChanges, AfterViewInit {
101101 private previousMessageCount = 0 ;
102102 protected readonly i18n = inject ( ChatPanelMessagesInjectionToken ) ;
103103 private readonly stringToColorService = inject ( STRING_TO_COLOR_SERVICE ) ;
104+ readonly markdownComponent : Type < MarkdownComponentInterface > = inject (
105+ MARKDOWN_COMPONENT ,
106+ ) ;
104107 readonly MediaType = MediaType ;
105108
106109 constructor (
0 commit comments