@dataclouder/ngx-agent-cards 0.1.81 → 0.1.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.
package/index.d.ts
CHANGED
|
@@ -874,6 +874,8 @@ declare const BACKGROUND_SERVICE_TOKEN: InjectionToken<IBackgroundService>;
|
|
|
874
874
|
declare class VideoPlayerService implements OnDestroy {
|
|
875
875
|
private conversationFlowStateService;
|
|
876
876
|
private player;
|
|
877
|
+
private videoElement;
|
|
878
|
+
private useNativePlayer;
|
|
877
879
|
private rewindInterval;
|
|
878
880
|
isRewinding: boolean;
|
|
879
881
|
private videoQueue;
|
|
@@ -885,7 +887,7 @@ declare class VideoPlayerService implements OnDestroy {
|
|
|
885
887
|
agentCard: _angular_core.WritableSignal<IAgentCard>;
|
|
886
888
|
constructor();
|
|
887
889
|
setAgentCard(card: IAgentCard): void;
|
|
888
|
-
initializePlayer(videoPlayer: ElementRef<HTMLVideoElement
|
|
890
|
+
initializePlayer(videoPlayer: ElementRef<HTMLVideoElement>, useNativePlayer?: boolean): void;
|
|
889
891
|
setVideoSource(videoUrl: string): void;
|
|
890
892
|
startConversation(defaultVideo?: string): void;
|
|
891
893
|
playVideo(): void;
|
|
@@ -896,11 +898,37 @@ declare class VideoPlayerService implements OnDestroy {
|
|
|
896
898
|
playAndRewind(): void;
|
|
897
899
|
cleanUp(): void;
|
|
898
900
|
ngOnDestroy(): void;
|
|
899
|
-
private
|
|
901
|
+
private playNextInQueueNative;
|
|
902
|
+
private playNextInQueuePlayr;
|
|
903
|
+
private playDefaultVideoForever;
|
|
900
904
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VideoPlayerService, never>;
|
|
901
905
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<VideoPlayerService>;
|
|
902
906
|
}
|
|
903
907
|
|
|
908
|
+
declare class VideoPlayerNativeService implements OnDestroy {
|
|
909
|
+
private conversationFlowStateService;
|
|
910
|
+
private videoElement;
|
|
911
|
+
private videoQueue;
|
|
912
|
+
private defaultVideoUrl;
|
|
913
|
+
private moodSubscription;
|
|
914
|
+
agentCard: _angular_core.WritableSignal<IAgentCard>;
|
|
915
|
+
constructor();
|
|
916
|
+
setAgentCard(card: IAgentCard): void;
|
|
917
|
+
initializePlayer(videoPlayer: ElementRef<HTMLVideoElement>): void;
|
|
918
|
+
setVideoSource(videoUrl: string): void;
|
|
919
|
+
startConversation(defaultVideo?: string): void;
|
|
920
|
+
playVideo(): void;
|
|
921
|
+
addVideosToQueue(videoUrls: string[]): void;
|
|
922
|
+
destroyPlayer(): void;
|
|
923
|
+
playAndRewind(): void;
|
|
924
|
+
cleanUp(): void;
|
|
925
|
+
ngOnDestroy(): void;
|
|
926
|
+
private onVideoEnded;
|
|
927
|
+
private playNextInQueue;
|
|
928
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VideoPlayerNativeService, never>;
|
|
929
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<VideoPlayerNativeService>;
|
|
930
|
+
}
|
|
931
|
+
|
|
904
932
|
/**
|
|
905
933
|
* @description
|
|
906
934
|
* Service responsible for managing the real-time, dynamic state of a conversation flow.
|
|
@@ -1219,6 +1247,7 @@ declare class DcAgentCardDetailsComponent implements OnInit, AfterViewInit, OnDe
|
|
|
1219
1247
|
private userService;
|
|
1220
1248
|
private videoPlayerService;
|
|
1221
1249
|
agentCardId: string;
|
|
1250
|
+
useNativePlayer: boolean;
|
|
1222
1251
|
readonly onStartConversation: _angular_core.OutputEmitterRef<IAgentCard>;
|
|
1223
1252
|
videoPlayer: ElementRef<HTMLVideoElement> | undefined;
|
|
1224
1253
|
agentCard: _angular_core.WritableSignal<IAgentCard>;
|
|
@@ -1232,7 +1261,7 @@ declare class DcAgentCardDetailsComponent implements OnInit, AfterViewInit, OnDe
|
|
|
1232
1261
|
startConversation(): void;
|
|
1233
1262
|
toggleInfoLayer(): void;
|
|
1234
1263
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DcAgentCardDetailsComponent, never>;
|
|
1235
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DcAgentCardDetailsComponent, "dc-agent-card-details", never, { "agentCardId": { "alias": "agentCardId"; "required": false; }; }, { "onStartConversation": "onStartConversation"; }, never, never, true, never>;
|
|
1264
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DcAgentCardDetailsComponent, "dc-agent-card-details", never, { "agentCardId": { "alias": "agentCardId"; "required": false; }; "useNativePlayer": { "alias": "useNativePlayer"; "required": false; }; }, { "onStartConversation": "onStartConversation"; }, never, never, true, never>;
|
|
1236
1265
|
}
|
|
1237
1266
|
|
|
1238
1267
|
declare enum EventCard {
|
|
@@ -1567,5 +1596,5 @@ declare class ChatEngineTestComponent {
|
|
|
1567
1596
|
|
|
1568
1597
|
declare const AGENT_CARDS_STATE_SERVICE: InjectionToken<MasterStateService<IAgentCard>>;
|
|
1569
1598
|
|
|
1570
|
-
export { ACCDataGenerationComponent, AGENT_CARDS_STATE_SERVICE, AIGenerationService, AgentCardListComponent, AgentCardUI, AgentCardsGenerationService, AudioService, AudioSpeed, BACKGROUND_SERVICE_TOKEN, CONVERSATION_AI_TOKEN, CardsCreatorComponent, ChatEngineTestComponent, ChatEventType, ChatMessage, ChatMessageOrchestratorComponent, ChatMonitorService, ChatRole, ConditionOperator, ConditionType, ContextEngineService, ContextType, ConversationDTO, ConversationEvents, ConversationFlowStateService, ConversationMessagesDTO, ConversationPromptBuilderService, ConversationRuleService, ConversationRulesComponent, 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, PromptPreviewComponent, SectionType, 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 };
|
|
1599
|
+
export { ACCDataGenerationComponent, AGENT_CARDS_STATE_SERVICE, AIGenerationService, AgentCardListComponent, AgentCardUI, AgentCardsGenerationService, AudioService, AudioSpeed, BACKGROUND_SERVICE_TOKEN, CONVERSATION_AI_TOKEN, CardsCreatorComponent, ChatEngineTestComponent, ChatEventType, ChatMessage, ChatMessageOrchestratorComponent, ChatMonitorService, ChatRole, ConditionOperator, ConditionType, ContextEngineService, ContextType, ConversationDTO, ConversationEvents, ConversationFlowStateService, ConversationMessagesDTO, ConversationPromptBuilderService, ConversationRuleService, ConversationRulesComponent, 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, PromptPreviewComponent, SectionType, SystemPromptType, TextEngineOptions, TextEngines, VIDEO_PLAYER_SERVICE_TOKEN, VideoPlayerNativeService, VideoPlayerService, VoiceTTSOption, VoiceTTSOptions, WordTimestamps, buildObjectTTSRequest, characterCardStringDataDefinition, convertToHTML, createAIModelFormGroup, defaultconvUserSettings, extractAudioAndTranscription, extractJsonFromResponse, getMoodStateLabelsAsString, getMoodStatePrompt, markdownToHtml, matchTranscription, provideAgentCardService, removeEmojis, removeEmojisAndSpecialCharacters, removeSpecialCharacters };
|
|
1571
1600
|
export type { Appearance, AudioGenerated, AudioState, BackgroundTask, CardTranslation, ChangePromptAction, CharacterCardData, ChatEvent, ConversationFlowFormGroup, ConversationSettingsFormGroup, DoAction, DoActionFormGroup, DynamicConditionFormGroup, DynamicCriteriaFormGroup, IAccounts, IAgentAssets, IAgentCard, IAgentCardMeta, IAgentMetadata, IAgentResponseDTO, IBackgroundService, IChallengeState, ICharacterCardDC, IConversationFlow, IConversationFlowState, IConversationSettings, IConversationSettingsDTO, IDynamicCondition, IDynamicCriteria, IDynamicFlowTask, IGenerateConversationCardsDto, IGoalState, IMoodState, IMoodStateRuntime, IRule, ISimpleAgent, ITTS, IVideoPlayerService, IWordMetadata, ModelFormGroup, ModelName, MultiLanguage, Persona, SimpleAgentTask, SimpleAgentTaskFormGroup, SimpleEvalResult, TextHTMLTag, TranscriptionsWhisper, TriggerTasksFormGroup, VoiceCloning, VoiceTTS, WordData };
|