teodor-new-chat-ui 4.3.344 → 4.3.346

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.
@@ -25,7 +25,6 @@ export { ChatSettings } from '@/components/settings/ChatSettings';
25
25
  export type { ChatSettingsConfig } from '@/components/settings/ChatSettings';
26
26
  export type { ChatMessage, ChatRequest, CheckpointSnapshot, HistoryPayload, HydratedCheckpointSnapshot, MessagePart, PregelTask, Role, StreamEvent, TextPart, ThreadInfo, ThreadSummary } from '@/types/api';
27
27
  export { buildMessagePreviewMap } from './messagePreviews';
28
- export type { CachedCheckpointMetadata, CheckpointMetadataCache } from '@/context/hooks/useCheckpointMetadataCache';
29
28
  export type { ChatAppProps, SimpleChatProps } from '../components/chat/ChatApp';
30
29
  export type { ChatProvidersProps } from '../context/ChatProviders';
31
30
  export { ChatApp as default } from '../components/chat/ChatApp';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teodor-new-chat-ui",
3
- "version": "4.3.344",
3
+ "version": "4.3.346",
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",
@@ -101,6 +101,7 @@
101
101
  "sonner": "^1.7.4",
102
102
  "tailwind-merge": "^2.6.0",
103
103
  "tailwindcss-animate": "^1.0.7",
104
+ "uuid": "^13.0.0",
104
105
  "vaul": "^0.9.9",
105
106
  "zod": "^3.25.76"
106
107
  },
@@ -1,24 +0,0 @@
1
- /**
2
- * useCheckpointMetadataCache
3
- *
4
- * Custom hook for managing checkpoint metadata cache per thread.
5
- * Operates purely in-memory to avoid persisting stale checkpoints.
6
- *
7
- * Usage:
8
- * const { cache, getCachedMetadata, setCacheForThread } = useCheckpointMetadataCache();
9
- */
10
- export interface CachedCheckpointMetadata {
11
- checkpointId: string;
12
- checkpointNs?: string;
13
- createdAt: string;
14
- }
15
- export interface CheckpointMetadataCache {
16
- cache: Map<string, CachedCheckpointMetadata[]>;
17
- setCacheForThread: (threadId: string, newMetadata: CachedCheckpointMetadata[]) => void;
18
- getCachedMetadata: (threadId: string, checkpointId: string) => CachedCheckpointMetadata | undefined;
19
- checkpointExists: (threadId: string, checkpointId: string) => boolean;
20
- getThreadMetadata: (threadId: string) => CachedCheckpointMetadata[] | undefined;
21
- clearThreadCache: (threadId: string) => void;
22
- clearAllCache: () => void;
23
- }
24
- export declare function useCheckpointMetadataCache(): CheckpointMetadataCache;