teodor-new-chat-ui 4.0.11 → 4.0.13
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/chat/ChatApp.d.ts +4 -4
- package/dist/components/chat/ChatInterface.d.ts +2 -1
- package/dist/context/ChatProviders.d.ts +4 -4
- package/dist/context/index.d.ts +0 -2
- package/dist/index.esm.js +3472 -3526
- package/dist/index.umd.js +35 -35
- package/dist/lib/index.d.ts +1 -2
- package/dist/types/api.d.ts +2 -2
- package/package.json +1 -1
- package/dist/context/ApiProvider.d.ts +0 -2
- package/dist/context/ChatProvider.d.ts +0 -2
- package/dist/context/MessagesProvider.d.ts +0 -2
- package/dist/context/StreamProvider.d.ts +0 -2
- package/dist/context/ThreadProvider.d.ts +0 -2
- package/dist/context/providers/ChatProvider.d.ts +0 -60
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Chat App - Complete chat application with sidebar layout
|
|
3
3
|
* Combines all chat components into a ready-to-use chat interface
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
6
|
-
export interface ChatAppProps extends Omit<
|
|
5
|
+
import { type ChatProvidersProps } from '@/context/ChatProviders';
|
|
6
|
+
export interface ChatAppProps extends Omit<ChatProvidersProps, 'children'> {
|
|
7
7
|
layout?: 'sidebar' | 'fullscreen' | 'tabs';
|
|
8
8
|
layoutSize?: 'phone' | 'tablet' | 'desktop' | 'half-screen';
|
|
9
9
|
showThreads?: boolean;
|
|
@@ -16,12 +16,12 @@ export interface ChatAppProps extends Omit<ChatProviderProps, 'children'> {
|
|
|
16
16
|
}
|
|
17
17
|
export declare function ChatApp({ layout, layoutSize, showThreads, className, customStyles, ...providerProps }: ChatAppProps): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export interface SimpleChatProps {
|
|
19
|
-
apiConfig:
|
|
19
|
+
apiConfig: ChatProvidersProps['apiConfig'];
|
|
20
20
|
className?: string;
|
|
21
21
|
onError?: (error: string) => void;
|
|
22
22
|
}
|
|
23
23
|
export declare function SimpleChat({ apiConfig, className, onError }: SimpleChatProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export * from '@/context
|
|
24
|
+
export * from '@/context';
|
|
25
25
|
export * from './ChatInterface';
|
|
26
26
|
export * from './ThreadManager';
|
|
27
27
|
export * from './MessageComponent';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Chat Interface - Clean, exportable chat UI component
|
|
3
|
-
* Designed for use across multiple applications with customizable styling
|
|
3
|
+
* Designed for use across multiple applications with customizable styling.
|
|
4
|
+
* Relies on the split context hooks (useThreads/useMessages/useStream/useApi).
|
|
4
5
|
*/
|
|
5
6
|
import type { ExcelUploadResponse } from "@/types/api";
|
|
6
7
|
export interface ChatInterfaceProps {
|
|
@@ -21,8 +21,8 @@ export interface ChatProvidersProps {
|
|
|
21
21
|
onThreadChange?: (threadId: string | null) => void;
|
|
22
22
|
}
|
|
23
23
|
export declare function ChatProviders({ children, apiConfig, initialThreadId, autoLoadInitial, disableAutoRestore, enableFileAgentRouting, fileAgentId, onError, onThreadChange, }: ChatProvidersProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export { useApi } from './ApiProvider';
|
|
25
|
-
export { useStream } from './StreamProvider';
|
|
26
|
-
export { useThreads } from './ThreadProvider';
|
|
27
|
-
export { useMessages } from './MessagesProvider';
|
|
24
|
+
export { useApi } from './providers/ApiProvider';
|
|
25
|
+
export { useStream } from './providers/StreamProvider';
|
|
26
|
+
export { useThreads } from './providers/ThreadProvider';
|
|
27
|
+
export { useMessages } from './providers/MessagesProvider';
|
|
28
28
|
export type { ApiContextValue, StreamContextValue, ThreadContextValue, MessagesContextValue, SendOptions, } from './types';
|
package/dist/context/index.d.ts
CHANGED
|
@@ -12,8 +12,6 @@ export { ApiProvider, useApi } from './providers/ApiProvider';
|
|
|
12
12
|
export { StreamProvider, useStream, useStreamDispatch } from './providers/StreamProvider';
|
|
13
13
|
export { ThreadProvider, useThreads, ThreadProviderWithCallbacks } from './providers/ThreadProvider';
|
|
14
14
|
export { MessagesProvider, useMessages } from './providers/MessagesProvider';
|
|
15
|
-
export { ChatProvider, useChat } from './providers/ChatProvider';
|
|
16
|
-
export type { ChatContextValue } from './providers/ChatProvider';
|
|
17
15
|
export { useMessagesReducer } from './reducers/MessageReducer';
|
|
18
16
|
export type { ReducerStreamEvent } from './reducers/MessageReducer';
|
|
19
17
|
export { useStreamEventCoordinator } from './hooks/useStreamEventCoordinator';
|