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 @@ -149,9 +149,14 @@ interface ISharedDocumentNoSource extends ISharedBase {
149149 addFork ( forkId : string ) : void ;
150150
151151 /**
152- * The document room ID
152+ * The document root room ID
153153 */
154- roomId : string ;
154+ rootRoomId : string ;
155+
156+ /**
157+ * The document current room ID
158+ */
159+ currentRoomId : string ;
155160}
156161
157162/**
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
@@ -249,7 +250,8 @@ export abstract class YDocument<T extends DocumentChange>
249250 private _isDisposed = false ;
250251 private _disposed = new Signal < this, void > ( this ) ;
251252 private _provider : IDocumentProvider ;
252- public roomId : string ;
253+ public rootRoomId : string ;
254+ public currentRoomId : string ;
253255}
254256
255257/**
@@ -266,8 +268,13 @@ export namespace YDocument {
266268 ydoc ?: Y . Doc ;
267269
268270 /**
269- * The document room ID, defaults to ''.
271+ * The document root room ID, defaults to ''.
270272 */
271- roomId ?: string ;
273+ rootRoomId ?: string ;
274+
275+ /**
276+ * The document current room ID, defaults to ''.
277+ */
278+ currentRoomId ?: string ;
272279 }
273280}
You can’t perform that action at this time.
0 commit comments