@qwanyx/stack 0.2.16 → 0.2.18
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/MailClient.d.ts +10 -0
- package/dist/components/MailEditor.d.ts +37 -0
- package/dist/index.cjs.js +106 -24
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +7985 -1612
- package/package.json +9 -2
|
@@ -94,6 +94,16 @@ export declare class MailClient {
|
|
|
94
94
|
body: string;
|
|
95
95
|
seen: boolean;
|
|
96
96
|
} | null>;
|
|
97
|
+
/**
|
|
98
|
+
* Get a specific attachment from an email
|
|
99
|
+
* Returns base64-encoded content for download
|
|
100
|
+
*/
|
|
101
|
+
getAttachment(accountId: string, uid: number, attachmentIndex: number, folder?: string): Promise<{
|
|
102
|
+
filename: string;
|
|
103
|
+
content_type: string;
|
|
104
|
+
size: number;
|
|
105
|
+
data: string;
|
|
106
|
+
} | null>;
|
|
97
107
|
/**
|
|
98
108
|
* Get email with client-side parsing using postal-mime
|
|
99
109
|
* This handles CID embedded images by converting them to base64 data URIs
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MailEditor Component
|
|
3
|
+
* Rich text email editor using Lexical
|
|
4
|
+
*/
|
|
5
|
+
export interface MailEditorProps {
|
|
6
|
+
/** HTML content value */
|
|
7
|
+
value?: string;
|
|
8
|
+
/** Called when content changes */
|
|
9
|
+
onChange?: (html: string) => void;
|
|
10
|
+
/** Placeholder text */
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
/** Reply context - will generate quoted block */
|
|
13
|
+
replyTo?: {
|
|
14
|
+
from: string;
|
|
15
|
+
date: string;
|
|
16
|
+
body: string;
|
|
17
|
+
};
|
|
18
|
+
/** Theme customization */
|
|
19
|
+
theme?: MailEditorTheme;
|
|
20
|
+
/** Disable editing */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** Additional CSS class */
|
|
23
|
+
className?: string;
|
|
24
|
+
/** Minimum height */
|
|
25
|
+
minHeight?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface MailEditorTheme {
|
|
28
|
+
background?: string;
|
|
29
|
+
text?: string;
|
|
30
|
+
textSecondary?: string;
|
|
31
|
+
border?: string;
|
|
32
|
+
primary?: string;
|
|
33
|
+
toolbarBackground?: string;
|
|
34
|
+
quoteBorder?: string;
|
|
35
|
+
quoteBackground?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function MailEditor({ value, onChange, placeholder, replyTo, theme: themeProp, disabled, className, minHeight, }: MailEditorProps): import("react/jsx-runtime").JSX.Element;
|