@codemirror/view
Advanced tools
Comparing version 0.17.13 to 0.18.0
@@ -0,1 +1,11 @@ | ||
## 0.18.0 (2021-03-03) | ||
### Breaking changes | ||
The `themeClass` function and ``-style selectors in themes are no longer supported (prefixing with `cm-` should be done manually now). | ||
Themes must now use `&` (instead of an extra `$`) to target the editor wrapper element. | ||
The editor no longer adds `cm-light` or `cm-dark` classes. Targeting light or dark configurations in base themes should now be done by using a `&light` or `&dark` top-level selector. | ||
## 0.17.13 (2021-03-03) | ||
@@ -2,0 +12,0 @@ |
@@ -238,5 +238,5 @@ import { RangeSet, RangeValue, Range } from '@codemirror/rangeset'; | ||
}): Extension; | ||
static lineWrapping: Extension; | ||
static contentAttributes: Facet<Attrs, Attrs>; | ||
static editorAttributes: Facet<Attrs, Attrs>; | ||
static lineWrapping: Extension; | ||
static announce: StateEffectType<string>; | ||
@@ -251,4 +251,2 @@ } | ||
declare function themeClass(selector: string): string; | ||
interface KeyBinding { | ||
@@ -298,2 +296,2 @@ key?: string; | ||
export { BidiSpan, BlockInfo, BlockType, Command, DOMEventHandlers, DOMEventMap, Decoration, DecorationSet, Direction, EditorView, KeyBinding, MatchDecorator, MouseSelectionStyle, PluginField, PluginFieldProvider, PluginSpec, PluginValue, Rect, ViewPlugin, ViewUpdate, WidgetType, drawSelection, highlightActiveLine, highlightSpecialChars, keymap, logException, placeholder, runScopeHandlers, themeClass }; | ||
export { BidiSpan, BlockInfo, BlockType, Command, DOMEventHandlers, DOMEventMap, Decoration, DecorationSet, Direction, EditorView, KeyBinding, MatchDecorator, MouseSelectionStyle, PluginField, PluginFieldProvider, PluginSpec, PluginValue, Rect, ViewPlugin, ViewUpdate, WidgetType, drawSelection, highlightActiveLine, highlightSpecialChars, keymap, logException, placeholder, runScopeHandlers }; |
{ | ||
"name": "@codemirror/view", | ||
"version": "0.17.13", | ||
"version": "0.18.0", | ||
"description": "DOM view component for the CodeMirror code editor", | ||
@@ -29,6 +29,6 @@ "scripts": { | ||
"dependencies": { | ||
"@codemirror/rangeset": "^0.17.0", | ||
"@codemirror/state": "^0.17.0", | ||
"@codemirror/text": "^0.17.0", | ||
"style-mod": "^3.2.0", | ||
"@codemirror/rangeset": "^0.18.0", | ||
"@codemirror/state": "^0.18.0", | ||
"@codemirror/text": "^0.18.0", | ||
"style-mod": "^4.0.0", | ||
"w3c-keyname": "^2.2.4" | ||
@@ -35,0 +35,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1071882
12726
+ Added@codemirror/rangeset@0.18.5(transitive)
+ Added@codemirror/state@0.18.7(transitive)
+ Added@codemirror/text@0.18.1(transitive)
+ Addedstyle-mod@4.1.2(transitive)
- Removed@codemirror/rangeset@0.17.1(transitive)
- Removed@codemirror/state@0.17.2(transitive)
- Removed@codemirror/text@0.17.2(transitive)
- Removedstyle-mod@3.2.2(transitive)
Updated@codemirror/rangeset@^0.18.0
Updated@codemirror/state@^0.18.0
Updated@codemirror/text@^0.18.0
Updatedstyle-mod@^4.0.0