@ant-design/agentic-ui 2.29.23 → 2.29.24

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.
@@ -164,17 +164,22 @@ import { MessagesContext } from "./BubbleContext";
164
164
  marginRight: props.placement === 'right' ? 24 : 0
165
165
  }
166
166
  }, (locale === null || locale === void 0 ? void 0 : locale['error.unexpected']) || '出现点意外情况,请重新发送');
167
+ var contentWrapper = /*#__PURE__*/ React.createElement("div", {
168
+ style: {
169
+ display: 'flex',
170
+ flexDirection: 'column',
171
+ minWidth: 0,
172
+ maxWidth: '100%'
173
+ }
174
+ }, /*#__PURE__*/ React.createElement(ErrorBoundary, {
175
+ fallback: errorDom
176
+ }, beforeContent, markdown, docListNode, afterContent), props.placement === 'right' ? null : extra);
167
177
  if (props.placement !== 'right') {
168
- return /*#__PURE__*/ React.createElement("div", {
169
- style: {
170
- display: 'flex',
171
- flexDirection: 'column',
172
- minWidth: 0,
173
- maxWidth: '100%'
174
- }
175
- }, /*#__PURE__*/ React.createElement(ErrorBoundary, {
176
- fallback: errorDom
177
- }, beforeContent, markdown, docListNode, afterContent), extra);
178
+ return contentWrapper;
179
+ }
180
+ // 仅当 extra 有内容时才用 Popover,避免 shouldShowCopy={false} 时 hover 出现空浮层小点
181
+ if (!extra) {
182
+ return contentWrapper;
178
183
  }
179
184
  return /*#__PURE__*/ React.createElement(Popover, {
180
185
  align: {
@@ -124,7 +124,7 @@ var genStyle = function genStyle(token) {
124
124
  export function useMessagesContentStyle(componentCls) {
125
125
  return useEditorStyleRegister('BubbleMessageDisplay', function(token) {
126
126
  var chatToken = _object_spread_props(_object_spread({}, token), {
127
- componentCls: componentCls || ''
127
+ componentCls: ".".concat(componentCls)
128
128
  });
129
129
  return genStyle(chatToken);
130
130
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ant-design/agentic-ui",
3
- "version": "2.29.23",
3
+ "version": "2.29.24",
4
4
  "description": "面向智能体的 UI 组件库,提供多步推理可视化、工具调用展示、任务执行协同等 Agentic UI 能力",
5
5
  "repository": "git@github.com:ant-design/agentic-ui.git",
6
6
  "license": "MIT",