@farris/x-ui 0.4.8 → 0.5.0

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.
@@ -0,0 +1,10 @@
1
+ /** 与 `.f-ec-knowledge-trace-panel__card-content` 的 line-height / line-clamp 保持一致 */
2
+ export declare const COLLAPSED_CONTENT_LINE_HEIGHT_PX = 20;
3
+ export declare const COLLAPSED_CONTENT_LINES = 3;
4
+ export declare function collapsedContentMaxHeightPx(): number;
5
+ /** 全文高度是否超出收起态 3 行;无法测量时返回 null */
6
+ export declare function exceedsCollapsedClamp(fullHeightPx: number): boolean | null;
7
+ /**
8
+ * 去掉 line-clamp 后量全文高度,避免 clamp 后 scrollHeight 被裁成 3 行导致误判。
9
+ */
10
+ export declare function measureUnclampedContentHeight(el: HTMLElement): number;
@@ -0,0 +1,4 @@
1
+ import { default as MarkdownIt } from '../../../../markdown-it';
2
+
3
+ /** 使纯文本 `$...$` 业务占位符在 texmath 解析前作为原始文本保留。 */
4
+ export declare function useLiteralDollarPlaceholders(markdown: MarkdownIt): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farris/x-ui",
3
- "version": "0.4.8",
3
+ "version": "0.5.0",
4
4
  "description": "可复用的 AI 对话组件",
5
5
  "type": "module",
6
6
  "main": "./farris.x-ui.umd.cjs",