Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

chore(deps): update dependency @codemirror/view to v6 #69

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Nov 13, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@codemirror/view 0.19.6 -> 6.26.3 age adoption passing confidence

Release Notes

codemirror/view (@​codemirror/view)

v6.26.3

Compare Source

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.

v6.26.2

Compare Source

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.

v6.26.1

Compare Source

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.

v6.26.0

Compare Source

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.

v6.25.1

Compare Source

Bug fixes

Fix accidental non-optional field in layer config objects.

v6.25.0

Compare Source

Bug fixes

Properly recognize Android GBoard enter presses that strip a space at the end of the line as enter.

Fix a bug that caused the gutter to have the wrong height when the editor was scaled after construction.

When starting a composition after a non-inclusive mark decoration, temporarily insert a widget that prevents the composed text from inheriting that mark's styles.

Make sure the selection is repositioned when a transaction changes decorations without changing the document.

New features

View plugins can now provide a docViewUpdate method that is called whenever the document view is updated.

Layers now take a updateOnDocUpdate option that controls whether they are automatically updated when the document view changes.

v6.24.1

Compare Source

Bug fixes

Fix a crash that happens when hover tooltips are active during changes, introduced in 6.24.0.

v6.24.0

Compare Source

Bug fixes

Fix an issue that broke context-menu select-all on Chrome when the viewport didn't cover the whole document.

Make sure tooltips are ordered by extension precedence in the DOM.

New features

Hover tooltip sources may now return multiple tooltips.

v6.23.1

Compare Source

Bug fixes

Fix a bug that caused Tooltip.above to not take effect for tooltips that were already present when the tooltip plugin is initialized.

Automatically reposition tooltips when their size changes.

v6.23.0

Compare Source

Bug fixes

Work around odd iOS Safari behavior when doing select all.

Fix a composition interruption when an widget is inserted next to the cursor.

Fix a crash in bidirectional cursor motion.

Simplify visual motion through bidirectional text, fix several corner cases where it would work badly.

Fix a bug that broke some bidi isolates not on the first line of the document.

New features

EditorView.bidiIsolatedRanges now supports automatically determining the direction of the range if not provided by the decoration.

EditorView.visualLineSide can be used to find the visual end or start of a line with bidirectional text.

The new EditorView.outerDecorations facet can be used to provide decorations that should always be at the bottom of the precedence stack.

v6.22.3

Compare Source

Bug fixes

Fix a bug that could cause tooltips to be unnecessarily be positioned absolutely.

Make sure that, when an editor creates tooltips immediately on initialization, the editor is attached to the document when their mount callback is called.

v6.22.2

Compare Source

Bug fixes

Fix an issue in the bidirectional motion that could cause the cursor to get stuck in a loop when a zero-width non-joiner char was placed on a direction boundary.

Fix a bug that corrupts the editor's internal view tree data structure on some types of edits, putting the editor in a broken state.

v6.22.1

Compare Source

Bug fixes

Call widget destroy methods when the entire editor is destroyed or reset.

Work around an issue on Safari on macOS Sonoma that made the native cursor visible even when drawSelection is enabled.

Fix an issue where, on some browsers, the screenreader announced text ended up in the printed document.

Fix a bug where a hover tooltip could stick around even though the pointer was no longer on the editor when it was moved out over the tooltip.

Fix an issue where hover tooltips could close when moving the mouse onto them due to mouse position rounding issues.

v6.22.0

Compare Source

Bug fixes

Exceptions raised by update listeners are now routed to the configured exception sink, if any.

Fix an issue where passing large scroll margins to scrollIntoView would cause the measure loop to fail to terminate.

Widgets that are draggable (and allow drag events through in their ignoreEvent implementation) can now use the editor's built-in drag/drop behavior.

New features

The new scrollTo option to EditorView allows an initial scroll position to be provided.

The new EditorView.scrollSnapshot method returns an effect that can be used to reset to a previous scroll position.

v6.21.4

Compare Source

Bug fixes

Support the offset, getCoords, overlap, and resize properties on hover tooltips, as long as they aren't given conflicting values when there are multiple active hover tooltips.

