@jupyter-notebook/application 7.0.0-alpha.16 → 7.0.0-alpha.18

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
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
- import { JupyterFrontEnd } from '@jupyterlab/application';
3
+ import { JupyterFrontEnd, } from '@jupyterlab/application';
4
4
  import { Base64ModelFactory } from '@jupyterlab/docregistry';
5
5
  import { createRendermimePlugins } from '@jupyterlab/application/lib/mimerenderers';
6
6
  import { LabStatus } from '@jupyterlab/application/lib/status';
@@ -65,7 +65,7 @@ export class NotebookApp extends JupyterFrontEnd {
65
65
  hubHost: PageConfig.getOption('hubHost') || undefined,
66
66
  hubPrefix: PageConfig.getOption('hubPrefix') || undefined,
67
67
  hubUser: PageConfig.getOption('hubUser') || undefined,
68
- hubServerName: PageConfig.getOption('hubServerName') || undefined
68
+ hubServerName: PageConfig.getOption('hubServerName') || undefined,
69
69
  },
70
70
  directories: {
71
71
  appSettings: PageConfig.getOption('appSettingsDir'),
@@ -75,8 +75,8 @@ export class NotebookApp extends JupyterFrontEnd {
75
75
  themes: PageConfig.getOption('themesDir'),
76
76
  userSettings: PageConfig.getOption('userSettingsDir'),
77
77
  serverRoot: PageConfig.getOption('serverRoot'),
78
- workspaces: PageConfig.getOption('workspacesDir')
79
- }
78
+ workspaces: PageConfig.getOption('workspacesDir'),
79
+ },
80
80
  };
81
81
  }
82
82
  /**
@@ -104,7 +104,7 @@ export class NotebookApp extends JupyterFrontEnd {
104
104
  if (!Array.isArray(data)) {
105
105
  data = [data];
106
106
  }
107
- data.forEach(item => {
107
+ data.forEach((item) => {
108
108
  try {
109
109
  this.registerPlugin(item);
110
110
  }
@@ -119,7 +119,7 @@ export class NotebookApp extends JupyterFrontEnd {
119
119
  * @param mods - The plugin modules to register.
120
120
  */
