jupyter-chat-example 0.11.0 → 0.12.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
@@ -9,6 +9,20 @@ import { INotebookTracker } from '@jupyterlab/notebook';
9
9
  import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
10
10
  import { ISettingRegistry } from '@jupyterlab/settingregistry';
11
11
  import { UUID } from '@lumino/coreutils';
12
+ const welcomeMessage = `
13
+ ### Welcome to Jupyter Chat!
14
+
15
+ This is a simple chat panel that allows you to send messages and share files.
16
+
17
+ The messages are rendered as markdown, allowing you to format the messages with e.g.:
18
+ - **bold**
19
+ - _italic_
20
+ - \`\`\`python
21
+ # This is a code block
22
+ print('Hello world!')
23
+ \`\`\`
24
+ - [link](https://jupyter.org)
25
+ `;
12
26
  class ChatContext extends AbstractChatContext {
13
27
  get users() {
14
28
  return [];
@@ -101,7 +115,8 @@ const plugin = {
101
115
  model,
102
116
  rmRegistry,
103
117
  themeManager,
104
- attachmentOpenerRegistry
118
+ attachmentOpenerRegistry,
119
+ welcomeMessage
105
120
  });
106
121
  app.shell.add(panel, 'left');
107
122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupyter-chat-example",
3
- "version": "0.11.0",
3
+ "version": "0.12.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.11.0",
47
+ "@jupyter/chat": "^0.12.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
@@ -26,6 +26,21 @@ import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
26
26
  import { ISettingRegistry } from '@jupyterlab/settingregistry';
27
27
  import { UUID } from '@lumino/coreutils';
28
28
 
29
+ const welcomeMessage = `
30
+ ### Welcome to Jupyter Chat!
31
+
32
+ This is a simple chat panel that allows you to send messages and share files.
33
+
34
+ The messages are rendered as markdown, allowing you to format the messages with e.g.:
35
+ - **bold**
36
+ - _italic_
37
+ - \`\`\`python
38
+ # This is a code block
39
+ print('Hello world!')
40
+ \`\`\`
41
+ - [link](https://jupyter.org)
42
+ `;
43
+
29
44
  class ChatContext extends AbstractChatContext {
30
45
  get users() {
31
46
  return [];
@@ -138,7 +153,8 @@ const plugin: JupyterFrontEndPlugin<void> = {
138
153
  model,
139
154
  rmRegistry,
140
155
  themeManager,
141
- attachmentOpenerRegistry
156
+ attachmentOpenerRegistry,
157
+ welcomeMessage
142
158
  });
143
159
  app.shell.add(panel, 'left');
144
160
  }