teodor-new-chat-ui 4.3.350 → 4.3.352
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/context/{hooks/useChatStreamingService.d.ts → services/streaming/use-streaming-service.d.ts} +1 -1
- package/dist/hooks/{use-chat.d.ts → use-stream.d.ts} +2 -2
- package/dist/index.esm.js +3575 -3569
- package/dist/index.umd.js +36 -36
- package/dist/lib/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -51,7 +51,7 @@ interface StartStreamCallbacks {
|
|
|
51
51
|
onHeartbeat?: (event: HeartbeatEvent) => void;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
* Thin integration layer that adapts the public `
|
|
54
|
+
* Thin integration layer that adapts the public `useStream` hook to the
|
|
55
55
|
* coordination callbacks expected by `ChatSessionProvider`. Keeping this logic
|
|
56
56
|
* here means we continue to rely on the well-tested streaming hook for all SSE
|
|
57
57
|
* behaviour while the provider focuses purely on state updates.
|
|
@@ -7,7 +7,7 @@ export type UseChatStreamOptions = {
|
|
|
7
7
|
credentials?: RequestCredentials;
|
|
8
8
|
autoAppendAssistant?: boolean;
|
|
9
9
|
};
|
|
10
|
-
export type
|
|
10
|
+
export type UseStreamApi = {
|
|
11
11
|
isStreaming: boolean;
|
|
12
12
|
error: string | null;
|
|
13
13
|
lastCheckpointId: string | null;
|
|
@@ -44,4 +44,4 @@ export type UseChatStream = {
|
|
|
44
44
|
clear: () => void;
|
|
45
45
|
setToken: (t: string | null) => void;
|
|
46
46
|
};
|
|
47
|
-
export declare function
|
|
47
|
+
export declare function useStream(opts?: UseChatStreamOptions): UseStreamApi;
|