novelaid-markdown 0.2.0 → 0.4.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.
Files changed (104) hide show
  1. package/README.md +32 -0
  2. package/dist/_baseFor-Btt7qhvA.js +394 -0
  3. package/dist/arc-B1ElyJRe.js +80 -0
  4. package/dist/architecture-YZFGNWBL-DbwpLiaF.js +3 -0
  5. package/dist/architectureDiagram-Q4EWVU46-DPdA1a51.js +4057 -0
  6. package/dist/array-D9V22jUe.js +6 -0
  7. package/dist/blockDiagram-DXYQGD6D-Bf0IzYoN.js +3035 -0
  8. package/dist/c4Diagram-AHTNJAMY-BlTBDzAq.js +2961 -0
  9. package/dist/channel-CoqXOEHz.js +5 -0
  10. package/dist/chunk-2KRD3SAO-r21hNzXt.js +23 -0
  11. package/dist/chunk-336JU56O-DcVNMTsS.js +49 -0
  12. package/dist/chunk-426QAEUC-B4JQ_vPF.js +9 -0
  13. package/dist/chunk-4BX2VUAB-JBqrV_IE.js +8 -0
  14. package/dist/chunk-4TB4RGXK-DHS8LN6H.js +3255 -0
  15. package/dist/chunk-55IACEB6-C9COrGK_.js +8 -0
  16. package/dist/chunk-5FUZZQ4R-CdCLluck.js +3638 -0
  17. package/dist/chunk-5PVQY5BW-Dgwc0dUk.js +1299 -0
  18. package/dist/chunk-67CJDMHE-UQ-a7p3g.js +23 -0
  19. package/dist/chunk-7N4EOEYR-CPiwpV-A.js +35 -0
  20. package/dist/chunk-AA7GKIK3-DR_Iqho4.js +30 -0
  21. package/dist/chunk-BSJP7CBP-BrxQKL1l.js +82 -0
  22. package/dist/chunk-CIAEETIT-tbco3aB3.js +23 -0
  23. package/dist/chunk-EDXVE4YY-BHsZxHlc.js +25 -0
  24. package/dist/chunk-ENJZ2VHE-Dm2kuGCh.js +560 -0
  25. package/dist/chunk-FMBD7UC4-DwV8Wmed.js +5 -0
  26. package/dist/chunk-FOC6F5B3-CQtHQje_.js +23 -0
  27. package/dist/chunk-ICPOFSXX-B9lsZaK9.js +3363 -0
  28. package/dist/chunk-K5T4RW27-DI9nuGzI.js +16082 -0
  29. package/dist/chunk-KGLVRYIC-BMNH9LI-.js +23 -0
  30. package/dist/chunk-LIHQZDEY-Dc-yVZ_W.js +64 -0
  31. package/dist/chunk-ORNJ4GCN-DqZLt4_8.js +31 -0
  32. package/dist/chunk-OYMX7WX6-B8KpS9qK.js +2014 -0
  33. package/dist/chunk-QZHKN3VN-C4dmvHME.js +15 -0
  34. package/dist/chunk-U2HBQHQK-BME65g2a.js +1896 -0
  35. package/dist/chunk-X2U36JSP-CesuQ-Sm.js +67 -0
  36. package/dist/chunk-XPW4576I-Wv7jaLUC.js +1146 -0
  37. package/dist/chunk-YZCP3GAM-CJIt1xzm.js +60 -0
  38. package/dist/chunk-ZZ45TVLE-CMBGSmdv.js +32 -0
  39. package/dist/chunk-ha4E1CQs.js +20 -0
  40. package/dist/classDiagram-6PBFFD2Q-kvmQgIxu.js +29 -0
  41. package/dist/classDiagram-v2-HSJHXN6E-DLlYyLVf.js +29 -0
  42. package/dist/clone-B5XHQkPs.js +8 -0
  43. package/dist/cose-bilkent-S5V4N54A-xGhciOop.js +2250 -0
  44. package/dist/cytoscape.esm-BgCYa94Q.js +18103 -0
  45. package/dist/dagre-KV5264BT-DNe8h1eH.js +293 -0
  46. package/dist/dagre-SfibWTbo.js +1606 -0
  47. package/dist/defaultLocale-9iKoEQQi.js +201 -0
  48. package/dist/diagram-5BDNPKRD-D_R6IIhE.js +101 -0
  49. package/dist/diagram-G4DWMVQ6-CGlOggN-.js +524 -0
  50. package/dist/diagram-MMDJMWI5-GlxWkSbK.js +213 -0
  51. package/dist/diagram-TYMM5635-Empbfz-2.js +133 -0
  52. package/dist/dist-Dz2K8jVv.js +59 -0
  53. package/dist/erDiagram-SMLLAGMA-DSnlNLPr.js +1700 -0
  54. package/dist/{esm-Psdhd_27.js → esm-Binvve4F.js} +285 -303
  55. package/dist/flatten-BeeUCBYF.js +40 -0
  56. package/dist/flowDiagram-DWJPFMVM-YAh0NsG9.js +4145 -0
  57. package/dist/ganttDiagram-T4ZO3ILL-DkmkZTO5.js +3077 -0
  58. package/dist/gitGraph-7Q5UKJZL-DamMrPFa.js +3 -0
  59. package/dist/gitGraphDiagram-UUTBAWPF-IjLQtHgn.js +728 -0
  60. package/dist/graphlib-DSQqP-5Y.js +373 -0
  61. package/dist/index.css +2 -0
  62. package/dist/index.js +4086 -38
  63. package/dist/index.umd.cjs +3325 -23
  64. package/dist/info-OMHHGYJF-BovemagY.js +3 -0
  65. package/dist/infoDiagram-42DDH7IO-izJQDQJs.js +19 -0
  66. package/dist/init-DkX7cl9c.js +15 -0
  67. package/dist/isEmpty-kLGD071T.js +35 -0
  68. package/dist/ishikawaDiagram-UXIWVN3A-SJb5qsLR.js +718 -0
  69. package/dist/journeyDiagram-VCZTEJTY-BDa8bFXG.js +883 -0
  70. package/dist/kanban-definition-6JOO6SKY-i73I3KFw.js +973 -0
  71. package/dist/katex-DI2iMRYj.js +22000 -0
  72. package/dist/line-BD0OIRsH.js +34 -0
  73. package/dist/linear-DV1pG6aV.js +289 -0
  74. package/dist/mermaid-parser.core-CZznKIov.js +69 -0
  75. package/dist/mermaid.core-a1TLqUAY.js +951 -0
  76. package/dist/mindmap-definition-QFDTVHPH-DPG-HkqU.js +1009 -0
  77. package/dist/ordinal-Zd5qpGcV.js +65 -0
  78. package/dist/packet-4T2RLAQJ-BEP9UcAl.js +3 -0
  79. package/dist/path-BSwIfggT.js +85 -0
  80. package/dist/pie-ZZUOXDRM-AZqQmg1p.js +3 -0
  81. package/dist/pieDiagram-DEJITSTG-Cj1YBlb1.js +165 -0
  82. package/dist/quadrantDiagram-34T5L4WZ-ypBI9wre.js +1974 -0
  83. package/dist/radar-PYXPWWZC-BpKM_Ghb.js +3 -0
  84. package/dist/{react-markdown-BXmDW998.js → react-markdown-CwHVAeQi.js} +82 -81
  85. package/dist/reduce-DQgHi9nw.js +532 -0
  86. package/dist/{rehype-raw-_yRr8ewB.js → rehype-raw-CbJS4QeP.js} +346 -346
  87. package/dist/{remark-gfm-Cfc5YeEq.js → remark-gfm-D_QtAzOA.js} +2 -2
  88. package/dist/requirementDiagram-MS252O5E-CkuWjAxJ.js +2221 -0
  89. package/dist/rough.esm-Dun2l6dn.js +1352 -0
  90. package/dist/sankeyDiagram-XADWPNL6-BzIHfJyL.js +920 -0
  91. package/dist/sequenceDiagram-FGHM5R23-NC0cKvy5.js +4157 -0
  92. package/dist/src-D7IEzgYM.js +2149 -0
  93. package/dist/stateDiagram-FHFEXIEX-vd0cNpSx.js +217 -0
  94. package/dist/stateDiagram-v2-QKLJ7IA2-BXsBMk9U.js +27 -0
  95. package/dist/timeline-definition-GMOUNBTQ-DeOvCyAs.js +1068 -0
  96. package/dist/treeView-SZITEDCU-D-ftaYOL.js +3 -0
  97. package/dist/treemap-W4RFUUIX-B2bp9KIg.js +3 -0
  98. package/dist/vennDiagram-DHZGUBPP-Hraq3pvR.js +1858 -0
  99. package/dist/wardley-RL74JXVD-BdjKuxh8.js +3 -0
  100. package/dist/wardleyDiagram-NUSXRM2D-C06eRanG.js +578 -0
  101. package/dist/xychartDiagram-5P7HB3ND-BiD79JlS.js +2044 -0
  102. package/package.json +4 -2
  103. /package/dist/{blank-line-ClJSvRAu.js → blank-line-DxLGQ569.js} +0 -0
  104. /package/dist/{lib-DWIu06lZ.js → lib-z8X9LcoZ.js} +0 -0
