reachat 1.1.0 → 1.3.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/README.md +2 -1
- package/dist/ChatInput.d.ts +8 -2
- package/dist/Markdown/Markdown.d.ts +4 -0
- package/dist/docs.json +25 -4
- package/dist/index.js +85 -32
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +82 -31
- package/dist/index.umd.cjs.map +1 -1
- package/dist/theme.d.ts +2 -0
- package/package.json +3 -1
package/README.md
CHANGED
package/dist/ChatInput.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
2
|
|
|
3
3
|
interface ChatInputProps {
|
|
4
4
|
/**
|
|
@@ -26,5 +26,11 @@ interface ChatInputProps {
|
|
|
26
26
|
*/
|
|
27
27
|
attachIcon?: ReactElement;
|
|
28
28
|
}
|
|
29
|
-
export
|
|
29
|
+
export interface ChatInputRef {
|
|
30
|
+
/**
|
|
31
|
+
* Focus the input.
|
|
32
|
+
*/
|
|
33
|
+
focus: () => void;
|
|
34
|
+
}
|
|
35
|
+
export declare const ChatInput: import('react').ForwardRefExoticComponent<ChatInputProps & import('react').RefAttributes<ChatInputRef>>;
|
|
30
36
|
export {};
|
|
@@ -6,6 +6,10 @@ interface MarkdownWrapperProps extends PropsWithChildren {
|
|
|
6
6
|
* Remark plugins to apply to the markdown content.
|
|
7
7
|
*/
|
|
8
8
|
remarkPlugins?: PluggableList[];
|
|
9
|
+
/**
|
|
10
|
+
* Rehype plugins to apply to the markdown content.
|
|
11
|
+
*/
|
|
12
|
+
rehypePlugins?: PluggableList[];
|
|
9
13
|
}
|
|
10
14
|
export declare const Markdown: FC<MarkdownWrapperProps>;
|
|
11
15
|
export {};
|
package/dist/docs.json
CHANGED
|
@@ -123,7 +123,9 @@
|
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
"remarkPlugins": {
|
|
126
|
-
"defaultValue":
|
|
126
|
+
"defaultValue": {
|
|
127
|
+
"value": "[remarkGfm, remarkYoutube, remarkMath]"
|
|
128
|
+
},
|
|
127
129
|
"description": "Remark plugins to apply to the request/response.",
|
|
128
130
|
"name": "remarkPlugins",
|
|
129
131
|
"parent": {
|
|
@@ -559,9 +561,7 @@
|
|
|
559
561
|
"methods": [],
|
|
560
562
|
"props": {
|
|
561
563
|
"remarkPlugins": {
|
|
562
|
-
"defaultValue":
|
|
563
|
-
"value": "[remarkGfm]"
|
|
564
|
-
},
|
|
564
|
+
"defaultValue": null,
|
|
565
565
|
"description": "Remark plugins to apply to the markdown content.",
|
|
566
566
|
"name": "remarkPlugins",
|
|
567
567
|
"parent": {
|
|
@@ -578,6 +578,27 @@
|
|
|
578
578
|
"type": {
|
|
579
579
|
"name": "PluggableList[]"
|
|
580
580
|
}
|
|
581
|
+
},
|
|
582
|
+
"rehypePlugins": {
|
|
583
|
+
"defaultValue": {
|
|
584
|
+
"value": "[rehypeKatex]"
|
|
585
|
+
},
|
|
586
|
+
"description": "Rehype plugins to apply to the markdown content.",
|
|
587
|
+
"name": "rehypePlugins",
|
|
588
|
+
"parent": {
|
|
589
|
+
"fileName": "src/Markdown/Markdown.tsx",
|
|
590
|
+
"name": "MarkdownWrapperProps"
|
|
591
|
+
},
|
|
592
|
+
"declarations": [
|
|
593
|
+
{
|
|
594
|
+
"fileName": "src/Markdown/Markdown.tsx",
|
|
595
|
+
"name": "MarkdownWrapperProps"
|
|
596
|
+
}
|
|
597
|
+
],
|
|
598
|
+
"required": false,
|
|
599
|
+
"type": {
|
|
600
|
+
"name": "PluggableList[]"
|
|
601
|
+
}
|
|
581
602
|
}
|
|
582
603
|
}
|
|
583
604
|
},
|