@jupyterlab/docregistry
Advanced tools
Comparing version 0.15.0 to 0.15.1
@@ -0,4 +1,4 @@ | ||
import { RenderMimeRegistry } from '@jupyterlab/rendermime'; | ||
import { Message } from '@phosphor/messaging'; | ||
import { Widget } from '@phosphor/widgets'; | ||
import { RenderMimeRegistry } from '@jupyterlab/rendermime'; | ||
import { ABCWidgetFactory } from './default'; | ||
@@ -5,0 +5,0 @@ import { DocumentRegistry } from './registry'; |
@@ -23,7 +23,8 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var coreutils_1 = require("@phosphor/coreutils"); | ||
var apputils_1 = require("@jupyterlab/apputils"); | ||
var coreutils_1 = require("@jupyterlab/coreutils"); | ||
var rendermime_1 = require("@jupyterlab/rendermime"); | ||
var coreutils_2 = require("@phosphor/coreutils"); | ||
var messaging_1 = require("@phosphor/messaging"); | ||
var widgets_1 = require("@phosphor/widgets"); | ||
var coreutils_2 = require("@jupyterlab/coreutils"); | ||
var rendermime_1 = require("@jupyterlab/rendermime"); | ||
var default_1 = require("./default"); | ||
@@ -55,3 +56,3 @@ /** | ||
}; | ||
_this._ready = new coreutils_1.PromiseDelegate(); | ||
_this._ready = new coreutils_2.PromiseDelegate(); | ||
_this._hasRendered = false; | ||
@@ -83,6 +84,6 @@ _this._isRendering = false; | ||
} | ||
return _this._render().then(); | ||
return _this._render(); | ||
}).then(function () { | ||
// Throttle the rendering rate of the widget. | ||
_this._monitor = new coreutils_2.ActivityMonitor({ | ||
_this._monitor = new coreutils_1.ActivityMonitor({ | ||
signal: context.model.contentChanged, | ||
@@ -179,4 +180,8 @@ timeout: options.renderTimeout | ||
if (_this._renderRequested) { | ||
_this._render(); | ||
return _this._render(); | ||
} | ||
}).catch(function (reason) { | ||
// Dispose the document if rendering fails. | ||
requestAnimationFrame(function () { _this.dispose(); }); | ||
apputils_1.showErrorMessage("Renderer Failure: " + context.path, reason); | ||
}); | ||
@@ -188,3 +193,3 @@ }; | ||
MimeDocument.prototype._onPathChanged = function () { | ||
this.title.label = coreutils_2.PathExt.basename(this._context.localPath); | ||
this.title.label = coreutils_1.PathExt.basename(this._context.localPath); | ||
}; | ||
@@ -191,0 +196,0 @@ return MimeDocument; |
@@ -555,3 +555,3 @@ "use strict"; | ||
extensions: ['.json'], | ||
mimeTypes: ['application/json', 'application/x-json'], | ||
mimeTypes: ['application/json'], | ||
iconClass: 'jp-MaterialIcon jp-JSONIcon' | ||
@@ -634,17 +634,2 @@ }, | ||
}, | ||
{ | ||
name: 'xbm', | ||
displayName: 'Image', | ||
mimeTypes: ['image/xbm'], | ||
extensions: ['.xbm'], | ||
iconClass: 'jp-MaterialIcon jp-ImageIcon', | ||
fileFormat: 'base64' | ||
}, | ||
{ | ||
name: 'raw', | ||
displayName: 'Image', | ||
extensions: ['.raw'], | ||
iconClass: 'jp-MaterialIcon jp-ImageIcon', | ||
fileFormat: 'base64' | ||
} | ||
]; | ||
@@ -651,0 +636,0 @@ })(DocumentRegistry = exports.DocumentRegistry || (exports.DocumentRegistry = {})); |
{ | ||
"name": "@jupyterlab/docregistry", | ||
"version": "0.15.0", | ||
"version": "0.15.1", | ||
"description": "JupyterLab - Document Registry", | ||
@@ -33,10 +33,10 @@ "homepage": "https://github.com/jupyterlab/jupyterlab", | ||
"dependencies": { | ||
"@jupyterlab/apputils": "^0.15.0", | ||
"@jupyterlab/codeeditor": "^0.15.0", | ||
"@jupyterlab/codemirror": "^0.15.0", | ||
"@jupyterlab/coreutils": "^1.0.2", | ||
"@jupyterlab/observables": "^1.0.2", | ||
"@jupyterlab/rendermime": "^0.15.0", | ||
"@jupyterlab/rendermime-interfaces": "^1.0.2", | ||
"@jupyterlab/services": "^1.1.0", | ||
"@jupyterlab/apputils": "^0.15.1", | ||
"@jupyterlab/codeeditor": "^0.15.1", | ||
"@jupyterlab/codemirror": "^0.15.1", | ||
"@jupyterlab/coreutils": "^1.0.3", | ||
"@jupyterlab/observables": "^1.0.3", | ||
"@jupyterlab/rendermime": "^0.15.1", | ||
"@jupyterlab/rendermime-interfaces": "^1.0.3", | ||
"@jupyterlab/services": "^1.1.1", | ||
"@phosphor/algorithm": "^1.1.2", | ||
@@ -43,0 +43,0 @@ "@phosphor/coreutils": "^1.3.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
223847
3242