Skip to content

Commit

Permalink
feat: editable diff view
Browse files Browse the repository at this point in the history
Replace react-diff-view with codemirror6 merge.
This reduces the bundle size and also addresses some issues with the
diff-view refer.
  • Loading branch information
petyosi committed Oct 1, 2023
1 parent 930e47d commit 4174176
Show file tree
Hide file tree
Showing 10 changed files with 292 additions and 143 deletions.
155 changes: 69 additions & 86 deletions package-lock.json

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

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
"license": "MIT",
"dependencies": {
"@codemirror/lang-markdown": "^6.1.1",
"@codemirror/merge": "^6.1.2",
"@codemirror/state": "^6.2.1",
"@codemirror/theme-one-dark": "^6.1.2",
"@codemirror/view": "6.15.3",
"@codesandbox/sandpack-react": "^2.6.7",
"@lexical/clipboard": "^0.12.2",
Expand All @@ -58,6 +60,8 @@
"@radix-ui/react-toolbar": "^1.0.4",
"@radix-ui/react-tooltip": "^1.0.6",
"classnames": "^2.3.2",
"cm6-theme-basic-light": "^0.2.0",
"codemirror": "^6.0.1",
"downshift": "^7.6.0",
"hast-util-raw": "^8.0.0",
"hast-util-sanitize": "^4.1.0",
Expand All @@ -76,7 +80,6 @@
"micromark-extension-frontmatter": "1.1.0",
"micromark-extension-gfm-table": "^1.0.6",
"micromark-extension-mdxjs": "1.0.1",
"react-diff-view": "^3.0.3",
"react-hook-form": "^7.44.2",
"unidiff": "^1.0.2"
},
Expand Down
Loading

0 comments on commit 4174176

Please sign in to comment.