jupyterlab-chat 0.18.2 → 0.19.0-alpha.1

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/factory.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IAttachmentOpenerRegistry, IChatCommandRegistry, IInputToolbarRegistry, IMessageFooterRegistry, IInputToolbarRegistryFactory } from '@jupyter/chat';
1
+ import { ChatArea, IAttachmentOpenerRegistry, IChatCommandRegistry, IInputToolbarRegistry, IMessageFooterRegistry, IInputToolbarRegistryFactory } from '@jupyter/chat';
2
2
  import { IThemeManager } from '@jupyterlab/apputils';
3
3
  import { IDocumentManager } from '@jupyterlab/docmanager';
4
4
  import { ABCWidgetFactory, DocumentRegistry } from '@jupyterlab/docregistry';
@@ -73,6 +73,7 @@ export declare namespace ChatWidgetFactory {
73
73
  inputToolbarRegistry?: IInputToolbarRegistry;
74
74
  messageFooterRegistry?: IMessageFooterRegistry;
75
75
  welcomeMessage?: string;
76
+ area?: ChatArea;
76
77
  }
77
78
  interface IOptions<T extends LabChatPanel> extends DocumentRegistry.IWidgetFactoryOptions<T> {
78
79
  themeManager: IThemeManager | null;
package/lib/factory.js CHANGED
@@ -69,6 +69,7 @@ export class ChatWidgetFactory extends ABCWidgetFactory {
69
69
  context.attachmentOpenerRegistry = this._attachmentOpenerRegistry;
70
70
  context.messageFooterRegistry = this._messageFooterRegistry;
71
71
  context.welcomeMessage = this._welcomeMessage;
72
+ context.area = 'main';
72
73
  if (this._inputToolbarFactory) {
73
74
  context.inputToolbarRegistry = this._inputToolbarFactory.create();
74
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupyterlab-chat",
3
- "version": "0.18.2",
3
+ "version": "0.19.0-alpha.1",
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.18.2",
45
+ "@jupyter/chat": "^0.19.0-alpha.1",
46
46
  "@jupyter/collaborative-drive": "^4.0.2",
47
47
  "@jupyter/ydoc": "^2.0.0 || ^3.0.0",
48
48
  "@jupyterlab/application": "^4.2.0",
package/src/factory.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  */
5
5
 
6
6
  import {
7
+ ChatArea,
7
8
  ChatWidget,
8
9
  IActiveCellManager,
9
10
  IAttachmentOpenerRegistry,
@@ -99,6 +100,7 @@ export class ChatWidgetFactory extends ABCWidgetFactory<
99
100
  context.attachmentOpenerRegistry = this._attachmentOpenerRegistry;
100
101
  context.messageFooterRegistry = this._messageFooterRegistry;
101
102
  context.welcomeMessage = this._welcomeMessage;
103
+ context.area = 'main';
102
104
  if (this._inputToolbarFactory) {
103
105
  context.inputToolbarRegistry = this._inputToolbarFactory.create();
104
106
  }
@@ -137,6 +139,7 @@ export namespace ChatWidgetFactory {
137
139
  inputToolbarRegistry?: IInputToolbarRegistry;
138
140
  messageFooterRegistry?: IMessageFooterRegistry;
139
141
  welcomeMessage?: string;
142
+ area?: ChatArea;
140
143
  }
141
144
 
142
145
  export interface IOptions<T extends LabChatPanel>