jupyterlab-chat 0.23.0-alpha.3 → 0.23.0

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.
package/lib/model.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { AbstractChatModel, AbstractChatContext, IChatContext, IChatModel, IMessageContent, INewMessage, IUser } from '@jupyter/chat';
2
+ import type { IAwareness } from '@jupyter/ydoc';
2
3
  import { IChangedArgs } from '@jupyterlab/coreutils';
3
4
  import { DocumentRegistry } from '@jupyterlab/docregistry';
4
5
  import { User } from '@jupyterlab/services';
@@ -52,6 +53,10 @@ export declare class LabChatModel extends AbstractChatModel implements DocumentR
52
53
  readonly collaborative = true;
53
54
  get user(): IUser;
54
55
  get sharedModel(): YChat;
56
+ /**
57
+ * The awareness channel of the shared model.
58
+ */
59
+ get awareness(): IAwareness;
55
60
  get contentChanged(): ISignal<this, void>;
56
61
  get stateChanged(): ISignal<this, IChangedArgs<any, any, string>>;
57
62
  get dirty(): boolean;
package/lib/model.js CHANGED
@@ -265,6 +265,12 @@ export class LabChatModel extends AbstractChatModel {
265
265
  get sharedModel() {
266
266
  return this._sharedModel;
267
267
  }
268
+ /**
269
+ * The awareness channel of the shared model.
270
+ */
271
+ get awareness() {
272
+ return this._sharedModel.awareness;
273
+ }
268
274
  get contentChanged() {
269
275
  return this._contentChanged;
270
276
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupyterlab-chat",
3
- "version": "0.23.0-alpha.3",
3
+ "version": "0.23.0",
4
4
  "description": "The library to build a chat based on shared document",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -42,7 +42,7 @@
42
42
  "watch:src": "tsc -w --sourceMap"
43
43
  },
44
44
  "dependencies": {
45
- "@jupyter/chat": "^0.23.0-alpha.3",
45
+ "@jupyter/chat": "^0.23.0",
46
46
  "@jupyter/collaborative-drive": "^4.4.0 || ^5.0.0-alpha.0",
47
47
  "@jupyter/ydoc": "^3.0.0 || ^4.0.0",
48
48
  "@jupyterlab/application": "^4.6.0",
package/src/model.ts CHANGED
@@ -14,6 +14,7 @@ import {
14
14
  INewMessage,
15
15
  IUser
16
16
  } from '@jupyter/chat';
17
+ import type { IAwareness } from '@jupyter/ydoc';
17
18
  import { IChangedArgs } from '@jupyterlab/coreutils';
18
19
  import { DocumentRegistry } from '@jupyterlab/docregistry';
19
20
  import { User } from '@jupyterlab/services';
@@ -132,6 +133,13 @@ export class LabChatModel
132
133
  return this._sharedModel;
133
134
  }
134
135
 
136
+ /**
137
+ * The awareness channel of the shared model.
138
+ */
139
+ get awareness(): IAwareness {
140
+ return this._sharedModel.awareness;
141
+ }
142
+
135
143
  get contentChanged(): ISignal<this, void> {
136
144
  return this._contentChanged;
137
145
  }