@infinilabs/chat-message 0.0.8 → 0.0.9
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/ChatMessage.cjs +14 -14
- package/dist/ChatMessage.iife.js +14 -14
- package/dist/ChatMessage.js +2419 -2408
- package/dist/ChatMessage.umd.cjs +14 -14
- package/dist/components/DeepResearch/ResearchReportContent.d.ts +1 -1
- package/dist/components/DeepResearch/index.d.ts +4 -16
- package/dist/hooks/useMessageChunkData.d.ts +1 -1
- package/dist/mockRealData.d.ts +1 -0
- package/dist/types/chat.d.ts +1 -0
- package/package.json +3 -2
|
@@ -9,4 +9,4 @@ export interface ResearchReportContentProps {
|
|
|
9
9
|
data?: ResearchReportData;
|
|
10
10
|
formatUrl?: (data: any) => string;
|
|
11
11
|
}
|
|
12
|
-
export declare const ResearchReportContent: ({ content, data, formatUrl }: ResearchReportContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const ResearchReportContent: ({ content, data, formatUrl, }: ResearchReportContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ResearchReportData } from './ResearchReportContent';
|
|
1
|
+
import { IChunkData } from '../../types/chat';
|
|
3
2
|
interface DeepResearchProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
query: string;
|
|
7
|
-
statusText?: string;
|
|
8
|
-
resultCount?: number;
|
|
9
|
-
progress?: number;
|
|
10
|
-
steps?: StepItem[];
|
|
11
|
-
plannerStatus?: StepStatus;
|
|
12
|
-
executionStatus?: StepStatus;
|
|
13
|
-
reportStatus?: StepStatus;
|
|
14
|
-
reportData?: ResearchReportData;
|
|
15
|
-
reportContent?: string;
|
|
16
|
-
searchHits?: StepSearchHit[];
|
|
3
|
+
ChunkData?: IChunkData[];
|
|
4
|
+
question?: string;
|
|
17
5
|
formatUrl?: (data: any) => string;
|
|
18
6
|
theme?: "light" | "dark";
|
|
19
7
|
}
|
|
20
|
-
export declare const DeepResearch: ({
|
|
8
|
+
export declare const DeepResearch: ({ ChunkData, question, formatUrl, theme, }: DeepResearchProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
21
9
|
export {};
|
|
@@ -8,7 +8,7 @@ export default function useMessageChunkData(): {
|
|
|
8
8
|
deep_read: IChunkData | undefined;
|
|
9
9
|
think: IChunkData | undefined;
|
|
10
10
|
response: IChunkData | undefined;
|
|
11
|
-
deepResearch: IChunkData
|
|
11
|
+
deepResearch: IChunkData[];
|
|
12
12
|
};
|
|
13
13
|
handlers: {
|
|
14
14
|
deal_query_intent: (data: IChunkData) => void;
|
package/dist/mockRealData.d.ts
CHANGED
package/dist/types/chat.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dist",
|
|
9
9
|
"README.md"
|
|
10
10
|
],
|
|
11
|
-
"version": "0.0.
|
|
11
|
+
"version": "0.0.9",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "dist/ChatMessage.cjs",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"preview": "vite preview"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
+
"antd": "^6.1.3",
|
|
31
32
|
"react": "^18.3.1",
|
|
32
33
|
"react-dom": "^18.3.1",
|
|
33
34
|
"react-i18next": ">=11.0.0"
|
|
@@ -37,13 +38,13 @@
|
|
|
37
38
|
"@infinilabs/markdown": "^0.0.2",
|
|
38
39
|
"@infinilabs/search-results": "^0.0.16",
|
|
39
40
|
"ahooks": "^3.9.6",
|
|
40
|
-
"antd": "^6.1.4",
|
|
41
41
|
"clsx": "^2.1.1",
|
|
42
42
|
"i18next": "^25.7.3",
|
|
43
43
|
"lucide-react": "^0.461.0",
|
|
44
44
|
"motion": "^12.25.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
+
"antd": "^6.1.3",
|
|
47
48
|
"@eslint/js": "^9.33.0",
|
|
48
49
|
"@tailwindcss/vite": "^4.1.18",
|
|
49
50
|
"@types/react": "18.3.3",
|