teodor-new-chat-ui 4.3.400 → 4.3.402
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/features/checkpoint/utils/messagePreviews.d.ts +1 -7
- package/dist/features/core/contexts/index.d.ts +1 -3
- package/dist/features/core/contexts/providers/ApiProvider.d.ts +1 -1
- package/dist/features/core/contexts/{ChatProviders.d.ts → providers/ChatProviders.d.ts} +3 -3
- package/dist/features/core/contexts/providers/index.d.ts +1 -2
- package/dist/features/core/hooks/index.d.ts +1 -2
- package/dist/features/core/hooks/useApi.d.ts +1 -0
- package/dist/features/messaging/components/{chat/ChatApp.d.ts → ChatApp.d.ts} +1 -1
- package/dist/features/messaging/index.d.ts +12 -12
- package/dist/features/streaming/contexts/index.d.ts +0 -1
- package/dist/features/streaming/contexts/types.d.ts +57 -0
- package/dist/features/streaming/index.d.ts +2 -1
- package/dist/features/streaming/utils/constants.d.ts +1 -0
- package/dist/index.esm.js +5884 -6124
- package/dist/index.umd.js +42 -42
- package/dist/lib/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/features/core/contexts/providers/ChatSessionProvider.d.ts +0 -1
- package/dist/features/settings/components/ChatSettings.d.ts +0 -30
- package/dist/features/streaming/contexts/services/use-streaming-service.d.ts +0 -61
- /package/dist/features/messaging/components/{chat/ChatInput.d.ts → ChatInput.d.ts} +0 -0
- /package/dist/features/messaging/components/{chat/ChatInterface.d.ts → ChatInterface.d.ts} +0 -0
- /package/dist/features/messaging/components/{chat/FileViewerModal.d.ts → FileViewerModal.d.ts} +0 -0
- /package/dist/features/messaging/components/{chat/MarkdownContent.d.ts → MarkdownContent.d.ts} +0 -0
- /package/dist/features/messaging/components/{chat/MessageComponent.d.ts → MessageComponent.d.ts} +0 -0
- /package/dist/features/messaging/components/{chat/MessageList.d.ts → MessageList.d.ts} +0 -0
- /package/dist/features/messaging/components/{chat/MessageRow.d.ts → MessageRow.d.ts} +0 -0
- /package/dist/features/messaging/components/{chat/ThreadManager.d.ts → ThreadManager.d.ts} +0 -0
- /package/dist/features/messaging/components/{chat/message → message}/ArtifactRenderer.d.ts +0 -0
- /package/dist/features/messaging/components/{chat/message → message}/InterruptPartRenderer.d.ts +0 -0
- /package/dist/features/messaging/components/{chat/message → message}/ResearchTaskArtifact.d.ts +0 -0
- /package/dist/features/messaging/components/{chat/message → message}/SimpleJsonView.d.ts +0 -0
- /package/dist/features/messaging/components/{chat/message → message}/StreamProgress.d.ts +0 -0
- /package/dist/features/messaging/components/{chat/message → message}/ToolComponent.d.ts +0 -0
- /package/dist/features/messaging/components/{chat/message → message}/UserTextContent.d.ts +0 -0
- /package/dist/features/messaging/components/{chat/message → message}/artifacts/PlotArtifact.d.ts +0 -0
- /package/dist/features/messaging/components/{chat/message → message}/artifacts/ResearchTaskArtifact.d.ts +0 -0
- /package/dist/features/messaging/components/{chat/message → message}/index.d.ts +0 -0
- /package/dist/features/messaging/components/{chat/message → message}/useFilePreview.d.ts +0 -0
- /package/dist/features/messaging/components/{chat/threads → threads}/ThreadListItem.d.ts +0 -0
package/dist/lib/index.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export { useStream as useStreamingHook } from "../features/streaming";
|
|
|
7
7
|
export * from "../features/thread";
|
|
8
8
|
export * from "../features/ui";
|
|
9
9
|
export * from "../features/core";
|
|
10
|
-
export type { ChatMessage, ChatRequest,
|
|
11
|
-
export { ChatApp as default } from "../features/messaging/components/
|
|
10
|
+
export type { ChatMessage, ChatRequest, HistoryPayload, HydratedCheckpointSnapshot, MessagePart, PregelTask, Role, StateSnapshot, StreamEvent, TextPart, ThreadInfo, ThreadShareTarget, ThreadSummary, ToolEndEvent } from '@/types';
|
|
11
|
+
export { ChatApp as default } from "../features/messaging/components/ChatApp";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { StreamingProvider as ChatSessionProvider, useStream, useThreads, useThreadState, useHasChatSession, } from "@/features/streaming/contexts";
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Chat Settings Component - Persistent settings with beautiful UI
|
|
3
|
-
* Handles API configuration, layout preferences, and chat behavior
|
|
4
|
-
*/
|
|
5
|
-
export interface ChatSettingsConfig {
|
|
6
|
-
api: {
|
|
7
|
-
baseUrl: string;
|
|
8
|
-
authToken: string;
|
|
9
|
-
enableAuth: boolean;
|
|
10
|
-
};
|
|
11
|
-
ui: {
|
|
12
|
-
layout: 'sidebar' | 'fullscreen' | 'tabs';
|
|
13
|
-
theme: 'light' | 'dark' | 'system';
|
|
14
|
-
showTimestamps: boolean;
|
|
15
|
-
showAgentNames: boolean;
|
|
16
|
-
compactMessages: boolean;
|
|
17
|
-
};
|
|
18
|
-
behavior: {
|
|
19
|
-
autoSave: boolean;
|
|
20
|
-
enableStreaming: boolean;
|
|
21
|
-
showTypingIndicator: boolean;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
interface ChatSettingsProps {
|
|
25
|
-
settings: ChatSettingsConfig;
|
|
26
|
-
onSettingsChange: (settings: ChatSettingsConfig) => void;
|
|
27
|
-
className?: string;
|
|
28
|
-
}
|
|
29
|
-
export declare function ChatSettings({ settings, onSettingsChange, className }: ChatSettingsProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export {};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import type { ChatRequest, HistoryPayload } from '@/types';
|
|
2
|
-
import { type HeartbeatEvent, type StateHistoryEvent, type StreamEvent, type ThreadInfoEvent } from "@/features/streaming";
|
|
3
|
-
export interface StreamClosedInfo {
|
|
4
|
-
reason: 'complete' | 'aborted' | 'error';
|
|
5
|
-
lastSeq: number;
|
|
6
|
-
lastCheckpointId: string | null;
|
|
7
|
-
lastCheckpointNs: string | null;
|
|
8
|
-
lastStateHistory: HistoryPayload | null;
|
|
9
|
-
threadId: string | null;
|
|
10
|
-
threadInfo: ThreadInfoEvent | null;
|
|
11
|
-
manualStop: boolean;
|
|
12
|
-
error?: string | null;
|
|
13
|
-
}
|
|
14
|
-
interface UseChatStreamingServiceOptions {
|
|
15
|
-
baseUrl: string;
|
|
16
|
-
onThreadInfo: (event: ThreadInfoEvent) => void;
|
|
17
|
-
onMessageEvent: (event: StreamEvent) => void;
|
|
18
|
-
onStateHistory?: (event: StateHistoryEvent) => void;
|
|
19
|
-
onUnhandledEvent?: (event: StreamEvent) => void;
|
|
20
|
-
onToolEvent?: (event: Extract<StreamEvent, {
|
|
21
|
-
type: 'tool.start' | 'tool.end';
|
|
22
|
-
}>) => void;
|
|
23
|
-
onSequenceGap?: (gap: {
|
|
24
|
-
from: number;
|
|
25
|
-
to: number;
|
|
26
|
-
}) => void;
|
|
27
|
-
onStreamClosed?: (info: StreamClosedInfo) => void;
|
|
28
|
-
onConnectionError?: (error: string) => void;
|
|
29
|
-
onAuthError?: (error: string) => void;
|
|
30
|
-
onHeartbeat?: (event: HeartbeatEvent) => void;
|
|
31
|
-
}
|
|
32
|
-
interface StartStreamCallbacks {
|
|
33
|
-
onOpen?: (info: {
|
|
34
|
-
threadId: string | null;
|
|
35
|
-
created: boolean;
|
|
36
|
-
}) => void;
|
|
37
|
-
onError?: (error: unknown) => void;
|
|
38
|
-
onGap?: (gap: {
|
|
39
|
-
from: number;
|
|
40
|
-
to: number;
|
|
41
|
-
}) => void;
|
|
42
|
-
onClosed?: (info: StreamClosedInfo) => void;
|
|
43
|
-
onConnectionError?: (error: string) => void;
|
|
44
|
-
onAuthError?: (error: string) => void;
|
|
45
|
-
onHeartbeat?: (event: HeartbeatEvent) => void;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Thin integration layer that adapts the public `useStream` hook to the
|
|
49
|
-
* coordination callbacks expected by `StreamingProvider`. Keeping this logic
|
|
50
|
-
* here means we continue to rely on the well-tested streaming hook for all SSE
|
|
51
|
-
* behaviour while the provider focuses purely on state updates.
|
|
52
|
-
*/
|
|
53
|
-
export declare function useChatStreamingService({ baseUrl, onThreadInfo, onMessageEvent, onStateHistory, onUnhandledEvent, onSequenceGap, onStreamClosed, onConnectionError, onAuthError, onHeartbeat, onToolEvent, }: UseChatStreamingServiceOptions): {
|
|
54
|
-
startStream: (request: ChatRequest, callbacks?: StartStreamCallbacks) => void;
|
|
55
|
-
stop: () => void;
|
|
56
|
-
isStreaming: boolean;
|
|
57
|
-
error: string | null;
|
|
58
|
-
setAuthToken: (t: string | null) => void;
|
|
59
|
-
replayBufferedEvents: (threadId?: string | null) => void;
|
|
60
|
-
};
|
|
61
|
-
export {};
|
|
File without changes
|
|
File without changes
|
/package/dist/features/messaging/components/{chat/FileViewerModal.d.ts → FileViewerModal.d.ts}
RENAMED
|
File without changes
|
/package/dist/features/messaging/components/{chat/MarkdownContent.d.ts → MarkdownContent.d.ts}
RENAMED
|
File without changes
|
/package/dist/features/messaging/components/{chat/MessageComponent.d.ts → MessageComponent.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/features/messaging/components/{chat/message → message}/InterruptPartRenderer.d.ts
RENAMED
|
File without changes
|
/package/dist/features/messaging/components/{chat/message → message}/ResearchTaskArtifact.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/features/messaging/components/{chat/message → message}/artifacts/PlotArtifact.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|