@deep-eye/core 1.2.6 → 1.2.8
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.
- package/CHANGELOG.md +22 -0
- package/dist/components/chat/mdoc/ContentNodes.vue.d.ts +1 -0
- package/dist/components/chat/mdoc/ContentNodes.vue.d.ts.map +1 -1
- package/dist/components/chat/mdoc/tableStreaming.d.ts +4 -0
- package/dist/components/chat/mdoc/tableStreaming.d.ts.map +1 -0
- package/dist/components/chat/mdoc/textContent.d.ts +7 -2
- package/dist/components/chat/mdoc/textContent.d.ts.map +1 -1
- package/dist/index.cjs +68 -68
- package/dist/index.js +2759 -2698
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
此文件记录 `@deep-eye/core` 的用户可见变更。新版本采用语义化版本,并按 `Added`、`Changed`、`Fixed`、`Removed` 分类记录。
|
|
4
4
|
|
|
5
|
+
## [1.2.8] - 2026-08-03
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- 表格行去掉多余边框声明,避免与单元格单向边线叠加。
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- 重新构建并发布 `1.2.7` 起的 markdown prose/表格样式产物。
|
|
14
|
+
|
|
15
|
+
## [1.2.7] - 2026-08-03
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Markdown 排版在 Tailwind Preflight 等 CSS reset 下不再“失样式”:显式声明标题字号/字重、列表符号、表格布局,避免依赖浏览器 UA 默认值。
|
|
20
|
+
- 助手消息表格:圆角卡片外框、单方向内部分隔线(消除表头双线)、流式生成中的骨架屏;宿主将 `table` 设为 `display: block` 时不再出现右侧大块空白。
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- Markdown 解析进一步委托 md4x:数学公式走原生 `<x-equation>`,流式场景开启 `heal`;KaTeX 仅负责公式排版。
|
|
25
|
+
- 表格包壳并入 `renderTextToSegments` 管线;prose/表格样式抽离为 `mdoc/prose.css`。
|
|
26
|
+
|
|
5
27
|
## [1.2.6] - 2026-07-31
|
|
6
28
|
|
|
7
29
|
### Fixed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentNodes.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/ContentNodes.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContentNodes.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/ContentNodes.vue"],"names":[],"mappings":"AAgPA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAWpD,OAAO,aAAa,CAAA;AAIpB,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,kCAAkC;IAClC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;CAChC,CAAC;AAuSF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tableStreaming.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/tableStreaming.ts"],"names":[],"mappings":"AAUA,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,MAAM,CAuB1F"}
|
|
@@ -32,7 +32,12 @@ export type TextSegment = {
|
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
34
|
* Turn a markdown text blob into renderable segments (html + media).
|
|
35
|
-
*
|
|
35
|
+
* Markdown parsing (incl. tables and math) is fully delegated to md4x;
|
|
36
|
+
* `streaming` turns on md4x's heal pass so unclosed constructs (e.g. `**bold`)
|
|
37
|
+
* render cleanly mid-stream. Code fences stay as plain
|
|
38
|
+
* <pre><code> from md4x (no Shiki).
|
|
36
39
|
*/
|
|
37
|
-
export declare function renderTextToSegments(markdown: string
|
|
40
|
+
export declare function renderTextToSegments(markdown: string, options?: {
|
|
41
|
+
streaming?: boolean;
|
|
42
|
+
}): TextSegment[];
|
|
38
43
|
//# sourceMappingURL=textContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textContent.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/textContent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"textContent.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/textContent.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,aAAa,qCAAa,CAAA;AAGhC,wBAAgB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAYnD;AAID,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAED,OAAO,EAAE,aAAa,IAAI,aAAa,EAAE,CAAA;AAEzC,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GACxD;IACE,IAAI,EAAE,aAAa,CAAA;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACzD,GACD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC3D;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAyD9D;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAO,GACpC,WAAW,EAAE,CA+Df"}
|