react-mail-inbox 2.1.4 → 2.1.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.ts +4 -4
- package/package.json +20 -11
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
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 {
|
|
@@ -70,7 +70,7 @@ interface GmailInboxProps {
|
|
|
70
70
|
/** Callback when AI content is discarded */
|
|
71
71
|
onAiDiscard?: () => void;
|
|
72
72
|
}
|
|
73
|
-
declare function GmailInbox({ fetchEmailOptions, handleChange, initialData, initialTheme, onThemeChange, leftChildren, rightChildren, customTool, showOnlyBody, isReply, googleDriveConfig, aiContentComponent, aiContent, showAiPreview, onAiInsert, onAiDiscard, placeholder, minHeight, }: GmailInboxProps):
|
|
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;
|
|
74
74
|
|
|
75
75
|
type AiInsertHandler = (content: string) => void;
|
|
76
76
|
type AiDiscardHandler = () => void;
|
|
@@ -96,7 +96,7 @@ interface ComposeBoxProps {
|
|
|
96
96
|
editorChildren?: ReactNode;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
declare function ComposeBox({ aiContentComponent, aiContent, showAiPreview, onAiInsert, onAiDiscard, placeholder, initialHTML, rightChildren, leftChildren, customTool, minHeight, onChange, editorChildren, isEditorVisible, }: ComposeBoxProps):
|
|
99
|
+
declare function ComposeBox({ aiContentComponent, aiContent, showAiPreview, onAiInsert, onAiDiscard, placeholder, initialHTML, rightChildren, leftChildren, customTool, minHeight, onChange, editorChildren, isEditorVisible, }: ComposeBoxProps): react__default.JSX.Element;
|
|
100
100
|
|
|
101
101
|
type Alignment = "left" | "center" | "right";
|
|
102
102
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-mail-inbox",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "A customizable Gmail-style inbox component with rich text editing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,24 +39,33 @@
|
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": "^18.0.0 || ^19.0.0",
|
|
42
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
42
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
43
|
+
"lexical": "^0.38.0",
|
|
44
|
+
"@lexical/react": "^0.38.0",
|
|
45
|
+
"@lexical/html": "^0.38.0",
|
|
46
|
+
"@lexical/link": "^0.38.0",
|
|
47
|
+
"@lexical/list": "^0.38.0",
|
|
48
|
+
"@lexical/selection": "^0.38.0",
|
|
49
|
+
"@lexical/utils": "^0.38.0"
|
|
43
50
|
},
|
|
44
51
|
"dependencies": {
|
|
45
|
-
"@lexical/html": "^0.38.1",
|
|
46
|
-
"@lexical/link": "^0.38.1",
|
|
47
|
-
"@lexical/list": "^0.38.1",
|
|
48
|
-
"@lexical/react": "^0.38.1",
|
|
49
|
-
"@lexical/selection": "^0.38.1",
|
|
50
|
-
"@lexical/utils": "^0.38.1",
|
|
51
52
|
"heic2any": "^0.0.4",
|
|
52
|
-
"lexical": "^0.38.1",
|
|
53
53
|
"react-dropzone": "^14.3.5",
|
|
54
54
|
"react-icons": "^5.4.0",
|
|
55
55
|
"reactjs-popup": "^2.0.6"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@
|
|
59
|
-
"@
|
|
58
|
+
"@lexical/html": "^0.38.2",
|
|
59
|
+
"@lexical/link": "^0.38.2",
|
|
60
|
+
"@lexical/list": "^0.38.2",
|
|
61
|
+
"@lexical/react": "^0.38.2",
|
|
62
|
+
"@lexical/selection": "^0.38.2",
|
|
63
|
+
"@lexical/utils": "^0.38.2",
|
|
64
|
+
"lexical": "^0.38.2",
|
|
65
|
+
"react": "^18.3.1",
|
|
66
|
+
"react-dom": "^18.3.1",
|
|
67
|
+
"@types/react": "^18.3.1",
|
|
68
|
+
"@types/react-dom": "^18.3.1",
|
|
60
69
|
"tsup": "^8.0.0",
|
|
61
70
|
"typescript": "^5.0.0"
|
|
62
71
|
}
|