@codemirror/gutter
Advanced tools
Comparing version 0.19.1 to 0.19.2
@@ -0,1 +1,7 @@ | ||
## 0.19.2 (2021-09-13) | ||
### Bug fixes | ||
Fix the `domEventHandlers` option to `lineNumbers`, which was entirely ignored before. | ||
## 0.19.1 (2021-08-16) | ||
@@ -2,0 +8,0 @@ |
@@ -358,4 +358,5 @@ import { EditorView, ViewPlugin, BlockType, PluginField, Direction } from '@codemirror/view'; | ||
} | ||
const lineNumberGutter = /*@__PURE__*/gutter({ | ||
const lineNumberGutter = /*@__PURE__*/activeGutters.compute([lineNumberConfig], state => ({ | ||
class: "cm-lineNumbers", | ||
renderEmptyElements: false, | ||
markers(view) { return view.state.facet(lineNumberMarkers); }, | ||
@@ -373,4 +374,5 @@ lineMarker(view, line, others) { | ||
return max == spacer.number ? spacer : new NumberMarker(max); | ||
} | ||
}); | ||
}, | ||
domEventHandlers: state.facet(lineNumberConfig).domEventHandlers | ||
})); | ||
/** | ||
@@ -382,2 +384,3 @@ Create a line number gutter extension. | ||
lineNumberConfig.of(config), | ||
gutters(), | ||
lineNumberGutter | ||
@@ -397,3 +400,2 @@ ]; | ||
} | ||
eq() { return true; } | ||
}; | ||
@@ -400,0 +402,0 @@ const activeLineGutterHighlighter = /*@__PURE__*/gutterLineClass.compute(["selection"], state => { |
{ | ||
"name": "@codemirror/gutter", | ||
"version": "0.19.1", | ||
"version": "0.19.2", | ||
"description": "Gutter and line number functionality for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
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
39340
950