jupyterlab-chat 0.10.0 → 0.11.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/factory.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IAttachmentOpenerRegistry, IChatCommandRegistry, IInputToolbarRegistry } from '@jupyter/chat';
1
+ import { IAttachmentOpenerRegistry, IChatCommandRegistry, IInputToolbarRegistry, IMessageFooterRegistry } 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';
@@ -53,6 +53,7 @@ export declare class ChatWidgetFactory extends ABCWidgetFactory<LabChatPanel, La
53
53
  private _chatCommandRegistry?;
54
54
  private _attachmentOpenerRegistry?;
55
55
  private _inputToolbarFactory?;
56
+ private _messageFooterRegistry?;
56
57
  }
57
58
  export declare namespace ChatWidgetFactory {
58
59
  interface IContext extends DocumentRegistry.IContext<LabChatModel> {
@@ -62,6 +63,7 @@ export declare namespace ChatWidgetFactory {
62
63
  chatCommandRegistry?: IChatCommandRegistry;
63
64
  attachmentOpenerRegistry?: IAttachmentOpenerRegistry;
64
65
  inputToolbarRegistry?: IInputToolbarRegistry;
66
+ messageFooterRegistry?: IMessageFooterRegistry;
65
67
  }
66
68
  interface IOptions<T extends LabChatPanel> extends DocumentRegistry.IWidgetFactoryOptions<T> {
67
69
  themeManager: IThemeManager | null;
@@ -69,6 +71,7 @@ export declare namespace ChatWidgetFactory {
69
71
  chatCommandRegistry?: IChatCommandRegistry;
70
72
  attachmentOpenerRegistry?: IAttachmentOpenerRegistry;
71
73
  inputToolbarFactory?: IInputToolbarRegistryFactory;
74
+ messageFooterRegistry?: IMessageFooterRegistry;
72
75
  }
73
76
  }
74
77
  export declare class LabChatModelFactory implements DocumentRegistry.IModelFactory<LabChatModel> {
package/lib/factory.js CHANGED
@@ -53,6 +53,7 @@ export class ChatWidgetFactory extends ABCWidgetFactory {
53
53
  this._chatCommandRegistry = options.chatCommandRegistry;
54
54
  this._attachmentOpenerRegistry = options.attachmentOpenerRegistry;
55
55
  this._inputToolbarFactory = options.inputToolbarFactory;
56
+ this._messageFooterRegistry = options.messageFooterRegistry;
56
57
  }
57
58
  /**
58
59
  * Create a new widget given a context.
@@ -65,6 +66,7 @@ export class ChatWidgetFactory extends ABCWidgetFactory {
65
66
  context.themeManager = this._themeManager;
66
67
  context.chatCommandRegistry = this._chatCommandRegistry;
67
68
  context.attachmentOpenerRegistry = this._attachmentOpenerRegistry;
69
+ context.messageFooterRegistry = this._messageFooterRegistry;
68
70
  if (this._inputToolbarFactory) {
69
71
  context.inputToolbarRegistry = this._inputToolbarFactory.create();
70
72
  }
package/lib/widget.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ChatWidget, IAttachmentOpenerRegistry, IChatCommandRegistry, IChatModel } from '@jupyter/chat';
1
+ import { ChatWidget, IAttachmentOpenerRegistry, IChatCommandRegistry, IChatModel, IMessageFooterRegistry } from '@jupyter/chat';
2
2
  import { ICollaborativeDrive } from '@jupyter/collaborative-drive';
3
3
  import { IThemeManager } from '@jupyterlab/apputils';
4
4
  import { DocumentWidget } from '@jupyterlab/docregistry';
@@ -91,6 +91,7 @@ export declare class ChatPanel extends SidePanel {
91
91
  private _chatCommandRegistry?;
92
92
  private _attachmentOpenerRegistry?;
93
93
  private _inputToolbarFactory?;
94
+ private _messageFooterRegistry?;
94
95
  }
95
96
  /**
96
97
  * The chat panel namespace.
@@ -108,6 +109,7 @@ export declare namespace ChatPanel {
108
109
  chatCommandRegistry?: IChatCommandRegistry;
109
110
  attachmentOpenerRegistry?: IAttachmentOpenerRegistry;
110
111
  inputToolbarFactory?: IInputToolbarRegistryFactory;
112
+ messageFooterRegistry?: IMessageFooterRegistry;
111
113
  }
112
114
  }
113
115
  /**
package/lib/widget.js CHANGED
@@ -108,6 +108,7 @@ export class ChatPanel extends SidePanel {
108
108
  this._chatCommandRegistry = options.chatCommandRegistry;
109
109
  this._attachmentOpenerRegistry = options.attachmentOpenerRegistry;
110
110
  this._inputToolbarFactory = options.inputToolbarFactory;
111
+ this._messageFooterRegistry = options.messageFooterRegistry;
111
112
  const addChat = new CommandToolbarButton({
112
113
  commands: this._commands,
113
114
  id: CommandIDs.createChat,
@@ -164,7 +165,8 @@ export class ChatPanel extends SidePanel {
164
165
  themeManager: this._themeManager,
165
166
  chatCommandRegistry: this._chatCommandRegistry,
166
167
  attachmentOpenerRegistry: this._attachmentOpenerRegistry,
167
- inputToolbarRegistry
168
+ inputToolbarRegistry,
169
+ messageFooterRegistry: this._messageFooterRegistry
168
170
  });
169
171
  this.addWidget(new ChatSection({
170
172
  widget,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupyterlab-chat",
3
- "version": "0.10.0",
3
+ "version": "0.11.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.10.0",
45
+ "@jupyter/chat": "^0.11.0",
46
46
  "@jupyter/collaborative-drive": "^3.0.0",
47
47
  "@jupyter/ydoc": "^2.0.0 || ^3.0.0",
48
48
  "@jupyterlab/application": "^4.2.0",
package/src/factory.ts CHANGED
@@ -9,6 +9,7 @@ import {
9
9
  IAttachmentOpenerRegistry,
10
10
  IChatCommandRegistry,
11
11
  IInputToolbarRegistry,
12
+ IMessageFooterRegistry,
12
13
  ISelectionWatcher
13
14
  } from '@jupyter/chat';
14
15
  import { IThemeManager } from '@jupyterlab/apputils';
@@ -84,6 +85,7 @@ export class ChatWidgetFactory extends ABCWidgetFactory<
84
85
  this._chatCommandRegistry = options.chatCommandRegistry;
85
86
  this._attachmentOpenerRegistry = options.attachmentOpenerRegistry;
86
87
  this._inputToolbarFactory = options.inputToolbarFactory;
88
+ this._messageFooterRegistry = options.messageFooterRegistry;
87
89
  }
88
90
 
89
91
  /**
@@ -97,6 +99,7 @@ export class ChatWidgetFactory extends ABCWidgetFactory<
97
99
  context.themeManager = this._themeManager;
98
100
  context.chatCommandRegistry = this._chatCommandRegistry;
99
101
  context.attachmentOpenerRegistry = this._attachmentOpenerRegistry;
102
+ context.messageFooterRegistry = this._messageFooterRegistry;
100
103
  if (this._inputToolbarFactory) {
101
104
  context.inputToolbarRegistry = this._inputToolbarFactory.create();
102
105
  }
@@ -111,6 +114,7 @@ export class ChatWidgetFactory extends ABCWidgetFactory<
111
114
  private _chatCommandRegistry?: IChatCommandRegistry;
112
115
  private _attachmentOpenerRegistry?: IAttachmentOpenerRegistry;
113
116
  private _inputToolbarFactory?: IInputToolbarRegistryFactory;
117
+ private _messageFooterRegistry?: IMessageFooterRegistry;
114
118
  }
115
119
 
116
120
  export namespace ChatWidgetFactory {
@@ -121,6 +125,7 @@ export namespace ChatWidgetFactory {
121
125
  chatCommandRegistry?: IChatCommandRegistry;
122
126
  attachmentOpenerRegistry?: IAttachmentOpenerRegistry;
123
127
  inputToolbarRegistry?: IInputToolbarRegistry;
128
+ messageFooterRegistry?: IMessageFooterRegistry;
124
129
  }
125
130
 
126
131
  export interface IOptions<T extends LabChatPanel>
@@ -130,6 +135,7 @@ export namespace ChatWidgetFactory {
130
135
  chatCommandRegistry?: IChatCommandRegistry;
131
136
  attachmentOpenerRegistry?: IAttachmentOpenerRegistry;
132
137
  inputToolbarFactory?: IInputToolbarRegistryFactory;
138
+ messageFooterRegistry?: IMessageFooterRegistry;
133
139
  }
134
140
  }
135
141
 
package/src/widget.tsx CHANGED
@@ -9,6 +9,7 @@ import {
9
9
  IChatCommandRegistry,
10
10
  IChatModel,
11
11
  IInputToolbarRegistry,
12
+ IMessageFooterRegistry,
12
13
  readIcon
13
14
  } from '@jupyter/chat';
14
15
  import { ICollaborativeDrive } from '@jupyter/collaborative-drive';
@@ -111,6 +112,7 @@ export class ChatPanel extends SidePanel {
111
112
  this._chatCommandRegistry = options.chatCommandRegistry;
112
113
  this._attachmentOpenerRegistry = options.attachmentOpenerRegistry;
113
114
  this._inputToolbarFactory = options.inputToolbarFactory;
115
+ this._messageFooterRegistry = options.messageFooterRegistry;
114
116
 
115
117
  const addChat = new CommandToolbarButton({
116
118
  commands: this._commands,
@@ -180,7 +182,8 @@ export class ChatPanel extends SidePanel {
180
182
  themeManager: this._themeManager,
181
183
  chatCommandRegistry: this._chatCommandRegistry,
182
184
  attachmentOpenerRegistry: this._attachmentOpenerRegistry,
183
- inputToolbarRegistry
185
+ inputToolbarRegistry,
186
+ messageFooterRegistry: this._messageFooterRegistry
184
187
  });
185
188
 
186
189
  this.addWidget(
@@ -302,6 +305,7 @@ export class ChatPanel extends SidePanel {
302
305
  private _chatCommandRegistry?: IChatCommandRegistry;
303
306
  private _attachmentOpenerRegistry?: IAttachmentOpenerRegistry;
304
307
  private _inputToolbarFactory?: IInputToolbarRegistryFactory;
308
+ private _messageFooterRegistry?: IMessageFooterRegistry;
305
309
  }
306
310
 
307
311
  /**
@@ -320,6 +324,7 @@ export namespace ChatPanel {
320
324
  chatCommandRegistry?: IChatCommandRegistry;
321
325
  attachmentOpenerRegistry?: IAttachmentOpenerRegistry;
322
326
  inputToolbarFactory?: IInputToolbarRegistryFactory;
327
+ messageFooterRegistry?: IMessageFooterRegistry;
323
328
  }
324
329
  }
325
330