Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codemirror/view

Package Overview
Dependencies
Maintainers
2
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/view - npm Package Compare versions

Comparing version 0.17.13 to 0.18.0

10

CHANGELOG.md

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

6

dist/index.d.ts

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc