@codemirror/view
Advanced tools
Comparing version 0.18.8 to 0.18.9
@@ -0,1 +1,19 @@ | ||
## 0.18.9 (2021-04-23) | ||
### Bug fixes | ||
Fix a crash that occurred when determining DOM coordinates in some specific situations. | ||
Fix a crash when a DOM change that ended at a zero-width view element (widget) removed that element from the DOM. | ||
Disable autocorrect and autocapitalize by default, since in most code-editor contexts they get in the way. You can use `EditorView.contentAttributes` to override this. | ||
Fix a bug that interfered with native touch selection handling on Android. | ||
Fix an unnecessary DOM update after composition that would disrupt touch selection on Android. | ||
Add a workaround for Safari's broken selection reporting when the editor is in a shadow DOM tree. | ||
Fix select-all from the context menu on Safari. | ||
## 0.18.8 (2021-04-19) | ||
@@ -2,0 +20,0 @@ |
@@ -0,4 +1,6 @@ | ||
import * as _codemirror_rangeset from '@codemirror/rangeset'; | ||
import { RangeSet, RangeValue, Range } from '@codemirror/rangeset'; | ||
export { Range } from '@codemirror/rangeset'; | ||
import { EditorState, Extension, Transaction, ChangeSet, EditorSelection, TransactionSpec, SelectionRange, Facet, StateEffectType } from '@codemirror/state'; | ||
import * as _codemirror_state from '@codemirror/state'; | ||
import { EditorState, Extension, Transaction, ChangeSet, EditorSelection, TransactionSpec, SelectionRange, Facet } from '@codemirror/state'; | ||
import { Line } from '@codemirror/text'; | ||
@@ -590,3 +592,3 @@ import { StyleModule, StyleSpec } from 'style-mod'; | ||
*/ | ||
parent?: Element; | ||
parent?: Element | DocumentFragment; | ||
} | ||
@@ -916,3 +918,3 @@ /** | ||
*/ | ||
static styleModule: Facet<StyleModule, readonly StyleModule[]>; | ||
static styleModule: _codemirror_state.Facet<StyleModule, readonly StyleModule[]>; | ||
/** | ||
@@ -938,3 +940,3 @@ Facet that can be used to add DOM event handlers. The value | ||
*/ | ||
static inputHandler: Facet<(view: EditorView, from: number, to: number, text: string) => boolean, readonly ((view: EditorView, from: number, to: number, text: string) => boolean)[]>; | ||
static inputHandler: _codemirror_state.Facet<(view: EditorView, from: number, to: number, text: string) => boolean, readonly ((view: EditorView, from: number, to: number, text: string) => boolean)[]>; | ||
/** | ||
@@ -947,3 +949,3 @@ Allows you to provide a function that should be called when the | ||
*/ | ||
static exceptionSink: Facet<(exception: any) => void, readonly ((exception: any) => void)[]>; | ||
static exceptionSink: _codemirror_state.Facet<(exception: any) => void, readonly ((exception: any) => void)[]>; | ||
/** | ||
@@ -953,3 +955,3 @@ A facet that can be used to register a function to be called | ||
*/ | ||
static updateListener: Facet<(update: ViewUpdate) => void, readonly ((update: ViewUpdate) => void)[]>; | ||
static updateListener: _codemirror_state.Facet<(update: ViewUpdate) => void, readonly ((update: ViewUpdate) => void)[]>; | ||
/** | ||
@@ -963,3 +965,3 @@ Facet that controls whether the editor content is editable. When | ||
*/ | ||
static editable: Facet<boolean, boolean>; | ||
static editable: _codemirror_state.Facet<boolean, boolean>; | ||
/** | ||
@@ -971,3 +973,3 @@ Allows you to influence the way mouse selection happens. The | ||
*/ | ||
static mouseSelectionStyle: Facet<MakeSelectionStyle, readonly MakeSelectionStyle[]>; | ||
static mouseSelectionStyle: _codemirror_state.Facet<MakeSelectionStyle, readonly MakeSelectionStyle[]>; | ||
/** | ||
@@ -979,3 +981,3 @@ Facet used to configure whether a given selection drag event | ||
*/ | ||
static dragMovesSelection: Facet<(event: MouseEvent) => boolean, readonly ((event: MouseEvent) => boolean)[]>; | ||
static dragMovesSelection: _codemirror_state.Facet<(event: MouseEvent) => boolean, readonly ((event: MouseEvent) => boolean)[]>; | ||
/** | ||
@@ -985,3 +987,3 @@ Facet used to configure whether a given selecting click adds | ||
*/ | ||
static clickAddsSelectionRange: Facet<(event: MouseEvent) => boolean, readonly ((event: MouseEvent) => boolean)[]>; | ||
static clickAddsSelectionRange: _codemirror_state.Facet<(event: MouseEvent) => boolean, readonly ((event: MouseEvent) => boolean)[]>; | ||
/** | ||
@@ -993,3 +995,3 @@ A facet that determines which [decorations](https://codemirror.net/6/docs/ref/#view.Decoration) | ||
*/ | ||
static decorations: Facet<DecorationSet, readonly DecorationSet[]>; | ||
static decorations: _codemirror_state.Facet<DecorationSet, readonly DecorationSet[]>; | ||
/** | ||
@@ -1032,3 +1034,3 @@ Create a theme extension. The first argument can be a | ||
*/ | ||
static contentAttributes: Facet<Attrs, Attrs>; | ||
static contentAttributes: _codemirror_state.Facet<Attrs, Attrs>; | ||
/** | ||
@@ -1038,3 +1040,3 @@ Facet that provides DOM attributes for the editor's outer | ||
*/ | ||
static editorAttributes: Facet<Attrs, Attrs>; | ||
static editorAttributes: _codemirror_state.Facet<Attrs, Attrs>; | ||
/** | ||
@@ -1053,3 +1055,3 @@ An extension that enables line wrapping in the editor (by | ||
*/ | ||
static announce: StateEffectType<string>; | ||
static announce: _codemirror_state.StateEffectType<string>; | ||
} | ||
@@ -1287,3 +1289,3 @@ /** | ||
*/ | ||
createDeco(view: EditorView): RangeSet<Decoration>; | ||
createDeco(view: EditorView): _codemirror_rangeset.RangeSet<Decoration>; | ||
/** | ||
@@ -1290,0 +1292,0 @@ Update a set of decorations for a view update. `deco` _must_ be |
{ | ||
"name": "@codemirror/view", | ||
"version": "0.18.8", | ||
"version": "0.18.9", | ||
"description": "DOM view component for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
590870
14597