yuhwa 1.6.0 → 1.6.1

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/astro.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import remarkYuhwa from "./remark.js";
2
2
  import satteriYuhwa from "./satteri.js";
3
- import { n as onTrack, o as clientImports, r as pagesUsing } from "./node-MjVxKTHg.js";
3
+ import { n as onTrack, o as clientImports, r as pagesUsing } from "./node-MjEWjzvE.js";
4
4
  // src/integrations/astro.ts
5
5
  /**
6
6
  * Astro integration, also for Starlight: renders ```yuhwa blocks in .md and
package/dist/browser.js CHANGED
@@ -1,8 +1,8 @@
1
- import { A as kanban, B as frames, C as isMermaid, D as layout, E as GRID, F as chart, G as shapes, H as charts, I as timeline, L as sequence, M as gantt, N as mindmap, O as builtins, P as git, R as legend, S as fromMermaid, T as renderSvg, U as themes, V as tables, W as markers, _ as setPartTone, a as MD_LANGUAGES, b as writeLayout, d as addEdge, f as addNode, g as setLabel, h as removeElement, i as GUIDE, j as quadrant, k as treeview, l as processMarkdown, m as formatLayout, n as render$1, o as findBlocks, p as editPart, r as toSource, t as hash, u as replaceBlockSource, v as setProp, w as fromJSON, x as writePanelDrag, y as setSetting, z as footer } from "./src-WJP0qnZY.js";
2
- import { a as perPass, c as unuse, i as optionKind, l as use, n as approxMeasure, o as recolor, r as canvasMeasure, s as registry } from "./plugin-Dckiw3N9.js";
1
+ import { A as kanban, B as frames, C as isMermaid, D as layout, E as GRID, F as chart, G as shapes, H as charts, I as timeline, L as sequence, M as gantt, N as mindmap, O as builtins, P as git, R as legend, S as fromMermaid, T as renderSvg, U as themes, V as tables, W as markers, _ as setPartTone, a as MD_LANGUAGES, b as writeLayout, d as addEdge, f as addNode, g as setLabel, h as removeElement, i as GUIDE, j as quadrant, k as treeview, l as processMarkdown, m as formatLayout, n as render$1, o as findBlocks, p as editPart, r as toSource, t as hash, u as replaceBlockSource, v as setProp, w as fromJSON, x as writePanelDrag, y as setSetting, z as footer } from "./src-H9qazt2P.js";
2
+ import { a as perPass, c as unuse, i as optionKind, l as use, n as approxMeasure, o as recolor, r as canvasMeasure, s as registry } from "./plugin-BvUxNMpW.js";
3
3
  import { n as zoomable, t as zoomHeight } from "./zoom-D3Lahr1T.js";
4
- import { a as svgFamilies, c as swapForRaster, n as embedFonts, r as loadFonts, s as svgToCanvas } from "./raster-Dz9_MPsh.js";
5
- import { $t as fontStack, A as PANEL_PROP_HELP, At as renderSegs, Bt as tspans, C as COLORS, D as NODE_PROPS, Dt as parseInline, E as GROUP_PROPS, F as SHAPES, Gt as THEMES, J as renderHead, Jt as TONES, Kt as THEME_KEYS, M as lint, Nt as segsW, O as NUMBERS, Q as ALIGN_SIDES, Qt as fontFamilies, R as portOn, S as BOOLS, T as ENUMS, Ut as RAMPS, Xt as createTheme, an as isToneOrHex, b as splitTrailingProps, c as isYuhwaPath, ct as groupPath, d as onlyColor, en as getTheme, f as parse, g as serializeProps, i as SETTING_VALUES, in as isSafeLink, k as PANEL_PROPS, l as joinPath, ln as themeNames, lt as groupProp, n as PANELS, nn as isGenericFont, nt as dashFor, on as ramp, p as parseProps, qt as THEME_NAMES, r as SETTING_HELP, rn as isSafeCss, s as blockBraces, sn as registerTheme, t as KNOWN_SETTINGS, u as lex, ut as lineStyle, v as setLineProp, w as EDGE_PROPS, x as unquote, xt as esc, y as setTrailingProp } from "./parse-BT2Xuqty.js";
4
+ import { a as svgFamilies, c as swapForRaster, n as embedFonts, r as loadFonts, s as svgToCanvas } from "./raster-B_C620-4.js";
5
+ import { $t as fontStack, A as PANEL_PROP_HELP, At as renderSegs, Bt as tspans, C as COLORS, D as NODE_PROPS, Dt as parseInline, E as GROUP_PROPS, F as SHAPES, Gt as THEMES, J as renderHead, Jt as TONES, Kt as THEME_KEYS, M as lint, Nt as segsW, O as NUMBERS, Q as ALIGN_SIDES, Qt as fontFamilies, R as portOn, S as BOOLS, T as ENUMS, Ut as RAMPS, Xt as createTheme, an as isToneOrHex, b as splitTrailingProps, c as isYuhwaPath, ct as groupPath, d as onlyColor, en as getTheme, f as parse, g as serializeProps, i as SETTING_VALUES, in as isSafeLink, k as PANEL_PROPS, l as joinPath, ln as themeNames, lt as groupProp, n as PANELS, nn as isGenericFont, nt as dashFor, on as ramp, p as parseProps, qt as THEME_NAMES, r as SETTING_HELP, rn as isSafeCss, s as blockBraces, sn as registerTheme, t as KNOWN_SETTINGS, u as lex, ut as lineStyle, v as setLineProp, w as EDGE_PROPS, x as unquote, xt as esc, y as setTrailingProp } from "./parse-BBETEHLI.js";
6
6
  // src/browser.ts
7
7
  /**
8
8
  * Drop-in browser runtime: <script src="yuhwa.js"><\/script>
package/dist/canvas.js CHANGED
@@ -17,7 +17,7 @@ function installCanvas() {
17
17
  const swap = async (img) => {
18
18
  const svg = svgFromDataUri(img.getAttribute("src") ?? "");
19
19
  if (svg === void 0) return;
20
- const { swapForRaster } = await import("./raster-Dz9_MPsh.js").then((n) => n.i);
20
+ const { swapForRaster } = await import("./raster-B_C620-4.js").then((n) => n.i);
21
21
  const canvas = await swapForRaster(img, svg, "canvas", img.alt);
22
22
  if (canvas) canvas.className = img.className;
23
23
  };
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { existsSync, mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
3
- import { A as unquote, C as SETTING_VALUES, E as joinPath, F as GROUP_PROPS, I as NODE_PROPS, K as esc, M as COLORS, N as EDGE_PROPS, P as ENUMS, Q as isSafeCss, R as PANEL_PROPS, T as isYuhwaPath, U as ALIGN_SIDES_HINT, V as SHAPES, X as THEME_NAMES, Y as THEME_KEYS, Z as TONES, _ as canvasMeasure, a as formatPage, b as KNOWN_SETTINGS, c as diskResolve, d as MD_LANGUAGES, f as findBlocks, g as replaceBlockSource, h as processMarkdown, i as format, l as render$1, m as pageBlocks, p as isMarkdown, s as tidy, t as VERSION, u as toSource, v as optionKind, y as registry } from "./shared-BuNGLF8_.js";
3
+ import { A as unquote, C as SETTING_VALUES, E as joinPath, F as GROUP_PROPS, I as NODE_PROPS, K as esc, M as COLORS, N as EDGE_PROPS, P as ENUMS, Q as isSafeCss, R as PANEL_PROPS, T as isYuhwaPath, U as ALIGN_SIDES_HINT, V as SHAPES, X as THEME_NAMES, Y as THEME_KEYS, Z as TONES, _ as canvasMeasure, a as formatPage, b as KNOWN_SETTINGS, c as diskResolve, d as MD_LANGUAGES, f as findBlocks, g as replaceBlockSource, h as processMarkdown, i as format, l as render$1, m as pageBlocks, p as isMarkdown, s as tidy, t as VERSION, u as toSource, v as optionKind, y as registry } from "./shared-Dz7tyOXD.js";
4
4
  import { createServer } from "node:http";
5
5
  import { basename, dirname, extname, join, resolve, sep } from "node:path";
6
6
  import { fileURLToPath } from "node:url";