cmcts-c-agent-embedding-react 1.0.38 → 1.0.41
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/.idea/Flowise-share-chatbox-main.iml +1 -0
- package/README.md +48 -27
- package/dist/index.js +1 -1
- package/package.json +2 -2
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
6
6
|
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
7
7
|
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
+
<excludeFolder url="file://$MODULE_DIR$/.idea" />
|
|
8
9
|
</content>
|
|
9
10
|
<orderEntry type="inheritedJdk" />
|
|
10
11
|
<orderEntry type="sourceFolder" forTests="false" />
|
package/README.md
CHANGED
|
@@ -1,27 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
<!-- markdownlint-disable MD030 -->
|
|
2
|
+
|
|
3
|
+
# Flowise Embed React
|
|
4
|
+
|
|
5
|
+
React library to display flowise chatbot on your website
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install c-agent-embedding c-agent-embedding-react
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
or
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
yarn add c-agent-embedding c-agent-embedding-react
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Import
|
|
22
|
+
|
|
23
|
+
Full Page Chat
|
|
24
|
+
|
|
25
|
+
```tsx
|
|
26
|
+
import { FullPageChat } from "c-agent-embedding-react";
|
|
27
|
+
|
|
28
|
+
const App = () => {
|
|
29
|
+
return (
|
|
30
|
+
<FullPageChat
|
|
31
|
+
chatflowid="your-chatflow-id"
|
|
32
|
+
apiHost="http://localhost:3000"
|
|
33
|
+
/>
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Popup Chat
|
|
39
|
+
|
|
40
|
+
```tsx
|
|
41
|
+
import { BubbleChat } from "c-agent-embedding-react";
|
|
42
|
+
|
|
43
|
+
const App = () => {
|
|
44
|
+
return (
|
|
45
|
+
<BubbleChat chatflowid="your-chatflow-id" apiHost="http://localhost:3000" />
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
|
+
```
|