Socket
Socket
Sign inDemoInstall

@codemirror/view

Package Overview
Dependencies
Maintainers
2
Versions
189
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

6.14.0

Diff

Changelog

Source

6.14.0 (2023-06-23)

Bug fixes

When dragging text inside the editor, look at the state of Ctrl (or Alt on macOS) at the time of the drop, not the start of drag, to determine whether to move or copy the text.

Fix an issue where having a bunch of padding on lines could cause vertical cursor motion and posAtCoords to jump over lines.

New features

Block widget decorations can now be given an inlineOrder option to make them appear in the same ordering as surrounding inline widgets.

marijn
published 6.13.2 •

Changelog

Source

6.13.2 (2023-06-13)

Bug fixes

Fix an issue in scroll position stabilization for changes above the visible, where Chrome already does this natively and we ended up compensating twice.

marijn
published 6.13.1 •

Changelog

Source

6.13.1 (2023-06-12)

Bug fixes

Fix a bug where the cursor would in some circumstances be drawn on the wrong side of an inline widget.

Fix an issue where scrollPastEnd could cause the scroll position of editors that weren't in view to be changed unnecessarily.

marijn
published 6.13.0 •

Changelog

Source

6.13.0 (2023-06-05)

Bug fixes

Forbid widget decoration side values bigger than 10000, to prevent them from breaking range ordering invariants.

Fix a bug where differences between widgets' estimated and actual heights could cause the editor to inappropriately move the scroll position.

Avoid another situation in which composition that inserts line breaks could corrupt the editor DOM.

New features

Inline widgets may now introduce line breaks, if they report this through the WidgetType.lineBreaks property.

marijn
published 6.12.0 •

Changelog

Source

6.12.0 (2023-05-18)

Bug fixes

Remove an accidentally included console.log.

New features

EditorViewConfig.dispatch is now passed the view object as a second argument.

marijn
published 6.11.3 •

Changelog

Source

6.11.3 (2023-05-17)

Bug fixes

Make sure pointer selection respects EditorView.atomicRanges.

Preserve DOM widgets when their decoration type changes but they otherwise stay in the same place.

Fix a bug in drawSelection that could lead to invisible or incorrect selections for a blank line below a block widget.

marijn
published 6.11.2 •

Changelog

Source

6.11.2 (2023-05-13)

Bug fixes

Fix a bug where the crosshairCursor extension could, when non-native key events were fired, trigger disruptive and needless view updates.

Fix an Android issue where backspacing at the front of a line with widget decorations could replace those decorations with their text content.

Respect scroll margins when scrolling the target of drag-selection into view.

Validate selection offsets reported by the browser, to work around Safari giving us invalid values in some cases.

marijn
published 6.11.1 •

Changelog

Source

6.11.1 (2023-05-09)

Bug fixes

Don't preserve the DOM around a composition that spans multiple lines.

marijn
published 6.11.0 •

Changelog

Source

6.11.0 (2023-05-03)

New features

Gutters now support a widgetMarker option that can be used to add markers next to block widgets.

marijn
published 6.10.1 •

Changelog

Source

6.10.1 (2023-05-01)

Bug fixes

Limit cursor height in front of custom placeholder DOM elements.

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