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
191
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.15.2

Diff

Changelog

Source

6.15.2 (2023-07-18)

Bug fixes

Fix the check that made sure compositions are dropped when the selection is moved.

marijn
published 6.15.1 •

Changelog

Source

6.15.1 (2023-07-18)

Bug fixes

Fix a regression that could cause the composition content to be drawn incorrectly.

marijn
published 6.15.0 •

Changelog

Source

6.15.0 (2023-07-17)

Bug fixes

Fix dragging a selection from inside the current selection on macOS.

Fix an issue that could cause the scroll position to jump wildly

Don't try to scroll fixed-positioned elements into view by scrolling their parent elements.

Fix a bug that caused the cursor to be hidden when showing a placeholder that consisted of the empty string.

Resolve some issues where composition could incorrectly affect nearby replaced content.

New features

Key bindings can now set a stopPropagation field to cause the view to stop the key event propagation when it considers the event handled.

marijn
published 6.14.1 •

Changelog

Source

6.14.1 (2023-07-06)

Bug fixes

Fix an issue where scrolling up through line-wrapped text would sometimes cause the scroll position to pop down.

Fix an issue where clicking wouldn't focus the editor on Firefox when it was in an iframe and already the active element of the frame.

Fix a bug that could cause compositions to be disrupted because their surrounding DOM was repurposed for some other piece of content.

Fix a bug where adding content to the editor could inappropriately move the scroll position.

Extend detection of Enter presses on Android to beforeInput events with an "insertLineBreak" type.

marijn
published 6.14.0 •

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.

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