@@ -0,0 +1,60 @@
1
+ import { h as e, p as t } from "./src-D7IEzgYM.js";
2
+ import { A as n } from "./chunk-ICPOFSXX-B9lsZaK9.js";
3
+ import { t as r } from "./dist-Dz2K8jVv.js";
4
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.mjs
5
+ var i = r(), a = /* @__PURE__ */ e((e, t) => {
6
+ let n = e.append("rect");
7
+ if (n.attr("x", t.x), n.attr("y", t.y), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("width", t.width), n.attr("height", t.height), t.name && n.attr("name", t.name), t.rx && n.attr("rx", t.rx), t.ry && n.attr("ry", t.ry), t.attrs !== void 0) for (let e in t.attrs) n.attr(e, t.attrs[e]);
8
+ return t.class && n.attr("class", t.class), n;
9
+ }, "drawRect"), o = /* @__PURE__ */ e((e, t) => {
10
+ a(e, {
11
+ x: t.startx,
12
+ y: t.starty,
13
+ width: t.stopx - t.startx,
14
+ height: t.stopy - t.starty,
15
+ fill: t.fill,
16
+ stroke: t.stroke,
17
+ class: "rect"
18
+ }).lower();
19
+ }, "drawBackgroundRect"), s = /* @__PURE__ */ e((e, t) => {
20
+ let r = t.text.replace(n, " "), i = e.append("text");
21
+ i.attr("x", t.x), i.attr("y", t.y), i.attr("class", "legend"), i.style("text-anchor", t.anchor), t.class && i.attr("class", t.class);
22
+ let a = i.append("tspan");
23
+ return a.attr("x", t.x + t.textMargin * 2), a.text(r), i;
24
+ }, "drawText"), c = /* @__PURE__ */ e((e, t, n, r) => {
25
+ let a = e.append("image");
26
+ a.attr("x", t), a.attr("y", n);
27
+ let o = (0, i.sanitizeUrl)(r);
28
+ a.attr("xlink:href", o);
29
+ }, "drawImage"), l = /* @__PURE__ */ e((e, t, n, r) => {
30
+ let a = e.append("use");
31
+ a.attr("x", t), a.attr("y", n);
32
+ let o = (0, i.sanitizeUrl)(r);
33
+ a.attr("xlink:href", `#${o}`);
34
+ }, "drawEmbeddedImage"), u = /* @__PURE__ */ e(() => ({
35
+ x: 0,
36
+ y: 0,
37
+ width: 100,
38
+ height: 100,
39
+ fill: "#EDF2AE",
40
+ stroke: "#666",
41
+ anchor: "start",
42
+ rx: 0,
43
+ ry: 0
44
+ }), "getNoteRect"), d = /* @__PURE__ */ e(() => ({
45
+ x: 0,
46
+ y: 0,
47
+ width: 100,
48
+ height: 100,
49
+ "text-anchor": "start",
50
+ style: "#666",
51
+ textMargin: 0,
52
+ rx: 0,
53
+ ry: 0,
54
+ tspan: !0
55
+ }), "getTextObj"), f = /* @__PURE__ */ e(() => {
56
+ let e = t(".mermaidTooltip");
57
+ return e.empty() && (e = t("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0).style("position", "absolute").style("text-align", "center").style("max-width", "200px").style("padding", "2px").style("font-size", "12px").style("background", "#ffffde").style("border", "1px solid #333").style("border-radius", "2px").style("pointer-events", "none").style("z-index", "100")), e;
58
+ }, "createTooltip");
59
+ //#endregion
60
+ export { a, d as c, c as i, o as n, s as o, l as r, u as s, f as t };
@@ -0,0 +1,32 @@
1
+ import { h as e } from "./src-D7IEzgYM.js";
2
+ import { b as t, d as n } from "./chunk-ICPOFSXX-B9lsZaK9.js";
3
+ import { f as r } from "./chunk-5PVQY5BW-Dgwc0dUk.js";
4
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.mjs
5
+ var i = /* @__PURE__ */ e(({ flowchart: e }) => {
6
+ let t = e?.subGraphTitleMargin?.top ?? 0, n = e?.subGraphTitleMargin?.bottom ?? 0;
7
+ return {
8
+ subGraphTitleTopMargin: t,
9
+ subGraphTitleBottomMargin: n,
10
+ subGraphTitleTotalMargin: t + n
11
+ };
12
+ }, "getSubGraphTitleMargins");
13
+ async function a(i, a) {
14
+ let o = i.getElementsByTagName("img");
15
+ if (!o || o.length === 0) return;
16
+ let s = a.replace(/<img[^>]*>/g, "").trim() === "";
17
+ await Promise.all([...o].map((i) => new Promise((a) => {
18
+ function o() {
19
+ if (i.style.display = "flex", i.style.flexDirection = "column", s) {
20
+ let [e = n.fontSize] = r(t().fontSize ? t().fontSize : window.getComputedStyle(document.body).fontSize), a = e * 5 + "px";
21
+ i.style.minWidth = a, i.style.maxWidth = a;
22
+ } else i.style.width = "100%";
23
+ a(i);
24
+ }
25
+ e(o, "setupImage"), setTimeout(() => {
26
+ i.complete && o();
27
+ }), i.addEventListener("error", o), i.addEventListener("load", o);
28
+ })));
29
+ }
30
+ e(a, "configureLabelImages");
31
+ //#endregion
32
+ export { i as n, a as t };
@@ -0,0 +1,20 @@
1
+ //#region \0rolldown/runtime.js
2
+ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (e && (t = e(e = 0)), t), s = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), c = (e, n) => {
3
+ let r = {};
4
+ for (var i in e) t(r, i, {
5
+ get: e[i],
6
+ enumerable: !0
7
+ });
8
+ return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
9
+ }, l = (e, i, o, s) => {
10
+ if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
11
+ get: ((e) => i[e]).bind(null, d),
12
+ enumerable: !(s = n(i, d)) || s.enumerable
13
+ });
14
+ return e;
15
+ }, u = (e, t, n) => (l(e, t, "default"), n && l(n, t, "default")), d = (n, r, a) => (a = n == null ? {} : e(i(n)), l(r || !n || !n.__esModule ? t(a, "default", {
16
+ value: n,
17
+ enumerable: !0
18
+ }) : a, n)), f = (e) => a.call(e, "module.exports") ? e["module.exports"] : l(t({}, "__esModule", { value: !0 }), e);
19
+ //#endregion
20
+ export { f as a, u as i, o as n, d as o, c as r, s as t };
@@ -0,0 +1,29 @@
1
+ import { h as e } from "./src-D7IEzgYM.js";
2
+ import "./chunk-ICPOFSXX-B9lsZaK9.js";
3
+ import "./chunk-5PVQY5BW-Dgwc0dUk.js";
4
+ import "./chunk-U2HBQHQK-BME65g2a.js";
5
+ import "./chunk-FMBD7UC4-DwV8Wmed.js";
6
+ import "./chunk-BSJP7CBP-BrxQKL1l.js";
7
+ import "./chunk-ZZ45TVLE-CMBGSmdv.js";
8
+ import "./chunk-YZCP3GAM-CJIt1xzm.js";
9
+ import "./chunk-55IACEB6-C9COrGK_.js";
10
+ import "./chunk-EDXVE4YY-BHsZxHlc.js";
11
+ import "./chunk-X2U36JSP-CesuQ-Sm.js";
12
+ import "./chunk-5FUZZQ4R-CdCLluck.js";
13
+ import "./chunk-ENJZ2VHE-Dm2kuGCh.js";
14
+ import "./chunk-336JU56O-DcVNMTsS.js";
15
+ import { i as t, n, r, t as i } from "./chunk-4TB4RGXK-DHS8LN6H.js";
16
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.mjs
17
+ var a = {
18
+ parser: n,
19
+ get db() {
20
+ return new i();
21
+ },
22
+ renderer: r,
23
+ styles: t,
24
+ init: /* @__PURE__ */ e((e) => {
25
+ e.class ||= {}, e.class.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
26
+ }, "init")
27
+ };
28
+ //#endregion
29
+ export { a as diagram };
@@ -0,0 +1,29 @@
1
+ import { h as e } from "./src-D7IEzgYM.js";
2
+ import "./chunk-ICPOFSXX-B9lsZaK9.js";
3
+ import "./chunk-5PVQY5BW-Dgwc0dUk.js";
4
+ import "./chunk-U2HBQHQK-BME65g2a.js";
5
+ import "./chunk-FMBD7UC4-DwV8Wmed.js";
6
+ import "./chunk-BSJP7CBP-BrxQKL1l.js";
7
+ import "./chunk-ZZ45TVLE-CMBGSmdv.js";
8
+ import "./chunk-YZCP3GAM-CJIt1xzm.js";
9
+ import "./chunk-55IACEB6-C9COrGK_.js";
10
+ import "./chunk-EDXVE4YY-BHsZxHlc.js";
11
+ import "./chunk-X2U36JSP-CesuQ-Sm.js";
12
+ import "./chunk-5FUZZQ4R-CdCLluck.js";
13
+ import "./chunk-ENJZ2VHE-Dm2kuGCh.js";
14
+ import "./chunk-336JU56O-DcVNMTsS.js";
15
+ import { i as t, n, r, t as i } from "./chunk-4TB4RGXK-DHS8LN6H.js";
16
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.mjs
17
+ var a = {
18
+ parser: n,
19
+ get db() {
20
+ return new i();
21
+ },
22
+ renderer: r,
23
+ styles: t,
24
+ init: /* @__PURE__ */ e((e) => {
25
+ e.class ||= {}, e.class.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
26
+ }, "init")
27
+ };
28
+ //#endregion
29
+ export { a as diagram };
@@ -0,0 +1,8 @@
1
+ import { i as e } from "./graphlib-DSQqP-5Y.js";
2
+ //#region node_modules/lodash-es/clone.js
3
+ var t = 4;
4
+ function n(n) {
5
+ return e(n, t);
6
+ }
7
+ //#endregion
8
+ export { n as t };