yuhwa 1.2.0 → 1.3.0

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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as YuhwaDocsOptions } from "./figure-CA2hy0xh.js";
1
+ import { t as YuhwaDocsOptions } from "./figure-QAwSU1Ry.js";
2
2
  interface SetupParams {
3
3
  updateConfig: (config: {
4
4
  markdown: {
package/dist/browser.d.ts CHANGED
@@ -9,7 +9,8 @@
9
9
  * <yuhwa-diagram src="big.yu" zoom="480px"></yuhwa-diagram> // pan and zoom
10
10
  * el.source = 'a -> b' // re-renders
11
11
  */
12
- import { $ as LexedLine, $t as FrameKind, A as isMermaid, An as ThemeInput, At as LaidPanel, B as setPartTone, Bn as canvasMeasure, Bt as PartChange, C as GROUP_PROPS, Cn as LineStyle, Ct as EdgeOverride, D as lint, Dn as THEME_NAMES, Dt as LaidEdge, E as PANEL_PROPS, En as THEME_KEYS, Et as LabelRef, F as processMarkdown, Fn as isToneOrHex, Ft as PanelDecl, G as dashFor, Gt as ResolvedNodeStyle, H as setSetting, Ht as Point, I as replaceBlockSource, In as ramp, It as PanelHandle, J as DiagramJSON, Jt as SourceRef, K as lineStyle, Kt as ShapeName, L as editPart, Ln as registerTheme, Lt as PanelOverride, M as MdOptions, Mn as getTheme, Mt as LayoutOverrides, N as MdResult, Nn as isSafeCss, Nt as NodeDecl, O as ConvertResult, On as TONES, Ot as LaidGroup, P as findBlocks, Pn as isSafeLink, Pt as NodeOverride, Q as KNOWN_SETTINGS, Qt as Decoration, R as formatLayout, Rn as themeNames, Rt as PanelPart, S as ENUMS, Sn as tspans, St as EdgeDecl, T as NUMBERS, Tn as THEMES, Tt as HeadKind, U as writeLayout, Ut as Props, V as setProp, Vt as PartEdit, W as writePanelDrag, Wt as ResolvedEdgeStyle, X as fromJSON, Xt as groupPath, Y as JsonResult, Yt as GRID, Z as renderSvg, Zt as layout, _ as themes, _n as InkColors, _t as Component, an as RowPaint, at as blockBraces, b as COLORS, bn as renderSegs, bt as Diagram, c as git, cn as optionKind, ct as lex, d as sequence, dn as registry, dt as parseProps, en as PanelCtx, et as PANELS, f as legend, fn as unuse, ft as serializeProps, g as charts, gn as renderHead, gt as Box, h as tables, hn as ShapeKind, ht as splitTrailingProps, i as hash, in as RowKind, it as TokKind, j as MdBlock, jn as createTheme, jt as Layout, k as fromMermaid, kn as Theme, kt as LaidNode, l as chart, ln as perPass, lt as onlyColor, m as frames, mn as MarkerKind, mt as setTrailingProp, n as Options, nn as PanelOption, nt as SETTING_VALUES, o as toSource, on as StatementKind, ot as isYuhwaPath, p as footer, pn as use, pt as setLineProp, q as SHAPES, qt as Side, r as Result, rn as RowCtx, rt as Tok, s as builtins, sn as YuhwaPlugin, st as joinPath, t as InputFormat, tn as PanelKind, tt as ParseOptions, u as timeline, un as recolor, ut as parse, v as GUIDE, vn as Seg, vt as Curve, w as NODE_PROPS, wn as RAMPS, wt as GroupDecl, x as EDGE_PROPS, xn as segsW, xt as Direction, y as BOOLS, yn as parseInline, yt as Diagnostic, z as setLabel, zn as approxMeasure, zt as PartAction } from "./index-CnnoZYl0.js";
12
+ import { $ as PanelDecl, A as setLineProp, At as registry, B as EdgeDecl, C as isYuhwaPath, Ct as RowKind, D as parse, Dt as optionKind, E as onlyColor, Et as YuhwaPlugin, F as Component, Ft as renderHead, G as LaidEdge, Gt as segsW, H as GroupDecl, Ht as parseInline, I as Curve, It as InkColors, J as LaidPanel, Jt as tspans, K as LaidGroup, L as Diagnostic, Lt as Seg, M as splitTrailingProps, Mt as use, Nt as MarkerKind, O as parseProps, Ot as perPass, P as Box, Pt as ShapeKind, Q as NodeOverride, Qt as RAMPS, R as Diagram, Rt as esc, S as blockBraces, St as RowCtx, T as lex, Tt as StatementKind, U as HeadKind, V as EdgeOverride, W as LabelRef, Wt as renderSegs, X as LayoutOverrides, Xt as LineStyle, Y as Layout, Z as NodeDecl, _ as PANELS, _n as themeNames, _t as Decoration, an as ThemeInput, at as PartEdit, b as Tok, bn as canvasMeasure, bt as PanelKind, ct as ResolvedEdgeStyle, dn as isSafeCss, dt as Side, en as THEMES, et as PanelHandle, f as portOn, fn as isSafeLink, ft as SourceRef, g as LexedLine, gt as layout, h as KNOWN_SETTINGS, hn as registerTheme, ht as groupPath, in as Theme, it as PartChange, j as setTrailingProp, jt as unuse, k as serializeProps, kt as recolor, ln as getTheme, lt as ResolvedNodeStyle, mn as ramp, nn as THEME_NAMES, nt as PanelPart, o as lineStyle, ot as Point, pn as isToneOrHex, pt as GRID, q as LaidNode, r as dashFor, rn as TONES, rt as PartAction, sn as createTheme, st as Props, tn as THEME_KEYS, tt as PanelOverride, u as SHAPES, ut as ShapeName, v as ParseOptions, vt as FrameKind, w as joinPath, wt as RowPaint, x as TokKind, xt as PanelOption, y as SETTING_VALUES, yn as approxMeasure, yt as PanelCtx, z as Direction } from "./plugin-NSkNyoUj.js";
13
+ import { $ as JsonResult, A as GROUP_PROPS, B as MdResult, C as markers, D as COLORS, E as BOOLS, F as ConvertResult, G as formatLayout, H as processMarkdown, I as fromMermaid, J as setProp, K as setLabel, L as isMermaid, M as NUMBERS, N as PANEL_PROPS, O as EDGE_PROPS, P as lint, Q as DiagramJSON, R as MdBlock, S as themes, T as GUIDE, U as replaceBlockSource, V as findBlocks, W as editPart, X as writeLayout, Y as setSetting, Z as writePanelDrag, _ as legend, b as tables, c as treeview, d as gantt, et as fromJSON, f as mindmap, g as sequence, h as timeline, i as hash, j as NODE_PROPS, k as ENUMS, l as kanban, m as chart, n as Options, o as toSource, p as git, q as setPartTone, r as Result, s as builtins, t as InputFormat, tt as renderSvg, u as quadrant, v as footer, w as shapes, x as charts, y as frames, z as MdOptions } from "./index-6ZPJGThY.js";
13
14
  import { i as zoomable, n as Zoomer, r as zoomHeight, t as ZoomOptions } from "./zoom-CCSUbX1X.js";
14
15
  export declare function render(source: string, opts?: Options): Result;
15
16
  /**
@@ -34,4 +35,4 @@ export declare class YuhwaDiagram extends Base {
34
35
  connectedCallback(): void;
35
36
  attributeChangedCallback(): void;
36
37
  }
37
- export { BOOLS, type Box, COLORS, type Component, type ConvertResult, type Curve, type Decoration, type Diagnostic, type Diagram, type DiagramJSON, type Direction, EDGE_PROPS, ENUMS, type EdgeDecl, type EdgeOverride, type FrameKind, GRID, GROUP_PROPS, GUIDE, type GroupDecl, type HeadKind, type InkColors, InputFormat, type JsonResult, KNOWN_SETTINGS, type LabelRef, type LaidEdge, type LaidGroup, type LaidNode, type LaidPanel, type Layout, type LayoutOverrides, type LexedLine, type LineStyle, type MarkerKind, type MdBlock, type MdOptions, type MdResult, NODE_PROPS, NUMBERS, type NodeDecl, type NodeOverride, Options, PANELS, PANEL_PROPS, type PanelCtx, type PanelDecl, type PanelHandle, type PanelKind, type PanelOption, type PanelOverride, type PanelPart, type ParseOptions, type PartAction, type PartChange, type PartEdit, type Point, type Props, RAMPS, type ResolvedEdgeStyle, type ResolvedNodeStyle, Result, type RowCtx, type RowKind, type RowPaint, SETTING_VALUES, SHAPES, type Seg, type ShapeKind, type ShapeName, type Side, type SourceRef, type StatementKind, THEMES, THEME_KEYS, THEME_NAMES, TONES, type Theme, type ThemeInput, type Tok, type TokKind, type YuhwaPlugin, type ZoomOptions, type Zoomer, approxMeasure, blockBraces, builtins, canvasMeasure, chart, charts, createTheme, dashFor, editPart, findBlocks, footer, formatLayout, frames, fromJSON, fromMermaid, getTheme, git, groupPath, hash, isMermaid, isSafeCss, isSafeLink, isToneOrHex, isYuhwaPath, joinPath, layout, legend, lex, lineStyle, lint, onlyColor, optionKind, parse, parseInline, parseProps, perPass, processMarkdown, ramp, recolor, registerTheme, registry, renderHead, renderSegs, renderSvg, replaceBlockSource, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, splitTrailingProps, tables, themeNames, themes, timeline, toSource, tspans, unuse, use, writeLayout, writePanelDrag, zoomHeight, zoomable };
38
+ export { BOOLS, type Box, COLORS, type Component, type ConvertResult, type Curve, type Decoration, type Diagnostic, type Diagram, type DiagramJSON, type Direction, EDGE_PROPS, ENUMS, type EdgeDecl, type EdgeOverride, type FrameKind, GRID, GROUP_PROPS, GUIDE, type GroupDecl, type HeadKind, type InkColors, InputFormat, type JsonResult, KNOWN_SETTINGS, type LabelRef, type LaidEdge, type LaidGroup, type LaidNode, type LaidPanel, type Layout, type LayoutOverrides, type LexedLine, type LineStyle, type MarkerKind, type MdBlock, type MdOptions, type MdResult, NODE_PROPS, NUMBERS, type NodeDecl, type NodeOverride, Options, PANELS, PANEL_PROPS, type PanelCtx, type PanelDecl, type PanelHandle, type PanelKind, type PanelOption, type PanelOverride, type PanelPart, type ParseOptions, type PartAction, type PartChange, type PartEdit, type Point, type Props, RAMPS, type ResolvedEdgeStyle, type ResolvedNodeStyle, Result, type RowCtx, type RowKind, type RowPaint, SETTING_VALUES, SHAPES, type Seg, type ShapeKind, type ShapeName, type Side, type SourceRef, type StatementKind, THEMES, THEME_KEYS, THEME_NAMES, TONES, type Theme, type ThemeInput, type Tok, type TokKind, type YuhwaPlugin, type ZoomOptions, type Zoomer, approxMeasure, blockBraces, builtins, canvasMeasure, chart, charts, createTheme, dashFor, editPart, esc, findBlocks, footer, formatLayout, frames, fromJSON, fromMermaid, gantt, getTheme, git, groupPath, hash, isMermaid, isSafeCss, isSafeLink, isToneOrHex, isYuhwaPath, joinPath, kanban, layout, legend, lex, lineStyle, lint, markers, mindmap, onlyColor, optionKind, parse, parseInline, parseProps, perPass, portOn, processMarkdown, quadrant, ramp, recolor, registerTheme, registry, renderHead, renderSegs, renderSvg, replaceBlockSource, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, shapes, splitTrailingProps, tables, themeNames, themes, timeline, toSource, treeview, tspans, unuse, use, writeLayout, writePanelDrag, zoomHeight, zoomable };
package/dist/browser.js CHANGED
@@ -1,4 +1,5 @@
1
- import { $ as setLineProp, A as approxMeasure, At as isSafeCss, B as unuse, C as builtins, Ct as RAMPS, D as sequence, Dt as TONES, E as timeline, Et as THEME_NAMES, F as themes, Ft as themeNames, G as blockBraces, H as KNOWN_SETTINGS, I as optionKind, J as lex, K as isYuhwaPath, L as perPass, M as frames, Mt as isToneOrHex, N as tables, Nt as ramp, O as legend, Ot as createTheme, P as charts, Pt as registerTheme, Q as serializeProps, R as recolor, S as layout, St as tspans, T as chart, Tt as THEME_KEYS, U as PANELS, V as use, W as SETTING_VALUES, X as parse, Y as onlyColor, Z as parseProps, _ as isMermaid, _t as parseInline, a as findBlocks, at as ENUMS, b as GRID, bt as segsW, c as editPart, ct as NUMBERS, d as setPartTone, dt as lint, et as setTrailingProp, f as setProp, ft as SHAPES, g as fromMermaid, h as writePanelDrag, ht as lineStyle, i as GUIDE, it as EDGE_PROPS, j as canvasMeasure, jt as isSafeLink, k as footer, kt as getTheme, l as formatLayout, lt as PANEL_PROPS, m as writeLayout, mt as dashFor, n as render$1, nt as BOOLS, o as processMarkdown, ot as GROUP_PROPS, p as setSetting, pt as renderHead, q as joinPath, r as toSource, rt as COLORS, s as replaceBlockSource, st as NODE_PROPS, t as hash, tt as splitTrailingProps, u as setLabel, v as fromJSON, w as git, wt as THEMES, x as groupPath, y as renderSvg, yt as renderSegs, z as registry } from "./src-DkQj7aIV.js";
1
+ import { A as chart, B as shapes, C as builtins, D as gantt, E as quadrant, F as frames, I as tables, L as charts, M as sequence, N as legend, O as mindmap, P as footer, R as themes, S as layout, T as kanban, _ as isMermaid, a as findBlocks, b as GRID, c as editPart, d as setPartTone, f as setProp, g as fromMermaid, h as writePanelDrag, i as GUIDE, j as timeline, k as git, l as formatLayout, m as writeLayout, n as render$1, o as processMarkdown, p as setSetting, r as toSource, s as replaceBlockSource, t as hash, u as setLabel, v as fromJSON, w as treeview, x as groupPath, y as renderSvg, z as markers } from "./src-BjOhvTAB.js";
2
+ import { A as ENUMS, At as tspans, Bt as createTheme, C as setLineProp, Ct as segsW, D as BOOLS, Ft as THEMES, Gt as isSafeCss, I as lint, It as THEME_KEYS, Jt as ramp, Kt as isSafeLink, Lt as THEME_NAMES, M as NODE_PROPS, N as NUMBERS, Nt as RAMPS, O as COLORS, P as PANEL_PROPS, Rt as TONES, S as serializeProps, T as splitTrailingProps, Ut as getTheme, V as portOn, Y as renderHead, Yt as registerTheme, Z as dashFor, Zt as themeNames, _ as onlyColor, _t as parseInline, a as perPass, bt as renderSegs, c as unuse, d as PANELS, f as SETTING_VALUES, ft as esc, g as lex, h as joinPath, i as optionKind, j as GROUP_PROPS, k as EDGE_PROPS, l as use, m as isYuhwaPath, n as approxMeasure, o as recolor, p as blockBraces, qt as isToneOrHex, r as canvasMeasure, s as registry, tt as lineStyle, u as KNOWN_SETTINGS, v as parse, w as setTrailingProp, y as parseProps, z as SHAPES } from "./plugin-Bs4eiAuz.js";
2
3
  import { n as zoomable, t as zoomHeight } from "./zoom-QeqB6QlH.js";
3
4
  // src/browser.ts
4
5
  /**
@@ -184,4 +185,4 @@ if (typeof document !== "undefined") {
184
185
  else run();
185
186
  }
186
187
  }
187
- export { BOOLS, COLORS, EDGE_PROPS, ENUMS, GRID, GROUP_PROPS, GUIDE, KNOWN_SETTINGS, NODE_PROPS, NUMBERS, PANELS, PANEL_PROPS, RAMPS, SETTING_VALUES, SHAPES, THEMES, THEME_KEYS, THEME_NAMES, TONES, YuhwaDiagram, approxMeasure, blockBraces, builtins, canvasMeasure, chart, charts, createTheme, dashFor, editPart, fetchImports, findBlocks, footer, formatLayout, frames, fromJSON, fromMermaid, getTheme, git, groupPath, hash, isMermaid, isSafeCss, isSafeLink, isToneOrHex, isYuhwaPath, joinPath, layout, legend, lex, lineStyle, lint, onlyColor, optionKind, parse, parseInline, parseProps, perPass, processMarkdown, ramp, recolor, registerTheme, registry, render, renderHead, renderSegs, renderSvg, replaceBlockSource, run, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, splitTrailingProps, tables, themeNames, themes, timeline, toSource, tspans, unuse, use, writeLayout, writePanelDrag, zoomHeight, zoomable };
188
+ export { BOOLS, COLORS, EDGE_PROPS, ENUMS, GRID, GROUP_PROPS, GUIDE, KNOWN_SETTINGS, NODE_PROPS, NUMBERS, PANELS, PANEL_PROPS, RAMPS, SETTING_VALUES, SHAPES, THEMES, THEME_KEYS, THEME_NAMES, TONES, YuhwaDiagram, approxMeasure, blockBraces, builtins, canvasMeasure, chart, charts, createTheme, dashFor, editPart, esc, fetchImports, findBlocks, footer, formatLayout, frames, fromJSON, fromMermaid, gantt, getTheme, git, groupPath, hash, isMermaid, isSafeCss, isSafeLink, isToneOrHex, isYuhwaPath, joinPath, kanban, layout, legend, lex, lineStyle, lint, markers, mindmap, onlyColor, optionKind, parse, parseInline, parseProps, perPass, portOn, processMarkdown, quadrant, ramp, recolor, registerTheme, registry, render, renderHead, renderSegs, renderSvg, replaceBlockSource, run, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, shapes, splitTrailingProps, tables, themeNames, themes, timeline, toSource, treeview, tspans, unuse, use, writeLayout, writePanelDrag, zoomHeight, zoomable };
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 { C as COLORS, D as NODE_PROPS, E as GROUP_PROPS, I as THEME_KEYS, L as THEME_NAMES, N as esc, R as TONES, T as ENUMS, _ as isYuhwaPath, c as render$1, d as optionKind, f as registry, h as SETTING_VALUES, i as format, j as SHAPES, k as PANEL_PROPS, l as toSource, o as tidy, p as KNOWN_SETTINGS, s as diskResolve, t as VERSION, u as canvasMeasure, v as joinPath$1, w as EDGE_PROPS, z as isSafeCss } from "./shared-Ddw88O9D.js";
3
+ import { C as COLORS, D as NODE_PROPS, E as GROUP_PROPS, I as THEME_KEYS, L as THEME_NAMES, N as esc, R as TONES, T as ENUMS, _ as isYuhwaPath, c as render$1, d as optionKind, f as registry, h as SETTING_VALUES, i as format, j as SHAPES, k as PANEL_PROPS, l as toSource, o as tidy, p as KNOWN_SETTINGS, s as diskResolve, t as VERSION, u as canvasMeasure, v as joinPath$1, w as EDGE_PROPS, z as isSafeCss } from "./shared-6aCU_HaV.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";