teodor-new-chat-ui 4.3.292 → 4.3.294
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 +1 -3
- package/dist/context/providers/ChatSessionProvider.d.ts +1 -3
- package/dist/index.esm.js +4796 -4855
- package/dist/index.umd.js +41 -41
- package/package.json +1 -1
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { ApiConfig } from '@/types/api';
|
|
9
9
|
import { type ReactNode } from 'react';
|
|
10
|
-
import type { CheckpointMetadataCache } from './hooks/useCheckpointMetadataCache';
|
|
11
10
|
export interface ChatProvidersProps {
|
|
12
11
|
children: ReactNode;
|
|
13
12
|
apiConfig?: ApiConfig;
|
|
@@ -18,9 +17,8 @@ export interface ChatProvidersProps {
|
|
|
18
17
|
onError?: (error: string) => void;
|
|
19
18
|
onAuthError?: (error: string) => void;
|
|
20
19
|
onThreadChange?: (threadId: string | null) => void;
|
|
21
|
-
checkpointMetadataCache?: CheckpointMetadataCache;
|
|
22
20
|
}
|
|
23
|
-
export declare function ChatProviders({ children, apiConfig, initialThreadId, initialCheckpointId, initialCheckpointNs, autoLoadInitial, onError, onAuthError, onThreadChange,
|
|
21
|
+
export declare function ChatProviders({ children, apiConfig, initialThreadId, initialCheckpointId, initialCheckpointNs, autoLoadInitial, onError, onAuthError, onThreadChange, }: ChatProvidersProps): import("react/jsx-runtime").JSX.Element;
|
|
24
22
|
export { useApi } from './providers/ApiProvider';
|
|
25
23
|
export { useStream, useThreads, useThreadState } from './providers/ChatSessionProvider';
|
|
26
24
|
export type { ApiContextValue, SendOptions, StreamContextValue, ThreadsContextValue, ThreadStateContextValue } from './types';
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
*/
|
|
34
34
|
import type { ChatMessage, HydratedCheckpointSnapshot, PendingInterrupt, StreamContextValue, ThreadSummary, TimelineCheckpoint } from '@/types/api';
|
|
35
35
|
import { type ReactNode } from 'react';
|
|
36
|
-
import { CheckpointMetadataCache } from '../hooks/useCheckpointMetadataCache';
|
|
37
36
|
interface ThreadsContextValue {
|
|
38
37
|
threads: ThreadSummary[];
|
|
39
38
|
currentThreadId: string | null;
|
|
@@ -82,9 +81,8 @@ interface ChatSessionProviderProps {
|
|
|
82
81
|
onError?: (error: string) => void;
|
|
83
82
|
onAuthError?: (error: string) => void;
|
|
84
83
|
onThreadChange?: (threadId: string | null) => void;
|
|
85
|
-
checkpointMetadataCache?: CheckpointMetadataCache;
|
|
86
84
|
}
|
|
87
|
-
export declare function ChatSessionProvider({ children, initialThreadId, initialCheckpointId, initialCheckpointNs, autoLoadInitial, onError, onAuthError, onThreadChange,
|
|
85
|
+
export declare function ChatSessionProvider({ children, initialThreadId, initialCheckpointId, initialCheckpointNs, autoLoadInitial, onError, onAuthError, onThreadChange, }: ChatSessionProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
88
86
|
/**
|
|
89
87
|
* Hook to check if the current component is within a ChatSessionProvider
|
|
90
88
|
*/
|