teodor-new-chat-ui 4.1.49 → 4.1.51
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/components/langgraph_sdk_pack/components/LangGraphThreadManager.d.ts +1 -1
- package/dist/context/ChatProviders.d.ts +2 -2
- package/dist/context/index.d.ts +2 -2
- package/dist/context/providers/ChatSessionProvider.d.ts +3 -3
- package/dist/context/types.d.ts +1 -1
- package/dist/index.esm.js +6293 -6139
- package/dist/index.umd.js +50 -50
- package/dist/lib/index.d.ts +2 -2
- package/dist/types/api.d.ts +92 -93
- package/package.json +1 -1
- package/dist/hooks/useLangGraphThreadManager.d.ts +0 -57
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* A thread sidebar component built specifically for LangGraph + useStream
|
|
5
5
|
* No external dependencies on the old ChatSessionProvider
|
|
6
6
|
*/
|
|
7
|
-
import type { ThreadInfo } from '
|
|
7
|
+
import type { ThreadInfo } from '../hooks/useLangGraphThreadManager';
|
|
8
8
|
export interface LangGraphThreadManagerProps {
|
|
9
9
|
className?: string;
|
|
10
10
|
showCreateButton?: boolean;
|
|
@@ -20,5 +20,5 @@ export interface ChatProvidersProps {
|
|
|
20
20
|
}
|
|
21
21
|
export declare function ChatProviders({ children, apiConfig, initialThreadId, autoLoadInitial, disableAutoRestore, enableFileAgentRouting, fileAgentId, onError, onThreadChange, }: ChatProvidersProps): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export { useApi } from './providers/ApiProvider';
|
|
23
|
-
export { useStream, useThreads,
|
|
24
|
-
export type { ApiContextValue, StreamContextValue,
|
|
23
|
+
export { useStream, useThreads, useThreadState } from './providers/ChatSessionProvider';
|
|
24
|
+
export type { ApiContextValue, StreamContextValue, ThreadsContextValue, ThreadStateContextValue, SendOptions, } from './types';
|
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, useHasChatSession,
|
|
12
|
+
export { ChatSessionProvider, useHasChatSession, useThreadState, useStream, useThreads } from './providers/ChatSessionProvider';
|
|
13
13
|
export { useMessagesReducer } from './reducers/MessageReducer';
|
|
14
14
|
export type { ReducerStreamEvent } from './reducers/MessageReducer';
|
|
15
|
-
export type { SendOptions, ApiContextValue, StreamContextValue,
|
|
15
|
+
export type { SendOptions, ApiContextValue, StreamContextValue, ThreadStateContextValue, ThreadsContextValue, CoordinatorOptions, } from '@/types/api';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { StreamContextValue, ThreadsContextValue, ThreadStateContextValue } from '@/types/api';
|
|
3
3
|
interface ChatSessionProviderPropsBase {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
initialThreadId?: string | null;
|
|
@@ -12,8 +12,8 @@ interface ChatSessionProviderPropsBase {
|
|
|
12
12
|
}
|
|
13
13
|
export type ChatSessionProviderProps = ChatSessionProviderPropsBase;
|
|
14
14
|
export declare function ChatSessionProvider({ children, initialThreadId, autoLoadInitial, disableAutoRestore, enableFileAgentRouting, fileAgentId, onError, onThreadChange, }: ChatSessionProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export declare function useThreads():
|
|
16
|
-
export declare function
|
|
15
|
+
export declare function useThreads(): ThreadsContextValue;
|
|
16
|
+
export declare function useThreadState(): ThreadStateContextValue;
|
|
17
17
|
export declare function useStream(): StreamContextValue;
|
|
18
18
|
export declare function useHasChatSession(): boolean;
|
|
19
19
|
export {};
|
package/dist/context/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { ApiContextValue, StreamContextValue,
|
|
1
|
+
export type { ApiContextValue, StreamContextValue, ThreadsContextValue, ThreadStateContextValue, SendOptions, StreamEvent, MessageAction, StreamAction, ThreadAction, CoordinatorOptions, } from '@/types/api';
|