@simon_he/vue-tui 1.1.4 → 1.1.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.
@@ -62,4 +62,12 @@ export declare function clearMermaidImageCache(): void;
62
62
  * can rebuild/re-paint with the real size.
63
63
  */
64
64
  export declare function getMermaidImage(code: string, options?: TuiMermaidImageOptions): Promise<TuiMermaidImageCells | null>;
65
+ /**
66
+ * @resvg/resvg-js (usvg) does not support CSS custom properties (`var()`) or
67
+ * `color-mix()`. beautiful-mermaid 1.x emits both, so feeding the raw SVG to
68
+ * resvg renders every shape black. This resolver inlines all `var(--x)` /
69
+ * `color-mix(in srgb, ...)` color expressions into concrete hex values before
70
+ * rasterization. Exported for tests.
71
+ */
72
+ export declare function resolveMermaidSvgForResvg(svg: string, fallbackBg: string, fallbackFg: string): string;
65
73
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simon_he/vue-tui",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Vue 3 terminal UI components and renderers for browser DOM, CLI stdout, logs, markdown transcripts, and agent consoles",
5
5
  "keywords": [
6
6
  "agent-console",
@@ -246,14 +246,14 @@
246
246
  "access": "public"
247
247
  },
248
248
  "dependencies": {
249
- "stream-markdown-parser": "1.1.9"
249
+ "stream-markdown-parser": "1.2.3"
250
250
  },
251
251
  "devDependencies": {
252
- "@arethetypeswrong/core": "^0.18.3",
253
- "@playwright/test": "^1.61.0",
252
+ "@arethetypeswrong/core": "^0.18.5",
253
+ "@playwright/test": "^1.62.1",
254
254
  "@resvg/resvg-js": "^2.6.2",
255
255
  "@types/node": "^18.19.130",
256
- "@vitest/coverage-v8": "^4.1.9",
256
+ "@vitest/coverage-v8": "^4.1.10",
257
257
  "beautiful-mermaid": "^1.1.3",
258
258
  "bumpp": "^8.2.1",
259
259
  "bun-webgpu": "0.1.7",
@@ -263,18 +263,18 @@
263
263
  "lint-staged": "^13.3.0",
264
264
  "mathjax-full": "^3.2.2",
265
265
  "oxfmt": "^0.47.0",
266
- "oxlint": "^1.70.0",
266
+ "oxlint": "^1.77.0",
267
267
  "picocolors": "^1.1.1",
268
268
  "pinia": "^3.0.4",
269
- "publint": "^0.3.21",
269
+ "publint": "^0.3.23",
270
270
  "rimraf": "^3.0.2",
271
271
  "tsdown": "^0.9.9",
272
- "tsx": "^4.22.4",
272
+ "tsx": "^4.23.11",
273
273
  "typescript": "^5.9.3",
274
274
  "vite": "8.0.16",
275
275
  "vitepress": "^1.6.4",
276
- "vitest": "^4.1.9",
277
- "vue": "^3.5.38"
276
+ "vitest": "^4.1.10",
277
+ "vue": "^3.5.41"
278
278
  },
279
279
  "peerDependencies": {
280
280
  "@resvg/resvg-js": "^2.6.2",
@@ -350,6 +350,7 @@
350
350
  "run:image-showcase:terminal": "tsx examples/image-showcase.ts",
351
351
  "run:katex-showcase:terminal": "tsx examples/katex-showcase.ts",
352
352
  "run:mermaid-image-showcase:terminal": "tsx examples/mermaid-image-showcase.ts",
353
+ "run:mermaid-adaptive-showcase:terminal": "tsx examples/mermaid-adaptive-showcase.ts",
353
354
  "trace:terminal-resize": "node scripts/trace-terminal-resize.mjs",
354
355
  "test:component-terminal:smoke": "VT_SMOKE=1 tsx scripts/run-component-terminal.ts --all",
355
356
  "e2e:component-terminal-charts": "tsx scripts/run-component-terminal.ts --capture-charts",