yuhwa 1.0.0 → 1.0.2

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.
@@ -9,7 +9,7 @@
9
9
  rel="icon"
10
10
  href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%232563eb'/%3E%3Cstop offset='1' stop-color='%239333ea'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' rx='15' fill='url%28%23g%29'/%3E%3Crect x='9' y='11' width='26' height='17' rx='5' fill='%23fff'/%3E%3Cpath d='M15 17.5h10M15 22h14' stroke='%237c3aed' stroke-opacity='.35' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M18 28v5a11 11 0 0 0 11 11h1' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='m29 38 6 6-6 6' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Crect x='38' y='36' width='17' height='16' rx='5' fill='%23fff' fill-opacity='.9'/%3E%3C/svg%3E"
11
11
  />
12
- <script type="module" crossorigin src="./assets/index-Cnjd5PIx.js"></script>
12
+ <script type="module" crossorigin src="./assets/index-BQLsumas.js"></script>
13
13
  <link rel="stylesheet" crossorigin href="./assets/index-DaWl0OPj.css">
14
14
  </head>
15
15
  <body>
@@ -1,4 +1,4 @@
1
- import { n as Options } from "./index-vqADUsNi.js";
1
+ import { n as Options } from "./index-Dl845tUQ.js";
2
2
  interface YuhwaDocsOptions extends Omit<Options, "theme" | "file"> {
3
3
  /** theme for light mode (default `paper`) */
4
4
  theme?: string;
@@ -107,6 +107,19 @@ declare const themeNames: (custom?: Record<string, unknown>) => string[];
107
107
  declare function getTheme(name: string | undefined, custom?: Record<string, Record<string, string>>): Theme;
108
108
  /** @deprecated use `isColor` */
109
109
  declare const isToneOrHex: (v: string) => boolean;
110
+ /**
111
+ * True when a value can sit inside an SVG attribute or a style rule as is:
112
+ * any CSS colour or font list passes, quotes, angle brackets, `;`, braces,
113
+ * `&` and backslashes do not. Colours outside the palette go through this.
114
+ */
115
+ declare const isSafeCss: (v: string) => boolean;
116
+ /**
117
+ * True for a link a diagram may carry: http(s), mailto, an anchor or a
118
+ * relative path. Other schemes (`javascript:`, `data:`, …) run code when the
119
+ * SVG is inlined in a page. Browsers drop whitespace and control characters
120
+ * inside a scheme, so the check does too.
121
+ */
122
+ declare const isSafeLink: (v: string) => boolean;
110
123
  type SegKind = "text" | "bold" | "muted" | "strike" | "accent" | "chip" | "color";
111
124
  interface Seg {
112
125
  kind: SegKind;
@@ -277,7 +290,7 @@ interface PanelKind<P = any> {
277
290
  render(data: P, box: Box, ctx: PanelCtx): string;
278
291
  /**
279
292
  * Draggable points, in the same coordinates as `render`'s box. Editors show
280
- * them and write the drag into the layout block; the next `measure` and
293
+ * them and use layout offsets for previews and for purely visual edits. Both `measure` and
281
294
  * `render` get it back as `ctx.offsets[part]`.
282
295
  */
283
296
  handles?(data: P, box: Box, ctx: PanelCtx): PanelHandle[];
@@ -694,6 +707,8 @@ interface PanelHandle {
694
707
  * so it keeps meaning the same thing when the plugin turns its drawing.
695
708
  */
696
709
  axis?: "x" | "y" | "xy";
710
+ /** Rewrite existing body values from the final pixel offset, when the handle represents data. */
711
+ editPosition?(body: string[], offset: Point): string[] | null;
697
712
  /** tooltip, e.g. "move commit" */
698
713
  title?: string;
699
714
  }
@@ -961,6 +976,8 @@ declare function editPart(source: string, panelId: string, edit: PartEdit, d?: D
961
976
  source: string;
962
977
  id?: string;
963
978
  };
979
+ /** Finish a panel drag. Prefer the declaration; a purely visual handle uses layout. */
980
+ declare function writePanelDrag(source: string, d: Diagram, id: string, handle: PanelHandle): string;
964
981
  interface MdBlock {
965
982
  index: number;
966
983
  name: string;
@@ -1000,7 +1017,7 @@ interface MdResult {
1000
1017
  severity: string;
1001
1018
  }[];
1002
1019
  }
1003
- declare function findBlocks(md: string, baseName?: string): MdBlock[];
1020
+ declare function findBlocks(md: string, baseName?: string, outDir?: string): MdBlock[];
1004
1021
  declare function processMarkdown(md: string, opts?: MdOptions): MdResult;
1005
1022
  /** Replace the source of block `index` in a markdown document. */
1006
1023
  declare function replaceBlockSource(md: string, index: number, source: string): string;
@@ -1069,4 +1086,4 @@ declare function toSource(input: string | DiagramJSON): {
1069
1086
  };
1070
1087
  /** Parse, lay out and render a diagram to an SVG string. Never throws on bad input. */
1071
1088
  declare function render(input: string | DiagramJSON, opts?: Options): Result;
1072
- export { ParseOptions as $, PanelKind as $t, MdBlock as A, registerTheme as An, LayoutOverrides as At, setProp as B, Point as Bt, NODE_PROPS as C, TONES as Cn, HeadKind as Ct, ConvertResult as D, getTheme as Dn, LaidNode as Dt, lint as E, createTheme as En, LaidGroup as Et, replaceBlockSource as F, PanelOverride as Ft, SHAPES as G, Side as Gt, writeLayout as H, ResolvedEdgeStyle as Ht, editPart as I, PanelPart as It, fromJSON as J, groupPath as Jt, DiagramJSON as K, SourceRef as Kt, formatLayout as L, PartAction as Lt, MdResult as M, approxMeasure as Mn, NodeOverride as Mt, findBlocks as N, canvasMeasure as Nn, PanelDecl as Nt, fromMermaid as O, isToneOrHex as On, LaidPanel as Ot, processMarkdown as P, PanelHandle as Pt, PANELS as Q, PanelCtx as Qt, setLabel as R, PartChange as Rt, GROUP_PROPS as S, THEME_NAMES as Sn, GroupDecl as St, PANEL_PROPS as T, ThemeInput as Tn, LaidEdge as Tt, dashFor as U, ResolvedNodeStyle as Ut, setSetting as V, Props as Vt, lineStyle as W, ShapeName as Wt, KNOWN_SETTINGS as X, Decoration as Xt, renderSvg as Y, layout as Yt, LexedLine as Z, FrameKind as Zt, themes as _, tspans as _n, Diagnostic as _t, render as a, perPass as an, joinPath as at, EDGE_PROPS as b, THEMES as bn, EdgeDecl as bt, git as c, use as cn, parse as ct, sequence as d, renderHead as dn, setLineProp as dt, RowCtx as en, SETTING_VALUES as et, legend as f, InkColors as fn, setTrailingProp as ft, charts as g, segsW as gn, Curve as gt, tables as h, renderSegs as hn, Component as ht, hash as i, YuhwaPlugin as in, isYuhwaPath as it, MdOptions as j, themeNames as jn, NodeDecl as jt, isMermaid as k, ramp as kn, Layout as kt, chart as l, MarkerKind as ln, parseProps as lt, frames as m, parseInline as mn, Box as mt, Options as n, RowPaint as nn, TokKind as nt, toSource as o, recolor as on, lex as ot, footer as p, Seg as pn, splitTrailingProps as pt, JsonResult as q, GRID as qt, Result as r, StatementKind as rn, blockBraces as rt, builtins as s, registry as sn, onlyColor as st, InputFormat as t, RowKind as tn, Tok as tt, timeline as u, ShapeKind as un, serializeProps as ut, GUIDE as v, LineStyle$1 as vn, Diagram as vt, NUMBERS as w, Theme as wn, LabelRef as wt, ENUMS as x, THEME_KEYS as xn, EdgeOverride as xt, BOOLS as y, RAMPS as yn, Direction as yt, setPartTone as z, PartEdit as zt };
1089
+ export { PANELS as $, PanelCtx as $t, MdBlock as A, isSafeLink as An, Layout as At, setProp as B, PartEdit as Bt, NODE_PROPS as C, THEME_NAMES as Cn, GroupDecl as Ct, ConvertResult as D, createTheme as Dn, LaidGroup as Dt, lint as E, ThemeInput as En, LaidEdge as Et, replaceBlockSource as F, approxMeasure as Fn, PanelHandle as Ft, lineStyle as G, ShapeName as Gt, writeLayout as H, Props as Ht, editPart as I, canvasMeasure as In, PanelOverride as It, JsonResult as J, GRID as Jt, SHAPES as K, Side as Kt, formatLayout as L, PanelPart as Lt, MdResult as M, ramp as Mn, NodeDecl as Mt, findBlocks as N, registerTheme as Nn, NodeOverride as Nt, fromMermaid as O, getTheme as On, LaidNode as Ot, processMarkdown as P, themeNames as Pn, PanelDecl as Pt, LexedLine as Q, FrameKind as Qt, setLabel as R, PartAction as Rt, GROUP_PROPS as S, THEME_KEYS as Sn, EdgeOverride as St, PANEL_PROPS as T, Theme as Tn, LabelRef as Tt, writePanelDrag as U, ResolvedEdgeStyle as Ut, setSetting as V, Point as Vt, dashFor as W, ResolvedNodeStyle as Wt, renderSvg as X, layout as Xt, fromJSON as Y, groupPath as Yt, KNOWN_SETTINGS as Z, Decoration as Zt, themes as _, segsW as _n, Curve as _t, render as a, YuhwaPlugin as an, isYuhwaPath as at, EDGE_PROPS as b, RAMPS as bn, Direction as bt, git as c, registry as cn, onlyColor as ct, sequence as d, ShapeKind as dn, serializeProps as dt, PanelKind as en, ParseOptions as et, legend as f, renderHead as fn, setLineProp as ft, charts as g, renderSegs as gn, Component as gt, tables as h, parseInline as hn, Box as ht, hash as i, StatementKind as in, blockBraces as it, MdOptions as j, isToneOrHex as jn, LayoutOverrides as jt, isMermaid as k, isSafeCss as kn, LaidPanel as kt, chart as l, use as ln, parse as lt, frames as m, Seg as mn, splitTrailingProps as mt, Options as n, RowKind as nn, Tok as nt, toSource as o, perPass as on, joinPath as ot, footer as p, InkColors as pn, setTrailingProp as pt, DiagramJSON as q, SourceRef as qt, Result as r, RowPaint as rn, TokKind as rt, builtins as s, recolor as sn, lex as st, InputFormat as t, RowCtx as tn, SETTING_VALUES as tt, timeline as u, MarkerKind as un, parseProps as ut, GUIDE as v, tspans as vn, Diagnostic as vt, NUMBERS as w, TONES as wn, HeadKind as wt, ENUMS as x, THEMES as xn, EdgeDecl as xt, BOOLS as y, LineStyle$1 as yn, Diagram as yt, setPartTone as z, PartChange as zt };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as ParseOptions, $t as PanelKind, A as MdBlock, An as registerTheme, At as LayoutOverrides, B as setProp, Bt as Point, C as NODE_PROPS, Cn as TONES, Ct as HeadKind, D as ConvertResult, Dn as getTheme, Dt as LaidNode, E as lint, En as createTheme, Et as LaidGroup, F as replaceBlockSource, Ft as PanelOverride, G as SHAPES, Gt as Side, H as writeLayout, Ht as ResolvedEdgeStyle, I as editPart, It as PanelPart, J as fromJSON, Jt as groupPath, K as DiagramJSON, Kt as SourceRef, L as formatLayout, Lt as PartAction, M as MdResult, Mn as approxMeasure, Mt as NodeOverride, N as findBlocks, Nn as canvasMeasure, Nt as PanelDecl, O as fromMermaid, On as isToneOrHex, Ot as LaidPanel, P as processMarkdown, Pt as PanelHandle, Q as PANELS, Qt as PanelCtx, R as setLabel, Rt as PartChange, S as GROUP_PROPS, Sn as THEME_NAMES, St as GroupDecl, T as PANEL_PROPS, Tn as ThemeInput, Tt as LaidEdge, U as dashFor, Ut as ResolvedNodeStyle, V as setSetting, Vt as Props, W as lineStyle, Wt as ShapeName, X as KNOWN_SETTINGS, Xt as Decoration, Y as renderSvg, Yt as layout, Z as LexedLine, Zt as FrameKind, _ as themes, _n as tspans, _t as Diagnostic, a as render, an as perPass, at as joinPath, b as EDGE_PROPS, bn as THEMES, bt as EdgeDecl, c as git, cn as use, ct as parse, d as sequence, dn as renderHead, dt as setLineProp, en as RowCtx, et as SETTING_VALUES, f as legend, fn as InkColors, ft as setTrailingProp, g as charts, gn as segsW, gt as Curve, h as tables, hn as renderSegs, ht as Component, i as hash, in as YuhwaPlugin, it as isYuhwaPath, j as MdOptions, jn as themeNames, jt as NodeDecl, k as isMermaid, kn as ramp, kt as Layout, l as chart, ln as MarkerKind, lt as parseProps, m as frames, mn as parseInline, mt as Box, n as Options, nn as RowPaint, nt as TokKind, o as toSource, on as recolor, ot as lex, p as footer, pn as Seg, pt as splitTrailingProps, q as JsonResult, qt as GRID, r as Result, rn as StatementKind, rt as blockBraces, s as builtins, sn as registry, st as onlyColor, t as InputFormat, tn as RowKind, tt as Tok, u as timeline, un as ShapeKind, ut as serializeProps, v as GUIDE, vn as LineStyle, vt as Diagram, w as NUMBERS, wn as Theme, wt as LabelRef, x as ENUMS, xn as THEME_KEYS, xt as EdgeOverride, y as BOOLS, yn as RAMPS, yt as Direction, z as setPartTone, zt as PartEdit } from "./index-vqADUsNi.js";
2
- export { BOOLS, type Box, 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 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, approxMeasure, blockBraces, builtins, canvasMeasure, chart, charts, createTheme, dashFor, editPart, findBlocks, footer, formatLayout, frames, fromJSON, fromMermaid, getTheme, git, groupPath, hash, isMermaid, isToneOrHex, isYuhwaPath, joinPath, layout, legend, lex, lineStyle, lint, onlyColor, parse, parseInline, parseProps, perPass, processMarkdown, ramp, recolor, registerTheme, registry, render, renderHead, renderSegs, renderSvg, replaceBlockSource, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, splitTrailingProps, tables, themeNames, themes, timeline, toSource, tspans, use, writeLayout };
1
+ import { $ as PANELS, $t as PanelCtx, A as MdBlock, An as isSafeLink, At as Layout, B as setProp, Bt as PartEdit, C as NODE_PROPS, Cn as THEME_NAMES, Ct as GroupDecl, D as ConvertResult, Dn as createTheme, Dt as LaidGroup, E as lint, En as ThemeInput, Et as LaidEdge, F as replaceBlockSource, Fn as approxMeasure, Ft as PanelHandle, G as lineStyle, Gt as ShapeName, H as writeLayout, Ht as Props, I as editPart, In as canvasMeasure, It as PanelOverride, J as JsonResult, Jt as GRID, K as SHAPES, Kt as Side, L as formatLayout, Lt as PanelPart, M as MdResult, Mn as ramp, Mt as NodeDecl, N as findBlocks, Nn as registerTheme, Nt as NodeOverride, O as fromMermaid, On as getTheme, Ot as LaidNode, P as processMarkdown, Pn as themeNames, Pt as PanelDecl, Q as LexedLine, Qt as FrameKind, R as setLabel, Rt as PartAction, S as GROUP_PROPS, Sn as THEME_KEYS, St as EdgeOverride, T as PANEL_PROPS, Tn as Theme, Tt as LabelRef, U as writePanelDrag, Ut as ResolvedEdgeStyle, V as setSetting, Vt as Point, W as dashFor, Wt as ResolvedNodeStyle, X as renderSvg, Xt as layout, Y as fromJSON, Yt as groupPath, Z as KNOWN_SETTINGS, Zt as Decoration, _ as themes, _n as segsW, _t as Curve, a as render, an as YuhwaPlugin, at as isYuhwaPath, b as EDGE_PROPS, bn as RAMPS, bt as Direction, c as git, cn as registry, ct as onlyColor, d as sequence, dn as ShapeKind, dt as serializeProps, en as PanelKind, et as ParseOptions, f as legend, fn as renderHead, ft as setLineProp, g as charts, gn as renderSegs, gt as Component, h as tables, hn as parseInline, ht as Box, i as hash, in as StatementKind, it as blockBraces, j as MdOptions, jn as isToneOrHex, jt as LayoutOverrides, k as isMermaid, kn as isSafeCss, kt as LaidPanel, l as chart, ln as use, lt as parse, m as frames, mn as Seg, mt as splitTrailingProps, n as Options, nn as RowKind, nt as Tok, o as toSource, on as perPass, ot as joinPath, p as footer, pn as InkColors, pt as setTrailingProp, q as DiagramJSON, qt as SourceRef, r as Result, rn as RowPaint, rt as TokKind, s as builtins, sn as recolor, st as lex, t as InputFormat, tn as RowCtx, tt as SETTING_VALUES, u as timeline, un as MarkerKind, ut as parseProps, v as GUIDE, vn as tspans, vt as Diagnostic, w as NUMBERS, wn as TONES, wt as HeadKind, x as ENUMS, xn as THEMES, xt as EdgeDecl, y as BOOLS, yn as LineStyle, yt as Diagram, z as setPartTone, zt as PartChange } from "./index-Dl845tUQ.js";
2
+ export { BOOLS, type Box, 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 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, 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, parse, parseInline, parseProps, perPass, processMarkdown, ramp, recolor, registerTheme, registry, render, renderHead, renderSegs, renderSvg, replaceBlockSource, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, splitTrailingProps, tables, themeNames, themes, timeline, toSource, tspans, use, writeLayout, writePanelDrag };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { $ as BOOLS, et as EDGE_PROPS, tt as ENUMS, y as GRID, nt as GROUP_PROPS, i as GUIDE, z as KNOWN_SETTINGS, rt as NODE_PROPS, it as NUMBERS, B as PANELS, at as PANEL_PROPS, ht as RAMPS, V as SETTING_VALUES, st as SHAPES, gt as THEMES, _t as THEME_KEYS, vt as THEME_NAMES, yt as TONES, O as approxMeasure, H as blockBraces, S as builtins, k as canvasMeasure, w as chart, N as charts, bt as createTheme, lt as dashFor, c as editPart, a as findBlocks, A as footer, l as formatLayout, j as frames, _ as fromJSON, h as fromMermaid, xt as getTheme, C as git, b as groupPath, t as hash, g as isMermaid, St as isToneOrHex, U as isYuhwaPath, W as joinPath, x as layout, D as legend, G as lex, ut as lineStyle, ot as lint, K as onlyColor, q as parse, dt as parseInline, J as parseProps, F as perPass, o as processMarkdown, Ct as ramp, I as recolor, wt as registerTheme, L as registry, n as render, ct as renderHead, ft as renderSegs, v as renderSvg, s as replaceBlockSource, pt as segsW, E as sequence, Y as serializeProps, u as setLabel, X as setLineProp, d as setPartTone, f as setProp, p as setSetting, Z as setTrailingProp, Q as splitTrailingProps, M as tables, Tt as themeNames, P as themes, T as timeline, r as toSource, mt as tspans, R as use, m as writeLayout } from "./src-CAxa6h4u.js";
1
+ export { et as BOOLS, tt as EDGE_PROPS, nt as ENUMS, b as GRID, rt as GROUP_PROPS, i as GUIDE, B as KNOWN_SETTINGS, it as NODE_PROPS, at as NUMBERS, V as PANELS, ot as PANEL_PROPS, gt as RAMPS, H as SETTING_VALUES, ct as SHAPES, _t as THEMES, vt as THEME_KEYS, yt as THEME_NAMES, bt as TONES, k as approxMeasure, U as blockBraces, C as builtins, A as canvasMeasure, T as chart, P as charts, xt as createTheme, ut as dashFor, c as editPart, a as findBlocks, j as footer, l as formatLayout, M as frames, v as fromJSON, g as fromMermaid, St as getTheme, w as git, x as groupPath, t as hash, _ as isMermaid, Ct as isSafeCss, wt as isSafeLink, Tt as isToneOrHex, W as isYuhwaPath, G as joinPath, S as layout, O as legend, K as lex, dt as lineStyle, st as lint, q as onlyColor, J as parse, ft as parseInline, Y as parseProps, I as perPass, o as processMarkdown, Et as ramp, L as recolor, Dt as registerTheme, R as registry, n as render, lt as renderHead, pt as renderSegs, y as renderSvg, s as replaceBlockSource, mt as segsW, D as sequence, X as serializeProps, u as setLabel, Z as setLineProp, d as setPartTone, f as setProp, p as setSetting, Q as setTrailingProp, $ as splitTrailingProps, N as tables, Ot as themeNames, F as themes, E as timeline, r as toSource, ht as tspans, z as use, m as writeLayout, h as writePanelDrag } from "./src-wk7tBpWs.js";
@@ -16,7 +16,7 @@
16
16
  * MDX takes it as JSX.
17
17
  * A fence with `no-render` (```yuhwa no-render) stays a code block.
18
18
  */
19
- import { t as YuhwaDocsOptions } from "./figure-CCHRsOjO.js";
19
+ import { t as YuhwaDocsOptions } from "./figure-BZHIKnxv.js";
20
20
  /** replaces every yuhwa fence in `md` with its rendered figure */
21
21
  export declare function renderFences(md: string, opts?: YuhwaDocsOptions, file?: string): string;
22
22
  interface VitePlugin {
package/dist/ironmark.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as wantsRender, r as renderFigure, t as diskResolve } from "./node-BSuTy08h.js";
1
+ import { i as wantsRender, r as renderFigure, t as diskResolve } from "./node-Bneu5eJV.js";
2
2
  // src/integrations/ironmark.ts
3
3
  /**
4
4
  * ironmark support: renders ```yuhwa fences before ironmark parses the file.
@@ -1,4 +1,4 @@
1
- import { a as __commonJSMin, i as require_api, n as require_api$2, r as require_api$1, t as startServer } from "./server-Bl_1n2bb.js";
1
+ import { a as __commonJSMin, i as require_api, n as require_api$2, r as require_api$1, t as startServer } from "./server-DmQuHQrG.js";
2
2
  // ../../node_modules/.pnpm/vscode-jsonrpc@10.0.0/node_modules/vscode-jsonrpc/lib/browser/ril.js
3
3
  var require_ril = /* @__PURE__ */ __commonJSMin(((exports) => {
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/lsp-node.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from "node:module";
3
3
  import { fileURLToPath, pathToFileURL } from "node:url";
4
- import { C as PANEL_PROPS, D as TONES, O as themeNames, S as NUMBERS, T as THEME_KEYS, _ as BOOLS, b as GROUP_PROPS, c as KNOWN_SETTINGS, d as blockBraces, g as serializeProps, h as parse, i as isMermaid, l as PANELS, m as lex, p as joinPath, s as diskResolve, t as VERSION, u as SETTING_VALUES, v as EDGE_PROPS, w as SHAPES, x as NODE_PROPS, y as ENUMS } from "./shared-BHxDevlD.js";
4
+ import { C as PANEL_PROPS, D as TONES, O as themeNames, S as NUMBERS, T as THEME_KEYS, _ as BOOLS, b as GROUP_PROPS, c as KNOWN_SETTINGS, d as blockBraces, g as serializeProps, h as parse, i as isMermaid, l as PANELS, m as lex, p as joinPath, s as diskResolve, t as VERSION, u as SETTING_VALUES, v as EDGE_PROPS, w as SHAPES, x as NODE_PROPS, y as ENUMS } from "./shared-qo_r6RUN.js";
5
5
  // \0rolldown/runtime.js
6
6
  var __defProp = Object.defineProperty;
7
7
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1 +1 @@
1
- export { t as startServer } from "./server-Bl_1n2bb.js";
1
+ export { t as startServer } from "./server-DmQuHQrG.js";
package/dist/lsp.js CHANGED
@@ -1 +1 @@
1
- export { t as SEMANTIC_LEGEND, n as YuhwaService, r as applyChange, i as diffEdits, a as format, o as offsetAt, s as positionAt } from "./service-BAPEZrJQ.js";
1
+ export { t as SEMANTIC_LEGEND, n as YuhwaService, r as applyChange, i as diffEdits, a as format, o as offsetAt, s as positionAt } from "./service-BYS9Qfkq.js";
@@ -8,7 +8,7 @@
8
8
  * Add `yuhwa/style.css` to the site for the light/dark switch.
9
9
  * A fence with `no-render` (```yuhwa no-render) stays a code block.
10
10
  */
11
- import { t as YuhwaDocsOptions } from "./figure-CCHRsOjO.js";
11
+ import { t as YuhwaDocsOptions } from "./figure-BZHIKnxv.js";
12
12
  type Rule = (tokens: any[], idx: number, options: any, env: any, self: any) => string;
13
13
  interface MarkdownIt {
14
14
  renderer: {
@@ -1,4 +1,4 @@
1
- import { i as wantsRender, r as renderFigure, t as diskResolve } from "./node-BSuTy08h.js";
1
+ import { i as wantsRender, r as renderFigure, t as diskResolve } from "./node-Bneu5eJV.js";
2
2
  // src/integrations/markdown-it.ts
3
3
  /**
4
4
  * markdown-it plugin: renders ```yuhwa fences at build time.
@@ -1,4 +1,4 @@
1
- import { U as isYuhwaPath, n as render } from "./src-CAxa6h4u.js";
1
+ import { W as isYuhwaPath, n as render } from "./src-wk7tBpWs.js";
2
2
  import { readFileSync } from "node:fs";
3
3
  // src/integrations/figure.ts
4
4
  /**
package/dist/remark.d.ts CHANGED
@@ -9,6 +9,6 @@
9
9
  * Add `yuhwa/style.css` to the site for the light/dark switch.
10
10
  * A fence with `no-render` (```yuhwa no-render) stays a code block.
11
11
  */
12
- import { t as YuhwaDocsOptions } from "./figure-CCHRsOjO.js";
12
+ import { t as YuhwaDocsOptions } from "./figure-BZHIKnxv.js";
13
13
  export default function remarkYuhwa(opts?: YuhwaDocsOptions): (tree: any, file?: any) => void;
14
14
  export { type YuhwaDocsOptions, remarkYuhwa };
package/dist/remark.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as wantsRender, r as renderFigure, t as diskResolve } from "./node-BSuTy08h.js";
1
+ import { i as wantsRender, r as renderFigure, t as diskResolve } from "./node-Bneu5eJV.js";
2
2
  // src/integrations/remark.ts
3
3
  /**
4
4
  * remark plugin: replaces ```yuhwa code blocks with a rendered figure.
@@ -1,4 +1,4 @@
1
- import { n as YuhwaService, r as applyChange, t as SEMANTIC_LEGEND } from "./service-BAPEZrJQ.js";
1
+ import { n as YuhwaService, r as applyChange, t as SEMANTIC_LEGEND } from "./service-BYS9Qfkq.js";
2
2
  // \0rolldown/runtime.js
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,4 +1,4 @@
1
- import { $ as BOOLS, B as PANELS, G as lex, H as blockBraces, Tt as themeNames, V as SETTING_VALUES, W as joinPath, Y as serializeProps, _t as THEME_KEYS, at as PANEL_PROPS, et as EDGE_PROPS, g as isMermaid, it as NUMBERS, nt as GROUP_PROPS, q as parse, rt as NODE_PROPS, st as SHAPES, tt as ENUMS, yt as TONES, z as KNOWN_SETTINGS } from "./src-CAxa6h4u.js";
1
+ import { B as KNOWN_SETTINGS, G as joinPath, H as SETTING_VALUES, J as parse, K as lex, Ot as themeNames, U as blockBraces, V as PANELS, X as serializeProps, _ as isMermaid, at as NUMBERS, bt as TONES, ct as SHAPES, et as BOOLS, it as NODE_PROPS, nt as ENUMS, ot as PANEL_PROPS, rt as GROUP_PROPS, tt as EDGE_PROPS, vt as THEME_KEYS } from "./src-wk7tBpWs.js";
2
2
  // src/lsp/format.ts
3
3
  /**
4
4
  * Formatting and text edits, without a parser of their own beyond `lex`.