@copilotz/chat-ui 0.1.33 → 0.1.35
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/dist/index.cjs +354 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +354 -58
- package/dist/index.js.map +1 -1
- package/dist/styles.css +7 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -29,6 +29,7 @@ type AudioAttachment = Extract<MediaAttachment, {
|
|
|
29
29
|
kind: 'audio';
|
|
30
30
|
}>;
|
|
31
31
|
type VoiceComposerState = 'idle' | 'preparing' | 'waiting_for_speech' | 'listening' | 'finishing' | 'review' | 'sending' | 'error';
|
|
32
|
+
type VoiceReviewMode = 'manual' | 'armed';
|
|
32
33
|
type VoiceTranscriptMode = 'none' | 'final-only' | 'partial-and-final';
|
|
33
34
|
interface VoiceTranscript {
|
|
34
35
|
partial?: string;
|
|
@@ -130,6 +131,8 @@ interface ChatConfig {
|
|
|
130
131
|
voiceFinishing?: string;
|
|
131
132
|
voiceReview?: string;
|
|
132
133
|
voiceSending?: string;
|
|
134
|
+
voiceReviewArmedHint?: string;
|
|
135
|
+
voiceReviewPausedHint?: string;
|
|
133
136
|
voiceStart?: string;
|
|
134
137
|
voiceStop?: string;
|
|
135
138
|
voiceSendNow?: string;
|
|
@@ -202,6 +205,7 @@ interface ChatConfig {
|
|
|
202
205
|
voiceCompose?: {
|
|
203
206
|
enabled?: boolean;
|
|
204
207
|
defaultMode?: 'text' | 'voice';
|
|
208
|
+
reviewMode?: VoiceReviewMode;
|
|
205
209
|
autoSendDelayMs?: number;
|
|
206
210
|
persistComposer?: boolean;
|
|
207
211
|
showTranscriptPreview?: boolean;
|
|
@@ -669,4 +673,4 @@ declare const chatUtils: {
|
|
|
669
673
|
generateThreadTitle: (firstMessage: string) => string;
|
|
670
674
|
};
|
|
671
675
|
|
|
672
|
-
export { type AgentOption, type AudioAttachment, type ChatCallbacks, type ChatConfig, ChatHeader, type ChatHeaderConfig, type ChatHeaderProps, ChatInput, type ChatMessage, type ChatState, type ChatThread, ChatUI, type ChatUserContext, ChatUserContextProvider, type ChatV2Props, type CreateVoiceProvider, type CustomField, type FileUploadProgress, type MediaAttachment, type MemoryItem, Message, type MessageAction, type MessageActionEvent, Sidebar, type SidebarConfig, type SidebarProps, type StateCallback, type StreamingUpdate, ThreadManager, type ToolCall, type UserCustomField, UserMenu, type UserMenuCallbacks, type UserMenuConfig, type UserMenuProps, type UserMenuUser, UserProfile, type UserProfileConfig, type UserProfileProps, type UserProfileUser, type VoiceComposerState, type VoiceProvider, type VoiceProviderHandlers, type VoiceProviderOptions, type VoiceSegment, type VoiceTranscript, type VoiceTranscriptMode, chatConfigPresets, chatUtils, cn, configUtils, createObjectUrlFromDataUrl, defaultChatConfig, featureFlags, formatDate, mergeConfig, themeUtils, useChatUserContext, validateConfig };
|
|
676
|
+
export { type AgentOption, type AudioAttachment, type ChatCallbacks, type ChatConfig, ChatHeader, type ChatHeaderConfig, type ChatHeaderProps, ChatInput, type ChatMessage, type ChatState, type ChatThread, ChatUI, type ChatUserContext, ChatUserContextProvider, type ChatV2Props, type CreateVoiceProvider, type CustomField, type FileUploadProgress, type MediaAttachment, type MemoryItem, Message, type MessageAction, type MessageActionEvent, Sidebar, type SidebarConfig, type SidebarProps, type StateCallback, type StreamingUpdate, ThreadManager, type ToolCall, type UserCustomField, UserMenu, type UserMenuCallbacks, type UserMenuConfig, type UserMenuProps, type UserMenuUser, UserProfile, type UserProfileConfig, type UserProfileProps, type UserProfileUser, type VoiceComposerState, type VoiceProvider, type VoiceProviderHandlers, type VoiceProviderOptions, type VoiceReviewMode, type VoiceSegment, type VoiceTranscript, type VoiceTranscriptMode, chatConfigPresets, chatUtils, cn, configUtils, createObjectUrlFromDataUrl, defaultChatConfig, featureFlags, formatDate, mergeConfig, themeUtils, useChatUserContext, validateConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ type AudioAttachment = Extract<MediaAttachment, {
|
|
|
29
29
|
kind: 'audio';
|
|
30
30
|
}>;
|
|
31
31
|
type VoiceComposerState = 'idle' | 'preparing' | 'waiting_for_speech' | 'listening' | 'finishing' | 'review' | 'sending' | 'error';
|
|
32
|
+
type VoiceReviewMode = 'manual' | 'armed';
|
|
32
33
|
type VoiceTranscriptMode = 'none' | 'final-only' | 'partial-and-final';
|
|
33
34
|
interface VoiceTranscript {
|
|
34
35
|
partial?: string;
|
|
@@ -130,6 +131,8 @@ interface ChatConfig {
|
|
|
130
131
|
voiceFinishing?: string;
|
|
131
132
|
voiceReview?: string;
|
|
132
133
|
voiceSending?: string;
|
|
134
|
+
voiceReviewArmedHint?: string;
|
|
135
|
+
voiceReviewPausedHint?: string;
|
|
133
136
|
voiceStart?: string;
|
|
134
137
|
voiceStop?: string;
|
|
135
138
|
voiceSendNow?: string;
|
|
@@ -202,6 +205,7 @@ interface ChatConfig {
|
|
|
202
205
|
voiceCompose?: {
|
|
203
206
|
enabled?: boolean;
|
|
204
207
|
defaultMode?: 'text' | 'voice';
|
|
208
|
+
reviewMode?: VoiceReviewMode;
|
|
205
209
|
autoSendDelayMs?: number;
|
|
206
210
|
persistComposer?: boolean;
|
|
207
211
|
showTranscriptPreview?: boolean;
|
|
@@ -669,4 +673,4 @@ declare const chatUtils: {
|
|
|
669
673
|
generateThreadTitle: (firstMessage: string) => string;
|
|
670
674
|
};
|
|
671
675
|
|
|
672
|
-
export { type AgentOption, type AudioAttachment, type ChatCallbacks, type ChatConfig, ChatHeader, type ChatHeaderConfig, type ChatHeaderProps, ChatInput, type ChatMessage, type ChatState, type ChatThread, ChatUI, type ChatUserContext, ChatUserContextProvider, type ChatV2Props, type CreateVoiceProvider, type CustomField, type FileUploadProgress, type MediaAttachment, type MemoryItem, Message, type MessageAction, type MessageActionEvent, Sidebar, type SidebarConfig, type SidebarProps, type StateCallback, type StreamingUpdate, ThreadManager, type ToolCall, type UserCustomField, UserMenu, type UserMenuCallbacks, type UserMenuConfig, type UserMenuProps, type UserMenuUser, UserProfile, type UserProfileConfig, type UserProfileProps, type UserProfileUser, type VoiceComposerState, type VoiceProvider, type VoiceProviderHandlers, type VoiceProviderOptions, type VoiceSegment, type VoiceTranscript, type VoiceTranscriptMode, chatConfigPresets, chatUtils, cn, configUtils, createObjectUrlFromDataUrl, defaultChatConfig, featureFlags, formatDate, mergeConfig, themeUtils, useChatUserContext, validateConfig };
|
|
676
|
+
export { type AgentOption, type AudioAttachment, type ChatCallbacks, type ChatConfig, ChatHeader, type ChatHeaderConfig, type ChatHeaderProps, ChatInput, type ChatMessage, type ChatState, type ChatThread, ChatUI, type ChatUserContext, ChatUserContextProvider, type ChatV2Props, type CreateVoiceProvider, type CustomField, type FileUploadProgress, type MediaAttachment, type MemoryItem, Message, type MessageAction, type MessageActionEvent, Sidebar, type SidebarConfig, type SidebarProps, type StateCallback, type StreamingUpdate, ThreadManager, type ToolCall, type UserCustomField, UserMenu, type UserMenuCallbacks, type UserMenuConfig, type UserMenuProps, type UserMenuUser, UserProfile, type UserProfileConfig, type UserProfileProps, type UserProfileUser, type VoiceComposerState, type VoiceProvider, type VoiceProviderHandlers, type VoiceProviderOptions, type VoiceReviewMode, type VoiceSegment, type VoiceTranscript, type VoiceTranscriptMode, chatConfigPresets, chatUtils, cn, configUtils, createObjectUrlFromDataUrl, defaultChatConfig, featureFlags, formatDate, mergeConfig, themeUtils, useChatUserContext, validateConfig };
|