paul-ai-assistant 1.0.2 → 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/dist/6254.async.js +490 -490
- package/dist/7084.async.js +247 -0
- package/dist/customer-service-typewriter/index.html +44 -0
- package/dist/demos.async.js +384 -10
- package/dist/demos__customerServiceTypewriter__index.md.async.js +2 -0
- package/dist/dumi__tmp-production__dumi__theme__ContextWrapper.async.js +1 -1
- package/dist/meta__demos.async.js +1601 -1
- package/dist/meta__docs.async.js +29 -28
- package/dist/preload_helper.js +1 -1
- package/dist/umi.js +47 -47
- package/dist/~demos/demos-customer-service-typewriter-demo-customer-service-demo/index.html +44 -0
- package/dist/~demos/demos-customer-service-typewriter-demo-smart-scroll-demo/index.html +44 -0
- 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 +2 -2
- 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 +4 -4
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.js +6 -6
- package/es/AssistantChat/AssistantChatInput/index.js +7 -5
- package/es/common/registerAssistChatForm.js +8 -5
- package/es/components/AgentCardSubmit/index.js +1 -2
- 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 +2 -2
- package/es/components/PaulButtonGroup/index.js +2 -2
- package/es/components/PopAuth/index.js +2 -2
- package/es/components/SchemaInput/SchemaInputCore/index.js +1 -1
- package/es/components/SchemaInput/SimpleJSONEditor/index.js +1 -1
- package/es/components/SelectBlurry/index.js +2 -2
- package/es/components/ShareModal/index.js +2 -2
- package/es/components/ShareOperationBar/index.js +2 -2
- 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 +2 -2
- package/es/context/utils/send.js +3 -3
- package/es/context/utils/tool.js +2 -2
- package/es/utils/CSEIconTool.js +1 -1
- package/es/utils/apushAssistant.js +2 -3
- package/es/utils/clientPlugin.js +1 -1
- 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/es/utils/request.js +74 -0
- package/es/utils/send.js +1 -1
- package/es/utils/uploadImage.js +1 -1
- package/package.json +6 -19
- package/dist/2517.async.js +0 -247
- 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/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
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export declare const enum ROLE_TYPE {
|
|
4
|
-
SYSTEM = 1,// 系统消息
|
|
5
|
-
WORKER = 2,// 小二消息
|
|
6
|
-
LLM = 3,// 大模型消息
|
|
7
|
-
CUSTOMER = 4
|
|
8
|
-
}
|
|
9
|
-
export declare const enum MESSAGE_TYPE {
|
|
10
|
-
CARD = 1,// 卡片CARD 通过schema描述渲染对应表单文本内容,将读取schema字段的内容
|
|
11
|
-
TEXT = 2,// 普通文本TEXT 纯文本描述,将读取content内容
|
|
12
|
-
RICHTEXT = 3,// 富文本RICHTEXT 纯富文本内容渲染(目前这种类型基本没用,富文本现在用schema描述处理掉了)
|
|
13
|
-
AUTH = 4,// AUTH 同卡片CARD内容渲染
|
|
14
|
-
MARKDOWN = 5,// MARKDOWN
|
|
15
|
-
SECRET = 21,// 加密信息SECRET 文本内容默认隐藏,将读取content内容
|
|
16
|
-
MICRO_APP = 99,// 微应用工具
|
|
17
|
-
ANSWER_CARD = 100,// 答案卡片
|
|
18
|
-
INTERACTIVE_CARD = 101
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* 判断右边消息
|
|
22
|
-
* @param role
|
|
23
|
-
* @returns
|
|
24
|
-
*/
|
|
25
|
-
export declare const isRightMessage: (role: number) => boolean;
|
|
26
|
-
/**
|
|
27
|
-
* 判断是否为紫色卡片
|
|
28
|
-
* @param role
|
|
29
|
-
* @returns
|
|
30
|
-
*/
|
|
31
|
-
export declare const isPurpleMessageCard: (role: number) => boolean;
|
|
32
|
-
/**
|
|
33
|
-
* 判断是否为宽度100%卡片
|
|
34
|
-
* @param role
|
|
35
|
-
* @returns
|
|
36
|
-
*/
|
|
37
|
-
export declare const isWidth100MessageCard: (role: number) => boolean;
|
|
38
|
-
export declare const TagShow: (tagTypeProps: any) => React.JSX.Element;
|
|
39
|
-
/**
|
|
40
|
-
* 展示卡片标签
|
|
41
|
-
* @param message
|
|
42
|
-
* @returns
|
|
43
|
-
*/
|
|
44
|
-
export declare const showCardTag: (message: any, noColor?: boolean) => React.JSX.Element;
|
|
45
|
-
/**
|
|
46
|
-
* 获取元素底部距离的方法。
|
|
47
|
-
*
|
|
48
|
-
* @param el 目标元素。
|
|
49
|
-
* @returns 返回元素底部距离的像素值。
|
|
50
|
-
*/
|
|
51
|
-
export declare function getToBottom(el: HTMLElement): number;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { IBaseAgentSchemaFormProps } from '../../../../components/AgentSchemaForm/_interface';
|
|
3
|
-
import type { ICardRenderProps } from '../common/types';
|
|
4
|
-
export interface IBaseAgentCardRenderProps extends IBaseAgentSchemaFormProps {
|
|
5
|
-
summary?: string;
|
|
6
|
-
cardType?: 'FORM' | 'TEMPLATE' | 'ALFA';
|
|
7
|
-
}
|
|
8
|
-
export interface AgentCardRenderProps extends IBaseAgentCardRenderProps {
|
|
9
|
-
classname?: string;
|
|
10
|
-
onSubmitConfig?: {
|
|
11
|
-
url?: string;
|
|
12
|
-
text?: string;
|
|
13
|
-
style?: any;
|
|
14
|
-
onSubmit?: (v: any, enableSubmit?: () => void) => void;
|
|
15
|
-
};
|
|
16
|
-
templateExternalRenderType?: any;
|
|
17
|
-
formComponentMap?: any;
|
|
18
|
-
MemoryMicroComponent?: any;
|
|
19
|
-
enableCard?: boolean;
|
|
20
|
-
config?: {
|
|
21
|
-
schema: any;
|
|
22
|
-
type: 'FORM' | 'TEMPLATE' | 'ALFA';
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export interface AgentCardRenderProviderProps extends AgentCardRenderProps {
|
|
26
|
-
children?: React.ReactNode;
|
|
27
|
-
}
|
|
28
|
-
export declare const AgentCardRenderContext: React.Context<ICardRenderProps>;
|
|
29
|
-
export declare const AgentCardRenderProvider: (props: AgentCardRenderProviderProps) => React.JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const AGENT_EXECUTION_STATUS: {
|
|
2
|
-
SUCCESS: string;
|
|
3
|
-
ERROR: string;
|
|
4
|
-
RUNNING: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const AGENT_EXECUTION_STATUS_TYPE: {
|
|
7
|
-
[x: string]: {
|
|
8
|
-
icon: string;
|
|
9
|
-
color: string;
|
|
10
|
-
className?: undefined;
|
|
11
|
-
} | {
|
|
12
|
-
icon: string;
|
|
13
|
-
color: string;
|
|
14
|
-
className: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export declare const GUESS_URL = "https://an.aliyun-inc.com/guess";
|
|
4
|
-
export interface ILlmProps {
|
|
5
|
-
content?: string;
|
|
6
|
-
references?: any[];
|
|
7
|
-
finished?: boolean;
|
|
8
|
-
ctx?: any;
|
|
9
|
-
showQuestion?: any;
|
|
10
|
-
headerTips?: any;
|
|
11
|
-
onClickReference?: (reference: any, type: 'item' | 'url') => void;
|
|
12
|
-
}
|
|
13
|
-
declare const LlmGenerateCard: (props: ILlmProps) => React.JSX.Element;
|
|
14
|
-
export default LlmGenerateCard;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { IModalInfo, IShowQuestion, IThirdPartyModel } from '../../../components/LlmModelChange';
|
|
4
|
-
import type { IReference, IReferenceTypeMap } from '../../../components/ReferenceInfoItem';
|
|
5
|
-
import type { IChatCardBaseProps } from '../../../interface/IChatCard';
|
|
6
|
-
import './index.scss';
|
|
7
|
-
/** 后端数据 */
|
|
8
|
-
export interface ILlmGenerateCardV5Data {
|
|
9
|
-
/** 思考过程 */
|
|
10
|
-
trace?: any;
|
|
11
|
-
/** markdown 文本 */
|
|
12
|
-
content?: string;
|
|
13
|
-
/** 是否结束 */
|
|
14
|
-
finished?: boolean;
|
|
15
|
-
/** 思考中加载状态 */
|
|
16
|
-
thinkLoading?: boolean;
|
|
17
|
-
/** 参考来源 */
|
|
18
|
-
references?: IReference[];
|
|
19
|
-
/** 模型名称 */
|
|
20
|
-
chatMode?: string;
|
|
21
|
-
/** 卡片提示 */
|
|
22
|
-
headerTips?: {
|
|
23
|
-
showTips?: boolean;
|
|
24
|
-
tipsContent?: string;
|
|
25
|
-
tipsColor?: string;
|
|
26
|
-
};
|
|
27
|
-
/** 第三方模型 工单 */
|
|
28
|
-
thirdPartyModel?: IThirdPartyModel;
|
|
29
|
-
/** 第三方模型 云企 */
|
|
30
|
-
modalInfo?: IModalInfo;
|
|
31
|
-
/** 展示问题 */
|
|
32
|
-
showQuestion?: IShowQuestion;
|
|
33
|
-
/** 云企业务的messageId */
|
|
34
|
-
messageId?: string | number;
|
|
35
|
-
}
|
|
36
|
-
/** 前端可配置 */
|
|
37
|
-
export interface ILlmGenerateCardV5Props {
|
|
38
|
-
/** 是否展示 trace */
|
|
39
|
-
showTrace?: boolean;
|
|
40
|
-
/** 是否展示第三方模型切换 */
|
|
41
|
-
showModelChange?: boolean;
|
|
42
|
-
/** 是否展示 aigc 提示 */
|
|
43
|
-
showAigcTips?: boolean;
|
|
44
|
-
/** 参考来源位置 */
|
|
45
|
-
referencePosition?: 'top' | 'bottom';
|
|
46
|
-
/** 参考来源类型 */
|
|
47
|
-
referenceTypeMap?: IReferenceTypeMap;
|
|
48
|
-
/** markdown 组件属性 */
|
|
49
|
-
markDownProps?: any;
|
|
50
|
-
/** markdown 其他自定义组件注册 */
|
|
51
|
-
markDownExtComponentMap?: object;
|
|
52
|
-
/** 点击参考来源 */
|
|
53
|
-
onClickReference?: (params: {
|
|
54
|
-
reference: any;
|
|
55
|
-
type: string;
|
|
56
|
-
url: string;
|
|
57
|
-
title: string;
|
|
58
|
-
}) => void;
|
|
59
|
-
/** 点击第三方模型 */
|
|
60
|
-
onClickThirdPartyModel?: (params: {
|
|
61
|
-
query: string;
|
|
62
|
-
searchType: string;
|
|
63
|
-
extInfo: {
|
|
64
|
-
thirdPartyModel: any;
|
|
65
|
-
messageId: string;
|
|
66
|
-
};
|
|
67
|
-
}) => void;
|
|
68
|
-
/** markdown 链接点击拦截 */
|
|
69
|
-
getALinkInterception?: (params: any) => ReactNode;
|
|
70
|
-
/** 参考来源自定义渲染 */
|
|
71
|
-
referenceExtraRender?: (params?: any) => ReactNode;
|
|
72
|
-
}
|
|
73
|
-
export type IProps = ILlmGenerateCardV5Props & ILlmGenerateCardV5Data & IChatCardBaseProps & {
|
|
74
|
-
type?: 'v4' | 'v5';
|
|
75
|
-
};
|
|
76
|
-
export declare const BaseLlmGenerateCard: (props: IProps) => React.JSX.Element;
|
|
77
|
-
declare const LlmGenerateCardV5: (props: ILlmGenerateCardV5Props) => React.JSX.Element;
|
|
78
|
-
export default LlmGenerateCardV5;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author qytan
|
|
3
|
-
* @description 点赞点踩
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
export declare enum FEEDBACK_TYPE {
|
|
7
|
-
HELPFUL = "helpful",// 点赞
|
|
8
|
-
UNHELPFUL = "unhelpful"
|
|
9
|
-
}
|
|
10
|
-
declare const FeedBack: (props: any) => React.JSX.Element;
|
|
11
|
-
export default FeedBack;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author qytan
|
|
3
|
-
* @description UserQueryCardRender渲染的Attachments
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import './index.scss';
|
|
7
|
-
interface Attachment {
|
|
8
|
-
fileName: string;
|
|
9
|
-
fileSize: number;
|
|
10
|
-
ossFileKey: string;
|
|
11
|
-
fileType: string;
|
|
12
|
-
}
|
|
13
|
-
interface AttachmentsData {
|
|
14
|
-
type: 'ATTACHMENTS';
|
|
15
|
-
contents: Attachment[];
|
|
16
|
-
}
|
|
17
|
-
export declare const bytesToSize: (bytes: number) => string;
|
|
18
|
-
declare const AttachmentsRender: ({ data }: {
|
|
19
|
-
data: AttachmentsData;
|
|
20
|
-
}) => React.JSX.Element;
|
|
21
|
-
export default AttachmentsRender;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default as AgentCardRender } from './AgentCardRender';
|
|
2
|
-
export { default as AgentCommonCard } from './AgentCommonCard';
|
|
3
|
-
export { default as LlmGenerateCard } from './LlmGenerateCard';
|
|
4
|
-
export { default as LlmGenerateCardV5 } from './LlmGenerateCardV5';
|
|
5
|
-
export { default as UserQueryCardRender } from './UserQueryCardRender';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { IAssistantBottomProps, IAssistantBottomRef } from '../../interface/IChatBottom';
|
|
3
|
-
import './index.scss';
|
|
4
|
-
declare const _default: React.ForwardRefExoticComponent<IAssistantBottomProps & React.RefAttributes<IAssistantBottomRef>>;
|
|
5
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { IIntelligenceAssistantChatProps } from '../interface';
|
|
3
|
-
import type { IAssistantChatRef } from '../interface/IChatRef';
|
|
4
|
-
import './index.scss';
|
|
5
|
-
declare const _default: React.ForwardRefExoticComponent<IIntelligenceAssistantChatProps & React.RefAttributes<IAssistantChatRef>>;
|
|
6
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const clickAgentCardRenderATag: (_event: any, commonLog: any, url: any, text: any) => void;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface IProps {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
Fallback?: React.ComponentType<any>;
|
|
5
|
-
onError?: (error?: Error, componentStack?: string) => void;
|
|
6
|
-
onLog?: (error?: Error, componentStack?: string) => void;
|
|
7
|
-
errorMessage?: string | React.ReactElement;
|
|
8
|
-
}
|
|
9
|
-
export interface IErrorInfo {
|
|
10
|
-
componentStack: string;
|
|
11
|
-
}
|
|
12
|
-
export interface IState {
|
|
13
|
-
error?: Error | null;
|
|
14
|
-
info?: IErrorInfo;
|
|
15
|
-
}
|
|
16
|
-
declare class ErrorBoundary extends React.Component<IProps, IState> {
|
|
17
|
-
static defaultProps: IProps;
|
|
18
|
-
constructor(props: any);
|
|
19
|
-
componentDidCatch(error: Error, info: IErrorInfo): void;
|
|
20
|
-
render(): {};
|
|
21
|
-
}
|
|
22
|
-
export default ErrorBoundary;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { IChatCardBaseProps } from '../../interface/IChatCard';
|
|
3
|
-
export interface IAgentCardSubmitProps extends IChatCardBaseProps {
|
|
4
|
-
agentId?: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
submitConfig?: {
|
|
7
|
-
visible?: boolean;
|
|
8
|
-
url?: string;
|
|
9
|
-
text?: string;
|
|
10
|
-
style?: any;
|
|
11
|
-
};
|
|
12
|
-
onSubmitConfig?: {
|
|
13
|
-
url?: string;
|
|
14
|
-
text?: string;
|
|
15
|
-
style?: any;
|
|
16
|
-
onSubmit?: (v: any, enableSubmit?: () => void) => void;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
declare const AgentCardSubmit: (props: IAgentCardSubmitProps) => React.JSX.Element;
|
|
20
|
-
export default AgentCardSubmit;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './ScreenshotView.scss';
|
|
3
|
-
interface ScreenshotViewProps {
|
|
4
|
-
fileKey?: string;
|
|
5
|
-
extractedTexts?: string[];
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* AgentSchemaForm 截图模式视图组件
|
|
9
|
-
* 处理截图展示、错误提示、纯文字展示和文本复制等功能
|
|
10
|
-
*/
|
|
11
|
-
declare const ScreenshotView: React.FC<ScreenshotViewProps>;
|
|
12
|
-
export default ScreenshotView;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { IChatCardBaseProps } from '../../interface/IChatCard';
|
|
2
|
-
export declare const enum FORM_EDITABLE {
|
|
3
|
-
DISABLED = 0,// 禁用
|
|
4
|
-
EDITABLE = 1,// 编辑
|
|
5
|
-
READPRETTY = 2,// 文本展示
|
|
6
|
-
READONLY = 3
|
|
7
|
-
}
|
|
8
|
-
export declare const PATTERN: {
|
|
9
|
-
0: string;
|
|
10
|
-
1: string;
|
|
11
|
-
2: string;
|
|
12
|
-
3: string;
|
|
13
|
-
};
|
|
14
|
-
export interface IBaseAgentSchemaFormProps extends IChatCardBaseProps {
|
|
15
|
-
agentId?: string;
|
|
16
|
-
cardId?: string;
|
|
17
|
-
cardSchema?: any;
|
|
18
|
-
values?: any;
|
|
19
|
-
editable?: FORM_EDITABLE;
|
|
20
|
-
submitConfig?: {
|
|
21
|
-
visible?: boolean;
|
|
22
|
-
url?: string;
|
|
23
|
-
text?: string;
|
|
24
|
-
style?: any;
|
|
25
|
-
};
|
|
26
|
-
status?: any;
|
|
27
|
-
}
|
|
28
|
-
export interface AgentSchemaFormProps extends IBaseAgentSchemaFormProps {
|
|
29
|
-
onSubmitConfig?: {
|
|
30
|
-
url?: string;
|
|
31
|
-
text?: string;
|
|
32
|
-
style?: any;
|
|
33
|
-
onSubmit?: (v: any, enableSubmit?: () => void) => void;
|
|
34
|
-
};
|
|
35
|
-
formComponentMap?: any;
|
|
36
|
-
MemoryMicroComponent?: any;
|
|
37
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhuiw、洛萨
|
|
3
|
-
* @description AgentSchemaForm 渲染表单
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { AgentSchemaFormProps } from './_interface';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
declare const AgentSchemaForm: (props: AgentSchemaFormProps) => React.JSX.Element;
|
|
9
|
-
export default AgentSchemaForm;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
interface CustomDrawerProps {
|
|
4
|
-
visible: boolean;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
title?: React.ReactNode;
|
|
7
|
-
footer?: React.ReactNode;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
width?: number | string;
|
|
10
|
-
className?: string;
|
|
11
|
-
style?: React.CSSProperties;
|
|
12
|
-
backgroundColor?: 'white' | 'blue';
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* 右侧弹窗组件,参考 antd Modal 设计
|
|
16
|
-
* title 默认为"预览",右上角有关闭按钮
|
|
17
|
-
* 支持自定义 title/footer/body
|
|
18
|
-
* 支持关闭动画
|
|
19
|
-
* 挂载到 body 上,避免层级问题
|
|
20
|
-
*/
|
|
21
|
-
declare const CustomDrawer: React.FC<CustomDrawerProps>;
|
|
22
|
-
export default CustomDrawer;
|