teodor-new-chat-ui 4.3.340 → 4.3.341
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/index.esm.js +4479 -4478
- package/dist/index.umd.js +42 -42
- package/dist/lib/messagePreviews.d.ts +12 -0
- package/package.json +1 -1
|
@@ -1,2 +1,14 @@
|
|
|
1
1
|
import type { ChatMessage } from '@/types/api';
|
|
2
|
+
import type { HydratedCheckpointSnapshot } from '@/types/models';
|
|
3
|
+
/**
|
|
4
|
+
* Legacy function: builds a map of message ID -> preview text.
|
|
5
|
+
* This creates a single preview per message ID, with later occurrences overwriting earlier ones.
|
|
6
|
+
* @deprecated Use buildCheckpointPreviewMap instead for per-checkpoint previews
|
|
7
|
+
*/
|
|
2
8
|
export declare function buildMessagePreviewMap(messages: ChatMessage[]): Map<string, string>;
|
|
9
|
+
/**
|
|
10
|
+
* Builds a map of checkpoint ID -> preview text.
|
|
11
|
+
* Each checkpoint gets its own preview based on the latest user message in that checkpoint.
|
|
12
|
+
* This ensures all checkpoints display accurate previews even if they reference the same message ID.
|
|
13
|
+
*/
|
|
14
|
+
export declare function buildCheckpointPreviewMap(checkpoints: HydratedCheckpointSnapshot[]): Map<string, string>;
|
package/package.json
CHANGED