@ant-design/agentic-ui 2.29.4 → 2.29.5

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.
@@ -382,6 +382,8 @@ export declare function useLanguage(): {
382
382
  'browser.totalResults': string;
383
383
  'browser.searching': string;
384
384
  'layout.header.title': string;
385
+ theme: string;
386
+ expandCollapse: string;
385
387
  };
386
388
  setLanguage: ((language: "zh-CN" | "en-US") => void) | undefined;
387
389
  toggleLanguage: () => void;
@@ -346,6 +346,8 @@ export declare const cnLabels: {
346
346
  'browser.totalResults': string;
347
347
  'browser.searching': string;
348
348
  'layout.header.title': string;
349
+ theme: string;
350
+ expandCollapse: string;
349
351
  };
350
352
  /**
351
353
  * 英文标签映射对象
@@ -366,7 +366,9 @@
366
366
  'browser.noResults': '暂无结果',
367
367
  'browser.totalResults': '共${count}个结果',
368
368
  'browser.searching': '搜索中...',
369
- 'layout.header.title': 'AI 助手'
369
+ 'layout.header.title': 'AI 助手',
370
+ theme: '主题',
371
+ expandCollapse: '展开/收起'
370
372
  };
371
373
  /**
372
374
  * 英文标签映射对象
@@ -734,5 +736,7 @@
734
736
  'browser.noResults': 'No results found',
735
737
  'browser.totalResults': 'Total ${count} results',
736
738
  'browser.searching': 'Searching...',
737
- 'layout.header.title': 'AI Assistant'
739
+ 'layout.header.title': 'AI Assistant',
740
+ theme: 'Theme',
741
+ expandCollapse: 'Expand/Collapse'
738
742
  };
@@ -72,7 +72,7 @@ import { parserSlateNodeToMarkdown } from "../../utils";
72
72
  * 移除了不必要的滚动监听和复杂的宽度计算
73
73
  */ export var ReadonlyTableComponent = /*#__PURE__*/ React.memo(function(param) {
74
74
  var hashId = param.hashId, children = param.children, element = param.element, baseCls = param.baseCls;
75
- var _element_children__children, _element_children_, _element_children, _editorProps_tableConfig;
75
+ var _element_children__children, _element_children_, _element_children, _editorProps_tableConfig, _i18n_locale;
76
76
  var editorProps = useEditorStore().editorProps;
77
77
  var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
78
78
  var _ref = (editorProps === null || editorProps === void 0 ? void 0 : editorProps.tableConfig) || {}, _ref_actions = _ref.actions, actions = _ref_actions === void 0 ? {
@@ -185,7 +185,7 @@ import { parserSlateNodeToMarkdown } from "../../utils";
185
185
  return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement("div", {
186
186
  className: classNames(baseCls, hashId)
187
187
  }, tableDom), popoverContent, previewOpen && /*#__PURE__*/ React.createElement(Modal, {
188
- title: (editorProps === null || editorProps === void 0 ? void 0 : (_editorProps_tableConfig = editorProps.tableConfig) === null || _editorProps_tableConfig === void 0 ? void 0 : _editorProps_tableConfig.previewTitle) || '预览表格',
188
+ title: (editorProps === null || editorProps === void 0 ? void 0 : (_editorProps_tableConfig = editorProps.tableConfig) === null || _editorProps_tableConfig === void 0 ? void 0 : _editorProps_tableConfig.previewTitle) || (i18n === null || i18n === void 0 ? void 0 : (_i18n_locale = i18n.locale) === null || _i18n_locale === void 0 ? void 0 : _i18n_locale.previewTable) || '预览表格',
189
189
  open: previewOpen,
190
190
  closable: true,
191
191
  footer: null,
@@ -76,7 +76,7 @@ import { LoadImage } from "./LoadImage";
76
76
  * />
77
77
  * ```
78
78
  */ export var CodeToolbar = function(props) {
79
- var _editorProps_codeProps, _editorProps_codeProps1, _element_language, _element_language1, _i18n_locale, _i18n_locale1;
79
+ var _editorProps_codeProps, _editorProps_codeProps1, _element_language, _element_language1, _i18n_locale, _i18n_locale1, _i18n_locale2, _i18n_locale3;
80
80
  // 获取国际化上下文
81
81
  var i18n = useContext(I18nContext);
82
82
  // 获取编辑器配置
@@ -187,14 +187,14 @@ import { LoadImage } from "./LoadImage";
187
187
  return onViewModeToggle === null || onViewModeToggle === void 0 ? void 0 : onViewModeToggle(value);
188
188
  }
189
189
  }) : null, /*#__PURE__*/ React.createElement(ActionIconBox, {
190
- title: "主题",
190
+ title: (i18n === null || i18n === void 0 ? void 0 : (_i18n_locale1 = i18n.locale) === null || _i18n_locale1 === void 0 ? void 0 : _i18n_locale1.theme) || '主题',
191
191
  theme: theme === 'chaos' ? 'dark' : 'light',
192
192
  onClick: function() {
193
193
  setTheme(theme === 'github' ? 'chaos' : 'github');
194
194
  }
195
195
  }, /*#__PURE__*/ React.createElement(Moon, null)), /*#__PURE__*/ React.createElement(ActionIconBox, {
196
196
  theme: theme === 'chaos' ? 'dark' : 'light',
197
- title: (i18n === null || i18n === void 0 ? void 0 : (_i18n_locale1 = i18n.locale) === null || _i18n_locale1 === void 0 ? void 0 : _i18n_locale1.copy) || '复制',
197
+ title: (i18n === null || i18n === void 0 ? void 0 : (_i18n_locale2 = i18n.locale) === null || _i18n_locale2 === void 0 ? void 0 : _i18n_locale2.copy) || '复制',
198
198
  style: {
199
199
  fontSize: '1em',
200
200
  lineHeight: '1.75em',
@@ -214,7 +214,7 @@ import { LoadImage } from "./LoadImage";
214
214
  }
215
215
  }
216
216
  }, /*#__PURE__*/ React.createElement(Copy, null)), /*#__PURE__*/ React.createElement(ActionIconBox, {
217
- title: "展开/收起",
217
+ title: (i18n === null || i18n === void 0 ? void 0 : (_i18n_locale3 = i18n.locale) === null || _i18n_locale3 === void 0 ? void 0 : _i18n_locale3.expandCollapse) || '展开/收起',
218
218
  theme: theme === 'chaos' ? 'dark' : 'light',
219
219
  onClick: function() {
220
220
  onExpandToggle === null || onExpandToggle === void 0 ? void 0 : onExpandToggle();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ant-design/agentic-ui",
3
- "version": "2.29.4",
3
+ "version": "2.29.5",
4
4
  "description": "面向智能体的 UI 组件库,提供多步推理可视化、工具调用展示、任务执行协同等 Agentic UI 能力",
5
5
  "repository": "git@github.com:ant-design/agentic-ui.git",
6
6
  "license": "MIT",