@jupyter/collaboration-extension 1.0.0-alpha.0 → 1.0.0-alpha.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 +2 -12
- package/package.json +15 -15
- package/style/index.css +1 -1
- package/style/index.js +1 -1
- package/style/base.css +0 -4
package/lib/collaboration.js
CHANGED
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
* @module collaboration-extension
|
|
6
6
|
*/
|
|
7
|
-
import { PageConfig } from '@jupyterlab/coreutils';
|
|
8
7
|
import { DOMUtils } from '@jupyterlab/apputils';
|
|
9
|
-
import {
|
|
8
|
+
import { CollaboratorsPanel, IGlobalAwareness, IUserMenu, RendererUserMenu, UserInfoPanel, UserMenu } from '@jupyter/collaboration';
|
|
10
9
|
import { SidePanel, usersIcon } from '@jupyterlab/ui-components';
|
|
11
10
|
import { MenuBar } from '@lumino/widgets';
|
|
12
11
|
import { URLExt } from '@jupyterlab/coreutils';
|
|
@@ -40,9 +39,6 @@ export const menuBarPlugin = {
|
|
|
40
39
|
activate: async (app, menu) => {
|
|
41
40
|
const { shell } = app;
|
|
42
41
|
const { user } = app.serviceManager;
|
|
43
|
-
if (PageConfig.getOption('collaborative') !== 'true') {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
42
|
const menuBar = new MenuBar({
|
|
47
43
|
forceItemsPosition: {
|
|
48
44
|
forceX: false,
|
|
@@ -67,9 +63,6 @@ export const rtcGlobalAwarenessPlugin = {
|
|
|
67
63
|
activate: (app, state) => {
|
|
68
64
|
const { user } = app.serviceManager;
|
|
69
65
|
const ydoc = new Y.Doc();
|
|
70
|
-
if (PageConfig.getOption('collaborative') !== 'true') {
|
|
71
|
-
return new AwarenessMock(ydoc);
|
|
72
|
-
}
|
|
73
66
|
const awareness = new Awareness(ydoc);
|
|
74
67
|
const server = ServerConnection.makeSettings();
|
|
75
68
|
const url = URLExt.join(server.wsUrl, 'api/yjs');
|
|
@@ -106,11 +99,8 @@ export const rtcPanelPlugin = {
|
|
|
106
99
|
autoStart: true,
|
|
107
100
|
requires: [IGlobalAwareness, ITranslator],
|
|
108
101
|
activate: (app, awareness, translator) => {
|
|
109
|
-
if (PageConfig.getOption('collaborative') !== 'true') {
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
102
|
const { user } = app.serviceManager;
|
|
113
|
-
const trans = translator.load('
|
|
103
|
+
const trans = translator.load('jupyter_collaboration');
|
|
114
104
|
const userPanel = new SidePanel();
|
|
115
105
|
userPanel.id = DOMUtils.createDomID();
|
|
116
106
|
userPanel.title.icon = usersIcon;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyter/collaboration-extension",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.1",
|
|
4
4
|
"description": "JupyterLab - Real-Time Collaboration Extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -52,27 +52,27 @@
|
|
|
52
52
|
"watch:labextension": "jupyter labextension watch ."
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@jupyter/collaboration": "^1.0.0-alpha.
|
|
56
|
-
"@jupyter/docprovider": "^1.0.0-alpha.
|
|
57
|
-
"@jupyterlab/application": "^4.0.0-alpha.
|
|
58
|
-
"@jupyterlab/apputils": "^4.0.0-alpha.
|
|
59
|
-
"@jupyterlab/coreutils": "^6.0.0-alpha.
|
|
60
|
-
"@jupyterlab/filebrowser": "^4.0.0-alpha.
|
|
61
|
-
"@jupyterlab/services": "^7.0.0-alpha.
|
|
62
|
-
"@jupyterlab/statedb": "^4.0.0-alpha.
|
|
63
|
-
"@jupyterlab/translation": "^4.0.0-alpha.
|
|
64
|
-
"@jupyterlab/ui-components": "^4.0.0-alpha.
|
|
65
|
-
"@lumino/commands": "^2.0.0-
|
|
66
|
-
"@lumino/widgets": "^2.0.0-
|
|
55
|
+
"@jupyter/collaboration": "^1.0.0-alpha.1",
|
|
56
|
+
"@jupyter/docprovider": "^1.0.0-alpha.1",
|
|
57
|
+
"@jupyterlab/application": "^4.0.0-alpha.19",
|
|
58
|
+
"@jupyterlab/apputils": "^4.0.0-alpha.19",
|
|
59
|
+
"@jupyterlab/coreutils": "^6.0.0-alpha.19",
|
|
60
|
+
"@jupyterlab/filebrowser": "^4.0.0-alpha.19",
|
|
61
|
+
"@jupyterlab/services": "^7.0.0-alpha.19",
|
|
62
|
+
"@jupyterlab/statedb": "^4.0.0-alpha.19",
|
|
63
|
+
"@jupyterlab/translation": "^4.0.0-alpha.19",
|
|
64
|
+
"@jupyterlab/ui-components": "^4.0.0-alpha.34",
|
|
65
|
+
"@lumino/commands": "^2.0.0-beta.1",
|
|
66
|
+
"@lumino/widgets": "^2.0.0-beta.1",
|
|
67
67
|
"y-protocols": "^1.0.5",
|
|
68
68
|
"y-websocket": "^1.3.15",
|
|
69
69
|
"yjs": "^13.5.40"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@jupyterlab/builder": "^4.0.0-alpha.
|
|
72
|
+
"@jupyterlab/builder": "^4.0.0-alpha.19",
|
|
73
73
|
"@types/react": "^18.0.27",
|
|
74
74
|
"npm-run-all": "^4.1.5",
|
|
75
|
-
"rimraf": "
|
|
75
|
+
"rimraf": "^4.1.2",
|
|
76
76
|
"typescript": "~4.7.3"
|
|
77
77
|
},
|
|
78
78
|
"publishConfig": {
|
package/style/index.css
CHANGED
package/style/index.js
CHANGED
package/style/base.css
DELETED