reachat 1.0.0 → 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.
- package/README.md +2 -0
- package/dist/Chat.d.ts +4 -0
- package/dist/ChatContext.d.ts +2 -0
- package/dist/Markdown/CodeHighlighter.d.ts +17 -1
- package/dist/Markdown/index.d.ts +1 -0
- package/dist/Markdown/themes/dark.d.ts +501 -0
- package/dist/Markdown/themes/index.d.ts +2 -0
- package/dist/Markdown/themes/light.d.ts +499 -0
- package/dist/docs.json +99 -0
- package/dist/index.js +1332 -3304
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1344 -3302
- package/dist/index.umd.cjs.map +1 -1
- package/dist/theme.d.ts +7 -0
- package/package.json +9 -6
|
@@ -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
|
+
};
|
package/dist/docs.json
CHANGED
|
@@ -160,6 +160,25 @@
|
|
|
160
160
|
"name": "boolean"
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
|
+
"disabled": {
|
|
164
|
+
"defaultValue": null,
|
|
165
|
+
"description": "Whether to disable the chat.",
|
|
166
|
+
"name": "disabled",
|
|
167
|
+
"parent": {
|
|
168
|
+
"fileName": "src/Chat.tsx",
|
|
169
|
+
"name": "ChatProps"
|
|
170
|
+
},
|
|
171
|
+
"declarations": [
|
|
172
|
+
{
|
|
173
|
+
"fileName": "src/Chat.tsx",
|
|
174
|
+
"name": "ChatProps"
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"required": false,
|
|
178
|
+
"type": {
|
|
179
|
+
"name": "boolean"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
163
182
|
"onSelectSession": {
|
|
164
183
|
"defaultValue": null,
|
|
165
184
|
"description": "Callback function to handle when a session is selected.",
|
|
@@ -430,6 +449,86 @@
|
|
|
430
449
|
"type": {
|
|
431
450
|
"name": "string"
|
|
432
451
|
}
|
|
452
|
+
},
|
|
453
|
+
"language": {
|
|
454
|
+
"defaultValue": null,
|
|
455
|
+
"description": "The language of the code block.",
|
|
456
|
+
"name": "language",
|
|
457
|
+
"parent": {
|
|
458
|
+
"fileName": "src/Markdown/CodeHighlighter.tsx",
|
|
459
|
+
"name": "CodeHighlighterProps"
|
|
460
|
+
},
|
|
461
|
+
"declarations": [
|
|
462
|
+
{
|
|
463
|
+
"fileName": "src/Markdown/CodeHighlighter.tsx",
|
|
464
|
+
"name": "CodeHighlighterProps"
|
|
465
|
+
}
|
|
466
|
+
],
|
|
467
|
+
"required": false,
|
|
468
|
+
"type": {
|
|
469
|
+
"name": "string"
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
"copyClassName": {
|
|
473
|
+
"defaultValue": null,
|
|
474
|
+
"description": "The class name to apply to the copy button.",
|
|
475
|
+
"name": "copyClassName",
|
|
476
|
+
"parent": {
|
|
477
|
+
"fileName": "src/Markdown/CodeHighlighter.tsx",
|
|
478
|
+
"name": "CodeHighlighterProps"
|
|
479
|
+
},
|
|
480
|
+
"declarations": [
|
|
481
|
+
{
|
|
482
|
+
"fileName": "src/Markdown/CodeHighlighter.tsx",
|
|
483
|
+
"name": "CodeHighlighterProps"
|
|
484
|
+
}
|
|
485
|
+
],
|
|
486
|
+
"required": false,
|
|
487
|
+
"type": {
|
|
488
|
+
"name": "string"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"copyIcon": {
|
|
492
|
+
"defaultValue": {
|
|
493
|
+
"value": "<CopyIcon />"
|
|
494
|
+
},
|
|
495
|
+
"description": "Icon to show for copy.",
|
|
496
|
+
"name": "copyIcon",
|
|
497
|
+
"parent": {
|
|
498
|
+
"fileName": "src/Markdown/CodeHighlighter.tsx",
|
|
499
|
+
"name": "CodeHighlighterProps"
|
|
500
|
+
},
|
|
501
|
+
"declarations": [
|
|
502
|
+
{
|
|
503
|
+
"fileName": "src/Markdown/CodeHighlighter.tsx",
|
|
504
|
+
"name": "CodeHighlighterProps"
|
|
505
|
+
}
|
|
506
|
+
],
|
|
507
|
+
"required": false,
|
|
508
|
+
"type": {
|
|
509
|
+
"name": "ReactElement<any, string | JSXElementConstructor<any>>"
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
"theme": {
|
|
513
|
+
"defaultValue": {
|
|
514
|
+
"value": "{\n 'code[class*=\"language-\"]': {\n 'background': '#11111f',\n 'color': '#e2e8f0',\n 'textShadow': '0 1px rgba(0, 0, 0, 0.3)',\n 'fontFamily': '\"Fira Code\", \"Fira Mono\", Menlo, Consolas, \"DejaVu Sans Mono\", monospace',\n 'direction': 'ltr',\n 'textAlign': 'left',\n 'whiteSpace': 'pre',\n 'wordSpacing': 'normal',\n 'wordBreak': 'normal',\n 'lineHeight': '1.5',\n 'MozTabSize': '2',\n 'OTabSize': '2',\n 'tabSize': '2',\n 'WebkitHyphens': 'none',\n 'MozHyphens': 'none',\n 'msHyphens': 'none',\n 'hyphens': 'none'\n },\n 'pre[class*=\"language-\"]': {\n 'background': '#11111f',\n 'color': '#e2e8f0',\n 'textShadow': '0 1px rgba(0, 0, 0, 0.3)',\n 'fontFamily': '\"Fira Code\", \"Fira Mono\", Menlo, Consolas, \"DejaVu Sans Mono\", monospace',\n 'direction': 'ltr',\n 'textAlign': 'left',\n 'whiteSpace': 'pre',\n 'wordSpacing': 'normal',\n 'wordBreak': 'normal',\n 'lineHeight': '1.5',\n 'MozTabSize': '2',\n 'OTabSize': '2',\n 'tabSize': '2',\n 'WebkitHyphens': 'none',\n 'MozHyphens': 'none',\n 'msHyphens': 'none',\n 'hyphens': 'none',\n 'padding': '1em',\n 'margin': '0.5em 0',\n 'overflow': 'auto',\n 'borderRadius': '0.3em'\n },\n 'code[class*=\"language-\"]::-moz-selection': {\n 'background': '#1e293b',\n 'color': 'inherit',\n 'textShadow': 'none'\n },\n 'code[class*=\"language-\"] *::-moz-selection': {\n 'background': '#1e293b',\n 'color': 'inherit',\n 'textShadow': 'none'\n },\n 'pre[class*=\"language-\"] *::-moz-selection': {\n 'background': '#1e293b',\n 'color': 'inherit',\n 'textShadow': 'none'\n },\n 'code[class*=\"language-\"]::selection': {\n 'background': '#1e293b',\n 'color': 'inherit',\n 'textShadow': 'none'\n },\n 'code[class*=\"language-\"] *::selection': {\n 'background': '#1e293b',\n 'color': 'inherit',\n 'textShadow': 'none'\n },\n 'pre[class*=\"language-\"] *::selection': {\n 'background': '#1e293b',\n 'color': 'inherit',\n 'textShadow': 'none'\n },\n ':not(pre) > code[class*=\"language-\"]': {\n 'padding': '0.2em 0.3em',\n 'borderRadius': '0.3em',\n 'whiteSpace': 'normal'\n },\n 'comment': {\n 'color': '#64748b',\n 'fontStyle': 'italic'\n },\n 'prolog': {\n 'color': '#64748b'\n },\n 'cdata': {\n 'color': '#64748b'\n },\n 'doctype': {\n 'color': '#e2e8f0'\n },\n 'punctuation': {\n 'color': '#e2e8f0'\n },\n 'entity': {\n 'color': '#3b82f6',\n 'cursor': 'help'\n },\n 'attr-name': {\n 'color': '#f59e0b'\n },\n 'class-name': {\n 'color': '#f59e0b'\n },\n 'boolean': {\n 'color': '#3b82f6'\n },\n 'constant': {\n 'color': '#3b82f6'\n },\n 'number': {\n 'color': '#3b82f6'\n },\n 'atrule': {\n 'color': '#f59e0b'\n },\n 'keyword': {\n 'color': '#f472b6'\n },\n 'property': {\n 'color': '#3b82f6'\n },\n 'tag': {\n 'color': '#3b82f6'\n },\n 'symbol': {\n 'color': '#3b82f6'\n },\n 'deleted': {\n 'color': '#ef4444'\n },\n 'important': {\n 'color': '#f472b6'\n },\n 'selector': {\n 'color': '#10b981'\n },\n 'string': {\n 'color': '#10b981'\n },\n 'char': {\n 'color': '#10b981'\n },\n 'builtin': {\n 'color': '#10b981'\n },\n 'inserted': {\n 'color': '#10b981'\n },\n 'regex': {\n 'color': '#10b981'\n },\n 'attr-value': {\n 'color': '#10b981'\n },\n 'attr-value > .token.punctuation': {\n 'color': '#10b981'\n },\n 'variable': {\n 'color': '#60a5fa'\n },\n 'operator': {\n 'color': '#60a5fa'\n },\n 'function': {\n 'color': '#60a5fa'\n },\n 'url': {\n 'color': '#60a5fa'\n },\n 'attr-value > .token.punctuation.attr-equals': {\n 'color': '#e2e8f0'\n },\n 'special-attr > .token.attr-value > .token.value.css': {\n 'color': '#e2e8f0'\n },\n '.language-css .token.selector': {\n 'color': '#3b82f6'\n },\n '.language-css .token.property': {\n 'color': '#e2e8f0'\n },\n '.language-css .token.function': {\n 'color': '#60a5fa'\n },\n '.language-css .token.url > .token.function': {\n 'color': '#60a5fa'\n },\n '.language-css .token.url > .token.string.url': {\n 'color': '#10b981'\n },\n '.language-css .token.important': {\n 'color': '#f472b6'\n },\n '.language-css .token.atrule .token.rule': {\n 'color': '#f472b6'\n },\n '.language-javascript .token.operator': {\n 'color': '#f472b6'\n },\n '.language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation': {\n 'color': '#ef4444'\n },\n '.language-json .token.operator': {\n 'color': '#e2e8f0'\n },\n '.language-json .token.null.keyword': {\n 'color': '#3b82f6'\n },\n '.language-markdown .token.url': {\n 'color': '#e2e8f0'\n },\n '.language-markdown .token.url > .token.operator': {\n 'color': '#e2e8f0'\n },\n '.language-markdown .token.url-reference.url > .token.string': {\n 'color': '#e2e8f0'\n },\n '.language-markdown .token.url > .token.content': {\n 'color': '#60a5fa'\n },\n '.language-markdown .token.url > .token.url': {\n 'color': '#60a5fa'\n },\n '.language-markdown .token.url-reference.url': {\n 'color': '#60a5fa'\n },\n '.language-markdown .token.blockquote.punctuation': {\n 'color': '#64748b',\n 'fontStyle': 'italic'\n },\n '.language-markdown .token.hr.punctuation': {\n 'color': '#64748b',\n 'fontStyle': 'italic'\n },\n '.language-markdown .token.code-snippet': {\n 'color': '#10b981'\n },\n '.language-markdown .token.bold .token.content': {\n 'color': '#f59e0b'\n },\n '.language-markdown .token.italic .token.content': {\n 'color': '#f472b6'\n },\n '.language-markdown .token.strike .token.content': {\n 'color': '#3b82f6'\n },\n '.language-markdown .token.strike .token.punctuation': {\n 'color': '#3b82f6'\n },\n '.language-markdown .token.list.punctuation': {\n 'color': '#3b82f6'\n },\n '.language-markdown .token.title.important > .token.punctuation': {\n 'color': '#3b82f6'\n },\n 'bold': {\n 'fontWeight': 'bold'\n },\n 'italic': {\n 'fontStyle': 'italic'\n },\n 'namespace': {\n 'Opacity': '0.8'\n },\n 'token.tab:not(:empty):before': {\n 'color': '#64748b',\n 'textShadow': 'none'\n },\n 'token.cr:before': {\n 'color': '#64748b',\n 'textShadow': 'none'\n },\n 'token.lf:before': {\n 'color': '#64748b',\n 'textShadow': 'none'\n },\n 'token.space:before': {\n 'color': '#64748b',\n 'textShadow': 'none'\n },\n 'div.code-toolbar > .toolbar.toolbar > .toolbar-item': {\n 'marginRight': '0.4em'\n },\n 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > button': {\n 'background': '#1e293b',\n 'color': '#94a3b8',\n 'padding': '0.1em 0.4em',\n 'borderRadius': '0.3em'\n },\n 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > a': {\n 'background': '#1e293b',\n 'color': '#94a3b8',\n 'padding': '0.1em 0.4em',\n 'borderRadius': '0.3em'\n },\n 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > span': {\n 'background': '#1e293b',\n 'color': '#94a3b8',\n 'padding': '0.1em 0.4em',\n 'borderRadius': '0.3em'\n },\n 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover': {\n 'background': '#3b82f6',\n 'color': '#ffffff'\n },\n 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus': {\n 'background': '#3b82f6',\n 'color': '#ffffff'\n },\n 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover': {\n 'background': '#3b82f6',\n 'color': '#ffffff'\n },\n 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus': {\n 'background': '#3b82f6',\n 'color': '#ffffff'\n },\n 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover': {\n 'background': '#3b82f6',\n 'color': '#ffffff'\n },\n 'div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus': {\n 'background': '#3b82f6',\n 'color': '#ffffff'\n },\n '.line-highlight.line-highlight': {\n 'background': 'rgba(59, 130, 246, 0.08)'\n },\n '.line-highlight.line-highlight:before': {\n 'background': '#1e293b',\n 'color': '#e2e8f0',\n 'padding': '0.1em 0.6em',\n 'borderRadius': '0.3em',\n 'boxShadow': '0 2px 0 0 rgba(0, 0, 0, 0.2)'\n },\n '.line-highlight.line-highlight[data-end]:after': {\n 'background': '#1e293b',\n 'color': '#e2e8f0',\n 'padding': '0.1em 0.6em',\n 'borderRadius': '0.3em',\n 'boxShadow': '0 2px 0 0 rgba(0, 0, 0, 0.2)'\n },\n 'pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before': {\n 'backgroundColor': 'rgba(59, 130, 246, 0.08)'\n },\n '.line-numbers.line-numbers .line-numbers-rows': {\n 'borderRightColor': '#1e293b'\n },\n '.command-line .command-line-prompt': {\n 'borderRightColor': '#1e293b'\n },\n '.line-numbers .line-numbers-rows > span:before': {\n 'color': '#64748b'\n },\n '.command-line .command-line-prompt > span:before': {\n 'color': '#64748b'\n },\n '.rainbow-braces .token.token.punctuation.brace-level-1': {\n 'color': '#3b82f6'\n },\n '.rainbow-braces .token.token.punctuation.brace-level-5': {\n 'color': '#3b82f6'\n },\n '.rainbow-braces .token.token.punctuation.brace-level-9': {\n 'color': '#3b82f6'\n },\n '.rainbow-braces .token.token.punctuation.brace-level-2': {\n 'color': '#10b981'\n },\n '.rainbow-braces .token.token.punctuation.brace-level-6': {\n 'color': '#10b981'\n },\n '.rainbow-braces .token.token.punctuation.brace-level-10': {\n 'color': '#10b981'\n },\n '.rainbow-braces .token.token.punctuation.brace-level-3': {\n 'color': '#60a5fa'\n },\n '.rainbow-braces .token.token.punctuation.brace-level-7': {\n 'color': '#60a5fa'\n },\n '.rainbow-braces .token.token.punctuation.brace-level-11': {\n 'color': '#60a5fa'\n },\n '.rainbow-braces .token.token.punctuation.brace-level-4': {\n 'color': '#f472b6'\n },\n '.rainbow-braces .token.token.punctuation.brace-level-8': {\n 'color': '#f472b6'\n },\n '.rainbow-braces .token.token.punctuation.brace-level-12': {\n 'color': '#f472b6'\n },\n 'pre.diff-highlight > code .token.token.deleted:not(.prefix)': {\n 'backgroundColor': 'rgba(239, 68, 68, 0.15)'\n },\n 'pre > code.diff-highlight .token.token.deleted:not(.prefix)': {\n 'backgroundColor': 'rgba(239, 68, 68, 0.15)'\n },\n 'pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection': {\n 'backgroundColor': 'rgba(239, 68, 68, 0.25)'\n },\n 'pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection': {\n 'backgroundColor': 'rgba(239, 68, 68, 0.25)'\n },\n 'pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection': {\n 'backgroundColor': 'rgba(239, 68, 68, 0.25)'\n },\n 'pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection': {\n 'backgroundColor': 'rgba(239, 68, 68, 0.25)'\n },\n 'pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection': {\n 'backgroundColor': 'rgba(239, 68, 68, 0.25)'\n },\n 'pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection': {\n 'backgroundColor': 'rgba(239, 68, 68, 0.25)'\n },\n 'pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection': {\n 'backgroundColor': 'rgba(239, 68, 68, 0.25)'\n },\n 'pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection': {\n 'backgroundColor': 'rgba(239, 68, 68, 0.25)'\n },\n 'pre.diff-highlight > code .token.token.inserted:not(.prefix)': {\n 'backgroundColor': 'rgba(16, 185, 129, 0.15)'\n },\n 'pre > code.diff-highlight .token.token.inserted:not(.prefix)': {\n 'backgroundColor': 'rgba(16, 185, 129, 0.15)'\n },\n 'pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection': {\n 'backgroundColor': 'rgba(16, 185, 129, 0.25)'\n },\n 'pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection': {\n 'backgroundColor': 'rgba(16, 185, 129, 0.25)'\n },\n 'pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection': {\n 'backgroundColor': 'rgba(16, 185, 129, 0.25)'\n },\n 'pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection': {\n 'backgroundColor': 'rgba(16, 185, 129, 0.25)'\n },\n 'pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection': {\n 'backgroundColor': 'rgba(16, 185, 129, 0.25)'\n },\n 'pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection': {\n 'backgroundColor': 'rgba(16, 185, 129, 0.25)'\n },\n 'pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection': {\n 'backgroundColor': 'rgba(16, 185, 129, 0.25)'\n },\n 'pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection': {\n 'backgroundColor': 'rgba(16, 185, 129, 0.25)'\n },\n '.prism-previewer.prism-previewer:before': {\n 'borderColor': '#11111f'\n },\n '.prism-previewer-gradient.prism-previewer-gradient div': {\n 'borderColor': '#11111f',\n 'borderRadius': '0.3em'\n },\n '.prism-previewer-color.prism-previewer-color:before': {\n 'borderRadius': '0.3em'\n },\n '.prism-previewer-easing.prism-previewer-easing:before': {\n 'borderRadius': '0.3em'\n },\n '.prism-previewer.prism-previewer:after': {\n 'borderTopColor': '#11111f'\n },\n '.prism-previewer-flipped.prism-previewer-flipped.after': {\n 'borderBottomColor': '#11111f'\n },\n '.prism-previewer-angle.prism-previewer-angle:before': {\n 'background': '#1e293b'\n },\n '.prism-previewer-time.prism-previewer-time:before': {\n 'background': '#1e293b'\n },\n '.prism-previewer-easing.prism-previewer-easing': {\n 'background': '#1e293b'\n },\n '.prism-previewer-angle.prism-previewer-angle circle': {\n 'stroke': '#e2e8f0',\n 'strokeOpacity': '1'\n },\n '.prism-previewer-time.prism-previewer-time circle': {\n 'stroke': '#e2e8f0',\n 'strokeOpacity': '1'\n },\n '.prism-previewer-easing.prism-previewer-easing circle': {\n 'stroke': '#e2e8f0',\n 'fill': 'transparent'\n },\n '.prism-previewer-easing.prism-previewer-easing path': {\n 'stroke': '#e2e8f0'\n },\n '.prism-previewer-easing.prism-previewer-easing line': {\n 'stroke': '#e2e8f0'\n }\n}"
|
|
515
|
+
},
|
|
516
|
+
"description": "The theme to use for the code block.",
|
|
517
|
+
"name": "theme",
|
|
518
|
+
"parent": {
|
|
519
|
+
"fileName": "src/Markdown/CodeHighlighter.tsx",
|
|
520
|
+
"name": "CodeHighlighterProps"
|
|
521
|
+
},
|
|
522
|
+
"declarations": [
|
|
523
|
+
{
|
|
524
|
+
"fileName": "src/Markdown/CodeHighlighter.tsx",
|
|
525
|
+
"name": "CodeHighlighterProps"
|
|
526
|
+
}
|
|
527
|
+
],
|
|
528
|
+
"required": false,
|
|
529
|
+
"type": {
|
|
530
|
+
"name": "Record<string, string>"
|
|
531
|
+
}
|
|
433
532
|
}
|
|
434
533
|
}
|
|
435
534
|
},
|