@qwanyx/stack 0.2.114 → 0.2.116
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/components/AudioEditor.d.ts +4 -1
- package/dist/components/VoiceTextEditor.d.ts +3 -1
- package/dist/index.cjs.js +44 -44
- package/dist/index.esm.js +4597 -4617
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* AudioEditor Component
|
|
3
3
|
* Tape recorder style audio editor with recording, playback, and editing
|
|
4
4
|
*/
|
|
5
|
+
import React from 'react';
|
|
5
6
|
export interface AudioEditorProps {
|
|
6
7
|
/** Called when recording is complete with audio blob and duration */
|
|
7
8
|
onComplete: (audioBlob: Blob, duration: number) => void;
|
|
@@ -17,5 +18,7 @@ export interface AudioEditorProps {
|
|
|
17
18
|
hideSaveButton?: boolean;
|
|
18
19
|
/** Maximum recording duration in seconds (default: 180 = 3 minutes) */
|
|
19
20
|
maxDuration?: number;
|
|
21
|
+
/** Extra controls to render in the right side of the control bar */
|
|
22
|
+
extraControls?: React.ReactNode;
|
|
20
23
|
}
|
|
21
|
-
export declare function AudioEditor({ onComplete, onCancel: _onCancel, onTranscribe, onTranscriptionComplete, variant, hideSaveButton, maxDuration }: AudioEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function AudioEditor({ onComplete, onCancel: _onCancel, onTranscribe, onTranscriptionComplete, variant, hideSaveButton, maxDuration, extraControls }: AudioEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -25,6 +25,8 @@ export interface VoiceTextEditorProps {
|
|
|
25
25
|
onAIPrompt?: (prompt: string, text: string) => Promise<string>;
|
|
26
26
|
/** Placeholder text for textarea */
|
|
27
27
|
placeholder?: string;
|
|
28
|
+
/** Called when user saves a recording (shows save button if provided) */
|
|
29
|
+
onAudioSave?: (audioBlob: Blob, duration: number) => void;
|
|
28
30
|
/** Additional CSS classes */
|
|
29
31
|
className?: string;
|
|
30
32
|
/** Number of rows for textarea (if not flex) */
|
|
@@ -63,4 +65,4 @@ export interface VoiceTextEditorProps {
|
|
|
63
65
|
/** Error message to show if source text is empty */
|
|
64
66
|
generateSourceError?: string;
|
|
65
67
|
}
|
|
66
|
-
export declare function VoiceTextEditor({ label, value, onChange, onTranscribe, onAIAction, onAIPrompt, placeholder, className, rows, llmClient, graphClient, nodeId, audioFilename, existingAudio, existingVoice, onAudioGenerated, onGenerateTTS, audioUrl, voice, onVoiceChange, generateButton, generatePrompt, generateSourceText, generateSourceError }: VoiceTextEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
export declare function VoiceTextEditor({ label, value, onChange, onTranscribe, onAIAction, onAIPrompt, onAudioSave, placeholder, className, rows, llmClient, graphClient, nodeId, audioFilename, existingAudio, existingVoice, onAudioGenerated, onGenerateTTS, audioUrl, voice, onVoiceChange, generateButton, generatePrompt, generateSourceText, generateSourceError }: VoiceTextEditorProps): import("react/jsx-runtime").JSX.Element;
|