jupyter-chat-example 0.8.1 → 0.9.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/index.js CHANGED
@@ -51,7 +51,11 @@ const plugin = {
51
51
  const selectionWatcher = new SelectionWatcher({
52
52
  shell: app.shell
53
53
  });
54
- const model = new MyChatModel({ activeCellManager, selectionWatcher });
54
+ const model = new MyChatModel({
55
+ activeCellManager,
56
+ selectionWatcher,
57
+ documentManager: filebrowser === null || filebrowser === void 0 ? void 0 : filebrowser.model.manager
58
+ });
55
59
  // Update the settings when they change.
56
60
  function loadSetting(setting) {
57
61
  model.config = {
@@ -89,7 +93,6 @@ const plugin = {
89
93
  model,
90
94
  rmRegistry,
91
95
  themeManager,
92
- documentManager: filebrowser === null || filebrowser === void 0 ? void 0 : filebrowser.model.manager,
93
96
  attachmentOpenerRegistry
94
97
  });
95
98
  app.shell.add(panel, 'left');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupyter-chat-example",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "description": "A chat extension providing a chat as example",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -44,7 +44,7 @@
44
44
  "install:extension": "jlpm build"
45
45
  },
46
46
  "dependencies": {
47
- "@jupyter/chat": "^0.8.1",
47
+ "@jupyter/chat": "^0.9.0",
48
48
  "@jupyterlab/application": "^4.2.0",
49
49
  "@jupyterlab/apputils": "^4.3.0",
50
50
  "@jupyterlab/notebook": "^4.2.0",
package/src/index.ts CHANGED
@@ -77,7 +77,11 @@ const plugin: JupyterFrontEndPlugin<void> = {
77
77
  shell: app.shell
78
78
  });
79
79
 
80
- const model = new MyChatModel({ activeCellManager, selectionWatcher });
80
+ const model = new MyChatModel({
81
+ activeCellManager,
82
+ selectionWatcher,
83
+ documentManager: filebrowser?.model.manager
84
+ });
81
85
 
82
86
  // Update the settings when they change.
83
87
  function loadSetting(setting: ISettingRegistry.ISettings): void {
@@ -122,7 +126,6 @@ const plugin: JupyterFrontEndPlugin<void> = {
122
126
  model,
123
127
  rmRegistry,
124
128
  themeManager,
125
- documentManager: filebrowser?.model.manager,
126
129
  attachmentOpenerRegistry
127
130
  });
128
131
  app.shell.add(panel, 'left');