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 Versions

1
19

0.19.5

Diff

Changelog

Source

0.19.5 (2021-09-09)

New features

The new EditorView.scrollTo effect can be used to scroll a given range into view.

marijn
published 0.19.4 •

Changelog

Source

0.19.4 (2021-09-01)

Bug fixes

Fix an issue where lines containing just a widget decoration wrapped in a mark decoration could be displayed with 0 height.

marijn
published 0.19.3 •

Changelog

Source

0.19.3 (2021-08-25)

Bug fixes

Fix a view corruption that could happen in situations involving overlapping mark decorations.

marijn
published 0.19.2 •

Changelog

Source

0.19.2 (2021-08-23)

New features

The package now exports a scrollPastEnd function, which returns an extension that adds space below the document to allow the last line to be scrolled to the top of the editor.

marijn
published 0.19.1 •

Changelog

Source

0.19.1 (2021-08-11)

Breaking changes

The view now emits new-style user event annotations for the transactions it generates.

Bug fixes

Fix a bug where coordsAtPos would allow the passed side argument to override widget sides, producing incorrect cursor positions.

Fix a bug that could cause content lines to be misaligned in certain situations involving widgets at the end of lines.

Fix an issue where, if the browser decided to modify DOM attributes in the content in response to some editing action, the view failed to reset those again.

marijn
published 0.18.19 •

Changelog

Source

0.18.19 (2021-07-12)

Bug fixes

Fix a regression where EditorView.editable.of(false) didn't disable editing on Webkit-based browsers.

marijn
published 0.18.18 •

Changelog

Source

0.18.18 (2021-07-06)

Bug fixes

Fix a bug that caused EditorView.moveVertically to only move by one line, even when given a custom distance, in some cases.

Hide Safari's native bold/italic/underline controls for the content.

Fix a CSS problem that prevented Safari from breaking words longer than the line in line-wrapping mode.

Avoid a problem where composition would be inappropriately abored on Safari.

Fix drag-selection that scrolls the content by dragging past the visible viewport.

New features

posAtCoords now has an imprecise mode where it'll return an approximate position even for parts of the document that aren't currently rendered.

marijn
published 0.18.17 •

Changelog

Source

0.18.17 (2021-06-14)

Bug fixes

Make drawSelection behave properly when lines are split by block widgets.

Make sure drawn selections that span a single line break don't leave a gap between the lines.

marijn
published 0.18.16 •

Changelog

Source

0.18.16 (2021-06-03)

Bug fixes

Fix a crash that could occur when the document changed during mouse selection.

Fix a bug where composition inside styled content would sometimes be inappropriately aborted by editor DOM updates.

New features

MouseSelectionStyle.update may now return true to indicate it should be queried for a new selection after the update.

marijn
published 0.18.15 •

Changelog

Source

0.18.15 (2021-06-01)

Bug fixes

Fix a bug that would, in very specific circumstances, cause posAtCoords to go into an infinite loop in Safari.

Fix a bug where some types of IME input on Mobile Safari would drop text.

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