@qwanyx/stack 0.2.17 → 0.2.19
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 +4 -2
- 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 +7980 -1615
- package/package.json +9 -2
|
@@ -59,15 +59,17 @@ export declare class MailClient {
|
|
|
59
59
|
/**
|
|
60
60
|
* Move emails to trash (soft delete)
|
|
61
61
|
* Tries multiple folder names for Gmail locales
|
|
62
|
+
* @param sourceFolder - The folder where the emails currently are (default: INBOX)
|
|
62
63
|
*/
|
|
63
|
-
trashEmails(accountId: string, uids: number[]): Promise<{
|
|
64
|
+
trashEmails(accountId: string, uids: number[], sourceFolder?: string): Promise<{
|
|
64
65
|
success: boolean;
|
|
65
66
|
moved: number;
|
|
66
67
|
}>;
|
|
67
68
|
/**
|
|
68
69
|
* Archive emails (remove from inbox, keep in All Mail)
|
|
70
|
+
* @param sourceFolder - The folder where the emails currently are (default: INBOX)
|
|
69
71
|
*/
|
|
70
|
-
archiveEmails(accountId: string, uids: number[]): Promise<{
|
|
72
|
+
archiveEmails(accountId: string, uids: number[], sourceFolder?: string): Promise<{
|
|
71
73
|
success: boolean;
|
|
72
74
|
archived: number;
|
|
73
75
|
}>;
|
|
@@ -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;
|