@jupyter/collaboration-extension 4.2.0 → 4.2.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/collaboration.js +3 -1
- package/package.json +4 -4
package/lib/collaboration.js
CHANGED
|
@@ -63,10 +63,11 @@ export const rtcGlobalAwarenessPlugin = {
|
|
|
63
63
|
requires: [IStateDB],
|
|
64
64
|
provides: IGlobalAwareness,
|
|
65
65
|
activate: (app, state) => {
|
|
66
|
+
var _a;
|
|
66
67
|
const { user } = app.serviceManager;
|
|
67
68
|
const ydoc = new Y.Doc();
|
|
68
69
|
const awareness = new Awareness(ydoc);
|
|
69
|
-
const server = ServerConnection.makeSettings();
|
|
70
|
+
const server = (_a = app.serviceManager.serverSettings) !== null && _a !== void 0 ? _a : ServerConnection.makeSettings();
|
|
70
71
|
const url = URLExt.join(server.wsUrl, 'api/collaboration/room');
|
|
71
72
|
new WebSocketAwarenessProvider({
|
|
72
73
|
url: url,
|
|
@@ -112,6 +113,7 @@ export const rtcPanelPlugin = {
|
|
|
112
113
|
app.shell.add(userPanel, 'left', { rank: 300 });
|
|
113
114
|
const currentUserPanel = new UserInfoPanel({
|
|
114
115
|
userManager: user,
|
|
116
|
+
serverSettings: app.serviceManager.serverSettings,
|
|
115
117
|
trans
|
|
116
118
|
});
|
|
117
119
|
currentUserPanel.title.label = trans.__('User info');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyter/collaboration-extension",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "JupyterLab - Real-Time Collaboration Extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"watch:labextension": "jupyter labextension watch ."
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@jupyter/collaboration": "^4.2.
|
|
57
|
-
"@jupyter/collaborative-drive": "^4.2.
|
|
58
|
-
"@jupyter/docprovider": "^4.2.
|
|
56
|
+
"@jupyter/collaboration": "^4.2.1",
|
|
57
|
+
"@jupyter/collaborative-drive": "^4.2.1",
|
|
58
|
+
"@jupyter/docprovider": "^4.2.1",
|
|
59
59
|
"@jupyter/ydoc": "^2.1.3 || ^3.0.0",
|
|
60
60
|
"@jupyterlab/application": "^4.5.0",
|
|
61
61
|
"@jupyterlab/apputils": "^4.5.0",
|