@umami/shiso 1.12.0 → 1.13.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/chunks/App.js +76 -49
- package/dist/chunks/abnfDiagram-VCTEODGH.js +109 -0
- package/dist/chunks/arc.js +130 -0
- package/dist/chunks/architecture-7GRP2DOG.js +4 -0
- package/dist/chunks/architectureDiagram-5GKGNRK7.js +7466 -0
- package/dist/chunks/array.js +8 -0
- package/dist/chunks/blockDiagram-I7D4REHJ.js +2546 -0
- package/dist/chunks/c4Diagram-7LVT6UL2.js +3654 -0
- package/dist/chunks/channel.js +9 -0
- package/dist/chunks/chunk-2Q5K7J3B.js +21 -0
- package/dist/chunks/chunk-4HAMMTFA.js +6106 -0
- package/dist/chunks/chunk-5VM5RSS4.js +21 -0
- package/dist/chunks/chunk-75Z2AOVW.js +2185 -0
- package/dist/chunks/chunk-DU6HZSFF.js +8729 -0
- package/dist/chunks/chunk-F27PBJKO.js +95 -0
- package/dist/chunks/chunk-FOHPRMQF.js +27162 -0
- package/dist/chunks/chunk-GMAD6QVW.js +2369 -0
- package/dist/chunks/chunk-GVQU2GXP.js +58 -0
- package/dist/chunks/chunk-IMKFNOWR.js +2593 -0
- package/dist/chunks/chunk-JWPE2WC7.js +12 -0
- package/dist/chunks/chunk-L3NEJ4N5.js +420 -0
- package/dist/chunks/chunk-OSK3NFVY.js +1029 -0
- package/dist/chunks/chunk-P2QGCYS3.js +95 -0
- package/dist/chunks/chunk-POPQ4Y6H.js +33 -0
- package/dist/chunks/chunk-PWAF6VOD.js +467 -0
- package/dist/chunks/chunk-SHT3W25Y.js +4813 -0
- package/dist/chunks/chunk-SVP7TREG.js +686 -0
- package/dist/chunks/chunk-TICWLB2K.js +3800 -0
- package/dist/chunks/chunk-XXDRQBXY.js +12 -0
- package/dist/chunks/chunk-Y2CYZVJY.js +15 -0
- package/dist/chunks/classDiagram-ZZMXUADV.js +33 -0
- package/dist/chunks/classDiagram-v2-VYDZK3BY.js +33 -0
- package/dist/chunks/cose-bilkent-JH36ORCC.js +4268 -0
- package/dist/chunks/cynefin-OW5HDTMX.js +4 -0
- package/dist/chunks/cynefinDiagram-5FMLGOSQ.js +482 -0
- package/dist/chunks/cytoscape.esm.js +28282 -0
- package/dist/chunks/dagre-GXQ25YYZ.js +583 -0
- package/dist/chunks/dagre.js +4235 -0
- package/dist/chunks/defaultLocale.js +246 -0
- package/dist/chunks/diagram-S7CK7UJ4.js +402 -0
- package/dist/chunks/diagram-UQ7AKVKN.js +291 -0
- package/dist/chunks/diagram-VSXAHHWV.js +553 -0
- package/dist/chunks/diagram-VX7I27RA.js +798 -0
- package/dist/chunks/diagram-Z3DM3KII.js +186 -0
- package/dist/chunks/dist.js +92 -0
- package/dist/chunks/docs.js +987 -91
- package/dist/chunks/ebnfDiagram-PWID7BFC.js +123 -0
- package/dist/chunks/erDiagram-RLTQ6QDP.js +2295 -0
- package/dist/chunks/eventmodeling-NTZA5JFV.js +4 -0
- package/dist/chunks/flowDiagram-HODETNUW.js +17 -0
- package/dist/chunks/ganttDiagram-EL5Y4UJY.js +3928 -0
- package/dist/chunks/gitGraph-4MIJSDKK.js +4 -0
- package/dist/chunks/gitGraphDiagram-WWUBYQGX.js +1153 -0
- package/dist/chunks/graphlib.js +4194 -0
- package/dist/chunks/info-A6RAGUB7.js +4 -0
- package/dist/chunks/infoDiagram-27XIBGKW.js +25 -0
- package/dist/chunks/init.js +14 -0
- package/dist/chunks/ishikawaDiagram-5VMMS53U.js +971 -0
- package/dist/chunks/journeyDiagram-3NMN7TZE.js +1226 -0
- package/dist/chunks/kanban-definition-UXKFOSKX.js +1241 -0
- package/dist/chunks/katex.js +26463 -0
- package/dist/chunks/line.js +48 -0
- package/dist/chunks/linear.js +391 -0
- package/dist/chunks/mermaid-parser.core.js +754 -0
- package/dist/chunks/mermaid.core.js +4898 -0
- package/dist/chunks/mindmap-definition-YA3MSWOX.js +1309 -0
- package/dist/chunks/ordinal.js +84 -0
- package/dist/chunks/packet-AYTQ26CC.js +4 -0
- package/dist/chunks/path.js +106 -0
- package/dist/chunks/pegDiagram-XKGWAZYB.js +115 -0
- package/dist/chunks/pie-WAS4IAKB.js +4 -0
- package/dist/chunks/pieDiagram-E7YTZNPT.js +297 -0
- package/dist/chunks/quadrantDiagram-AXDQQJYC.js +2234 -0
- package/dist/chunks/radar-RG4KPBEZ.js +4 -0
- package/dist/chunks/railroad-74A4TZTK.js +4 -0
- package/dist/chunks/railroad-abnf-HS5TGJTU.js +4 -0
- package/dist/chunks/railroad-ebnf-LZEXJU2U.js +4 -0
- package/dist/chunks/railroad-peg-WCYAUIDC.js +4 -0
- package/dist/chunks/railroadDiagram-O6MQD6OU.js +89 -0
- package/dist/chunks/requirementDiagram-BXWQKSXE.js +2464 -0
- package/dist/chunks/rough.esm.js +1396 -0
- package/dist/chunks/sankeyDiagram-P5KCCOFB.js +1308 -0
- package/dist/chunks/sequenceDiagram-WJ2MYXX4.js +5445 -0
- package/dist/chunks/sizeCapture-INFHLROL.js +56 -0
- package/dist/chunks/src.js +2653 -0
- package/dist/chunks/stateDiagram-D77RDMKH.js +368 -0
- package/dist/chunks/stateDiagram-v2-MP3YSRHH.js +33 -0
- package/dist/chunks/swimlanes-42K2YHIH.js +6925 -0
- package/dist/chunks/swimlanesDiagram-VR7AAH4N.js +32 -0
- package/dist/chunks/timeline-definition-24CTP7MA.js +1507 -0
- package/dist/chunks/treeView-Q6P3EWNA.js +4 -0
- package/dist/chunks/treemap-WGGIJYW6.js +4 -0
- package/dist/chunks/vennDiagram-4TSXK5OY.js +2803 -0
- package/dist/chunks/wardley-WFR3VGLG.js +4 -0
- package/dist/chunks/wardleyDiagram-VM6X3IG4.js +877 -0
- package/dist/chunks/xychartDiagram-S5SC5T6Z.js +2698 -0
- package/dist/components.js +2 -2
- package/dist/entry-client.js +1 -1
- package/dist/entry-server.js +1 -1
- package/docs.schema.json +1 -1
- package/package.json +2 -1
- package/scripts/expand-navigation-globs.mjs +77 -8
- package/src/components/CodeBlock.tsx +36 -0
- package/src/components/Docs.tsx +44 -21
- package/src/components/OpenApiOperation.tsx +28 -20
- package/src/components/SideNav.tsx +8 -3
- package/src/components/docs/Changelog.tsx +163 -0
- package/src/components/docs/Mermaid.tsx +164 -0
- package/src/components/docs/Panel.tsx +23 -0
- package/src/components/docs/ParamField.tsx +17 -5
- package/src/components/docs/PropertiesTable.tsx +2 -2
- package/src/components/docs/ResponseField.tsx +17 -5
- package/src/components/docs/Tiles.tsx +59 -0
- package/src/components/docs/Tree.tsx +359 -0
- package/src/components/docs/Update.tsx +72 -0
- package/src/components/docs/index.ts +7 -0
- package/src/components/docs/panel-context.tsx +25 -0
- package/src/components/docs/styles.ts +49 -0
- package/src/components/icons/index.ts +4 -0
- package/src/lib/rehype-shiki.ts +18 -1
- package/types/components.d.ts +79 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { n as __name } from "./chunk-Y2CYZVJY.js";
|
|
2
|
+
import { p as select_default } from "./src.js";
|
|
3
|
+
import { j as lineBreakRegex } from "./chunk-DU6HZSFF.js";
|
|
4
|
+
import { t as require_dist } from "./dist.js";
|
|
5
|
+
|
|
6
|
+
//#region ../../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/chunk-F27PBJKO.mjs
|
|
7
|
+
var import_dist = require_dist();
|
|
8
|
+
var drawRect = /* @__PURE__ */ __name((element, rectData) => {
|
|
9
|
+
const rectElement = element.append("rect");
|
|
10
|
+
rectElement.attr("x", rectData.x);
|
|
11
|
+
rectElement.attr("y", rectData.y);
|
|
12
|
+
rectElement.attr("fill", rectData.fill);
|
|
13
|
+
rectElement.attr("stroke", rectData.stroke);
|
|
14
|
+
rectElement.attr("width", rectData.width);
|
|
15
|
+
rectElement.attr("height", rectData.height);
|
|
16
|
+
if (rectData.name) rectElement.attr("name", rectData.name);
|
|
17
|
+
if (rectData.rx) rectElement.attr("rx", rectData.rx);
|
|
18
|
+
if (rectData.ry) rectElement.attr("ry", rectData.ry);
|
|
19
|
+
if (rectData.attrs !== void 0) for (const attrKey in rectData.attrs) rectElement.attr(attrKey, rectData.attrs[attrKey]);
|
|
20
|
+
if (rectData.class) rectElement.attr("class", rectData.class);
|
|
21
|
+
return rectElement;
|
|
22
|
+
}, "drawRect");
|
|
23
|
+
var drawBackgroundRect = /* @__PURE__ */ __name((element, bounds) => {
|
|
24
|
+
drawRect(element, {
|
|
25
|
+
x: bounds.startx,
|
|
26
|
+
y: bounds.starty,
|
|
27
|
+
width: bounds.stopx - bounds.startx,
|
|
28
|
+
height: bounds.stopy - bounds.starty,
|
|
29
|
+
fill: bounds.fill,
|
|
30
|
+
stroke: bounds.stroke,
|
|
31
|
+
class: "rect"
|
|
32
|
+
}).lower();
|
|
33
|
+
}, "drawBackgroundRect");
|
|
34
|
+
var drawText = /* @__PURE__ */ __name((element, textData) => {
|
|
35
|
+
const nText = textData.text.replace(lineBreakRegex, " ");
|
|
36
|
+
const textElem = element.append("text");
|
|
37
|
+
textElem.attr("x", textData.x);
|
|
38
|
+
textElem.attr("y", textData.y);
|
|
39
|
+
textElem.attr("class", "legend");
|
|
40
|
+
textElem.style("text-anchor", textData.anchor);
|
|
41
|
+
if (textData.class) textElem.attr("class", textData.class);
|
|
42
|
+
const tspan = textElem.append("tspan");
|
|
43
|
+
tspan.attr("x", textData.x + textData.textMargin * 2);
|
|
44
|
+
tspan.text(nText);
|
|
45
|
+
return textElem;
|
|
46
|
+
}, "drawText");
|
|
47
|
+
var drawImage = /* @__PURE__ */ __name((elem, x, y, link) => {
|
|
48
|
+
const imageElement = elem.append("image");
|
|
49
|
+
imageElement.attr("x", x);
|
|
50
|
+
imageElement.attr("y", y);
|
|
51
|
+
const sanitizedLink = (0, import_dist.sanitizeUrl)(link);
|
|
52
|
+
imageElement.attr("xlink:href", sanitizedLink);
|
|
53
|
+
}, "drawImage");
|
|
54
|
+
var drawEmbeddedImage = /* @__PURE__ */ __name((element, x, y, link) => {
|
|
55
|
+
const imageElement = element.append("use");
|
|
56
|
+
imageElement.attr("x", x);
|
|
57
|
+
imageElement.attr("y", y);
|
|
58
|
+
const sanitizedLink = (0, import_dist.sanitizeUrl)(link);
|
|
59
|
+
imageElement.attr("xlink:href", `#${sanitizedLink}`);
|
|
60
|
+
}, "drawEmbeddedImage");
|
|
61
|
+
var getNoteRect = /* @__PURE__ */ __name(() => {
|
|
62
|
+
return {
|
|
63
|
+
x: 0,
|
|
64
|
+
y: 0,
|
|
65
|
+
width: 100,
|
|
66
|
+
height: 100,
|
|
67
|
+
fill: "#EDF2AE",
|
|
68
|
+
stroke: "#666",
|
|
69
|
+
anchor: "start",
|
|
70
|
+
rx: 0,
|
|
71
|
+
ry: 0
|
|
72
|
+
};
|
|
73
|
+
}, "getNoteRect");
|
|
74
|
+
var getTextObj = /* @__PURE__ */ __name(() => {
|
|
75
|
+
return {
|
|
76
|
+
x: 0,
|
|
77
|
+
y: 0,
|
|
78
|
+
width: 100,
|
|
79
|
+
height: 100,
|
|
80
|
+
"text-anchor": "start",
|
|
81
|
+
style: "#666",
|
|
82
|
+
textMargin: 0,
|
|
83
|
+
rx: 0,
|
|
84
|
+
ry: 0,
|
|
85
|
+
tspan: true
|
|
86
|
+
};
|
|
87
|
+
}, "getTextObj");
|
|
88
|
+
var createTooltip = /* @__PURE__ */ __name(() => {
|
|
89
|
+
let tooltipElem = select_default(".mermaidTooltip");
|
|
90
|
+
if (tooltipElem.empty()) tooltipElem = select_default("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");
|
|
91
|
+
return tooltipElem;
|
|
92
|
+
}, "createTooltip");
|
|
93
|
+
|
|
94
|
+
//#endregion
|
|
95
|
+
export { drawRect as a, getTextObj as c, drawImage as i, drawBackgroundRect as n, drawText as o, drawEmbeddedImage as r, getNoteRect as s, createTooltip as t };
|