@jupyter/docprovider-extension 4.0.0-alpha.0 → 4.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.
Files changed (2) hide show
  1. package/lib/filebrowser.js +2 -7
  2. package/package.json +14 -14
@@ -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
- if (currentWidget &&
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-alpha.0",
3
+ "version": "4.0.0-rc.0",
4
4
  "description": "JupyterLab - Collaborative Shared Models",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -53,25 +53,25 @@
53
53
  "watch:labextension": "jupyter labextension watch ."
54
54
  },
55
55
  "dependencies": {
56
- "@jupyter/collaborative-drive": "^4.0.0-alpha.0",
57
- "@jupyter/docprovider": "^4.0.0-alpha.0",
56
+ "@jupyter/collaborative-drive": "^4.0.0-rc.0",
57
+ "@jupyter/docprovider": "^4.0.0-rc.0",
58
58
  "@jupyter/ydoc": "^2.1.3 || ^3.0.0",
59
- "@jupyterlab/application": "^4.4.0-alpha.2",
60
- "@jupyterlab/apputils": "^4.4.0-alpha.2",
61
- "@jupyterlab/docregistry": "^4.4.0-alpha.2",
62
- "@jupyterlab/filebrowser": "^4.4.0-alpha.2",
63
- "@jupyterlab/fileeditor": "^4.4.0-alpha.2",
64
- "@jupyterlab/logconsole": "^4.4.0-alpha.2",
65
- "@jupyterlab/notebook": "^4.4.0-alpha.2",
66
- "@jupyterlab/settingregistry": "^4.4.0-alpha.2",
67
- "@jupyterlab/translation": "^4.4.0-alpha.2",
68
- "@lumino/commands": "^2.1.0",
59
+ "@jupyterlab/application": "^4.4.0",
60
+ "@jupyterlab/apputils": "^4.4.0",
61
+ "@jupyterlab/docregistry": "^4.4.0",
62
+ "@jupyterlab/filebrowser": "^4.4.0",
63
+ "@jupyterlab/fileeditor": "^4.4.0",
64
+ "@jupyterlab/logconsole": "^4.4.0",
65
+ "@jupyterlab/notebook": "^4.4.0",
66
+ "@jupyterlab/settingregistry": "^4.4.0",
67
+ "@jupyterlab/translation": "^4.4.0",
68
+ "@lumino/commands": "^2.3.2",
69
69
  "y-protocols": "^1.0.5",
70
70
  "y-websocket": "^1.3.15",
71
71
  "yjs": "^13.5.40"
72
72
  },
73
73
  "devDependencies": {
74
- "@jupyterlab/builder": "^4.4.0-alpha.2",
74
+ "@jupyterlab/builder": "^4.4.0",
75
75
  "@types/react": "~18.3.1",
76
76
  "npm-run-all": "^4.1.5",
77
77
  "rimraf": "^4.1.2",