teodor-new-chat-ui 4.3.342 → 4.3.344

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.
@@ -15,8 +15,8 @@ export type { MessageListProps } from '../components/chat/MessageList';
15
15
  export { ThreadManager } from '../components/chat/ThreadManager';
16
16
  export { TimelineColumn } from '../components/chat/TimelineColumn';
17
17
  export type { TimelineColumnProps } from '../components/chat/TimelineColumn';
18
+ export { useMessagesReducer } from '@/context/reducers/MessageReducer';
18
19
  export { useChatStream } from '@/hooks/use-chat';
19
- export { useMessagesReducer } from '../context/reducers/MessageReducer';
20
20
  export { ChatApi, chatApiClient } from '../api/chat-api';
21
21
  export { applySettings, getCurrentSettings, getDefaultApiConfig, getDefaultChatSettings } from "@/config/env";
22
22
  export type { ChatConfig } from "@/config/env";
@@ -30,6 +30,15 @@ export type ToolEndEvent = {
30
30
  tool?: string;
31
31
  seq?: number;
32
32
  } & ToolEventIdentity;
33
+ export type ToolProgressEvent = {
34
+ type: "progress";
35
+ step?: string;
36
+ title?: string;
37
+ content?: string;
38
+ facts_found?: number;
39
+ is_sufficient?: boolean;
40
+ seq?: number;
41
+ };
33
42
  export type MessageStreamEvent = {
34
43
  type: "token";
35
44
  content: string;
@@ -43,7 +52,7 @@ export type MessageStreamEvent = {
43
52
  delta: MessagePart[];
44
53
  } | {
45
54
  type: "message_end";
46
- };
55
+ } | ToolProgressEvent;
47
56
  export type ToolStreamEvent = ToolStartEvent | ToolEndEvent;
48
57
  export type ThreadStreamEvent = {
49
58
  type: "thread_info";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teodor-new-chat-ui",
3
- "version": "4.3.342",
3
+ "version": "4.3.344",
4
4
  "description": "React chat UI components with streaming support, tool calls, and modern design",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.esm.js",
@@ -1,7 +0,0 @@
1
- import type { ChatMessage } from "@/types/api";
2
- interface ToolMessageProps {
3
- message: ChatMessage;
4
- viewMode: "preview" | "expanded";
5
- }
6
- export declare function ToolMessage({ message, viewMode }: ToolMessageProps): import("react/jsx-runtime").JSX.Element | null;
7
- export {};