@jupyterlite/application-extension 0.1.0-beta.0 → 0.1.0-beta.3

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.
Files changed (2) hide show
  1. package/lib/index.js +16 -0
  2. package/package.json +15 -15
package/lib/index.js CHANGED
@@ -295,6 +295,21 @@ const liteLogo = {
295
295
  labShell.add(logo, 'top', { rank: 0 });
296
296
  },
297
297
  };
298
+ /**
299
+ * A plugin to trigger a refresh of the commands when the shell layout changes.
300
+ */
301
+ const notifyCommands = {
302
+ id: '@jupyterlite/application-extension:notify-commands',
303
+ autoStart: true,
304
+ optional: [ILabShell],
305
+ activate: (app, labShell) => {
306
+ if (labShell) {
307
+ labShell.layoutModified.connect(() => {
308
+ app.commands.notifyCommandChanged();
309
+ });
310
+ }
311
+ },
312
+ };
298
313
  /**
299
314
  * A custom opener plugin to pass the path to documents as
300
315
  * query string parameters.
@@ -404,6 +419,7 @@ const plugins = [
404
419
  docProviderPlugin,
405
420
  downloadPlugin,
406
421
  liteLogo,
422
+ notifyCommands,
407
423
  opener,
408
424
  shareFile,
409
425
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlite/application-extension",
3
- "version": "0.1.0-beta.0",
3
+ "version": "0.1.0-beta.3",
4
4
  "description": "JupyterLite - Application Extension",
5
5
  "homepage": "https://github.com/jupyterlite/jupyterlite",
6
6
  "bugs": {
@@ -37,20 +37,20 @@
37
37
  "watch": "tsc -b --watch"
38
38
  },
39
39
  "dependencies": {
40
- "@jupyterlab/application": "~3.2.9",
41
- "@jupyterlab/apputils": "~3.2.9",
42
- "@jupyterlab/docmanager": "~3.2.9",
43
- "@jupyterlab/docprovider": "~3.2.9",
44
- "@jupyterlab/filebrowser": "~3.2.9",
45
- "@jupyterlab/help-extension": "~3.2.9",
46
- "@jupyterlab/mainmenu": "~3.2.9",
47
- "@jupyterlab/services": "~6.2.9",
48
- "@jupyterlab/translation": "~3.2.9",
49
- "@jupyterlab/ui-components": "~3.2.9",
50
- "@jupyterlite/ui-components": "^0.1.0-beta.0",
51
- "@lumino/algorithm": "^1.6.0",
52
- "@lumino/coreutils": "^1.8.0",
53
- "@lumino/widgets": "^1.23.0",
40
+ "@jupyterlab/application": "~3.3.2",
41
+ "@jupyterlab/apputils": "~3.3.2",
42
+ "@jupyterlab/docmanager": "~3.3.2",
43
+ "@jupyterlab/docprovider": "~3.3.2",
44
+ "@jupyterlab/filebrowser": "~3.3.2",
45
+ "@jupyterlab/help-extension": "~3.3.2",
46
+ "@jupyterlab/mainmenu": "~3.3.2",
47
+ "@jupyterlab/services": "~6.3.2",
48
+ "@jupyterlab/translation": "~3.3.2",
49
+ "@jupyterlab/ui-components": "~3.3.2",
50
+ "@jupyterlite/ui-components": "^0.1.0-beta.3",
51
+ "@lumino/algorithm": "^1.9.1",
52
+ "@lumino/coreutils": "^1.12.0",
53
+ "@lumino/widgets": "^1.31.1",
54
54
  "y-webrtc": "^10.2.0"
55
55
  },
56
56
  "devDependencies": {