@qwanyx/stack 0.2.36 → 0.2.38
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/MailComposer.d.ts +4 -1
- package/dist/components/MailEditor.d.ts +4 -1
- package/dist/index.cjs.js +30 -30
- package/dist/index.esm.js +1519 -1515
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* MailComposer Component
|
|
3
3
|
* Complete email composition with to/subject/body/attachments
|
|
4
4
|
*/
|
|
5
|
+
import React from 'react';
|
|
5
6
|
import { MailEditorTheme } from './MailEditor';
|
|
6
7
|
export interface MailComposerProps {
|
|
7
8
|
/** Recipient email address */
|
|
@@ -51,6 +52,8 @@ export interface MailComposerProps {
|
|
|
51
52
|
onAiProofread?: (text: string) => Promise<string>;
|
|
52
53
|
/** AI callback: rewrite text */
|
|
53
54
|
onAiRewrite?: (text: string) => Promise<string>;
|
|
55
|
+
/** Content to render above the toolbar (e.g., AudioEditor) */
|
|
56
|
+
renderAboveToolbar?: React.ReactNode;
|
|
54
57
|
}
|
|
55
58
|
export interface MailComposerData {
|
|
56
59
|
to: string;
|
|
@@ -78,4 +81,4 @@ export interface MailComposerTheme extends MailEditorTheme {
|
|
|
78
81
|
attachmentBackground?: string;
|
|
79
82
|
attachmentBorder?: string;
|
|
80
83
|
}
|
|
81
|
-
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, onAiRestructure, onAiProofread, onAiRewrite, }: MailComposerProps): import("react/jsx-runtime").JSX.Element;
|
|
84
|
+
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, onAiRestructure, onAiProofread, onAiRewrite, renderAboveToolbar, }: MailComposerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* MailEditor Component
|
|
3
3
|
* Rich text email editor using Lexical
|
|
4
4
|
*/
|
|
5
|
+
import React from 'react';
|
|
5
6
|
export interface MailEditorProps {
|
|
6
7
|
/** HTML content value */
|
|
7
8
|
value?: string;
|
|
@@ -39,6 +40,8 @@ export interface MailEditorProps {
|
|
|
39
40
|
aiProcessing?: boolean;
|
|
40
41
|
/** Current AI action being processed */
|
|
41
42
|
aiProcessingAction?: 'restructure' | 'proofread' | 'rewrite' | null;
|
|
43
|
+
/** Content to render above the toolbar (e.g., AudioEditor) */
|
|
44
|
+
renderAboveToolbar?: React.ReactNode;
|
|
42
45
|
}
|
|
43
46
|
export interface MailEditorTheme {
|
|
44
47
|
background?: string;
|
|
@@ -50,4 +53,4 @@ export interface MailEditorTheme {
|
|
|
50
53
|
quoteBorder?: string;
|
|
51
54
|
quoteBackground?: string;
|
|
52
55
|
}
|
|
53
|
-
export declare function MailEditor({ value, onChange, placeholder, replyTo, theme: themeProp, disabled, className, minHeight, externalUpdate, insertText, insertTextTrigger, onAiRestructure, onAiProofread, onAiRewrite, aiProcessing: aiProcessingProp, aiProcessingAction: aiProcessingActionProp, }: MailEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export declare function MailEditor({ value, onChange, placeholder, replyTo, theme: themeProp, disabled, className, minHeight, externalUpdate, insertText, insertTextTrigger, onAiRestructure, onAiProofread, onAiRewrite, aiProcessing: aiProcessingProp, aiProcessingAction: aiProcessingActionProp, renderAboveToolbar, }: MailEditorProps): import("react/jsx-runtime").JSX.Element;
|