@jupyter-notebook/application-extension 7.0.0-alpha.5 → 7.0.0-alpha.6
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 +6 -5
- package/package.json +20 -20
package/lib/index.js
CHANGED
|
@@ -90,7 +90,8 @@ const logo = {
|
|
|
90
90
|
elementPosition: 'center',
|
|
91
91
|
padding: '2px 2px 2px 8px',
|
|
92
92
|
height: '28px',
|
|
93
|
-
width: 'auto'
|
|
93
|
+
width: 'auto',
|
|
94
|
+
cursor: 'pointer'
|
|
94
95
|
});
|
|
95
96
|
logo.id = 'jp-NotebookLogo';
|
|
96
97
|
app.shell.add(logo, 'top', { rank: 0 });
|
|
@@ -351,11 +352,11 @@ const title = {
|
|
|
351
352
|
label: () => trans.__('Rename…'),
|
|
352
353
|
isEnabled,
|
|
353
354
|
execute: async () => {
|
|
354
|
-
var _a
|
|
355
|
+
var _a;
|
|
355
356
|
if (!isEnabled()) {
|
|
356
357
|
return;
|
|
357
358
|
}
|
|
358
|
-
const result = await renameDialog(docManager, current.context
|
|
359
|
+
const result = await renameDialog(docManager, current.context);
|
|
359
360
|
// activate the current widget to bring the focus
|
|
360
361
|
if (current) {
|
|
361
362
|
current.activate();
|
|
@@ -363,13 +364,13 @@ const title = {
|
|
|
363
364
|
if (result === null) {
|
|
364
365
|
return;
|
|
365
366
|
}
|
|
366
|
-
const newPath =
|
|
367
|
+
const newPath = current.context.path;
|
|
367
368
|
const basename = PathExt.basename(newPath);
|
|
368
369
|
h.textContent = basename.replace(STRIP_IPYNB, '');
|
|
369
370
|
if (!router) {
|
|
370
371
|
return;
|
|
371
372
|
}
|
|
372
|
-
const matches = (
|
|
373
|
+
const matches = (_a = router.current.path.match(TREE_PATTERN)) !== null && _a !== void 0 ? _a : [];
|
|
373
374
|
const [, route, path] = matches;
|
|
374
375
|
if (!route || !path) {
|
|
375
376
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyter-notebook/application-extension",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.6",
|
|
4
4
|
"description": "Jupyter Notebook - Application Extension",
|
|
5
5
|
"homepage": "https://github.com/jupyter/notebook",
|
|
6
6
|
"bugs": {
|
|
@@ -39,27 +39,27 @@
|
|
|
39
39
|
"watch": "tsc -b --watch"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@jupyter-notebook/application": "^7.0.0-alpha.
|
|
43
|
-
"@jupyter-notebook/ui-components": "^7.0.0-alpha.
|
|
44
|
-
"@jupyterlab/application": "^4.0.0-alpha.
|
|
45
|
-
"@jupyterlab/apputils": "^4.0.0-alpha.
|
|
46
|
-
"@jupyterlab/celltags": "^4.0.0-alpha.
|
|
47
|
-
"@jupyterlab/codeeditor": "^4.0.0-alpha.
|
|
48
|
-
"@jupyterlab/codemirror": "^4.0.0-alpha.
|
|
49
|
-
"@jupyterlab/console": "^4.0.0-alpha.
|
|
50
|
-
"@jupyterlab/coreutils": "^6.0.0-alpha.
|
|
51
|
-
"@jupyterlab/docmanager": "^4.0.0-alpha.
|
|
52
|
-
"@jupyterlab/docregistry": "^4.0.0-alpha.
|
|
53
|
-
"@jupyterlab/mainmenu": "^4.0.0-alpha.
|
|
54
|
-
"@jupyterlab/settingregistry": "^4.0.0-alpha.
|
|
55
|
-
"@jupyterlab/translation": "^4.0.0-alpha.
|
|
56
|
-
"@lumino/coreutils": "^
|
|
57
|
-
"@lumino/disposable": "^
|
|
58
|
-
"@lumino/widgets": "^
|
|
42
|
+
"@jupyter-notebook/application": "^7.0.0-alpha.6",
|
|
43
|
+
"@jupyter-notebook/ui-components": "^7.0.0-alpha.6",
|
|
44
|
+
"@jupyterlab/application": "^4.0.0-alpha.14",
|
|
45
|
+
"@jupyterlab/apputils": "^4.0.0-alpha.14",
|
|
46
|
+
"@jupyterlab/celltags": "^4.0.0-alpha.14",
|
|
47
|
+
"@jupyterlab/codeeditor": "^4.0.0-alpha.14",
|
|
48
|
+
"@jupyterlab/codemirror": "^4.0.0-alpha.14",
|
|
49
|
+
"@jupyterlab/console": "^4.0.0-alpha.14",
|
|
50
|
+
"@jupyterlab/coreutils": "^6.0.0-alpha.14",
|
|
51
|
+
"@jupyterlab/docmanager": "^4.0.0-alpha.14",
|
|
52
|
+
"@jupyterlab/docregistry": "^4.0.0-alpha.14",
|
|
53
|
+
"@jupyterlab/mainmenu": "^4.0.0-alpha.14",
|
|
54
|
+
"@jupyterlab/settingregistry": "^4.0.0-alpha.14",
|
|
55
|
+
"@jupyterlab/translation": "^4.0.0-alpha.14",
|
|
56
|
+
"@lumino/coreutils": "^2.0.0-alpha.6",
|
|
57
|
+
"@lumino/disposable": "^2.0.0-alpha.6",
|
|
58
|
+
"@lumino/widgets": "^2.0.0-alpha.6"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"rimraf": "
|
|
62
|
-
"typescript": "~4.
|
|
61
|
+
"rimraf": "^3.0.2",
|
|
62
|
+
"typescript": "~4.7.3"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|