@jupyter-notebook/application 7.6.0-alpha.3 → 7.6.0-alpha.4
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 +3 -3
- package/lib/panelhandler.js +4 -10
- package/package.json +7 -7
package/lib/panelhandler.d.ts
CHANGED
|
@@ -155,9 +155,9 @@ export declare class SidePanelPalette {
|
|
|
155
155
|
* Remove an item from the command palette.
|
|
156
156
|
*/
|
|
157
157
|
removeItem(widget: Readonly<Widget>, area: 'left' | 'right'): void;
|
|
158
|
-
_command
|
|
159
|
-
_commandPalette
|
|
160
|
-
_items
|
|
158
|
+
private _command;
|
|
159
|
+
private _commandPalette;
|
|
160
|
+
private _items;
|
|
161
161
|
}
|
|
162
162
|
type SidePanelPaletteItem = {
|
|
163
163
|
/**
|
package/lib/panelhandler.js
CHANGED
|
@@ -227,8 +227,8 @@ export class SidePanelHandler extends PanelHandler {
|
|
|
227
227
|
* Find the widget with the given id, or `null`.
|
|
228
228
|
*/
|
|
229
229
|
_findWidgetByID(id) {
|
|
230
|
-
|
|
231
|
-
return
|
|
230
|
+
var _a, _b;
|
|
231
|
+
return (_b = (_a = find(this._items, (value) => value.widget.id === id)) === null || _a === void 0 ? void 0 : _a.widget) !== null && _b !== void 0 ? _b : null;
|
|
232
232
|
}
|
|
233
233
|
/**
|
|
234
234
|
* Refresh the visibility of the stacked panel.
|
|
@@ -264,14 +264,8 @@ export class SidePanelPalette {
|
|
|
264
264
|
* Get a command palette item from the widget id and the area.
|
|
265
265
|
*/
|
|
266
266
|
getItem(widget, area) {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
const item = itemList[i];
|
|
270
|
-
if (item.widgetId === widget.id && item.area === area) {
|
|
271
|
-
return item;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
return null;
|
|
267
|
+
var _a;
|
|
268
|
+
return ((_a = this._items.find((item) => item.widgetId === widget.id && item.area === area)) !== null && _a !== void 0 ? _a : null);
|
|
275
269
|
}
|
|
276
270
|
/**
|
|
277
271
|
* Add an item to the command palette.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyter-notebook/application",
|
|
3
|
-
"version": "7.6.0-alpha.
|
|
3
|
+
"version": "7.6.0-alpha.4",
|
|
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.6.0-alpha.
|
|
46
|
-
"@jupyterlab/coreutils": "~6.6.0-alpha.
|
|
47
|
-
"@jupyterlab/docregistry": "~4.6.0-alpha.
|
|
48
|
-
"@jupyterlab/rendermime-interfaces": "~3.14.0-alpha.
|
|
49
|
-
"@jupyterlab/ui-components": "~4.6.0-alpha.
|
|
45
|
+
"@jupyterlab/application": "~4.6.0-alpha.4",
|
|
46
|
+
"@jupyterlab/coreutils": "~6.6.0-alpha.4",
|
|
47
|
+
"@jupyterlab/docregistry": "~4.6.0-alpha.4",
|
|
48
|
+
"@jupyterlab/rendermime-interfaces": "~3.14.0-alpha.4",
|
|
49
|
+
"@jupyterlab/ui-components": "~4.6.0-alpha.4",
|
|
50
50
|
"@lumino/algorithm": "^2.0.4",
|
|
51
51
|
"@lumino/coreutils": "^2.2.2",
|
|
52
52
|
"@lumino/messaging": "^2.0.4",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"jest": "^29.3.1",
|
|
63
63
|
"rimraf": "^3.0.2",
|
|
64
64
|
"ts-jest": "^29.0.3",
|
|
65
|
-
"typescript": "~5.
|
|
65
|
+
"typescript": "~5.9.3"
|
|
66
66
|
},
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|