New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@codemirror/view

Package Overview
Dependencies
Maintainers
2
Versions
200
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

to
0.19.11

10

CHANGELOG.md

@@ -0,1 +1,11 @@

## 0.19.11 (2021-11-03)
### Breaking changes
`EditorView.scrollPosIntoView` has been deprecated. Use the `EditorView.scrollTo` effect instead.
### New features
The new `EditorView.centerOn` effect can be used to scroll a given range to the center of the view.
## 0.19.10 (2021-11-02)

@@ -2,0 +12,0 @@

8

dist/index.d.ts

@@ -859,5 +859,2 @@ import * as _codemirror_rangeset from '@codemirror/rangeset';

moveVertically(start: SelectionRange, forward: boolean, distance?: number): SelectionRange;
/**
Scroll the given document position into view.
*/
scrollPosIntoView(pos: number): void;

@@ -953,2 +950,7 @@ /**

/**
Effect that makes the editor scroll the given range to the
center of the visible view.
*/
static centerOn: _codemirror_state.StateEffectType<SelectionRange>;
/**
Facet to add a [style

@@ -955,0 +957,0 @@ module](https://github.com/marijnh/style-mod#documentation) to

{
"name": "@codemirror/view",
"version": "0.19.10",
"version": "0.19.11",
"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