react-mail-inbox 2.1.12 → 2.1.14

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/index.d.ts CHANGED
@@ -69,8 +69,10 @@ interface GmailInboxProps {
69
69
  onAiInsert?: (content: string) => void;
70
70
  /** Callback when AI content is discarded */
71
71
  onAiDiscard?: () => void;
72
+ /** If true, shows the file attachment tool. Defaults to true. */
73
+ showAttachFile?: boolean;
72
74
  }
73
- declare function GmailInbox({ fetchEmailOptions, handleChange, initialData, initialTheme, onThemeChange, leftChildren, rightChildren, customTool, showOnlyBody, isReply, googleDriveConfig, aiContentComponent, aiContent, showAiPreview, onAiInsert, onAiDiscard, placeholder, minHeight, }: GmailInboxProps): react.JSX.Element;
75
+ declare function GmailInbox({ fetchEmailOptions, handleChange, initialData, initialTheme, onThemeChange, leftChildren, rightChildren, customTool, showOnlyBody, isReply, googleDriveConfig, aiContentComponent, aiContent, showAiPreview, onAiInsert, onAiDiscard, placeholder, minHeight, showAttachFile, }: GmailInboxProps): react.JSX.Element;
74
76
 
75
77
  type AiInsertHandler = (content: string) => void;
76
78
  type AiDiscardHandler = () => void;
@@ -94,9 +96,10 @@ interface ComposeBoxProps {
94
96
  customTool?: ReactNode;
95
97
  isEditorVisible?: boolean;
96
98
  editorChildren?: ReactNode;
99
+ showAttachFile?: boolean;
97
100
  }
98
101
 
99
- declare function ComposeBox({ aiContentComponent, aiContent, showAiPreview, onAiInsert, onAiDiscard, placeholder, initialHTML, rightChildren, leftChildren, customTool, minHeight, onChange, editorChildren, isEditorVisible, }: ComposeBoxProps): react__default.JSX.Element;
102
+ declare function ComposeBox({ aiContentComponent, aiContent, showAiPreview, onAiInsert, onAiDiscard, placeholder, initialHTML, rightChildren, leftChildren, customTool, minHeight, onChange, editorChildren, isEditorVisible, showAttachFile, }: ComposeBoxProps): react__default.JSX.Element;
100
103
 
101
104
  type Alignment = "left" | "center" | "right";
102
105