Fix a bug that caused tooltips in the default configuration to be positioned incorrectly on Chrome when the editor was transformed.

v6.21.3

Compare Source

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.

v6.21.2

Compare Source

Bug fixes

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

v6.21.1

Compare Source

Bug fixes

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

v6.21.0

Compare Source

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.

v6.20.2

Compare Source

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.

v6.20.1

Compare Source

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.

v6.20.0

Compare Source

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.

v6.19.0

Compare Source

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.

v6.18.1

Compare Source

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.

v6.18.0

Compare Source

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.

v6.17.1

Compare Source

Bug fixes

Don't close the hover tooltip when the pointer moves over empty space caused by line breaks within the hovered range.

Fix a bug where on Chrome Android, if a virtual keyboard was slow to apply a change, the editor could end up dropping it.

Work around an issue where line-wise copy/cut didn't work in Firefox because the browser wasn't firing those events when nothing was selected.

Fix a crash triggered by the way some Android IME systems update the DOM.

Fix a bug that caused replacing a word by an emoji on Chrome Android to be treated as a backspace press.

v6.17.0

Compare Source

Bug fixes

Fix a bug that broke hover tooltips when hovering over a widget.

New features

The new EditorView.cspNonce facet can be used to provide a Content Security Policy nonce for the library's generated CSS.

The new EditorView.bidiIsolatedRanges can be used to inform the editor about ranges styled as Unicode bidirection isolates, so that it can compute the character order correctly.

EditorView.dispatch now also accepts an array of transactions to be applied together in a single view update.

The new dispatchTransactions option to new EditorView now replaces the old (deprecated but still supported) dispatch option in a way that allows multiple transactions to be applied in one update.

Input handlers are now passed an additional argument that they can use to retrieve the default transaction that would be applied for the insertion.

v6.16.0

Compare Source

Bug fixes

Fix an issue that made the gutter not stick in place when the editor was in a right-to-left context.

New features

The new EditorView.coordsForChar method returns the client rectangle for a given character in the editor.

v6.15.3

Compare Source

Bug fixes

Fix another crash regression for compositions before line breaks.

v6.15.2

Compare Source

Bug fixes

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

v6.15.1

Compare Source

Bug fixes

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

v6.15.0

Compare Source

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.

v6.14.1

Compare Source

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.

v6.14.0

Compare Source

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.

v6.13.2

Compare Source

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.

v6.13.1

Compare Source

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.

v6.13.0

Compare Source

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.

v6.12.0

Compare Source

Bug fixes

Remove an accidentally included console.log.

New features

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

v6.11.3

Compare Source

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.

v6.11.2

Compare Source

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.

v6.11.1

Compare Source

Bug fixes

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

v6.11.0

Compare Source

New features

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

v6.10.1

Compare Source

Bug fixes

Limit cursor height in front of custom placeholder DOM elements.

v6.10.0

Compare Source

Bug fixes

Fix a crash in drawSelection when a measured position falls on a position that doesn't have corresponding screen coordinates.

Work around unhelpful interaction observer behavior that could cause the editor to not notice it was visible.

Give the cursor next to a line-wrapped placeholder a single-line height.

Make sure drop events below the editable element in a fixed-height editor get handled properly.

New features

Widget decorations can now define custom coordsAtPos methods to control the way the editor computes screen positions at or in the widget.

v6.9.6

Compare Source

Bug fixes

Fix an issue where, when escape was pressed followed by a key that the editor handled, followed by tab, the tab would still move focus.

Fix an issue where, in some circumstances, the editor would ignore text changes at the end of a composition.

Allow inline widgets to be updated to a different length via updateDOM.

v6.9.5

Compare Source

Bug fixes

Avoid disrupting the composition in specific cases where Safari invasively changes the DOM structure in the middle of a composition.

Fix a bug that prevented destroy being called on hover tooltips.

Fix a bug where the editor could take focus when content changes required it to restore the DOM selection.

Fix height layout corruption caused by a division by zero.

Make sure styles targeting the editor's focus status are specific enough to not cause them to apply to editors nested inside another focused editor. This will require themes to adjust their selection background styles to match the new specificity.

