one-design-next 0.0.54 → 0.0.55

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.
@@ -75,6 +75,8 @@ export interface PreviewTab {
75
75
  name: string;
76
76
  content: string;
77
77
  type: string;
78
+ /** 业务方自定义数据,组件本身不消费,仅透传回回调函数(如 onDownload、onOpenInBrowser 等) */
79
+ data?: unknown;
78
80
  }
79
81
  /**
80
82
  * 内联引用状态:
@@ -205,7 +205,8 @@ export function ChatItem(_ref2) {
205
205
  var labelRef = useRef(null);
206
206
  var titleRef = useRef(null);
207
207
  var trailingRef = useRef(null);
208
- var showStatus = Boolean(status && !active);
208
+ // active 时隐藏 waiting/unread/error;generating 仍展示(当前会话仍在生成)
209
+ var showStatus = Boolean(status && (!active || status === 'generating'));
209
210
  var showTypeIcon = type === 'human';
210
211
  var fitTitle = showTypeIcon || showStatus;
211
212
  var displayTitle = useFittedTitle(title, fitTitle, labelRef, titleRef, trailingRef);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one-design-next",
3
- "version": "0.0.54",
3
+ "version": "0.0.55",
4
4
  "description": "One Design Next from TAD@tencent.com",
5
5
  "packageManager": "pnpm@11.8.0",
6
6
  "module": "dist/index.js",