yuhwa 1.5.2 → 1.5.3

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/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 { B as SHAPES, F as NODE_PROPS, G as THEME_KEYS, H as esc, J as isSafeCss, K as THEME_NAMES, L as PANEL_PROPS, M as EDGE_PROPS, N as ENUMS, P as GROUP_PROPS, S as SETTING_VALUES, T as joinPath, _ 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, j as COLORS, k as unquote, l as render$1, m as pageBlocks, p as isMarkdown, q as TONES, s as tidy, t as VERSION, u as toSource, v as optionKind, w as isYuhwaPath, y as registry } from "./shared-DJCDEbFf.js";
3
+ import { B as SHAPES, F as NODE_PROPS, G as THEME_KEYS, H as esc, J as isSafeCss, K as THEME_NAMES, L as PANEL_PROPS, M as EDGE_PROPS, N as ENUMS, P as GROUP_PROPS, S as SETTING_VALUES, T as joinPath, _ 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, j as COLORS, k as unquote, l as render$1, m as pageBlocks, p as isMarkdown, q as TONES, s as tidy, t as VERSION, u as toSource, v as optionKind, w as isYuhwaPath, y as registry } from "./shared-C_AaGkhz.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";
package/dist/lsp-node.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from "node:module";
3
- import { A as BOOLS, B as SHAPES, C as blockBraces, D as parse, E as lex, F as NODE_PROPS, G as THEME_KEYS, I as NUMBERS, L as PANEL_PROPS, M as EDGE_PROPS, N as ENUMS, O as serializeProps, P as GROUP_PROPS, R as PANEL_PROP_HELP, S as SETTING_VALUES, T as joinPath, U as parseSpanStyle, V as SPAN_KEYS, W as spanKey, X as table, Y as themeNames, a as formatPage, b as KNOWN_SETTINGS, c as diskResolve, i as format, j as COLORS, n as applyChange, o as onTypeEdits, p as isMarkdown, q as TONES, r as diffEdits, s as tidy, t as VERSION, v as optionKind, x as PANELS, z as PLACEMENT_PROPS } from "./shared-DJCDEbFf.js";
3
+ import { A as BOOLS, B as SHAPES, C as blockBraces, D as parse, E as lex, F as NODE_PROPS, G as THEME_KEYS, I as NUMBERS, L as PANEL_PROPS, M as EDGE_PROPS, N as ENUMS, O as serializeProps, P as GROUP_PROPS, R as PANEL_PROP_HELP, S as SETTING_VALUES, T as joinPath, U as parseSpanStyle, V as SPAN_KEYS, W as spanKey, X as table, Y as themeNames, a as formatPage, b as KNOWN_SETTINGS, c as diskResolve, i as format, j as COLORS, n as applyChange, o as onTypeEdits, p as isMarkdown, q as TONES, r as diffEdits, s as tidy, t as VERSION, v as optionKind, x as PANELS, z as PLACEMENT_PROPS } from "./shared-C_AaGkhz.js";
4
4
  import { fileURLToPath, pathToFileURL } from "node:url";
5
5
  // \0rolldown/runtime.js
6
6
  var __defProp = Object.defineProperty;
@@ -10,7 +10,7 @@
10
10
  * ```yuhwa file="diagrams/arch.yu" renders that file instead of the block.
11
11
  */
12
12
  import { t as YuhwaDocsOptions } from "./figure-BtRpJvZ9.js";
13
- type Rule = (tokens: any[], idx: number, options: any, env: any, self: any) => string;
13
+ type Rule = (tokens: any[], idx: number, options: any, env: any, self: any) => string | Promise<string>;
14
14
  interface MarkdownIt {
15
15
  renderer: {
16
16
  rules: {
@@ -14135,5 +14135,5 @@ function onTypeEdits(text, pos, ch) {
14135
14135
  }
14136
14136
  // src/version.ts
14137
14137
  /** the package version, inlined by the build */
14138
- const VERSION = "1.5.2";
14138
+ const VERSION = "1.5.3";
14139
14139
  export { BOOLS as A, SHAPES$2 as B, blockBraces as C, parse as D, lex as E, NODE_PROPS as F, THEME_KEYS as G, esc as H, NUMBERS as I, isSafeCss as J, THEME_NAMES as K, PANEL_PROPS as L, EDGE_PROPS as M, ENUMS as N, serializeProps as O, GROUP_PROPS as P, PANEL_PROP_HELP as R, SETTING_VALUES as S, joinPath$1 as T, parseSpanStyle as U, SPAN_KEYS as V, spanKey as W, table as X, themeNames as Y, canvasMeasure as _, formatPage as a, KNOWN_SETTINGS as b, diskResolve as c, MD_LANGUAGES as d, findBlocks as f, replaceBlockSource as g, processMarkdown as h, format as i, COLORS as j, unquote as k, render as l, pageBlocks as m, applyChange as n, onTypeEdits as o, isMarkdown as p, TONES as q, diffEdits as r, tidy as s, VERSION as t, toSource as u, optionKind as v, isYuhwaPath as w, PANELS as x, registry as y, PLACEMENT_PROPS as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuhwa",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "Beautiful, hand-tunable text diagrams for Markdown and docs. A friendlier alternative to Mermaid.",
5
5
  "keywords": [
6
6
  "architecture",