@jupyterlab/notebook
Advanced tools
Comparing version 0.10.0 to 0.11.0
@@ -11,3 +11,3 @@ "use strict"; | ||
// The message to display to the user when prompting to trust the notebook. | ||
var TRUST_MESSAGE = virtualdom_1.h.p('A trusted Jupyter notebook may execute hidden malicious code when you ', 'open it.', virtualdom_1.h.br(), 'Selecting trust will re-render this notebook in a trusted state.', virtualdom_1.h.br(), 'For more information, see the', virtualdom_1.h.a({ href: 'http://ipython.org/ipython-doc/2/notebook/security.html' }, 'Jupyter security documentation')); | ||
var TRUST_MESSAGE = virtualdom_1.h.p('A trusted Jupyter notebook may execute hidden malicious code when you ', 'open it.', virtualdom_1.h.br(), 'Selecting trust will re-render this notebook in a trusted state.', virtualdom_1.h.br(), 'For more information, see the', virtualdom_1.h.a({ href: 'https://jupyter-notebook.readthedocs.io/en/stable/security.html' }, 'Jupyter security documentation')); | ||
/** | ||
@@ -1265,1 +1265,2 @@ * The mimetype used for Jupyter cell data. | ||
})(Private || (Private = {})); | ||
//# sourceMappingURL=actions.js.map |
@@ -497,1 +497,2 @@ "use strict"; | ||
exports.CellList = CellList; | ||
//# sourceMappingURL=celllist.js.map |
@@ -55,4 +55,3 @@ "use strict"; | ||
*/ | ||
exports.ICellTools = new coreutils_1.Token('jupyter.services.cell-tools'); | ||
; | ||
exports.ICellTools = new coreutils_1.Token('@jupyterlab/notebook:ICellTools'); | ||
/** | ||
@@ -552,1 +551,2 @@ * A widget that provides cell metadata tools. | ||
})(Private || (Private = {})); | ||
//# sourceMappingURL=celltools.js.map |
@@ -315,1 +315,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=default-toolbar.js.map |
@@ -18,1 +18,2 @@ "use strict"; | ||
__export(require("./widgetfactory")); | ||
//# sourceMappingURL=index.js.map |
@@ -122,3 +122,3 @@ import { DocumentModel, DocumentRegistry } from '@jupyterlab/docregistry'; | ||
/** | ||
* An optional modelDB for storing notebook data. | ||
* A modelDB for storing notebook data. | ||
*/ | ||
@@ -135,2 +135,5 @@ modelDB?: IModelDB; | ||
readonly codeCellContentFactory: CodeCellModel.IContentFactory; | ||
/** | ||
* The IModelDB in which to put data for the notebook model. | ||
*/ | ||
modelDB: IModelDB; | ||
@@ -164,2 +167,6 @@ /** | ||
createRawCell(options: CellModel.IOptions): IRawCellModel; | ||
/** | ||
* Clone the content factory with a new IModelDB. | ||
*/ | ||
clone(modelDB: IModelDB): IContentFactory; | ||
} | ||
@@ -178,4 +185,7 @@ /** | ||
readonly codeCellContentFactory: CodeCellModel.IContentFactory; | ||
modelDB: IModelDB; | ||
/** | ||
* The IModelDB in which to put the notebook data. | ||
*/ | ||
readonly modelDB: IModelDB | undefined; | ||
/** | ||
* Create a new code cell. | ||
@@ -209,3 +219,6 @@ * | ||
createRawCell(options: CellModel.IOptions): IRawCellModel; | ||
private _modelDB; | ||
/** | ||
* Clone the content factory with a new IModelDB. | ||
*/ | ||
clone(modelDB: IModelDB): ContentFactory; | ||
} | ||
@@ -212,0 +225,0 @@ /** |
@@ -34,5 +34,3 @@ "use strict"; | ||
var factory = (options.contentFactory || NotebookModel.defaultContentFactory); | ||
var cellDB = _this.modelDB.view('cells'); | ||
factory.modelDB = cellDB; | ||
_this.contentFactory = factory; | ||
_this.contentFactory = factory.clone(_this.modelDB.view('cells')); | ||
_this._cells = new celllist_1.CellList(_this.modelDB, _this.contentFactory); | ||
@@ -289,14 +287,4 @@ // Add an initial code cell by default. | ||
cells_1.CodeCellModel.defaultContentFactory); | ||
this._modelDB = options.modelDB || null; | ||
this.modelDB = options.modelDB; | ||
} | ||
Object.defineProperty(ContentFactory.prototype, "modelDB", { | ||
get: function () { | ||
return this._modelDB; | ||
}, | ||
set: function (db) { | ||
this._modelDB = db; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
/** | ||
@@ -316,7 +304,7 @@ * Create a new code cell. | ||
} | ||
if (this._modelDB) { | ||
if (this.modelDB) { | ||
if (!options.id) { | ||
options.id = coreutils_1.uuid(); | ||
} | ||
options.modelDB = this._modelDB.view(options.id); | ||
options.modelDB = this.modelDB.view(options.id); | ||
} | ||
@@ -334,7 +322,7 @@ return new cells_1.CodeCellModel(options); | ||
ContentFactory.prototype.createMarkdownCell = function (options) { | ||
if (this._modelDB) { | ||
if (this.modelDB) { | ||
if (!options.id) { | ||
options.id = coreutils_1.uuid(); | ||
} | ||
options.modelDB = this._modelDB.view(options.id); | ||
options.modelDB = this.modelDB.view(options.id); | ||
} | ||
@@ -352,10 +340,19 @@ return new cells_1.MarkdownCellModel(options); | ||
ContentFactory.prototype.createRawCell = function (options) { | ||
if (this._modelDB) { | ||
if (this.modelDB) { | ||
if (!options.id) { | ||
options.id = coreutils_1.uuid(); | ||
} | ||
options.modelDB = this._modelDB.view(options.id); | ||
options.modelDB = this.modelDB.view(options.id); | ||
} | ||
return new cells_1.RawCellModel(options); | ||
}; | ||
/** | ||
* Clone the content factory with a new IModelDB. | ||
*/ | ||
ContentFactory.prototype.clone = function (modelDB) { | ||
return new ContentFactory({ | ||
modelDB: modelDB, | ||
codeCellContentFactory: this.codeCellContentFactory | ||
}); | ||
}; | ||
return ContentFactory; | ||
@@ -370,1 +367,2 @@ }()); | ||
exports.NotebookModel = NotebookModel; | ||
//# sourceMappingURL=model.js.map |
@@ -85,1 +85,2 @@ "use strict"; | ||
exports.NotebookModelFactory = NotebookModelFactory; | ||
//# sourceMappingURL=modelfactory.js.map |
@@ -367,5 +367,6 @@ "use strict"; | ||
*/ | ||
NotebookPanel.IContentFactory = new coreutils_1.Token('jupyter.services.notebook.content-factory'); | ||
NotebookPanel.IContentFactory = new coreutils_1.Token('@jupyterlab/notebook:IContentFactory'); | ||
/* tslint:enable */ | ||
})(NotebookPanel = exports.NotebookPanel || (exports.NotebookPanel = {})); | ||
exports.NotebookPanel = NotebookPanel; | ||
//# sourceMappingURL=panel.js.map |
@@ -22,3 +22,3 @@ "use strict"; | ||
*/ | ||
exports.INotebookTracker = new coreutils_1.Token('jupyter.services.notebooks'); | ||
exports.INotebookTracker = new coreutils_1.Token('@jupyterlab/notebook:INotebookTracker'); | ||
/* tslint:enable */ | ||
@@ -125,1 +125,2 @@ var NotebookTracker = (function (_super) { | ||
exports.NotebookTracker = NotebookTracker; | ||
//# sourceMappingURL=tracker.js.map |
@@ -1427,1 +1427,2 @@ "use strict"; | ||
})(Private || (Private = {})); | ||
//# sourceMappingURL=widget.js.map |
@@ -56,1 +56,2 @@ "use strict"; | ||
exports.NotebookWidgetFactory = NotebookWidgetFactory; | ||
//# sourceMappingURL=widgetfactory.js.map |
{ | ||
"name": "@jupyterlab/notebook", | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"description": "JupyterLab - Notebook", | ||
@@ -16,9 +16,9 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@jupyterlab/apputils": "^0.10.0", | ||
"@jupyterlab/cells": "^0.10.0", | ||
"@jupyterlab/codeeditor": "^0.10.0", | ||
"@jupyterlab/coreutils": "^0.10.0", | ||
"@jupyterlab/docregistry": "^0.10.0", | ||
"@jupyterlab/rendermime": "^0.10.0", | ||
"@jupyterlab/services": "^0.49.0", | ||
"@jupyterlab/apputils": "^0.11.0", | ||
"@jupyterlab/cells": "^0.11.0", | ||
"@jupyterlab/codeeditor": "^0.11.0", | ||
"@jupyterlab/coreutils": "^0.11.0", | ||
"@jupyterlab/docregistry": "^0.11.0", | ||
"@jupyterlab/rendermime": "^0.11.0", | ||
"@jupyterlab/services": "^0.50.0", | ||
"@phosphor/algorithm": "^1.1.1", | ||
@@ -25,0 +25,0 @@ "@phosphor/coreutils": "^1.2.0", |
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
251030
26
7441
0
6
+ Added@jupyterlab/apputils@0.11.1(transitive)
+ Added@jupyterlab/cells@0.11.1(transitive)
+ Added@jupyterlab/codeeditor@0.11.1(transitive)
+ Added@jupyterlab/codemirror@0.11.3(transitive)
+ Added@jupyterlab/coreutils@0.11.1(transitive)
+ Added@jupyterlab/docregistry@0.11.1(transitive)
+ Added@jupyterlab/outputarea@0.11.1(transitive)
+ Added@jupyterlab/rendermime@0.11.1(transitive)
+ Added@jupyterlab/rendermime-interfaces@0.4.3(transitive)
+ Added@jupyterlab/services@0.50.2(transitive)
+ Addedajv@5.1.6(transitive)
+ Addedcall-bind@1.0.8(transitive)
+ Addedcall-bind-apply-helpers@1.0.1(transitive)
+ Addedcall-bound@1.0.3(transitive)
+ Addedcodemirror@5.24.2(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddom-serializer@0.2.2(transitive)
+ Addeddomelementtype@1.3.1(transitive)
+ Addeddomhandler@2.4.2(transitive)
+ Addeddomutils@1.7.0(transitive)
+ Addeddunder-proto@1.0.1(transitive)
+ Addedentities@1.1.2(transitive)
+ Addedes-define-property@1.0.1(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-object-atoms@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.6(transitive)
+ Addedgopd@1.2.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-symbols@1.1.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhtmlparser2@3.10.1(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedjson-stable-stringify@1.2.1(transitive)
+ Addedjsonify@0.0.1(transitive)
+ Addedlodash.escaperegexp@4.1.2(transitive)
+ Addedmath-intrinsics@1.1.0(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedquerystringify@1.0.0(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsanitize-html@1.14.3(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedurl-parse@1.1.9(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedxtend@4.0.2(transitive)
- Removed@jupyterlab/apputils@0.10.0(transitive)
- Removed@jupyterlab/cells@0.10.0(transitive)
- Removed@jupyterlab/codeeditor@0.10.0(transitive)
- Removed@jupyterlab/codemirror@0.10.0(transitive)
- Removed@jupyterlab/coreutils@0.10.1(transitive)
- Removed@jupyterlab/docregistry@0.10.0(transitive)
- Removed@jupyterlab/outputarea@0.10.0(transitive)
- Removed@jupyterlab/rendermime@0.10.0(transitive)
- Removed@jupyterlab/rendermime-interfaces@0.3.1(transitive)
- Removed@jupyterlab/services@0.49.0(transitive)
- Removedajv@5.5.2(transitive)
- Removedcodemirror@5.65.18(transitive)
- Removeddom-serializer@1.4.1(transitive)
- Removeddomhandler@3.3.04.3.1(transitive)
- Removeddomutils@2.8.0(transitive)
- Removedfast-deep-equal@1.1.0(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedhtmlparser2@4.1.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedparse-srcset@1.0.2(transitive)
- Removedpicocolors@0.2.1(transitive)
- Removedpostcss@7.0.39(transitive)
- Removedquerystringify@2.2.0(transitive)
- Removedsanitize-html@1.27.5(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedurl-parse@1.5.10(transitive)
Updated@jupyterlab/apputils@^0.11.0
Updated@jupyterlab/cells@^0.11.0
Updated@jupyterlab/services@^0.50.0