@jupyter/docprovider-extension 4.0.0-alpha.0 → 4.0.0-beta.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.
- package/lib/filebrowser.js +2 -7
- package/package.json +3 -3
package/lib/filebrowser.js
CHANGED
|
@@ -156,15 +156,10 @@ export const statusBarTimeline = {
|
|
|
156
156
|
align: 'left',
|
|
157
157
|
rank: 4,
|
|
158
158
|
isActive: () => {
|
|
159
|
+
var _a, _b;
|
|
159
160
|
const currentWidget = app.shell
|
|
160
161
|
.currentWidget;
|
|
161
|
-
|
|
162
|
-
currentWidget.context &&
|
|
163
|
-
typeof currentWidget.context.path === 'string') {
|
|
164
|
-
const documentId = currentWidget.context.model.sharedModel.getState('document_id');
|
|
165
|
-
return (!!documentId && !!currentWidget.context.model.collaborative);
|
|
166
|
-
}
|
|
167
|
-
return false;
|
|
162
|
+
return ((_b = (_a = currentWidget === null || currentWidget === void 0 ? void 0 : currentWidget.context) === null || _a === void 0 ? void 0 : _a.model) === null || _b === void 0 ? void 0 : _b.collaborative) || false;
|
|
168
163
|
}
|
|
169
164
|
});
|
|
170
165
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyter/docprovider-extension",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-beta.0",
|
|
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": "^4.0.0-
|
|
57
|
-
"@jupyter/docprovider": "^4.0.0-
|
|
56
|
+
"@jupyter/collaborative-drive": "^4.0.0-beta.0",
|
|
57
|
+
"@jupyter/docprovider": "^4.0.0-beta.0",
|
|
58
58
|
"@jupyter/ydoc": "^2.1.3 || ^3.0.0",
|
|
59
59
|
"@jupyterlab/application": "^4.4.0-alpha.2",
|
|
60
60
|
"@jupyterlab/apputils": "^4.4.0-alpha.2",
|