teodor-new-chat-ui 4.3.328 → 4.3.330

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.
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Shared helper utilities for chat message rendering and metadata parsing.
3
+ */
4
+ import type { ArtifactPreview, ChatMessage, DefaultMessage, MessagePart, PlotData } from "@/types/api";
5
+ export declare function collectText(parts: MessagePart[]): string;
6
+ export declare function extractToolMeta(message: ChatMessage): {
7
+ name?: string;
8
+ toolCallId?: string;
9
+ };
10
+ export declare function normalizeInterruptId(id: unknown): string | null;
11
+ export declare function stringifyTool(parts: MessagePart[]): string;
12
+ export declare function getAgentNameFromMessage(m: ChatMessage): string | null;
13
+ export declare function messageSignature(message: ChatMessage | DefaultMessage): string;
14
+ export declare function normalizeMimeType(formatHint?: string): string;
15
+ export declare function buildLabelParts(extras?: {
16
+ plotId?: string;
17
+ artifactId?: string;
18
+ }): string[];
19
+ export declare function createArtifactPreviewFromSource({ base64, url, formatHint, extras, }: {
20
+ base64?: string;
21
+ url?: string;
22
+ formatHint?: string;
23
+ extras?: {
24
+ plotId?: string;
25
+ artifactId?: string;
26
+ };
27
+ }): ArtifactPreview | null;
28
+ export declare function createArtifactPreviewFromPlot(plot: PlotData): ArtifactPreview | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teodor-new-chat-ui",
3
- "version": "4.3.328",
3
+ "version": "4.3.330",
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",