reachat 0.0.1 → 1.0.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.
Files changed (50) hide show
  1. package/README.md +86 -39
  2. package/dist/Chat.d.ts +58 -0
  3. package/dist/ChatContext.d.ts +18 -0
  4. package/dist/ChatInput.d.ts +42 -0
  5. package/dist/Markdown/CodeHighlighter.d.ts +25 -0
  6. package/dist/Markdown/Markdown.d.ts +11 -0
  7. package/dist/Markdown/Table.d.ts +5 -0
  8. package/dist/Markdown/index.d.ts +5 -0
  9. package/dist/Markdown/plugins/index.d.ts +1 -0
  10. package/dist/Markdown/plugins/remarkCve.d.ts +1 -0
  11. package/dist/Markdown/themes/dark.d.ts +501 -0
  12. package/dist/Markdown/themes/index.d.ts +2 -0
  13. package/dist/Markdown/themes/light.d.ts +499 -0
  14. package/dist/SessionMessages/MessageActions.d.ts +45 -0
  15. package/dist/SessionMessages/MessageFile.d.ts +14 -0
  16. package/dist/SessionMessages/MessageFiles.d.ts +11 -0
  17. package/dist/SessionMessages/MessageQuestion.d.ts +9 -0
  18. package/dist/SessionMessages/MessageResponse.d.ts +13 -0
  19. package/dist/SessionMessages/MessageSource.d.ts +10 -0
  20. package/dist/SessionMessages/MessageSources.d.ts +11 -0
  21. package/dist/SessionMessages/SessionEmpty.d.ts +6 -0
  22. package/dist/SessionMessages/SessionMessage.d.ts +15 -0
  23. package/dist/SessionMessages/SessionMessagePanel.d.ts +3 -0
  24. package/dist/SessionMessages/SessionMessages.d.ts +23 -0
  25. package/dist/SessionMessages/SessionMessagesHeader.d.ts +3 -0
  26. package/dist/SessionMessages/index.d.ts +12 -0
  27. package/dist/SessionsList/NewSessionButton.d.ts +10 -0
  28. package/dist/SessionsList/SessionGroups.d.ts +10 -0
  29. package/dist/SessionsList/SessionListItem.d.ts +22 -0
  30. package/dist/SessionsList/SessionsGroup.d.ts +10 -0
  31. package/dist/SessionsList/SessionsList.d.ts +3 -0
  32. package/dist/SessionsList/index.d.ts +5 -0
  33. package/dist/docs.json +1478 -0
  34. package/dist/index.d.ts +4 -5
  35. package/dist/index.js +1866 -3211
  36. package/dist/index.js.map +1 -1
  37. package/dist/index.umd.cjs +1868 -3209
  38. package/dist/index.umd.cjs.map +1 -1
  39. package/dist/theme.d.ts +77 -1
  40. package/dist/types.d.ts +71 -17
  41. package/dist/utils.d.ts +7 -0
  42. package/dist/utils.spec.d.ts +1 -0
  43. package/package.json +38 -23
  44. package/dist/SessionInput.d.ts +0 -22
  45. package/dist/SessionListItem.d.ts +0 -11
  46. package/dist/SessionMessage.d.ts +0 -10
  47. package/dist/SessionMessages.d.ts +0 -9
  48. package/dist/Sessions.d.ts +0 -48
  49. package/dist/SessionsList.d.ts +0 -11
  50. package/dist/useLlm.d.ts +0 -3
