@irisidea/kalrav-ai 1.0.10 → 1.0.11
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 +1 -68
- package/dist/routeye-widget.js +1 -1
- package/dist/types-CrZb4oBn.d.mts +28 -0
- package/dist/types-CrZb4oBn.d.ts +28 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -324,7 +324,6 @@ kalrav.open();
|
|
|
324
324
|
| `agentId` | `string` | ✅ Yes | - | Your agent/bot ID |
|
|
325
325
|
| `primaryColor` | `string` | No | `#4F46E5` | Primary color for the widget |
|
|
326
326
|
| `autoLoad` | `boolean` | No | `true` | Auto-load widget on mount |
|
|
327
|
-
| `widgetUrl` | `string` | No | `https://widget.kalrav.ai/routeye-widget.js` | Custom widget script URL |
|
|
328
327
|
|
|
329
328
|
---
|
|
330
329
|
|
|
@@ -511,73 +510,7 @@ const config: KalravConfig = {
|
|
|
511
510
|
|
|
512
511
|
---
|
|
513
512
|
|
|
514
|
-
##
|
|
515
|
-
|
|
516
|
-
### Testing with npm link
|
|
517
|
-
|
|
518
|
-
When developing the library locally:
|
|
519
|
-
|
|
520
|
-
1. **Link the library:**
|
|
521
|
-
```bash
|
|
522
|
-
cd agent-widget-js
|
|
523
|
-
npm run build
|
|
524
|
-
npm link
|
|
525
|
-
```
|
|
526
|
-
|
|
527
|
-
2. **Link in your test project:**
|
|
528
|
-
```bash
|
|
529
|
-
cd your-test-app
|
|
530
|
-
npm link @irisidea/kalrav-ai
|
|
531
|
-
```
|
|
532
|
-
|
|
533
|
-
3. **Use local Docker widget URL:**
|
|
534
|
-
```tsx
|
|
535
|
-
<KalravWidget
|
|
536
|
-
apiKey="your-api-key"
|
|
537
|
-
agentId="your-agent-id"
|
|
538
|
-
widgetUrl="http://localhost:9090/routeye-widget.js" // Point to local Docker
|
|
539
|
-
/>
|
|
540
|
-
```
|
|
541
|
-
|
|
542
|
-
### Running Local Docker Widget
|
|
543
|
-
|
|
544
|
-
Build and run the widget locally for testing:
|
|
545
|
-
|
|
546
|
-
```bash
|
|
547
|
-
# Build Docker image
|
|
548
|
-
docker-compose build
|
|
549
|
-
|
|
550
|
-
# Start container
|
|
551
|
-
docker-compose up -d
|
|
552
|
-
|
|
553
|
-
# Widget available at: http://localhost:9090/routeye-widget.js
|
|
554
|
-
```
|
|
555
|
-
|
|
556
|
-
Test it:
|
|
557
|
-
```bash
|
|
558
|
-
# Open test HTML file
|
|
559
|
-
open test-local-docker.html
|
|
560
|
-
```
|
|
561
|
-
|
|
562
|
-
### Build Commands
|
|
563
|
-
|
|
564
|
-
```bash
|
|
565
|
-
# Install dependencies
|
|
566
|
-
npm install
|
|
567
|
-
|
|
568
|
-
# Build both npm package and widget bundle
|
|
569
|
-
npm run build
|
|
570
|
-
|
|
571
|
-
# Watch mode (npm package only)
|
|
572
|
-
npm run dev
|
|
573
|
-
|
|
574
|
-
# Build widget bundle only
|
|
575
|
-
npm run build:widget
|
|
576
|
-
```
|
|
577
|
-
|
|
578
|
-
---
|
|
579
|
-
|
|
580
|
-
## 📄 License
|
|
513
|
+
## License
|
|
581
514
|
|
|
582
515
|
MIT © [Kalrav AI](https://kalrav.ai)
|
|
583
516
|
|