@ant-design/agentic-ui 2.29.58 → 2.29.59
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.
|
@@ -727,21 +727,26 @@ import { VoiceButton } from "./VoiceButton";
|
|
|
727
727
|
voiceDom
|
|
728
728
|
];
|
|
729
729
|
}
|
|
730
|
+
var inPopover = context === null || context === void 0 ? void 0 : context.extraShowOnHover;
|
|
730
731
|
return /*#__PURE__*/ React.createElement("div", {
|
|
731
732
|
className: prefixCls,
|
|
732
|
-
style: _object_spread({
|
|
733
|
+
style: _object_spread(_object_spread_props(_object_spread({
|
|
733
734
|
display: 'flex',
|
|
734
735
|
alignItems: 'center',
|
|
735
736
|
justifyContent: 'space-between',
|
|
736
|
-
width: '100%'
|
|
737
|
+
width: '100%'
|
|
738
|
+
}, inPopover ? {
|
|
739
|
+
padding: 0
|
|
740
|
+
} : {
|
|
737
741
|
paddingLeft: placement === 'right' ? 0 : 'var(--padding-5x)',
|
|
738
742
|
paddingRight: placement === 'right' ? 0 : 'var(--padding-5x)',
|
|
739
743
|
paddingTop: placement === 'right' ? 0 : 'var(--padding-1x)',
|
|
740
|
-
paddingBottom: placement === 'right' ? 0 : 'var(--padding-2x)'
|
|
744
|
+
paddingBottom: placement === 'right' ? 0 : 'var(--padding-2x)'
|
|
745
|
+
}), {
|
|
741
746
|
color: 'var(--color-gray-text-secondary)',
|
|
742
747
|
fontSize: (context === null || context === void 0 ? void 0 : context.compact) ? '11px' : '13px',
|
|
743
748
|
gap: 4
|
|
744
|
-
}, props.style)
|
|
749
|
+
}), props.style)
|
|
745
750
|
}, typing && originalData.content !== '...' ? /*#__PURE__*/ React.createElement("div", {
|
|
746
751
|
style: {
|
|
747
752
|
display: 'flex',
|
|
@@ -98,12 +98,12 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
98
98
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
99
99
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
100
100
|
}
|
|
101
|
+
import { preprocessProtectTimeFromDirective } from "./constants";
|
|
101
102
|
import { applyContextPropsAndConfig } from "./parse/applyContextPropsAndConfig";
|
|
102
103
|
import { handleBlockquote, handleContainerDirective, handleFootnoteDefinition, handleHeading, handleList, handleListItem, handleParagraph, handleTextAndInlineElements } from "./parse/parseBlockElements";
|
|
103
104
|
import { handleCode, handleYaml } from "./parse/parseCode";
|
|
104
105
|
import { handleDefinition, handleInlineCode, handleThematicBreak } from "./parse/parseElements";
|
|
105
106
|
import { addEmptyLinesIfNeeded } from "./parse/parseEmptyLines";
|
|
106
|
-
import { preprocessProtectTimeFromDirective } from "./constants";
|
|
107
107
|
import { handleFootnoteReference } from "./parse/parseFootnote";
|
|
108
108
|
import { handleHtml, preprocessNonStandardHtmlTags, preprocessThinkTags } from "./parse/parseHtml";
|
|
109
109
|
import { handleInlineMath, handleMath } from "./parse/parseMath";
|
|
@@ -424,7 +424,7 @@ import { isMobileDevice, isVivoOrOppoDevice, isWeChat } from "../AttachmentButto
|
|
|
424
424
|
* 处理文件重试
|
|
425
425
|
*/ var handleFileRetry = useRefFunction(function(file) {
|
|
426
426
|
return _async_to_generator(function() {
|
|
427
|
-
var map, url, isSuccess, uploadResult,
|
|
427
|
+
var map, url, isSuccess, uploadResult, error, map1;
|
|
428
428
|
return _ts_generator(this, function(_state) {
|
|
429
429
|
switch(_state.label){
|
|
430
430
|
case 0:
|
|
@@ -486,11 +486,12 @@ import { isMobileDevice, isVivoOrOppoDevice, isWeChat } from "../AttachmentButto
|
|
|
486
486
|
6
|
|
487
487
|
];
|
|
488
488
|
case 5:
|
|
489
|
-
|
|
489
|
+
error = _state.sent();
|
|
490
490
|
file.status = 'error';
|
|
491
491
|
map1 = new Map(fileMap);
|
|
492
492
|
map1.set(file.uuid || '', file);
|
|
493
493
|
updateAttachmentFiles(map1);
|
|
494
|
+
console.error('Error retrying file upload:', error);
|
|
494
495
|
return [
|
|
495
496
|
3,
|
|
496
497
|
6
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ant-design/agentic-ui",
|
|
3
|
-
"version": "2.29.
|
|
3
|
+
"version": "2.29.59",
|
|
4
4
|
"description": "面向智能体的 UI 组件库,提供多步推理可视化、工具调用展示、任务执行协同等 Agentic UI 能力",
|
|
5
5
|
"repository": "git@github.com:ant-design/agentic-ui.git",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
25
25
|
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
26
26
|
"prepare": "husky install && dumi setup",
|
|
27
|
+
"prepublishOnly": "npm run build && npm run test",
|
|
27
28
|
"prettier": "prettier --write \"{src,docs,test}/**/*.{js,jsx,ts,tsx,css,less,json,md}\"",
|
|
28
29
|
"preview": "pnpm dumi preview",
|
|
29
30
|
"report:demo": "node scripts/generateDemoReport.js",
|