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
191
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.19.22 to 0.19.23

10

CHANGELOG.md

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

## 0.19.23 (2021-11-30)
### Bug fixes
Fix an issue where after some kinds of changes, `EditorView.viewportLineBlocks` held an out-of-date set of blocks.
### New features
Export `EditorView.documentPadding`, with information about the vertical padding of the document.
## 0.19.22 (2021-11-30)

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

10

dist/index.d.ts

@@ -772,6 +772,14 @@ import * as _codemirror_rangeset from '@codemirror/rangeset';

The top position of the document, in screen coordinates. This
may be negative when the editor is scrolled down.
may be negative when the editor is scrolled down. Points
directly to the top of the first line, not above the padding.
*/
get documentTop(): number;
/**
Reports the padding above and below the document.
*/
get documentPadding(): {
top: number;
bottom: number;
};
/**
Find the line or block widget at the given vertical position.

@@ -778,0 +786,0 @@

2

package.json
{
"name": "@codemirror/view",
"version": "0.19.22",
"version": "0.19.23",
"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

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