@qwanyx/stack 0.2.45 → 0.2.47
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 +7 -5
- package/dist/index.cjs.js +41 -41
- package/dist/index.esm.js +3224 -3167
- package/package.json +1 -1
|
@@ -7,13 +7,15 @@ export interface AudioEditorProps {
|
|
|
7
7
|
onComplete: (audioBlob: Blob, duration: number) => void;
|
|
8
8
|
/** Called when user cancels */
|
|
9
9
|
onCancel?: () => void;
|
|
10
|
-
/** Called to transcribe the audio */
|
|
11
|
-
onTranscribe?: (audioBlob: Blob) =>
|
|
12
|
-
/**
|
|
13
|
-
|
|
10
|
+
/** Called to transcribe the audio - should return the transcribed text */
|
|
11
|
+
onTranscribe?: (audioBlob: Blob) => Promise<string | null>;
|
|
12
|
+
/** Called when transcription text is ready (for appending to notes) */
|
|
13
|
+
onTranscriptionComplete?: (text: string) => void;
|
|
14
14
|
/** Display variant: 'widget' has border/rounded corners, 'div' fills container */
|
|
15
15
|
variant?: 'widget' | 'div';
|
|
16
16
|
/** Hide the save button (useful when only transcribing) */
|
|
17
17
|
hideSaveButton?: boolean;
|
|
18
|
+
/** Maximum recording duration in seconds (default: 180 = 3 minutes) */
|
|
19
|
+
maxDuration?: number;
|
|
18
20
|
}
|
|
19
|
-
export declare function AudioEditor({ onComplete, onCancel: _onCancel, onTranscribe,
|
|
21
|
+
export declare function AudioEditor({ onComplete, onCancel: _onCancel, onTranscribe, onTranscriptionComplete, variant, hideSaveButton, maxDuration }: AudioEditorProps): import("react/jsx-runtime").JSX.Element;
|