@jupyter/collaboration-extension 3.0.0-alpha.2 → 3.0.0-beta.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.
@@ -6,14 +6,14 @@
6
6
  */
7
7
  import { IToolbarWidgetRegistry } from '@jupyterlab/apputils';
8
8
  import { EditorExtensionRegistry, IEditorExtensionRegistry } from '@jupyterlab/codemirror';
9
- import { WebSocketAwarenessProvider } from '@jupyter/docprovider';
9
+ import { IGlobalAwareness, WebSocketAwarenessProvider } from '@jupyter/docprovider';
10
10
  import { SidePanel, usersIcon } from '@jupyterlab/ui-components';
11
11
  import { URLExt } from '@jupyterlab/coreutils';
12
12
  import { ServerConnection } from '@jupyterlab/services';
13
13
  import { IStateDB } from '@jupyterlab/statedb';
14
14
  import { ITranslator, nullTranslator } from '@jupyterlab/translation';
15
15
  import { MenuBar } from '@lumino/widgets';
16
- import { CollaboratorsPanel, IGlobalAwareness, IUserMenu, remoteUserCursors, RendererUserMenu, UserInfoPanel, UserMenu } from '@jupyter/collaboration';
16
+ import { CollaboratorsPanel, IUserMenu, remoteUserCursors, RendererUserMenu, UserInfoPanel, UserMenu } from '@jupyter/collaboration';
17
17
  import * as Y from 'yjs';
18
18
  import { Awareness } from 'y-protocols/awareness';
19
19
  /**
@@ -77,7 +77,7 @@ export const rtcGlobalAwarenessPlugin = {
77
77
  var _a, _b;
78
78
  const data = await state.toJSON();
79
79
  const current = ((_b = (_a = data['layout-restorer:data']) === null || _a === void 0 ? void 0 : _a.main) === null || _b === void 0 ? void 0 : _b.current) || '';
80
- if (current.startsWith('editor') || current.startsWith('notebook')) {
80
+ if (current.match(/^\w+:RTC:/)) {
81
81
  awareness.setLocalStateField('current', current);
82
82
  }
83
83
  else {
@@ -114,7 +114,7 @@ export const rtcPanelPlugin = {
114
114
  const fileopener = (path) => {
115
115
  void app.commands.execute('docmanager:open', { path });
116
116
  };
117
- const collaboratorsPanel = new CollaboratorsPanel(user, awareness, fileopener);
117
+ const collaboratorsPanel = new CollaboratorsPanel(user, awareness, fileopener, app.docRegistry);
118
118
  collaboratorsPanel.title.label = trans.__('Online Collaborators');
119
119
  userPanel.addWidget(collaboratorsPanel);
120
120
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyter/collaboration-extension",
3
- "version": "3.0.0-alpha.2",
3
+ "version": "3.0.0-beta.1",
4
4
  "description": "JupyterLab - Real-Time Collaboration Extension",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -53,8 +53,8 @@
53
53
  "watch:labextension": "jupyter labextension watch ."
54
54
  },
55
55
  "dependencies": {
56
- "@jupyter/collaboration": "^3.0.0-alpha.2",
57
- "@jupyter/docprovider": "^3.0.0-alpha.2",
56
+ "@jupyter/collaboration": "^3.0.0-beta.1",
57
+ "@jupyter/docprovider": "^3.0.0-beta.1",
58
58
  "@jupyter/ydoc": "^2.0.0",
59
59
  "@jupyterlab/application": "^4.2.0",
60
60
  "@jupyterlab/apputils": "^4.2.0",
@@ -71,7 +71,7 @@
71
71
  },
72
72
  "devDependencies": {
73
73
  "@jupyterlab/builder": "^4.0.5",
74
- "@types/react": "~18.0.26",
74
+ "@types/react": "~18.3.1",
75
75
  "npm-run-all": "^4.1.5",
76
76
  "rimraf": "^4.1.2",
77
77
  "typescript": "~5.0.4"