@ant-design/agentic-ui 2.0.25 → 2.0.26

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.
@@ -126,6 +126,7 @@ export declare function useLanguage(): {
126
126
  'think.deepThinking': string;
127
127
  'think.deepThinkingInProgress': string;
128
128
  switchLanguage: string;
129
+ welcome: string;
129
130
  insertLink: string;
130
131
  clearFormatting: string;
131
132
  undo: string;
@@ -90,6 +90,7 @@ export declare const cnLabels: {
90
90
  'think.deepThinking': string;
91
91
  'think.deepThinkingInProgress': string;
92
92
  switchLanguage: string;
93
+ welcome: string;
93
94
  insertLink: string;
94
95
  clearFormatting: string;
95
96
  undo: string;
@@ -84,6 +84,7 @@ var cnLabels = {
84
84
  "think.deepThinking": "深度思考",
85
85
  "think.deepThinkingInProgress": "深度思考...",
86
86
  switchLanguage: "切换语言",
87
+ welcome: "欢迎使用多语言支持",
87
88
  insertLink: "插入链接",
88
89
  clearFormatting: "清除格式",
89
90
  undo: "撤销",
@@ -354,6 +355,7 @@ var enLabels = {
354
355
  undo: "Undo",
355
356
  redo: "Redo",
356
357
  switchLanguage: "Switch Language",
358
+ welcome: "Welcome to Multilingual Support",
357
359
  insertLink: "Insert Link",
358
360
  attachmentSupportedFormats: "Supported file types and formats:",
359
361
  clearFormatting: "Clear Formatting",
@@ -237,6 +237,9 @@ var BarChart = ({
237
237
  const neg = color[1] || color[0] || baseColor;
238
238
  base2 = value2 >= 0 ? pos : neg;
239
239
  }
240
+ if (value2 === 0) {
241
+ return hexToRgba(base2, 0.75);
242
+ }
240
243
  const x0 = xScale.getPixelForValue(0);
241
244
  const x1 = xScale.getPixelForValue(value2);
242
245
  if (!Number.isFinite(x0) || !Number.isFinite(x1)) {
@@ -256,6 +259,9 @@ var BarChart = ({
256
259
  const neg = color[1] || color[0] || baseColor;
257
260
  base = value >= 0 ? pos : neg;
258
261
  }
262
+ if (value === 0) {
263
+ return hexToRgba(base, 0.75);
264
+ }
259
265
  const y0 = yScale.getPixelForValue(0);
260
266
  const y1 = yScale.getPixelForValue(value);
261
267
  if (!Number.isFinite(y0) || !Number.isFinite(y1)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ant-design/agentic-ui",
3
- "version": "2.0.25",
3
+ "version": "2.0.26",
4
4
  "description": "面向智能体的 UI 组件库,提供多步推理可视化、工具调用展示、任务执行协同等 Agentic UI 能力",
5
5
  "repository": "git@github.com:ant-design/agentic-ui.git",
6
6
  "license": "MIT",