Skip to content

Commit

Permalink
fix: update codemirror requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
petyosi committed Oct 1, 2023
1 parent 4a8eb88 commit 5738226
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 89 deletions.
106 changes: 25 additions & 81 deletions package-lock.json

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

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@
],
"license": "MIT",
"dependencies": {
"@codemirror/lang-markdown": "^6.1.1",
"@codemirror/merge": "^6.1.2",
"@codemirror/lang-markdown": "^6.2.1",
"@codemirror/merge": "^6.1.3",
"@codemirror/state": "^6.2.1",
"@codemirror/theme-one-dark": "^6.1.2",
"@codemirror/view": "6.15.3",
"@codemirror/view": "^6.21.0",
"@codesandbox/sandpack-react": "^2.6.7",
"@lexical/clipboard": "^0.12.2",
"@lexical/code": "^0.12.2",
Expand Down
4 changes: 1 addition & 3 deletions src/directive-editors/AdmonitionDirectiveDescriptor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ export const AdmonitionDirectiveDescriptor: DirectiveDescriptor = {
},
Editor({ mdastNode }) {
const {
config: { theme },
focusEmitter
config: { theme }
} = useNestedEditorContext()
return (
<div className={theme.admonition[mdastNode.name]}>
<NestedLexicalEditor<ContainerDirective>
block
focusEmitter={focusEmitter}
getContent={(node) => node.children}
getUpdatedMdastNode={(mdastNode, children: any) => ({ ...mdastNode, children })}
/>
Expand Down
1 change: 0 additions & 1 deletion src/plugins/diff-source/DiffViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const CmMergeView: React.FC<CmMergeViewProps> = ({ oldMarkdown, newMarkdown, onU
orientation: 'a-b',
revertControls: 'a-to-b',
gutter: true,
collapseUnchanged: { margin: 2, minSize: 3 },
a: {
doc: oldMarkdown,
extensions: [...COMMON_STATE_CONFIG_EXTENSIONS, EditorState.readOnly.of(true)]
Expand Down

0 comments on commit 5738226

Please sign in to comment.