@jupyter-notebook/docmanager-extension 7.0.0-beta.2 → 7.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +3 -1
- package/package.json +6 -6
package/lib/index.js
CHANGED
|
@@ -13,6 +13,7 @@ const opener = {
|
|
|
13
13
|
provides: IDocumentWidgetOpener,
|
|
14
14
|
activate: (app) => {
|
|
15
15
|
const baseUrl = PageConfig.getBaseUrl();
|
|
16
|
+
const docRegistry = app.docRegistry;
|
|
16
17
|
let id = 0;
|
|
17
18
|
return new (class {
|
|
18
19
|
constructor() {
|
|
@@ -31,7 +32,8 @@ const opener = {
|
|
|
31
32
|
}
|
|
32
33
|
let url = `${baseUrl}${route}/${path}`;
|
|
33
34
|
// append ?factory only if it's not the default
|
|
34
|
-
|
|
35
|
+
const defaultFactory = docRegistry.defaultWidgetFactory(path);
|
|
36
|
+
if (widgetName !== defaultFactory.name) {
|
|
35
37
|
url = `${url}?factory=${widgetName}`;
|
|
36
38
|
}
|
|
37
39
|
window.open(url);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyter-notebook/docmanager-extension",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.3",
|
|
4
4
|
"description": "Jupyter Notebook - Document Manager Extension",
|
|
5
5
|
"homepage": "https://github.com/jupyter/notebook",
|
|
6
6
|
"bugs": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"watch": "tsc -b --watch"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@jupyterlab/application": "^4.0.0
|
|
42
|
-
"@jupyterlab/coreutils": "^6.0.0
|
|
43
|
-
"@jupyterlab/docmanager": "^4.0.0
|
|
44
|
-
"@jupyterlab/docregistry": "^4.0.0
|
|
45
|
-
"@jupyterlab/services": "^7.0.0
|
|
41
|
+
"@jupyterlab/application": "^4.0.0",
|
|
42
|
+
"@jupyterlab/coreutils": "^6.0.0",
|
|
43
|
+
"@jupyterlab/docmanager": "^4.0.0",
|
|
44
|
+
"@jupyterlab/docregistry": "^4.0.0",
|
|
45
|
+
"@jupyterlab/services": "^7.0.0",
|
|
46
46
|
"@lumino/algorithm": "^2.0.0",
|
|
47
47
|
"@lumino/signaling": "^2.1.1"
|
|
48
48
|
},
|