@jupyter-notebook/application 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/app.js CHANGED
@@ -17,7 +17,7 @@ export class NotebookApp extends JupyterFrontEnd {
17
17
  */
18
18
  constructor(options = { shell: new NotebookShell() }) {
19
19
  var _a, _b;
20
- super(Object.assign(Object.assign({}, options), { shell: (_a = options.shell) !== null && _a !== void 0 ? _a : new NotebookShell() }));
20
+ super({ ...options, shell: (_a = options.shell) !== null && _a !== void 0 ? _a : new NotebookShell() });
21
21
  /**
22
22
  * The name of the application.
23
23
  */
package/lib/shell.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { JupyterFrontEnd } from '@jupyterlab/application';
2
2
  import { DocumentRegistry } from '@jupyterlab/docregistry';
3
- import { IIterator } from '@lumino/algorithm';
4
3
  import { Token } from '@lumino/coreutils';
5
4
  import { ISignal } from '@lumino/signaling';
6
5
  import { Widget } from '@lumino/widgets';
@@ -63,7 +62,7 @@ export declare class NotebookShell extends Widget implements JupyterFrontEnd.ISh
63
62
  *
64
63
  * @param area The area
65
64
  */
66
- widgets(area: Shell.Area): IIterator<Widget>;
65
+ widgets(area: Shell.Area): IterableIterator<Widget>;
67
66
  private _topWrapper;
68
67
  private _topHandler;
69
68
  private _menuWrapper;
package/lib/shell.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
- import { ArrayExt, find, iter } from '@lumino/algorithm';
3
+ import { ArrayExt } from '@lumino/algorithm';
4
4
  import { Token } from '@lumino/coreutils';
5
5
  import { MessageLoop } from '@lumino/messaging';
6
6
  import { Signal } from '@lumino/signaling';
@@ -76,7 +76,7 @@ export class NotebookShell extends Widget {
76
76
  * Activate a widget in its area.
77
77
  */
78
78
  activateById(id) {
79
- const widget = find(this.widgets('main'), w => w.id === id);
79
+ const widget = this._main.widgets.find(w => w.id === id);
80
80
  if (widget) {
81
81
  widget.activate();
82
82
  }
@@ -130,16 +130,20 @@ export class NotebookShell extends Widget {
130
130
  *
131
131
  * @param area The area
132
132
  */
133
- widgets(area) {
133
+ *widgets(area) {
134
134
  switch (area !== null && area !== void 0 ? area : 'main') {
135
135
  case 'top':
136
- return iter(this._topHandler.panel.widgets);
136
+ yield* this._topHandler.panel.widgets;
137
+ return;
137
138
  case 'menu':
138
- return iter(this._menuHandler.panel.widgets);
139
+ yield* this._menuHandler.panel.widgets;
140
+ return;
139
141
  case 'main':
140
- return iter(this._main.widgets);
142
+ yield* this._main.widgets;
143
+ return;
141
144
  default:
142
- throw new Error(`Invalid area: ${area}`);
145
+ console.error(`This shell has no area called "${area}"`);
146
+ return;
143
147
  }
144
148
  }
145
149
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyter-notebook/application",
3
- "version": "7.0.0-alpha.5",
3
+ "version": "7.0.0-alpha.6",
4
4
  "description": "Jupyter Notebook - Application",
5
5
  "homepage": "https://github.com/jupyter/notebook",
6
6
  "bugs": {
@@ -43,27 +43,27 @@
43
43
  "watch": "tsc -b --watch"
44
44
  },
45
45
  "dependencies": {
46
- "@jupyterlab/application": "^4.0.0-alpha.10",
47
- "@jupyterlab/coreutils": "^6.0.0-alpha.10",
48
- "@jupyterlab/docregistry": "^4.0.0-alpha.10",
49
- "@jupyterlab/rendermime-interfaces": "^3.8.0-alpha.10",
50
- "@jupyterlab/ui-components": "^4.0.0-alpha.25",
51
- "@lumino/algorithm": "^1.9.1",
52
- "@lumino/coreutils": "^1.12.0",
53
- "@lumino/messaging": "^1.10.1",
54
- "@lumino/polling": "^1.10.0",
55
- "@lumino/signaling": "^1.10.1",
56
- "@lumino/widgets": "^1.32.0"
46
+ "@jupyterlab/application": "^4.0.0-alpha.14",
47
+ "@jupyterlab/coreutils": "^6.0.0-alpha.14",
48
+ "@jupyterlab/docregistry": "^4.0.0-alpha.14",
49
+ "@jupyterlab/rendermime-interfaces": "^3.8.0-alpha.14",
50
+ "@jupyterlab/ui-components": "^4.0.0-alpha.29",
51
+ "@lumino/algorithm": "^2.0.0-alpha.6",
52
+ "@lumino/coreutils": "^2.0.0-alpha.6",
53
+ "@lumino/messaging": "^2.0.0-alpha.6",
54
+ "@lumino/polling": "^2.0.0-alpha.6",
55
+ "@lumino/signaling": "^2.0.0-alpha.6",
56
+ "@lumino/widgets": "^2.0.0-alpha.6"
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.10",
61
+ "@jupyterlab/testutils": "^4.0.0-alpha.14",
62
62
  "@types/jest": "^26.0.10",
63
63
  "jest": "^26.4.2",
64
- "rimraf": "~3.0.0",
64
+ "rimraf": "^3.0.2",
65
65
  "ts-jest": "^26.3.0",
66
- "typescript": "~4.6.3"
66
+ "typescript": "~4.7.3"
67
67
  },
68
68
  "publishConfig": {
69
69
  "access": "public"