@jupytergis/jupytergis-core 0.6.0 → 0.6.2

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.
@@ -98,7 +98,7 @@ const activate = async (app, tracker, themeManager, browserFactory, externalComm
98
98
  });
99
99
  });
100
100
  app.commands.addCommand(CommandIDs.createNew, {
101
- label: args => 'GIS File',
101
+ label: args => { var _a; return (_a = args['label']) !== null && _a !== void 0 ? _a : 'GIS Project'; },
102
102
  caption: 'Create a new JGIS Editor',
103
103
  icon: args => logoIcon,
104
104
  execute: async (args) => {
@@ -169,6 +169,13 @@ const activate = async (app, tracker, themeManager, browserFactory, externalComm
169
169
  });
170
170
  }
171
171
  }
172
+ // Inject “New JupyterGIS file” into the File Browser context menu
173
+ app.contextMenu.addItem({
174
+ command: CommandIDs.createNew,
175
+ selector: '.jp-DirListing',
176
+ rank: 55,
177
+ args: { label: 'New JupyterGIS Project' },
178
+ });
172
179
  };
173
180
  const jGISPlugin = {
174
181
  id: 'jupyterGIS:jGISplugin',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupytergis/jupytergis-core",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "JupyterGIS core extension",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -54,8 +54,8 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@jupyter/collaborative-drive": "^3.0.0",
57
- "@jupytergis/base": "^0.6.0",
58
- "@jupytergis/schema": "^0.6.0",
57
+ "@jupytergis/base": "^0.6.2",
58
+ "@jupytergis/schema": "^0.6.2",
59
59
  "@jupyterlab/application": "^4.3.0",
60
60
  "@jupyterlab/apputils": "^4.3.0",
61
61
  "@jupyterlab/docregistry": "^4.3.0",
package/style/base.css CHANGED
@@ -3,3 +3,7 @@
3
3
 
4
4
  https://jupyterlab.readthedocs.io/en/stable/developer/css.html
5
5
  */
6
+
7
+ jp-toolbar.jpcad-toolbar-widget .jp-MenuBar-anonymousIcon {
8
+ position: unset !important;
9
+ }