novelaid-markdown 0.2.0 → 0.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/README.md +15 -0
- package/dist/_baseFor-Btt7qhvA.js +394 -0
- package/dist/arc-B1ElyJRe.js +80 -0
- package/dist/architecture-YZFGNWBL-DbwpLiaF.js +3 -0
- package/dist/architectureDiagram-Q4EWVU46-DPdA1a51.js +4057 -0
- package/dist/array-D9V22jUe.js +6 -0
- package/dist/blockDiagram-DXYQGD6D-Bf0IzYoN.js +3035 -0
- package/dist/c4Diagram-AHTNJAMY-BlTBDzAq.js +2961 -0
- package/dist/channel-CoqXOEHz.js +5 -0
- package/dist/chunk-2KRD3SAO-r21hNzXt.js +23 -0
- package/dist/chunk-336JU56O-DcVNMTsS.js +49 -0
- package/dist/chunk-426QAEUC-B4JQ_vPF.js +9 -0
- package/dist/chunk-4BX2VUAB-JBqrV_IE.js +8 -0
- package/dist/chunk-4TB4RGXK-DHS8LN6H.js +3255 -0
- package/dist/chunk-55IACEB6-C9COrGK_.js +8 -0
- package/dist/chunk-5FUZZQ4R-CdCLluck.js +3638 -0
- package/dist/chunk-5PVQY5BW-Dgwc0dUk.js +1299 -0
- package/dist/chunk-67CJDMHE-UQ-a7p3g.js +23 -0
- package/dist/chunk-7N4EOEYR-CPiwpV-A.js +35 -0
- package/dist/chunk-AA7GKIK3-DR_Iqho4.js +30 -0
- package/dist/chunk-BSJP7CBP-BrxQKL1l.js +82 -0
- package/dist/chunk-CIAEETIT-tbco3aB3.js +23 -0
- package/dist/chunk-EDXVE4YY-BHsZxHlc.js +25 -0
- package/dist/chunk-ENJZ2VHE-Dm2kuGCh.js +560 -0
- package/dist/chunk-FMBD7UC4-DwV8Wmed.js +5 -0
- package/dist/chunk-FOC6F5B3-CQtHQje_.js +23 -0
- package/dist/chunk-ICPOFSXX-B9lsZaK9.js +3363 -0
- package/dist/chunk-K5T4RW27-DI9nuGzI.js +16082 -0
- package/dist/chunk-KGLVRYIC-BMNH9LI-.js +23 -0
- package/dist/chunk-LIHQZDEY-Dc-yVZ_W.js +64 -0
- package/dist/chunk-ORNJ4GCN-DqZLt4_8.js +31 -0
- package/dist/chunk-OYMX7WX6-B8KpS9qK.js +2014 -0
- package/dist/chunk-QZHKN3VN-C4dmvHME.js +15 -0
- package/dist/chunk-U2HBQHQK-BME65g2a.js +1896 -0
- package/dist/chunk-X2U36JSP-CesuQ-Sm.js +67 -0
- package/dist/chunk-XPW4576I-Wv7jaLUC.js +1146 -0
- package/dist/chunk-YZCP3GAM-CJIt1xzm.js +60 -0
- package/dist/chunk-ZZ45TVLE-CMBGSmdv.js +32 -0
- package/dist/chunk-ha4E1CQs.js +20 -0
- package/dist/classDiagram-6PBFFD2Q-kvmQgIxu.js +29 -0
- package/dist/classDiagram-v2-HSJHXN6E-DLlYyLVf.js +29 -0
- package/dist/clone-B5XHQkPs.js +8 -0
- package/dist/cose-bilkent-S5V4N54A-xGhciOop.js +2250 -0
- package/dist/cytoscape.esm-BgCYa94Q.js +18103 -0
- package/dist/dagre-KV5264BT-DNe8h1eH.js +293 -0
- package/dist/dagre-SfibWTbo.js +1606 -0
- package/dist/defaultLocale-9iKoEQQi.js +201 -0
- package/dist/diagram-5BDNPKRD-D_R6IIhE.js +101 -0
- package/dist/diagram-G4DWMVQ6-CGlOggN-.js +524 -0
- package/dist/diagram-MMDJMWI5-GlxWkSbK.js +213 -0
- package/dist/diagram-TYMM5635-Empbfz-2.js +133 -0
- package/dist/dist-Dz2K8jVv.js +59 -0
- package/dist/erDiagram-SMLLAGMA-DSnlNLPr.js +1700 -0
- package/dist/{esm-Psdhd_27.js → esm-Binvve4F.js} +285 -303
- package/dist/flatten-BeeUCBYF.js +40 -0
- package/dist/flowDiagram-DWJPFMVM-YAh0NsG9.js +4145 -0
- package/dist/ganttDiagram-T4ZO3ILL-DkmkZTO5.js +3077 -0
- package/dist/gitGraph-7Q5UKJZL-DamMrPFa.js +3 -0
- package/dist/gitGraphDiagram-UUTBAWPF-IjLQtHgn.js +728 -0
- package/dist/graphlib-DSQqP-5Y.js +373 -0
- package/dist/index.css +2 -0
- package/dist/index.js +115 -38
- package/dist/index.umd.cjs +3218 -23
- package/dist/info-OMHHGYJF-BovemagY.js +3 -0
- package/dist/infoDiagram-42DDH7IO-izJQDQJs.js +19 -0
- package/dist/init-DkX7cl9c.js +15 -0
- package/dist/isEmpty-kLGD071T.js +35 -0
- package/dist/ishikawaDiagram-UXIWVN3A-SJb5qsLR.js +718 -0
- package/dist/journeyDiagram-VCZTEJTY-BDa8bFXG.js +883 -0
- package/dist/kanban-definition-6JOO6SKY-i73I3KFw.js +973 -0
- package/dist/katex-DI2iMRYj.js +22000 -0
- package/dist/line-BD0OIRsH.js +34 -0
- package/dist/linear-DV1pG6aV.js +289 -0
- package/dist/mermaid-parser.core-CZznKIov.js +69 -0
- package/dist/mermaid.core-a1TLqUAY.js +951 -0
- package/dist/mindmap-definition-QFDTVHPH-DPG-HkqU.js +1009 -0
- package/dist/ordinal-Zd5qpGcV.js +65 -0
- package/dist/packet-4T2RLAQJ-BEP9UcAl.js +3 -0
- package/dist/path-BSwIfggT.js +85 -0
- package/dist/pie-ZZUOXDRM-AZqQmg1p.js +3 -0
- package/dist/pieDiagram-DEJITSTG-Cj1YBlb1.js +165 -0
- package/dist/quadrantDiagram-34T5L4WZ-ypBI9wre.js +1974 -0
- package/dist/radar-PYXPWWZC-BpKM_Ghb.js +3 -0
- package/dist/{react-markdown-BXmDW998.js → react-markdown-CwHVAeQi.js} +82 -81
- package/dist/reduce-DQgHi9nw.js +532 -0
- package/dist/{rehype-raw-_yRr8ewB.js → rehype-raw-CbJS4QeP.js} +346 -346
- package/dist/{remark-gfm-Cfc5YeEq.js → remark-gfm-D_QtAzOA.js} +2 -2
- package/dist/requirementDiagram-MS252O5E-CkuWjAxJ.js +2221 -0
- package/dist/rough.esm-Dun2l6dn.js +1352 -0
- package/dist/sankeyDiagram-XADWPNL6-BzIHfJyL.js +920 -0
- package/dist/sequenceDiagram-FGHM5R23-NC0cKvy5.js +4157 -0
- package/dist/src-D7IEzgYM.js +2149 -0
- package/dist/stateDiagram-FHFEXIEX-vd0cNpSx.js +217 -0
- package/dist/stateDiagram-v2-QKLJ7IA2-BXsBMk9U.js +27 -0
- package/dist/timeline-definition-GMOUNBTQ-DeOvCyAs.js +1068 -0
- package/dist/treeView-SZITEDCU-D-ftaYOL.js +3 -0
- package/dist/treemap-W4RFUUIX-B2bp9KIg.js +3 -0
- package/dist/vennDiagram-DHZGUBPP-Hraq3pvR.js +1858 -0
- package/dist/wardley-RL74JXVD-BdjKuxh8.js +3 -0
- package/dist/wardleyDiagram-NUSXRM2D-C06eRanG.js +578 -0
- package/dist/xychartDiagram-5P7HB3ND-BiD79JlS.js +2044 -0
- package/package.json +2 -1
- /package/dist/{blank-line-ClJSvRAu.js → blank-line-DxLGQ569.js} +0 -0
- /package/dist/{lib-DWIu06lZ.js → lib-z8X9LcoZ.js} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { _ as e, a as t, g as n, h as r, i, m as a, s as o, t as s, v as c } from "./chunk-K5T4RW27-DI9nuGzI.js";
|
|
2
|
+
//#region node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.mjs
|
|
3
|
+
var l = class extends s {
|
|
4
|
+
static {
|
|
5
|
+
a(this, "GitGraphTokenBuilder");
|
|
6
|
+
}
|
|
7
|
+
constructor() {
|
|
8
|
+
super(["gitGraph"]);
|
|
9
|
+
}
|
|
10
|
+
}, u = { parser: {
|
|
11
|
+
TokenBuilder: /* @__PURE__ */ a(() => new l(), "TokenBuilder"),
|
|
12
|
+
ValueConverter: /* @__PURE__ */ a(() => new i(), "ValueConverter")
|
|
13
|
+
} };
|
|
14
|
+
function d(i = r) {
|
|
15
|
+
let a = n(c(i), o), s = n(e({ shared: a }), t, u);
|
|
16
|
+
return a.ServiceRegistry.register(s), {
|
|
17
|
+
shared: a,
|
|
18
|
+
GitGraph: s
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
a(d, "createGitGraphServices");
|
|
22
|
+
//#endregion
|
|
23
|
+
export { d as n, u as t };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { _ as e, g as t, h as n, m as r, n as i, r as a, s as o, t as s, v as c } from "./chunk-K5T4RW27-DI9nuGzI.js";
|
|
2
|
+
//#region node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.mjs
|
|
3
|
+
var l = class extends s {
|
|
4
|
+
static {
|
|
5
|
+
r(this, "ArchitectureTokenBuilder");
|
|
6
|
+
}
|
|
7
|
+
constructor() {
|
|
8
|
+
super(["architecture"]);
|
|
9
|
+
}
|
|
10
|
+
}, u = class extends i {
|
|
11
|
+
static {
|
|
12
|
+
r(this, "ArchitectureValueConverter");
|
|
13
|
+
}
|
|
14
|
+
runCustomConverter(e, t, n) {
|
|
15
|
+
if (e.name === "ARCH_ICON") return t.replace(/[()]/g, "").trim();
|
|
16
|
+
if (e.name === "ARCH_TEXT_ICON") return t.replace(/["()]/g, "");
|
|
17
|
+
if (e.name === "ARCH_TITLE") {
|
|
18
|
+
let e = t.replace(/^\[|]$/g, "").trim();
|
|
19
|
+
return (e.startsWith("\"") && e.endsWith("\"") || e.startsWith("'") && e.endsWith("'")) && (e = e.slice(1, -1), e = e.replace(/\\"/g, "\"").replace(/\\'/g, "'")), e.trim();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}, d = { parser: {
|
|
23
|
+
TokenBuilder: /* @__PURE__ */ r(() => new l(), "TokenBuilder"),
|
|
24
|
+
ValueConverter: /* @__PURE__ */ r(() => new u(), "ValueConverter")
|
|
25
|
+
} };
|
|
26
|
+
function f(r = n) {
|
|
27
|
+
let i = t(c(r), o), s = t(e({ shared: i }), a, d);
|
|
28
|
+
return i.ServiceRegistry.register(s), {
|
|
29
|
+
shared: i,
|
|
30
|
+
Architecture: s
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
r(f, "createArchitectureServices");
|
|
34
|
+
//#endregion
|
|
35
|
+
export { f as n, d as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { _ as e, g as t, h as n, l as r, m as i, n as a, s as o, t as s, v as c } from "./chunk-K5T4RW27-DI9nuGzI.js";
|
|
2
|
+
//#region node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.mjs
|
|
3
|
+
var l = class extends s {
|
|
4
|
+
static {
|
|
5
|
+
i(this, "PieTokenBuilder");
|
|
6
|
+
}
|
|
7
|
+
constructor() {
|
|
8
|
+
super(["pie", "showData"]);
|
|
9
|
+
}
|
|
10
|
+
}, u = class extends a {
|
|
11
|
+
static {
|
|
12
|
+
i(this, "PieValueConverter");
|
|
13
|
+
}
|
|
14
|
+
runCustomConverter(e, t, n) {
|
|
15
|
+
if (e.name === "PIE_SECTION_LABEL") return t.replace(/"/g, "").trim();
|
|
16
|
+
}
|
|
17
|
+
}, d = { parser: {
|
|
18
|
+
TokenBuilder: /* @__PURE__ */ i(() => new l(), "TokenBuilder"),
|
|
19
|
+
ValueConverter: /* @__PURE__ */ i(() => new u(), "ValueConverter")
|
|
20
|
+
} };
|
|
21
|
+
function f(i = n) {
|
|
22
|
+
let a = t(c(i), o), s = t(e({ shared: a }), r, d);
|
|
23
|
+
return a.ServiceRegistry.register(s), {
|
|
24
|
+
shared: a,
|
|
25
|
+
Pie: s
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
i(f, "createPieServices");
|
|
29
|
+
//#endregion
|
|
30
|
+
export { f as n, d as t };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { h as e } from "./src-D7IEzgYM.js";
|
|
2
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.mjs
|
|
3
|
+
var t = /* @__PURE__ */ e((e, t) => {
|
|
4
|
+
if (t) return "translate(" + -e.width / 2 + ", " + -e.height / 2 + ")";
|
|
5
|
+
let n = e.x ?? 0, r = e.y ?? 0;
|
|
6
|
+
return "translate(" + -(n + e.width / 2) + ", " + -(r + e.height / 2) + ")";
|
|
7
|
+
}, "computeLabelTransform"), n = {
|
|
8
|
+
aggregation: 17.25,
|
|
9
|
+
extension: 17.25,
|
|
10
|
+
composition: 17.25,
|
|
11
|
+
dependency: 6,
|
|
12
|
+
lollipop: 13.5,
|
|
13
|
+
arrow_point: 4,
|
|
14
|
+
arrow_barb: 0,
|
|
15
|
+
arrow_barb_neo: 5.5
|
|
16
|
+
}, r = {
|
|
17
|
+
arrow_point: 4,
|
|
18
|
+
arrow_cross: 12.5,
|
|
19
|
+
arrow_circle: 12.5
|
|
20
|
+
};
|
|
21
|
+
function i(e, t) {
|
|
22
|
+
if (e === void 0 || t === void 0) return {
|
|
23
|
+
angle: 0,
|
|
24
|
+
deltaX: 0,
|
|
25
|
+
deltaY: 0
|
|
26
|
+
};
|
|
27
|
+
e = a(e), t = a(t);
|
|
28
|
+
let [n, r] = [e.x, e.y], [i, o] = [t.x, t.y], s = i - n, c = o - r;
|
|
29
|
+
return {
|
|
30
|
+
angle: Math.atan(c / s),
|
|
31
|
+
deltaX: s,
|
|
32
|
+
deltaY: c
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
e(i, "calculateDeltaAndAngle");
|
|
36
|
+
var a = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
|
|
37
|
+
x: e[0],
|
|
38
|
+
y: e[1]
|
|
39
|
+
} : e, "pointTransformer"), o = /* @__PURE__ */ e((t) => ({
|
|
40
|
+
x: /* @__PURE__ */ e(function(e, r, o) {
|
|
41
|
+
let s = 0, c = a(o[0]).x < a(o[o.length - 1]).x ? "left" : "right";
|
|
42
|
+
if (r === 0 && Object.hasOwn(n, t.arrowTypeStart)) {
|
|
43
|
+
let { angle: e, deltaX: r } = i(o[0], o[1]);
|
|
44
|
+
s = n[t.arrowTypeStart] * Math.cos(e) * (r >= 0 ? 1 : -1);
|
|
45
|
+
} else if (r === o.length - 1 && Object.hasOwn(n, t.arrowTypeEnd)) {
|
|
46
|
+
let { angle: e, deltaX: r } = i(o[o.length - 1], o[o.length - 2]);
|
|
47
|
+
s = n[t.arrowTypeEnd] * Math.cos(e) * (r >= 0 ? 1 : -1);
|
|
48
|
+
}
|
|
49
|
+
let l = Math.abs(a(e).x - a(o[o.length - 1]).x), u = Math.abs(a(e).y - a(o[o.length - 1]).y), d = Math.abs(a(e).x - a(o[0]).x), f = Math.abs(a(e).y - a(o[0]).y), p = n[t.arrowTypeStart], m = n[t.arrowTypeEnd];
|
|
50
|
+
if (l < m && l > 0 && u < m) {
|
|
51
|
+
let e = m + 1 - l;
|
|
52
|
+
e *= c === "right" ? -1 : 1, s -= e;
|
|
53
|
+
}
|
|
54
|
+
if (d < p && d > 0 && f < p) {
|
|
55
|
+
let e = p + 1 - d;
|
|
56
|
+
e *= c === "right" ? -1 : 1, s += e;
|
|
57
|
+
}
|
|
58
|
+
return a(e).x + s;
|
|
59
|
+
}, "x"),
|
|
60
|
+
y: /* @__PURE__ */ e(function(e, r, o) {
|
|
61
|
+
let s = 0, c = a(o[0]).y < a(o[o.length - 1]).y ? "down" : "up";
|
|
62
|
+
if (r === 0 && Object.hasOwn(n, t.arrowTypeStart)) {
|
|
63
|
+
let { angle: e, deltaY: r } = i(o[0], o[1]);
|
|
64
|
+
s = n[t.arrowTypeStart] * Math.abs(Math.sin(e)) * (r >= 0 ? 1 : -1);
|
|
65
|
+
} else if (r === o.length - 1 && Object.hasOwn(n, t.arrowTypeEnd)) {
|
|
66
|
+
let { angle: e, deltaY: r } = i(o[o.length - 1], o[o.length - 2]);
|
|
67
|
+
s = n[t.arrowTypeEnd] * Math.abs(Math.sin(e)) * (r >= 0 ? 1 : -1);
|
|
68
|
+
}
|
|
69
|
+
let l = Math.abs(a(e).y - a(o[o.length - 1]).y), u = Math.abs(a(e).x - a(o[o.length - 1]).x), d = Math.abs(a(e).y - a(o[0]).y), f = Math.abs(a(e).x - a(o[0]).x), p = n[t.arrowTypeStart], m = n[t.arrowTypeEnd];
|
|
70
|
+
if (l < m && l > 0 && u < m) {
|
|
71
|
+
let e = m + 1 - l;
|
|
72
|
+
e *= c === "up" ? -1 : 1, s -= e;
|
|
73
|
+
}
|
|
74
|
+
if (d < p && d > 0 && f < p) {
|
|
75
|
+
let e = p + 1 - d;
|
|
76
|
+
e *= c === "up" ? -1 : 1, s += e;
|
|
77
|
+
}
|
|
78
|
+
return a(e).y + s;
|
|
79
|
+
}, "y")
|
|
80
|
+
}), "getLineFunctionsWithOffset");
|
|
81
|
+
//#endregion
|
|
82
|
+
export { r as i, o as n, n as r, t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { _ as e, g as t, h as n, m as r, n as i, p as a, s as o, v as s } from "./chunk-K5T4RW27-DI9nuGzI.js";
|
|
2
|
+
//#region node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.mjs
|
|
3
|
+
var c = class extends i {
|
|
4
|
+
static {
|
|
5
|
+
r(this, "WardleyValueConverter");
|
|
6
|
+
}
|
|
7
|
+
runCustomConverter(e, t, n) {
|
|
8
|
+
switch (e.name.toUpperCase()) {
|
|
9
|
+
case "LINK_LABEL": return t.substring(1).trim();
|
|
10
|
+
default: return;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}, l = { parser: { ValueConverter: /* @__PURE__ */ r(() => new c(), "ValueConverter") } };
|
|
14
|
+
function u(r = n) {
|
|
15
|
+
let i = t(s(r), o), c = t(e({ shared: i }), a, l);
|
|
16
|
+
return i.ServiceRegistry.register(c), {
|
|
17
|
+
shared: i,
|
|
18
|
+
Wardley: c
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
r(u, "createWardleyServices");
|
|
22
|
+
//#endregion
|
|
23
|
+
export { u as n, l as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { g as e, h as t } from "./src-D7IEzgYM.js";
|
|
2
|
+
import { c as n } from "./chunk-ICPOFSXX-B9lsZaK9.js";
|
|
3
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.mjs
|
|
4
|
+
var r = /* @__PURE__ */ t((t, r, o, s) => {
|
|
5
|
+
t.attr("class", o);
|
|
6
|
+
let { width: c, height: l, x: u, y: d } = i(t, r);
|
|
7
|
+
n(t, l, c, s);
|
|
8
|
+
let f = a(u, d, c, l, r);
|
|
9
|
+
t.attr("viewBox", f), e.debug(`viewBox configured: ${f} with padding: ${r}`);
|
|
10
|
+
}, "setupViewPortForSVG"), i = /* @__PURE__ */ t((e, t) => {
|
|
11
|
+
let n = e.node()?.getBBox() || {
|
|
12
|
+
width: 0,
|
|
13
|
+
height: 0,
|
|
14
|
+
x: 0,
|
|
15
|
+
y: 0
|
|
16
|
+
};
|
|
17
|
+
return {
|
|
18
|
+
width: n.width + t * 2,
|
|
19
|
+
height: n.height + t * 2,
|
|
20
|
+
x: n.x,
|
|
21
|
+
y: n.y
|
|
22
|
+
};
|
|
23
|
+
}, "calculateDimensionsWithPadding"), a = /* @__PURE__ */ t((e, t, n, r, i) => `${e - i} ${t - i} ${n} ${r}`, "createViewBox");
|
|
24
|
+
//#endregion
|
|
25
|
+
export { r as t };
|