@jupyterlab/notebook
Advanced tools
Comparing version 0.8.4 to 0.9.0
@@ -9,4 +9,5 @@ "use strict"; | ||
var domutils_1 = require("@phosphor/domutils"); | ||
var virtualdom_1 = require("@phosphor/virtualdom"); | ||
// The message to display to the user when prompting to trust the notebook. | ||
var TRUST_MESSAGE = '<p>A trusted Jupyter notebook may execute hidden malicious code when you open it.<br>Selecting trust will re-render this notebook in a trusted state.<br>For more information, see the <a href="http://ipython.org/ipython-doc/2/notebook/security.html">Jupyter security documentation</a>.</p>'; | ||
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')); | ||
/** | ||
@@ -942,10 +943,8 @@ * The mimetype used for Jupyter cell data. | ||
} | ||
var body = document.createElement('div'); | ||
body.innerHTML = TRUST_MESSAGE; | ||
return apputils_1.showDialog({ | ||
body: body, | ||
body: TRUST_MESSAGE, | ||
title: 'Trust this notebook?', | ||
buttons: [apputils_1.Dialog.cancelButton(), apputils_1.Dialog.warnButton()] | ||
}).then(function (result) { | ||
if (result.accept) { | ||
if (result.button.accept) { | ||
for (var i = 0; i < cells.length; i++) { | ||
@@ -952,0 +951,0 @@ var cell = cells.get(i); |
@@ -14,2 +14,10 @@ "use strict"; | ||
})(); | ||
var __assign = (this && this.__assign) || Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -24,2 +32,3 @@ var algorithm_1 = require("@phosphor/algorithm"); | ||
var cells_1 = require("@jupyterlab/cells"); | ||
var codeeditor_1 = require("@jupyterlab/codeeditor"); | ||
/** | ||
@@ -859,5 +868,3 @@ * The class name added to notebook widgets. | ||
cell.editor.uuid = localCollaborator.sessionId; | ||
cell.editor.selectionStyle = { | ||
color: localCollaborator.color | ||
}; | ||
cell.editor.selectionStyle = __assign({}, codeeditor_1.CodeEditor.defaultSelectionStyle, { color: localCollaborator.color }); | ||
} | ||
@@ -864,0 +871,0 @@ }); |
{ | ||
"name": "@jupyterlab/notebook", | ||
"version": "0.8.4", | ||
"version": "0.9.0", | ||
"description": "JupyterLab - Notebook", | ||
@@ -16,10 +16,10 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@jupyterlab/apputils": "^0.8.2", | ||
"@jupyterlab/cells": "^0.8.2", | ||
"@jupyterlab/codeeditor": "^0.8.1", | ||
"@jupyterlab/coreutils": "^0.8.1", | ||
"@jupyterlab/docregistry": "^0.8.2", | ||
"@jupyterlab/outputarea": "^0.8.2", | ||
"@jupyterlab/rendermime": "^0.8.2", | ||
"@jupyterlab/services": "^0.47.1", | ||
"@jupyterlab/apputils": "^0.9.0", | ||
"@jupyterlab/cells": "^0.9.0", | ||
"@jupyterlab/codeeditor": "^0.9.0", | ||
"@jupyterlab/coreutils": "^0.9.0", | ||
"@jupyterlab/docregistry": "^0.9.0", | ||
"@jupyterlab/outputarea": "^0.9.0", | ||
"@jupyterlab/rendermime": "^0.9.0", | ||
"@jupyterlab/services": "^0.48.0", | ||
"@phosphor/algorithm": "^1.1.1", | ||
@@ -26,0 +26,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
249504
7421
+ Added@jupyterlab/apputils@0.9.0(transitive)
+ Added@jupyterlab/cells@0.9.0(transitive)
+ Added@jupyterlab/codeeditor@0.9.0(transitive)
+ Added@jupyterlab/codemirror@0.9.0(transitive)
+ Added@jupyterlab/coreutils@0.9.0(transitive)
+ Added@jupyterlab/docregistry@0.9.0(transitive)
+ Added@jupyterlab/outputarea@0.9.0(transitive)
+ Added@jupyterlab/rendermime@0.9.0(transitive)
+ Added@jupyterlab/rendermime-interfaces@0.3.1(transitive)
+ Added@jupyterlab/services@0.48.0(transitive)
- Removed@jupyterlab/apputils@0.8.2(transitive)
- Removed@jupyterlab/cells@0.8.2(transitive)
- Removed@jupyterlab/codeeditor@0.8.1(transitive)
- Removed@jupyterlab/codemirror@0.8.1(transitive)
- Removed@jupyterlab/coreutils@0.8.1(transitive)
- Removed@jupyterlab/docregistry@0.8.2(transitive)
- Removed@jupyterlab/outputarea@0.8.2(transitive)
- Removed@jupyterlab/rendermime@0.8.2(transitive)
- Removed@jupyterlab/rendermime-interfaces@0.2.1(transitive)
- Removed@jupyterlab/services@0.47.1(transitive)
Updated@jupyterlab/apputils@^0.9.0
Updated@jupyterlab/cells@^0.9.0
Updated@jupyterlab/coreutils@^0.9.0
Updated@jupyterlab/services@^0.48.0