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 4141 "watch" : " tsc -b --watch"
4242 },
4343 "dependencies" : {
44+ "@jupyterlab/application" : " ^4.0.0" ,
4445 "@jupyterlab/nbformat" : " ^3.0.0 || ^4.0.0-alpha.21 || ^4.0.0" ,
4546 "@lumino/coreutils" : " ^1.11.0 || ^2.0.0" ,
4647 "@lumino/disposable" : " ^1.10.0 || ^2.0.0" ,
Original file line number Diff line number Diff line change @@ -148,9 +148,14 @@ export interface ISharedDocument extends ISharedBase {
148148 addFork ( forkId : string ) : void ;
149149
150150 /**
151- * The document room ID
151+ * The document root room ID
152152 */
153- roomId : string ;
153+ rootRoomId : string ;
154+
155+ /**
156+ * The document current room ID
157+ */
158+ currentRoomId : string ;
154159}
155160
156161/**
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ export abstract class YDocument<T extends DocumentChange>
1717{
1818 constructor ( options ?: YDocument . IOptions ) {
1919 this . _ydoc = options ?. ydoc ?? new Y . Doc ( ) ;
20- this . roomId = options ?. roomId ?? '' ;
20+ this . rootRoomId = options ?. rootRoomId ?? '' ;
21+ this . currentRoomId = options ?. currentRoomId ?? ''
2122
2223 this . _ystate = this . _ydoc . getMap ( 'state' ) ;
2324
@@ -217,7 +218,8 @@ export abstract class YDocument<T extends DocumentChange>
217218 private _isDisposed = false ;
218219 private _disposed = new Signal < this, void > ( this ) ;
219220 private _provider : IDocumentProvider ;
220- public roomId : string ;
221+ public rootRoomId : string ;
222+ public currentRoomId : string ;
221223}
222224
223225/**
@@ -234,8 +236,13 @@ export namespace YDocument {
234236 ydoc ?: Y . Doc ;
235237
236238 /**
237- * The document room ID, defaults to ''.
239+ * The document root room ID, defaults to ''.
238240 */
239- roomId ?: string ;
241+ rootRoomId ?: string ;
242+
243+ /**
244+ * The document current room ID, defaults to ''.
245+ */
246+ currentRoomId ?: string ;
240247 }
241248}
You can’t perform that action at this time.
0 commit comments