@qwanyx/stack 0.2.108 → 0.2.110
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/client/LLMClient.d.ts +10 -0
- package/dist/components/MailComposer.d.ts +9 -1
- package/dist/index.cjs.js +34 -34
- package/dist/index.esm.js +3412 -3306
- package/package.json +1 -1
|
@@ -77,6 +77,16 @@ export declare class LLMClient {
|
|
|
77
77
|
tts(text: string, options?: {
|
|
78
78
|
voice?: TTSVoice;
|
|
79
79
|
}): Promise<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Generate an image from a text prompt
|
|
82
|
+
* @param prompt - Text description of the image to generate
|
|
83
|
+
* @param options - Generation options
|
|
84
|
+
* @returns Base64 encoded PNG image data
|
|
85
|
+
*/
|
|
86
|
+
generateImage(prompt: string, options?: {
|
|
87
|
+
size?: '1024x1024' | '1536x1024' | '1024x1536' | 'auto';
|
|
88
|
+
quality?: 'low' | 'medium' | 'high' | 'auto';
|
|
89
|
+
}): Promise<string>;
|
|
80
90
|
/**
|
|
81
91
|
* Transcribe audio to text
|
|
82
92
|
*/
|
|
@@ -70,6 +70,14 @@ export interface MailComposerProps {
|
|
|
70
70
|
renderAboveToolbar?: React.ReactNode;
|
|
71
71
|
/** Callback to pick a contact - returns email address(es) */
|
|
72
72
|
onPickContact?: (field: 'to' | 'cc' | 'bcc') => Promise<string | null>;
|
|
73
|
+
/** Initial prompt for AI generation */
|
|
74
|
+
initialPrompt?: string;
|
|
75
|
+
/** Called when prompt changes */
|
|
76
|
+
onPromptChange?: (prompt: string) => void;
|
|
77
|
+
/** Initial attachments (base64 encoded) */
|
|
78
|
+
initialAttachments?: MailAttachment[];
|
|
79
|
+
/** Called when attachments change */
|
|
80
|
+
onAttachmentsChange?: (attachments: MailAttachment[]) => void;
|
|
73
81
|
}
|
|
74
82
|
export interface MailComposerData {
|
|
75
83
|
to: string;
|
|
@@ -97,4 +105,4 @@ export interface MailComposerTheme extends MailEditorTheme {
|
|
|
97
105
|
attachmentBackground?: string;
|
|
98
106
|
attachmentBorder?: string;
|
|
99
107
|
}
|
|
100
|
-
export declare function MailComposer({ to: initialTo, cc: initialCc, bcc: initialBcc, subject: initialSubject, body: initialBody, replyTo, onSend, onCancel, onBodyChange, externalUpdate, insertText, insertTextTrigger, theme: themeProp, disabled, showCcBcc, placeholder, className, hideToField, minHeight, hideCancelButton, onAiRestructure, onAiProofread, onAiRewrite, onAiGenerate, renderAboveToolbar, onPickContact, }: MailComposerProps): import("react/jsx-runtime").JSX.Element;
|
|
108
|
+
export declare function MailComposer({ to: initialTo, cc: initialCc, bcc: initialBcc, subject: initialSubject, body: initialBody, replyTo, onSend, onCancel, onBodyChange, externalUpdate, insertText, insertTextTrigger, theme: themeProp, disabled, showCcBcc, placeholder, className, hideToField, minHeight, hideCancelButton, onAiRestructure, onAiProofread, onAiRewrite, onAiGenerate, renderAboveToolbar, onPickContact, initialPrompt, onPromptChange, initialAttachments, onAttachmentsChange, }: MailComposerProps): import("react/jsx-runtime").JSX.Element;
|