v6.9.4

Compare Source

Bug fixes

Make the editor scroll while dragging a selection near its sides, even if the cursor isn't outside the scrollable element.

Fix a bug that interrupted composition after widgets in some circumstances on Firefox.

Make sure the last change in a composition has its user event set to input.type.compose, even if the compositionend event fires before the changes are applied.

Make it possible to remove additional selection ranges by clicking on them with ctrl/cmd held, even if they aren't cursors.

Keep widget buffers between widgets and compositions, since removing them confuses IME on macOS Firefox.

Fix a bug where, for DOM changes that put the selection in the middle of the changed range, the editor incorrectly set its selection state.

Fix a bug where coordsAtPos could return a coordinates before the line break when querying a line-wrapped position with a positive side.

v6.9.3

Compare Source

Bug fixes

Work around a Firefox issue that caused coordsAtPos to return rectangles with the full line height on empty lines.

Opening a context menu by clicking below the content element but inside the editor now properly shows the browser's menu for editable elements.

Fix an issue that broke composition (especially of Chinese IME) after widget decorations.

Fix an issue that would cause the cursor to jump around during compositions inside nested mark decorations.

v6.9.2

Compare Source

Bug fixes

Work around a Firefox CSS bug that caused cursors to stop blinking in a scrolled editor.

Fix an issue in drawSelection where the selection extended into the editor's padding.

Fix pasting of links copied from iOS share sheet.

v6.9.1

Compare Source

Bug fixes

Improve the way posAtCoords picks the side of a widget to return by comparing the coordinates the center of the widget.

Fix an issue where transactions created for the focusChangeEffect facet were sometimes not dispatched.

v6.9.0

Compare Source

Bug fixes

Fix an issue where inaccurate estimated vertical positions could cause the viewport to not converge in line-wrapped editors.

Don't suppress double-space to period conversion when autocorrect is enabled.

Make sure the measuring code notices when the scaling of the editor is changed, and does a full measure in that case.

New features

The new EditorView.focusChangeEffect facet can be used to dispatch a state effect when the editor is focused or blurred.

v6.8.1

Compare Source

Bug fixes

Fix an issue where tooltips that have their height reduced have their height flicker when scrolling or otherwise interacting with the editor.

v6.8.0

Compare Source

Bug fixes

Fix a regression that caused clicking on the scrollbar to move the selection.

Fix an issue where focus or blur event handlers that dispatched editor transactions could corrupt the mouse selection state.

Fix a CSS regression that prevented the drop cursor from being positioned properly.

New features

WidgetType.updateDOM is now passed the editor view object.

v6.7.3

Compare Source

Bug fixes

Fix a bug in posAtCoords that could cause incorrect results for positions to the left of a wrapped line.

v6.7.2

Compare Source

Bug fixes

Fix a regression where the cursor didn't restart its blink cycle when moving it with the pointer.

Even without a key property, measure request objects that are already scheduled will not be scheduled again by requestMeasure.

Fix an issue where keymaps incorrectly interpreted key events that used Ctrl+Alt modifiers to simulate AltGr on Windows.

Fix a bug where line decorations with a different class property would be treated as equal.

Fix a bug that caused drawSelection to not notice when it was reconfigured.

Fix a crash in the gutter extension caused by sharing of mutable arrays.

Fix a regression that caused touch selection on mobile platforms to not work in an uneditable editor.

Fix a bug where DOM events on the boundary between lines could get assigned to the wrong line.

v6.7.1

Compare Source

Bug fixes

Make the editor properly scroll when moving the pointer out of it during drag selection.

Fix a regression where clicking below the content element in an editor with its own height didn't focus the editor.

v6.7.0

Compare Source

Bug fixes

Make the editor notice widget height changes to automatically adjust its height information.

Fix an issue where widget buffers could be incorrectly omitted after empty lines.

Fix an issue in content redrawing that could cause coordsAtPos to return incorrect results.

New features

The static RectangleMarker.forRange method exposes the logic used by the editor to draw rectangles covering a selection range.

Layers can now provide a destroy function to be called when the layer is removed.

