diff --git a/core/package.json b/core/package.json index 00bf2085..2716864e 100644 --- a/core/package.json +++ b/core/package.json @@ -124,7 +124,7 @@ "slate": "0.86.0", "slate-history": "0.85.0", "slate-hyperscript": "0.77.0", - "slate-react": "0.83.2", + "slate-react": "0.86.0", "stream-browserify": "3.0.0", "styled-components": "5.3.6", "symbol-observable": "4.0.0", diff --git a/core/src/widgets/markdown/plate/components/buttons/common/ColorPickerToolbarDropdown.tsx b/core/src/widgets/markdown/plate/components/buttons/common/ColorPickerToolbarDropdown.tsx index 23e3c300..ec222f9a 100644 --- a/core/src/widgets/markdown/plate/components/buttons/common/ColorPickerToolbarDropdown.tsx +++ b/core/src/widgets/markdown/plate/components/buttons/common/ColorPickerToolbarDropdown.tsx @@ -53,7 +53,7 @@ const ColorPickerToolbarDropdown: FC = ({ setSelectedColor(value); Transforms.select(editorRef as BaseEditor, editor.selection); - ReactEditor.focus(editorRef as ReactEditor); + ReactEditor.focus(editorRef as unknown as ReactEditor); setMarks(editor, { [type]: value }); } @@ -72,7 +72,7 @@ const ColorPickerToolbarDropdown: FC = ({ const clearColor = useCallback(() => { if (editorRef && editor && editor.selection) { Transforms.select(editorRef as BaseEditor, editor.selection); - ReactEditor.focus(editorRef as ReactEditor); + ReactEditor.focus(editorRef as unknown as ReactEditor); if (selectedColor) { removeMark(editor, { key: type }); diff --git a/core/yarn.lock b/core/yarn.lock index 30db26dc..df035ae3 100644 --- a/core/yarn.lock +++ b/core/yarn.lock @@ -10699,10 +10699,10 @@ slate-hyperscript@0.77.0: dependencies: is-plain-object "^5.0.0" -slate-react@0.83.2: - version "0.83.2" - resolved "https://registry.yarnpkg.com/slate-react/-/slate-react-0.83.2.tgz#7099db1607b79c95cc2a41e2df1e04982b7e26a5" - integrity sha512-V5qtPsCOiDVCMU3ovj/CWndxx9/as5/wGJxnbJDRVzuazSh+NVw/YuGTlus1fCt+Nlt6UHOhFvM7C9pXYaftPA== +slate-react@0.86.0: + version "0.86.0" + resolved "https://registry.yarnpkg.com/slate-react/-/slate-react-0.86.0.tgz#e1e0bfaf9a21f8e18d86b616538d11e81c0f8920" + integrity sha512-FlzG0CL1MtpZk7DRH6a101FdqdhTi+vZ23SbY5hQudIdgLo7QnUBv97BRe30VctqsL9L+Z2OsFHSCmWpIIxJAw== dependencies: "@types/is-hotkey" "^0.1.1" "@types/lodash" "^4.14.149"