Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
6.10.1
->6.10.4
6.25.1
->6.35.0
Release Notes
codemirror/language (@codemirror/language)
v6.10.4
Compare Source
Bug fixes
Join adjacent tokens of the same type into a single token in .
Call stream language indent functions even when the language is used as a nested parser.
Fix a crash in
StreamParser
when a parse was resumed with different input ranges.v6.10.3
Compare Source
Bug fixes
Fix a TypeScript error when using
HighlightStyle
with theexactOptionalPropertyTypes
typechecking option enabled.Make
delimitedIndent
align to spaces after the opening token.v6.10.2
Compare Source
Bug fixes
Fix an infinite loop that could occur when enabling
bidiIsolates
in documents with both bidirectional text and very long lines.codemirror/view (@codemirror/view)
v6.35.0
Compare Source
New features
Tooltips can now use the
clip
option to control whether they are hidden when outside the visible editor content.v6.34.3
Compare Source
Bug fixes
Make sure positions covered by a gutter or a panel aren't treated as visible for the purpose of displaying tooltips.
Properly include the tooltip arrow height when checking whether a tooltip fits in its preferred above/below position.
Fix an issue with compositions on Chrome inserting their content in the wrong position when another document change came in during composition.
v6.34.2
Compare Source
Bug fixes
Fix the default cursor color for dark themes, which was way too dark.
v6.34.1
Compare Source
Bug fixes
Avoid a stack overflow that could happen when updating a line with a lot of text tokens.
Improve the way enormously long (non-wrapped) lines are displayed by making sure they stay shorter than the maximal pixel size the browser's CSS engine can handle.
v6.34.0
Compare Source
Bug fixes
Fix an issue where the dots past the wrapping point were displayed incorrectly when using
highlightWhitespace
with a wrapped sequence of spaces.Improve performance of documents displaying lots of highlighted spaces by using a CSS background instead of pseudo-element.
New features
placeholder
now allows a function that constructs the placedholder DOM to be passed in, and usescloneNode
when a raw element is passed in, to prevent adding the same element to multiple editors.v6.33.0
Compare Source
Bug fixes
Make it easier to move the pointer over a hover tooltip with an arrow by not closing the tooltip when the pointer is moving over the gap for the arrow.
New features
The new
EditorView.clipboardInputFilter
andclipboardOutputFilter
facets allow you to register filter functions that change text taken from or sent to the clipboard.v6.32.0
Compare Source
Bug fixes
Fix a bug where the editor could draw way too big a viewport when not managing its own scrollbar.
New features
The new
gutterWidgetClass
facet makes it possible to add a class to gutter elements next to widgets.v6.31.0
Compare Source
Bug fixes
Avoid the editor's geometry measurements becoming incorrect when fonts finish loading by scheduling a measure on
document.fonts.ready
.Avoid an issue where Chrome would incorrectly scroll the window when deleting lines in the editor.
Fix an issue where in some layouts editor content would be drawn on top of panel elements.
Fix an issue where
coordsAtPos
would return null when querying a position in a block widget.New features
The new
lineNumberWidgetMarker
facet makes it possible to insert markers into the line number gutter for widgets.v6.30.0
Compare Source
Bug fixes
Make spell check corrections work again on
EditContext
-enabled Chrome versions.New features
The value returned by
hoverTooltip
now has anactive
property providing the state field used to store the open tooltips.v6.29.1
Compare Source
Bug fixes
Fix a crash on old Safari browsers that don't support
MediaQueryList.addEventListener
.Fix an issue where
EditorView.viewportLineBlocks
(and thus other things like the gutter) might be out of date after some kinds of decoration changes.v6.29.0
Compare Source
Bug fixes
Fix an issue that caused typing into an editor marked read-only to cause document changes when using
EditContext
.Associate a cursor created by clicking above the end of the text on a wrap point with the line before it.
New features
The package now exports the type of hover tooltip sources as
HoverTooltipSource
.v6.28.6
Compare Source
Bug fixes
Fix an issue where the editor got confused about the position of inserted text when using Chrome's
EditContext
and canceling transactions for typed text.v6.28.5
Compare Source
Bug fixes
Fix a bug that broke drag scrolling along one axis when the innermost scrollable element around the editor was only scrollable along the other axis.
Work around a memory leak in Chrome's EditContext implementation.
v6.28.4
Compare Source
Bug fixes
Fix a bug where EditContext-based editing could corrupt the document in some situations.
v6.28.3
Compare Source
Bug fixes
Fix an issue causing the IME interface to appear in the wrong spot on Chrome Windows.
v6.28.2
Compare Source
Bug fixes
Only use
EditContext
on Chrome versions that support passing it an inverted selection range.Fix an issue that prevented non-inclusive block widgets from having their
updateDOM
method called when changed.Re-enable
EditContext
use on Chrome 126 and up.v6.28.1
Compare Source
Bug fixes
Disable
EditContext
by default again, to work around a regression where Chrome's implementation doesn't support inverted selections.Make sure
EditorView.editable
is respected whenEditContext
is used.v6.28.0
Compare Source
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.v6.27.0
Compare Source
New features
The new
setTabFocusMode
method can be used to control whether the editor disables key bindings for Tab and Shift-Tab.v6.26.4
Compare Source
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.
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.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.