The new highlightWhitespace extension makes spaces and tabs in the editor visible.

The highlightTrailingWhitespace extension can be used to make trailing whitespace stand out.

v6.6.0

Compare Source

New features

The layer function can now be used to define extensions that draw DOM elements over or below the document text.

Tooltips that are bigger than the available vertical space for them will now have their height set so that they don't stick out of the window. The new resize property on TooltipView can be used to opt out of this behavior.

v6.5.1

Compare Source

Bug fixes

Fix a bug that caused marked unnecessary splitting of mark decoration DOM elements in some cases.

v6.5.0

Compare Source

Bug fixes

Fix an issue where key bindings were activated for the wrong key in some situations with non-US keyboards.

New features

A tooltip's positioned callback is now passed the available space for tooltips.

v6.4.2

Compare Source

Bug fixes

Typing into a read-only editor no longer moves the cursor.

Fix an issue where hover tooltips were closed when the mouse was moved over them if they had a custom parent element.

Fix an issue where the editor could end up displaying incorrect height measurements (typically after initializing).

v6.4.1

Compare Source

Bug fixes

Fix an issue where coordinates next to replaced widgets were returned incorrectly, causing the cursor to be drawn in the wrong place.

Update the crosshairCursor state on every mousemove event.

Avoid an issue in the way that the editor enforces cursor associativity that could cause the cursor to get stuck on single-character wrapped lines.

v6.4.0

Compare Source

Bug fixes

Avoid an issue where scrollPastEnd makes a single-line editor have a vertical scrollbar.

Work around a Chrome bug where it inserts a newline when you press space at the start of a wrapped line.

Align rectangularSelection's behavior with other popular editors by making it create cursors at the end of lines that are too short to touch the rectangle.

Fix an issue where coordinates on mark decoration boundaries were sometimes taken from the wrong side of the position.

Prevent scrolling artifacts caused by attempts to scroll stuff into view when the editor isn't being displayed.

New features

TooltipView objects can now provide a destroy method to be called when the tooltip is removed.

v6.3.1

Compare Source

Bug fixes

Fix a crash when trying to scroll something into view in an editor that wasn't in the visible DOM.

Fix an issue where coordsAtPos returned the coordinates on the wrong side of a widget decoration wrapped in a mark decoration.

Fix an issue where content on long wrapped lines could fail to properly scroll into view.

Fix an issue where DOM change reading on Chrome Android could get confused when a transaction came in right after a beforeinput event for backspace, enter, or delete.

v6.3.0

Compare Source

Bug fixes

Reduce the amount of wrap-point jittering when scrolling through a very long wrapped line.

Fix an issue where scrolling to content that wasn't currently drawn due to being on a very long line would often fail to scroll to the right position.

Suppress double-space-adds-period behavior on Chrome Mac when it behaves weirdly next to widget.

New features

Key binding objects with an any property will now add handlers that are called for any key, within the ordering of the keybindings.

v6.2.5

Compare Source

Bug fixes

Don't override double/triple tap behavior on touch screen devices, so that the mobile selection menu pops up properly.

Fix an issue where updating the selection could crash on Safari when the editor was hidden.

v6.2.4

Compare Source

Bug fixes

Highlight the active line even when there is a selection. Prevent the active line background from obscuring the selection backdrop.

Fix an issue where elements with negative margins would confuse the editor's scrolling-into-view logic.

Fix scrolling to a specific position in an editor that has not been in view yet.

v6.2.3

Compare Source

Bug fixes

Fix a bug where cursor motion, when starting from a non-empty selection range, could get stuck on atomic ranges in some circumstances.

Avoid triggering Chrome Android's text-duplication issue when a period is typed in the middle of a word.

v6.2.2

Compare Source

Bug fixes

Don't reset the selection for selection change events that were suppressed by a node view.

v6.2.1

Compare Source

Bug fixes

Don't use the global document variable to track focus, since that doesn't work in another window/frame.

Fix an issue where key handlers that didn't return true were sometimes called twice for the same keypress.

Avoid editing glitches when using deletion keys like ctrl-d on iOS.

