Commit e182c03
authored
Input toolbar registry (#198)
* Input toolbar buttons only take the input model as prop
* Add an input toolbar registry that can be provided by extensions
* Fix doc example
* Update interface name
* Fix the custom toolbar sent to the chat component
* Add a toolbar registry with a token in jupyterlab-chat, to be able to replace it with an extension
* Add a simple test to modify the input toolbar of main area chat
* lint
* Removal of an unnecessary method in the input toolbar register
* Fix the test1 parent 11aadc0 commit e182c03
File tree
24 files changed
+643
-262
lines changed- docs/jupyter-chat-example/src
- packages
- jupyter-chat
- src
- components
- input
- buttons
- mui-extras
- widgets
- style
- jupyterlab-chat/src
- python/jupyterlab-chat/src
- ui-tests/tests
24 files changed
+643
-262
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| |||
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
125 | | - | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | | - | |
23 | | - | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | | - | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| |||
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
79 | 100 | | |
80 | 101 | | |
81 | 102 | | |
| |||
136 | 157 | | |
137 | 158 | | |
138 | 159 | | |
139 | | - | |
| 160 | + | |
140 | 161 | | |
141 | 162 | | |
142 | 163 | | |
143 | 164 | | |
144 | 165 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | 166 | | |
172 | 167 | | |
173 | 168 | | |
| |||
221 | 216 | | |
222 | 217 | | |
223 | 218 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
240 | 223 | | |
241 | 224 | | |
242 | 225 | | |
| |||
277 | 260 | | |
278 | 261 | | |
279 | 262 | | |
280 | | - | |
| 263 | + | |
281 | 264 | | |
282 | | - | |
| 265 | + | |
283 | 266 | | |
284 | 267 | | |
285 | 268 | | |
286 | 269 | | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | 270 | | |
292 | 271 | | |
293 | 272 | | |
294 | 273 | | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | 274 | | |
300 | 275 | | |
301 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
46 | 55 | | |
47 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
48 | 60 | | |
49 | 61 | | |
50 | 62 | | |
| |||
200 | 212 | | |
201 | 213 | | |
202 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
203 | 218 | | |
204 | | - | |
205 | 219 | | |
206 | 220 | | |
207 | 221 | | |
| |||
262 | 276 | | |
263 | 277 | | |
264 | 278 | | |
265 | | - | |
266 | | - | |
| 279 | + | |
267 | 280 | | |
268 | 281 | | |
269 | 282 | | |
| |||
364 | 377 | | |
365 | 378 | | |
366 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
367 | 383 | | |
368 | | - | |
369 | | - | |
370 | 384 | | |
371 | 385 | | |
372 | 386 | | |
373 | | - | |
| 387 | + | |
| 388 | + | |
374 | 389 | | |
375 | 390 | | |
376 | 391 | | |
| |||
384 | 399 | | |
385 | 400 | | |
386 | 401 | | |
387 | | - | |
388 | | - | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
389 | 408 | | |
390 | 409 | | |
391 | 410 | | |
392 | 411 | | |
393 | 412 | | |
394 | | - | |
| 413 | + | |
395 | 414 | | |
396 | 415 | | |
397 | 416 | | |
| |||
411 | 430 | | |
412 | 431 | | |
413 | 432 | | |
414 | | - | |
415 | 433 | | |
416 | 434 | | |
417 | | - | |
418 | 435 | | |
419 | | - | |
| 436 | + | |
420 | 437 | | |
421 | 438 | | |
422 | 439 | | |
| |||
0 commit comments