react-ai-agent 1.5.7 → 1.5.8
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 +4 -4
- package/index.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -15,13 +15,13 @@ Clean, production-ready React chat component. Bring your own API - you control e
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
npm install react-
|
|
18
|
+
npm install react-ai-agent
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
Then import the ui in your app:
|
|
22
22
|
|
|
23
23
|
```javascript
|
|
24
|
-
import 'react-
|
|
24
|
+
import 'react-ai-agent/ui.css';
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## Quick Start
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
DefaultPanel,
|
|
33
33
|
tokenManager,
|
|
34
34
|
sessionManager
|
|
35
|
-
} from 'react-
|
|
35
|
+
} from 'react-ai-agent';
|
|
36
36
|
|
|
37
37
|
function App() {
|
|
38
38
|
// 1. Configure token refresh
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
chatApi, // API client
|
|
94
94
|
streamService, // Stream handler
|
|
95
95
|
webSocketService // WebSocket client
|
|
96
|
-
} from 'react-
|
|
96
|
+
} from 'react-ai-agent';
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
## Examples
|
package/index.d.ts
CHANGED
|
@@ -626,7 +626,7 @@ export declare class MessageManager {
|
|
|
626
626
|
// CSS Import
|
|
627
627
|
// ============================================================================
|
|
628
628
|
|
|
629
|
-
declare module 'react-
|
|
629
|
+
declare module 'react-ai-agent/ui.css' {
|
|
630
630
|
const content: string;
|
|
631
631
|
export default content;
|
|
632
632
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-ai-agent",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Chat Agent - A production-ready chat provider with WebSocket support",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -97,6 +97,6 @@
|
|
|
97
97
|
"license": "MIT",
|
|
98
98
|
"repository": {
|
|
99
99
|
"type": "git",
|
|
100
|
-
"url": "https://github.com/oblien/react-
|
|
100
|
+
"url": "https://github.com/oblien/react-ai-agent"
|
|
101
101
|
}
|
|
102
102
|
}
|