Socket
Socket
Sign inDemoInstall

@codemirror/view

Package Overview
Dependencies
5
Maintainers
2
Versions
178
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.17.3 to 0.17.4

12

CHANGELOG.md

@@ -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 @@

16

dist/index.d.ts

@@ -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 };

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc