@ant-design/agentic-ui 2.24.5 → 2.25.0
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/Components/Loading/CreativeRecommendationLoading.d.ts +26 -0
- package/dist/Components/Loading/CreativeRecommendationLoading.js +77 -0
- package/dist/Components/Loading/CreativeSparkLoading.d.ts +27 -0
- package/dist/Components/Loading/CreativeSparkLoading.js +78 -0
- package/dist/Components/Loading/Loading.d.ts +26 -0
- package/dist/Components/Loading/Loading.js +57 -0
- package/dist/Components/Loading/index.d.ts +3 -26
- package/dist/Components/Loading/index.js +3 -57
- package/dist/Components/Robot/index.d.ts +0 -1
- package/dist/Components/Robot/index.js +0 -1
- package/dist/Components/effects/CreativeRecommendationEffect/creativeRecommendation.json +580 -0
- package/dist/Components/effects/CreativeRecommendationEffect/index.d.ts +41 -0
- package/dist/Components/effects/CreativeRecommendationEffect/index.js +52 -0
- package/dist/Components/effects/EffectPlayer.d.ts +28 -0
- package/dist/Components/effects/EffectPlayer.js +222 -0
- package/dist/Components/effects/LoadingEffect/index.d.ts +41 -0
- package/dist/Components/effects/LoadingEffect/index.js +51 -0
- package/dist/Components/effects/LoadingEffect/loading.json +922 -0
- package/dist/Components/effects/index.d.ts +3 -0
- package/dist/Components/effects/index.js +3 -0
- package/dist/Components/lotties/CreativeSparkLottie/creativeSpark.json +5576 -0
- package/dist/Components/lotties/CreativeSparkLottie/index.d.ts +65 -0
- package/dist/Components/lotties/CreativeSparkLottie/index.js +87 -0
- package/dist/Components/lotties/LoadingLottie/loading.json +4024 -1977
- package/dist/Components/lotties/index.d.ts +4 -0
- package/dist/Components/lotties/index.js +4 -0
- package/dist/MarkdownEditor/editor/utils/docx/docxDeserializer.js +2 -2
- package/dist/Workspace/File/FileComponent.js +3 -2
- package/dist/Workspace/Task/index.d.ts +3 -1
- package/dist/Workspace/Task/index.js +4 -3
- package/dist/Workspace/Task/style.js +2 -1
- package/package.json +2 -1
|
@@ -31,8 +31,8 @@ export var docxDeserializer = function(rtf, html) {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
if (fragment.type === 'head') {
|
|
34
|
-
var _fragment_children;
|
|
35
|
-
if ((fragment === null || fragment === void 0 ? void 0 : (_fragment_children = fragment.children) === null || _fragment_children === void 0 ? void 0 : _fragment_children.at(0).text) && isMarkdownLink(fragment.children.at(0).text)) {
|
|
34
|
+
var _fragment_children_at, _fragment_children;
|
|
35
|
+
if ((fragment === null || fragment === void 0 ? void 0 : (_fragment_children = fragment.children) === null || _fragment_children === void 0 ? void 0 : (_fragment_children_at = _fragment_children.at(0)) === null || _fragment_children_at === void 0 ? void 0 : _fragment_children_at.text) && isMarkdownLink(fragment.children.at(0).text)) {
|
|
36
36
|
var linkText = fragment.children.at(0).text;
|
|
37
37
|
fragment.children[0] = {
|
|
38
38
|
text: linkText === null || linkText === void 0 ? void 0 : linkText.replace(/\[([^\]]+)\]\(([^)]+)\)/, '$1'),
|
|
@@ -825,9 +825,7 @@ export var FileComponent = function(param) {
|
|
|
825
825
|
3,
|
|
826
826
|
4
|
|
827
827
|
];
|
|
828
|
-
// 立刻进入预览页并展示 loading
|
|
829
828
|
currentCallId = ++previewRequestIdRef.current;
|
|
830
|
-
setPreviewFile(file);
|
|
831
829
|
_state.label = 1;
|
|
832
830
|
case 1:
|
|
833
831
|
_state.trys.push([
|
|
@@ -854,9 +852,11 @@ export var FileComponent = function(param) {
|
|
|
854
852
|
2
|
|
855
853
|
];
|
|
856
854
|
}
|
|
855
|
+
// 只有当返回结果不是 false 时,才设置预览文件并处理预览数据
|
|
857
856
|
if (previewData) {
|
|
858
857
|
// 区分返回类型:ReactNode -> 自定义内容;FileNode -> 新文件预览
|
|
859
858
|
if (/*#__PURE__*/ React.isValidElement(previewData) || typeof previewData === 'string' || typeof previewData === 'number' || typeof previewData === 'boolean') {
|
|
859
|
+
setPreviewFile(file);
|
|
860
860
|
content = /*#__PURE__*/ React.isValidElement(previewData) ? /*#__PURE__*/ React.cloneElement(previewData, {
|
|
861
861
|
setPreviewHeader: function(header) {
|
|
862
862
|
return setCustomPreviewHeader(header);
|
|
@@ -889,6 +889,7 @@ export var FileComponent = function(param) {
|
|
|
889
889
|
2
|
|
890
890
|
];
|
|
891
891
|
}
|
|
892
|
+
// previewData 为 undefined 或 null,使用默认预览
|
|
892
893
|
setCustomPreviewContent(null);
|
|
893
894
|
setPreviewFile(file);
|
|
894
895
|
return [
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { type FC } from 'react';
|
|
2
|
+
type TaskStatus = 'success' | 'pending' | 'loading' | 'error';
|
|
2
3
|
export interface TaskItem {
|
|
3
4
|
key: string;
|
|
4
5
|
title?: string;
|
|
5
6
|
content?: React.ReactNode | React.ReactNode[];
|
|
6
|
-
status:
|
|
7
|
+
status: TaskStatus;
|
|
7
8
|
}
|
|
8
9
|
export interface TaskItemInput {
|
|
9
10
|
items: TaskItem[];
|
|
@@ -15,3 +16,4 @@ export interface TaskListProps {
|
|
|
15
16
|
onItemClick?: (item: TaskItem) => void;
|
|
16
17
|
}
|
|
17
18
|
export declare const TaskList: FC<TaskListProps>;
|
|
19
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import { Check, CircleDashed, OctagonX } from "@sofa-design/icons";
|
|
|
2
2
|
import { ConfigProvider } from "antd";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import React, { useContext } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { LoadingEffect } from "../../Components/effects";
|
|
6
6
|
import { useTaskStyle } from "./style";
|
|
7
7
|
var StatusIcon = function(param) {
|
|
8
8
|
var status = param.status;
|
|
@@ -20,9 +20,10 @@ var StatusIcon = function(param) {
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
case 'loading':
|
|
23
|
-
return /*#__PURE__*/ React.createElement(
|
|
23
|
+
return /*#__PURE__*/ React.createElement(LoadingEffect, {
|
|
24
24
|
style: {
|
|
25
|
-
color: 'var(--color-gray-text-disabled)'
|
|
25
|
+
color: 'var(--color-gray-text-disabled)',
|
|
26
|
+
transform: 'scale(1.1)'
|
|
26
27
|
}
|
|
27
28
|
});
|
|
28
29
|
case 'pending':
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ant-design/agentic-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.25.0",
|
|
4
4
|
"description": "面向智能体的 UI 组件库,提供多步推理可视化、工具调用展示、任务执行协同等 Agentic UI 能力",
|
|
5
5
|
"repository": "git@github.com:ant-design/agentic-ui.git",
|
|
6
6
|
"license": "MIT",
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"@better-scroll/mouse-wheel": "^2.5.1",
|
|
52
52
|
"@better-scroll/observe-dom": "^2.5.1",
|
|
53
53
|
"@better-scroll/scroll-bar": "^2.5.1",
|
|
54
|
+
"@galacean/effects": "^2.6.5",
|
|
54
55
|
"@juggle/resize-observer": "^3.4.0",
|
|
55
56
|
"@sofa-design/icons": "^1.6.1",
|
|
56
57
|
"ace-builds": "^1.43.4",
|