teodor-new-chat-ui 4.3.678 → 4.3.680
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/conversation/messages/renderers/index.d.ts +1 -0
- package/dist/features/conversation/messages/renderers/tool/timeline/ToolCallCard.d.ts +9 -0
- package/dist/features/conversation/messages/utils/messageUtils.d.ts +5 -1
- package/dist/index.esm.js +1410 -1391
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +36 -36
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ export { SimpleJsonView } from "./content/SimpleJsonView";
|
|
|
4
4
|
export { ToolContent } from "./content/ToolContent";
|
|
5
5
|
export type { ToolRendererMap, ToolArtifactRendererMap, ToolRenderer, ToolArtifactRenderer, ToolRendererContext, ToolConfig, BuildToolConfigOptions } from "./content/ToolContent";
|
|
6
6
|
export { ToolProgress } from "./tool/timeline/ToolProgress";
|
|
7
|
+
export { ToolCallCard } from "./tool/timeline/ToolCallCard";
|
|
7
8
|
export { InterruptPartRenderer } from "./user/InterruptPartRenderer";
|
|
8
9
|
export { ThinkingIndicator } from "./shared/ThinkingIndicator";
|
|
9
10
|
export { UserTextContent } from "./user/UserTextContent";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ToolCallWithResult } from "../../../utils/toolCallUtils";
|
|
3
|
+
export interface ToolCallCardProps {
|
|
4
|
+
toolCall: ToolCallWithResult;
|
|
5
|
+
index?: number;
|
|
6
|
+
toolName?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const ToolCallCard: React.NamedExoticComponent<ToolCallCardProps>;
|
|
@@ -22,8 +22,12 @@ export declare function formatToolOutput(x: any): {
|
|
|
22
22
|
};
|
|
23
23
|
export { parseJsonSafe, looksLikeMarkdown } from "@/shared/utils/jsonUtils";
|
|
24
24
|
export { extractToolContent } from "@/features/persistence/checkpoints/utils/historyUtils";
|
|
25
|
-
import type { MessagePart } from "@/types";
|
|
25
|
+
import type { ChatMessage, MessagePart } from "@/types";
|
|
26
26
|
/**
|
|
27
27
|
* Stringify tool call parts for display/debugging
|
|
28
28
|
*/
|
|
29
29
|
export declare function stringifyTool(parts: MessagePart[]): string;
|
|
30
|
+
/**
|
|
31
|
+
* Check if a message has actual text or image content (not just tool calls)
|
|
32
|
+
*/
|
|
33
|
+
export declare function hasContent(message: ChatMessage): boolean;
|