@qwanyx/stack 0.2.105 → 0.2.107

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.
@@ -222,6 +222,8 @@ export declare class MailClient {
222
222
  */
223
223
  sendEmail(accountId: string, options: {
224
224
  to: string | string[];
225
+ cc?: string | string[];
226
+ bcc?: string | string[];
225
227
  subject: string;
226
228
  html: string;
227
229
  text?: string;
@@ -7,6 +7,10 @@ import { MailEditorTheme } from './MailEditor';
7
7
  export interface MailComposerProps {
8
8
  /** Recipient email address */
9
9
  to?: string;
10
+ /** CC recipients (comma-separated) */
11
+ cc?: string;
12
+ /** BCC recipients (comma-separated) */
13
+ bcc?: string;
10
14
  /** Subject line */
11
15
  subject?: string;
12
16
  /** HTML body content */
@@ -64,6 +68,8 @@ export interface MailComposerProps {
64
68
  }) => Promise<string>;
65
69
  /** Content to render above the toolbar (e.g., AudioEditor) */
66
70
  renderAboveToolbar?: React.ReactNode;
71
+ /** Callback to pick a contact - returns email address(es) */
72
+ onPickContact?: (field: 'to' | 'cc' | 'bcc') => Promise<string | null>;
67
73
  }
68
74
  export interface MailComposerData {
69
75
  to: string;
@@ -91,4 +97,4 @@ export interface MailComposerTheme extends MailEditorTheme {
91
97
  attachmentBackground?: string;
92
98
  attachmentBorder?: string;
93
99
  }
94
- export declare function MailComposer({ to: initialTo, 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, }: MailComposerProps): import("react/jsx-runtime").JSX.Element;
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;