@dataclouder/ngx-agent-cards 0.1.55 → 0.1.56

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.
package/index.d.ts CHANGED
@@ -5,8 +5,9 @@ import * as _angular_forms from '@angular/forms';
5
5
  import { FormGroup, FormControl, FormArray } from '@angular/forms';
6
6
  import { AudioEffectType, TTSRequest } from '@dataclouder/ngx-vertex';
7
7
  import * as _angular_core from '@angular/core';
8
- import { InjectionToken, Type, Provider, WritableSignal, Injector, Signal, OnInit, OnDestroy, AfterViewInit, ElementRef, TemplateRef, EventEmitter } from '@angular/core';
8
+ import { InjectionToken, Type, Provider, WritableSignal, Injector, Signal, OnDestroy, ElementRef, OnInit, AfterViewInit, TemplateRef, EventEmitter } from '@angular/core';
9
9
  import { UserService } from '@dataclouder/ngx-users';
10
+ import * as rxjs from 'rxjs';
10
11
  import { MicSettings } from '@dataclouder/ngx-mic';
11
12
  import * as _dataclouder_ngx_agent_cards from '@dataclouder/ngx-agent-cards';
12
13
  import * as _dataclouder_ngx_knowledge from '@dataclouder/ngx-knowledge';
@@ -690,6 +691,8 @@ declare class ChatMonitorService {
690
691
  logMessageAudioWillPlay(message: MessageContent): void;
691
692
  logCurrentMood(mood: string[]): void;
692
693
  cleanMonitorVars(): void;
694
+ readonly backgroundUrl: _angular_core.WritableSignal<string>;
695
+ setBackground(imageUrl: string | undefined): void;
693
696
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChatMonitorService, never>;
694
697
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<ChatMonitorService>;
695
698
  }
