@ant-design/agentic-ui 2.0.13 → 2.0.14
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/README.md +12 -12
- package/dist/Bubble/AIBubble.js +3 -1
- package/dist/{ChatBoot → ChatBootPage}/ButtonTab.js +1 -1
- package/dist/{ChatBoot → ChatBootPage}/ButtonTabGroup.js +1 -1
- package/dist/{ChatBoot → ChatBootPage}/ButtonTabGroupStyle.js +1 -1
- package/dist/{ChatBoot → ChatBootPage}/ButtonTabStyle.js +1 -1
- package/dist/{ChatBoot → ChatBootPage}/CaseReply.js +1 -1
- package/dist/{ChatBoot → ChatBootPage}/CaseReplyStyle.js +1 -1
- package/dist/{ChatBoot → ChatBootPage}/Title.js +1 -1
- package/dist/{ChatBoot → ChatBootPage}/index.js +1 -1
- package/dist/{ChatBoot → ChatBootPage}/style.js +1 -1
- package/dist/{Welcome → WelcomeMessage}/index.d.ts +7 -4
- package/dist/{Welcome → WelcomeMessage}/index.js +3 -3
- package/dist/{Welcome → WelcomeMessage}/style.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
- /package/dist/{ChatBoot → ChatBootPage}/ButtonTab.d.ts +0 -0
- /package/dist/{ChatBoot → ChatBootPage}/ButtonTabGroup.d.ts +0 -0
- /package/dist/{ChatBoot → ChatBootPage}/ButtonTabGroupStyle.d.ts +0 -0
- /package/dist/{ChatBoot → ChatBootPage}/ButtonTabStyle.d.ts +0 -0
- /package/dist/{ChatBoot → ChatBootPage}/CaseReply.d.ts +0 -0
- /package/dist/{ChatBoot → ChatBootPage}/CaseReplyStyle.d.ts +0 -0
- /package/dist/{ChatBoot → ChatBootPage}/Title.d.ts +0 -0
- /package/dist/{ChatBoot → ChatBootPage}/index.d.ts +0 -0
- /package/dist/{ChatBoot → ChatBootPage}/style.d.ts +0 -0
- /package/dist/{Welcome → WelcomeMessage}/style.d.ts +0 -0
package/README.md
CHANGED
|
@@ -153,12 +153,12 @@ import { MarkdownEditor } from '@ant-design/agentic-ui';
|
|
|
153
153
|
|
|
154
154
|
### 📋 布局与容器组件
|
|
155
155
|
|
|
156
|
-
| 组件
|
|
157
|
-
|
|
|
158
|
-
| `ChatLayout`
|
|
159
|
-
| `History`
|
|
160
|
-
| `
|
|
161
|
-
| `Quote`
|
|
156
|
+
| 组件 | 描述 | 主要功能 |
|
|
157
|
+
| ---------------- | ------------ | ------------------------------------ |
|
|
158
|
+
| `ChatLayout` | 聊天布局容器 | 标准聊天界面布局,支持左右栏、全屏等 |
|
|
159
|
+
| `History` | 历史记录组件 | 会话历史管理,支持搜索、筛选、导出 |
|
|
160
|
+
| `WelcomeMessage` | 欢迎语组件 | 应用启动欢迎语,展示功能介绍 |
|
|
161
|
+
| `Quote` | 引用组件 | 引用消息或内容 |
|
|
162
162
|
|
|
163
163
|
### 🎯 交互与反馈组件
|
|
164
164
|
|
|
@@ -172,12 +172,12 @@ import { MarkdownEditor } from '@ant-design/agentic-ui';
|
|
|
172
172
|
|
|
173
173
|
### 🧠 智能体专属组件
|
|
174
174
|
|
|
175
|
-
| 组件 | 描述
|
|
176
|
-
| ---------------- |
|
|
177
|
-
| `
|
|
178
|
-
| `SchemaEditor` | Schema 编辑器
|
|
179
|
-
| `SchemaForm` | Schema 表单
|
|
180
|
-
| `SchemaRenderer` | Schema 渲染器
|
|
175
|
+
| 组件 | 描述 | 主要功能 |
|
|
176
|
+
| ---------------- | -------------- | ---------------------------- |
|
|
177
|
+
| `ChatBootPage` | 对话启动页组件 | 快速回复、案例推荐等引导功能 |
|
|
178
|
+
| `SchemaEditor` | Schema 编辑器 | 结构化数据编辑 |
|
|
179
|
+
| `SchemaForm` | Schema 表单 | 基于 Schema 自动生成表单 |
|
|
180
|
+
| `SchemaRenderer` | Schema 渲染器 | 渲染结构化数据 |
|
|
181
181
|
|
|
182
182
|
### 🔌 插件组件
|
|
183
183
|
|
package/dist/Bubble/AIBubble.js
CHANGED
|
@@ -167,7 +167,9 @@ var AIBubble = memo((props) => {
|
|
|
167
167
|
{
|
|
168
168
|
style: __spreadValues({
|
|
169
169
|
minWidth: standalone ? "min(296px,100%)" : "0px",
|
|
170
|
-
paddingLeft: 12
|
|
170
|
+
paddingLeft: 12,
|
|
171
|
+
maxWidth: "100%",
|
|
172
|
+
width: "100%"
|
|
171
173
|
}, styles == null ? void 0 : styles.bubbleListItemExtraStyle),
|
|
172
174
|
className: cx(
|
|
173
175
|
`${prefixClass}-bubble-after`,
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
|
|
21
|
-
// src/
|
|
21
|
+
// src/ChatBootPage/ButtonTabGroupStyle.ts
|
|
22
22
|
import {
|
|
23
23
|
useEditorStyleRegister
|
|
24
24
|
} from "../Hooks/useStyle";
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export interface
|
|
2
|
+
export interface WelcomeMessageProps {
|
|
3
3
|
/** 标题 */
|
|
4
|
-
title
|
|
4
|
+
title?: React.ReactNode;
|
|
5
5
|
/** 描述 */
|
|
6
6
|
description?: React.ReactNode;
|
|
7
7
|
/** 自定义样式类名,用于各个提示项的不同部分 */
|
|
8
|
-
classNames?:
|
|
8
|
+
classNames?: {
|
|
9
|
+
title?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
};
|
|
9
12
|
/** 自定义样式 */
|
|
10
13
|
style?: React.CSSProperties;
|
|
11
14
|
/** 自定义根节点样式类名 */
|
|
12
15
|
rootClassName?: string;
|
|
13
16
|
}
|
|
14
|
-
export declare const
|
|
17
|
+
export declare const WelcomeMessage: React.FC<WelcomeMessageProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// src/
|
|
1
|
+
// src/WelcomeMessage/index.tsx
|
|
2
2
|
import { ConfigProvider } from "antd";
|
|
3
3
|
import classnames from "classnames";
|
|
4
4
|
import React, { useContext } from "react";
|
|
5
5
|
import { useStyle } from "./style";
|
|
6
|
-
var
|
|
6
|
+
var WelcomeMessage = ({
|
|
7
7
|
title,
|
|
8
8
|
description,
|
|
9
9
|
classNames,
|
|
@@ -27,5 +27,5 @@ var Welcome = ({
|
|
|
27
27
|
);
|
|
28
28
|
};
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
WelcomeMessage
|
|
31
31
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export * from './AgentRunBar';
|
|
|
4
4
|
export * from './Bubble';
|
|
5
5
|
export * from './Bubble/List';
|
|
6
6
|
export * from './Bubble/type';
|
|
7
|
-
export * from './
|
|
7
|
+
export * from './ChatBootPage';
|
|
8
8
|
export * from './ChatLayout';
|
|
9
9
|
export * from './Components/ActionIconBox';
|
|
10
10
|
export * from './Components/Button';
|
|
@@ -47,7 +47,7 @@ export * from './Schema';
|
|
|
47
47
|
export * from './TaskList';
|
|
48
48
|
export * from './ThoughtChainList';
|
|
49
49
|
export * from './ToolUseBar';
|
|
50
|
-
export * from './
|
|
50
|
+
export * from './WelcomeMessage';
|
|
51
51
|
export * from './Workspace';
|
|
52
52
|
export * from './Components/Robot';
|
|
53
53
|
export { default as Robot } from './Components/Robot';
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ export * from "./AgentRunBar";
|
|
|
4
4
|
export * from "./Bubble";
|
|
5
5
|
export * from "./Bubble/List";
|
|
6
6
|
export * from "./Bubble/type";
|
|
7
|
-
export * from "./
|
|
7
|
+
export * from "./ChatBootPage";
|
|
8
8
|
export * from "./ChatLayout";
|
|
9
9
|
export * from "./Components/ActionIconBox";
|
|
10
10
|
export * from "./Components/Button";
|
|
@@ -47,7 +47,7 @@ export * from "./Schema";
|
|
|
47
47
|
export * from "./TaskList";
|
|
48
48
|
export * from "./ThoughtChainList";
|
|
49
49
|
export * from "./ToolUseBar";
|
|
50
|
-
export * from "./
|
|
50
|
+
export * from "./WelcomeMessage";
|
|
51
51
|
export * from "./Workspace";
|
|
52
52
|
export * from "./Components/Robot";
|
|
53
53
|
import { default as default3 } from "./Components/Robot";
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|