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 Versions

1
1012
20

6.2.0

Diff
marijn
published 6.2.0 •

Changelog

Source

6.2.0 (2022-08-05)

Bug fixes

Fix a bug where posAtCoords would return the wrong results for positions to the right of wrapped lines.

New features

The new EditorView.setRoot method can be used when an editor view is moved to a new document or shadow root.

marijn
published 6.1.4 •

Changelog

Source

6.1.4 (2022-08-04)

Bug fixes

Make selection-restoration on focus more reliable.

marijn
published 6.1.3 •

Changelog

Source

6.1.3 (2022-08-03)

Bug fixes

Fix a bug where a document that contains only non-printing characters would lead to bogus text measurements (and, from those, to crashing).

Make sure differences between estimated and actual block heights don't cause visible scroll glitches.

marijn
published 6.1.2 •

Changelog

Source

6.1.2 (2022-07-27)

Bug fixes

Fix an issue where double tapping enter to confirm IME input and insert a newline on iOS would sometimes insert two newlines.

Fix an issue on iOS where a composition could get aborted if the editor scrolled on backspace.

marijn
published 6.1.1 •

Changelog

Source

6.1.1 (2022-07-25)

Bug fixes

Make highlightSpecialChars replace directional isolate characters by default.

The editor will now try to suppress browsers' native behavior of resetting the selection in the editable content when the editable element is focused (programmatically, with tab, etc).

Fix a CSS issue that made it possible, when the gutters were wide enough, for them to overlap with the content.

marijn
published 6.1.0 •

Changelog

Source

6.1.0 (2022-07-19)

New features

MatchDecorator now supports a decorate option that can be used to customize the way decorations are added for each match.

marijn
published 6.0.3 •

Changelog

Source

6.0.3 (2022-07-08)

Bug fixes

Fix a problem where posAtCoords could incorrectly return the start of the next line when querying positions between lines.

Fix an issue where registering a high-precedence keymap made keymap handling take precedence over other keydown event handlers.

Ctrl/Cmd-clicking can now remove ranges from a multi-range selection.

marijn
published 6.0.2 •

Changelog

Source

6.0.2 (2022-06-23)

Bug fixes

Fix a CSS issue that broke horizontal scroll width stabilization.

Fix a bug where defaultLineHeight could get an incorrect value in very narrow editors.

marijn
published 6.0.1 •

Changelog

Source

6.0.1 (2022-06-17)

Bug fixes

Avoid DOM selection corruption when the editor doesn't have focus but has selection and updates its content.

Fall back to dispatching by key code when a key event produces a non-ASCII character (so that Cyrillic and Arabic keyboards can still use bindings specified with Latin characters).

marijn
published 6.0.0 •

Changelog

Source

6.0.0 (2022-06-08)

New features

The new static EditorView.findFromDOM method can be used to retrieve an editor instance from its DOM structure.

Instead of passing a constructed state to the EditorView constructor, it is now also possible to inline the configuration options to the state in the view config object.