specatlas 0.1.17 → 0.1.18
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/dist/bin.js +15 -2
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -8824,7 +8824,16 @@ function renderMarkdown(markdown2, opts = {}) {
|
|
|
8824
8824
|
const source = code.join("\n");
|
|
8825
8825
|
if (lang === "mermaid") {
|
|
8826
8826
|
if (mermaidMode === "script" && opts.mermaidScriptUri) {
|
|
8827
|
-
out.push(`<div class="mermaid-block"
|
|
8827
|
+
out.push(`<div class="mermaid-block">
|
|
8828
|
+
<div class="diagram-tools" role="toolbar" aria-label="Herramientas del diagrama">
|
|
8829
|
+
<button type="button" data-diagram-zoom="out" title="Alejar" aria-label="Alejar">\u2212</button>
|
|
8830
|
+
<button type="button" data-diagram-zoom="in" title="Acercar" aria-label="Acercar">\uFF0B</button>
|
|
8831
|
+
<button type="button" data-diagram-zoom="reset" title="Tama\xF1o original" aria-label="Tama\xF1o original">100%</button>
|
|
8832
|
+
<button type="button" data-diagram-fullscreen title="Pantalla completa (Esc para salir)" aria-label="Pantalla completa">\u26F6</button>
|
|
8833
|
+
<button type="button" data-diagram-download title="Descargar SVG" aria-label="Descargar SVG">\u2913</button>
|
|
8834
|
+
</div>
|
|
8835
|
+
<div class="diagram-canvas"><pre class="mermaid">${escapeHtml(source)}</pre></div>
|
|
8836
|
+
</div>`);
|
|
8828
8837
|
} else {
|
|
8829
8838
|
out.push(
|
|
8830
8839
|
`<div class="mermaid-block callout"><pre class="mermaid">${escapeHtml(source)}</pre><p><small>Diagrama mermaid \u2014 visible con la vista previa de Markdown del editor.</small></p></div>`
|
|
@@ -8928,8 +8937,12 @@ function renderMarkdown(markdown2, opts = {}) {
|
|
|
8928
8937
|
rows.push(splitRow(lines[i] ?? ""));
|
|
8929
8938
|
i += 1;
|
|
8930
8939
|
}
|
|
8940
|
+
const width = Math.max(header.length, ...rows.map((row) => row.length));
|
|
8941
|
+
const pad = (cells) => [...cells, ...Array.from({ length: Math.max(0, width - cells.length) }, () => "")];
|
|
8942
|
+
const paddedHeader = pad(header);
|
|
8943
|
+
const paddedRows = rows.map((row) => pad(row));
|
|
8931
8944
|
out.push(
|
|
8932
|
-
`<table><thead><tr>${
|
|
8945
|
+
`<div class="table-wrap"><table><thead><tr>${paddedHeader.map((cell) => `<th>${inlineMarkdown(cell)}</th>`).join("")}</tr></thead><tbody>${paddedRows.map((row) => `<tr>${row.map((cell) => `<td>${inlineMarkdown(cell)}</td>`).join("")}</tr>`).join("")}</tbody></table></div>`
|
|
8933
8946
|
);
|
|
8934
8947
|
continue;
|
|
8935
8948
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "specatlas",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "SpecAtlas: kernel determinista de Spec-Driven Development (CLI)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@specatlas/adapters": "0.1.1",
|
|
43
|
-
"@specatlas/core": "0.1.
|
|
43
|
+
"@specatlas/core": "0.1.15"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"typecheck": "tsc --noEmit",
|