121
121
  registerPluginModules(mods) {
122
- mods.forEach(mod => {
122
+ mods.forEach((mod) => {
123
123
  this.registerPluginModule(mod);
124
124
  });
125
125
  }
@@ -18,7 +18,7 @@ export class PanelHandler {
18
18
  case 'child-removed':
19
19
  {
20
20
  const widget = msg.child;
21
- ArrayExt.removeFirstWhere(this._items, v => v.widget === widget);
21
+ ArrayExt.removeFirstWhere(this._items, (v) => v.widget === widget);
22
22
  }
23
23
  break;
24
24
  default:
@@ -71,7 +71,7 @@ export class SidePanelHandler extends PanelHandler {
71
71
  closeIcon.element({
72
72
  container: this._closeButton,
73
73
  height: '16px',
74
- width: 'auto'
74
+ width: 'auto',
75
75
  });
76
76
  this._closeButton.onclick = () => {
77
77
  this.collapse();
@@ -113,7 +113,7 @@ export class SidePanelHandler extends PanelHandler {
113
113
  * Get the widgets list.
114
114
  */
115
115
  get widgets() {
116
- return this._items.map(obj => obj.widget);
116
+ return this._items.map((obj) => obj.widget);
117
117
  }
118
118
  /**
119
119
  * Signal fired when a widget is added to the panel
@@ -221,13 +221,13 @@ export class SidePanelHandler extends PanelHandler {
221
221
  * Find the index of the item with the given widget, or `-1`.
222
222
  */
223
223
  _findWidgetIndex(widget) {
224
- return ArrayExt.findFirstIndex(this._items, i => i.widget === widget);
224
+ return ArrayExt.findFirstIndex(this._items, (i) => i.widget === widget);
225
225
  }
226
226
  /**
227
227
  * Find the widget with the given id, or `null`.
228
228
  */
229
229
  _findWidgetByID(id) {
230
- const item = find(this._items, value => value.widget.id === id);
230
+ const item = find(this._items, (value) => value.widget.id === id);
231
231
  return item ? item.widget : null;
232
232
  }
233
233
  /**
@@ -288,15 +288,15 @@ export class SidePanelPalette {
288
288
  args: {
289
289
  side: area,
290
290
  title: `Show ${widget.title.caption}`,
291
- id: widget.id
292
- }
291
+ id: widget.id,
292
+ },
293
293
  });
294
294
  // Keep the disposableDelegate objet to be able to dispose of the item if the widget
295
295
  // is remove from the side panel.
296
296
  this._items.push({
297
297
  widgetId: widget.id,
298
298
  area: area,
299
- disposable: disposableDelegate
299
+ disposable: disposableDelegate,
300
300
  });
301
301
  }
302
302
  /**
package/lib/shell.js CHANGED
@@ -56,7 +56,7 @@ export class NotebookShell extends Widget {
56
56
  rightHandler.hide();
57
57
  const middleLayout = new BoxLayout({
58
58
  spacing: 0,
59
- direction: 'top-to-bottom'
59
+ direction: 'top-to-bottom',
60
60
  });
61
61
  BoxLayout.setStretch(this._topWrapper, 0);
62
62
  BoxLayout.setStretch(this._menuWrapper, 0);
@@ -162,7 +162,7 @@ export class NotebookShell extends Widget {
162
162
  activateById(id) {
163
163
  // Search all areas that can have widgets for this widget, starting with main.
164
164
  for (const area of ['main', 'top', 'left', 'right', 'menu']) {
165
- const widget = find(this.widgets(area), w => w.id === id);
165
+ const widget = find(this.widgets(area), (w) => w.id === id);
166
166
  if (widget) {
167
167
  if (area === 'left') {
168
168
  this.expandLeft(id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyter-notebook/application",
3
- "version": "7.0.0-alpha.16",
3
+ "version": "7.0.0-alpha.18",
4
4
  "description": "Jupyter Notebook - Application",
5
5
  "homepage": "https://github.com/jupyter/notebook",
6
6
  "bugs": {
@@ -42,27 +42,27 @@
42
42
  "watch": "tsc -b --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@jupyterlab/application": "^4.0.0-alpha.21",
46
- "@jupyterlab/coreutils": "^6.0.0-alpha.21",
47
- "@jupyterlab/docregistry": "^4.0.0-alpha.21",
48
- "@jupyterlab/rendermime-interfaces": "^3.8.0-alpha.21",
49
- "@jupyterlab/ui-components": "^4.0.0-alpha.36",
50
- "@lumino/algorithm": "^2.0.0-rc.1",
51
- "@lumino/coreutils": "^2.0.0-rc.1",
52
- "@lumino/messaging": "^2.0.0-rc.1",
53
- "@lumino/polling": "^2.0.0-rc.1",
54
- "@lumino/signaling": "^2.0.0-rc.1",
55
- "@lumino/widgets": "^2.0.0-rc.1"
45
+ "@jupyterlab/application": "^4.0.0-alpha.22",
46
+ "@jupyterlab/coreutils": "^6.0.0-alpha.22",
47
+ "@jupyterlab/docregistry": "^4.0.0-alpha.22",
48
+ "@jupyterlab/rendermime-interfaces": "^3.8.0-alpha.22",
49
+ "@jupyterlab/ui-components": "^4.0.0-alpha.37",
50
+ "@lumino/algorithm": "^2.0.0",
51
+ "@lumino/coreutils": "^2.0.0",
52
+ "@lumino/messaging": "^2.0.0",
53
+ "@lumino/polling": "^2.0.0",
54
+ "@lumino/signaling": "^2.0.0",
55
+ "@lumino/widgets": "^2.0.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@babel/core": "^7.11.6",
59
59
  "@babel/preset-env": "^7.12.1",
60
- "@jupyterlab/testutils": "^4.0.0-alpha.21",
60
+ "@jupyterlab/testutils": "^4.0.0-alpha.22",
61
61
  "@types/jest": "^29.2.5",
62
62
  "jest": "^29.3.1",
63
63
  "rimraf": "^3.0.2",
64
64
  "ts-jest": "^29.0.3",
65
- "typescript": "5.0.1-rc"
65
+ "typescript": "~5.0.2"
66
66
  },
67
67
  "publishConfig": {
68
68
  "access": "public"