@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.
Files changed (32) hide show
  1. package/dist/Components/Loading/CreativeRecommendationLoading.d.ts +26 -0
  2. package/dist/Components/Loading/CreativeRecommendationLoading.js +77 -0
  3. package/dist/Components/Loading/CreativeSparkLoading.d.ts +27 -0
  4. package/dist/Components/Loading/CreativeSparkLoading.js +78 -0
  5. package/dist/Components/Loading/Loading.d.ts +26 -0
  6. package/dist/Components/Loading/Loading.js +57 -0
  7. package/dist/Components/Loading/index.d.ts +3 -26
  8. package/dist/Components/Loading/index.js +3 -57
  9. package/dist/Components/Robot/index.d.ts +0 -1
  10. package/dist/Components/Robot/index.js +0 -1
  11. package/dist/Components/effects/CreativeRecommendationEffect/creativeRecommendation.json +580 -0
  12. package/dist/Components/effects/CreativeRecommendationEffect/index.d.ts +41 -0
  13. package/dist/Components/effects/CreativeRecommendationEffect/index.js +52 -0
  14. package/dist/Components/effects/EffectPlayer.d.ts +28 -0
  15. package/dist/Components/effects/EffectPlayer.js +222 -0
  16. package/dist/Components/effects/LoadingEffect/index.d.ts +41 -0
  17. package/dist/Components/effects/LoadingEffect/index.js +51 -0
  18. package/dist/Components/effects/LoadingEffect/loading.json +922 -0
  19. package/dist/Components/effects/index.d.ts +3 -0
  20. package/dist/Components/effects/index.js +3 -0
  21. package/dist/Components/lotties/CreativeSparkLottie/creativeSpark.json +5576 -0
  22. package/dist/Components/lotties/CreativeSparkLottie/index.d.ts +65 -0
  23. package/dist/Components/lotties/CreativeSparkLottie/index.js +87 -0
  24. package/dist/Components/lotties/LoadingLottie/loading.json +4024 -1977
  25. package/dist/Components/lotties/index.d.ts +4 -0
  26. package/dist/Components/lotties/index.js +4 -0
  27. package/dist/MarkdownEditor/editor/utils/docx/docxDeserializer.js +2 -2
  28. package/dist/Workspace/File/FileComponent.js +3 -2
  29. package/dist/Workspace/Task/index.d.ts +3 -1
  30. package/dist/Workspace/Task/index.js +4 -3
  31. package/dist/Workspace/Task/style.js +2 -1
  32. package/package.json +2 -1