Properly treat characters from the 'Arabic Presentation Forms-A' Unicode block as right-to-left.

Work around a Firefox bug that inserts text at the wrong point for specific cross-line selections.

v6.2.0

Compare Source

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.

v6.1.4

Compare Source

Bug fixes

Make selection-restoration on focus more reliable.

v6.1.3

Compare Source

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.

v6.1.2

Compare Source

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.

v6.1.1

Compare Source

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.

v6.1.0

Compare Source

New features

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

v6.0.3

Compare Source

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.

v6.0.2

Compare Source

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.

v6.0.1

Compare Source

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).

v6.0.0

Compare Source

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.

v0.20.7

Compare Source

Bug fixes

Fix an issue on Chrome Android where the DOM could fail to display the actual document after backspace.

Avoid an issue on Chrome Android where DOM changes were sometimes inappropriately replace by a backspace key effect due to spurious beforeinput events.

Fix a problem where the content element's width didn't cover the width of the actual content.

Work around a bug in Chrome 102 which caused wheel scrolling of the editor to be interrupted every few lines.

v0.20.6

Compare Source

Bug fixes

Make sure the editor re-measures itself when its attributes are updated.

v0.20.5

Compare Source

Bug fixes

Fix an issue where gutter elements without any markers in them would not get the cm-gutterElement class assigned.

Fix an issue where DOM event handlers registered by plugins were retained indefinitely, even after the editor was reconfigured.

v0.20.4

Compare Source

Bug fixes

Prevent Mac-style behavior of inserting a period when the user inserts two spaces.

Fix an issue where the editor would sometimes not restore the DOM selection when refocused with a selection identical to the one it held when it lost focus.

v0.20.3

Compare Source

Bug fixes

Fix a bug where the input handling could crash on repeated (or held) backspace presses on Chrome Android.

v0.20.2

Compare Source

New features

The new hideOn option to hoverTooltip allows more fine-grained control over when the tooltip should hide.

v0.20.1

Compare Source

Bug fixes

Remove debug statements that accidentally made it into 0.20.0.

Fix a regression in moveVertically.

v0.20.0

Compare Source

Breaking changes

The deprecated interfaces blockAtHeight, visualLineAtHeight, viewportLines, visualLineAt, scrollPosIntoView, scrollTo, and centerOn were removed from the library.

All decorations are now provided through EditorView.decorations, and are part of a single precedence ordering. Decoration sources that need access to the view are provided as functions.

Atomic ranges are now specified through a facet (EditorView.atomicRanges).

Scroll margins are now specified through a facet (EditorView.scrollMargins).

Plugin fields no longer exist in the library (and are replaced by facets holding function values).

This package no longer re-exports the Range type from @​codemirror/state.

Bug fixes

Fix a bug where zero-length block widgets could cause viewportLineBlocks to contain overlapping ranges.

New features

The new perLineTextDirection facet configures whether the editor reads text direction per line, or uses a single direction for the entire editor. EditorView.textDirectionAt returns the direction around a given position.

rectangularSelection and crosshairCursor from @​codemirror/rectangular-selection were merged into this package.

This package now exports the tooltip functionality that used to live in @​codemirror/tooltip.

The exports from the old @​codemirror/panel package are now available from this package.

The exports from the old @​codemirror/gutter package are now available from this package.

v0.19.48

Compare Source

Bug fixes

Fix an issue where DOM syncing could crash when a DOM node was moved from a parent to a child node (via widgets reusing existing nodes).

To avoid interfering with things like a vim mode too much, the editor will now only activate the tab-to-move-focus escape hatch after an escape press that wasn't handled by an event handler.

Make sure the view measures itself before the page is printed.

Tweak types of view plugin defining functions to avoid TypeScript errors when the plugin value doesn't have any of the interface's properties.

v0.19.47

Compare Source

Bug fixes

Fix an issue where block widgets at the start of the viewport could break height computations.

v0.19.46

Compare Source

Bug fixes

Fix a bug where block widgets on the edges of viewports could cause the positioning of content to misalign with the gutter and height computations.

Improve cursor height next to widgets.

Fix a bug where mapping positions to screen coordinates could return incorred coordinates during composition.

