@qwanyx/stack 0.2.67 → 0.2.68
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/VoiceTextEditor.d.ts +24 -0
- package/dist/index.cjs.js +40 -38
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +1866 -1717
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VoiceTextEditor Component
|
|
3
|
+
* Combines AudioEditor (recorder + transcription) with a textarea + AI dropdown
|
|
4
|
+
* Pattern from TaskEditModal: AudioEditor + Notes component
|
|
5
|
+
*/
|
|
6
|
+
export interface VoiceTextEditorProps {
|
|
7
|
+
/** Label shown above the textarea */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Current text value */
|
|
10
|
+
value: string;
|
|
11
|
+
/** Called when text changes */
|
|
12
|
+
onChange: (value: string) => void;
|
|
13
|
+
/** Called to transcribe audio - should return transcribed text */
|
|
14
|
+
onTranscribe: (audioBlob: Blob) => Promise<string | null>;
|
|
15
|
+
/** Called for AI actions - should return transformed text */
|
|
16
|
+
onAIAction?: (action: 'restructure' | 'proofread' | 'rewrite', text: string) => Promise<string>;
|
|
17
|
+
/** Placeholder text for textarea */
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
/** Additional CSS classes */
|
|
20
|
+
className?: string;
|
|
21
|
+
/** Number of rows for textarea (if not flex) */
|
|
22
|
+
rows?: number;
|
|
23
|
+
}
|
|
24
|
+
export declare function VoiceTextEditor({ label, value, onChange, onTranscribe, onAIAction, placeholder, className, rows }: VoiceTextEditorProps): import("react/jsx-runtime").JSX.Element;
|