@@ -745,6 +748,32 @@ interface IBackgroundService {
745
748
  declare const VIDEO_PLAYER_SERVICE_TOKEN: InjectionToken<IVideoPlayerService>;
746
749
  declare const BACKGROUND_SERVICE_TOKEN: InjectionToken<IBackgroundService>;
747
750
 
751
+ declare class VideoPlayerService implements OnDestroy {
752
+ private player;
753
+ private rewindInterval;
754
+ isRewinding: boolean;
755
+ private videoQueue;
756
+ private defaultVideoUrl;
757
+ private playAndRewindedSubscription;
758
+ private playAndRewindedSource;
759
+ playAndRewinded$: rxjs.Observable<void>;
760
+ constructor();
761
+ initializePlayer(videoPlayer: ElementRef<HTMLVideoElement>): void;
762
+ setVideoSource(videoUrl: string): void;
763
+ startConversation(defaultVideo?: string): void;
764
+ playVideo(): void;
765
+ rewindVideo(): void;
766
+ changeVideoSource(videoUrl: string): void;
767
+ addVideosToQueue(videoUrls: string[]): void;
768
+ destroyPlayer(): void;
769
+ playAndRewind(): void;
770
+ cleanUp(): void;
771
+ ngOnDestroy(): void;
772
+ private playNextInQueue;
773
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<VideoPlayerService, never>;
774
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<VideoPlayerService>;
775
+ }
776
+
748
777
  type EvaluationLevel = 1 | 2 | 3 | 4 | 5;
749
778
  type CommunicationLevel = 'Beginner' | 'Intermediate' | 'Advanced' | 'Native-like';
750
779
  type DominantRegister = 'formal' | 'informal' | 'mixed';
@@ -979,8 +1008,7 @@ declare class DcAgentCardDetailsComponent implements OnInit, AfterViewInit, OnDe
979
1008
  private toastService;
980
1009
  chatMonitorService: ChatMonitorService;
981
1010
  private userService;
982
- videoPlayerService: _dataclouder_ngx_agent_cards.IVideoPlayerService;
983
- private backgroundService;
1011
+ private videoPlayerService;
984
1012
  agentCardId: string;
985
1013
  readonly onStartConversation: _angular_core.OutputEmitterRef<IAgentCard>;
986
1014
  videoPlayer: ElementRef<HTMLVideoElement> | undefined;
@@ -1103,7 +1131,7 @@ declare class MessageContentDisplayer implements OnDestroy {
1103
1131
  wordsWithMetaState: IWordMetadata[];
1104
1132
  private audioElement;
1105
1133
  private destroyRef;
1106
- iconState: _angular_core.Signal<"paused" | "idle" | "playing" | "loading" | "playable">;
1134
+ iconState: _angular_core.Signal<"paused" | "playing" | "idle" | "loading" | "playable">;
1107
1135
  shouldPlayAudio: _angular_core.Signal<boolean>;
1108
1136
  messageText: _angular_core.Signal<string>;
1109
1137
  classTag: _angular_core.Signal<string>;
@@ -1261,5 +1289,5 @@ declare class ACCDataGenerationComponent {
1261
1289
 
1262
1290
  declare const AGENT_CARDS_STATE_SERVICE: InjectionToken<MasterStateService<IAgentCard>>;
1263
1291
 
1264
- export { ACCDataGenerationComponent, AGENT_CARDS_STATE_SERVICE, AIGenerationService, AgentCardListComponent, AgentCardUI, AgentCardsGenerationService, AudioService, AudioSpeed, BACKGROUND_SERVICE_TOKEN, CONVERSATION_AI_TOKEN, CardsCreatorComponent, ChatEventType, ChatMessage, ChatMessageOrchestratorComponent, ChatMonitorService, ChatRole, ConditionOperator, ConditionType, ContextEngineService, ContextType, ConversationDTO, ConversationEvents, ConversationMessagesDTO, ConversationPromptBuilderService, ConversationType$1 as ConversationType, ConversationTypeOptions, DCAgentCardFormComponent, DCChatComponent, DCConversationUserChatSettingsComponent, DcAgentCardDetailsComponent, DefaultAgentCardsService, DoActionTypeOptions, DynamicFlowService, DynamicFlowTaskTypeOptions, EAccountsPlatform, EAgentType, EDoActionType, EDynamicFlowTaskType, EntityThen, EntityWhatOptions, EntityWhenOptions, EvalResultStringDefinition, GlobalToolsService, MessageContent, MessageContentDisplayer, MessagesStateService, ModelSelectorComponent, PopupService, SystemPromptType, TextEngineOptions, TextEngines, VIDEO_PLAYER_SERVICE_TOKEN, VoiceTTSOption, VoiceTTSOptions, WordTimestamps, buildObjectTTSRequest, characterCardStringDataDefinition, convertToHTML, createAIModelFormGroup, defaultconvUserSettings, extractAudioAndTranscription, extractJsonFromResponse, getMoodStateLabelsAsString, getMoodStatePrompt, markdownToHtml, matchTranscription, provideAgentCardService, removeEmojis, removeEmojisAndSpecialCharacters, removeSpecialCharacters };
1292
+ export { ACCDataGenerationComponent, AGENT_CARDS_STATE_SERVICE, AIGenerationService, AgentCardListComponent, AgentCardUI, AgentCardsGenerationService, AudioService, AudioSpeed, BACKGROUND_SERVICE_TOKEN, CONVERSATION_AI_TOKEN, CardsCreatorComponent, ChatEventType, ChatMessage, ChatMessageOrchestratorComponent, ChatMonitorService, ChatRole, ConditionOperator, ConditionType, ContextEngineService, ContextType, ConversationDTO, ConversationEvents, ConversationMessagesDTO, ConversationPromptBuilderService, ConversationType$1 as ConversationType, ConversationTypeOptions, DCAgentCardFormComponent, DCChatComponent, DCConversationUserChatSettingsComponent, DcAgentCardDetailsComponent, DefaultAgentCardsService, DoActionTypeOptions, DynamicFlowService, DynamicFlowTaskTypeOptions, EAccountsPlatform, EAgentType, EDoActionType, EDynamicFlowTaskType, EntityThen, EntityWhatOptions, EntityWhenOptions, EvalResultStringDefinition, GlobalToolsService, MessageContent, MessageContentDisplayer, MessagesStateService, ModelSelectorComponent, PopupService, SystemPromptType, TextEngineOptions, TextEngines, VIDEO_PLAYER_SERVICE_TOKEN, VideoPlayerService, VoiceTTSOption, VoiceTTSOptions, WordTimestamps, buildObjectTTSRequest, characterCardStringDataDefinition, convertToHTML, createAIModelFormGroup, defaultconvUserSettings, extractAudioAndTranscription, extractJsonFromResponse, getMoodStateLabelsAsString, getMoodStatePrompt, markdownToHtml, matchTranscription, provideAgentCardService, removeEmojis, removeEmojisAndSpecialCharacters, removeSpecialCharacters };
1265
1293
  export type { Appearance, AudioGenerated, AudioState, BackgroundTask, CardTranslation, ChangePromptAction, CharacterCardData, ChatEvent, ConversationFlowFormGroup, ConversationSettingsFormGroup, DoAction, DoActionFormGroup, DynamicConditionFormGroup, DynamicCriteriaFormGroup, IAccounts, IAgentAssets, IAgentCard, IAgentCardMeta, IAgentMetadata, IAgentResponseDTO, IBackgroundService, ICharacterCardDC, IConversationFlow, IConversationSettings, IConversationSettingsDTO, IDynamicCondition, IDynamicCriteria, IDynamicFlowTask, IGenerateConversationCardsDto, IMoodState, ISimpleAgent, ITTS, IVideoPlayerService, IWordMetadata, ModelFormGroup, ModelName, MultiLanguage, Persona, SimpleAgentTask, SimpleAgentTaskFormGroup, SimpleEvalResult, TextHTMLTag, TranscriptionsWhisper, TriggerTasksFormGroup, VoiceCloning, VoiceTTS, WordData };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/ngx-agent-cards",
3
- "version": "0.1.55",
3
+ "version": "0.1.56",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",