react-mail-inbox 1.8.3 → 1.8.5

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.mts CHANGED
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
1
+ import * as react from 'react';
2
+ import react__default, { ReactNode } from 'react';
3
3
 
4
4
  type Theme = "light" | "dark";
5
5
  interface ThemeContextType {
@@ -42,6 +42,8 @@ interface GmailInboxProps {
42
42
  customTool?: ReactNode;
43
43
  /** Placeholder text for the editor. */
44
44
  placeholder?: string;
45
+ /** Minimum height of the editor. Defaults to '400px'. */
46
+ minHeight?: string;
45
47
  /** If true, only the editor body is rendered, hiding the to/cc/bcc/subject fields. */
46
48
  showOnlyBody?: boolean;
47
49
  /** If true, the inbox is in reply mode, prefixing the subject with "Re: ". */
@@ -68,7 +70,7 @@ interface GmailInboxProps {
68
70
  /** Callback when AI content is discarded */
69
71
  onAiDiscard?: () => void;
70
72
  }
71
- declare function GmailInbox({ fetchEmailOptions, handleChange, initialData, initialTheme, onThemeChange, leftChildren, rightChildren, customTool, showOnlyBody, isReply, googleDriveConfig, aiContentComponent, aiContent, showAiPreview, onAiInsert, onAiDiscard, placeholder, }: GmailInboxProps): react_jsx_runtime.JSX.Element;
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;
72
74
 
73
75
  type AiInsertHandler = (content: string) => void;
74
76
  type AiDiscardHandler = () => void;
@@ -94,7 +96,7 @@ interface ComposeBoxProps {
94
96
  editorChildren?: ReactNode;
95
97
  }
96
98
 
97
- declare function ComposeBox({ aiContentComponent, aiContent, showAiPreview, onAiInsert, onAiDiscard, placeholder, initialHTML, rightChildren, leftChildren, customTool, minHeight, onChange, editorChildren, isEditorVisible, }: ComposeBoxProps): react_jsx_runtime.JSX.Element;
99
+ declare function ComposeBox({ aiContentComponent, aiContent, showAiPreview, onAiInsert, onAiDiscard, placeholder, initialHTML, rightChildren, leftChildren, customTool, minHeight, onChange, editorChildren, isEditorVisible, }: ComposeBoxProps): react__default.JSX.Element;
98
100
 
99
101
  type Alignment = "left" | "center" | "right";
100
102
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
1
+ import * as react from 'react';
2
+ import react__default, { ReactNode } from 'react';
3
3
 
4
4
  type Theme = "light" | "dark";
5
5
  interface ThemeContextType {
@@ -42,6 +42,8 @@ interface GmailInboxProps {
42
42
  customTool?: ReactNode;
43
43
  /** Placeholder text for the editor. */
44
44
  placeholder?: string;
45
+ /** Minimum height of the editor. Defaults to '400px'. */
46
+ minHeight?: string;
45
47
  /** If true, only the editor body is rendered, hiding the to/cc/bcc/subject fields. */
46
48
  showOnlyBody?: boolean;
47
49
  /** If true, the inbox is in reply mode, prefixing the subject with "Re: ". */
@@ -68,7 +70,7 @@ interface GmailInboxProps {
68
70
  /** Callback when AI content is discarded */
69
71
  onAiDiscard?: () => void;
70
72
  }
71
- declare function GmailInbox({ fetchEmailOptions, handleChange, initialData, initialTheme, onThemeChange, leftChildren, rightChildren, customTool, showOnlyBody, isReply, googleDriveConfig, aiContentComponent, aiContent, showAiPreview, onAiInsert, onAiDiscard, placeholder, }: GmailInboxProps): react_jsx_runtime.JSX.Element;
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;
72
74
 
73
75
  type AiInsertHandler = (content: string) => void;
74
76
  type AiDiscardHandler = () => void;
@@ -94,7 +96,7 @@ interface ComposeBoxProps {
94
96
  editorChildren?: ReactNode;
95
97
  }
96
98
 
97
- declare function ComposeBox({ aiContentComponent, aiContent, showAiPreview, onAiInsert, onAiDiscard, placeholder, initialHTML, rightChildren, leftChildren, customTool, minHeight, onChange, editorChildren, isEditorVisible, }: ComposeBoxProps): react_jsx_runtime.JSX.Element;
99
+ declare function ComposeBox({ aiContentComponent, aiContent, showAiPreview, onAiInsert, onAiDiscard, placeholder, initialHTML, rightChildren, leftChildren, customTool, minHeight, onChange, editorChildren, isEditorVisible, }: ComposeBoxProps): react__default.JSX.Element;
98
100
 
99
101
  type Alignment = "left" | "center" | "right";
100
102