@jupyterlab/codeeditor
Advanced tools
Comparing version 0.10.0 to 0.11.0
@@ -139,1 +139,2 @@ "use strict"; | ||
})(CodeEditor = exports.CodeEditor || (exports.CodeEditor = {})); | ||
//# sourceMappingURL=editor.js.map |
@@ -5,1 +5,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=factory.js.map |
@@ -18,2 +18,3 @@ "use strict"; | ||
*/ | ||
exports.IEditorServices = new coreutils_1.Token('jupyter.services.editorservices'); | ||
exports.IEditorServices = new coreutils_1.Token('@jupyterlab/codeeditor:IEditorServices'); | ||
//# sourceMappingURL=index.js.map |
@@ -77,2 +77,6 @@ import { IObservableJSON } from '@jupyterlab/coreutils'; | ||
/** | ||
* Handle `after-show` messages for the widget. | ||
*/ | ||
protected onAfterShow(msg: Message): void; | ||
/** | ||
* Handle `before-detach` messages for the widget. | ||
@@ -89,3 +93,2 @@ */ | ||
private _onValueChanged(); | ||
private _toggleFocused(); | ||
/** | ||
@@ -92,0 +95,0 @@ * Handle blur events for the text area. |
@@ -24,6 +24,2 @@ "use strict"; | ||
/** | ||
* The class name added to a focused JSONEditor instance. | ||
*/ | ||
var FOCUSED_CLASS = 'jp-mod-focused'; | ||
/** | ||
* The class name added when the Metadata editor contains invalid JSON. | ||
@@ -215,4 +211,2 @@ */ | ||
break; | ||
case 'focus': | ||
this._toggleFocused(); | ||
default: | ||
@@ -228,3 +222,3 @@ break; | ||
node.addEventListener('blur', this, true); | ||
node.addEventListener('focus', this, true); | ||
node.addEventListener('click', this, true); | ||
this.revertButtonNode.hidden = true; | ||
@@ -235,2 +229,8 @@ this.commitButtonNode.hidden = true; | ||
/** | ||
* Handle `after-show` messages for the widget. | ||
*/ | ||
JSONEditor.prototype.onAfterShow = function (msg) { | ||
this.editor.refresh(); | ||
}; | ||
/** | ||
* Handle `before-detach` messages for the widget. | ||
@@ -241,2 +241,3 @@ */ | ||
node.removeEventListener('blur', this, true); | ||
node.removeEventListener('click', this, true); | ||
this.headerNode.removeEventListener('click', this); | ||
@@ -275,13 +276,2 @@ }; | ||
}; | ||
JSONEditor.prototype._toggleFocused = function () { | ||
var node = this.editorHostNode; | ||
var codeMirror = node.getElementsByClassName('CodeMirror-wrap'); | ||
var focused = !codeMirror[0].classList.contains('CodeMirror-focused'); | ||
if (focused) { | ||
node.classList.add(FOCUSED_CLASS); | ||
} | ||
else { | ||
node.classList.remove(FOCUSED_CLASS); | ||
} | ||
}; | ||
/** | ||
@@ -295,3 +285,2 @@ * Handle blur events for the text area. | ||
} | ||
this._toggleFocused(); | ||
}; | ||
@@ -329,2 +318,5 @@ /** | ||
break; | ||
case this.editorHostNode: | ||
this.editor.focus(); | ||
break; | ||
default: | ||
@@ -384,2 +376,6 @@ break; | ||
this._originalValue = content; | ||
// Move the cursor to within the brace. | ||
if (value.length > 1 && value[0] === '{') { | ||
this.editor.setCursorPosition({ line: 0, column: 1 }); | ||
} | ||
} | ||
@@ -413,1 +409,2 @@ this.editor.refresh(); | ||
})(Private || (Private = {})); | ||
//# sourceMappingURL=jsoneditor.js.map |
@@ -15,1 +15,2 @@ "use strict"; | ||
})(IEditorMimeTypeService = exports.IEditorMimeTypeService || (exports.IEditorMimeTypeService = {})); | ||
//# sourceMappingURL=mimetype.js.map |
@@ -107,1 +107,2 @@ "use strict"; | ||
exports.CodeEditorWrapper = CodeEditorWrapper; | ||
//# sourceMappingURL=widget.js.map |
{ | ||
"name": "@jupyterlab/codeeditor", | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"description": "JupyterLab - Abstract Code Editor", | ||
@@ -16,3 +16,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@jupyterlab/coreutils": "^0.10.0", | ||
"@jupyterlab/coreutils": "^0.11.0", | ||
"@phosphor/coreutils": "^1.2.0", | ||
@@ -19,0 +19,0 @@ "@phosphor/disposable": "^1.1.1", |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
47993
15
0
6
4
48
+ Added@jupyterlab/coreutils@0.11.1(transitive)
+ Addedajv@5.1.6(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedjson-stable-stringify@1.1.1(transitive)
+ Addedjsonify@0.0.1(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedquerystringify@1.0.0(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedurl-parse@1.1.9(transitive)
- Removed@jupyterlab/coreutils@0.10.1(transitive)
- Removedajv@5.5.2(transitive)
- Removedfast-deep-equal@1.1.0(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedquerystringify@2.2.0(transitive)
- Removedurl-parse@1.5.10(transitive)