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
197
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.21.3

Diff

Changelog

Source

6.21.3 (2023-10-06)

Bug fixes

Fix an issue that caused coordsForChar to return the wrong rectangle for characters after a line wrap in Safari.

Make the context menu work when clicking below the content in a fixed-height editor.

Tooltips that have been put below/above their target position because there is no room on their default side now stay there on further updates.

marijn
published 6.21.2 •

Changelog

Source

6.21.2 (2023-10-02)

Bug fixes

Fix a regression that broke dragging text from inside the editor.

marijn
published 6.21.1 •

Changelog

Source

6.21.1 (2023-10-02)

Bug fixes

Fix a bug that could corrupt the DOM view for specific changes involving newlines and mark decorations.

marijn
published 6.21.0 •

Changelog

Source

6.21.0 (2023-09-29)

Bug fixes

Fix a bug that could cause zero-length widgets at the start of a line to be left in the view even after they were removed.

New features

RectangleMarker's dimension properties are now public.

marijn
published 6.20.2 •

Changelog

Source

6.20.2 (2023-09-25)

Bug fixes

Fix an issue in the way the DOM selection is being read that could break backspacing of widgets on Android.

Fix a bug where the editor could incorrectly computate its transform scale when it was small.

marijn
published 6.20.1 •

Changelog

Source

6.20.1 (2023-09-22)

Bug fixes

Fix a crash in plugin event handlers after dynamic reconfiguration.

Fix an issue where, on Chrome, tooltips would no longer use fixed positioning.

marijn
published 6.20.0 •

Changelog

Source

6.20.0 (2023-09-20)

Bug fixes

Fix an issue that caused repositionTooltips to crash when it was called on an editor without tooltips.

Fix an issue that caused the tooltip system to leave empty nodes in the DOM when an editor using the parent option to tooltips is destroyed.

Fix a bug that regression mouse interaction with the area of a fixed-size editor that isn't covered by the content.

Fix some issues with the way moveVertically behaved for positions on line wrap points.

Fix a bug that could cause the document DOM to be incorrectly updated on some types of viewport changes.

New features

The new getDrawSelectionConfig function returns the drawSelection configuration for a given state.

marijn
published 6.19.0 •

Changelog

Source

6.19.0 (2023-09-14)

Bug fixes

Make sure the drop cursor is properly cleaned up even when another extension handles the drop event.

Fix a crash related to non-inclusive replacing block decorations.

New features

The new EditorView.domEventObservers (and the corresponding option to view plugins) allows you to register functions that are always called for an event, regardless of whether other handlers handled it.

marijn
published 6.18.1 •

Changelog

Source

6.18.1 (2023-09-11)

Bug fixes

Fix an issue where the editor duplicated text when the browser moved content into the focused text node on composition.

Make sure widgetMarker is called for gutters on lines covered by a block replace decoration.

Fix an issue where the cursor could be shown in a position that doesn't allow a cursor when the selection is in a block widget.

marijn
published 6.18.0 •

Changelog

Source

6.18.0 (2023-09-05)

New features

The new EditorView.scaleX and scaleY properties return the CSS-transformed scale of the editor (or 1 when not scaled).

The editor now supports being scaled with CSS.

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