@jupyterlab/apputils
Advanced tools
Comparing version 0.10.0 to 0.11.0
@@ -897,1 +897,2 @@ "use strict"; | ||
})(Private || (Private = {})); | ||
//# sourceMappingURL=clientsession.js.map |
@@ -90,1 +90,2 @@ "use strict"; | ||
})(Private || (Private = {})); | ||
//# sourceMappingURL=clipboard.js.map |
@@ -179,1 +179,2 @@ "use strict"; | ||
exports.CommandLinker = CommandLinker; | ||
//# sourceMappingURL=commandlinker.js.map |
@@ -12,2 +12,3 @@ "use strict"; | ||
*/ | ||
exports.ICommandPalette = new coreutils_1.Token('jupyter.services.commandpalette'); | ||
exports.ICommandPalette = new coreutils_1.Token('@jupyterlab/apputils:ICommandPalette'); | ||
//# sourceMappingURL=commandpalette.js.map |
@@ -13,2 +13,11 @@ import { Message } from '@phosphor/messaging'; | ||
/** | ||
* Show an error message dialog. | ||
* | ||
* @param title - The title of the dialog box. | ||
* | ||
* @param error - the error to show in the dialog body (either a string | ||
* or an object with a string `message` property). | ||
*/ | ||
export declare function showErrorMessage(title: string, error: any): Promise<void>; | ||
/** | ||
* A modal dialog widget. | ||
@@ -15,0 +24,0 @@ */ |
@@ -34,2 +34,21 @@ "use strict"; | ||
/** | ||
* Show an error message dialog. | ||
* | ||
* @param title - The title of the dialog box. | ||
* | ||
* @param error - the error to show in the dialog body (either a string | ||
* or an object with a string `message` property). | ||
*/ | ||
function showErrorMessage(title, error) { | ||
console.error(error); | ||
var options = { | ||
title: title, | ||
body: error.message || title, | ||
buttons: [Dialog.okButton()], | ||
okText: 'DISMISS' | ||
}; | ||
return showDialog(options).then(function () { }); | ||
} | ||
exports.showErrorMessage = showErrorMessage; | ||
/** | ||
* A modal dialog widget. | ||
@@ -534,1 +553,2 @@ */ | ||
})(Private || (Private = {})); | ||
//# sourceMappingURL=dialog.js.map |
@@ -29,1 +29,2 @@ "use strict"; | ||
})(DOMUtils = exports.DOMUtils || (exports.DOMUtils = {})); | ||
//# sourceMappingURL=domutils.js.map |
@@ -102,1 +102,2 @@ "use strict"; | ||
})(HoverBox = exports.HoverBox || (exports.HoverBox = {})); | ||
//# sourceMappingURL=hoverbox.js.map |
@@ -63,1 +63,2 @@ "use strict"; | ||
})(Private || (Private = {})); | ||
//# sourceMappingURL=iframe.js.map |
@@ -13,2 +13,3 @@ import '../style/index.css'; | ||
export * from './sanitizer'; | ||
export * from './spinner'; | ||
export * from './splash'; | ||
@@ -15,0 +16,0 @@ export * from './styling'; |
@@ -20,2 +20,3 @@ "use strict"; | ||
__export(require("./sanitizer")); | ||
__export(require("./spinner")); | ||
__export(require("./splash")); | ||
@@ -26,1 +27,2 @@ __export(require("./styling")); | ||
__export(require("./vdom")); | ||
//# sourceMappingURL=index.js.map |
@@ -330,1 +330,2 @@ "use strict"; | ||
})(Private || (Private = {})); | ||
//# sourceMappingURL=instancetracker.js.map |
@@ -22,3 +22,3 @@ "use strict"; | ||
*/ | ||
exports.IMainMenu = new coreutils_1.Token('jupyter.services.main-menu'); | ||
exports.IMainMenu = new coreutils_1.Token('@jupyterlab/apputils:IMainMenu'); | ||
/** | ||
@@ -76,1 +76,2 @@ * The main menu class. It is intended to be used as a singleton. | ||
})(Private || (Private = {})); | ||
//# sourceMappingURL=mainmenu.js.map |
@@ -47,1 +47,2 @@ "use strict"; | ||
exports.defaultSanitizer = new Sanitizer(); | ||
//# sourceMappingURL=sanitizer.js.map |
@@ -10,2 +10,3 @@ "use strict"; | ||
*/ | ||
exports.ISplashScreen = new coreutils_1.Token('jupyter.services.splash-screen'); | ||
exports.ISplashScreen = new coreutils_1.Token('@jupyterlab/apputils:ISplashScreen'); | ||
//# sourceMappingURL=splash.js.map |
@@ -95,1 +95,2 @@ "use strict"; | ||
})(Private || (Private = {})); | ||
//# sourceMappingURL=styling.js.map |
@@ -91,2 +91,6 @@ import { ISettingRegistry } from '@jupyterlab/coreutils'; | ||
/** | ||
* The setting registry key that holds theme setting data. | ||
*/ | ||
key: string; | ||
/** | ||
* The settings registry. | ||
@@ -93,0 +97,0 @@ */ |
@@ -13,3 +13,3 @@ "use strict"; | ||
*/ | ||
exports.IThemeManager = new coreutils_2.Token('jupyter.services.theme-manager'); | ||
exports.IThemeManager = new coreutils_2.Token('@jupyterlab/apputils:IThemeManager'); | ||
/** | ||
@@ -30,10 +30,9 @@ * A class that provides theme management. | ||
this._sealed = false; | ||
var key = options.key, when = options.when; | ||
var registry = options.settingRegistry; | ||
var promises = Promise.all([registry.load(key), when]); | ||
when.then(function () { _this._sealed = true; }); | ||
this._baseUrl = options.baseUrl; | ||
var registry = options.settingRegistry; | ||
this._host = options.host; | ||
var id = 'jupyter.services.theme-manager'; | ||
options.when.then(function () { | ||
_this._sealed = true; | ||
}); | ||
this.ready = Promise.all([registry.load(id), options.when]).then(function (_a) { | ||
this.ready = promises.then(function (_a) { | ||
var settings = _a[0]; | ||
@@ -70,5 +69,3 @@ _this._settings = settings; | ||
var _this = this; | ||
return this.ready.then(function () { | ||
_this._settings.set('theme', name); | ||
}); | ||
return this.ready.then(function () { return _this._settings.set('theme', name); }); | ||
}; | ||
@@ -92,5 +89,3 @@ /** | ||
this._themes[name] = theme; | ||
return new disposable_1.DisposableDelegate(function () { | ||
delete _this._themes[name]; | ||
}); | ||
return new disposable_1.DisposableDelegate(function () { delete _this._themes[name]; }); | ||
}; | ||
@@ -104,13 +99,11 @@ /** | ||
var link = document.createElement('link'); | ||
var baseUrl = coreutils_1.PageConfig.getOption('themePath'); | ||
var delegate = new coreutils_2.PromiseDelegate(); | ||
link.rel = 'stylesheet'; | ||
link.type = 'text/css'; | ||
var baseUrl = coreutils_1.PageConfig.getOption('themePath'); | ||
link.href = coreutils_1.URLExt.join(baseUrl, path); | ||
var promise = new coreutils_2.PromiseDelegate(); | ||
link.onload = function () { | ||
promise.resolve(void 0); | ||
}; | ||
link.onload = function () { delegate.resolve(void 0); }; | ||
document.body.appendChild(link); | ||
this._links.push(link); | ||
return promise.promise; | ||
return delegate.promise; | ||
}; | ||
@@ -145,3 +138,3 @@ /** | ||
} | ||
console.warn("Could not find theme \"" + old + "\", loading default theme \"" + theme + "\""); | ||
console.warn("Could not find theme \"" + old + "\", loading default \"" + theme + "\""); | ||
} | ||
@@ -206,1 +199,2 @@ this._pendingTheme = theme; | ||
})(Private || (Private = {})); | ||
//# sourceMappingURL=thememanager.js.map |
@@ -494,1 +494,2 @@ "use strict"; | ||
})(Private || (Private = {})); | ||
//# sourceMappingURL=toolbar.js.map |
@@ -126,1 +126,2 @@ "use strict"; | ||
exports.VDomModel = VDomModel; | ||
//# sourceMappingURL=vdom.js.map |
{ | ||
"name": "@jupyterlab/apputils", | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"description": "JupyterLab - Application Utilities", | ||
@@ -16,4 +16,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@jupyterlab/coreutils": "^0.10.0", | ||
"@jupyterlab/services": "^0.49.0", | ||
"@jupyterlab/coreutils": "^0.11.0", | ||
"@jupyterlab/services": "^0.50.0", | ||
"@phosphor/algorithm": "^1.1.1", | ||
@@ -29,7 +29,7 @@ "@phosphor/commands": "^1.3.0", | ||
"@phosphor/widgets": "^1.3.0", | ||
"sanitize-html": "^1.14.1" | ||
"sanitize-html": "~1.14.1" | ||
}, | ||
"devDependencies": { | ||
"@types/sanitize-html": "^1.13.31", | ||
"rimraf": "^2.5.2", | ||
"@types/sanitize-html": "^1.13.31", | ||
"typescript": "~2.4.1" | ||
@@ -36,0 +36,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
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
186462
46
5687
0
4
+ Added@jupyterlab/coreutils@0.11.1(transitive)
+ Added@jupyterlab/services@0.50.2(transitive)
+ Addedajv@5.1.6(transitive)
+ Addedcall-bind@1.0.7(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)
+ Addedentities@1.1.2(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.1.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.1.0(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.1.1(transitive)
+ Addedjsonify@0.0.1(transitive)
+ Addedlodash.escaperegexp@4.1.2(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/coreutils@0.10.1(transitive)
- Removed@jupyterlab/services@0.49.0(transitive)
- Removedajv@5.5.2(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/services@^0.50.0
Updatedsanitize-html@~1.14.1