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.
@@ -51,7 +51,7 @@ interface StartStreamCallbacks {
51
51
  onHeartbeat?: (event: HeartbeatEvent) => void;
52
52
  }
53
53
  /**
54
- * Thin integration layer that adapts the public `useChatStream` hook to the
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 UseChatStream = {
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 useChatStream(opts?: UseChatStreamOptions): UseChatStream;
47
+ export declare function useStream(opts?: UseChatStreamOptions): UseStreamApi;