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
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/view - npm Package Versions

1
20

0.19.24

Diff

Changelog

Source

0.19.24 (2021-12-01)

Bug fixes

Fix a bug where lineBlockAt, for queries inside the viewport, would always return the first line in the viewport.

marijn
published 0.19.23 •

Changelog

Source

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.

marijn
published 0.19.22 •

Changelog

Source

0.19.22 (2021-11-30)

Bug fixes

Fix an issue where editors with large vertical padding (for example via scrollPastEnd) could sometimes lose their scroll position on Chrome.

Avoid some unnecessary DOM measuring work by more carefully checking whether it is needed.

New features

The new elementAtHeight, lineBlockAtHeight, and lineBlockAt methods provide a simpler and more efficient replacement for the (now deprecated) blockAtHeight, visualLineAtHeight, and visualLineAt methods.

The editor view now exports a documentTop getter that gives you the vertical position of the top of the document. All height info is queried and reported relative to this top.

The editor view's new viewportLineBlocks property provides an array of in-viewport line blocks, and replaces the (now deprecated) viewportLines method.

marijn
published 0.19.21 •

Changelog

Source

0.19.21 (2021-11-26)

Bug fixes

Fix a problem where the DOM update would unnecessarily trigger browser relayouts.

marijn
published 0.19.20 •

Changelog

Source

0.19.20 (2021-11-19)

Bug fixes

Run a measure cycle when the editor's size spontaneously changes.

marijn
published 0.19.19 •

Changelog

Source

0.19.19 (2021-11-17)

Bug fixes

Fix a bug that caused the precedence of editorAttributes and contentAttributes to be inverted, making lower-precedence extensions override higher-precedence ones.

marijn
published 0.19.18 •

Changelog

Source

0.19.18 (2021-11-16)

Bug fixes

Fix an issue where the editor wasn't aware it was line-wrapping with its own lineWrapping extension enabled.

marijn
published 0.19.17 •

Changelog

Source

0.19.17 (2021-11-16)

Bug fixes

Avoid an issue where stretches of whitespace on line wrap points could cause the cursor to be placed outside of the content.

marijn
published 0.19.16 •

Changelog

Source

0.19.16 (2021-11-11)

Breaking changes

Block replacement decorations now default to inclusive, because non-inclusive block decorations are rarely what you need.

Bug fixes

Fix an issue that caused block widgets to always have a large side value, making it impossible to show them between to replacement decorations.

Fix a crash that could happen after some types of viewport changes, due to a bug in the block widget view data structure.

marijn
published 0.19.15 •

Changelog

Source

0.19.15 (2021-11-09)

Bug fixes

Fix a bug where the editor would think it was invisible when the document body was given screen height and scroll behavior.

Fix selection reading inside a shadow root on iOS.

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