@qwanyx/stack 0.2.29 → 0.2.31
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 +15 -0
- package/dist/components/MailComposer.d.ts +5 -1
- package/dist/components/MailEditor.d.ts +5 -1
- package/dist/index.cjs.js +43 -41
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +4105 -3656
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AudioEditor Component
|
|
3
|
+
* Tape recorder style audio editor with recording, playback, and editing
|
|
4
|
+
*/
|
|
5
|
+
export interface AudioEditorProps {
|
|
6
|
+
/** Called when recording is complete with audio blob and duration */
|
|
7
|
+
onComplete: (audioBlob: Blob, duration: number) => void;
|
|
8
|
+
/** Called when user cancels */
|
|
9
|
+
onCancel?: () => void;
|
|
10
|
+
/** Called to transcribe the audio */
|
|
11
|
+
onTranscribe?: (audioBlob: Blob) => void;
|
|
12
|
+
/** Whether transcription is in progress */
|
|
13
|
+
transcribing?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function AudioEditor({ onComplete, onCancel: _onCancel, onTranscribe, transcribing }: AudioEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -25,6 +25,10 @@ export interface MailComposerProps {
|
|
|
25
25
|
onBodyChange?: (html: string) => void;
|
|
26
26
|
/** Force external update (e.g., AI-generated content) - set to timestamp/id to trigger */
|
|
27
27
|
externalUpdate?: string | number;
|
|
28
|
+
/** Text to insert at cursor position */
|
|
29
|
+
insertText?: string;
|
|
30
|
+
/** Trigger for text insertion - change this value to insert text */
|
|
31
|
+
insertTextTrigger?: number;
|
|
28
32
|
/** Theme customization */
|
|
29
33
|
theme?: MailComposerTheme;
|
|
30
34
|
/** Disable all inputs */
|
|
@@ -68,4 +72,4 @@ export interface MailComposerTheme extends MailEditorTheme {
|
|
|
68
72
|
attachmentBackground?: string;
|
|
69
73
|
attachmentBorder?: string;
|
|
70
74
|
}
|
|
71
|
-
export declare function MailComposer({ to: initialTo, subject: initialSubject, body: initialBody, replyTo, onSend, onCancel, onBodyChange, externalUpdate, theme: themeProp, disabled, showCcBcc, placeholder, className, minHeight, sendButtonText, hideCancelButton, }: MailComposerProps): import("react/jsx-runtime").JSX.Element;
|
|
75
|
+
export declare function MailComposer({ to: initialTo, subject: initialSubject, body: initialBody, replyTo, onSend, onCancel, onBodyChange, externalUpdate, insertText, insertTextTrigger, theme: themeProp, disabled, showCcBcc, placeholder, className, minHeight, sendButtonText, hideCancelButton, }: MailComposerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -25,6 +25,10 @@ export interface MailEditorProps {
|
|
|
25
25
|
minHeight?: string;
|
|
26
26
|
/** Force external update (e.g., AI-generated content) - set to timestamp/id to trigger */
|
|
27
27
|
externalUpdate?: string | number;
|
|
28
|
+
/** Text to insert at cursor position */
|
|
29
|
+
insertText?: string;
|
|
30
|
+
/** Trigger for text insertion - change this value to insert text */
|
|
31
|
+
insertTextTrigger?: number;
|
|
28
32
|
}
|
|
29
33
|
export interface MailEditorTheme {
|
|
30
34
|
background?: string;
|
|
@@ -36,4 +40,4 @@ export interface MailEditorTheme {
|
|
|
36
40
|
quoteBorder?: string;
|
|
37
41
|
quoteBackground?: string;
|
|
38
42
|
}
|
|
39
|
-
export declare function MailEditor({ value, onChange, placeholder, replyTo, theme: themeProp, disabled, className, minHeight, externalUpdate, }: MailEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare function MailEditor({ value, onChange, placeholder, replyTo, theme: themeProp, disabled, className, minHeight, externalUpdate, insertText, insertTextTrigger, }: MailEditorProps): import("react/jsx-runtime").JSX.Element;
|