@jupyter/docprovider-extension 3.0.0-beta.8 → 3.0.0-rc.1
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/filebrowser.js +5 -4
- package/package.json +3 -3
package/lib/filebrowser.js
CHANGED
|
@@ -24,6 +24,9 @@ var CommandIDs;
|
|
|
24
24
|
CommandIDs.openPath = 'filebrowser:open-path';
|
|
25
25
|
})(CommandIDs || (CommandIDs = {}));
|
|
26
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.';
|
|
27
30
|
/**
|
|
28
31
|
* The default collaborative drive provider.
|
|
29
32
|
*/
|
|
@@ -201,8 +204,7 @@ export const logger = {
|
|
|
201
204
|
if (emission.level === 'WARNING') {
|
|
202
205
|
showDialog({
|
|
203
206
|
title: trans.__('Warning'),
|
|
204
|
-
body: trans.__(
|
|
205
|
-
\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),
|
|
206
208
|
buttons: [Dialog.okButton()]
|
|
207
209
|
});
|
|
208
210
|
}
|
|
@@ -238,8 +240,7 @@ export const logger = {
|
|
|
238
240
|
if (emission.level === 'WARNING') {
|
|
239
241
|
showDialog({
|
|
240
242
|
title: trans.__('Warning'),
|
|
241
|
-
body: trans.__(
|
|
242
|
-
\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),
|
|
243
244
|
buttons: [Dialog.warnButton({ label: trans.__('Ok') })]
|
|
244
245
|
});
|
|
245
246
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyter/docprovider-extension",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-rc.1",
|
|
4
4
|
"description": "JupyterLab - Collaborative Shared Models",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"watch:labextension": "jupyter labextension watch ."
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@jupyter/collaborative-drive": "^3.0.0-
|
|
57
|
-
"@jupyter/docprovider": "^3.0.0-
|
|
56
|
+
"@jupyter/collaborative-drive": "^3.0.0-rc.1",
|
|
57
|
+
"@jupyter/docprovider": "^3.0.0-rc.1",
|
|
58
58
|
"@jupyter/ydoc": "^2.0.0 || ^3.0.0-a3",
|
|
59
59
|
"@jupyterlab/application": "^4.2.0",
|
|
60
60
|
"@jupyterlab/apputils": "^4.2.0",
|