@cagent/chat-embedding-react 0.0.2

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 ADDED
@@ -0,0 +1,46 @@
1
+ <!-- markdownlint-disable MD030 -->
2
+
3
+ # C-Agent Embed React
4
+
5
+ React library to display c-agent chatbot on your website
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install @cagent/chat-embedding-core @cagent/chat-embedding-react
11
+ ```
12
+
13
+ or
14
+
15
+ ```bash
16
+ bun add @cagent/chat-embedding-core @cagent/chat-embedding-react
17
+ ```
18
+
19
+ ## Import
20
+
21
+ Full Page Chat
22
+
23
+ ```tsx
24
+ import { FullPageChat } from "@cagent/chat-embedding-react";
25
+
26
+ const App = () => {
27
+ return (
28
+ <FullPageChat
29
+ chatflowid="your-chatflow-id"
30
+ apiHost="http://localhost:3000"
31
+ />
32
+ );
33
+ };
34
+ ```
35
+
36
+ Popup Chat
37
+
38
+ ```tsx
39
+ import { BubbleChat } from "@cagent/chat-embedding-react";
40
+
41
+ const App = () => {
42
+ return (
43
+ <BubbleChat chatflowid="your-chatflow-id" apiHost="http://localhost:3000" />
44
+ );
45
+ };
46
+ ```
package/base.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "Default",
4
+ "compilerOptions": {
5
+ "composite": false,
6
+ "declaration": true,
7
+ "declarationMap": true,
8
+ "esModuleInterop": true,
9
+ "forceConsistentCasingInFileNames": true,
10
+ "inlineSources": false,
11
+ "isolatedModules": true,
12
+ "moduleResolution": "node",
13
+ "noUnusedLocals": false,
14
+ "noUnusedParameters": false,
15
+ "preserveWatchOutput": true,
16
+ "skipLibCheck": true,
17
+ "strict": true,
18
+ "downlevelIteration": true
19
+ },
20
+ "exclude": ["node_modules"]
21
+ }