v0.19.45

Compare Source

Bug fixes

Fix an issue where the library failed to call WidgetType.destroy on the old widget when replacing a widget with a different widget of the same type.

Fix an issue where the editor would compute DOM positions inside composition contexts incorrectly in some cases, causing the selection to be put in the wrong place and needlessly interrupting compositions.

Fix leaking of resize event handlers.

v0.19.44

Compare Source

Bug fixes

Fix a crash that occasionally occurred when drag-selecting in a way that scrolled the editor.

New features

The new EditorView.compositionStarted property indicates whether a composition is starting.

v0.19.43

Compare Source

Bug fixes

Fix several issues where editing or composition went wrong due to our zero-width space kludge characters ending up in unexpected places.

Make sure the editor re-measures its dimensions whenever its theme changes.

Fix an issue where some keys on Android phones could leave the editor DOM unsynced with the actual document.

v0.19.42

Compare Source

Bug fixes

Fix a regression in cursor position determination after making an edit next to a widget.

v0.19.41

Compare Source

Bug fixes

Fix an issue where the editor's view of its content height could go out of sync with the DOM when a line-wrapping editor had its width changed, causing wrapping to change.

Fix a bug that caused the editor to draw way too much content when scrolling to a position in an editor (much) taller than the window.

Report an error when a replace decoration from a plugin crosses a line break, rather than silently ignoring it.

Fix an issue where reading DOM changes was broken when lineSeparator contained more than one character.

Make ordering of replace and mark decorations with the same extent and inclusivness more predictable by giving replace decorations precedence.

Fix a bug where, on Chrome, replacement across line boundaries and next to widgets could cause bogus zero-width characters to appear in the content.

v0.19.40

Compare Source

Bug fixes

