paul-ai-assistant 1.0.3 → 1.0.4
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/es/AssistantChat/AssistantChatApp/const.js +1 -1
- package/es/AssistantChat/AssistantChatApp/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.js +4 -4
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.js +4 -5
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.js +2 -2
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/OperationCard/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.js +3 -3
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.js +5 -5
- package/es/AssistantChat/AssistantChatInput/index.js +7 -5
- package/es/common/registerAssistChatForm.js +8 -5
- package/es/components/AgentCardSubmit/index.js +0 -1
- package/es/components/AgentResult/index.js +1 -1
- package/es/components/AgentSchemaForm/ScreenshotView.js +1 -1
- package/es/components/AgentSchemaForm/index.js +5 -5
- package/es/components/ArrayInput/index.js +1 -1
- package/es/components/InspectionCard/index.js +1 -1
- package/es/components/LlmMarkDown/MdAmarkGuess/index.js +1 -1
- package/es/components/LlmMarkDown/MdAmarkReference/index.js +3 -3
- package/es/components/LlmMarkDown/index.js +1 -1
- package/es/components/LlmModelChange/index.js +2 -2
- package/es/components/LlmReference/index.js +9 -9
- package/es/components/LlmTraceComponents/Disassemble/index.js +2 -2
- package/es/components/LlmTraceComponents/Rewrite/index.js +2 -2
- package/es/components/MarkDown/index.js +42 -13
- package/es/components/ModelSelect/ModeDropdown.js +1 -1
- package/es/components/ModelSelect/const.js +3 -3
- package/es/components/PaulButtonGroup/Select.js +1 -1
- package/es/components/PaulButtonGroup/index.js +1 -1
- package/es/components/PopAuth/index.js +1 -1
- package/es/components/SchemaInput/SchemaInputCore/index.js +1 -1
- package/es/components/SchemaInput/SimpleJSONEditor/index.js +1 -1
- package/es/components/SelectBlurry/index.js +1 -1
- package/es/components/ShareModal/index.js +1 -1
- package/es/components/ShareOperationBar/index.js +1 -1
- package/es/components/TextContent/index.js +3 -3
- package/es/components/TraceWithAgent/index.js +4 -9
- package/es/context/index.js +2 -1
- package/es/context/utils/messages.js +1 -1
- package/es/context/utils/send.js +2 -2
- package/es/context/utils/tool.js +1 -1
- package/es/utils/CSEIconTool.js +1 -1
- package/es/utils/apushAssistant.js +1 -2
- package/es/utils/common.js +17 -0
- package/es/utils/event.js +87 -0
- package/es/utils/formDataFormat.js +1 -1
- package/es/utils/formatData.js +1 -1
- package/es/utils/helpers.js +78 -0
- package/es/utils/log.js +1 -1
- package/package.json +6 -16
- package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.d.ts +0 -8
- package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.d.ts +0 -9
- package/es/AssistantChat/AssistantChatApp/const.d.ts +0 -51
- package/es/AssistantChat/AssistantChatApp/index.d.ts +0 -4
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.d.ts +0 -5
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.d.ts +0 -7
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.d.ts +0 -29
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.d.ts +0 -4
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.d.ts +0 -2
- package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.d.ts +0 -4
- package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.d.ts +0 -16
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.d.ts +0 -14
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.d.ts +0 -78
- package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.d.ts +0 -7
- package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.d.ts +0 -7
- package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.d.ts +0 -11
- package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/OperationCard/index.d.ts +0 -4
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.d.ts +0 -21
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.d.ts +0 -7
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.d.ts +0 -8
- package/es/AssistantChat/AssistantChatCard/index.d.ts +0 -5
- package/es/AssistantChat/AssistantChatInput/index.d.ts +0 -5
- package/es/AssistantChat/AssistantToolApp/const.d.ts +0 -12
- package/es/AssistantChat/AssistantToolApp/index.d.ts +0 -4
- package/es/AssistantChat/AssistantToolExecutionApp/const.d.ts +0 -7
- package/es/AssistantChat/AssistantToolExecutionApp/index.d.ts +0 -4
- package/es/AssistantChat/AssistentError/index.d.ts +0 -5
- package/es/AssistantChat/index.d.ts +0 -6
- package/es/AssistantChat/logCallback/aTagLog.d.ts +0 -1
- package/es/AssistantChat/logCallback/copyLog.d.ts +0 -3
- package/es/ErrorBoundary/ErrorBoundaryFallback/index.d.ts +0 -5
- package/es/ErrorBoundary/index.d.ts +0 -22
- package/es/common/registerAssistChatForm.d.ts +0 -2
- package/es/components/AgentCardSubmit/index.d.ts +0 -20
- package/es/components/AgentResult/index.d.ts +0 -8
- package/es/components/AgentSchemaForm/ScreenshotView.d.ts +0 -12
- package/es/components/AgentSchemaForm/_interface.d.ts +0 -37
- package/es/components/AgentSchemaForm/index.d.ts +0 -9
- package/es/components/AgentText/index.d.ts +0 -4
- package/es/components/AigcTips/index.d.ts +0 -9
- package/es/components/ArrayInput/index.d.ts +0 -3
- package/es/components/AssistantDrawer/index.d.ts +0 -22
- package/es/components/EmptyIcon/index.d.ts +0 -3
- package/es/components/HeaderSvgIcon/index.d.ts +0 -3
- package/es/components/InspectionCard/index.d.ts +0 -66
- package/es/components/InspectionCard/result.d.ts +0 -13
- package/es/components/LlmMarkDown/MdAmarkGuess/index.d.ts +0 -16
- package/es/components/LlmMarkDown/MdAmarkReference/index.d.ts +0 -21
- package/es/components/LlmMarkDown/index.d.ts +0 -30
- package/es/components/LlmModelChange/index.d.ts +0 -57
- package/es/components/LlmReference/index.d.ts +0 -25
- package/es/components/LlmTitle/index.d.ts +0 -14
- package/es/components/LlmTrace/index.d.ts +0 -17
- package/es/components/LlmTraceComponents/Disassemble/index.d.ts +0 -24
- package/es/components/LlmTraceComponents/ReadResource/index.d.ts +0 -24
- package/es/components/LlmTraceComponents/Rewrite/index.d.ts +0 -23
- package/es/components/LlmTraceComponents/TraceMarkDown/index.d.ts +0 -22
- package/es/components/LlmTraceComponents/const.d.ts +0 -25
- package/es/components/LlmTraceV2/index.d.ts +0 -56
- package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.d.ts +0 -18
- package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.d.ts +0 -20
- package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.d.ts +0 -12
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/const.d.ts +0 -32
- package/es/components/LlmTraceV3/components/TraceGroup/index.d.ts +0 -8
- package/es/components/LlmTraceV3/components/TraceHeader/index.d.ts +0 -8
- package/es/components/LlmTraceV3/components/TraceItem/index.d.ts +0 -8
- package/es/components/LlmTraceV3/components/TraceSlide/index.d.ts +0 -30
- package/es/components/LlmTraceV3/components/TraceStatusIcon/index.d.ts +0 -8
- package/es/components/LlmTraceV3/hooks/useGroupCollapse.d.ts +0 -18
- package/es/components/LlmTraceV3/hooks/useItemCollapse.d.ts +0 -18
- package/es/components/LlmTraceV3/hooks/useTraceAnimation.d.ts +0 -15
- package/es/components/LlmTraceV3/hooks/useTraceCollapse.d.ts +0 -17
- package/es/components/LlmTraceV3/index.d.ts +0 -11
- package/es/components/LlmTraceV3/types.d.ts +0 -263
- package/es/components/LlmTraceV3/utils/collapseLogic.d.ts +0 -26
- package/es/components/LlmTraceV3/utils/traceHelpers.d.ts +0 -42
- package/es/components/MarkDown/index.d.ts +0 -11
- package/es/components/ModelSelect/ModeDropdown.d.ts +0 -8
- package/es/components/ModelSelect/const.d.ts +0 -30
- package/es/components/ModelSelect/index.d.ts +0 -4
- package/es/components/PaulButtonGroup/Select.d.ts +0 -3
- package/es/components/PaulButtonGroup/index.d.ts +0 -16
- package/es/components/PopAuth/index.d.ts +0 -4
- package/es/components/ReferenceInfoItem/index.d.ts +0 -49
- package/es/components/ReferenceTag/index.d.ts +0 -11
- package/es/components/SchemaInput/SchemaInputCore/index.d.ts +0 -4
- package/es/components/SchemaInput/SchemaInputCore/utils.d.ts +0 -1
- package/es/components/SchemaInput/SimpleJSONEditor/index.d.ts +0 -4
- package/es/components/SchemaInput/index.d.ts +0 -8
- package/es/components/SelectBlurry/index.d.ts +0 -3
- package/es/components/SendMessageSvgIcon/index.d.ts +0 -3
- package/es/components/ShareContent/index.d.ts +0 -21
- package/es/components/ShareModal/index.d.ts +0 -15
- package/es/components/ShareOperationBar/index.d.ts +0 -4
- package/es/components/TextContent/index.d.ts +0 -14
- package/es/components/TraceMarkdownWithCard/index.d.ts +0 -6
- package/es/components/TraceWithAgent/index.d.ts +0 -23
- package/es/constants/assistChatEvent.d.ts +0 -33
- package/es/constants/common.d.ts +0 -71
- package/es/constants/logTrace.d.ts +0 -3
- package/es/constants/reference.d.ts +0 -109
- package/es/constants/traceDataStatus.d.ts +0 -34
- package/es/context/index.d.ts +0 -13
- package/es/context/utils/messages.d.ts +0 -33
- package/es/context/utils/send.d.ts +0 -29
- package/es/context/utils/tool.d.ts +0 -19
- package/es/index.d.ts +0 -37
- package/es/interface/IAgent.d.ts +0 -12
- package/es/interface/IChatBottom.d.ts +0 -69
- package/es/interface/IChatCard.d.ts +0 -40
- package/es/interface/IChatContext.d.ts +0 -59
- package/es/interface/IChatRef.d.ts +0 -75
- package/es/interface/IGuessQuestion.d.ts +0 -43
- package/es/interface/IMessage.d.ts +0 -17
- package/es/interface/ISend.d.ts +0 -19
- package/es/interface/index.d.ts +0 -272
- package/es/utils/CSEIconTool.d.ts +0 -8
- package/es/utils/apushAssistant.d.ts +0 -73
- package/es/utils/clientPlugin.d.ts +0 -3
- package/es/utils/common.d.ts +0 -10
- package/es/utils/copyToClipboard.d.ts +0 -2
- package/es/utils/formDataFormat.d.ts +0 -3
- package/es/utils/formatData.d.ts +0 -14
- package/es/utils/log.d.ts +0 -18
- package/es/utils/parseUrl.d.ts +0 -9
- package/es/utils/request.d.ts +0 -15
- package/es/utils/screenshot.d.ts +0 -45
- package/es/utils/send.d.ts +0 -10
- package/es/utils/uploadImage.d.ts +0 -9
- package/es/utils/websocketLogger.d.ts +0 -176
package/es/constants/common.d.ts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
export declare const REQUERT_SUCCESS_CODE = 0;
|
|
2
|
-
export declare const REQUEST_SUCCESS_CODE = "200";
|
|
3
|
-
export declare const initPlaceholder = "\u8BF7\u8F93\u5165\uFF0C\u6362\u884C command+\u56DE\u8F66 / ctrl+\u56DE\u8F66";
|
|
4
|
-
export declare const DEFAULT_AGENT_ICON = "iconagent-tool-o";
|
|
5
|
-
export declare const ENTER_KEY_CODE = 13;
|
|
6
|
-
export declare const CHAT_TYPE: {
|
|
7
|
-
GENERATE: string;
|
|
8
|
-
SEARCH: string;
|
|
9
|
-
TOOL: string;
|
|
10
|
-
AGENT: string;
|
|
11
|
-
AGENT_REENTRANT: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const BIZ_DOMAIN_TYPE: {
|
|
14
|
-
/**
|
|
15
|
-
* 工单
|
|
16
|
-
*/
|
|
17
|
-
CSE: string;
|
|
18
|
-
/**
|
|
19
|
-
* 热线
|
|
20
|
-
*/
|
|
21
|
-
CSE_HOTLINE_IM: string;
|
|
22
|
-
/**
|
|
23
|
-
* AES
|
|
24
|
-
*/
|
|
25
|
-
AES: string;
|
|
26
|
-
/**
|
|
27
|
-
* 云台
|
|
28
|
-
*/
|
|
29
|
-
YUN_TAI: string;
|
|
30
|
-
/**
|
|
31
|
-
* 云企
|
|
32
|
-
*/
|
|
33
|
-
PUBLIC_AES_YUNQI: string;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* 工具类型
|
|
37
|
-
*/
|
|
38
|
-
export declare const AGENT_TPYE: {
|
|
39
|
-
TOOL_V2: string[];
|
|
40
|
-
TOOL: string[];
|
|
41
|
-
AGENT_SINGLE: string[];
|
|
42
|
-
AGENT_MULTI: string[];
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* 智能工具类型
|
|
46
|
-
*/
|
|
47
|
-
export declare const COPILOT_TOOL_TYPE_ENUM: {
|
|
48
|
-
CUSTOM_AGENT: string;
|
|
49
|
-
AGENT: string;
|
|
50
|
-
TOOL: string;
|
|
51
|
-
SHOW_AGENT: string;
|
|
52
|
-
COMPETITION_AGENT: string;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* 大模型搜索类型
|
|
56
|
-
*/
|
|
57
|
-
export declare const SEARCH_TYPE: {
|
|
58
|
-
DOC_CHAT_SEARCH: string;
|
|
59
|
-
COMMON_SEARCH: string;
|
|
60
|
-
REWRITE_SEARCH: string;
|
|
61
|
-
INTELLIGENCE_CHAT_SEARCH: string;
|
|
62
|
-
ORIGINAL_SENTENCE_SEARCH: string;
|
|
63
|
-
GUESS_SEARCH: string;
|
|
64
|
-
THIRD_PARTY_MODEL_SEARCH: string;
|
|
65
|
-
SUB_PROBLEM_SEARCH: string;
|
|
66
|
-
};
|
|
67
|
-
export declare enum ChatTypeEnum {
|
|
68
|
-
Chat = "chat",
|
|
69
|
-
Tool = "tool",
|
|
70
|
-
ToolExecution = "toolExecution"
|
|
71
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
export declare enum REFERENCE_TYPE_ENUM {
|
|
2
|
-
doc = "doc",
|
|
3
|
-
kb = "kb",
|
|
4
|
-
ticket = "ticket",
|
|
5
|
-
intelligenceKb = "intelligenceKb",
|
|
6
|
-
memo = "memo",
|
|
7
|
-
sop = "sop",
|
|
8
|
-
agent = "agent",
|
|
9
|
-
upgradeOrder = "upgradeOrder",
|
|
10
|
-
otherLink = "other_link",
|
|
11
|
-
yuque = "yuque",// 语雀
|
|
12
|
-
personalDoc = "personalDoc"
|
|
13
|
-
}
|
|
14
|
-
export declare const REFERENCE_TYPE_PARAMS: {
|
|
15
|
-
doc: {
|
|
16
|
-
value: REFERENCE_TYPE_ENUM;
|
|
17
|
-
backgroundColor: string;
|
|
18
|
-
color: string;
|
|
19
|
-
title: string;
|
|
20
|
-
description: string;
|
|
21
|
-
icon_f: string;
|
|
22
|
-
icon: string;
|
|
23
|
-
};
|
|
24
|
-
kb: {
|
|
25
|
-
value: REFERENCE_TYPE_ENUM;
|
|
26
|
-
backgroundColor: string;
|
|
27
|
-
color: string;
|
|
28
|
-
title: string;
|
|
29
|
-
description: string;
|
|
30
|
-
icon_f: string;
|
|
31
|
-
icon: string;
|
|
32
|
-
};
|
|
33
|
-
ticket: {
|
|
34
|
-
value: REFERENCE_TYPE_ENUM;
|
|
35
|
-
backgroundColor: string;
|
|
36
|
-
color: string;
|
|
37
|
-
title: string;
|
|
38
|
-
description: string;
|
|
39
|
-
icon_f: string;
|
|
40
|
-
icon: string;
|
|
41
|
-
};
|
|
42
|
-
intelligenceKb: {
|
|
43
|
-
value: REFERENCE_TYPE_ENUM;
|
|
44
|
-
backgroundColor: string;
|
|
45
|
-
color: string;
|
|
46
|
-
title: string;
|
|
47
|
-
description: string;
|
|
48
|
-
icon_f: string;
|
|
49
|
-
icon: string;
|
|
50
|
-
};
|
|
51
|
-
memo: {
|
|
52
|
-
value: REFERENCE_TYPE_ENUM;
|
|
53
|
-
backgroundColor: string;
|
|
54
|
-
color: string;
|
|
55
|
-
title: string;
|
|
56
|
-
description: string;
|
|
57
|
-
icon_f: string;
|
|
58
|
-
icon: string;
|
|
59
|
-
};
|
|
60
|
-
sop: {
|
|
61
|
-
value: REFERENCE_TYPE_ENUM;
|
|
62
|
-
backgroundColor: string;
|
|
63
|
-
color: string;
|
|
64
|
-
title: string;
|
|
65
|
-
description: string;
|
|
66
|
-
icon_f: string;
|
|
67
|
-
icon: string;
|
|
68
|
-
};
|
|
69
|
-
agent: {
|
|
70
|
-
value: REFERENCE_TYPE_ENUM;
|
|
71
|
-
backgroundColor: string;
|
|
72
|
-
color: string;
|
|
73
|
-
title: string;
|
|
74
|
-
description: string;
|
|
75
|
-
icon_f: string;
|
|
76
|
-
icon: string;
|
|
77
|
-
};
|
|
78
|
-
upgradeOrder: {
|
|
79
|
-
value: REFERENCE_TYPE_ENUM;
|
|
80
|
-
backgroundColor: string;
|
|
81
|
-
color: string;
|
|
82
|
-
title: string;
|
|
83
|
-
icon_f: string;
|
|
84
|
-
icon: string;
|
|
85
|
-
};
|
|
86
|
-
other_link: {
|
|
87
|
-
value: REFERENCE_TYPE_ENUM;
|
|
88
|
-
backgroundColor: string;
|
|
89
|
-
color: string;
|
|
90
|
-
title: string;
|
|
91
|
-
icon: string;
|
|
92
|
-
};
|
|
93
|
-
yuque: {
|
|
94
|
-
value: REFERENCE_TYPE_ENUM;
|
|
95
|
-
backgroundColor: string;
|
|
96
|
-
color: string;
|
|
97
|
-
title: string;
|
|
98
|
-
icon: string;
|
|
99
|
-
icon_f: string;
|
|
100
|
-
};
|
|
101
|
-
personalDoc: {
|
|
102
|
-
value: REFERENCE_TYPE_ENUM;
|
|
103
|
-
backgroundColor: string;
|
|
104
|
-
color: string;
|
|
105
|
-
title: string;
|
|
106
|
-
icon: string;
|
|
107
|
-
icon_f: string;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export declare enum TRACE_STATUS_ENUM {
|
|
2
|
-
RUNNING = "RUNNING",
|
|
3
|
-
SUCCESS = "SUCCESS",
|
|
4
|
-
FAILED = "FAILED",
|
|
5
|
-
STOP = "STOP",
|
|
6
|
-
FINISHED = "FINISHED"
|
|
7
|
-
}
|
|
8
|
-
export declare const TRACE_STATUS_MAP: {
|
|
9
|
-
RUNNING: {
|
|
10
|
-
value: TRACE_STATUS_ENUM;
|
|
11
|
-
icon: string;
|
|
12
|
-
iconClassName: string;
|
|
13
|
-
iconColor: string;
|
|
14
|
-
collapseTraceText: string;
|
|
15
|
-
};
|
|
16
|
-
SUCCESS: {
|
|
17
|
-
value: TRACE_STATUS_ENUM;
|
|
18
|
-
icon: string;
|
|
19
|
-
iconColor: string;
|
|
20
|
-
collapseTraceText: string;
|
|
21
|
-
};
|
|
22
|
-
FAILED: {
|
|
23
|
-
value: TRACE_STATUS_ENUM;
|
|
24
|
-
icon: string;
|
|
25
|
-
iconColor: string;
|
|
26
|
-
collapseTraceText: string;
|
|
27
|
-
};
|
|
28
|
-
STOP: {
|
|
29
|
-
value: TRACE_STATUS_ENUM;
|
|
30
|
-
icon: string;
|
|
31
|
-
iconColor: string;
|
|
32
|
-
collapseTraceText: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
package/es/context/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { IAssistantChatContext } from '../interface/IChatContext';
|
|
3
|
-
declare global {
|
|
4
|
-
export interface Window {
|
|
5
|
-
isFinishedLlmMessageId?: any;
|
|
6
|
-
currentUpdateMessageId?: any;
|
|
7
|
-
currentMessageSendTimestamp?: any;
|
|
8
|
-
__account__?: any;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const AssistantChatContext: React.Context<IAssistantChatContext>;
|
|
12
|
-
declare const AssistantChatProvider: (props?: IAssistantChatContext) => React.JSX.Element;
|
|
13
|
-
export default AssistantChatProvider;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export declare const updateMessageList: ({ bizId, bizDomain, messagesMaxLength, setMessagesLoading, currentUpdateMessageIdRef, messageListRef, setMessageList, chatAppRef, currentUpdateMessageIndexRef, isInit, scroll, setSendMessageDisabled, requestVersionRef, }: {
|
|
2
|
-
bizId: any;
|
|
3
|
-
bizDomain: any;
|
|
4
|
-
messagesMaxLength: any;
|
|
5
|
-
setMessagesLoading: any;
|
|
6
|
-
currentUpdateMessageIdRef: any;
|
|
7
|
-
messageListRef: any;
|
|
8
|
-
setMessageList: any;
|
|
9
|
-
chatAppRef: any;
|
|
10
|
-
currentUpdateMessageIndexRef: any;
|
|
11
|
-
isInit: any;
|
|
12
|
-
scroll: any;
|
|
13
|
-
setSendMessageDisabled: any;
|
|
14
|
-
requestVersionRef: any;
|
|
15
|
-
}) => void;
|
|
16
|
-
export declare const updateSingleMessage: ({ subjectId, dialogId, bizDomain, locateAfterSingleMessageUpdate, messageListRef, setMessageList, }: {
|
|
17
|
-
subjectId: any;
|
|
18
|
-
dialogId: any;
|
|
19
|
-
bizDomain: any;
|
|
20
|
-
locateAfterSingleMessageUpdate: any;
|
|
21
|
-
messageListRef: any;
|
|
22
|
-
setMessageList: any;
|
|
23
|
-
}) => void;
|
|
24
|
-
export declare const updateMessageValue: ({ arg, messageListRef, setMessageList, currentUpdateMessageIndexRef, currentUpdateMessageIdRef, chatAppRef, interruptLlmMessageScroll, setSendMessageDisabled, }: {
|
|
25
|
-
arg: any;
|
|
26
|
-
messageListRef: any;
|
|
27
|
-
setMessageList: any;
|
|
28
|
-
currentUpdateMessageIndexRef: any;
|
|
29
|
-
currentUpdateMessageIdRef: any;
|
|
30
|
-
chatAppRef: any;
|
|
31
|
-
interruptLlmMessageScroll: any;
|
|
32
|
-
setSendMessageDisabled: any;
|
|
33
|
-
}) => void;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare const sendMessageRequest: ({ onSend, sendInfoQuery, onSuccessCallback, }: {
|
|
2
|
-
onSend: any;
|
|
3
|
-
sendInfoQuery: any;
|
|
4
|
-
onSuccessCallback: any;
|
|
5
|
-
}) => void;
|
|
6
|
-
export declare const successCallback: ({ result, setSendMessageValue, setSendMessageDisabled, inputFormSchema, inputFormRef, selectCopilotToolRef, toolConfig, quickTooltipRef, setInputFormSchema, }: {
|
|
7
|
-
result: any;
|
|
8
|
-
setSendMessageValue: any;
|
|
9
|
-
setSendMessageDisabled: any;
|
|
10
|
-
inputFormSchema: any;
|
|
11
|
-
inputFormRef: any;
|
|
12
|
-
selectCopilotToolRef: any;
|
|
13
|
-
toolConfig: any;
|
|
14
|
-
quickTooltipRef: any;
|
|
15
|
-
setInputFormSchema: any;
|
|
16
|
-
}) => void;
|
|
17
|
-
export declare const clickSendMessage: ({ sendMessageValue, inputFormSchema, inputFormRef, selectCopilotToolRef, logTrace, callback, }: {
|
|
18
|
-
sendMessageValue: any;
|
|
19
|
-
inputFormSchema: any;
|
|
20
|
-
inputFormRef: any;
|
|
21
|
-
selectCopilotToolRef: any;
|
|
22
|
-
logTrace: any;
|
|
23
|
-
callback: any;
|
|
24
|
-
}) => Promise<void>;
|
|
25
|
-
export declare const stopMessage: ({ bizId, bizDomain, messageId }: {
|
|
26
|
-
bizId: any;
|
|
27
|
-
bizDomain: any;
|
|
28
|
-
messageId: any;
|
|
29
|
-
}) => void;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const searchTools: ({ toolConfig, bizId, bizDomain, copilotToolType, searchInputValue, page, limit, }: {
|
|
2
|
-
toolConfig: any;
|
|
3
|
-
bizId: any;
|
|
4
|
-
bizDomain: any;
|
|
5
|
-
copilotToolType: any;
|
|
6
|
-
searchInputValue: any;
|
|
7
|
-
page: any;
|
|
8
|
-
limit: any;
|
|
9
|
-
}) => Promise<any>;
|
|
10
|
-
export declare const initTools: ({ bizId, bizDomain, setToolShowList, setShowAddTag }: {
|
|
11
|
-
bizId: any;
|
|
12
|
-
bizDomain: any;
|
|
13
|
-
setToolShowList: any;
|
|
14
|
-
setShowAddTag: any;
|
|
15
|
-
}) => void;
|
|
16
|
-
export declare const clearContext: ({ bizId, selectCopilotToolRef }: {
|
|
17
|
-
bizId: any;
|
|
18
|
-
selectCopilotToolRef: any;
|
|
19
|
-
}) => void;
|
package/es/index.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import PaulAiAssistant from './AssistantChat';
|
|
3
|
-
import CopyRequestId from './AssistantChat/AssistantChatCard/OperationCard/CopyRequestId';
|
|
4
|
-
import registerAssistChatForm from './common/registerAssistChatForm';
|
|
5
|
-
import AgentCardSubmit from './components/AgentCardSubmit';
|
|
6
|
-
import AigcTips from './components/AigcTips';
|
|
7
|
-
import ArrayInput from './components/ArrayInput';
|
|
8
|
-
import AssistantDrawer from './components/AssistantDrawer';
|
|
9
|
-
import MarkDown from './components/MarkDown';
|
|
10
|
-
import TraceMarkdownWithCard from './components/TraceMarkdownWithCard';
|
|
11
|
-
import TraceWithAgent from './components/TraceWithAgent';
|
|
12
|
-
import InspectionCard from './components/InspectionCard';
|
|
13
|
-
import PaulButtonGroupProps from './components/PaulButtonGroup';
|
|
14
|
-
import PopAuth from './components/PopAuth';
|
|
15
|
-
import SchemaInput from './components/SchemaInput';
|
|
16
|
-
import SelectBlurry from './components/SelectBlurry';
|
|
17
|
-
import ShareContent from './components/ShareContent';
|
|
18
|
-
import { ASSIST_CHAT_EVENT } from './constants/assistChatEvent';
|
|
19
|
-
import { BIZ_DOMAIN_TYPE } from './constants/common';
|
|
20
|
-
import ErrorBoundary from './ErrorBoundary';
|
|
21
|
-
import { parseLlmComponentUrl } from './utils/parseUrl';
|
|
22
|
-
import './index.scss';
|
|
23
|
-
export * from './AssistantChat/AssistantChatCard';
|
|
24
|
-
export { ChatTypeEnum } from './constants/common';
|
|
25
|
-
export * from './utils/send';
|
|
26
|
-
export { locateToDialogId } from './utils/common';
|
|
27
|
-
declare const LlmCardComponents: {
|
|
28
|
-
LlmMarkDown: (props: import("./components/LlmMarkDown").ILlmMarkDownProps) => import("react").JSX.Element;
|
|
29
|
-
LlmModelChange: (props: import("./components/LlmModelChange").ILlmModelChangeProps) => import("react").JSX.Element;
|
|
30
|
-
LlmReference: (props: import("./components/LlmReference").ILlmReferenceProps) => import("react").JSX.Element;
|
|
31
|
-
LlmTitle: (props: import("./components/LlmTitle").ILlmTitleProps) => import("react").JSX.Element;
|
|
32
|
-
LlmTrace: (props: import("./components/LlmTrace").ILlmTraceProps) => import("react").JSX.Element;
|
|
33
|
-
LlmTraceV2: (props: import("./components/LlmTraceV2").ILlmTraceProps) => import("react").JSX.Element;
|
|
34
|
-
LlmTraceV3: import("react").NamedExoticComponent<import("./components/LlmTraceV3/types").ILlmTraceV3Props>;
|
|
35
|
-
};
|
|
36
|
-
export default PaulAiAssistant;
|
|
37
|
-
export { LlmCardComponents, AigcTips, ErrorBoundary, MarkDown, AgentCardSubmit, PopAuth, SchemaInput, AssistantDrawer, TraceMarkdownWithCard, TraceWithAgent, InspectionCard, CopyRequestId, BIZ_DOMAIN_TYPE, ASSIST_CHAT_EVENT, registerAssistChatForm, PaulButtonGroupProps, SelectBlurry, ArrayInput, parseLlmComponentUrl, ShareContent, };
|
package/es/interface/IAgent.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 工具选择来源
|
|
3
|
-
* 默认: DEFAULT
|
|
4
|
-
* 推荐: RECOMMEND
|
|
5
|
-
* 工单侧关键字识别: TICKET_KEY_WORD
|
|
6
|
-
* 工具栏: SHOW_AGENT
|
|
7
|
-
* tab我的: CUSTOM_AGENT
|
|
8
|
-
* tab市场: AGENT
|
|
9
|
-
* tab参赛: COMPETITION_AGENT
|
|
10
|
-
* @搜索: SEARCH_AGENT
|
|
11
|
-
*/
|
|
12
|
-
export type ISourceType = 'DEFAULT' | 'RECOMMEND' | 'TICKET_KEY_WORD' | 'SHOW_AGENT' | 'CUSTOM_AGENT' | 'AGENT' | 'COMPETITION_AGENT' | 'SEARCH_AGENT' | 'SOP_TOOL';
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
export interface IAssistantBottomRef {
|
|
3
|
-
/**
|
|
4
|
-
* 设置placeholder
|
|
5
|
-
*/
|
|
6
|
-
setPlaceholder?: (val: string) => void;
|
|
7
|
-
/**
|
|
8
|
-
* 聚焦输入框
|
|
9
|
-
*/
|
|
10
|
-
focusInput?: () => void;
|
|
11
|
-
}
|
|
12
|
-
export interface IAssistantBottomProps {
|
|
13
|
-
/**
|
|
14
|
-
* 业务id
|
|
15
|
-
*/
|
|
16
|
-
bizId?: string | number;
|
|
17
|
-
/**
|
|
18
|
-
* 业务类型
|
|
19
|
-
*/
|
|
20
|
-
bizDomain?: string;
|
|
21
|
-
/**
|
|
22
|
-
* 发送消息的placeholder
|
|
23
|
-
*/
|
|
24
|
-
placeholder?: string;
|
|
25
|
-
/**
|
|
26
|
-
* 当前更新的消息id
|
|
27
|
-
*/
|
|
28
|
-
currentUpdateMessageIdRef?: any;
|
|
29
|
-
/**
|
|
30
|
-
* 输入框属性
|
|
31
|
-
*/
|
|
32
|
-
inputProps?: any;
|
|
33
|
-
/**
|
|
34
|
-
* 消息value
|
|
35
|
-
*/
|
|
36
|
-
sendMessageValue?: string;
|
|
37
|
-
/**
|
|
38
|
-
* set消息value
|
|
39
|
-
*/
|
|
40
|
-
setSendMessageValue?: (val: string) => void;
|
|
41
|
-
/**
|
|
42
|
-
* 发送消息是否禁用
|
|
43
|
-
*/
|
|
44
|
-
sendMessageDisabled?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* set发送消息是否禁用
|
|
47
|
-
*/
|
|
48
|
-
setSendMessageDisabled?: (val: boolean) => void;
|
|
49
|
-
/**
|
|
50
|
-
* 工具区域的自定义渲染
|
|
51
|
-
*/
|
|
52
|
-
toolRender?: () => ReactNode;
|
|
53
|
-
/**
|
|
54
|
-
* 底部按钮额外渲染配置
|
|
55
|
-
*/
|
|
56
|
-
extBottomRender?: () => ReactNode;
|
|
57
|
-
/**
|
|
58
|
-
* 底部按钮固定渲染配置
|
|
59
|
-
*/
|
|
60
|
-
extBottomFixedRender?: () => ReactNode;
|
|
61
|
-
/**
|
|
62
|
-
* 发送消息
|
|
63
|
-
*/
|
|
64
|
-
onSend?: (val: any) => void;
|
|
65
|
-
/**
|
|
66
|
-
* 输入框失去焦点
|
|
67
|
-
*/
|
|
68
|
-
onBlur?: (e: any) => void;
|
|
69
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { ISendProps } from './ISend';
|
|
2
|
-
export interface ICommonLogProps {
|
|
3
|
-
eventName?: string;
|
|
4
|
-
subEventName?: string;
|
|
5
|
-
operationType?: string;
|
|
6
|
-
dataJson?: any;
|
|
7
|
-
}
|
|
8
|
-
export interface ICtxProps {
|
|
9
|
-
meta: {
|
|
10
|
-
originData?: any;
|
|
11
|
-
sendMessageValue?: string;
|
|
12
|
-
sendMessageDisabled?: boolean;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* 日志上报方法
|
|
16
|
-
*/
|
|
17
|
-
log?: (eventName: string, v?: any) => void;
|
|
18
|
-
/**
|
|
19
|
-
* 操作链路上报方法
|
|
20
|
-
*/
|
|
21
|
-
logTrace?: {
|
|
22
|
-
startTrace?: (eventName: string, bizId: string | number) => void;
|
|
23
|
-
closeTrace?: (eventName: string, bizId: string | number) => void;
|
|
24
|
-
updateTrace?: (eventName: string, bizId: string | number, subEventKey: string) => void;
|
|
25
|
-
};
|
|
26
|
-
commonLog?: (logProps: ICommonLogProps) => void;
|
|
27
|
-
/**
|
|
28
|
-
* 获取API主机地址的方法
|
|
29
|
-
* 用于动态获取当前环境的API主机地址,主要用于XHS CDN图片URL代理转换
|
|
30
|
-
*/
|
|
31
|
-
getApiHost?: () => string;
|
|
32
|
-
onClickSendMessage?: () => void;
|
|
33
|
-
onSendMessage?: (sendProps?: ISendProps) => void;
|
|
34
|
-
onSuccessCallback?: (result?: any) => void;
|
|
35
|
-
}
|
|
36
|
-
export interface IChatCardBaseProps {
|
|
37
|
-
ctx?: ICtxProps;
|
|
38
|
-
bizId?: string | number;
|
|
39
|
-
bizDomain?: string;
|
|
40
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import type { IAssistantChatProps } from '.';
|
|
2
|
-
import type { IMessage } from './IMessage';
|
|
3
|
-
import type { ISendProps } from './ISend';
|
|
4
|
-
export interface IAssistantChatContext extends IAssistantChatProps {
|
|
5
|
-
children?: any;
|
|
6
|
-
textAreaRef?: any;
|
|
7
|
-
messages?: IMessage[];
|
|
8
|
-
setMessageList?: (v: any) => void;
|
|
9
|
-
chatAppRef?: any;
|
|
10
|
-
chatInputRef?: any;
|
|
11
|
-
messageListRef?: any;
|
|
12
|
-
currentUpdateMessageIdRef?: any;
|
|
13
|
-
currentUpdateMessageIndexRef?: any;
|
|
14
|
-
recommendSectionRef?: any;
|
|
15
|
-
quickTooltipRef?: any;
|
|
16
|
-
selectCopilotToolRef?: any;
|
|
17
|
-
inputFormRef?: any;
|
|
18
|
-
inputFormSchema?: any;
|
|
19
|
-
setInputFormSchema?: (v: any) => void;
|
|
20
|
-
getMessage?: (subjectId: string | number, dialogId: string) => void;
|
|
21
|
-
updateOneMessage?: (arg: any) => void;
|
|
22
|
-
getMessageList?: (isInit?: boolean, scroll?: boolean) => void;
|
|
23
|
-
messagesLoading?: boolean;
|
|
24
|
-
stopLlmMessage?: () => void;
|
|
25
|
-
onStopMessage?: () => void;
|
|
26
|
-
onClickSendMessage?: () => void;
|
|
27
|
-
onSendMessage?: (sendProps?: ISendProps) => void;
|
|
28
|
-
onSuccessCallback?: (result?: any) => void;
|
|
29
|
-
toolShowList?: any;
|
|
30
|
-
setToolShowList?: (v: any) => void;
|
|
31
|
-
showAddTag?: boolean;
|
|
32
|
-
setShowAddTag?: (v: boolean) => void;
|
|
33
|
-
searchCopilotTools?: (copilotToolType?: string, searchInputValue?: string, page?: number, limit?: number) => void;
|
|
34
|
-
initCopilotTools?: (v?: any) => void;
|
|
35
|
-
agentClearContext?: (v?: any) => void;
|
|
36
|
-
commonLog?: any;
|
|
37
|
-
featureConfig?: {
|
|
38
|
-
thinkingMode: string;
|
|
39
|
-
webSearchMode: string;
|
|
40
|
-
};
|
|
41
|
-
setFeatureConfig?: (v: any) => void;
|
|
42
|
-
showExternalThinkMode?: boolean;
|
|
43
|
-
imConnectCallback?: () => void;
|
|
44
|
-
shareMode?: boolean;
|
|
45
|
-
setShareMode?: (v: boolean) => void;
|
|
46
|
-
selectedMessages?: string[];
|
|
47
|
-
setSelectedMessages?: (v: string[]) => void;
|
|
48
|
-
toggleMessageSelection?: (messageId: string) => void;
|
|
49
|
-
clearSelectedMessages?: () => void;
|
|
50
|
-
enterShareMode?: (currentDialogId?: string) => void;
|
|
51
|
-
exitShareMode?: () => void;
|
|
52
|
-
getSelectedMessagesData?: () => any[];
|
|
53
|
-
isMessageSelected?: (messageId: string) => boolean;
|
|
54
|
-
isQuestionSelected?: (questionId: string) => boolean;
|
|
55
|
-
isAnswerSelected?: (answerId: string) => boolean;
|
|
56
|
-
getAnswerOfQuestion?: (questionId: string) => string | null;
|
|
57
|
-
getQuestionOfAnswer?: (answerId: string) => string | null;
|
|
58
|
-
canCancelSelection?: (messageId: string) => boolean;
|
|
59
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { IAssistantBottomRef } from './IChatBottom';
|
|
3
|
-
import type { ISendProps } from './ISend';
|
|
4
|
-
export interface IAssistantChatRef extends IAssistantBottomRef {
|
|
5
|
-
/**
|
|
6
|
-
* 更新输入框值
|
|
7
|
-
*/
|
|
8
|
-
updateInputValue?: (val: string) => void;
|
|
9
|
-
/**
|
|
10
|
-
* 禁用输入框
|
|
11
|
-
*/
|
|
12
|
-
disableInput?: (value: boolean) => void;
|
|
13
|
-
/**
|
|
14
|
-
* 显示单条消息卡片
|
|
15
|
-
*/
|
|
16
|
-
showSingleMessageCard?: (data: any) => ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* 设置输入表单schema
|
|
19
|
-
*/
|
|
20
|
-
setInputFormSchema?: (val: any) => void;
|
|
21
|
-
/**
|
|
22
|
-
* 设置placeholder
|
|
23
|
-
*/
|
|
24
|
-
setPlaceholder?: (val: string) => void;
|
|
25
|
-
/**
|
|
26
|
-
* 聚焦输入框
|
|
27
|
-
*/
|
|
28
|
-
focusInput?: () => void;
|
|
29
|
-
/**
|
|
30
|
-
* 获取滚动信息
|
|
31
|
-
*/
|
|
32
|
-
getScrollInfo?: () => {
|
|
33
|
-
isTop: boolean;
|
|
34
|
-
isBottom: boolean;
|
|
35
|
-
scrollOffset: number;
|
|
36
|
-
scrollSize: number;
|
|
37
|
-
viewportSize: number;
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* 初始化copilot工具
|
|
41
|
-
*/
|
|
42
|
-
initCopilotTools?: () => void;
|
|
43
|
-
/**
|
|
44
|
-
* 选择copilot工具
|
|
45
|
-
*/
|
|
46
|
-
selectCopilotTool?: (tool: any) => void;
|
|
47
|
-
/**
|
|
48
|
-
* 关闭copilot工具
|
|
49
|
-
*/
|
|
50
|
-
closeCopilotTool?: () => void;
|
|
51
|
-
/**
|
|
52
|
-
* 更新消息列表
|
|
53
|
-
*/
|
|
54
|
-
updataMessageList?: (scroll?: boolean) => void;
|
|
55
|
-
/**
|
|
56
|
-
* 更新单条消息
|
|
57
|
-
*/
|
|
58
|
-
updateMessage?: (messageId: any) => void;
|
|
59
|
-
/**
|
|
60
|
-
* 点击发送消息
|
|
61
|
-
*/
|
|
62
|
-
onClickSendMessage?: () => void;
|
|
63
|
-
/**
|
|
64
|
-
* 发送消息
|
|
65
|
-
* @param sendProps
|
|
66
|
-
* @returns
|
|
67
|
-
*/
|
|
68
|
-
onSendMessage?: (sendProps?: ISendProps) => void;
|
|
69
|
-
/**
|
|
70
|
-
* 发送消息成功回调
|
|
71
|
-
* @param result
|
|
72
|
-
* @returns
|
|
73
|
-
*/
|
|
74
|
-
onSuccessCallback?: (result?: any) => void;
|
|
75
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
/** 猜你想问类型枚举 */
|
|
3
|
-
export declare enum GUESS_QUESTION_TYPE {
|
|
4
|
-
/** 问题类型 */
|
|
5
|
-
question = "question",
|
|
6
|
-
/** PPT生成 */
|
|
7
|
-
ppt = "ppt",
|
|
8
|
-
/** 文档生成 */
|
|
9
|
-
document = "document",
|
|
10
|
-
/** 图片生成 */
|
|
11
|
-
image = "image",
|
|
12
|
-
/** 自定义操作 */
|
|
13
|
-
custom = "custom"
|
|
14
|
-
}
|
|
15
|
-
/** 猜你想问单个项配置 */
|
|
16
|
-
export interface IGuessQuestionItem {
|
|
17
|
-
/** 唯一标识 */
|
|
18
|
-
id: string | number;
|
|
19
|
-
/** 类型 */
|
|
20
|
-
type: GUESS_QUESTION_TYPE;
|
|
21
|
-
/** 显示文本 */
|
|
22
|
-
text: string;
|
|
23
|
-
/** 图标(可选,如果不提供则使用默认图标) */
|
|
24
|
-
icon?: string;
|
|
25
|
-
/** 点击后的操作数据(可选) */
|
|
26
|
-
actionData?: any;
|
|
27
|
-
/** 额外的自定义数据 */
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
}
|
|
30
|
-
/** 猜你想问配置 */
|
|
31
|
-
export interface IGuessQuestionConfig {
|
|
32
|
-
/** 问题列表 */
|
|
33
|
-
items: IGuessQuestionItem[];
|
|
34
|
-
/** 点击回调 */
|
|
35
|
-
onClick?: (item: IGuessQuestionItem) => void;
|
|
36
|
-
/** 自定义渲染(可选) */
|
|
37
|
-
customRender?: (item: IGuessQuestionItem) => ReactNode;
|
|
38
|
-
}
|
|
39
|
-
/** 猜你想问组件 Props */
|
|
40
|
-
export interface IGuessQuestionProps {
|
|
41
|
-
/** 配置 */
|
|
42
|
-
config: IGuessQuestionConfig;
|
|
43
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface IMessage {
|
|
2
|
-
id?: any;
|
|
3
|
-
type?: any;
|
|
4
|
-
userInfo?: {
|
|
5
|
-
userId?: any;
|
|
6
|
-
userName?: any;
|
|
7
|
-
role?: any;
|
|
8
|
-
avatar?: any;
|
|
9
|
-
};
|
|
10
|
-
timestamp?: any;
|
|
11
|
-
subjectId?: any;
|
|
12
|
-
extInfo?: any;
|
|
13
|
-
dataInfo?: any;
|
|
14
|
-
headerInfo?: any;
|
|
15
|
-
ticketId?: any;
|
|
16
|
-
dialogId?: any;
|
|
17
|
-
}
|