yuhwa 1.8.1 → 1.8.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.
- package/dist/astro.js +1 -1
- package/dist/browser.js +4 -4
- package/dist/canvas.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/editor/assets/{index-CzZbWTHS.js → index-BzQE05yU.js} +48 -48
- package/dist/editor/assets/{lsp.worker-DE33sIum.js → lsp.worker-B8uA5kfW.js} +1 -1
- package/dist/editor/index.html +1 -1
- package/dist/index.js +4 -4
- package/dist/ironmark.js +1 -1
- package/dist/{lex-D4UEbl0Y.js → lex-DIq2EFvl.js} +24 -8
- package/dist/lsp-browser.js +1 -1
- package/dist/lsp-node.js +1 -1
- package/dist/lsp-server.js +1 -1
- package/dist/lsp.js +1 -1
- package/dist/markdown-it.js +2 -2
- package/dist/{node-B4v84i-l.js → node-GljwUyhc.js} +3 -3
- package/dist/{plugin-Bp8z1wBE.js → plugin-3vxnUvv9.js} +1 -1
- package/dist/plugin.js +2 -2
- package/dist/{raster-DI66_cLD.js → raster-Bqtxssxh.js} +1 -1
- package/dist/remark.js +1 -1
- package/dist/satteri.js +1 -1
- package/dist/{server-I2YzR5H3.js → server-8-F7RVrN.js} +2 -2
- package/dist/{service-DU8fxD4h.js → service-S1OY7wrO.js} +3 -3
- package/dist/{shared-B153eecg.js → shared-Bhnvepka.js} +25 -9
- package/dist/{src-De2RtCva.js → src-BWFm7GlK.js} +3 -3
- package/dist/vite.js +2 -2
- package/dist/vuepress.js +1 -1
- package/dist/yuhwa.iife.js +55 -55
- package/package.json +1 -1
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-
|
|
3
|
+
import { n as onTrack, o as clientImports, r as pagesUsing } from "./node-GljwUyhc.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 joinPath, B as timeline, C as isMermaid, D as GRID, E as layout, F as quadrant, G as tables, H as legend, I as gantt, J as markers, K as charts, L as mindmap, M as builtins, N as treeview, O as parse, P as kanban, R as git, S as fromMermaid, T as renderSvg, U as footer, V as sequence, W as frames, Y as shapes, _ as setPartTone, a as MD_LANGUAGES, b as writeLayout, d as addEdge, f as addNode, g as setLabel, h as removeElement, i as GUIDE, k as isYuhwaPath, l as processMarkdown, m as formatLayout, n as render$1, o as findBlocks, p as editPart, q as themes, r as toSource, t as hash, u as replaceBlockSource, v as setProp, w as fromJSON, x as writePanelDrag, y as setSetting, z as chart } from "./src-
|
|
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, u as PANELS } from "./plugin-
|
|
1
|
+
import { A as joinPath, B as timeline, C as isMermaid, D as GRID, E as layout, F as quadrant, G as tables, H as legend, I as gantt, J as markers, K as charts, L as mindmap, M as builtins, N as treeview, O as parse, P as kanban, R as git, S as fromMermaid, T as renderSvg, U as footer, V as sequence, W as frames, Y as shapes, _ as setPartTone, a as MD_LANGUAGES, b as writeLayout, d as addEdge, f as addNode, g as setLabel, h as removeElement, i as GUIDE, k as isYuhwaPath, l as processMarkdown, m as formatLayout, n as render$1, o as findBlocks, p as editPart, q as themes, r as toSource, t as hash, u as replaceBlockSource, v as setProp, w as fromJSON, x as writePanelDrag, y as setSetting, z as chart } from "./src-BWFm7GlK.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, u as PANELS } from "./plugin-3vxnUvv9.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-
|
|
5
|
-
import {
|
|
4
|
+
import { a as svgFamilies, c as swapForRaster, n as embedFonts, r as loadFonts, s as svgToCanvas } from "./raster-Bqtxssxh.js";
|
|
5
|
+
import { An as isSafeCss, C as SETTING_VALUES, Cn as createTheme, D as EDGE_PROPS, Dn as getTheme, E as COLORS, En as fontStack, H as SHAPES, In as themeNames, Jt as esc, K as portOn, M as NUMBERS, Mn as isToneOrHex, Mt as groupProp, N as PANEL_PROPS, Nn as ramp, O as ENUMS, P as PANEL_PROP_HELP, Pn as registerTheme, Pt as lineStyle, T as BOOLS, Tn as fontFamilies, Tt as dashFor, a as lex, b as KNOWN_SETTINGS, bn as THEME_NAMES, bt as ALIGN_SIDES, c as parseProps, d as serializeProps, en as parseInline, gn as RAMPS, h as splitTrailingProps, i as blockBraces, j as NODE_PROPS, jn as isSafeLink, jt as groupPath, k as GROUP_PROPS, kn as isGenericFont, m as setTrailingProp, on as segsW, p as setLineProp, pn as tspans, rn as renderSegs, rt as renderHead, s as onlyColor, v as unquote, vn as THEMES, x as SETTING_HELP, xn as TONES, yn as THEME_KEYS, z as lint } from "./lex-DIq2EFvl.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-
|
|
20
|
+
const { swapForRaster } = await import("./raster-Bqtxssxh.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 { $ as isSafeCss, C as canvasMeasure, D as KNOWN_SETTINGS, F as GROUP_PROPS, H as SHAPES, I as NODE_PROPS, M as COLORS, N as EDGE_PROPS, P as ENUMS, Q as TONES, R as PANEL_PROPS, S as unquote, T as registry, W as ALIGN_SIDES_HINT, X as THEME_KEYS, Z as THEME_NAMES, a as formatPage, c as diskResolve, d as MD_LANGUAGES, f as findBlocks, g as replaceBlockSource, h as processMarkdown, i as format, k as SETTING_VALUES, l as render$1, m as pageBlocks, nt as isYuhwaPath, p as isMarkdown, q as esc, rt as joinPath, s as tidy, t as VERSION, u as toSource, w as optionKind } from "./shared-
|
|
3
|
+
import { $ as isSafeCss, C as canvasMeasure, D as KNOWN_SETTINGS, F as GROUP_PROPS, H as SHAPES, I as NODE_PROPS, M as COLORS, N as EDGE_PROPS, P as ENUMS, Q as TONES, R as PANEL_PROPS, S as unquote, T as registry, W as ALIGN_SIDES_HINT, X as THEME_KEYS, Z as THEME_NAMES, a as formatPage, c as diskResolve, d as MD_LANGUAGES, f as findBlocks, g as replaceBlockSource, h as processMarkdown, i as format, k as SETTING_VALUES, l as render$1, m as pageBlocks, nt as isYuhwaPath, p as isMarkdown, q as esc, rt as joinPath, s as tidy, t as VERSION, u as toSource, w as optionKind } from "./shared-Bhnvepka.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";
|