@ant-design/agentic-ui 2.29.23 → 2.29.25
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/AILabel/index.js +1 -1
- package/dist/AgentRunBar/Robot.js +1 -1
- package/dist/AgentRunBar/index.js +1 -1
- package/dist/AgenticLayout/index.js +1 -1
- package/dist/AnswerAlert/index.js +1 -1
- package/dist/BackTo/ScrollVisibleButton.js +1 -1
- package/dist/Bubble/AIBubble.js +1 -1
- package/dist/Bubble/Avatar/index.js +1 -1
- package/dist/Bubble/List/PureBubbleList.d.ts +4 -4
- package/dist/Bubble/List/PureBubbleList.js +1 -1
- package/dist/Bubble/List/index.d.ts +5 -5
- package/dist/Bubble/List/index.js +1 -1
- package/dist/Bubble/MessagesContent/BubbleExtra.js +1 -1
- package/dist/Bubble/MessagesContent/CopyButton/index.js +1 -1
- package/dist/Bubble/MessagesContent/DocInfo.js +1 -1
- package/dist/Bubble/MessagesContent/MarkdownPreview.js +15 -10
- package/dist/Bubble/MessagesContent/VoiceButton/index.js +1 -1
- package/dist/Bubble/MessagesContent/index.js +1 -1
- package/dist/Bubble/MessagesContent/style.js +1 -1
- package/dist/Bubble/PureBubble.js +1 -1
- package/dist/Bubble/Title.js +1 -1
- package/dist/Bubble/UserBubble.js +1 -1
- package/dist/Bubble/type.d.ts +96 -8
- package/dist/Bubble/types/BubbleExtra.d.ts +6 -4
- package/dist/ChatBootPage/ButtonTab.js +1 -1
- package/dist/ChatBootPage/CaseReply.js +1 -1
- package/dist/ChatBootPage/Title.js +1 -1
- package/dist/ChatLayout/index.js +1 -1
- package/dist/Components/ActionIconBox/index.d.ts +1 -1
- package/dist/Components/ActionIconBox/index.js +2 -2
- package/dist/Components/ActionItemBox/ActionItemBox.js +1 -1
- package/dist/Components/Button/IconButton/index.d.ts +1 -1
- package/dist/Components/Button/IconButton/index.js +1 -1
- package/dist/Components/Button/SwitchButton/index.js +1 -1
- package/dist/Components/Button/ToggleButton/index.js +1 -1
- package/dist/Components/GradientText/index.js +1 -1
- package/dist/Components/LayoutHeader/index.js +1 -1
- package/dist/Components/Loading/Loading.js +2 -2
- package/dist/Components/Robot/index.js +1 -1
- package/dist/Components/SuggestionList/index.js +1 -1
- package/dist/Components/TextAnimate/index.js +2 -2
- package/dist/Components/TypingAnimation/index.js +2 -2
- package/dist/Components/VisualList/index.d.ts +1 -1
- package/dist/Components/VisualList/index.js +1 -1
- package/dist/Components/lotties/TextLoading/index.js +1 -1
- package/dist/Components/lotties/bubble-actions/Abstract/index.js +1 -1
- package/dist/History/components/NewChatComponent.d.ts +1 -1
- package/dist/History/components/NewChatComponent.js +1 -1
- package/dist/History/components/SearchComponent.d.ts +1 -1
- package/dist/History/components/SearchComponent.js +1 -1
- package/dist/History/index.js +1 -1
- package/dist/History/menu.js +1 -1
- package/dist/History/types/index.d.ts +5 -5
- package/dist/History/types/index.js +1 -1
- package/dist/Hooks/useLanguage.d.ts +16 -0
- package/dist/I18n/locales.d.ts +16 -0
- package/dist/I18n/locales.js +43 -5
- package/dist/MarkdownEditor/BaseMarkdownEditor.js +1 -1
- package/dist/MarkdownEditor/editor/Editor.js +1 -1
- package/dist/MarkdownEditor/editor/components/CommentList/index.js +6 -4
- package/dist/MarkdownEditor/editor/components/ContributorAvatar/index.js +1 -1
- package/dist/MarkdownEditor/editor/components/fntTag/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Comment/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/FncLeaf/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Head/ReadonlyHead.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Head/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/LinkCard/ReadonlyLinkCard.js +1 -1
- package/dist/MarkdownEditor/editor/elements/LinkCard/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/List/List.js +1 -1
- package/dist/MarkdownEditor/editor/elements/List/ListItem.js +1 -1
- package/dist/MarkdownEditor/editor/elements/List/ReadonlyList.js +1 -1
- package/dist/MarkdownEditor/editor/elements/List/ReadonlyListItem.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Mermaid/ReadonlyMermaid.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Mermaid/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Paragraph/ReadonlyParagraph.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Paragraph/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Table/ReadonlyTableComponent.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Table/SimpleTable.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Table/Table.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Table/TableCellIndex/index.js +7 -5
- package/dist/MarkdownEditor/editor/elements/Table/TableCellIndexSpacer/index.js +7 -5
- package/dist/MarkdownEditor/editor/elements/Table/TableRowIndex/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/Table/Td/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/TagPopup/index.js +1 -1
- package/dist/MarkdownEditor/editor/elements/index.js +1 -1
- package/dist/MarkdownEditor/editor/parser/parse/parseTable.js +1 -1
- package/dist/MarkdownEditor/editor/tools/DragHandle.js +4 -2
- package/dist/MarkdownEditor/editor/tools/InsertAutocomplete.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/BaseBar.js +3 -2
- package/dist/MarkdownEditor/editor/tools/ToolBar/FloatBar.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/ReadonlyBaseBar.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/ToolBar.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/ClearFormatButton.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/ColorPickerButton.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/FormatButton.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/FormattingTools.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/HeadingDropdown.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/LinkButton.js +1 -1
- package/dist/MarkdownEditor/editor/tools/ToolBar/components/UndoRedoButtons.js +1 -1
- package/dist/MarkdownEditor/el.d.ts +1 -1
- package/dist/MarkdownEditor/types.d.ts +103 -3
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/AttachmentFileListItem.js +10 -7
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/index.js +1 -1
- package/dist/MarkdownInputField/AttachmentButton/index.js +1 -1
- package/dist/MarkdownInputField/BeforeToolContainer/BeforeToolContainer.js +1 -1
- package/dist/MarkdownInputField/FileMapView/FileMapViewItem.js +2 -2
- package/dist/MarkdownInputField/FileMapView/index.js +1 -1
- package/dist/MarkdownInputField/MarkdownInputField.js +1 -1
- package/dist/MarkdownInputField/QuickActions/index.js +1 -1
- package/dist/MarkdownInputField/SendActions/index.js +1 -1
- package/dist/MarkdownInputField/SendButton/index.js +1 -1
- package/dist/MarkdownInputField/SkillModeBar/index.js +1 -1
- package/dist/MarkdownInputField/TopOperatingArea/index.js +1 -1
- package/dist/MarkdownInputField/VoiceInput/index.js +1 -1
- package/dist/Plugins/chart/AreaChart/index.js +1 -1
- package/dist/Plugins/chart/BarChart/index.js +1 -1
- package/dist/Plugins/chart/DonutChart/index.js +1 -1
- package/dist/Plugins/chart/FunnelChart/index.js +1 -1
- package/dist/Plugins/chart/LineChart/index.js +1 -1
- package/dist/Plugins/chart/RadarChart/index.js +1 -1
- package/dist/Plugins/chart/ScatterChart/index.js +1 -1
- package/dist/Plugins/chart/components/ChartContainer/ChartContainer.js +1 -1
- package/dist/Plugins/chart/components/ChartContainer/ChartErrorBoundary.d.ts +736 -0
- package/dist/Plugins/chart/components/ChartContainer/ChartErrorBoundary.js +23 -5
- package/dist/Plugins/code/CodeUI/Katex/Katex.js +1 -1
- package/dist/Plugins/code/components/CodeContainer.js +1 -1
- package/dist/Plugins/katex/InlineKatex.js +1 -1
- package/dist/Plugins/katex/Katex.js +1 -1
- package/dist/Plugins/mermaid/MermaidFallback.js +1 -1
- package/dist/Plugins/mermaid/MermaidRendererImpl.js +1 -1
- package/dist/Plugins/mermaid/index.js +3 -2
- package/dist/Quote/index.js +1 -1
- package/dist/Schema/SchemaEditor/index.js +1 -1
- package/dist/TaskList/index.d.ts +6 -2
- package/dist/TaskList/index.js +1 -1
- package/dist/ThoughtChainList/DeepThink.d.ts +1 -1
- package/dist/ThoughtChainList/DotAni/index.js +1 -1
- package/dist/ThoughtChainList/FlipText/index.js +1 -1
- package/dist/ThoughtChainList/TableSql.d.ts +1 -1
- package/dist/ThoughtChainList/ThoughtChainListItem.js +1 -1
- package/dist/ThoughtChainList/TitleInfo.js +1 -1
- package/dist/ThoughtChainList/ToolCall.d.ts +1 -1
- package/dist/ThoughtChainList/WebSearch.d.ts +1 -1
- package/dist/ThoughtChainList/index.js +7 -18
- package/dist/ThoughtChainList/style.js +11 -0
- package/dist/ThoughtChainList/types.d.ts +11 -1
- package/dist/ToolUseBar/BarItem/Content.js +1 -1
- package/dist/ToolUseBar/BarItem/index.js +1 -1
- package/dist/ToolUseBar/index.js +1 -1
- package/dist/ToolUseBarThink/index.js +1 -1
- package/dist/Types/message.d.ts +12 -3
- package/dist/WelcomeMessage/index.js +1 -1
- package/dist/Workspace/Browser/index.js +1 -1
- package/dist/Workspace/File/FileComponent.d.ts +1 -1
- package/dist/Workspace/File/FileComponent.js +1 -1
- package/dist/Workspace/File/PreviewComponent.js +2 -2
- package/dist/Workspace/HtmlPreview/index.js +1 -1
- package/dist/Workspace/RealtimeFollow/index.js +1 -1
- package/dist/Workspace/Task/index.js +1 -1
- package/dist/Workspace/index.js +1 -1
- package/dist/Workspace/types.d.ts +2 -2
- package/dist/index.d.ts +68 -62
- package/dist/index.js +84 -79
- package/package.json +2 -6
|
@@ -27,8 +27,8 @@ function _object_spread(target) {
|
|
|
27
27
|
return target;
|
|
28
28
|
}
|
|
29
29
|
import { ConfigProvider } from "antd";
|
|
30
|
-
import classNames from "
|
|
31
|
-
import { isString } from "lodash";
|
|
30
|
+
import classNames from "clsx";
|
|
31
|
+
import { isString } from "lodash-es";
|
|
32
32
|
import React, { useContext } from "react";
|
|
33
33
|
import { TextLoading } from "../lotties";
|
|
34
34
|
import Indicator from "./Indicator";
|
|
@@ -26,7 +26,7 @@ function _object_spread(target) {
|
|
|
26
26
|
}
|
|
27
27
|
return target;
|
|
28
28
|
}
|
|
29
|
-
import classNames from "
|
|
29
|
+
import classNames from "clsx";
|
|
30
30
|
import { isString } from "lodash-es";
|
|
31
31
|
import React from "react";
|
|
32
32
|
import { DazingLottie, ThinkingLottie } from "./lotties";
|
|
@@ -187,7 +187,7 @@ function _ts_generator(thisArg, body) {
|
|
|
187
187
|
}
|
|
188
188
|
import { RefreshCcw, SwapRight } from "@sofa-design/icons";
|
|
189
189
|
import { ConfigProvider, Tooltip } from "antd";
|
|
190
|
-
import classNames from "
|
|
190
|
+
import classNames from "clsx";
|
|
191
191
|
import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
192
192
|
import { I18nContext } from "../../I18n";
|
|
193
193
|
import { useStyle } from "./style";
|
|
@@ -112,9 +112,9 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
112
112
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
113
113
|
}
|
|
114
114
|
import { ConfigProvider } from "antd";
|
|
115
|
-
import classNames from "
|
|
115
|
+
import classNames from "clsx";
|
|
116
116
|
import { AnimatePresence, motion } from "framer-motion";
|
|
117
|
-
import { isNumber, isObject, isString } from "lodash";
|
|
117
|
+
import { isNumber, isObject, isString } from "lodash-es";
|
|
118
118
|
import toArray from "rc-util/lib/Children/toArray";
|
|
119
119
|
import React, { memo, useContext } from "react";
|
|
120
120
|
import { useTextAnimateStyle } from "./style";
|
|
@@ -109,9 +109,9 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
109
109
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
110
110
|
}
|
|
111
111
|
import { ConfigProvider } from "antd";
|
|
112
|
-
import classNames from "
|
|
112
|
+
import classNames from "clsx";
|
|
113
113
|
import { motion, useInView } from "framer-motion";
|
|
114
|
-
import { isString } from "lodash";
|
|
114
|
+
import { isString } from "lodash-es";
|
|
115
115
|
import React, { useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
116
116
|
import { resolveSegments } from "../TextAnimate";
|
|
117
117
|
import { useTypingAnimationStyle } from "./style";
|
|
@@ -31,7 +31,7 @@ export interface VisualListProps {
|
|
|
31
31
|
/** 自定义列表项渲染函数 */
|
|
32
32
|
renderItem?: (item: VisualListItem, index: number) => React.ReactNode;
|
|
33
33
|
/**
|
|
34
|
-
* @deprecated 请使用 isLoading 代替
|
|
34
|
+
* @deprecated @since 2.29.0 请使用 isLoading 代替
|
|
35
35
|
* @description 已废弃,将在未来版本移除
|
|
36
36
|
*/
|
|
37
37
|
loading?: boolean;
|
|
@@ -97,7 +97,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
97
97
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
98
98
|
}
|
|
99
99
|
import { SquareArrowUpRight } from "@sofa-design/icons";
|
|
100
|
-
import classNames from "
|
|
100
|
+
import classNames from "clsx";
|
|
101
101
|
import React, { memo, useMemo, useState } from "react";
|
|
102
102
|
import { useRefFunction } from "../../Hooks/useRefFunction";
|
|
103
103
|
import { useStyle } from "./style";
|
|
@@ -27,7 +27,7 @@ function _object_spread(target) {
|
|
|
27
27
|
return target;
|
|
28
28
|
}
|
|
29
29
|
import { ConfigProvider } from "antd";
|
|
30
|
-
import classNames from "
|
|
30
|
+
import classNames from "clsx";
|
|
31
31
|
import Lottie from "lottie-react";
|
|
32
32
|
import React, { useContext, useEffect, useRef } from "react";
|
|
33
33
|
import { useStyle } from "./style";
|
|
@@ -39,7 +39,7 @@ interface HistoryNewChatProps {
|
|
|
39
39
|
*/
|
|
40
40
|
export declare const HistoryNewChat: React.FC<HistoryNewChatProps>;
|
|
41
41
|
/**
|
|
42
|
-
* @deprecated 请使用 HistoryNewChat 替代
|
|
42
|
+
* @deprecated @since 2.29.0 请使用 HistoryNewChat 替代
|
|
43
43
|
*/
|
|
44
44
|
export declare const NewChatComponent: React.FC<HistoryNewChatProps>;
|
|
45
45
|
export {};
|
|
@@ -275,5 +275,5 @@ import { useNewChatStyle } from "./NewChatComponent.style";
|
|
|
275
275
|
}), (locale === null || locale === void 0 ? void 0 : locale['chat.history.newChat']) || '新对话'));
|
|
276
276
|
};
|
|
277
277
|
/**
|
|
278
|
-
* @deprecated 请使用 HistoryNewChat 替代
|
|
278
|
+
* @deprecated @since 2.29.0 请使用 HistoryNewChat 替代
|
|
279
279
|
*/ export var NewChatComponent = HistoryNewChat;
|
|
@@ -54,7 +54,7 @@ interface HistorySearchProps {
|
|
|
54
54
|
*/
|
|
55
55
|
export declare const HistorySearch: React.FC<HistorySearchProps>;
|
|
56
56
|
/**
|
|
57
|
-
* @deprecated 请使用 HistorySearch 替代
|
|
57
|
+
* @deprecated @since 2.29.0 请使用 HistorySearch 替代
|
|
58
58
|
*/
|
|
59
59
|
export declare const SearchComponent: React.FC<HistorySearchProps>;
|
|
60
60
|
export {};
|
package/dist/History/index.js
CHANGED
|
@@ -128,7 +128,7 @@ function _ts_generator(thisArg, body) {
|
|
|
128
128
|
}
|
|
129
129
|
import { HistoryOutlined } from "@ant-design/icons";
|
|
130
130
|
import { ConfigProvider, Popover } from "antd";
|
|
131
|
-
import classNames from "
|
|
131
|
+
import classNames from "clsx";
|
|
132
132
|
import React, { memo, useContext, useMemo, useRef } from "react";
|
|
133
133
|
import useClickAway from "../Hooks/useClickAway";
|
|
134
134
|
import { ActionIconBox, BubbleConfigContext } from "../index";
|
package/dist/History/menu.js
CHANGED
|
@@ -63,7 +63,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
63
63
|
return target;
|
|
64
64
|
}
|
|
65
65
|
import { ConfigProvider, Spin } from "antd";
|
|
66
|
-
import classNames from "
|
|
66
|
+
import classNames from "clsx";
|
|
67
67
|
import React, { useContext } from "react";
|
|
68
68
|
import { useRefFunction } from "../Hooks/useRefFunction";
|
|
69
69
|
import { useStyle } from "./style";
|
|
@@ -12,12 +12,12 @@ export interface HistoryProps {
|
|
|
12
12
|
request: (params: {
|
|
13
13
|
agentId: string;
|
|
14
14
|
}) => Promise<HistoryDataType[]>;
|
|
15
|
-
/** @deprecated 请使用 onClick 替代 */
|
|
15
|
+
/** @deprecated @since 2.29.0 请使用 onClick 替代 */
|
|
16
16
|
onSelected?: (item: HistoryDataType) => void;
|
|
17
17
|
onClick?: (sessionId: string, item: HistoryDataType) => void;
|
|
18
18
|
/**
|
|
19
19
|
* 删除历史记录项时的回调函数
|
|
20
|
-
* @deprecated 建议使用 onDelete 替代(符合命名规范),但为保持兼容性暂时保留
|
|
20
|
+
* @deprecated @since 2.29.0 建议使用 onDelete 替代(符合命名规范),但为保持兼容性暂时保留
|
|
21
21
|
*/
|
|
22
22
|
onDeleteItem?: (sessionId: string) => void;
|
|
23
23
|
customDateFormatter?: (date: number | string | Date) => string;
|
|
@@ -66,7 +66,7 @@ export interface HistoryProps {
|
|
|
66
66
|
/** 空状态渲染函数,当历史记录为空时显示 */
|
|
67
67
|
emptyRender?: () => React.ReactNode;
|
|
68
68
|
/**
|
|
69
|
-
* @deprecated 请使用 isLoading 代替
|
|
69
|
+
* @deprecated @since 2.29.0 请使用 isLoading 代替
|
|
70
70
|
* @description 已废弃,将在未来版本移除
|
|
71
71
|
*/
|
|
72
72
|
loading?: boolean;
|
|
@@ -102,9 +102,9 @@ export interface HistoryActionsBoxProps {
|
|
|
102
102
|
onFavorite?: (sessionId: string, isFavorite: boolean) => void;
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
|
-
* @deprecated 请使用 HistoryActionsBoxProps 替代
|
|
105
|
+
* @deprecated @since 2.29.0 请使用 HistoryActionsBoxProps 替代
|
|
106
106
|
*/
|
|
107
107
|
export interface ActionsBoxProps extends HistoryActionsBoxProps {
|
|
108
|
-
/** @deprecated 请使用 onClick 替代 */
|
|
108
|
+
/** @deprecated @since 2.29.0 请使用 onClick 替代 */
|
|
109
109
|
onSelected?: (item: HistoryDataType) => void;
|
|
110
110
|
}
|
|
@@ -390,6 +390,22 @@ export declare function useLanguage(): {
|
|
|
390
390
|
'layout.header.title': string;
|
|
391
391
|
theme: string;
|
|
392
392
|
expandCollapse: string;
|
|
393
|
+
moreActions: string;
|
|
394
|
+
clickToRetry: string;
|
|
395
|
+
'table.insertColumnBefore': string;
|
|
396
|
+
'table.deleteColumn': string;
|
|
397
|
+
'table.insertColumnAfter': string;
|
|
398
|
+
'table.insertRowBefore': string;
|
|
399
|
+
'table.deleteRow': string;
|
|
400
|
+
'table.insertRowAfter': string;
|
|
401
|
+
'table.clickToShowActions': string;
|
|
402
|
+
'table.clickToSelectColumn': string;
|
|
403
|
+
'table.clickToSelectTable': string;
|
|
404
|
+
'comment.delete': string;
|
|
405
|
+
'comment.edit': string;
|
|
406
|
+
'comment.jumpTo': string;
|
|
407
|
+
'chart.renderFailed': string;
|
|
408
|
+
'chart.renderFailedSubTitle': string;
|
|
393
409
|
};
|
|
394
410
|
setLanguage: ((language: "zh-CN" | "en-US") => void) | undefined;
|
|
395
411
|
toggleLanguage: () => void;
|
package/dist/I18n/locales.d.ts
CHANGED
|
@@ -354,6 +354,22 @@ export declare const cnLabels: {
|
|
|
354
354
|
'layout.header.title': string;
|
|
355
355
|
theme: string;
|
|
356
356
|
expandCollapse: string;
|
|
357
|
+
moreActions: string;
|
|
358
|
+
clickToRetry: string;
|
|
359
|
+
'table.insertColumnBefore': string;
|
|
360
|
+
'table.deleteColumn': string;
|
|
361
|
+
'table.insertColumnAfter': string;
|
|
362
|
+
'table.insertRowBefore': string;
|
|
363
|
+
'table.deleteRow': string;
|
|
364
|
+
'table.insertRowAfter': string;
|
|
365
|
+
'table.clickToShowActions': string;
|
|
366
|
+
'table.clickToSelectColumn': string;
|
|
367
|
+
'table.clickToSelectTable': string;
|
|
368
|
+
'comment.delete': string;
|
|
369
|
+
'comment.edit': string;
|
|
370
|
+
'comment.jumpTo': string;
|
|
371
|
+
'chart.renderFailed': string;
|
|
372
|
+
'chart.renderFailedSubTitle': string;
|
|
357
373
|
};
|
|
358
374
|
/**
|
|
359
375
|
* 英文标签映射对象
|
package/dist/I18n/locales.js
CHANGED
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
columnChart: '柱状图',
|
|
42
42
|
areaChart: '面积图',
|
|
43
43
|
descriptions: '定义列表',
|
|
44
|
-
dataTime: '
|
|
45
|
-
columns: '
|
|
46
|
-
all: '
|
|
44
|
+
dataTime: '数据时间',
|
|
45
|
+
columns: '列',
|
|
46
|
+
all: '全部',
|
|
47
47
|
TableSql: '表查询',
|
|
48
48
|
ToolCall: '工具查询',
|
|
49
49
|
RagRetrieval: '文档查询',
|
|
@@ -375,7 +375,26 @@
|
|
|
375
375
|
'browser.searching': '搜索中...',
|
|
376
376
|
'layout.header.title': 'AI 助手',
|
|
377
377
|
theme: '主题',
|
|
378
|
-
expandCollapse: '展开/收起'
|
|
378
|
+
expandCollapse: '展开/收起',
|
|
379
|
+
moreActions: '更多操作',
|
|
380
|
+
clickToRetry: '点击重试',
|
|
381
|
+
// 表格操作相关
|
|
382
|
+
'table.insertColumnBefore': '在前面增加一列',
|
|
383
|
+
'table.deleteColumn': '删除整列',
|
|
384
|
+
'table.insertColumnAfter': '在后面增加一列',
|
|
385
|
+
'table.insertRowBefore': '在上面增加一行',
|
|
386
|
+
'table.deleteRow': '删除整行',
|
|
387
|
+
'table.insertRowAfter': '在下面增加一行',
|
|
388
|
+
'table.clickToShowActions': '点击显示操作按钮',
|
|
389
|
+
'table.clickToSelectColumn': '点击选中整列,显示操作按钮',
|
|
390
|
+
'table.clickToSelectTable': '点击选中整个表格',
|
|
391
|
+
// 评论相关
|
|
392
|
+
'comment.delete': '删除评论',
|
|
393
|
+
'comment.edit': '编辑评论',
|
|
394
|
+
'comment.jumpTo': '跳转到评论位置',
|
|
395
|
+
// 图表错误相关
|
|
396
|
+
'chart.renderFailed': '图表渲染失败',
|
|
397
|
+
'chart.renderFailedSubTitle': '图表组件遇到了一个错误,请稍后重试'
|
|
379
398
|
};
|
|
380
399
|
/**
|
|
381
400
|
* 英文标签映射对象
|
|
@@ -752,5 +771,24 @@
|
|
|
752
771
|
'browser.searching': 'Searching...',
|
|
753
772
|
'layout.header.title': 'AI Assistant',
|
|
754
773
|
theme: 'Theme',
|
|
755
|
-
expandCollapse: 'Expand/Collapse'
|
|
774
|
+
expandCollapse: 'Expand/Collapse',
|
|
775
|
+
moreActions: 'More Actions',
|
|
776
|
+
clickToRetry: 'Click to Retry',
|
|
777
|
+
// Table operation related
|
|
778
|
+
'table.insertColumnBefore': 'Insert Column Before',
|
|
779
|
+
'table.deleteColumn': 'Delete Column',
|
|
780
|
+
'table.insertColumnAfter': 'Insert Column After',
|
|
781
|
+
'table.insertRowBefore': 'Insert Row Before',
|
|
782
|
+
'table.deleteRow': 'Delete Row',
|
|
783
|
+
'table.insertRowAfter': 'Insert Row After',
|
|
784
|
+
'table.clickToShowActions': 'Click to show actions',
|
|
785
|
+
'table.clickToSelectColumn': 'Click to select column and show actions',
|
|
786
|
+
'table.clickToSelectTable': 'Click to select entire table',
|
|
787
|
+
// Comment related
|
|
788
|
+
'comment.delete': 'Delete Comment',
|
|
789
|
+
'comment.edit': 'Edit Comment',
|
|
790
|
+
'comment.jumpTo': 'Jump to Comment',
|
|
791
|
+
// Chart error related
|
|
792
|
+
'chart.renderFailed': 'Chart Rendering Failed',
|
|
793
|
+
'chart.renderFailedSubTitle': 'The chart component encountered an error, please try again later'
|
|
756
794
|
};
|
|
@@ -145,7 +145,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
145
145
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
146
146
|
}
|
|
147
147
|
import { ConfigProvider } from "antd";
|
|
148
|
-
import classNames from "
|
|
148
|
+
import classNames from "clsx";
|
|
149
149
|
import React, { useContext, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
150
150
|
import { Subject } from "rxjs";
|
|
151
151
|
import { createEditor } from "slate";
|
|
@@ -237,7 +237,7 @@ function _ts_generator(thisArg, body) {
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
/* eslint-disable @typescript-eslint/no-use-before-define */ /* eslint-disable react/no-children-prop */ import { useDebounceFn } from "@ant-design/pro-components";
|
|
240
|
-
import classNames from "
|
|
240
|
+
import classNames from "clsx";
|
|
241
241
|
import React, { useContext, useEffect, useMemo, useRef } from "react";
|
|
242
242
|
import { ErrorBoundary } from "react-error-boundary";
|
|
243
243
|
import { Editor, Node, Range, Transforms } from "slate";
|
|
@@ -128,11 +128,12 @@ function _ts_generator(thisArg, body) {
|
|
|
128
128
|
}
|
|
129
129
|
import { CloseOutlined, DeleteFilled, EditOutlined, ExportOutlined } from "@ant-design/icons";
|
|
130
130
|
import { Avatar, ConfigProvider, Popconfirm, Tooltip } from "antd";
|
|
131
|
-
import classNames from "
|
|
131
|
+
import classNames from "clsx";
|
|
132
132
|
import dayjs from "dayjs";
|
|
133
133
|
import { motion } from "framer-motion";
|
|
134
134
|
import React, { useContext } from "react";
|
|
135
135
|
import { Transforms } from "slate";
|
|
136
|
+
import { I18nContext } from "../../../../I18n";
|
|
136
137
|
import { EditorStoreContext, useEditorStore } from "../../store";
|
|
137
138
|
import { useStyle } from "./style";
|
|
138
139
|
/**
|
|
@@ -216,6 +217,7 @@ import { useStyle } from "./style";
|
|
|
216
217
|
*/ export var CommentList = function CommentList(props) {
|
|
217
218
|
var _props_commentList, _props_commentList1;
|
|
218
219
|
var markdownEditorRef = useEditorStore().markdownEditorRef;
|
|
220
|
+
var locale = useContext(I18nContext).locale;
|
|
219
221
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
220
222
|
var setShowComment = (useContext(EditorStoreContext) || {}).setShowComment;
|
|
221
223
|
var baseCls = context === null || context === void 0 ? void 0 : context.getPrefixCls('agentic-md-editor-comment-view');
|
|
@@ -354,11 +356,11 @@ import { useStyle } from "./style";
|
|
|
354
356
|
})();
|
|
355
357
|
}
|
|
356
358
|
}, /*#__PURE__*/ React.createElement(Tooltip, {
|
|
357
|
-
title:
|
|
359
|
+
title: (locale === null || locale === void 0 ? void 0 : locale['comment.delete']) || '删除评论'
|
|
358
360
|
}, /*#__PURE__*/ React.createElement("span", {
|
|
359
361
|
className: classNames("".concat(baseCls, "-item-header-action-item"), hashId)
|
|
360
362
|
}, /*#__PURE__*/ React.createElement(DeleteFilled, null)))) : null, ((_props_comment2 = props.comment) === null || _props_comment2 === void 0 ? void 0 : _props_comment2.onEdit) ? /*#__PURE__*/ React.createElement(Tooltip, {
|
|
361
|
-
title:
|
|
363
|
+
title: (locale === null || locale === void 0 ? void 0 : locale['comment.edit']) || '编辑评论'
|
|
362
364
|
}, /*#__PURE__*/ React.createElement("span", {
|
|
363
365
|
className: classNames("".concat(baseCls, "-item-header-action-item"), hashId),
|
|
364
366
|
onClick: function onClick(e) {
|
|
@@ -383,7 +385,7 @@ import { useStyle } from "./style";
|
|
|
383
385
|
})();
|
|
384
386
|
}
|
|
385
387
|
}, /*#__PURE__*/ React.createElement(EditOutlined, null))) : null, /*#__PURE__*/ React.createElement(Tooltip, {
|
|
386
|
-
title:
|
|
388
|
+
title: (locale === null || locale === void 0 ? void 0 : locale['comment.jumpTo']) || '跳转到评论位置'
|
|
387
389
|
}, /*#__PURE__*/ React.createElement("span", {
|
|
388
390
|
className: classNames("".concat(baseCls, "-item-header-action-item"), hashId),
|
|
389
391
|
onClick: function onClick(e) {
|
|
@@ -27,7 +27,7 @@ function _object_spread(target) {
|
|
|
27
27
|
return target;
|
|
28
28
|
}
|
|
29
29
|
import { Avatar, ConfigProvider, Tooltip } from "antd";
|
|
30
|
-
import classNames from "
|
|
30
|
+
import classNames from "clsx";
|
|
31
31
|
import React from "react";
|
|
32
32
|
import { useStyle } from "./style";
|
|
33
33
|
var COLOR_LIST = [
|
|
@@ -12,7 +12,7 @@ function _define_property(obj, key, value) {
|
|
|
12
12
|
return obj;
|
|
13
13
|
}
|
|
14
14
|
import { ConfigProvider } from "antd";
|
|
15
|
-
import classNames from "
|
|
15
|
+
import classNames from "clsx";
|
|
16
16
|
import React, { useContext, useMemo } from "react";
|
|
17
17
|
/**
|
|
18
18
|
* 评论视图组件 - 显示和管理 Markdown 编辑器中的评论
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { ConfigProvider } from "antd";
|
|
54
|
-
import classNames from "
|
|
54
|
+
import classNames from "clsx";
|
|
55
55
|
import React, { useCallback, useContext, useMemo } from "react";
|
|
56
56
|
import { isMobileDevice } from "../../../../MarkdownInputField/AttachmentButton/utils";
|
|
57
57
|
import { dragStart } from "../index";
|
|
@@ -50,7 +50,7 @@ function _object_spread_props(target, source) {
|
|
|
50
50
|
}
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
|
-
import classNames from "
|
|
53
|
+
import classNames from "clsx";
|
|
54
54
|
import React, { createElement } from "react";
|
|
55
55
|
import { Node } from "slate";
|
|
56
56
|
import { debugInfo } from "../../../../Utils/debugUtils";
|
|
@@ -96,7 +96,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
96
96
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
97
97
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
98
98
|
}
|
|
99
|
-
import classNames from "
|
|
99
|
+
import classNames from "clsx";
|
|
100
100
|
import React, { createElement } from "react";
|
|
101
101
|
import { Node } from "slate";
|
|
102
102
|
import { debugInfo } from "../../../../Utils/debugUtils";
|
|
@@ -45,7 +45,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
45
45
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
46
46
|
}
|
|
47
47
|
import { ConfigProvider, Skeleton } from "antd";
|
|
48
|
-
import classNames from "
|
|
48
|
+
import classNames from "clsx";
|
|
49
49
|
import React, { useContext, useEffect, useState } from "react";
|
|
50
50
|
import { AvatarList } from "../../components/ContributorAvatar";
|
|
51
51
|
/**
|
|
@@ -45,7 +45,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
45
45
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
46
46
|
}
|
|
47
47
|
import { ConfigProvider, Skeleton } from "antd";
|
|
48
|
-
import classNames from "
|
|
48
|
+
import classNames from "clsx";
|
|
49
49
|
import React, { useContext, useEffect, useState } from "react";
|
|
50
50
|
import { AvatarList } from "../../components/ContributorAvatar";
|
|
51
51
|
import { DragHandle } from "../../tools/DragHandle";
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { ConfigProvider } from "antd";
|
|
54
|
-
import classNames from "
|
|
54
|
+
import classNames from "clsx";
|
|
55
55
|
import React, { createElement, useContext } from "react";
|
|
56
56
|
import { useEditorStore } from "../../store";
|
|
57
57
|
/**
|
|
@@ -203,7 +203,7 @@ function _ts_generator(thisArg, body) {
|
|
|
203
203
|
import { LoadingOutlined } from "@ant-design/icons";
|
|
204
204
|
import { useMountMergeState } from "@ant-design/pro-components";
|
|
205
205
|
import { Checkbox, ConfigProvider, Dropdown, Space } from "antd";
|
|
206
|
-
import classNames from "
|
|
206
|
+
import classNames from "clsx";
|
|
207
207
|
import React, { useContext, useEffect, useMemo } from "react";
|
|
208
208
|
import { useMEditor } from "../../../hooks/editor";
|
|
209
209
|
import { useEditorStore } from "../../store";
|
|
@@ -27,7 +27,7 @@ function _object_spread(target) {
|
|
|
27
27
|
return target;
|
|
28
28
|
}
|
|
29
29
|
import { ConfigProvider } from "antd";
|
|
30
|
-
import classNames from "
|
|
30
|
+
import classNames from "clsx";
|
|
31
31
|
import React, { createElement, useContext } from "react";
|
|
32
32
|
/**
|
|
33
33
|
* ReadonlyList 组件 - 只读列表预览组件
|
|
@@ -27,7 +27,7 @@ function _object_spread(target) {
|
|
|
27
27
|
return target;
|
|
28
28
|
}
|
|
29
29
|
import { Checkbox, ConfigProvider } from "antd";
|
|
30
|
-
import classNames from "
|
|
30
|
+
import classNames from "clsx";
|
|
31
31
|
import React, { useContext, useMemo } from "react";
|
|
32
32
|
/**
|
|
33
33
|
* ReadonlyListItem 组件 - 只读列表项预览组件
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { ConfigProvider } from "antd";
|
|
54
|
-
import classNames from "
|
|
54
|
+
import classNames from "clsx";
|
|
55
55
|
import React, { useContext } from "react";
|
|
56
56
|
/**
|
|
57
57
|
* ReadonlyMermaid 组件 - 只读 Mermaid 图表预览组件
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { ConfigProvider } from "antd";
|
|
54
|
-
import classNames from "
|
|
54
|
+
import classNames from "clsx";
|
|
55
55
|
import React, { useContext } from "react";
|
|
56
56
|
export var Mermaid = function Mermaid(param) {
|
|
57
57
|
var attributes = param.attributes, children = param.children, element = param.element;
|
|
@@ -96,7 +96,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
96
96
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
97
97
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
98
98
|
}
|
|
99
|
-
import classNames from "
|
|
99
|
+
import classNames from "clsx";
|
|
100
100
|
import React, { useContext } from "react";
|
|
101
101
|
import { Node } from "slate";
|
|
102
102
|
import { I18nContext } from "../../../../I18n";
|
|
@@ -60,7 +60,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
60
60
|
import { FullscreenOutlined } from "@ant-design/icons";
|
|
61
61
|
import { Copy } from "@sofa-design/icons";
|
|
62
62
|
import { ConfigProvider, Modal } from "antd";
|
|
63
|
-
import classNames from "
|
|
63
|
+
import classNames from "clsx";
|
|
64
64
|
import copy from "copy-to-clipboard";
|
|
65
65
|
import React, { useCallback, useContext, useMemo, useRef, useState } from "react";
|
|
66
66
|
import { ActionIconBox } from "../../../../Components/ActionIconBox";
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { ConfigProvider } from "antd";
|
|
54
|
-
import classNames from "
|
|
54
|
+
import classNames from "clsx";
|
|
55
55
|
import React, { useContext, useMemo } from "react";
|
|
56
56
|
import { ReactEditor, useSlate } from "slate-react";
|
|
57
57
|
import { SlateTable } from "./Table";
|
|
@@ -145,7 +145,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
145
145
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
146
146
|
}
|
|
147
147
|
import { ConfigProvider } from "antd";
|
|
148
|
-
import classNames from "
|
|
148
|
+
import classNames from "clsx";
|
|
149
149
|
import React, { useContext, useEffect, useMemo, useRef } from "react";
|
|
150
150
|
import { Node } from "slate";
|
|
151
151
|
import stringWidth from "string-width";
|
|
@@ -86,12 +86,13 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
86
86
|
}
|
|
87
87
|
import { DeleteOutlined, InsertRowAboveOutlined, InsertRowBelowOutlined } from "@ant-design/icons";
|
|
88
88
|
import { ConfigProvider } from "antd";
|
|
89
|
-
import classNames from "
|
|
89
|
+
import classNames from "clsx";
|
|
90
90
|
import React, { useContext, useRef } from "react";
|
|
91
91
|
import { Editor, Transforms } from "slate";
|
|
92
92
|
import { ReactEditor, useSlate } from "slate-react";
|
|
93
93
|
import { useClickAway } from "../../../../../Hooks/useClickAway";
|
|
94
94
|
import { useRefFunction } from "../../../../../Hooks/useRefFunction";
|
|
95
|
+
import { I18nContext } from "../../../../../I18n";
|
|
95
96
|
import { NativeTableEditor } from "../../../../utils/native-table";
|
|
96
97
|
import { TablePropsContext } from "../TableContext";
|
|
97
98
|
/**
|
|
@@ -130,6 +131,7 @@ import { TablePropsContext } from "../TableContext";
|
|
|
130
131
|
* - 支持点击选中整行功能
|
|
131
132
|
*/ export var TableCellIndex = function TableCellIndex(param) {
|
|
132
133
|
var style = param.style, className = param.className, rowIndex = param.rowIndex, tablePath = param.tablePath;
|
|
134
|
+
var locale = useContext(I18nContext).locale;
|
|
133
135
|
var context = useContext(ConfigProvider.ConfigContext);
|
|
134
136
|
var baseClassName = context === null || context === void 0 ? void 0 : context.getPrefixCls('agentic-md-editor-table-cell-index');
|
|
135
137
|
var editor = useSlate();
|
|
@@ -398,20 +400,20 @@ import { TablePropsContext } from "../TableContext";
|
|
|
398
400
|
backgroundColor: shouldShowDeleteIcon ? 'var(--color-primary-control-fill-primary-active)' : undefined
|
|
399
401
|
}, style),
|
|
400
402
|
onClick: handleClick,
|
|
401
|
-
title: rowIndex !== undefined ? '点击显示操作按钮' : undefined
|
|
403
|
+
title: rowIndex !== undefined ? (locale === null || locale === void 0 ? void 0 : locale['table.clickToShowActions']) || '点击显示操作按钮' : undefined
|
|
402
404
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
403
405
|
className: classNames("".concat(baseClassName, "-action-buttons"), shouldShowDeleteIcon && "".concat(baseClassName, "-action-buttons-visible"))
|
|
404
406
|
}, shouldShowDeleteIcon && /*#__PURE__*/ React.createElement("div", {
|
|
405
407
|
className: classNames("".concat(baseClassName, "-action-button"), "".concat(baseClassName, "-insert-row-before")),
|
|
406
408
|
onClick: handleInsertRowBefore,
|
|
407
|
-
title:
|
|
409
|
+
title: (locale === null || locale === void 0 ? void 0 : locale['table.insertRowBefore']) || '在上面增加一行'
|
|
408
410
|
}, /*#__PURE__*/ React.createElement(InsertRowAboveOutlined, null)), /*#__PURE__*/ React.createElement("div", {
|
|
409
411
|
className: classNames("".concat(baseClassName, "-action-button"), "".concat(baseClassName, "-delete-icon")),
|
|
410
412
|
onClick: handleDeleteClick,
|
|
411
|
-
title:
|
|
413
|
+
title: (locale === null || locale === void 0 ? void 0 : locale['table.deleteRow']) || '删除整行'
|
|
412
414
|
}, /*#__PURE__*/ React.createElement(DeleteOutlined, null)), shouldShowDeleteIcon && /*#__PURE__*/ React.createElement("div", {
|
|
413
415
|
className: classNames("".concat(baseClassName, "-action-button"), "".concat(baseClassName, "-insert-row-after")),
|
|
414
416
|
onClick: handleInsertRowAfter,
|
|
415
|
-
title:
|
|
417
|
+
title: (locale === null || locale === void 0 ? void 0 : locale['table.insertRowAfter']) || '在下面增加一行'
|
|
416
418
|
}, /*#__PURE__*/ React.createElement(InsertRowBelowOutlined, null))));
|
|
417
419
|
};
|