@treasure-ai/treasure-deck 2026.10.8 → 2026.10.9
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/package.json +2 -2
- package/runtime/runtime.js +4 -1
- package/vendor/mermaid/mermaid.min.js +2032 -1338
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@treasure-ai/treasure-deck",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.9",
|
|
4
4
|
"description": "Markdown presentations without <div> markup: four layouts, themes, and a single-file HTML output that publishes to Apps Script",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"homepage": "https://www.npmjs.com/package/@treasure-ai/treasure-deck",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/node": "^26.6.4",
|
|
64
64
|
"lucide-static": "^1.52.0",
|
|
65
|
-
"mermaid": "^
|
|
65
|
+
"mermaid": "^12.2.0",
|
|
66
66
|
"tsx": "^4.23.15",
|
|
67
67
|
"typescript": "^7.0.2",
|
|
68
68
|
"vitest": "^5.0.3"
|
package/runtime/runtime.js
CHANGED
|
@@ -422,9 +422,12 @@
|
|
|
422
422
|
var font = cs.getPropertyValue('--deck-font-body') || 'sans-serif';
|
|
423
423
|
mermaid.initialize({
|
|
424
424
|
startOnLoad: false, theme: 'base', securityLevel: 'strict', fontFamily: font,
|
|
425
|
+
// Mermaid 12 defaults to a new layout and look, and wraps labels narrower; keep the dagre layout and classic shapes
|
|
426
|
+
// the styling below targets (and wrappingWidth below keeps short labels on one line).
|
|
427
|
+
layout: 'dagre', look: 'classic',
|
|
425
428
|
// SVG text labels: HTML labels would inherit slide typography and break Mermaid's text measurement.
|
|
426
429
|
htmlLabels: false,
|
|
427
|
-
flowchart: { htmlLabels: false, curve: 'basis', nodeSpacing: 36, rankSpacing: 44, padding: 18 },
|
|
430
|
+
flowchart: { htmlLabels: false, curve: 'basis', nodeSpacing: 36, rankSpacing: 44, padding: 18, wrappingWidth: 400 },
|
|
428
431
|
// Mermaid writes font-weight="normal" on the inner tspan, so bold must target the tspan itself.
|
|
429
432
|
themeCSS: '.node tspan, .node text, .actor tspan, text.actor { font-weight: 700; }' +
|
|
430
433
|
'.node rect, .node polygon, .node circle, .node ellipse { stroke-width: 1.6px; }' +
|