@@ -0,0 +1,65 @@
1
+ import React from 'react';
2
+ export interface CreativeSparkLottieProps {
3
+ /**
4
+ * 是否自动播放动画
5
+ * @default true
6
+ */
7
+ autoplay?: boolean;
8
+ /**
9
+ * 是否循环播放动画
10
+ * @default true
11
+ */
12
+ loop?: boolean;
13
+ /**
14
+ * 动画容器类名
15
+ */
16
+ className?: string;
17
+ /**
18
+ * 动画容器样式
19
+ */
20
+ style?: React.CSSProperties;
21
+ /**
22
+ * 动画尺寸(宽度和高度)
23
+ * @example size={64}
24
+ */
25
+ size?: number | string;
26
+ }
27
+ /**
28
+ * 创意生成中火花组件
29
+ *
30
+ * 使用 Lottie 动画展示创意生成中火花的组件,支持自定义尺寸、样式和播放行为。
31
+ *
32
+ * @component
33
+ * @example
34
+ * // 基础用法
35
+ * <CreativeSparkLottie />
36
+ *
37
+ * @example
38
+ * // 自定义尺寸
39
+ * <CreativeSparkLottie size={64} />
40
+ *
41
+ * @example
42
+ * // 自定义样式
43
+ * <CreativeSparkLottie
44
+ * size={80}
45
+ * style={{ margin: '20px' }}
46
+ * className="custom-creative-spark"
47
+ * />
48
+ *
49
+ * @example
50
+ * // 控制播放行为
51
+ * <CreativeSparkLottie
52
+ * autoplay={false}
53
+ * loop={false}
54
+ * />
55
+ *
56
+ * @param props - 组件属性
57
+ * @param props.autoplay - 是否自动播放动画,默认为 true
58
+ * @param props.loop - 是否循环播放动画,默认为 true
59
+ * @param props.className - 动画容器类名
60
+ * @param props.style - 动画容器自定义样式
61
+ * @param props.size - 动画尺寸(宽度和高度)
62
+ * @returns 渲染的创意生成中火花组件
63
+ */
64
+ export declare const CreativeSparkLottie: React.FC<CreativeSparkLottieProps>;
65
+ export default CreativeSparkLottie;
@@ -0,0 +1,87 @@
1
+ function _define_property(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, {
4
+ value: value,
5
+ enumerable: true,
6
+ configurable: true,
7
+ writable: true
8
+ });
9
+ } else {
10
+ obj[key] = value;
11
+ }
12
+ return obj;
13
+ }
14
+ function _object_spread(target) {
15
+ for(var i = 1; i < arguments.length; i++){
16
+ var source = arguments[i] != null ? arguments[i] : {};
17
+ var ownKeys = Object.keys(source);
18
+ if (typeof Object.getOwnPropertySymbols === "function") {
19
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
+ }));
22
+ }
23
+ ownKeys.forEach(function(key) {
24
+ _define_property(target, key, source[key]);
25
+ });
26
+ }
27
+ return target;
28
+ }
29
+ import Lottie from "lottie-react";
30
+ import React from "react";
31
+ import creativeSpark from "./creativeSpark.json";
32
+ /**
33
+ * 创意生成中火花组件
34
+ *
35
+ * 使用 Lottie 动画展示创意生成中火花的组件,支持自定义尺寸、样式和播放行为。
36
+ *
37
+ * @component
38
+ * @example
39
+ * // 基础用法
40
+ * <CreativeSparkLottie />
41
+ *
42
+ * @example
43
+ * // 自定义尺寸
44
+ * <CreativeSparkLottie size={64} />
45
+ *
46
+ * @example
47
+ * // 自定义样式
48
+ * <CreativeSparkLottie
49
+ * size={80}
50
+ * style={{ margin: '20px' }}
51
+ * className="custom-creative-spark"
52
+ * />
53
+ *
54
+ * @example
55
+ * // 控制播放行为
56
+ * <CreativeSparkLottie
57
+ * autoplay={false}
58
+ * loop={false}
59
+ * />
60
+ *
61
+ * @param props - 组件属性
62
+ * @param props.autoplay - 是否自动播放动画,默认为 true
63
+ * @param props.loop - 是否循环播放动画,默认为 true
64
+ * @param props.className - 动画容器类名
65
+ * @param props.style - 动画容器自定义样式
66
+ * @param props.size - 动画尺寸(宽度和高度)
67
+ * @returns 渲染的创意生成中火花组件
68
+ */ export var CreativeSparkLottie = function(param) {
69
+ var _param_autoplay = param.autoplay, autoplay = _param_autoplay === void 0 ? true : _param_autoplay, _param_loop = param.loop, loop = _param_loop === void 0 ? true : _param_loop, className = param.className, style = param.style, size = param.size;
70
+ var containerStyle = _object_spread({
71
+ width: size,
72
+ height: size,
73
+ display: 'flex',
74
+ justifyContent: 'center',
75
+ alignItems: 'center'
76
+ }, style);
77
+ return /*#__PURE__*/ React.createElement(Lottie, {
78
+ style: containerStyle,
79
+ className: className,
80
+ "data-testid": "lottie-animation",
81
+ "aria-hidden": "true",
82
+ animationData: creativeSpark,
83
+ loop: loop,
84
+ autoplay: autoplay
85
+ });
86
+ };
87
+ export default CreativeSparkLottie;