@jupyterlab/docmanager
Advanced tools
Comparing version 0.14.1 to 0.15.0
@@ -154,3 +154,3 @@ import { DocumentRegistry } from '@jupyterlab/docregistry'; | ||
*/ | ||
open(path: string, widgetName?: string, kernel?: Partial<Kernel.IModel>): DocumentRegistry.IReadyWidget | undefined; | ||
open(path: string, widgetName?: string, kernel?: Partial<Kernel.IModel>, options?: DocumentRegistry.IOpenOptions): DocumentRegistry.IReadyWidget | undefined; | ||
/** | ||
@@ -172,3 +172,3 @@ * Open a file and return the widget used to view it. | ||
*/ | ||
openOrReveal(path: string, widgetName?: string, kernel?: Partial<Kernel.IModel>): DocumentRegistry.IReadyWidget | undefined; | ||
openOrReveal(path: string, widgetName?: string, kernel?: Partial<Kernel.IModel>, options?: DocumentRegistry.IOpenOptions): DocumentRegistry.IReadyWidget | undefined; | ||
/** | ||
@@ -224,3 +224,3 @@ * Overwrite a file. | ||
*/ | ||
private _createOrOpenDocument(which, path, widgetName?, kernel?); | ||
private _createOrOpenDocument(which, path, widgetName?, kernel?, options?); | ||
/** | ||
@@ -227,0 +227,0 @@ * Handle an activateRequested signal from the widget manager. |
@@ -233,5 +233,5 @@ "use strict"; | ||
*/ | ||
DocumentManager.prototype.open = function (path, widgetName, kernel) { | ||
DocumentManager.prototype.open = function (path, widgetName, kernel, options) { | ||
if (widgetName === void 0) { widgetName = 'default'; } | ||
return this._createOrOpenDocument('open', path, widgetName, kernel); | ||
return this._createOrOpenDocument('open', path, widgetName, kernel, options); | ||
}; | ||
@@ -254,10 +254,10 @@ /** | ||
*/ | ||
DocumentManager.prototype.openOrReveal = function (path, widgetName, kernel) { | ||
DocumentManager.prototype.openOrReveal = function (path, widgetName, kernel, options) { | ||
if (widgetName === void 0) { widgetName = 'default'; } | ||
var widget = this.findWidget(path, widgetName); | ||
if (widget) { | ||
this._opener.open(widget); | ||
this._opener.open(widget, options || {}); | ||
return widget; | ||
} | ||
return this.open(path, widgetName, kernel); | ||
return this.open(path, widgetName, kernel, options || {}); | ||
}; | ||
@@ -367,3 +367,3 @@ /** | ||
*/ | ||
DocumentManager.prototype._createOrOpenDocument = function (which, path, widgetName, kernel) { | ||
DocumentManager.prototype._createOrOpenDocument = function (which, path, widgetName, kernel, options) { | ||
if (widgetName === void 0) { widgetName = 'default'; } | ||
@@ -399,3 +399,3 @@ var widgetFactory = this._widgetFactoryFor(path, widgetName); | ||
var widget = this._widgetManager.createWidget(widgetFactory, context); | ||
this._opener.open(widget); | ||
this._opener.open(widget, options || {}); | ||
return widget; | ||
@@ -402,0 +402,0 @@ }; |
{ | ||
"name": "@jupyterlab/docmanager", | ||
"version": "0.14.1", | ||
"version": "0.15.0", | ||
"description": "JupyterLab - Document Manager", | ||
@@ -32,6 +32,6 @@ "homepage": "https://github.com/jupyterlab/jupyterlab", | ||
"dependencies": { | ||
"@jupyterlab/apputils": "^0.14.1", | ||
"@jupyterlab/coreutils": "^1.0.1", | ||
"@jupyterlab/docregistry": "^0.14.1", | ||
"@jupyterlab/services": "^1.0.1", | ||
"@jupyterlab/apputils": "^0.15.0", | ||
"@jupyterlab/coreutils": "^1.0.2", | ||
"@jupyterlab/docregistry": "^0.15.0", | ||
"@jupyterlab/services": "^1.1.0", | ||
"@phosphor/algorithm": "^1.1.2", | ||
@@ -38,0 +38,0 @@ "@phosphor/coreutils": "^1.3.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
117661
+ Added@jupyterlab/apputils@0.15.5(transitive)
+ Added@jupyterlab/codeeditor@0.15.8(transitive)
+ Added@jupyterlab/codemirror@0.15.4(transitive)
+ Added@jupyterlab/docregistry@0.15.5(transitive)
+ Added@jupyterlab/rendermime@0.15.4(transitive)
- Removed@jupyterlab/apputils@0.14.1(transitive)
- Removed@jupyterlab/codeeditor@0.14.1(transitive)
- Removed@jupyterlab/codemirror@0.14.1(transitive)
- Removed@jupyterlab/docregistry@0.14.1(transitive)
- Removed@jupyterlab/rendermime@0.14.1(transitive)
Updated@jupyterlab/apputils@^0.15.0
Updated@jupyterlab/coreutils@^1.0.2
Updated@jupyterlab/services@^1.1.0