Make composition input properly appear at secondary cursors (except when those are in the DOM node with the composition, in which case the browser won't allow us to intervene without aborting the composition).

Fix a bug that cause the editor to get confused about which content was visible after scrolling something into view.

Fix a bug where the dummy elements rendered around widgets could end up in a separate set of wrapping marks, and thus become visible.

EditorView.moveVertically now preserves the assoc property of the input range.

Get rid of gaps between selection elements drawn by drawSelection.

Fix an issue where replacing text next to a widget might leak bogus zero-width spaces into the document.

Avoid browser selection mishandling when a focused view has setState called by eagerly refocusing it.

v0.19.39

Compare Source

Bug fixes

Make sure the editor signals a geometryChanged update when its width changes.

New features

EditorView.darkTheme can now be queried to figure out whether the editor is using a dark theme.

v0.19.38

Compare Source

Bug fixes

Fix a bug that caused line decorations with a class property to suppress all other line decorations for that line.

Fix a bug that caused scroll effects to be corrupted when further updates came in before they were applied.

Fix an issue where, depending on which way a floating point rounding error fell, posAtCoords (and thus vertical cursor motion) for positions outside of the vertical range of the document might or might not return the start/end of the document.

v0.19.37

Compare Source

Bug fixes

Fix regression where plugin replacing decorations that span to the end of the line are ignored.

v0.19.36

Compare Source

Bug fixes

Fix a crash in posAtCoords when the position lies in a block widget that is rendered but scrolled out of view.

Adding block decorations from a plugin now raises an error. Replacing decorations that cross lines are ignored, when provided by a plugin.

Fix inverted interpretation of the precise argument to posAtCoords.

v0.19.35

Compare Source

Bug fixes

The editor will now handle double-taps as if they are double-clicks, rather than letting the browser's native behavior happen (because the latter often does the wrong thing).

Fix an issue where backspacing out a selection on Chrome Android would sometimes only delete the last character due to event order issues.

posAtCoords, without second argument, will no longer return null for positions below or above the document.

v0.19.34

Compare Source

Bug fixes

Fix a bug where content line elements would in some cases lose their cm-line class.

v0.19.33

Compare Source

Breaking changes

EditorView.scrollTo and EditorView.centerOn are deprecated in favor of EditorView.scrollIntoView, and will be removed in the next breaking release.

Bug fixes

Fix an issue that could cause the editor to unnecessarily interfere with composition (especially visible on macOS Chrome).

A composition started with multiple lines selected will no longer be interruptd by the editor.

New features

The new EditorView.scrollIntoView function allows you to do more fine-grained scrolling.

v0.19.32

Compare Source

Bug fixes

Fix a bug where CodeMirror's own event handers would run even after a user-supplied handler called preventDefault on an event.

Properly draw selections when negative text-indent is used for soft wrapping.

Fix an issue where viewportLineBlocks could hold inaccurate height information when the vertical scaling changed.

Fixes drop cursor positioning when the document is scrolled. Force a content measure when the editor comes into view

Fix a bug that could cause the editor to not measure its layout the first time it came into view.

v0.19.31

Compare Source

New features

The package now exports a dropCursor extension that draws a cursor at the current drop position when dragging content over the editor.

v0.19.30

Compare Source

Bug fixes

Refine Android key event handling to work properly in a GBoard corner case where pressing Enter fires a bunch of spurious deleteContentBackward events.

Fix a crash in drawSelection for some kinds of selections.

Prevent a possibility where some content updates causes duplicate text to remain in DOM.

New features

Support a maxLength option to MatchDecorator that allows user code to control how far it scans into hidden parts of viewport lines.

v0.19.29

Compare Source

Bug fixes

Fix a bug that could cause out-of-view editors to get a nonsensical viewport and fail to scroll into view when asked to.

Fix a bug where would return 0 when clicking below the content if the last line was replaced with a block widget decoration.

Fix an issue where clicking at the position of the previous cursor in a blurred editor would cause the selection to reset to the start of the document.

Fix an issue where composition could be interrupted if the browser created a new node inside a mark decoration node.

[v0.19.28](https:


Configuration

📅 Schedule: Branch creation - "before 3am on Monday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@vercel
Copy link

vercel bot commented Nov 13, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
query-console-demo ❌ Failed (Inspect) Apr 13, 2024 8:56pm

@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from 7c3c187 to 8bfa22c Compare November 14, 2022 17:10
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from 8bfa22c to 0b2e6d9 Compare November 15, 2022 19:06
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from 0b2e6d9 to 08b4aa3 Compare November 24, 2022 16:05
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from 08b4aa3 to e474dac Compare November 30, 2022 10:33
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from e474dac to de49dfb Compare November 30, 2022 11:34
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from de49dfb to 0cfd576 Compare December 7, 2022 10:47
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from 0cfd576 to 15f3dc9 Compare December 12, 2022 10:30
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from 15f3dc9 to a4c20a6 Compare January 4, 2023 13:21
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from a4c20a6 to 16ffe85 Compare January 12, 2023 15:49
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from 16ffe85 to bdfad2f Compare March 16, 2023 23:51
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from bdfad2f to 4714c98 Compare March 25, 2023 00:28
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from 4714c98 to 06e7401 Compare May 29, 2023 15:54
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from 06e7401 to c223a04 Compare June 6, 2023 05:58
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from c223a04 to b1ef32f Compare June 12, 2023 23:57
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from eea4008 to 74ccfa3 Compare November 4, 2023 05:23
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from 74ccfa3 to 493364e Compare November 28, 2023 02:21
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from 493364e to b242f70 Compare December 9, 2023 02:54
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from b242f70 to 82537e9 Compare December 15, 2023 05:53
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from 82537e9 to a1d3973 Compare December 29, 2023 02:19
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from a1d3973 to 7de7c40 Compare January 24, 2024 14:56
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from 7de7c40 to b997524 Compare February 10, 2024 08:22
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from b997524 to c32f372 Compare February 20, 2024 05:42
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from c32f372 to b2e5f55 Compare March 5, 2024 08:08
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from b2e5f55 to e434e1f Compare March 7, 2024 05:52
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from e434e1f to 3baffb5 Compare March 15, 2024 02:53
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from 3baffb5 to 9b55684 Compare March 28, 2024 23:56
@renovate renovate bot force-pushed the renovate/codemirror-view-6.x branch from 9b55684 to 6af5af6 Compare April 10, 2024 01:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants