From a013d10562741e6a4f20e579ad59046e4a279adf Mon Sep 17 00:00:00 2001 From: Santush Deb Nath Date: Thu, 4 Jul 2024 11:55:12 +0100 Subject: [PATCH] Removed apiKey and apiSecret --- package-lock.json | 14 +++++++------- package.json | 2 +- src/hooks/useEditorOptions.ts | 2 -- test/index.test.tsx | 2 +- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 520a970..0c8d163 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.4.12", "license": "MIT", "dependencies": { - "mailui-editor-types": "^1.0.18" + "mailui-editor-types": "^1.0.20" }, "devDependencies": { "@changesets/cli": "^2.27.1", @@ -10138,9 +10138,9 @@ } }, "node_modules/mailui-editor-types": { - "version": "1.0.18", - "resolved": "https://registry.npmjs.org/mailui-editor-types/-/mailui-editor-types-1.0.18.tgz", - "integrity": "sha512-3D/UiZsWEPt7837J2fX/WtbTo6+URsVIM9GvgKaiHrrIg/Xq0nrk3tL3KtLAtWQDcsa7Gz7C3Yxzfbttp9aLhg==" + "version": "1.0.20", + "resolved": "https://registry.npmjs.org/mailui-editor-types/-/mailui-editor-types-1.0.20.tgz", + "integrity": "sha512-PUM3/Y7x2xT2s2vZv3a3Y7ZjwtqP1wpP97Dfi1+zAIJvsuPISByMesDLulgQkhjl4JoIjqsqD5uCrpkuq5JLww==" }, "node_modules/make-dir": { "version": "4.0.0", @@ -22389,9 +22389,9 @@ } }, "mailui-editor-types": { - "version": "1.0.18", - "resolved": "https://registry.npmjs.org/mailui-editor-types/-/mailui-editor-types-1.0.18.tgz", - "integrity": "sha512-3D/UiZsWEPt7837J2fX/WtbTo6+URsVIM9GvgKaiHrrIg/Xq0nrk3tL3KtLAtWQDcsa7Gz7C3Yxzfbttp9aLhg==" + "version": "1.0.20", + "resolved": "https://registry.npmjs.org/mailui-editor-types/-/mailui-editor-types-1.0.20.tgz", + "integrity": "sha512-PUM3/Y7x2xT2s2vZv3a3Y7ZjwtqP1wpP97Dfi1+zAIJvsuPISByMesDLulgQkhjl4JoIjqsqD5uCrpkuq5JLww==" }, "make-dir": { "version": "4.0.0", diff --git a/package.json b/package.json index 2475382..630706b 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,6 @@ "typescript": "^3.9.10" }, "dependencies": { - "mailui-editor-types": "^1.0.18" + "mailui-editor-types": "^1.0.20" } } diff --git a/src/hooks/useEditorOptions.ts b/src/hooks/useEditorOptions.ts index 353c3e9..7fc0d70 100644 --- a/src/hooks/useEditorOptions.ts +++ b/src/hooks/useEditorOptions.ts @@ -6,8 +6,6 @@ const useEditorOptions = (props: MailUiEditorProps, editorId: string) => { return useMemo(() => { const options: MailUiEditorProps['options'] = { ...(props.options || {}), - apiKey: props.options?.apiKey, - apiSecret: props.options?.apiSecret, signature: props.options?.signature, appearance: props.options?.appearance, displayMode: props.options?.displayMode || 'email', diff --git a/test/index.test.tsx b/test/index.test.tsx index 0f09cfd..7cce4ec 100644 --- a/test/index.test.tsx +++ b/test/index.test.tsx @@ -9,7 +9,7 @@ describe('it', () => { // @ts-ignore const div = document.createElement('div'); - ReactDOM.render(, div); + ReactDOM.render(, div); ReactDOM.unmountComponentAtNode(div); }); }); \ No newline at end of file