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.
Files changed (213) hide show
  1. package/dist/6254.async.js +490 -490
  2. package/dist/7084.async.js +247 -0
  3. package/dist/customer-service-typewriter/index.html +44 -0
  4. package/dist/demos.async.js +384 -10
  5. package/dist/demos__customerServiceTypewriter__index.md.async.js +2 -0
  6. package/dist/dumi__tmp-production__dumi__theme__ContextWrapper.async.js +1 -1
  7. package/dist/meta__demos.async.js +1601 -1
  8. package/dist/meta__docs.async.js +29 -28
  9. package/dist/preload_helper.js +1 -1
  10. package/dist/umi.js +47 -47
  11. package/dist/~demos/demos-customer-service-typewriter-demo-customer-service-demo/index.html +44 -0
  12. package/dist/~demos/demos-customer-service-typewriter-demo-smart-scroll-demo/index.html +44 -0
  13. package/es/AssistantChat/AssistantChatApp/const.js +1 -1
  14. package/es/AssistantChat/AssistantChatApp/index.js +1 -1
  15. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.js +4 -4
  16. package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.js +4 -5
  17. package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.js +2 -2
  18. package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.js +1 -1
  19. package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.js +1 -1
  20. package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.js +1 -1
  21. package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.js +2 -2
  22. package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.js +1 -1
  23. package/es/AssistantChat/AssistantChatCard/OperationCard/index.js +1 -1
  24. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.js +4 -4
  25. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.js +6 -6
  26. package/es/AssistantChat/AssistantChatInput/index.js +7 -5
  27. package/es/common/registerAssistChatForm.js +8 -5
  28. package/es/components/AgentCardSubmit/index.js +1 -2
  29. package/es/components/AgentResult/index.js +1 -1
  30. package/es/components/AgentSchemaForm/ScreenshotView.js +1 -1
  31. package/es/components/AgentSchemaForm/index.js +5 -5
  32. package/es/components/ArrayInput/index.js +1 -1
  33. package/es/components/InspectionCard/index.js +1 -1
  34. package/es/components/LlmMarkDown/MdAmarkGuess/index.js +1 -1
  35. package/es/components/LlmMarkDown/MdAmarkReference/index.js +3 -3
  36. package/es/components/LlmMarkDown/index.js +1 -1
  37. package/es/components/LlmModelChange/index.js +2 -2
  38. package/es/components/LlmReference/index.js +9 -9
  39. package/es/components/LlmTraceComponents/Disassemble/index.js +2 -2
  40. package/es/components/LlmTraceComponents/Rewrite/index.js +2 -2
  41. package/es/components/MarkDown/index.js +42 -13
  42. package/es/components/ModelSelect/ModeDropdown.js +1 -1
  43. package/es/components/ModelSelect/const.js +3 -3
  44. package/es/components/PaulButtonGroup/Select.js +2 -2
  45. package/es/components/PaulButtonGroup/index.js +2 -2
  46. package/es/components/PopAuth/index.js +2 -2
  47. package/es/components/SchemaInput/SchemaInputCore/index.js +1 -1
  48. package/es/components/SchemaInput/SimpleJSONEditor/index.js +1 -1
  49. package/es/components/SelectBlurry/index.js +2 -2
  50. package/es/components/ShareModal/index.js +2 -2
  51. package/es/components/ShareOperationBar/index.js +2 -2
  52. package/es/components/TextContent/index.js +3 -3
  53. package/es/components/TraceWithAgent/index.js +4 -9
  54. package/es/context/index.js +2 -1
  55. package/es/context/utils/messages.js +2 -2
  56. package/es/context/utils/send.js +3 -3
  57. package/es/context/utils/tool.js +2 -2
  58. package/es/utils/CSEIconTool.js +1 -1
  59. package/es/utils/apushAssistant.js +2 -3
  60. package/es/utils/clientPlugin.js +1 -1
  61. package/es/utils/common.js +17 -0
  62. package/es/utils/event.js +87 -0
  63. package/es/utils/formDataFormat.js +1 -1
  64. package/es/utils/formatData.js +1 -1
  65. package/es/utils/helpers.js +78 -0
  66. package/es/utils/log.js +1 -1
  67. package/es/utils/request.js +74 -0
  68. package/es/utils/send.js +1 -1
  69. package/es/utils/uploadImage.js +1 -1
  70. package/package.json +6 -19
  71. package/dist/2517.async.js +0 -247
  72. package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.d.ts +0 -8
  73. package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.d.ts +0 -9
  74. package/es/AssistantChat/AssistantChatApp/const.d.ts +0 -51
  75. package/es/AssistantChat/AssistantChatApp/index.d.ts +0 -4
  76. package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.d.ts +0 -3
  77. package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.d.ts +0 -3
  78. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.d.ts +0 -5
  79. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.d.ts +0 -7
  80. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.d.ts +0 -3
  81. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.d.ts +0 -3
  82. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.d.ts +0 -3
  83. package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.d.ts +0 -29
  84. package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.d.ts +0 -4
  85. package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.d.ts +0 -2
  86. package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.d.ts +0 -4
  87. package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.d.ts +0 -16
  88. package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.d.ts +0 -14
  89. package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.d.ts +0 -78
  90. package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.d.ts +0 -7
  91. package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.d.ts +0 -7
  92. package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.d.ts +0 -3
  93. package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.d.ts +0 -11
  94. package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.d.ts +0 -3
  95. package/es/AssistantChat/AssistantChatCard/OperationCard/index.d.ts +0 -4
  96. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.d.ts +0 -21
  97. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.d.ts +0 -7
  98. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.d.ts +0 -8
  99. package/es/AssistantChat/AssistantChatCard/index.d.ts +0 -5
  100. package/es/AssistantChat/AssistantChatInput/index.d.ts +0 -5
  101. package/es/AssistantChat/AssistantToolApp/const.d.ts +0 -12
  102. package/es/AssistantChat/AssistantToolApp/index.d.ts +0 -4
  103. package/es/AssistantChat/AssistantToolExecutionApp/const.d.ts +0 -7
  104. package/es/AssistantChat/AssistantToolExecutionApp/index.d.ts +0 -4
  105. package/es/AssistantChat/AssistentError/index.d.ts +0 -5
  106. package/es/AssistantChat/index.d.ts +0 -6
  107. package/es/AssistantChat/logCallback/aTagLog.d.ts +0 -1
  108. package/es/AssistantChat/logCallback/copyLog.d.ts +0 -3
  109. package/es/ErrorBoundary/ErrorBoundaryFallback/index.d.ts +0 -5
  110. package/es/ErrorBoundary/index.d.ts +0 -22
  111. package/es/common/registerAssistChatForm.d.ts +0 -2
  112. package/es/components/AgentCardSubmit/index.d.ts +0 -20
  113. package/es/components/AgentResult/index.d.ts +0 -8
  114. package/es/components/AgentSchemaForm/ScreenshotView.d.ts +0 -12
  115. package/es/components/AgentSchemaForm/_interface.d.ts +0 -37
  116. package/es/components/AgentSchemaForm/index.d.ts +0 -9
  117. package/es/components/AgentText/index.d.ts +0 -4
  118. package/es/components/AigcTips/index.d.ts +0 -9
  119. package/es/components/ArrayInput/index.d.ts +0 -3
  120. package/es/components/AssistantDrawer/index.d.ts +0 -22
  121. package/es/components/EmptyIcon/index.d.ts +0 -3
  122. package/es/components/HeaderSvgIcon/index.d.ts +0 -3
  123. package/es/components/InspectionCard/index.d.ts +0 -66
  124. package/es/components/InspectionCard/result.d.ts +0 -13
  125. package/es/components/LlmMarkDown/MdAmarkGuess/index.d.ts +0 -16
  126. package/es/components/LlmMarkDown/MdAmarkReference/index.d.ts +0 -21
  127. package/es/components/LlmMarkDown/index.d.ts +0 -30
  128. package/es/components/LlmModelChange/index.d.ts +0 -57
  129. package/es/components/LlmReference/index.d.ts +0 -25
  130. package/es/components/LlmTitle/index.d.ts +0 -14
  131. package/es/components/LlmTrace/index.d.ts +0 -17
  132. package/es/components/LlmTraceComponents/Disassemble/index.d.ts +0 -24
  133. package/es/components/LlmTraceComponents/ReadResource/index.d.ts +0 -24
  134. package/es/components/LlmTraceComponents/Rewrite/index.d.ts +0 -23
  135. package/es/components/LlmTraceComponents/TraceMarkDown/index.d.ts +0 -22
  136. package/es/components/LlmTraceComponents/const.d.ts +0 -25
  137. package/es/components/LlmTraceV2/index.d.ts +0 -56
  138. package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.d.ts +0 -13
  139. package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.d.ts +0 -18
  140. package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.d.ts +0 -13
  141. package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.d.ts +0 -13
  142. package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.d.ts +0 -20
  143. package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.d.ts +0 -13
  144. package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.d.ts +0 -12
  145. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.d.ts +0 -13
  146. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.d.ts +0 -13
  147. package/es/components/LlmTraceV3/components/TraceContentComponents/const.d.ts +0 -32
  148. package/es/components/LlmTraceV3/components/TraceGroup/index.d.ts +0 -8
  149. package/es/components/LlmTraceV3/components/TraceHeader/index.d.ts +0 -8
  150. package/es/components/LlmTraceV3/components/TraceItem/index.d.ts +0 -8
  151. package/es/components/LlmTraceV3/components/TraceSlide/index.d.ts +0 -30
  152. package/es/components/LlmTraceV3/components/TraceStatusIcon/index.d.ts +0 -8
  153. package/es/components/LlmTraceV3/hooks/useGroupCollapse.d.ts +0 -18
  154. package/es/components/LlmTraceV3/hooks/useItemCollapse.d.ts +0 -18
  155. package/es/components/LlmTraceV3/hooks/useTraceAnimation.d.ts +0 -15
  156. package/es/components/LlmTraceV3/hooks/useTraceCollapse.d.ts +0 -17
  157. package/es/components/LlmTraceV3/index.d.ts +0 -11
  158. package/es/components/LlmTraceV3/types.d.ts +0 -263
  159. package/es/components/LlmTraceV3/utils/collapseLogic.d.ts +0 -26
  160. package/es/components/LlmTraceV3/utils/traceHelpers.d.ts +0 -42
  161. package/es/components/MarkDown/index.d.ts +0 -11
  162. package/es/components/ModelSelect/ModeDropdown.d.ts +0 -8
  163. package/es/components/ModelSelect/const.d.ts +0 -30
  164. package/es/components/ModelSelect/index.d.ts +0 -4
  165. package/es/components/PaulButtonGroup/Select.d.ts +0 -3
  166. package/es/components/PaulButtonGroup/index.d.ts +0 -16
  167. package/es/components/PopAuth/index.d.ts +0 -4
  168. package/es/components/ReferenceInfoItem/index.d.ts +0 -49
  169. package/es/components/ReferenceTag/index.d.ts +0 -11
  170. package/es/components/SchemaInput/SchemaInputCore/index.d.ts +0 -4
  171. package/es/components/SchemaInput/SchemaInputCore/utils.d.ts +0 -1
  172. package/es/components/SchemaInput/SimpleJSONEditor/index.d.ts +0 -4
  173. package/es/components/SchemaInput/index.d.ts +0 -8
  174. package/es/components/SelectBlurry/index.d.ts +0 -3
  175. package/es/components/SendMessageSvgIcon/index.d.ts +0 -3
  176. package/es/components/ShareContent/index.d.ts +0 -21
  177. package/es/components/ShareModal/index.d.ts +0 -15
  178. package/es/components/ShareOperationBar/index.d.ts +0 -4
  179. package/es/components/TextContent/index.d.ts +0 -14
  180. package/es/components/TraceMarkdownWithCard/index.d.ts +0 -6
  181. package/es/components/TraceWithAgent/index.d.ts +0 -23
  182. package/es/constants/assistChatEvent.d.ts +0 -33
  183. package/es/constants/common.d.ts +0 -71
  184. package/es/constants/logTrace.d.ts +0 -3
  185. package/es/constants/reference.d.ts +0 -109
  186. package/es/constants/traceDataStatus.d.ts +0 -34
  187. package/es/context/index.d.ts +0 -13
  188. package/es/context/utils/messages.d.ts +0 -33
  189. package/es/context/utils/send.d.ts +0 -29
  190. package/es/context/utils/tool.d.ts +0 -19
  191. package/es/index.d.ts +0 -37
  192. package/es/interface/IAgent.d.ts +0 -12
  193. package/es/interface/IChatBottom.d.ts +0 -69
  194. package/es/interface/IChatCard.d.ts +0 -40
  195. package/es/interface/IChatContext.d.ts +0 -59
  196. package/es/interface/IChatRef.d.ts +0 -75
  197. package/es/interface/IGuessQuestion.d.ts +0 -43
  198. package/es/interface/IMessage.d.ts +0 -17
  199. package/es/interface/ISend.d.ts +0 -19
  200. package/es/interface/index.d.ts +0 -272
  201. package/es/utils/CSEIconTool.d.ts +0 -8
  202. package/es/utils/apushAssistant.d.ts +0 -73
  203. package/es/utils/clientPlugin.d.ts +0 -3
  204. package/es/utils/common.d.ts +0 -10
  205. package/es/utils/copyToClipboard.d.ts +0 -2
  206. package/es/utils/formDataFormat.d.ts +0 -3
  207. package/es/utils/formatData.d.ts +0 -14
  208. package/es/utils/log.d.ts +0 -18
  209. package/es/utils/parseUrl.d.ts +0 -9
  210. package/es/utils/screenshot.d.ts +0 -45
  211. package/es/utils/send.d.ts +0 -10
  212. package/es/utils/uploadImage.d.ts +0 -9
  213. package/es/utils/websocketLogger.d.ts +0 -176
