radeax-ai-chatbot 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 +15 -51
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ An enterprise-grade, plug-and-play AI Chatbot React library powered by **Google
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Public Security & Zero-Tampering Guarantee
|
|
10
10
|
|
|
11
11
|
When you install `radeax-ai-chatbot` on any website (e.g. `abc.com`):
|
|
12
12
|
|
|
@@ -15,11 +15,11 @@ When you install `radeax-ai-chatbot` on any website (e.g. `abc.com`):
|
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
- **Public End-User View**: Visitors **only** see the clean floating chat bubble in the corner.
|
|
18
|
-
- **Strict Privacy**:
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
- All
|
|
18
|
+
- **Value Strict Privacy**:
|
|
19
|
+
- **No admin controls via domain specific creation**
|
|
20
|
+
- **Zero possibility of public visitors viewing or tampering with API keys**.
|
|
21
|
+
- **No access to the knowledge base or collected leads by visitors**.
|
|
22
|
+
- All things are cleanly and securely controlled .
|
|
23
23
|
|
|
24
24
|
---
|
|
25
25
|
|
|
@@ -33,9 +33,9 @@ npm install radeax-ai-chatbot lucide-react
|
|
|
33
33
|
|
|
34
34
|
---
|
|
35
35
|
|
|
36
|
-
##
|
|
36
|
+
## Complete Developer Usage Guide (Complete Customization Guide)
|
|
37
37
|
|
|
38
|
-
### 1. Minimal
|
|
38
|
+
### 1. Minimal Start No-Config Example
|
|
39
39
|
|
|
40
40
|
```jsx
|
|
41
41
|
import React from 'react';
|
|
@@ -57,7 +57,7 @@ export default function App() {
|
|
|
57
57
|
|
|
58
58
|
---
|
|
59
59
|
|
|
60
|
-
### 2.
|
|
60
|
+
### 2. Main Customization Example
|
|
61
61
|
|
|
62
62
|
Every visual element, branding, status caption, and message can be customized via props:
|
|
63
63
|
|
|
@@ -86,19 +86,19 @@ export default function App() {
|
|
|
86
86
|
backgroundColor="#ffffff" // Chat window background
|
|
87
87
|
textColor="#0f172a" // Text color
|
|
88
88
|
borderRadius="16px" // Corner curvature
|
|
89
|
-
fontSize="14px"
|
|
89
|
+
fontSize="14px"
|
|
90
90
|
position="bottom-right" // 'bottom-right' or 'bottom-left'
|
|
91
91
|
customAvatar="https://abc.com/avatar.png" // Image URL or emoji string (default: 🤖)
|
|
92
92
|
|
|
93
93
|
// 4. Automatic Lead Capture & GDPR
|
|
94
94
|
enableLeadGeneration={true}
|
|
95
|
-
leadMessageThreshold={2} //
|
|
95
|
+
leadMessageThreshold={2} // lead prompt after 2 user messages
|
|
96
96
|
leadCollectionMessage="Would you like a team member to follow up with you? Please share your details."
|
|
97
97
|
gdprEnabled={true}
|
|
98
98
|
gdprMessage="I consent to the collection of my contact details for follow-up purposes."
|
|
99
99
|
onLeadSubmit={(lead) => {
|
|
100
100
|
console.log('New lead collected:', lead);
|
|
101
|
-
// Dispatch to CRM or
|
|
101
|
+
// Any you can add Dispatch to CRM or Backend Database
|
|
102
102
|
}}
|
|
103
103
|
/>
|
|
104
104
|
);
|
|
@@ -173,7 +173,7 @@ Your server endpoint (Node.js/Next.js/Express) receives the prompt payload and f
|
|
|
173
173
|
|
|
174
174
|
---
|
|
175
175
|
|
|
176
|
-
##
|
|
176
|
+
## Props API Reference Table
|
|
177
177
|
|
|
178
178
|
| Prop Name | Type | Default | Description |
|
|
179
179
|
|---|---|---|---|
|
|
@@ -204,49 +204,13 @@ Your server endpoint (Node.js/Next.js/Express) receives the prompt payload and f
|
|
|
204
204
|
|
|
205
205
|
---
|
|
206
206
|
|
|
207
|
-
## 📤 Step-by-Step Guide: How to Publish to NPM
|
|
208
|
-
|
|
209
|
-
### Step 1: Open Terminal in the Library Directory
|
|
210
|
-
```bash
|
|
211
|
-
cd c:\Users\OwaisZafar\Desktop\flutterplugin\chatbot\multinet-ai-chatbot
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
### Step 2: Build the Production Distribution
|
|
215
|
-
```bash
|
|
216
|
-
npm run build
|
|
217
|
-
```
|
|
218
|
-
This compiles the library bundle into `dist/`:
|
|
219
|
-
- `dist/index.js` (Modern ES Module)
|
|
220
|
-
- `dist/index.cjs` (CommonJS format)
|
|
221
|
-
- `dist/index.d.ts` (Full TypeScript definitions)
|
|
222
|
-
- `dist/style.css` (Optimized CSS)
|
|
223
|
-
|
|
224
|
-
### Step 3: Login to your NPM Account
|
|
225
|
-
If you don't have an NPM account yet, register for free at [npmjs.com](https://www.npmjs.com/). Then run:
|
|
226
|
-
```bash
|
|
227
|
-
npm login
|
|
228
|
-
```
|
|
229
|
-
Enter your NPM username, password, email, and one-time authentication code.
|
|
230
|
-
|
|
231
|
-
### Step 4: Publish to NPM Registry
|
|
232
|
-
```bash
|
|
233
|
-
npm publish --access public
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
Once published, developers worldwide can install your package:
|
|
237
|
-
```bash
|
|
238
|
-
npm install radeax-ai-chatbot
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
---
|
|
242
|
-
|
|
243
207
|
## 👨💻 Developer & Author
|
|
244
208
|
|
|
245
209
|
**Radeax AI Chatbot** was engineered and developed by:
|
|
246
210
|
|
|
247
211
|
**Muhammad Owais Khan**
|
|
248
|
-
*Senior Software Engineer*
|
|
249
|
-
Expertise in Generative AI Integration, React Systems Architecture, and Enterprise Web Applications.
|
|
212
|
+
*Senior Software Engineer & Mobile Application Engineer*
|
|
213
|
+
Expertise in Generative AI Integration, React Systems Architecture, Enterprise Mobile Application Systems and Enterprise Web Applications.
|
|
250
214
|
|
|
251
215
|
---
|
|
252
216
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "radeax-ai-chatbot",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Enterprise Google Gemini AI Chatbot library for React with visual URL scraping, Q&A knowledge base, and automated lead capture. Developed by Muhammad Owais Khan, Senior Software Engineer.",
|
|
5
5
|
"author": "Muhammad Owais Khan <Senior Software Engineer>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,4 +56,4 @@
|
|
|
56
56
|
"react-dom": "^19.3.1",
|
|
57
57
|
"vite": "^8.3.6"
|
|
58
58
|
}
|
|
59
|
-
}
|
|
59
|
+
}
|