@melony/react 0.1.29 → 0.1.31
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/dist/index.cjs +3 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -4
- package/dist/index.d.ts +1 -4
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -144,10 +144,10 @@ var MelonyContextProviderInner = ({
|
|
|
144
144
|
[client, reset]
|
|
145
145
|
);
|
|
146
146
|
const sendEvent = React11.useCallback(
|
|
147
|
-
async (event
|
|
147
|
+
async (event) => {
|
|
148
148
|
const handled = await dispatchClientAction(event);
|
|
149
149
|
if (handled) return;
|
|
150
|
-
const generator = client.sendEvent(event
|
|
150
|
+
const generator = client.sendEvent(event);
|
|
151
151
|
for await (const incomingEvent of generator) {
|
|
152
152
|
await dispatchClientAction(incomingEvent);
|
|
153
153
|
}
|
|
@@ -2920,9 +2920,7 @@ function Thread({
|
|
|
2920
2920
|
{
|
|
2921
2921
|
type: "text",
|
|
2922
2922
|
role: "user",
|
|
2923
|
-
data: { content: text || "" }
|
|
2924
|
-
},
|
|
2925
|
-
{
|
|
2923
|
+
data: { content: text || "" },
|
|
2926
2924
|
state: {
|
|
2927
2925
|
...state,
|
|
2928
2926
|
threadId: activeThreadId ?? void 0
|