@@ -1,8 +0,0 @@
1
- import '../index.scss';
2
- /**
3
- * list组件匹配
4
- * @param currMessage
5
- * @returns
6
- */
7
- declare const CardMatchRender: (props: any) => any;
8
- export default CardMatchRender;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import '../index.scss';
3
- /**
4
- * 单一组件匹配
5
- * @param {currMessage dataInfo}
6
- * @returns
7
- */
8
- declare const OperationMatchRender: (props: any) => React.JSX.Element;
9
- export default OperationMatchRender;
@@ -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,4 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
4
- export default _default;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const TemplateCard: (props: any) => React.JSX.Element;
3
- export default TemplateCard;
@@ -1,3 +0,0 @@
1
- export interface ICardRenderProps {
2
- [key: string]: any;
3
- }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- declare const TemplateHeader: ({ value }: {
3
- value: any;
4
- }) => React.JSX.Element;
5
- export default TemplateHeader;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface IHtmlViewerProps {
3
- html?: string;
4
- example: object;
5
- }
6
- export declare const TemplateHtmlViewer: (props: IHtmlViewerProps) => React.JSX.Element;
7
- export {};
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const TemplateParagraph: (props: any) => React.JSX.Element;
3
- export default TemplateParagraph;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const TemplateTitle: (props: any) => React.JSX.Element;
3
- export default TemplateTitle;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const TraceComponent: (props: any) => React.JSX.Element;
3
- export default TraceComponent;
@@ -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,4 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- declare const CardRenderWrapper: (props: any) => React.JSX.Element;
4
- export default CardRenderWrapper;
@@ -1,2 +0,0 @@
1
- export declare const getIntlText: (text: any, context?: {}) => any;
2
- export declare function removeXLinkages<T>(obj: T): T;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- declare const AgentCommonCard: (props: any) => React.JSX.Element;
4
- export default AgentCommonCard;
@@ -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,7 +0,0 @@
1
- /**
2
- * @author qytan
3
- * @description AigcTipsRender
4
- */
5
- import React from 'react';
6
- declare const AigcTipsRender: (props: any) => React.JSX.Element;
7
- export default AigcTipsRender;
@@ -1,7 +0,0 @@
1
- /**
2
- * @author qytan
3
- * @description 复制
4
- */
5
- import React from 'react';
6
- declare const Copy: (props: any) => React.JSX.Element;
7
- export default Copy;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const CopyRequestId: (props: any) => React.JSX.Element;
3
- export default CopyRequestId;
@@ -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,3 +0,0 @@
1
- import React from 'react';
2
- declare const ShareButton: (props: any) => React.JSX.Element;
3
- export default ShareButton;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- declare const OperationCard: (props: any) => React.JSX.Element;
4
- export default OperationCard;
@@ -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,7 +0,0 @@
1
- /**
2
- * @author qytan
3
- * @description UserQueryCardRender渲染的图片
4
- */
5
- import React from 'react';
6
- declare const ImageRender: ({ data, downloadFile }: any) => React.JSX.Element;
7
- export default ImageRender;
@@ -1,8 +0,0 @@
1
- /**
2
- * @author qytan
3
- * @description 新增卡片类型UserQueryCardRender
4
- */
5
- import React from 'react';
6
- import './index.scss';
7
- declare const UserQueryCardRender: (props: any) => React.JSX.Element;
8
- export default UserQueryCardRender;
@@ -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,12 +0,0 @@
1
- /**
2
- * 判断右边消息
3
- * @param role
4
- * @returns
5
- */
6
- export declare const isUser: (role: number) => boolean;
7
- /**
8
- * 判断是否结束节点
9
- * @param message
10
- * @returns
11
- */
12
- export declare const isEndNode: (message: any) => boolean;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
4
- export default _default;
@@ -1,7 +0,0 @@
1
- /**
2
- * 判断右边消息
3
- * @param role
4
- * @returns
5
- */
6
- export declare const isLlm: (role: number) => boolean;
7
- export declare const checkExecuteCard: (message: any) => boolean;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- declare const _default: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
4
- export default _default;
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- declare const AssistentError: ({ errorMessage }: {
3
- errorMessage: any;
4
- }) => React.JSX.Element;
5
- export default AssistentError;
@@ -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,3 +0,0 @@
1
- export declare const copyLlmMarkdown: (_event: any, commonLog: any) => void;
2
- export declare const copyAgentCommonCardMarkdown: (_event: any, commonLog: any) => void;
3
- export declare const copyAgentCardRender: (_event: any, commonLog: any) => void;
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- declare const ErrorBoundaryFallback: ({ errorMessage }: {
3
- errorMessage: any;
4
- }) => React.JSX.Element;
5
- export default ErrorBoundaryFallback;
@@ -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,2 +0,0 @@
1
- declare const registerAssistChatForm: (customComponentMap?: Record<string, any>) => void;
2
- export default registerAssistChatForm;
@@ -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,8 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- export interface AgentResultProps {
4
- value: any;
5
- onCopyCallback?: (val: any) => void;
6
- }
7
- declare const AgentResult: (props: AgentResultProps) => React.JSX.Element;
8
- export default AgentResult;
@@ -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,4 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- declare const AgentText: (props: any) => React.JSX.Element;
4
- export default AgentText;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- export interface IAigcTipsProps {
4
- visible?: boolean;
5
- content?: string;
6
- tipsColor?: string;
7
- }
8
- declare const AigcTips: (props: IAigcTipsProps) => React.JSX.Element;
9
- export default AigcTips;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const ArrayInput: (props: any) => React.JSX.Element;
3
- export default ArrayInput;
@@ -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;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const EmptyIcon: () => React.JSX.Element;
3
- export default EmptyIcon;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const HeaderSvgIcon: () => React.JSX.Element;
3
- export default HeaderSvgIcon;