@dataclouder/ngx-agent-cards 0.0.83 → 0.0.85

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.
@@ -0,0 +1,30 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { MicSettings } from '@dataclouder/ngx-mic';
4
+ import { ChatMessage } from '../../../models/agent.models';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ChatFooterComponent {
7
+ isAIThinking: boolean;
8
+ score: number;
9
+ micSettings: MicSettings;
10
+ sendMessage: EventEmitter<ChatMessage>;
11
+ textInputChanged: EventEmitter<string>;
12
+ micFinishedEvent: EventEmitter<any>;
13
+ chatInputControl: FormControl;
14
+ /**
15
+ * Sets the input text in the textarea
16
+ * @param text The text to set
17
+ */
18
+ setInputText(text: string): void;
19
+ /**
20
+ * Handles the mic finished event
21
+ * @param eventBlob The blob event from the mic component
22
+ */
23
+ micFinished(eventBlob: any): void;
24
+ /**
25
+ * Sends the user message
26
+ */
27
+ sendUserMessage(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChatFooterComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChatFooterComponent, "dc-chat-footer", never, { "isAIThinking": { "alias": "isAIThinking"; "required": false; }; "score": { "alias": "score"; "required": false; }; "micSettings": { "alias": "micSettings"; "required": false; }; }, { "sendMessage": "sendMessage"; "textInputChanged": "textInputChanged"; "micFinishedEvent": "micFinishedEvent"; }, never, never, true, never>;
30
+ }
@@ -0,0 +1,19 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { IAgentCard } from '../../../models/agent.models';
3
+ import { AgentCardsAbstractService } from '../../../models/conversation-ai.class';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ChatHeaderComponent {
6
+ private agentCardService;
7
+ isAdmin: boolean;
8
+ alternativeConversation: IAgentCard[];
9
+ restartConversationEvent: EventEmitter<IAgentCard>;
10
+ showInfoEvent: EventEmitter<void>;
11
+ settingsClickEvent: EventEmitter<void>;
12
+ constructor(agentCardService: AgentCardsAbstractService);
13
+ restartConversation(conversation?: IAgentCard | null): void;
14
+ showInfo(): void;
15
+ settingsClick(): void;
16
+ changeConversationCard(): Promise<void>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChatHeaderComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChatHeaderComponent, "dc-chat-header", never, { "isAdmin": { "alias": "isAdmin"; "required": false; }; "alternativeConversation": { "alias": "alternativeConversation"; "required": false; }; }, { "restartConversationEvent": "restartConversationEvent"; "showInfoEvent": "showInfoEvent"; "settingsClickEvent": "settingsClickEvent"; }, never, never, true, never>;
19
+ }
@@ -0,0 +1,2 @@
1
+ import { IMiniAgentCard } from '../../models/agent.models';
2
+ export declare const DefaultEvaluatorAgentCard: IMiniAgentCard;
@@ -1,5 +1,4 @@
1
1
  import { EventEmitter, OnInit, ChangeDetectorRef } from '@angular/core';
2
- import { FormControl } from '@angular/forms';
3
2
  import { DialogService } from 'primeng/dynamicdialog';
4
3
  import { ToastAlertsAbstractService } from '@dataclouder/ngx-core';
5
4
  import { MicSettings } from '@dataclouder/ngx-mic';
@@ -27,8 +26,8 @@ export declare class DCChatComponent implements OnInit {
27
26
  thinkingImg: string;
28
27
  isDestroyed: boolean;
29
28
  score: number;
29
+ isAdmin: boolean;
30
30
  isChatSettingsVisible: boolean;
31
- chatInputControl: FormControl;
32
31
  isAIThinking: boolean;
33
32
  isUserTalking: boolean;
34
33
  aiIcon: string;
@@ -39,20 +38,19 @@ export declare class DCChatComponent implements OnInit {
39
38
  alternativeConversation: IAgentCard[];
40
39
  ngOnInit(): Promise<void>;
41
40
  private buildChatMessage;
42
- settingsClick(): void;
41
+ changeUserChatSettings(): void;
43
42
  ngOnDestroy(): void;
44
43
  setAIthinking(): void;
45
44
  sendUserMessage(message?: ChatMessage): Promise<void>;
46
45
  sendCurrentConversation(): Promise<void>;
47
46
  private getVoice;
48
- setInputText(text: any): void;
47
+ setInputText(text: string): void;
49
48
  micFinished(eventBlob: any): Promise<void>;
50
49
  playMessage(message: ChatMessage): void;
51
50
  subsItalicsByTag(text: any, voiceId?: string, tagName?: string): any;
52
51
  private processMultiMessages;
53
52
  isInfoVisible: boolean;
54
53
  showInfo(): void;
55
- changeConversationCard(): Promise<void>;
56
54
  restartConversation(conversation?: IAgentCard): Promise<void>;
57
55
  private evaluateConversation;
58
56
  static ɵfac: i0.ɵɵFactoryDeclaration<DCChatComponent, never>;
@@ -1,28 +1,25 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { OnInit, WritableSignal } from '@angular/core';
2
2
  import { ChatMessage, ChatMultiMessage, ChatUserSettings } from '../../models/agent.models';
3
3
  import { AgentCardsAbstractService } from '../../models/conversation-ai.class';
4
4
  import { AudioService } from '../../services/audio.service';
5
+ import { AudioTextSyncService } from '../../services/audio-text-sync.service';
5
6
  import * as i0 from "@angular/core";
6
- export declare class ChatMessageComponent implements OnInit, OnDestroy {
7
+ export declare class ChatMessageComponent implements OnInit {
7
8
  private audioService;
8
9
  private agentCardService;
9
- private cdr;
10
+ private audioTextSyncService;
10
11
  chatMessage: ChatMessage;
11
12
  chatUserSettings: ChatUserSettings;
12
- isDestroyed: boolean;
13
- message: ChatMessage | ChatMultiMessage;
14
- conversationChatSettings: any;
15
- private defaultconvUserSettings;
16
- constructor(audioService: AudioService, agentCardService: AgentCardsAbstractService, cdr: ChangeDetectorRef);
13
+ private readonly destroyRef;
14
+ conversationChatSettings: WritableSignal<ChatUserSettings | null>;
15
+ isLoading: WritableSignal<boolean>;
16
+ constructor(audioService: AudioService, agentCardService: AgentCardsAbstractService, audioTextSyncService: AudioTextSyncService);
17
17
  ngOnInit(): Promise<void>;
18
- ngOnDestroy(): void;
19
- generateAndPlayAudio(message: ChatMessage, overwritetext?: any): Promise<void>;
20
- private extractAudioAndTranscription;
21
- playMessage(message: ChatMessage | ChatMultiMessage): HTMLAudioElement;
22
- subscribeToTimeUpdate(audioHtml: any, transcriptionTimestamps?: any): void;
18
+ generateAndPlayAudio(message: ChatMessage, overwriteText?: string | null): Promise<void>;
19
+ playMessage(message: ChatMessage | ChatMultiMessage): HTMLAudioElement | null;
23
20
  generateAndPlayAllAudios(multiMessages: ChatMultiMessage[]): void;
24
- private getTTSRequest;
25
- private matchTranscription;
21
+ private preloadNextMessageAudio;
22
+ private buildObjectTTSRequest;
26
23
  static ɵfac: i0.ɵɵFactoryDeclaration<ChatMessageComponent, never>;
27
24
  static ɵcmp: i0.ɵɵComponentDeclaration<ChatMessageComponent, "dc-chat-message", never, { "chatMessage": { "alias": "chatMessage"; "required": false; }; "chatUserSettings": { "alias": "chatUserSettings"; "required": false; }; }, {}, never, never, true, never>;
28
25
  }
@@ -0,0 +1,3 @@
1
+ import { AudioGenerated, ChatMessage, ChatMultiMessage } from '../../models/agent.models';
2
+ export declare function matchTranscription(originalText: string, transcription: any[]): any[];
3
+ export declare function extractAudioAndTranscription(message: ChatMessage | ChatMultiMessage, audio: AudioGenerated): void;
@@ -0,0 +1,28 @@
1
+ import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
2
+ import { ChatMessage, ChatMultiMessage } from '../../../models/agent.models';
3
+ import { AudioTextSyncService } from '../../../services/audio-text-sync.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class MessageContentComponent implements OnInit {
6
+ private cdr;
7
+ private audioTextSyncService;
8
+ message: ChatMessage | ChatMultiMessage;
9
+ isLoading: boolean;
10
+ playAudio: EventEmitter<ChatMultiMessage | ChatMessage>;
11
+ highlightedWords: import("@angular/core").Signal<import("../../../services/audio-text-sync.service").HighlightedWord[]>;
12
+ constructor(cdr: ChangeDetectorRef, audioTextSyncService: AudioTextSyncService);
13
+ get hasTranscription(): boolean;
14
+ get messageText(): string;
15
+ get messageTag(): string | string[] | Set<string> | {
16
+ [klass: string]: any;
17
+ } | null;
18
+ onPlayMessage(): void;
19
+ /**
20
+ * Track function for ngFor to improve performance
21
+ * @param index The current item's index
22
+ * @param item The current item
23
+ */
24
+ trackByIndex(index: number, item: any): number;
25
+ ngOnInit(): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<MessageContentComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<MessageContentComponent, "dc-message-content", never, { "message": { "alias": "message"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; }, { "playAudio": "playAudio"; }, never, never, true, never>;
28
+ }
@@ -0,0 +1,12 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { ChatMultiMessage } from '../../../models/agent.models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MultiMessageContentComponent implements OnInit {
5
+ messages: ChatMultiMessage[];
6
+ isLoading: boolean;
7
+ playAudio: EventEmitter<ChatMultiMessage>;
8
+ onPlayMessage(message: ChatMultiMessage): void;
9
+ ngOnInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<MultiMessageContentComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<MultiMessageContentComponent, "dc-multi-message-content", never, { "messages": { "alias": "messages"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; }, { "playAudio": "playAudio"; }, never, never, true, never>;
12
+ }
@@ -2,17 +2,21 @@ import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
2
2
  import { AgentCardsAbstractService } from '../../models/conversation-ai.class';
3
3
  import { IAgentCard } from '../../models/agent.models';
4
4
  import { ActivatedRoute } from '@angular/router';
5
+ import { UserDataExchangeAbstractService } from '../../models/user-data-exchange';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class DcAgentCardDetailsComponent implements OnInit {
7
8
  private agentCardService;
8
9
  private route;
9
10
  private cdr;
10
- constructor(agentCardService: AgentCardsAbstractService, route: ActivatedRoute, cdr: ChangeDetectorRef);
11
- conversationCardId: string;
11
+ private userDataExchange;
12
+ constructor(agentCardService: AgentCardsAbstractService, route: ActivatedRoute, cdr: ChangeDetectorRef, userDataExchange: UserDataExchangeAbstractService);
13
+ agentCardId: string;
12
14
  onStartConversation: EventEmitter<any>;
13
- conversation: IAgentCard;
15
+ agentCard: IAgentCard;
14
16
  ngOnInit(): Promise<void>;
15
17
  startConversation(): void;
18
+ toggleInfoLayer(): void;
19
+ showInfoLayer: boolean;
16
20
  static ɵfac: i0.ɵɵFactoryDeclaration<DcAgentCardDetailsComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<DcAgentCardDetailsComponent, "dc-agent-card-details", never, { "conversationCardId": { "alias": "conversationCardId"; "required": false; }; }, { "onStartConversation": "onStartConversation"; }, never, never, true, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<DcAgentCardDetailsComponent, "dc-agent-card-details", never, { "agentCardId": { "alias": "agentCardId"; "required": false; }; }, { "onStartConversation": "onStartConversation"; }, never, never, true, never>;
18
22
  }
@@ -1,15 +1,19 @@
1
1
  import { EventEmitter, type OnInit } from '@angular/core';
2
2
  import { IAgentCard } from '../../../models/agent.models';
3
+ import { MenuItem } from 'primeng/api';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class DCConversationCardUIComponent implements OnInit {
6
+ speedDialModel: MenuItem[];
5
7
  ngOnInit(): void;
6
8
  card: IAgentCard;
7
- onDetailsCard: EventEmitter<string>;
8
- onEditCard: EventEmitter<string>;
9
- onDeleteCard: EventEmitter<string>;
9
+ showOptions: boolean;
10
+ onCardAction: EventEmitter<{
11
+ event: string;
12
+ card: IAgentCard;
13
+ }>;
10
14
  onDetails(): void;
11
15
  onEdit(): void;
12
16
  onDelete(): void;
13
17
  static ɵfac: i0.ɵɵFactoryDeclaration<DCConversationCardUIComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<DCConversationCardUIComponent, "dc-agent-card-default-ui", never, { "card": { "alias": "card"; "required": false; }; }, { "onDetailsCard": "onDetailsCard"; "onEditCard": "onEditCard"; "onDeleteCard": "onDeleteCard"; }, never, never, true, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<DCConversationCardUIComponent, "dc-agent-card-default-ui", never, { "card": { "alias": "card"; "required": false; }; "showOptions": { "alias": "showOptions"; "required": false; }; }, { "onCardAction": "onCardAction"; }, never, never, true, never>;
15
19
  }
@@ -1,8 +1,8 @@
1
- import { EventEmitter, OnInit, Type, OnDestroy, ChangeDetectorRef } from '@angular/core';
1
+ import { OnInit, Type, OnDestroy, ChangeDetectorRef } from '@angular/core';
2
2
  import { AgentCardsAbstractService } from '../../models/conversation-ai.class';
3
3
  import { IAgentCard } from '../../models/agent.models';
4
4
  import { ActivatedRoute, Router } from '@angular/router';
5
- import { FiltersConfig, PaginationBase, ToastAlertsAbstractService, PColumn } from '@dataclouder/ngx-core';
5
+ import { FiltersConfig, PaginationBase, ToastAlertsAbstractService, PColumn, OnActionEvent } from '@dataclouder/ngx-core';
6
6
  import { DCConversationCardUIComponent } from './agent-card-default-ui/agent-card-default-ui.component';
7
7
  import { NgComponentOutlet } from '@angular/common';
8
8
  import { QueryList } from '@angular/core';
@@ -14,14 +14,10 @@ export declare class AgentCardListComponent extends PaginationBase implements On
14
14
  private cdr;
15
15
  viewMode: 'cards' | 'table';
16
16
  customCardComponent?: Type<DCConversationCardUIComponent>;
17
+ showOptions?: boolean;
17
18
  gridLayout: boolean;
18
19
  getCustomButtons: (card: IAgentCard) => MenuItem[];
19
- goToDetailsEvent: EventEmitter<string>;
20
- goToEditEvent: EventEmitter<string>;
21
- deleteEvent: EventEmitter<string>;
22
- onSelect: EventEmitter<any>;
23
20
  outlets: QueryList<NgComponentOutlet>;
24
- actions: MenuItem[];
25
21
  protected columns: PColumn[];
26
22
  agentCards: IAgentCard[];
27
23
  private cardEventSubs;
@@ -34,16 +30,16 @@ export declare class AgentCardListComponent extends PaginationBase implements On
34
30
  ngOnDestroy(): void;
35
31
  private loadConversationCards;
36
32
  getAllConversationCards(): Promise<IAgentCard[]>;
37
- goToDetails(id: string): Promise<void>;
38
- goToEdit(id?: string): Promise<void>;
33
+ goToDetails(action: {
34
+ action: string;
35
+ item: IAgentCard;
36
+ }): Promise<void>;
39
37
  deleteCard(id: string): Promise<void>;
40
38
  protected loadData(): Promise<void>;
39
+ doFilterBarAction({ action, item }: OnActionEvent): void;
41
40
  search(text: string): Promise<void>;
42
41
  filterChange(filters: FiltersConfig): Promise<void>;
43
- doBarAction({ action, item }: {
44
- action: string;
45
- item: MenuItem | null;
46
- }): void;
42
+ onCardAction(actionEvent: OnActionEvent): void;
47
43
  static ɵfac: i0.ɵɵFactoryDeclaration<AgentCardListComponent, never>;
48
- static ɵcmp: i0.ɵɵComponentDeclaration<AgentCardListComponent, "dc-agent-card-lists", never, { "viewMode": { "alias": "viewMode"; "required": false; }; "customCardComponent": { "alias": "customCardComponent"; "required": false; }; "gridLayout": { "alias": "gridLayout"; "required": false; }; "getCustomButtons": { "alias": "getCustomButtons"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; }, { "goToDetailsEvent": "goToDetailsEvent"; "goToEditEvent": "goToEditEvent"; "deleteEvent": "deleteEvent"; "onSelect": "onSelect"; }, never, never, true, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<AgentCardListComponent, "dc-agent-card-lists", never, { "viewMode": { "alias": "viewMode"; "required": false; }; "customCardComponent": { "alias": "customCardComponent"; "required": false; }; "showOptions": { "alias": "showOptions"; "required": false; }; "gridLayout": { "alias": "gridLayout"; "required": false; }; "getCustomButtons": { "alias": "getCustomButtons"; "required": false; }; }, {}, never, never, true, never>;
49
45
  }
@@ -1,7 +1,7 @@
1
1
  import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
2
2
  import { FormBuilder, FormArray } from '@angular/forms';
3
3
  import { Router, ActivatedRoute } from '@angular/router';
4
- import { ToastAlertsAbstractService } from '@dataclouder/ngx-core';
4
+ import { AudioSpeed, ToastAlertsAbstractService } from '@dataclouder/ngx-core';
5
5
  import { StorageImageSettings, MultiImagesStorageService } from '@dataclouder/ngx-cloud-storage';
6
6
  import { DCConversationPromptBuilderService } from '../../services/dc-conversation-builder.service';
7
7
  import { DialogService } from 'primeng/dynamicdialog';
@@ -37,6 +37,10 @@ export declare class DCAgentCardFormComponent implements OnInit {
37
37
  conversation: IAgentCard;
38
38
  agentCardId: string;
39
39
  imageSettings: any;
40
+ audioSpeedOptions: {
41
+ label: string;
42
+ value: AudioSpeed;
43
+ }[];
40
44
  storageSettings: StorageImageSettings;
41
45
  bannerImgSettings: StorageImageSettings;
42
46
  imageStorageSettings: StorageImageSettings;
@@ -71,14 +75,14 @@ export declare class DCAgentCardFormComponent implements OnInit {
71
75
  textEngine: import("@angular/forms").FormControl<TextEngines>;
72
76
  conversationType: import("@angular/forms").FormControl<ConversationType>;
73
77
  autoStart: import("@angular/forms").FormControl<boolean>;
78
+ tts: import("@angular/forms").FormGroup<{
79
+ voice: import("@angular/forms").FormControl<string>;
80
+ secondaryVoice: import("@angular/forms").FormControl<string>;
81
+ speed: import("@angular/forms").FormControl<string>;
82
+ speedRate: import("@angular/forms").FormControl<number>;
83
+ }>;
74
84
  }>;
75
85
  lang: import("@angular/forms").FormControl<string>;
76
- tts: import("@angular/forms").FormGroup<{
77
- voice: import("@angular/forms").FormControl<string>;
78
- secondaryVoice: import("@angular/forms").FormControl<string>;
79
- speed: import("@angular/forms").FormControl<string>;
80
- speedRate: import("@angular/forms").FormControl<number>;
81
- }>;
82
86
  metaApp: import("@angular/forms").FormGroup<{
83
87
  isPublished: import("@angular/forms").FormControl<boolean>;
84
88
  isPublic: import("@angular/forms").FormControl<boolean>;
@@ -74,7 +74,6 @@ export interface IAgentCard {
74
74
  assets?: IAgentAssets;
75
75
  characterCard?: ICharacterCardDC;
76
76
  conversationSettings?: IConversationSettings;
77
- tts?: ITTS;
78
77
  metaApp?: IAgentMetadata;
79
78
  accounts?: Array<IAccounts>;
80
79
  }
@@ -108,7 +107,7 @@ export declare class WordTimestamps {
108
107
  word: string;
109
108
  start: number;
110
109
  end: number;
111
- highlighted: any;
110
+ highlighted: boolean;
112
111
  }
113
112
  export declare class ChatMultiMessage {
114
113
  voice: string;
@@ -1,3 +1,4 @@
1
+ import { ChatUserSettings } from './agent.models';
1
2
  export declare const LangCodeDescriptionEs: {
2
3
  es: string;
3
4
  en: string;
@@ -5,6 +6,7 @@ export declare const LangCodeDescriptionEs: {
5
6
  pt: string;
6
7
  fr: string;
7
8
  };
9
+ export declare const defaultconvUserSettings: ChatUserSettings;
8
10
  export declare class VoiceTTSOption {
9
11
  provider: string;
10
12
  name: string;
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { IAgentCard } from '../models/agent.models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ParseCardPipe implements PipeTransform {
5
+ private userDataExchange;
6
+ private builderConversation;
7
+ transform(text: string, card?: IAgentCard): string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ParseCardPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<ParseCardPipe, "parseCard", true>;
10
+ }
@@ -0,0 +1,47 @@
1
+ import { Signal } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { WordTimestamps } from '../models/agent.models';
4
+ import * as i0 from "@angular/core";
5
+ export interface HighlightedWord {
6
+ word: string;
7
+ index: number;
8
+ isHighlighted: boolean;
9
+ }
10
+ export declare class AudioTextSyncService {
11
+ private highlightedWordsSignal;
12
+ private highlightedWords$;
13
+ private cleanup$;
14
+ private activeAudio;
15
+ private destroyRef;
16
+ constructor();
17
+ /**
18
+ * Synchronizes audio playback with text transcription
19
+ * @param audioElement The audio element to sync with
20
+ * @param transcriptionTimestamps Array of word timestamps
21
+ */
22
+ syncAudioWithText(audioElement: HTMLAudioElement, transcriptionTimestamps: WordTimestamps[]): void;
23
+ /**
24
+ * Stops the current sync and cleans up resources
25
+ */
26
+ stopSync(): void;
27
+ /**
28
+ * Returns the current highlighted words as a signal
29
+ */
30
+ getHighlightedWordsSignal(): Signal<HighlightedWord[]>;
31
+ /**
32
+ * Returns the current highlighted words as an observable
33
+ */
34
+ getHighlightedWords$(): Observable<HighlightedWord[]>;
35
+ /**
36
+ * Checks if a word at a specific index is currently highlighted
37
+ * @param index The index of the word to check
38
+ */
39
+ isWordHighlighted(index: number): boolean;
40
+ /**
41
+ * Returns an observable that emits true when a word at a specific index is highlighted
42
+ * @param index The index of the word to observe
43
+ */
44
+ isWordHighlighted$(index: number): Observable<boolean>;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<AudioTextSyncService, never>;
46
+ static ɵprov: i0.ɵɵInjectableDeclaration<AudioTextSyncService>;
47
+ }
@@ -11,9 +11,14 @@ export declare class DCConversationPromptBuilderService {
11
11
  [key: string]: string;
12
12
  }): ChatMessage[];
13
13
  private getDefaultParseDict;
14
+ getDefaultCardParseDict(card: IAgentCard): {
15
+ [key: string]: string;
16
+ };
14
17
  convertConversationToHtml(messages: ChatMessage[], jailBrake?: string): string;
15
18
  private parseConversation;
16
- private applyReplacements;
19
+ applyReplacements(text: string, replacements: {
20
+ [key: string]: string;
21
+ }): string;
17
22
  private getDefaultPromptByType;
18
23
  private buildInitialConversation;
19
24
  private selectOneRandomGreeting;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/ngx-agent-cards",
3
- "version": "0.0.83",
3
+ "version": "0.0.85",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",