@@ -0,0 +1,499 @@
1
+ export declare const light: {
2
+ 'code[class*="language-"]': {
3
+ background: string;
4
+ color: string;
5
+ textShadow: string;
6
+ fontFamily: string;
7
+ direction: string;
8
+ textAlign: string;
9
+ whiteSpace: string;
10
+ wordSpacing: string;
11
+ wordBreak: string;
12
+ lineHeight: string;
13
+ MozTabSize: string;
14
+ OTabSize: string;
15
+ tabSize: string;
16
+ WebkitHyphens: string;
17
+ MozHyphens: string;
18
+ msHyphens: string;
19
+ hyphens: string;
20
+ };
21
+ 'pre[class*="language-"]': {
22
+ background: string;
23
+ color: string;
24
+ textShadow: string;
25
+ fontFamily: string;
26
+ direction: string;
27
+ textAlign: string;
28
+ whiteSpace: string;
29
+ wordSpacing: string;
30
+ wordBreak: string;
31
+ lineHeight: string;
32
+ MozTabSize: string;
33
+ OTabSize: string;
34
+ tabSize: string;
35
+ WebkitHyphens: string;
36
+ MozHyphens: string;
37
+ msHyphens: string;
38
+ hyphens: string;
39
+ padding: string;
40
+ margin: string;
41
+ overflow: string;
42
+ borderRadius: string;
43
+ border: string;
44
+ };
45
+ 'code[class*="language-"]::-moz-selection': {
46
+ background: string;
47
+ color: string;
48
+ textShadow: string;
49
+ };
50
+ 'code[class*="language-"] *::-moz-selection': {
51
+ background: string;
52
+ color: string;
53
+ textShadow: string;
54
+ };
55
+ 'pre[class*="language-"] *::-moz-selection': {
56
+ background: string;
57
+ color: string;
58
+ textShadow: string;
59
+ };
60
+ 'code[class*="language-"]::selection': {
61
+ background: string;
62
+ color: string;
63
+ textShadow: string;
64
+ };
65
+ 'code[class*="language-"] *::selection': {
66
+ background: string;
67
+ color: string;
68
+ textShadow: string;
69
+ };
70
+ 'pre[class*="language-"] *::selection': {
71
+ background: string;
72
+ color: string;
73
+ textShadow: string;
74
+ };
75
+ ':not(pre) > code[class*="language-"]': {
76
+ padding: string;
77
+ borderRadius: string;
78
+ whiteSpace: string;
79
+ background: string;
80
+ };
81
+ comment: {
82
+ color: string;
83
+ fontStyle: string;
84
+ };
85
+ prolog: {
86
+ color: string;
87
+ };
88
+ cdata: {
89
+ color: string;
90
+ };
91
+ doctype: {
92
+ color: string;
93
+ };
94
+ punctuation: {
95
+ color: string;
96
+ };
97
+ entity: {
98
+ color: string;
99
+ cursor: string;
100
+ };
101
+ 'attr-name': {
102
+ color: string;
103
+ };
104
+ 'class-name': {
105
+ color: string;
106
+ };
107
+ boolean: {
108
+ color: string;
109
+ };
110
+ constant: {
111
+ color: string;
112
+ };
113
+ number: {
114
+ color: string;
115
+ };
116
+ atrule: {
117
+ color: string;
118
+ };
119
+ keyword: {
120
+ color: string;
121
+ };
122
+ property: {
123
+ color: string;
124
+ };
125
+ tag: {
126
+ color: string;
127
+ };
128
+ symbol: {
129
+ color: string;
130
+ };
131
+ deleted: {
132
+ color: string;
133
+ };
134
+ important: {
135
+ color: string;
136
+ };
137
+ selector: {
138
+ color: string;
139
+ };
140
+ string: {
141
+ color: string;
142
+ };
143
+ char: {
144
+ color: string;
145
+ };
146
+ builtin: {
147
+ color: string;
148
+ };
149
+ inserted: {
150
+ color: string;
151
+ };
152
+ regex: {
153
+ color: string;
154
+ };
155
+ 'attr-value': {
156
+ color: string;
157
+ };
158
+ 'attr-value > .token.punctuation': {
159
+ color: string;
160
+ };
161
+ variable: {
162
+ color: string;
163
+ };
164
+ operator: {
165
+ color: string;
166
+ };
167
+ function: {
168
+ color: string;
169
+ };
170
+ url: {
171
+ color: string;
172
+ };
173
+ 'attr-value > .token.punctuation.attr-equals': {
174
+ color: string;
175
+ };
176
+ 'special-attr > .token.attr-value > .token.value.css': {
177
+ color: string;
178
+ };
179
+ '.language-css .token.selector': {
180
+ color: string;
181
+ };
182
+ '.language-css .token.property': {
183
+ color: string;
184
+ };
185
+ '.language-css .token.function': {
186
+ color: string;
187
+ };
188
+ '.language-css .token.url > .token.function': {
189
+ color: string;
190
+ };
191
+ '.language-css .token.url > .token.string.url': {
192
+ color: string;
193
+ };
194
+ '.language-css .token.important': {
195
+ color: string;
196
+ };
197
+ '.language-css .token.atrule .token.rule': {
198
+ color: string;
199
+ };
200
+ '.language-javascript .token.operator': {
201
+ color: string;
202
+ };
203
+ '.language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation': {
204
+ color: string;
205
+ };
206
+ '.language-json .token.operator': {
207
+ color: string;
208
+ };
209
+ '.language-json .token.null.keyword': {
210
+ color: string;
211
+ };
212
+ '.language-markdown .token.url': {
213
+ color: string;
214
+ };
215
+ '.language-markdown .token.url > .token.operator': {
216
+ color: string;
217
+ };
218
+ '.language-markdown .token.url-reference.url > .token.string': {
219
+ color: string;
220
+ };
221
+ '.language-markdown .token.url > .token.content': {
222
+ color: string;
223
+ };
224
+ '.language-markdown .token.url > .token.url': {
225
+ color: string;
226
+ };
227
+ '.language-markdown .token.url-reference.url': {
228
+ color: string;
229
+ };
230
+ '.language-markdown .token.blockquote.punctuation': {
231
+ color: string;
232
+ fontStyle: string;
233
+ };
234
+ '.language-markdown .token.hr.punctuation': {
235
+ color: string;
236
+ fontStyle: string;
237
+ };
238
+ '.language-markdown .token.code-snippet': {
239
+ color: string;
240
+ };
241
+ '.language-markdown .token.bold .token.content': {
242
+ color: string;
243
+ };
244
+ '.language-markdown .token.italic .token.content': {
245
+ color: string;
246
+ };
247
+ '.language-markdown .token.strike .token.content': {
248
+ color: string;
249
+ };
250
+ '.language-markdown .token.strike .token.punctuation': {
251
+ color: string;
252
+ };
253
+ '.language-markdown .token.list.punctuation': {
254
+ color: string;
255
+ };
256
+ '.language-markdown .token.title.important > .token.punctuation': {
257
+ color: string;
258
+ };
259
+ bold: {
260
+ fontWeight: string;
261
+ };
262
+ italic: {
263
+ fontStyle: string;
264
+ };
265
+ namespace: {
266
+ Opacity: string;
267
+ };
268
+ 'token.tab:not(:empty):before': {
269
+ color: string;
270
+ };
271
+ 'token.cr:before': {
272
+ color: string;
273
+ };
274
+ 'token.lf:before': {
275
+ color: string;
276
+ };
277
+ 'token.space:before': {
278
+ color: string;
279
+ };
280
+ 'div.code-toolbar > .toolbar.toolbar > .toolbar-item': {
281
+ marginRight: string;
282
+ };
283
+ 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > button': {
284
+ background: string;
285
+ color: string;
286
+ padding: string;
287
+ borderRadius: string;
288
+ };
289
+ 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > a': {
290
+ background: string;
291
+ color: string;
292
+ padding: string;
293
+ borderRadius: string;
294
+ };
295
+ 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > span': {
296
+ background: string;
297
+ color: string;
298
+ padding: string;
299
+ borderRadius: string;
300
+ };
301
+ 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover': {
302
+ background: string;
303
+ color: string;
304
+ };
305
+ 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus': {
306
+ background: string;
307
+ color: string;
308
+ };
309
+ 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover': {
310
+ background: string;
311
+ color: string;
312
+ };
313
+ 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus': {
314
+ background: string;
315
+ color: string;
316
+ };
317
+ 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover': {
318
+ background: string;
319
+ color: string;
320
+ };
321
+ 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus': {
322
+ background: string;
323
+ color: string;
324
+ };
325
+ '.line-highlight.line-highlight': {
326
+ background: string;
327
+ };
328
+ '.line-highlight.line-highlight:before': {
329
+ background: string;
330
+ color: string;
331
+ padding: string;
332
+ borderRadius: string;
333
+ boxShadow: string;
334
+ };
335
+ '.line-highlight.line-highlight[data-end]:after': {
336
+ background: string;
337
+ color: string;
338
+ padding: string;
339
+ borderRadius: string;
340
+ boxShadow: string;
341
+ };
342
+ 'pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before': {
343
+ backgroundColor: string;
344
+ };
345
+ '.line-numbers.line-numbers .line-numbers-rows': {
346
+ borderRightColor: string;
347
+ };
348
+ '.command-line .command-line-prompt': {
349
+ borderRightColor: string;
350
+ };
351
+ '.line-numbers .line-numbers-rows > span:before': {
352
+ color: string;
353
+ };
354
+ '.command-line .command-line-prompt > span:before': {
355
+ color: string;
356
+ };
357
+ '.rainbow-braces .token.token.punctuation.brace-level-1': {
358
+ color: string;
359
+ };
360
+ '.rainbow-braces .token.token.punctuation.brace-level-5': {
361
+ color: string;
362
+ };
363
+ '.rainbow-braces .token.token.punctuation.brace-level-9': {
364
+ color: string;
365
+ };
366
+ '.rainbow-braces .token.token.punctuation.brace-level-2': {
367
+ color: string;
368
+ };
369
+ '.rainbow-braces .token.token.punctuation.brace-level-6': {
370
+ color: string;
371
+ };
372
+ '.rainbow-braces .token.token.punctuation.brace-level-10': {
373
+ color: string;
374
+ };
375
+ '.rainbow-braces .token.token.punctuation.brace-level-3': {
376
+ color: string;
377
+ };
378
+ '.rainbow-braces .token.token.punctuation.brace-level-7': {
379
+ color: string;
380
+ };
381
+ '.rainbow-braces .token.token.punctuation.brace-level-11': {
382
+ color: string;
383
+ };
384
+ '.rainbow-braces .token.token.punctuation.brace-level-4': {
385
+ color: string;
386
+ };
387
+ '.rainbow-braces .token.token.punctuation.brace-level-8': {
388
+ color: string;
389
+ };
390
+ '.rainbow-braces .token.token.punctuation.brace-level-12': {
391
+ color: string;
392
+ };
393
+ 'pre.diff-highlight > code .token.token.deleted:not(.prefix)': {
394
+ backgroundColor: string;
395
+ };
396
+ 'pre > code.diff-highlight .token.token.deleted:not(.prefix)': {
397
+ backgroundColor: string;
398
+ };
399
+ 'pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection': {
400
+ backgroundColor: string;
401
+ };
402
+ 'pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection': {
403
+ backgroundColor: string;
404
+ };
405
+ 'pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection': {
406
+ backgroundColor: string;
407
+ };
408
+ 'pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection': {
409
+ backgroundColor: string;
410
+ };
411
+ 'pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection': {
412
+ backgroundColor: string;
413
+ };
414
+ 'pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection': {
415
+ backgroundColor: string;
416
+ };
417
+ 'pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection': {
418
+ backgroundColor: string;
419
+ };
420
+ 'pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection': {
421
+ backgroundColor: string;
422
+ };
423
+ 'pre.diff-highlight > code .token.token.inserted:not(.prefix)': {
424
+ backgroundColor: string;
425
+ };
426
+ 'pre > code.diff-highlight .token.token.inserted:not(.prefix)': {
427
+ backgroundColor: string;
428
+ };
429
+ 'pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection': {
430
+ backgroundColor: string;
431
+ };
432
+ 'pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection': {
433
+ backgroundColor: string;
434
+ };
435
+ 'pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection': {
436
+ backgroundColor: string;
437
+ };
438
+ 'pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection': {
439
+ backgroundColor: string;
440
+ };
441
+ 'pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection': {
442
+ backgroundColor: string;
443
+ };
444
+ 'pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection': {
445
+ backgroundColor: string;
446
+ };
447
+ 'pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection': {
448
+ backgroundColor: string;
449
+ };
450
+ 'pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection': {
451
+ backgroundColor: string;
452
+ };
453
+ '.prism-previewer.prism-previewer:before': {
454
+ borderColor: string;
455
+ };
456
+ '.prism-previewer-gradient.prism-previewer-gradient div': {
457
+ borderColor: string;
458
+ borderRadius: string;
459
+ };
460
+ '.prism-previewer-color.prism-previewer-color:before': {
461
+ borderRadius: string;
462
+ };
463
+ '.prism-previewer-easing.prism-previewer-easing:before': {
464
+ borderRadius: string;
465
+ };
466
+ '.prism-previewer.prism-previewer:after': {
467
+ borderTopColor: string;
468
+ };
469
+ '.prism-previewer-flipped.prism-previewer-flipped.after': {
470
+ borderBottomColor: string;
471
+ };
472
+ '.prism-previewer-angle.prism-previewer-angle:before': {
473
+ background: string;
474
+ };
475
+ '.prism-previewer-time.prism-previewer-time:before': {
476
+ background: string;
477
+ };
478
+ '.prism-previewer-easing.prism-previewer-easing': {
479
+ background: string;
480
+ };
481
+ '.prism-previewer-angle.prism-previewer-angle circle': {
482
+ stroke: string;
483
+ strokeOpacity: string;
484
+ };
485
+ '.prism-previewer-time.prism-previewer-time circle': {
486
+ stroke: string;
487
+ strokeOpacity: string;
488
+ };
489
+ '.prism-previewer-easing.prism-previewer-easing circle': {
490
+ stroke: string;
491
+ fill: string;
492
+ };
493
+ '.prism-previewer-easing.prism-previewer-easing path': {
494
+ stroke: string;
495
+ };
496
+ '.prism-previewer-easing.prism-previewer-easing line': {
497
+ stroke: string;
498
+ };
499
+ };
@@ -0,0 +1,45 @@
1
+ import { FC, PropsWithChildren, ReactElement } from 'react';
2
+
3
+ export interface MessageActionsProps extends PropsWithChildren {
4
+ /**
5
+ * Question to be copied
6
+ */
7
+ question: string;
8
+ /**
9
+ * Response to be copied
10
+ */
11
+ response?: string;
12
+ /**
13
+ * Icon to show for copy.
14
+ */
15
+ copyIcon?: ReactElement;
16
+ /**
17
+ * Icon to show for thumbs up.
18
+ */
19
+ thumbsUpIcon?: ReactElement;
20
+ /**
21
+ * Icon to show for thumbs down.
22
+ */
23
+ thumbsDownIcon?: ReactElement;
24
+ /**
25
+ * Icon to show for refresh.
26
+ */
27
+ refreshIcon?: ReactElement;
28
+ /**
29
+ * Callback function to handle copying.
30
+ */
31
+ onCopy?: () => void;
32
+ /**
33
+ * Callback function to handle upvoting.
34
+ */
35
+ onUpvote?: () => void;
36
+ /**
37
+ * Callback function to handle downvoting.
38
+ */
39
+ onDownvote?: () => void;
40
+ /**
41
+ * Callback function to handle refreshing.
42
+ */
43
+ onRefresh?: () => void;
44
+ }
45
+ export declare const MessageActions: FC<MessageActionsProps>;
@@ -0,0 +1,14 @@
1
+ import { FC, ReactElement } from 'react';
2
+ import { ConversationFile } from '../types';
3
+
4
+ export interface MessageFileProps extends ConversationFile {
5
+ /**
6
+ * Icon to show for delete.
7
+ */
8
+ fileIcon?: ReactElement;
9
+ /**
10
+ * Limit for the name.
11
+ */
12
+ limit?: number;
13
+ }
14
+ export declare const MessageFile: FC<MessageFileProps>;
@@ -0,0 +1,11 @@
1
+ import { ConversationFile } from '../types';
2
+ import { FC, PropsWithChildren } from 'react';
3
+
4
+ interface MessageFilesProps extends PropsWithChildren {
5
+ /**
6
+ * Files to render.
7
+ */
8
+ files: ConversationFile[];
9
+ }
10
+ export declare const MessageFiles: FC<MessageFilesProps>;
11
+ export {};
@@ -0,0 +1,9 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+
3
+ export interface MessageQuestionProps extends PropsWithChildren {
4
+ /**
5
+ * Question to render.
6
+ */
7
+ question: string;
8
+ }
9
+ export declare const MessageQuestion: FC<MessageQuestionProps>;
@@ -0,0 +1,13 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+
3
+ export interface MessageResponseProps extends PropsWithChildren {
4
+ /**
5
+ * Response to render.
6
+ */
7
+ response: string;
8
+ /**
9
+ * Whether the response is loading.
10
+ */
11
+ isLoading?: boolean;
12
+ }
13
+ export declare const MessageResponse: FC<MessageResponseProps>;
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { ConversationSource } from '../types';
3
+
4
+ export interface MessageSourceProps extends ConversationSource {
5
+ /**
6
+ * Limit for the title.
7
+ */
8
+ limit?: number;
9
+ }
10
+ export declare const MessageSource: FC<MessageSourceProps>;
@@ -0,0 +1,11 @@
1
+ import { ConversationSource } from '../types';
2
+ import { FC, PropsWithChildren } from 'react';
3
+
4
+ interface MessageSourcesProps extends PropsWithChildren {
5
+ /**
6
+ * Sources to render.
7
+ */
8
+ sources: ConversationSource[];
9
+ }
10
+ export declare const MessageSources: FC<MessageSourcesProps>;
11
+ export {};
@@ -0,0 +1,6 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+
3
+ interface SessionEmptyProps extends PropsWithChildren {
4
+ }
5
+ export declare const SessionEmpty: FC<SessionEmptyProps>;
6
+ export {};
@@ -0,0 +1,15 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import { Conversation } from '../types';
3
+
4
+ interface SessionMessageProps extends PropsWithChildren {
5
+ /**
6
+ * Conversation to render.
7
+ */
8
+ conversation: Conversation;
9
+ /**
10
+ * Whether the message is the last one in the list.
11
+ */
12
+ isLast?: boolean;
13
+ }
14
+ export declare const SessionMessage: FC<SessionMessageProps>;
15
+ export {};
@@ -0,0 +1,3 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+
3
+ export declare const SessionMessagePanel: FC<PropsWithChildren>;
@@ -0,0 +1,23 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ import { Conversation } from '../types';
3
+
4
+ interface SessionMessagesProps {
5
+ /**
6
+ * Content to display when there are no sessions selected or a new session is started.
7
+ */
8
+ newSessionContent?: string | ReactNode;
9
+ /**
10
+ * Limit the number of results returned. Clientside pagination.
11
+ */
12
+ limit?: number | null;
13
+ /**
14
+ * Text to display for the show more button.
15
+ */
16
+ showMoreText?: string;
17
+ /**
18
+ * Render function for the session messages.
19
+ */
20
+ children?: (conversations: Conversation[]) => ReactNode;
21
+ }
22
+ export declare const SessionMessages: React.FC<SessionMessagesProps>;
23
+ export {};
@@ -0,0 +1,3 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+
3
+ export declare const SessionMessagesHeader: FC<PropsWithChildren>;
@@ -0,0 +1,12 @@
1
+ export * from './SessionEmpty';
2
+ export * from './SessionMessagesHeader';
3
+ export * from './SessionMessagePanel';
4
+ export * from './SessionMessage';
5
+ export * from './SessionMessages';
6
+ export * from './MessageSource';
7
+ export * from './MessageActions';
8
+ export * from './MessageFile';
9
+ export * from './MessageFiles';
10
+ export * from './MessageQuestion';
11
+ export * from './MessageResponse';
12
+ export * from './MessageSources';
@@ -0,0 +1,10 @@
1
+ import { FC, PropsWithChildren, ReactNode } from 'react';
2
+
3
+ interface NewSessionButtonProps extends PropsWithChildren {
4
+ /**
5
+ * Text for the new session button.
6
+ */
7
+ newSessionText?: string | ReactNode;
8
+ }
9
+ export declare const NewSessionButton: FC<NewSessionButtonProps>;
10
+ export {};