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
195
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

6.28.0

Diff

Changelog

Source

6.28.0 (2024-06-10)

Bug fixes

Fix an issue where long lines broken up by block widgets were sometimes only partially rendered.

New features

The editor will now, when available (which is only on Chrome for the foreseeable future) use the EditContext API to capture text input.

marijn
published 6.27.0 •

Changelog

Source

6.27.0 (2024-06-04)

New features

The new setTabFocusMode method can be used to control whether the editor disables key bindings for Tab and Shift-Tab.

marijn
published 6.26.4 •

Changelog

Source

6.26.4 (2024-06-04)

Bug fixes

Fix an issue where commands with an optional second argument would get the keyboard event in that argument when called from a keymap.

Fix an issue that could cause the cursor to be rendered on the wrong side of a zero-length block widget.

Fix an issue where drawSelection got confused by block widgets in line-wrapped editors in some situations.

Don't hide the native selection in widgets that have focus.

Make sure that clicking an unfocusable editor still remove focus from any other focused elements.

Fix a crash when loading the package in a non-browser environment.

Stop mouse selection when the user types.

marijn
published 6.26.4-edit-context.1 •

marijn
published 6.26.4-edit-context •

marijn
published 6.26.3 •

Changelog

Source

6.26.3 (2024-04-12)

Bug fixes

Fix an issue where dispatching an update to an editor before it measured itself for the first time could cause the scroll position to incorrectly move.

Fix a crash when multiple tooltips with arrows are shown.

marijn
published 6.26.2 •

Changelog

Source

6.26.2 (2024-04-09)

Bug fixes

Improve behavior of scrollPastEnd in a scaled editor.

When available, use Selection.getComposedRanges on Safari to find the selection inside a shadow DOM.

Remove the workaround that avoided inappropriate styling on composed text after a decoration again, since it breaks the stock Android virtual keyboard.

marijn
published 6.26.1 •

Changelog

Source

6.26.1 (2024-03-28)

Bug fixes

Fix the editor getting stuck in composition when Safari fails to fire a compositionend event for a dead key composition.

Fix an issue where, with IME systems that kept the cursor at the start of the composed text, the editor misidentified the target node and disrupted composition.

Fix a bug where in a line-wrapped editor, with some content, the initial scroll position would be off from the top of the document.

marijn
published 6.26.0 •

Changelog

Source

6.26.0 (2024-03-14)

Bug fixes

Avoid the editor getting confused when iOS autocorrects on pressing Enter and does the correction and the break insertion in two different events.

Fix the pasting of copied URIs in iOS.

Fix a bug where a scaled editor could keep performing unnecessary updates due to tiny differences in geometry values returned by the browser.

Fix a bug where, on iOS with a physical keyboard, the modifiers for some keys weren't being passed to the keymaps.

Work around the fact that Mobile Safari makes DOM changes before firing a key event when typing ctrl-d on an external keyboard.

Fix an issue where some commands didn't properly scroll the cursor into view on Mobile Safari.

Re-measure the document when print settings are changed on Chrome.

New features

The EditorView.scrollHandler facet can be used to override or extend the behavior of the editor when things are scrolled into view.

marijn
published 6.25.1 •

Changelog

Source

6.25.1 (2024-03-06)

Bug fixes

Fix accidental non-optional field in layer config objects.

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