Skip to content

Commit

Permalink
Update slate to 0.101.1
Browse files Browse the repository at this point in the history
  • Loading branch information
churichard committed Nov 26, 2023
1 parent 9ecd3a6 commit 496ced5
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 97 deletions.
4 changes: 2 additions & 2 deletions components/editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ function Editor(props: Props) {
}, [editor, highlightedPath, darkMode]);

return (
<Slate editor={editor} value={initialValue} onChange={onSlateChange}>
<Slate editor={editor} initialValue={initialValue} onChange={onSlateChange}>
<HoveringToolbar
canBeVisible={toolbarCanBeVisible && !addLinkPopoverState.isVisible}
setAddLinkPopoverState={setAddLinkPopoverState}
Expand All @@ -272,7 +272,7 @@ function Editor(props: Props) {
<BlockAutocompletePopover />
<TagAutocompletePopover />
<Editable
className={`overflow-hidden placeholder-gray-300 ${className}`}
className={`overflow-hidden placeholder-gray-300 focus:outline-none ${className}`}
data-testid="note-editor"
renderElement={renderElement}
renderLeaf={EditorLeaf}
Expand Down
2 changes: 1 addition & 1 deletion components/editor/ReadOnlyEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function ReadOnlyEditor(props: Props) {
return (
<Slate
editor={editor}
value={value}
initialValue={value}
onChange={() => {
/* Do nothing, this is a read only editor */
}}
Expand Down
184 changes: 94 additions & 90 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@
"remark-gfm": "^3.0.1",
"remark-parse": "^10.0.1",
"remark-wiki-link": "^1.0.4",
"slate": "^0.88.1",
"slate-history": "^0.86.0",
"slate-hyperscript": "^0.77.0",
"slate-react": "^0.91.10",
"slate": "^0.101.1",
"slate-history": "^0.100.0",
"slate-hyperscript": "^0.100.0",
"slate-react": "^0.101.1",
"stripe": "^9.2.0",
"tailwindcss": "^3.2.7",
"unified": "^10.1.2",
Expand Down

0 comments on commit 496ced5

Please sign in to comment.