@jupyter-notebook/application 7.0.0-alpha.10 → 7.0.0-alpha.12
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/panelhandler.d.ts +1 -1
- package/lib/panelhandler.js +1 -13
- package/package.json +13 -13
package/lib/panelhandler.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare class PanelHandler {
|
|
|
18
18
|
*/
|
|
19
19
|
addWidget(widget: Widget, rank: number): void;
|
|
20
20
|
/**
|
|
21
|
-
* A message hook for child
|
|
21
|
+
* A message hook for child remove messages on the panel handler.
|
|
22
22
|
*/
|
|
23
23
|
private _panelChildHook;
|
|
24
24
|
protected _items: Private.IRankItem[];
|
package/lib/panelhandler.js
CHANGED
|
@@ -11,22 +11,10 @@ import { Panel, StackedPanel, Widget } from '@lumino/widgets';
|
|
|
11
11
|
export class PanelHandler {
|
|
12
12
|
constructor() {
|
|
13
13
|
/**
|
|
14
|
-
* A message hook for child
|
|
14
|
+
* A message hook for child remove messages on the panel handler.
|
|
15
15
|
*/
|
|
16
16
|
this._panelChildHook = (handler, msg) => {
|
|
17
17
|
switch (msg.type) {
|
|
18
|
-
case 'child-added':
|
|
19
|
-
{
|
|
20
|
-
const widget = msg.child;
|
|
21
|
-
// If we already know about this widget, we're done
|
|
22
|
-
if (this._items.find(v => v.widget === widget)) {
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
// Otherwise, add to the end by default
|
|
26
|
-
const rank = this._items[this._items.length - 1].rank;
|
|
27
|
-
this._items.push({ widget, rank });
|
|
28
|
-
}
|
|
29
|
-
break;
|
|
30
18
|
case 'child-removed':
|
|
31
19
|
{
|
|
32
20
|
const widget = msg.child;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyter-notebook/application",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.12",
|
|
4
4
|
"description": "Jupyter Notebook - Application",
|
|
5
5
|
"homepage": "https://github.com/jupyter/notebook",
|
|
6
6
|
"bugs": {
|
|
@@ -43,22 +43,22 @@
|
|
|
43
43
|
"watch": "tsc -b --watch"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@jupyterlab/application": "^4.0.0-alpha.
|
|
47
|
-
"@jupyterlab/coreutils": "^6.0.0-alpha.
|
|
48
|
-
"@jupyterlab/docregistry": "^4.0.0-alpha.
|
|
49
|
-
"@jupyterlab/rendermime-interfaces": "^3.8.0-alpha.
|
|
50
|
-
"@jupyterlab/ui-components": "^4.0.0-alpha.
|
|
51
|
-
"@lumino/algorithm": "^2.0.0-
|
|
52
|
-
"@lumino/coreutils": "^2.0.0-
|
|
53
|
-
"@lumino/messaging": "^2.0.0-
|
|
54
|
-
"@lumino/polling": "^2.0.0-
|
|
55
|
-
"@lumino/signaling": "^2.0.0-
|
|
56
|
-
"@lumino/widgets": "^2.0.0-
|
|
46
|
+
"@jupyterlab/application": "^4.0.0-alpha.18",
|
|
47
|
+
"@jupyterlab/coreutils": "^6.0.0-alpha.18",
|
|
48
|
+
"@jupyterlab/docregistry": "^4.0.0-alpha.18",
|
|
49
|
+
"@jupyterlab/rendermime-interfaces": "^3.8.0-alpha.18",
|
|
50
|
+
"@jupyterlab/ui-components": "^4.0.0-alpha.33",
|
|
51
|
+
"@lumino/algorithm": "^2.0.0-beta.0",
|
|
52
|
+
"@lumino/coreutils": "^2.0.0-beta.0",
|
|
53
|
+
"@lumino/messaging": "^2.0.0-beta.0",
|
|
54
|
+
"@lumino/polling": "^2.0.0-beta.1",
|
|
55
|
+
"@lumino/signaling": "^2.0.0-beta.1",
|
|
56
|
+
"@lumino/widgets": "^2.0.0-beta.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@babel/core": "^7.11.6",
|
|
60
60
|
"@babel/preset-env": "^7.12.1",
|
|
61
|
-
"@jupyterlab/testutils": "^4.0.0-alpha.
|
|
61
|
+
"@jupyterlab/testutils": "^4.0.0-alpha.18",
|
|
62
62
|
"@types/jest": "^29.2.5",
|
|
63
63
|
"jest": "^29.3.1",
|
|
64
64
|
"rimraf": "^3.0.2",
|