jupyter-js-filebrowser
Advanced tools
Comparing version 0.2.3 to 0.2.5
@@ -16,7 +16,8 @@ // Copyright (c) Jupyter Development Team. | ||
var FileBrowserHandler = (function () { | ||
function FileBrowserHandler(shell) { | ||
function FileBrowserHandler(shell, editorFactory) { | ||
this._shell = shell; | ||
this._editorFactory = editorFactory; | ||
} | ||
FileBrowserHandler.create = function (shell) { | ||
return new FileBrowserHandler(shell); | ||
FileBrowserHandler.create = function (shell, editorFactory) { | ||
return new FileBrowserHandler(shell, editorFactory); | ||
}; | ||
@@ -35,4 +36,3 @@ FileBrowserHandler.prototype.run = function () { | ||
text: change.newValue.content }; | ||
var editorModel = new jupyter_js_editor_1.EditorViewModel(options); | ||
var editor = new jupyter_js_editor_1.CodeMirrorWidget(editorModel); | ||
var editor = _this._editorFactory.create(options); | ||
_this._shell.addToMainArea(editor); | ||
@@ -43,4 +43,4 @@ } | ||
}; | ||
FileBrowserHandler.requires = [phosphide_1.IAppShell]; | ||
FileBrowserHandler.requires = [phosphide_1.IAppShell, jupyter_js_editor_1.IEditorFactory]; | ||
return FileBrowserHandler; | ||
})(); |
{ | ||
"name": "jupyter-js-filebrowser", | ||
"version": "0.2.3", | ||
"version": "0.2.5", | ||
"description": "File browser widget for Jupyter", | ||
@@ -32,3 +32,3 @@ "main": "lib/index.js", | ||
"istanbul-instrumenter-loader": "^0.1.3", | ||
"jupyter-js-editor": "^0.2.0", | ||
"jupyter-js-editor": "^0.1.4", | ||
"jupyter-js-services": "^0.3.0-alpha", | ||
@@ -35,0 +35,0 @@ "karma": "^0.13.9", |
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
94147