@simon_he/vue-tui 1.1.4 → 1.1.6

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.6",
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",
@@ -346,10 +346,21 @@
346
346
  "example:3d:smoke": "VT_SMOKE=1 bun examples/t3d-terminal-badge.ts",
347
347
  "run:flappy:terminal": "tsx examples/flappy-bird-terminal.ts",
348
348
  "example:flappy:smoke": "VT_SMOKE=1 tsx examples/flappy-bird-terminal.ts",
349
+ "run:contra:terminal": "tsx examples/contra-graphics-terminal.ts",
350
+ "example:contra:smoke": "VT_SMOKE=1 tsx examples/contra-graphics-terminal.ts",
351
+ "run:contra-text:terminal": "tsx examples/contra-terminal.ts",
352
+ "example:contra-text:smoke": "VT_SMOKE=1 tsx examples/contra-terminal.ts",
353
+ "run:nes:terminal": "tsx examples/nes-terminal.ts",
354
+ "example:nes:smoke": "VT_SMOKE=1 tsx examples/nes-terminal.ts",
355
+ "check:nes:rom": "tsx examples/nes/check-rom.ts",
356
+ "check:nes:input": "tsx examples/nes/input-flip-check.ts",
357
+ "check:nes:share": "tsx examples/nes/share-check.ts",
358
+ "check:nes:share-browser": "tsx examples/nes/share-browser-check.ts",
349
359
  "test:3d:bun": "bun scripts/smoke-bun-3d.ts",
350
360
  "run:image-showcase:terminal": "tsx examples/image-showcase.ts",
351
361
  "run:katex-showcase:terminal": "tsx examples/katex-showcase.ts",
352
362
  "run:mermaid-image-showcase:terminal": "tsx examples/mermaid-image-showcase.ts",
363
+ "run:mermaid-adaptive-showcase:terminal": "tsx examples/mermaid-adaptive-showcase.ts",
353
364
  "trace:terminal-resize": "node scripts/trace-terminal-resize.mjs",
354
365
  "test:component-terminal:smoke": "VT_SMOKE=1 tsx scripts/run-component-terminal.ts --all",
355
366
  "e2e:component-terminal-charts": "tsx scripts/run-component-terminal.ts --capture-charts",
@@ -412,6 +423,7 @@
412
423
  "bench:baseline:timing": "BENCH_TIMING=1 tsx scripts/check-bench-baselines.ts",
413
424
  "bench:phase2": "tsx scripts/bench-phase2.ts",
414
425
  "bench:scroll-mailbox": "tsx scripts/bench-scroll-mailbox.ts",
426
+ "bench:markdown-graphics": "tsx scripts/bench-markdown-graphics.ts",
415
427
  "bench:stdout-column-diff": "tsx scripts/bench-stdout-column-diff.ts",
416
428
  "unicode:eaw:generate": "tsx scripts/generate-eaw-ranges.ts",
417
429
  "unicode:eaw:check": "tsx scripts/generate-eaw-ranges.ts && git diff --exit-code -- src/core/buffer/eaw-ranges-unicode-17.ts",