@codemirror/view
Advanced tools
Comparing version 0.17.3 to 0.17.4
@@ -0,1 +1,13 @@ | ||
## 0.17.4 (2021-01-14) | ||
### Bug fixes | ||
The `drawSelection` extension will now reuse cursor DOM nodes when the number of cursors stays the same, allowing some degree of cursor transition animation. | ||
Makes highlighted special characters styleable (``) and fix their default look in dark themes to have appropriate contrast. | ||
### New features | ||
Adds a new `MatchDecorator` helper class which can be used to easily maintain decorations on content that matches a regular expression. | ||
## 0.17.3 (2021-01-06) | ||
@@ -2,0 +14,0 @@ |
@@ -279,2 +279,16 @@ import { RangeSet, RangeValue, Range } from '@codemirror/rangeset'; | ||
export { BidiSpan, BlockInfo, BlockType, Command, DOMEventHandlers, DOMEventMap, Decoration, DecorationSet, Direction, EditorView, KeyBinding, MouseSelectionStyle, PluginField, PluginFieldProvider, PluginSpec, PluginValue, Rect, ViewPlugin, ViewUpdate, WidgetType, drawSelection, highlightActiveLine, highlightSpecialChars, keymap, logException, placeholder, runScopeHandlers, themeClass }; | ||
declare class MatchDecorator { | ||
private regexp; | ||
private getDeco; | ||
private boundary; | ||
constructor(config: { | ||
regexp: RegExp; | ||
decoration: Decoration | ((match: RegExpExecArray, view: EditorView, pos: number) => Decoration); | ||
boundary?: RegExp; | ||
}); | ||
createDeco(view: EditorView): RangeSet<Decoration>; | ||
updateDeco(update: ViewUpdate, deco: DecorationSet): DecorationSet; | ||
private updateRange; | ||
} | ||
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 }; |
{ | ||
"name": "@codemirror/view", | ||
"version": "0.17.3", | ||
"version": "0.17.4", | ||
"description": "DOM view component for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
1050906
12527