@codemirror/state
Advanced tools
Comparing version 0.19.2 to 0.19.3
@@ -0,1 +1,7 @@ | ||
## 0.19.3 (2021-11-03) | ||
### New features | ||
The precedence levels (under `Prec`) now have more generic names, because their 'meaningful' names were entirely inappropriate in many situations. | ||
## 0.19.2 (2021-09-13) | ||
@@ -2,0 +8,0 @@ |
@@ -512,17 +512,35 @@ import { Text } from '@codemirror/text'; | ||
/** | ||
A precedence below the default precedence, which will cause | ||
default-precedence extensions to override it even if they are | ||
specified later in the extension ordering. | ||
The lowest precedence level. Meant for things that should end up | ||
near the end of the extension order. | ||
*/ | ||
fallback: (ext: Extension) => Extension; | ||
lowest: (ext: Extension) => Extension; | ||
/** | ||
The regular default precedence. | ||
A lower-than-default precedence, for extensions. | ||
*/ | ||
low: (ext: Extension) => Extension; | ||
/** | ||
The default precedence, which is also used for extensions | ||
without an explicit precedence. | ||
*/ | ||
default: (ext: Extension) => Extension; | ||
/** | ||
A higher-than-default precedence. | ||
A higher-than-default precedence, for extensions that should | ||
come before those with default precedence. | ||
*/ | ||
high: (ext: Extension) => Extension; | ||
/** | ||
The highest precedence level, for extensions that should end up | ||
near the start of the precedence ordering. | ||
*/ | ||
highest: (ext: Extension) => Extension; | ||
/** | ||
Backwards-compatible synonym for `Prec.lowest`. | ||
*/ | ||
fallback: (ext: Extension) => Extension; | ||
/** | ||
Backwards-compatible synonym for `Prec.high`. | ||
*/ | ||
extend: (ext: Extension) => Extension; | ||
/** | ||
Precedence above the `default` and `extend` precedences. | ||
Backwards-compatible synonym for `Prec.highest`. | ||
*/ | ||
@@ -787,3 +805,3 @@ override: (ext: Extension) => Extension; | ||
*/ | ||
isUserEvent(event: string): boolean | "" | undefined; | ||
isUserEvent(event: string): boolean; | ||
/** | ||
@@ -790,0 +808,0 @@ Annotation used to store transaction timestamps. |
{ | ||
"name": "@codemirror/state", | ||
"version": "0.19.2", | ||
"version": "0.19.3", | ||
"description": "Editor state data structures 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
219249
5657