teodor-new-chat-ui 4.3.341 → 4.3.343
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/ChatProviders.d.ts +2 -1
- package/dist/context/providers/ChatSessionProvider.d.ts +2 -1
- package/dist/index.esm.js +3894 -3886
- package/dist/index.umd.js +38 -38
- package/package.json +1 -1
|
@@ -14,11 +14,12 @@ export interface ChatProvidersProps {
|
|
|
14
14
|
initialCheckpointId?: string | null;
|
|
15
15
|
initialCheckpointNs?: string | null;
|
|
16
16
|
autoLoadInitial?: boolean;
|
|
17
|
+
onConnectionError?: (error: string) => void;
|
|
17
18
|
onError?: (error: string) => void;
|
|
18
19
|
onAuthError?: (error: string) => void;
|
|
19
20
|
onThreadChange?: (threadId: string | null) => void;
|
|
20
21
|
}
|
|
21
|
-
export declare function ChatProviders({ children, apiConfig, initialThreadId, initialCheckpointId, initialCheckpointNs, autoLoadInitial, onError, onAuthError, onThreadChange, }: ChatProvidersProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function ChatProviders({ children, apiConfig, initialThreadId, initialCheckpointId, initialCheckpointNs, autoLoadInitial, onConnectionError, onError, onAuthError, onThreadChange, }: ChatProvidersProps): import("react/jsx-runtime").JSX.Element;
|
|
22
23
|
export { useApi } from './providers/ApiProvider';
|
|
23
24
|
export { useStream, useThreads, useThreadState } from './providers/ChatSessionProvider';
|
|
24
25
|
export type { ApiContextValue, SendOptions, StreamContextValue, ThreadsContextValue, ThreadStateContextValue } from './types';
|
|
@@ -82,8 +82,9 @@ interface ChatSessionProviderProps {
|
|
|
82
82
|
onError?: (error: string) => void;
|
|
83
83
|
onAuthError?: (error: string) => void;
|
|
84
84
|
onThreadChange?: (threadId: string | null) => void;
|
|
85
|
+
onConnectionError?: (error: string) => void;
|
|
85
86
|
}
|
|
86
|
-
export declare function ChatSessionProvider({ children, initialThreadId, initialCheckpointId, initialCheckpointNs, autoLoadInitial, onError, onAuthError, onThreadChange, }: ChatSessionProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
87
|
+
export declare function ChatSessionProvider({ children, initialThreadId, initialCheckpointId, initialCheckpointNs, autoLoadInitial, onError, onAuthError, onThreadChange, onConnectionError, }: ChatSessionProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
87
88
|
/**
|
|
88
89
|
* Hook to check if the current component is within a ChatSessionProvider
|
|
89
90
|
*/
|