@jupyter/docprovider-extension 3.0.0-beta.6 → 3.0.0-rc.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.
@@ -1,6 +1,6 @@
1
1
  import { JupyterFrontEndPlugin } from '@jupyterlab/application';
2
2
  import { IDefaultFileBrowser } from '@jupyterlab/filebrowser';
3
- import { ICollaborativeDrive } from '@jupyter/docprovider';
3
+ import { ICollaborativeDrive } from '@jupyter/collaborative-drive';
4
4
  /**
5
5
  * The default collaborative drive provider.
6
6
  */
@@ -13,7 +13,8 @@ import { INotebookTracker } from '@jupyterlab/notebook';
13
13
  import { ISettingRegistry } from '@jupyterlab/settingregistry';
14
14
  import { ITranslator, nullTranslator } from '@jupyterlab/translation';
15
15
  import { YFile, YNotebook } from '@jupyter/ydoc';
16
- import { ICollaborativeDrive, IGlobalAwareness, TimelineWidget, YDrive } from '@jupyter/docprovider';
16
+ import { ICollaborativeDrive, IGlobalAwareness } from '@jupyter/collaborative-drive';
17
+ import { TimelineWidget, YDrive } from '@jupyter/docprovider';
17
18
  import { URLExt } from '@jupyterlab/coreutils';
18
19
  /**
19
20
  * The command IDs used by the file browser plugin.
@@ -23,6 +24,9 @@ var CommandIDs;
23
24
  CommandIDs.openPath = 'filebrowser:open-path';
24
25
  })(CommandIDs || (CommandIDs = {}));
25
26
  const DOCUMENT_TIMELINE_URL = 'api/collaboration/timeline';
27
+ const TWO_SESSIONS_WARNING = 'The file %1 has been opened with two different views. ' +
28
+ 'This is not supported. Please close this view; otherwise, ' +
29
+ 'some of your edits may not be saved properly.';
26
30
  /**
27
31
  * The default collaborative drive provider.
28
32
  */
@@ -200,8 +204,7 @@ export const logger = {
200
204
  if (emission.level === 'WARNING') {
201
205
  showDialog({
202
206
  title: trans.__('Warning'),
203
- body: trans.__(`Two collaborative sessions are accessing the file ${emission.path} simultaneously.
204
- \nOpening the same file using different views simultaneously is not supported. Please, close one view; otherwise, you might lose some of your progress.`),
207
+ body: trans.__(TWO_SESSIONS_WARNING, emission.path),
205
208
  buttons: [Dialog.okButton()]
206
209
  });
207
210
  }
@@ -237,8 +240,7 @@ export const logger = {
237
240
  if (emission.level === 'WARNING') {
238
241
  showDialog({
239
242
  title: trans.__('Warning'),
240
- body: trans.__(`Two collaborative sessions are accessing the file %1 simultaneously.
241
- \nOpening a document with multiple views simultaneously is not supported. Please close one view; otherwise, you might lose some of your progress.`, emission.path),
243
+ body: trans.__(TWO_SESSIONS_WARNING, emission.path),
242
244
  buttons: [Dialog.warnButton({ label: trans.__('Ok') })]
243
245
  });
244
246
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyter/docprovider-extension",
3
- "version": "3.0.0-beta.6",
3
+ "version": "3.0.0-rc.0",
4
4
  "description": "JupyterLab - Collaborative Shared Models",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -53,7 +53,8 @@
53
53
  "watch:labextension": "jupyter labextension watch ."
54
54
  },
55
55
  "dependencies": {
56
- "@jupyter/docprovider": "^3.0.0-beta.6",
56
+ "@jupyter/collaborative-drive": "^3.0.0-rc.0",
57
+ "@jupyter/docprovider": "^3.0.0-rc.0",
57
58
  "@jupyter/ydoc": "^2.0.0 || ^3.0.0-a3",
58
59
  "@jupyterlab/application": "^4.2.0",
59
60
  "@jupyterlab/apputils": "^4.2.0",
@@ -105,6 +106,10 @@
105
106
  "bundled": false,
106
107
  "singleton": true
107
108
  },
109
+ "@jupyter/collaborative-drive": {
110
+ "bundled": true,
111
+ "singleton": true
112
+ },
108
113
  "@jupyter/docprovider": {
109
114
  "bundled": true,
110
115
  "singleton": true