teodor-new-chat-ui 4.3.178 → 4.3.180
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/index.d.ts +1 -1
- package/dist/context/providers/ChatSessionProvider.d.ts +8 -1
- package/dist/index.esm.js +3900 -3892
- package/dist/index.umd.js +30 -30
- package/dist/lib/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/context/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export { ChatProviders } from './ChatProviders';
|
|
11
11
|
export { ApiProvider, useApi } from './providers/ApiProvider';
|
|
12
|
-
export { ChatSessionProvider, useStream, useThreads, useThreadState } from './providers/ChatSessionProvider';
|
|
12
|
+
export { ChatSessionProvider, useHasChatSession, useStream, useThreads, useThreadState } from './providers/ChatSessionProvider';
|
|
13
13
|
export { useMessagesReducer } from './reducers/MessageReducer';
|
|
14
14
|
export type { ReducerStreamEvent } from './reducers/MessageReducer';
|
|
15
15
|
export type { ApiContextValue, CoordinatorOptions, SendOptions, StreamContextValue, ThreadsContextValue, ThreadStateContextValue } from '@/types/api';
|
|
@@ -61,11 +61,18 @@ interface ChatSessionProviderProps {
|
|
|
61
61
|
children: ReactNode;
|
|
62
62
|
initialThreadId?: string | null;
|
|
63
63
|
autoLoadInitial?: boolean;
|
|
64
|
+
disableAutoRestore?: boolean;
|
|
65
|
+
enableFileAgentRouting?: boolean;
|
|
66
|
+
fileAgentId?: string;
|
|
64
67
|
onError?: (error: string) => void;
|
|
65
68
|
onAuthError?: (error: string) => void;
|
|
66
69
|
onThreadChange?: (threadId: string | null) => void;
|
|
67
70
|
}
|
|
68
|
-
export declare function ChatSessionProvider({ children, initialThreadId, autoLoadInitial, onError, onAuthError, onThreadChange, }: ChatSessionProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
export declare function ChatSessionProvider({ children, initialThreadId, autoLoadInitial, disableAutoRestore, enableFileAgentRouting, fileAgentId, onError, onAuthError, onThreadChange, }: ChatSessionProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
/**
|
|
73
|
+
* Hook to check if the current component is within a ChatSessionProvider
|
|
74
|
+
*/
|
|
75
|
+
export declare function useHasChatSession(): boolean;
|
|
69
76
|
export declare function useThreads(): ThreadsContextValue;
|
|
70
77
|
export declare function useThreadState(): ThreadStateContextValue;
|
|
71
78
|
export declare function useStream(): StreamContextValue;
|