teodor-new-chat-ui 4.3.499 → 4.3.500
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/messaging/components/message/hooks/index.d.ts +1 -1
- package/dist/features/messaging/components/message/hooks/useToolPayload.d.ts +1 -19
- package/dist/features/messaging/components/message/utils/index.d.ts +1 -0
- package/dist/features/messaging/components/message/utils/toolPayloadUtils.d.ts +7 -0
- package/dist/index.esm.js +4700 -4697
- package/dist/index.umd.js +46 -46
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { useFilePreview } from "./useFilePreview";
|
|
2
2
|
export { useParsedMessageContent } from "./useParsedMessageContent";
|
|
3
|
-
export { useToolPayload,
|
|
3
|
+
export { useToolPayload, type ToolPayloadResult, } from "./useToolPayload";
|
|
@@ -1,26 +1,9 @@
|
|
|
1
1
|
import type { ChatMessage } from "@/types";
|
|
2
|
-
export interface ToolIssue {
|
|
3
|
-
id?: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
title?: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
issueType?: string;
|
|
8
|
-
type?: string;
|
|
9
|
-
status?: number;
|
|
10
|
-
[key: string]: unknown;
|
|
11
|
-
}
|
|
12
|
-
export interface ToolIssuesResult {
|
|
13
|
-
issues: ToolIssue[];
|
|
14
|
-
}
|
|
15
2
|
export type ToolPayloadEvent = Record<string, unknown>;
|
|
16
3
|
export interface ToolPayloadBase {
|
|
17
4
|
value: unknown;
|
|
18
5
|
event: ToolPayloadEvent | null;
|
|
19
6
|
}
|
|
20
|
-
export interface ToolIssuesPayload extends ToolPayloadBase {
|
|
21
|
-
kind: "issues";
|
|
22
|
-
issues: ToolIssue[];
|
|
23
|
-
}
|
|
24
7
|
export interface ToolDictPayload extends ToolPayloadBase {
|
|
25
8
|
kind: "dict";
|
|
26
9
|
data: Record<string, unknown>;
|
|
@@ -28,6 +11,5 @@ export interface ToolDictPayload extends ToolPayloadBase {
|
|
|
28
11
|
export interface ToolGenericPayload extends ToolPayloadBase {
|
|
29
12
|
kind: "generic";
|
|
30
13
|
}
|
|
31
|
-
export type ToolPayloadResult =
|
|
14
|
+
export type ToolPayloadResult = ToolDictPayload | ToolGenericPayload;
|
|
32
15
|
export declare function useToolPayload(message: ChatMessage): ToolPayloadResult | null;
|
|
33
|
-
export declare function useToolIssues(message: ChatMessage): ToolIssuesResult | null;
|