@codemirror/basic-setup
Advanced tools
Comparing version 0.19.3 to 0.20.0
@@ -0,1 +1,7 @@ | ||
## 0.20.0 (2022-04-20) | ||
### Breaking changes | ||
Update dependencies to 0.20.0 | ||
## 0.19.3 (2022-03-30) | ||
@@ -2,0 +8,0 @@ |
@@ -6,6 +6,6 @@ import { Extension } from '@codemirror/state'; | ||
/** | ||
This is an extension value that just pulls together a whole lot of | ||
This is an extension value that just pulls together a number of | ||
extensions that you might want in a basic editor. It is meant as a | ||
convenient helper to quickly set up CodeMirror without installing | ||
and importing a lot of packages. | ||
and importing a lot of separate packages. | ||
@@ -15,6 +15,6 @@ Specifically, it includes... | ||
- [the default command bindings](https://codemirror.net/6/docs/ref/#commands.defaultKeymap) | ||
- [line numbers](https://codemirror.net/6/docs/ref/#gutter.lineNumbers) | ||
- [line numbers](https://codemirror.net/6/docs/ref/#view.lineNumbers) | ||
- [special character highlighting](https://codemirror.net/6/docs/ref/#view.highlightSpecialChars) | ||
- [the undo history](https://codemirror.net/6/docs/ref/#history.history) | ||
- [a fold gutter](https://codemirror.net/6/docs/ref/#fold.foldGutter) | ||
- [the undo history](https://codemirror.net/6/docs/ref/#commands.history) | ||
- [a fold gutter](https://codemirror.net/6/docs/ref/#language.foldGutter) | ||
- [custom selection drawing](https://codemirror.net/6/docs/ref/#view.drawSelection) | ||
@@ -24,12 +24,11 @@ - [drop cursor](https://codemirror.net/6/docs/ref/#view.dropCursor) | ||
- [reindentation on input](https://codemirror.net/6/docs/ref/#language.indentOnInput) | ||
- [the default highlight style](https://codemirror.net/6/docs/ref/#highlight.defaultHighlightStyle) (as fallback) | ||
- [bracket matching](https://codemirror.net/6/docs/ref/#matchbrackets.bracketMatching) | ||
- [bracket closing](https://codemirror.net/6/docs/ref/#closebrackets.closeBrackets) | ||
- [the default highlight style](https://codemirror.net/6/docs/ref/#language.defaultHighlightStyle) (as fallback) | ||
- [bracket matching](https://codemirror.net/6/docs/ref/#language.bracketMatching) | ||
- [bracket closing](https://codemirror.net/6/docs/ref/#autocomplete.closeBrackets) | ||
- [autocompletion](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion) | ||
- [rectangular selection](https://codemirror.net/6/docs/ref/#rectangular-selection.rectangularSelection) and [crosshair cursor](https://codemirror.net/6/docs/ref/#rectangular-selection.crosshairCursor) | ||
- [rectangular selection](https://codemirror.net/6/docs/ref/#view.rectangularSelection) and [crosshair cursor](https://codemirror.net/6/docs/ref/#view.crosshairCursor) | ||
- [active line highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLine) | ||
- [active line gutter highlighting](https://codemirror.net/6/docs/ref/#gutter.highlightActiveLineGutter) | ||
- [active line gutter highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLineGutter) | ||
- [selection match highlighting](https://codemirror.net/6/docs/ref/#search.highlightSelectionMatches) | ||
- [search](https://codemirror.net/6/docs/ref/#search.searchKeymap) | ||
- [commenting](https://codemirror.net/6/docs/ref/#comment.commentKeymap) | ||
- [linting](https://codemirror.net/6/docs/ref/#lint.lintKeymap) | ||
@@ -36,0 +35,0 @@ |
@@ -1,24 +0,16 @@ | ||
import { highlightSpecialChars, drawSelection, dropCursor, highlightActiveLine, keymap } from '@codemirror/view'; | ||
import { lineNumbers, highlightActiveLineGutter, highlightSpecialChars, drawSelection, dropCursor, rectangularSelection, crosshairCursor, highlightActiveLine, keymap } from '@codemirror/view'; | ||
export { EditorView } from '@codemirror/view'; | ||
import { EditorState } from '@codemirror/state'; | ||
export { EditorState } from '@codemirror/state'; | ||
import { history, historyKeymap } from '@codemirror/history'; | ||
import { foldGutter, foldKeymap } from '@codemirror/fold'; | ||
import { indentOnInput } from '@codemirror/language'; | ||
import { lineNumbers, highlightActiveLineGutter } from '@codemirror/gutter'; | ||
import { defaultKeymap } from '@codemirror/commands'; | ||
import { bracketMatching } from '@codemirror/matchbrackets'; | ||
import { closeBrackets, closeBracketsKeymap } from '@codemirror/closebrackets'; | ||
import { foldGutter, indentOnInput, syntaxHighlighting, defaultHighlightStyle, bracketMatching, foldKeymap } from '@codemirror/language'; | ||
import { history, defaultKeymap, historyKeymap } from '@codemirror/commands'; | ||
import { highlightSelectionMatches, searchKeymap } from '@codemirror/search'; | ||
import { autocompletion, completionKeymap } from '@codemirror/autocomplete'; | ||
import { commentKeymap } from '@codemirror/comment'; | ||
import { rectangularSelection, crosshairCursor } from '@codemirror/rectangular-selection'; | ||
import { defaultHighlightStyle } from '@codemirror/highlight'; | ||
import { closeBrackets, autocompletion, closeBracketsKeymap, completionKeymap } from '@codemirror/autocomplete'; | ||
import { lintKeymap } from '@codemirror/lint'; | ||
/** | ||
This is an extension value that just pulls together a whole lot of | ||
This is an extension value that just pulls together a number of | ||
extensions that you might want in a basic editor. It is meant as a | ||
convenient helper to quickly set up CodeMirror without installing | ||
and importing a lot of packages. | ||
and importing a lot of separate packages. | ||
@@ -28,6 +20,6 @@ Specifically, it includes... | ||
- [the default command bindings](https://codemirror.net/6/docs/ref/#commands.defaultKeymap) | ||
- [line numbers](https://codemirror.net/6/docs/ref/#gutter.lineNumbers) | ||
- [line numbers](https://codemirror.net/6/docs/ref/#view.lineNumbers) | ||
- [special character highlighting](https://codemirror.net/6/docs/ref/#view.highlightSpecialChars) | ||
- [the undo history](https://codemirror.net/6/docs/ref/#history.history) | ||
- [a fold gutter](https://codemirror.net/6/docs/ref/#fold.foldGutter) | ||
- [the undo history](https://codemirror.net/6/docs/ref/#commands.history) | ||
- [a fold gutter](https://codemirror.net/6/docs/ref/#language.foldGutter) | ||
- [custom selection drawing](https://codemirror.net/6/docs/ref/#view.drawSelection) | ||
@@ -37,12 +29,11 @@ - [drop cursor](https://codemirror.net/6/docs/ref/#view.dropCursor) | ||
- [reindentation on input](https://codemirror.net/6/docs/ref/#language.indentOnInput) | ||
- [the default highlight style](https://codemirror.net/6/docs/ref/#highlight.defaultHighlightStyle) (as fallback) | ||
- [bracket matching](https://codemirror.net/6/docs/ref/#matchbrackets.bracketMatching) | ||
- [bracket closing](https://codemirror.net/6/docs/ref/#closebrackets.closeBrackets) | ||
- [the default highlight style](https://codemirror.net/6/docs/ref/#language.defaultHighlightStyle) (as fallback) | ||
- [bracket matching](https://codemirror.net/6/docs/ref/#language.bracketMatching) | ||
- [bracket closing](https://codemirror.net/6/docs/ref/#autocomplete.closeBrackets) | ||
- [autocompletion](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion) | ||
- [rectangular selection](https://codemirror.net/6/docs/ref/#rectangular-selection.rectangularSelection) and [crosshair cursor](https://codemirror.net/6/docs/ref/#rectangular-selection.crosshairCursor) | ||
- [rectangular selection](https://codemirror.net/6/docs/ref/#view.rectangularSelection) and [crosshair cursor](https://codemirror.net/6/docs/ref/#view.crosshairCursor) | ||
- [active line highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLine) | ||
- [active line gutter highlighting](https://codemirror.net/6/docs/ref/#gutter.highlightActiveLineGutter) | ||
- [active line gutter highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLineGutter) | ||
- [selection match highlighting](https://codemirror.net/6/docs/ref/#search.highlightSelectionMatches) | ||
- [search](https://codemirror.net/6/docs/ref/#search.searchKeymap) | ||
- [commenting](https://codemirror.net/6/docs/ref/#comment.commentKeymap) | ||
- [linting](https://codemirror.net/6/docs/ref/#lint.lintKeymap) | ||
@@ -69,3 +60,3 @@ | ||
/*@__PURE__*/indentOnInput(), | ||
defaultHighlightStyle.fallback, | ||
/*@__PURE__*/syntaxHighlighting(defaultHighlightStyle, { fallback: true }), | ||
/*@__PURE__*/bracketMatching(), | ||
@@ -84,3 +75,2 @@ /*@__PURE__*/closeBrackets(), | ||
...foldKeymap, | ||
...commentKeymap, | ||
...completionKeymap, | ||
@@ -87,0 +77,0 @@ ...lintKeymap |
{ | ||
"name": "@codemirror/basic-setup", | ||
"version": "0.19.3", | ||
"version": "0.20.0", | ||
"description": "Example configuration for the CodeMirror code editor", | ||
@@ -29,17 +29,9 @@ "scripts": { | ||
"dependencies": { | ||
"@codemirror/autocomplete": "^0.19.0", | ||
"@codemirror/closebrackets": "^0.19.0", | ||
"@codemirror/commands": "^0.19.0", | ||
"@codemirror/comment": "^0.19.0", | ||
"@codemirror/fold": "^0.19.0", | ||
"@codemirror/gutter": "^0.19.0", | ||
"@codemirror/highlight": "^0.19.0", | ||
"@codemirror/history": "^0.19.0", | ||
"@codemirror/language": "^0.19.0", | ||
"@codemirror/lint": "^0.19.0", | ||
"@codemirror/matchbrackets": "^0.19.0", | ||
"@codemirror/rectangular-selection": "^0.19.2", | ||
"@codemirror/search": "^0.19.0", | ||
"@codemirror/state": "^0.19.0", | ||
"@codemirror/view": "^0.19.31" | ||
"@codemirror/autocomplete": "^0.20.0", | ||
"@codemirror/commands": "^0.20.0", | ||
"@codemirror/language": "^0.20.0", | ||
"@codemirror/lint": "^0.20.0", | ||
"@codemirror/search": "^0.20.0", | ||
"@codemirror/state": "^0.20.0", | ||
"@codemirror/view": "^0.20.0" | ||
}, | ||
@@ -46,0 +38,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
7
15275
188
+ Added@codemirror/autocomplete@0.20.3(transitive)
+ Added@codemirror/commands@0.20.0(transitive)
+ Added@codemirror/language@0.20.2(transitive)
+ Added@codemirror/lint@0.20.3(transitive)
+ Added@codemirror/search@0.20.1(transitive)
+ Added@codemirror/state@0.20.1(transitive)
+ Added@codemirror/view@0.20.7(transitive)
+ Added@lezer/common@0.16.1(transitive)
+ Added@lezer/highlight@0.16.0(transitive)
+ Added@lezer/lr@0.16.3(transitive)
- Removed@codemirror/closebrackets@^0.19.0
- Removed@codemirror/comment@^0.19.0
- Removed@codemirror/fold@^0.19.0
- Removed@codemirror/gutter@^0.19.0
- Removed@codemirror/highlight@^0.19.0
- Removed@codemirror/history@^0.19.0
- Removed@codemirror/matchbrackets@^0.19.0
- Removed@codemirror/autocomplete@0.19.15(transitive)
- Removed@codemirror/closebrackets@0.19.2(transitive)
- Removed@codemirror/commands@0.19.8(transitive)
- Removed@codemirror/comment@0.19.1(transitive)
- Removed@codemirror/fold@0.19.4(transitive)
- Removed@codemirror/gutter@0.19.9(transitive)
- Removed@codemirror/highlight@0.19.8(transitive)
- Removed@codemirror/history@0.19.2(transitive)
- Removed@codemirror/language@0.19.10(transitive)
- Removed@codemirror/lint@0.19.6(transitive)
- Removed@codemirror/matchbrackets@0.19.4(transitive)
- Removed@codemirror/panel@0.19.1(transitive)
- Removed@codemirror/rangeset@0.19.9(transitive)
- Removed@codemirror/rectangular-selection@0.19.2(transitive)
- Removed@codemirror/search@0.19.10(transitive)
- Removed@codemirror/state@0.19.9(transitive)
- Removed@codemirror/text@0.19.6(transitive)
- Removed@codemirror/tooltip@0.19.16(transitive)
- Removed@codemirror/view@0.19.48(transitive)
- Removed@lezer/common@0.15.12(transitive)
- Removed@lezer/lr@0.15.8(transitive)
Updated@codemirror/commands@^0.20.0
Updated@codemirror/language@^0.20.0
Updated@codemirror/lint@^0.20.0
Updated@codemirror/search@^0.20.0
Updated@codemirror/state@^0.20.0
Updated@codemirror/view@^0.20.0