@jupyterlab/tooltip
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -5,3 +5,3 @@ import { Kernel } from '@jupyterlab/services'; | ||
import { CodeEditor } from '@jupyterlab/codeeditor'; | ||
import { IRenderMime } from '@jupyterlab/rendermime'; | ||
import { RenderMime } from '@jupyterlab/rendermime'; | ||
import '../style/index.css'; | ||
@@ -45,4 +45,4 @@ export * from './widget'; | ||
*/ | ||
readonly rendermime: IRenderMime; | ||
readonly rendermime: RenderMime; | ||
} | ||
} |
@@ -5,3 +5,3 @@ import { JSONObject } from '@phosphor/coreutils'; | ||
import { CodeEditor } from '@jupyterlab/codeeditor'; | ||
import { IRenderMime } from '@jupyterlab/rendermime'; | ||
import { RenderMime } from '@jupyterlab/rendermime'; | ||
/** | ||
@@ -85,4 +85,4 @@ * A tooltip widget. | ||
*/ | ||
rendermime: IRenderMime; | ||
rendermime: RenderMime; | ||
} | ||
} |
@@ -50,3 +50,3 @@ "use strict"; | ||
_this._content = null; | ||
_this.layout = new widgets_1.PanelLayout(); | ||
var layout = _this.layout = new widgets_1.PanelLayout(); | ||
_this.anchor = options.anchor; | ||
@@ -58,9 +58,11 @@ _this.addClass(TOOLTIP_CLASS); | ||
var model = new rendermime_1.MimeModel({ | ||
data: options.bundle, | ||
trusted: true | ||
data: options.bundle | ||
}); | ||
_this._content = _this._rendermime.render(model); | ||
if (_this._content) { | ||
_this.layout.addWidget(_this._content); | ||
var mimeType = _this._rendermime.preferredMimeType(options.bundle, false); | ||
if (!mimeType) { | ||
return _this; | ||
} | ||
_this._content = _this._rendermime.createRenderer(mimeType); | ||
_this._content.renderModel(model); | ||
layout.addWidget(_this._content); | ||
return _this; | ||
@@ -67,0 +69,0 @@ } |
{ | ||
"name": "@jupyterlab/tooltip", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "JupyterLab - Tooltip Widget", | ||
@@ -16,7 +16,7 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@jupyterlab/apputils": "^0.7.0", | ||
"@jupyterlab/codeeditor": "^0.7.0", | ||
"@jupyterlab/rendermime": "^0.7.0", | ||
"@jupyterlab/services": "^0.46.0", | ||
"@phosphor/coreutils": "^1.1.1", | ||
"@jupyterlab/apputils": "^0.8.0", | ||
"@jupyterlab/codeeditor": "^0.8.0", | ||
"@jupyterlab/rendermime": "^0.8.0", | ||
"@jupyterlab/services": "^0.47.0", | ||
"@phosphor/coreutils": "^1.2.0", | ||
"@phosphor/messaging": "^1.2.1", | ||
@@ -27,3 +27,3 @@ "@phosphor/widgets": "^1.3.0" | ||
"rimraf": "^2.5.2", | ||
"typescript": "^2.2.1" | ||
"typescript": "~2.3.1" | ||
}, | ||
@@ -30,0 +30,0 @@ "scripts": { |
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
12358
358
+ Added@jupyterlab/apputils@0.8.2(transitive)
+ Added@jupyterlab/codeeditor@0.8.1(transitive)
+ Added@jupyterlab/codemirror@0.8.1(transitive)
+ Added@jupyterlab/coreutils@0.8.1(transitive)
+ Added@jupyterlab/rendermime@0.8.2(transitive)
+ Added@jupyterlab/rendermime-interfaces@0.2.1(transitive)
+ Added@jupyterlab/services@0.47.1(transitive)
+ Addedajv@5.5.2(transitive)
+ Addedco@4.6.0(transitive)
+ Addedfast-deep-equal@1.1.0(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedjson-schema-traverse@0.3.1(transitive)
- Removed@jupyterlab/apputils@0.7.0(transitive)
- Removed@jupyterlab/codeeditor@0.7.0(transitive)
- Removed@jupyterlab/codemirror@0.7.0(transitive)
- Removed@jupyterlab/coreutils@0.7.1(transitive)
- Removed@jupyterlab/rendermime@0.7.0(transitive)
- Removed@jupyterlab/services@0.46.0(transitive)
Updated@jupyterlab/apputils@^0.8.0
Updated@jupyterlab/services@^0.47.0
Updated@phosphor/coreutils@^1.2.0