Skip to content

Commit 3c7b088

Browse files
committed
Include the users item widget to the collaborative chat toolbar
1 parent a479ded commit 3c7b088

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

packages/jupyterlab-collaborative-chat/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
},
5353
"dependencies": {
5454
"@jupyter/chat": "^0.5.0",
55-
"@jupyter/docprovider": "^2.1.4",
56-
"@jupyter/ydoc": "^1.1.1",
55+
"@jupyter/docprovider": "^2.1.5",
56+
"@jupyter/ydoc": "^2.1.3",
5757
"@jupyterlab/application": "^4.2.0",
5858
"@jupyterlab/apputils": "^4.3.0",
5959
"@jupyterlab/coreutils": "^6.2.0",

python/jupyterlab-collaborative-chat/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@
5757
"watch:labextension": "jupyter labextension watch ."
5858
},
5959
"dependencies": {
60-
"@jupyter/docprovider": "^2.1.4",
61-
"@jupyter/ydoc": "^1.1.1",
60+
"@jupyter/collaboration": "^2.1.5",
61+
"@jupyter/docprovider": "^2.1.5",
62+
"@jupyter/ydoc": "^2.1.3",
6263
"@jupyterlab/application": "^4.2.0",
6364
"@jupyterlab/apputils": "^4.3.0",
6465
"@jupyterlab/coreutils": "^6.2.0",

python/jupyterlab-collaborative-chat/schema/chat-panel.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
{
1212
"name": "markAsRead",
1313
"command": "collaborative-chat:markAsRead"
14-
}
14+
},
15+
{ "name": "spacer", "type": "spacer", "rank": 100 },
16+
{ "name": "usersItem", "rank": 150 }
1517
]
1618
},
1719
"properties": {},

python/jupyterlab-collaborative-chat/src/index.ts

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
chatIcon,
1414
readIcon
1515
} from '@jupyter/chat';
16+
import { UsersItem } from '@jupyter/collaboration';
1617
import {
1718
ICollaborativeDrive,
1819
SharedDocumentFactory
@@ -214,6 +215,11 @@ const docFactories: JupyterFrontEndPlugin<IChatFactory> = {
214215
pluginIds.docFactories,
215216
translator
216217
);
218+
toolbarRegistry.addFactory<CollaborativeChatPanel>(
219+
FACTORY,
220+
'usersItem',
221+
panel => UsersItem.createWidget({ model: panel.model })
222+
);
217223
}
218224

219225
// Wait for the application to be restored and

python/jupyterlab-collaborative-chat/style/base.css

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
*/
1111

1212
@import url('~jupyterlab-collaborative-chat/style/index.css');
13+
@import url('@jupyter/collaboration/style/index.css');

0 commit comments

Comments
 (0)