@jupytergis/jupytergis-qgis 0.6.2 → 0.7.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.
Files changed (2) hide show
  1. package/lib/plugins.js +14 -3
  2. package/package.json +4 -4
package/lib/plugins.js CHANGED
@@ -1,13 +1,14 @@
1
1
  import { ICollaborativeDrive, } from '@jupyter/collaborative-drive';
2
2
  import { logoMiniIcon, logoMiniIconQGZ, requestAPI, } from '@jupytergis/base';
3
3
  import { JupyterGISDocumentWidgetFactory } from '@jupytergis/jupytergis-core';
4
- import { IJGISExternalCommandRegistryToken, JupyterGISDoc, IJupyterGISDocTracker, IAnnotationToken, } from '@jupytergis/schema';
4
+ import { IJGISExternalCommandRegistryToken, JupyterGISDoc, IJupyterGISDocTracker, IAnnotationToken, IJGISFormSchemaRegistryToken, } from '@jupytergis/schema';
5
5
  import { Dialog, ICommandPalette, IThemeManager, InputDialog, showDialog, showErrorMessage, } from '@jupyterlab/apputils';
6
6
  import { IEditorServices } from '@jupyterlab/codeeditor';
7
7
  import { ConsolePanel, IConsoleTracker } from '@jupyterlab/console';
8
8
  import { PathExt } from '@jupyterlab/coreutils';
9
9
  import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
10
10
  import { ISettingRegistry } from '@jupyterlab/settingregistry';
11
+ import { IStateDB } from '@jupyterlab/statedb';
11
12
  import { Widget } from '@lumino/widgets';
12
13
  import { QGSModelFactory, QGZModelFactory } from './modelfactory';
13
14
  /**
@@ -17,7 +18,7 @@ var CommandIDs;
17
18
  (function (CommandIDs) {
18
19
  CommandIDs.exportQgis = 'jupytergis:export';
19
20
  })(CommandIDs || (CommandIDs = {}));
20
- const activate = async (app, tracker, themeManager, drive, externalCommandRegistry, contentFactory, editorServices, rendermime, consoleTracker, annotationModel, settingRegistry, commandPalette) => {
21
+ const activate = async (app, tracker, themeManager, drive, externalCommandRegistry, contentFactory, editorServices, rendermime, consoleTracker, annotationModel, settingRegistry, formSchemaRegistry, state, commandPalette) => {
21
22
  const fcCheck = await requestAPI('jupytergis_qgis/backend-check', {
22
23
  method: 'POST',
23
24
  body: JSON.stringify({}),
@@ -43,6 +44,9 @@ const activate = async (app, tracker, themeManager, drive, externalCommandRegist
43
44
  rendermime,
44
45
  mimeTypeService: editorServices.mimeTypeService,
45
46
  consoleTracker,
47
+ formSchemaRegistry,
48
+ state,
49
+ annotationModel,
46
50
  });
47
51
  const QGZWidgetFactory = new JupyterGISDocumentWidgetFactory({
48
52
  name: 'JupyterGIS QGZ Factory',
@@ -58,6 +62,9 @@ const activate = async (app, tracker, themeManager, drive, externalCommandRegist
58
62
  rendermime,
59
63
  mimeTypeService: editorServices.mimeTypeService,
60
64
  consoleTracker,
65
+ formSchemaRegistry,
66
+ state,
67
+ annotationModel,
61
68
  });
62
69
  // Registering the widget factory
63
70
  app.docRegistry.addWidgetFactory(QGSWidgetFactory);
@@ -183,7 +190,9 @@ const activate = async (app, tracker, themeManager, drive, externalCommandRegist
183
190
  else if (response.logs.warnings.length) {
184
191
  const bodyElement = document.createElement('pre');
185
192
  bodyElement.textContent = `${filepath} has been exported with warnings\n - ${response.logs.warnings.join('\n - ')}`;
186
- const body = new Widget({ node: bodyElement });
193
+ const body = new Widget({
194
+ node: bodyElement,
195
+ });
187
196
  await showDialog({
188
197
  title: 'Export the project to QGZ file',
189
198
  body,
@@ -214,6 +223,8 @@ export const qgisplugin = {
214
223
  IConsoleTracker,
215
224
  IAnnotationToken,
216
225
  ISettingRegistry,
226
+ IJGISFormSchemaRegistryToken,
227
+ IStateDB,
217
228
  ],
218
229
  optional: [ICommandPalette],
219
230
  autoStart: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupytergis/jupytergis-qgis",
3
- "version": "0.6.2",
3
+ "version": "0.7.0",
4
4
  "description": "JupyterGIS QGIS extension.",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -54,9 +54,9 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@jupyter/collaborative-drive": "^3.0.0",
57
- "@jupytergis/base": "^0.6.2",
58
- "@jupytergis/jupytergis-core": "^0.6.2",
59
- "@jupytergis/schema": "^0.6.2",
57
+ "@jupytergis/base": "^0.7.0",
58
+ "@jupytergis/jupytergis-core": "^0.7.0",
59
+ "@jupytergis/schema": "^0.7.0",
60
60
  "@jupyterlab/application": "^4.3.0",
61
61
  "@jupyterlab/apputils": "^4.3.0",
62
62
  "@jupyterlab/coreutils": "^6.3.0",