File tree Expand file tree Collapse file tree 4 files changed +2376
-1710
lines changed Expand file tree Collapse file tree 4 files changed +2376
-1710
lines changed Original file line number Diff line number Diff line change 41
41
"watch" : " tsc -b --watch"
42
42
},
43
43
"dependencies" : {
44
+ "@jupyterlab/application" : " ^4.0.0" ,
44
45
"@jupyterlab/nbformat" : " ^3.0.0 || ^4.0.0-alpha.21 || ^4.0.0" ,
45
46
"@lumino/coreutils" : " ^1.11.0 || ^2.0.0" ,
46
47
"@lumino/disposable" : " ^1.10.0 || ^2.0.0" ,
Original file line number Diff line number Diff line change @@ -149,9 +149,14 @@ export interface ISharedDocument extends ISharedBase {
149
149
addFork ( forkId : string ) : void ;
150
150
151
151
/**
152
- * The document room ID
152
+ * The document root room ID
153
153
*/
154
- roomId : string ;
154
+ rootRoomId : string ;
155
+
156
+ /**
157
+ * The document current room ID
158
+ */
159
+ currentRoomId : string ;
155
160
}
156
161
157
162
/**
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ export abstract class YDocument<T extends DocumentChange>
17
17
{
18
18
constructor ( options ?: YDocument . IOptions ) {
19
19
this . _ydoc = options ?. ydoc ?? new Y . Doc ( ) ;
20
- this . roomId = options ?. roomId ?? '' ;
20
+ this . rootRoomId = options ?. rootRoomId ?? '' ;
21
+ this . currentRoomId = options ?. currentRoomId ?? ''
21
22
22
23
this . _ystate = this . _ydoc . getMap ( 'state' ) ;
23
24
@@ -217,7 +218,8 @@ export abstract class YDocument<T extends DocumentChange>
217
218
private _isDisposed = false ;
218
219
private _disposed = new Signal < this, void > ( this ) ;
219
220
private _provider : IDocumentProvider ;
220
- public roomId : string ;
221
+ public rootRoomId : string ;
222
+ public currentRoomId : string ;
221
223
}
222
224
223
225
/**
@@ -234,8 +236,13 @@ export namespace YDocument {
234
236
ydoc ?: Y . Doc ;
235
237
236
238
/**
237
- * The document room ID, defaults to ''.
239
+ * The document root room ID, defaults to ''.
238
240
*/
239
- roomId ?: string ;
241
+ rootRoomId ?: string ;
242
+
243
+ /**
244
+ * The document current room ID, defaults to ''.
245
+ */
246
+ currentRoomId ?: string ;
240
247
}
241
248
}
You can’t perform that action at this time.
0 commit comments