@melony/react 0.1.25 → 0.1.27
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 -2
- package/dist/index.cjs +460 -401
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +47 -46
- package/dist/index.d.ts +47 -46
- package/dist/index.js +456 -399
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -12,10 +12,12 @@ npm install @melony/react melony react
|
|
|
12
12
|
|
|
13
13
|
```tsx
|
|
14
14
|
import React from "react";
|
|
15
|
-
import { MelonyClient
|
|
15
|
+
import { MelonyClient } from "melony/client";
|
|
16
16
|
import { MelonyClientProvider, Thread } from "@melony/react";
|
|
17
17
|
|
|
18
|
-
const client = new MelonyClient(
|
|
18
|
+
const client = new MelonyClient({
|
|
19
|
+
url: "/api/chat"
|
|
20
|
+
});
|
|
19
21
|
|
|
20
22
|
export default function App() {
|
|
21
23
|
return (
|