@ronak27/superwise-chatbot-package 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 +46 -0
- package/dist/react-chatbot.es.js +409 -560
- package/dist/react-chatbot.umd.js +4 -193
- package/dist/superwise-chatbot-package.css +1 -0
- package/package.json +2 -3
package/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# My Chatbot Package
|
|
2
|
+
|
|
3
|
+
A customizable **React chatbot component** that can be embedded in any React project. Includes typewriter effects, PDF export, and persistent local chat history.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## **Features**
|
|
8
|
+
|
|
9
|
+
- Fully React-based, lightweight, and responsive
|
|
10
|
+
- Minimized & maximized states
|
|
11
|
+
- Typewriter effect for AI messages
|
|
12
|
+
- Input validation and character count
|
|
13
|
+
- Persistent chat history (localStorage)
|
|
14
|
+
- Download chat conversation as PDF
|
|
15
|
+
- Customizable primary color and styles
|
|
16
|
+
- Ready to publish as an npm package
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## **Installation**
|
|
21
|
+
|
|
22
|
+
Install via npm:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install chatbot-package
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## **Usage**
|
|
30
|
+
import Chatbot from "my-chatbot-package";
|
|
31
|
+
|
|
32
|
+
function App() {
|
|
33
|
+
return (
|
|
34
|
+
<div>
|
|
35
|
+
<h1>Demo Chatbot</h1>
|
|
36
|
+
<Chatbot
|
|
37
|
+
title="Superwise Expert Agent"
|
|
38
|
+
agentId="AGENT_ID_HERE"
|
|
39
|
+
discoveryAgentId="DISCOVERY_AGENT_ID_HERE"
|
|
40
|
+
primaryColor="#000000"
|
|
41
|
+
/>
|
|
42
|
+
</div>
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
ReactDOM.createRoot(document.getElementById("root")).render(<App />);
|