@jupyterlab/codemirror
Advanced tools
Comparing version 4.3.0 to 4.3.1
@@ -6,3 +6,3 @@ /* | ||
import { indentLess, indentMore, insertBlankLine, insertNewlineAndIndent, insertTab, simplifySelection } from '@codemirror/commands'; | ||
import { COMPLETER_ACTIVE_CLASS, COMPLETER_ENABLED_CLASS } from '@jupyterlab/codeeditor'; | ||
import { COMPLETER_ACTIVE_CLASS, COMPLETER_ENABLED_CLASS, COMPLETER_LINE_BEGINNING_CLASS } from '@jupyterlab/codeeditor'; | ||
/** | ||
@@ -34,3 +34,6 @@ * Selector for a widget that can run code. | ||
var _a; | ||
if ((_a = target.dom.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains(COMPLETER_ENABLED_CLASS)) { | ||
let classList = (_a = target.dom.parentElement) === null || _a === void 0 ? void 0 : _a.classList; | ||
let completerEnabled = classList === null || classList === void 0 ? void 0 : classList.contains(COMPLETER_ENABLED_CLASS); | ||
let lineBeggining = classList === null || classList === void 0 ? void 0 : classList.contains(COMPLETER_LINE_BEGINNING_CLASS); | ||
if (completerEnabled && !lineBeggining) { | ||
return false; | ||
@@ -37,0 +40,0 @@ } |
{ | ||
"name": "@jupyterlab/codemirror", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "JupyterLab - CodeMirror Editor Provider", | ||
@@ -61,7 +61,7 @@ "homepage": "https://github.com/jupyterlab/jupyterlab", | ||
"@jupyter/ydoc": "^3.0.0", | ||
"@jupyterlab/codeeditor": "^4.3.0", | ||
"@jupyterlab/coreutils": "^6.3.0", | ||
"@jupyterlab/documentsearch": "^4.3.0", | ||
"@jupyterlab/nbformat": "^4.3.0", | ||
"@jupyterlab/translation": "^4.3.0", | ||
"@jupyterlab/codeeditor": "^4.3.1", | ||
"@jupyterlab/coreutils": "^6.3.1", | ||
"@jupyterlab/documentsearch": "^4.3.1", | ||
"@jupyterlab/nbformat": "^4.3.1", | ||
"@jupyterlab/translation": "^4.3.1", | ||
"@lezer/common": "^1.2.1", | ||
@@ -77,3 +77,3 @@ "@lezer/generator": "^1.7.0", | ||
"devDependencies": { | ||
"@jupyterlab/testing": "^4.3.0", | ||
"@jupyterlab/testing": "^4.3.1", | ||
"@lezer/generator": "^1.7.0", | ||
@@ -80,0 +80,0 @@ "@lezer/lr": "^1.4.0", |
@@ -17,3 +17,4 @@ /* | ||
COMPLETER_ACTIVE_CLASS, | ||
COMPLETER_ENABLED_CLASS | ||
COMPLETER_ENABLED_CLASS, | ||
COMPLETER_LINE_BEGINNING_CLASS | ||
} from '@jupyterlab/codeeditor'; | ||
@@ -55,3 +56,6 @@ | ||
}): boolean { | ||
if (target.dom.parentElement?.classList.contains(COMPLETER_ENABLED_CLASS)) { | ||
let classList = target.dom.parentElement?.classList; | ||
let completerEnabled = classList?.contains(COMPLETER_ENABLED_CLASS); | ||
let lineBeggining = classList?.contains(COMPLETER_LINE_BEGINNING_CLASS); | ||
if (completerEnabled && !lineBeggining) { | ||
return false; | ||
@@ -58,0 +62,0 @@ } |
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
545668
37286
12849