From 9fc4c8ebb8425ca27a625c0dbe738ae19d406c43 Mon Sep 17 00:00:00 2001 From: Adam <69144123+Adam-Howarth@users.noreply.github.com> Date: Tue, 11 Aug 2020 14:05:06 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#46657=20react-emai?= =?UTF-8?q?l-editor:=20add=20missing=20configuration=20properties=20by=20@?= =?UTF-8?q?Adam-Howarth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added missing configuration properties for react-email-editor (Unlayer) The additional properties are defined here: https://docs.unlayer.com/docs/features#emojis * Missing brace * Duplicate definition --- types/react-email-editor/index.d.ts | 9 +++++++++ types/react-email-editor/react-email-editor-tests.tsx | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/types/react-email-editor/index.d.ts b/types/react-email-editor/index.d.ts index 433db1273a..0422c214e9 100644 --- a/types/react-email-editor/index.d.ts +++ b/types/react-email-editor/index.d.ts @@ -71,6 +71,15 @@ export interface Features { readonly preview?: boolean; readonly imageEditor?: boolean; readonly undoRedo?: boolean; + readonly stockImages?: boolean; + readonly textEditor?: TextEditor; +} + +export interface TextEditor { + readonly spellChecker?: boolean; + readonly tables?: boolean; + readonly cleanPaste?: boolean; + readonly emojis?: boolean; } export type Translations = Record>; diff --git a/types/react-email-editor/react-email-editor-tests.tsx b/types/react-email-editor/react-email-editor-tests.tsx index 323823ae55..3d13139774 100644 --- a/types/react-email-editor/react-email-editor-tests.tsx +++ b/types/react-email-editor/react-email-editor-tests.tsx @@ -121,6 +121,13 @@ class App extends React.Component { preview: true, imageEditor: false, undoRedo: true, + stockImages: false, + textEditor: { + spellChecker: true, + tables: false, + cleanPaste: true, + emojis: true, + }, }, translations: { en: {