@jupyter-notebook/application 7.7.0-alpha.2 → 7.7.0-beta.0

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.
@@ -159,6 +159,7 @@ export declare class SidePanelPalette {
159
159
  removeItem(widget: Readonly<Widget>, area: 'left' | 'right'): void;
160
160
  private _command;
161
161
  private _commandPalette;
162
+ private _translator;
162
163
  private _items;
163
164
  }
164
165
  type SidePanelPaletteItem = {
@@ -193,6 +194,10 @@ type SidePanelPaletteOption = {
193
194
  * id: string, id of the widget to activate
194
195
  */
195
196
  command: string;
197
+ /**
198
+ * The application language translator.
199
+ */
200
+ translator?: ITranslator;
196
201
  };
197
202
  /**
198
203
  * A namespace for private module data.
@@ -260,9 +260,11 @@ export class SidePanelPalette {
260
260
  * Construct a new side panel palette.
261
261
  */
262
262
  constructor(options) {
263
+ var _a;
263
264
  this._items = [];
264
265
  this._commandPalette = options.commandPalette;
265
266
  this._command = options.command;
267
+ this._translator = (_a = options.translator) !== null && _a !== void 0 ? _a : nullTranslator;
266
268
  }
267
269
  /**
268
270
  * Get a command palette item from the widget id and the area.
@@ -280,9 +282,10 @@ export class SidePanelPalette {
280
282
  return;
281
283
  }
282
284
  // Add a new item in command palette.
285
+ const trans = this._translator.load('notebook');
283
286
  const disposableDelegate = this._commandPalette.addItem({
284
287
  command: this._command,
285
- category: 'View',
288
+ category: trans.__('View'),
286
289
  args: {
287
290
  side: area,
288
291
  title: widget.title.caption,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyter-notebook/application",
3
- "version": "7.7.0-alpha.2",
3
+ "version": "7.7.0-beta.0",
4
4
  "description": "Jupyter Notebook - Application",
5
5
  "homepage": "https://github.com/jupyter/notebook",
6
6
  "bugs": {
@@ -42,11 +42,11 @@
42
42
  "watch": "tsc -b --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@jupyterlab/application": "~4.7.0-alpha.2",
46
- "@jupyterlab/coreutils": "~6.7.0-alpha.2",
47
- "@jupyterlab/docregistry": "~4.7.0-alpha.2",
48
- "@jupyterlab/rendermime-interfaces": "~3.15.0-alpha.2",
49
- "@jupyterlab/ui-components": "~4.7.0-alpha.2",
45
+ "@jupyterlab/application": "~4.7.0-beta.0",
46
+ "@jupyterlab/coreutils": "~6.7.0-beta.0",
47
+ "@jupyterlab/docregistry": "~4.7.0-beta.0",
48
+ "@jupyterlab/rendermime-interfaces": "~3.15.0-beta.0",
49
+ "@jupyterlab/ui-components": "~4.7.0-beta.0",
50
50
  "@lumino/algorithm": "^2.0.4",
51
51
  "@lumino/coreutils": "^2.2.2",
52
52
  "@lumino/messaging": "^2.0.4",
@@ -57,7 +57,7 @@
57
57
  "devDependencies": {
58
58
  "@babel/core": "^7.29.6",
59
59
  "@babel/preset-env": "^7.12.1",
60
- "@jupyterlab/testutils": "~4.7.0-alpha.2",
60
+ "@jupyterlab/testutils": "~4.7.0-beta.0",
61
61
  "@types/jest": "^29.2.5",
62
62
  "jest": "^29.3.1",
63
63
  "rimraf": "^3.0.2",