@belonguniverseai/react-sdk 0.6.2 → 0.6.3
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/api/agent-grants.d.ts +6 -0
- package/dist/api/client.d.ts +30 -1
- package/dist/app/call-summary.d.ts +30 -0
- package/dist/component/abnfDiagram-N423BO3Z-C1O9dfJJ.js +90 -0
- package/dist/component/arc-Cpnt_LFj.js +86 -0
- package/dist/component/{architectureDiagram-3BPJPVTR-DYcaPx2M.js → architectureDiagram-T3A2C74G-iakL6yUj.js} +1872 -1785
- package/dist/component/{blockDiagram-GPEHLZMM-BdjruLO5.js → blockDiagram-VBNYF7ZC-D7t0jIvW.js} +895 -894
- package/dist/component/{c4Diagram-AAUBKEIU-Bd2ebSgB.js → c4Diagram-5PPSVZJV-CRX1o0CJ.js} +3 -3
- package/dist/component/{channel-CYFijF_t.js → channel-DnM50Ep0.js} +2 -2
- package/dist/component/{chunk-ND2GUHAM-OX1-DIU1.js → chunk-2GRJ4B5K-ChTMjM-v.js} +5 -5
- package/dist/component/{chunk-QZHKN3VN-DLQ8oUCc.js → chunk-2Q5K7J3B-F2Rpvtwm.js} +2 -2
- package/dist/component/{chunk-AQP2D5EJ-D4G4syYu.js → chunk-5RXB4S5H-B1WLx-ex.js} +399 -378
- package/dist/component/{chunk-FMBD7UC4-CbRxWx_A.js → chunk-5VM5RSS4-D35VMAuN.js} +2 -2
- package/dist/component/chunk-6Q2QTUOP-DGVp_gyk.js +673 -0
- package/dist/component/{chunk-727SXJPM-A5r5oL1_.js → chunk-GF5L2VYU-CZOQEv_q.js} +244 -239
- package/dist/component/{chunk-4BX2VUAB-DVpS0I_p.js → chunk-JWPE2WC7-BbwyDj9g.js} +2 -2
- package/dist/component/{chunk-2J33WTMH-B06Y_xVy.js → chunk-KBJHAD2P-B9qL0VLM.js} +2 -2
- package/dist/component/chunk-RYQCIY6F-5eaMbXXL.js +316 -0
- package/dist/component/{chunk-55IACEB6-DmZctFkK.js → chunk-XXDRQBXY-XJadTIK5.js} +2 -2
- package/dist/component/{classDiagram-4FO5ZUOK-4S9mdFC1.js → classDiagram-JCYQIIEL-DVaEk7uT.js} +3 -3
- package/dist/component/{classDiagram-v2-Q7XG4LA2-4S9mdFC1.js → classDiagram-v2-OCEON4UE-DVaEk7uT.js} +3 -3
- package/dist/component/{cose-bilkent-S5V4N54A-BIrVaakt.js → cose-bilkent-JH36ORCC-DZA30AqI.js} +2 -2
- package/dist/component/{wardley-L42UT6IY-HA1eSIS_.js → cynefin-VYW2F7L2-DAyxamLw.js} +9199 -7918
- package/dist/component/cynefinDiagram-MW4NZA55-CutZScTQ.js +302 -0
- package/dist/component/dagre-VZM6K2ZE-CelPLP8N.js +343 -0
- package/dist/component/diagram-7IWD3JNH-Cr5piwKc.js +353 -0
- package/dist/component/{diagram-KO2AKTUF-Da1E68Eo.js → diagram-B4RE2ZJO-DgLNdZkh.js} +24 -24
- package/dist/component/{diagram-LMA3HP47-dRbk5sBa.js → diagram-LBJQPF4R-DxeIMTjN.js} +23 -23
- package/dist/component/{diagram-OG6HWLK6-CcKT8mhn.js → diagram-Q27KOJAE-WACyk_gr.js} +197 -197
- package/dist/component/diagram-UB23O5K3-DbhVYU5T.js +222 -0
- package/dist/component/ebnfDiagram-BXEA7PRR-DoGrYW10.js +112 -0
- package/dist/component/{erDiagram-TEJ5UH35-3ATYT9J-.js → erDiagram-JOGREHBK-BgewA6fH.js} +142 -131
- package/dist/component/{flowDiagram-I6XJVG4X-D9PLm9Od.js → flowDiagram-UKHOOZJN-1YmYJYcE.js} +268 -258
- package/dist/component/ganttDiagram-PKOTCBZU-BFAEPYkH.js +2714 -0
- package/dist/component/{gitGraphDiagram-PVQCEYII-13gVhAGc.js → gitGraphDiagram-DS77QQ5N-CSiPuE-l.js} +33 -33
- package/dist/component/{graph-BZLHvygk.js → graph-CWpEkm4G.js} +35 -35
- package/dist/component/{highlighted-body-OFNGDK62-DCxRI4UV.js → highlighted-body-OFNGDK62-CSJNGt18.js} +2 -2
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-5YYISTIA-DymxA7AN.js → infoDiagram-6WML65LV-CoMVfONe.js} +4 -4
- package/dist/component/{ishikawaDiagram-YF4QCWOH-C3sTn76C.js → ishikawaDiagram-WSZJBQD7-B2YEkQ4b.js} +27 -27
- package/dist/component/{journeyDiagram-JHISSGLW-Cq0hOAfJ.js → journeyDiagram-NVQOT4AX-B7b5ZwlF.js} +5 -5
- package/dist/component/{kanban-definition-UN3LZRKU-5tBWjkp7.js → kanban-definition-27J2QSJJ-C9GPAsBR.js} +35 -35
- package/dist/component/layout-Br2UjHRU.js +1522 -0
- package/dist/component/{linear-BT4blD8s.js → linear-Bi0C-9d1.js} +13 -13
- package/dist/component/map-CdwokNh2.js +227 -0
- package/dist/component/{mermaid-GHXKKRXX-DXPXjnb7.js → mermaid-GHXKKRXX-BaBCeViM.js} +25220 -24784
- package/dist/component/{mindmap-definition-RKZ34NQL-DO-OuAQQ.js → mindmap-definition-FAOFIHXS-tHIAo7Ms.js} +26 -26
- package/dist/component/pegDiagram-VL7TDLO6-Db_7lLRV.js +98 -0
- package/dist/component/pieDiagram-7S7Q4E2Y-C4fs4XCK.js +210 -0
- package/dist/component/{quadrantDiagram-W4KKPZXB-CaJWg9ep.js → quadrantDiagram-CIZ2JOQS-Bw7vXO0q.js} +14 -15
- package/dist/component/railroadDiagram-AXF67PYL-kY0VoZEg.js +80 -0
- package/dist/component/{requirementDiagram-4Y6WPE33-CmZrtZqe.js → requirementDiagram-LRYGKXZP-BkNtSZm5.js} +15 -15
- package/dist/component/{sankeyDiagram-5OEKKPKP-Cp95M1aj.js → sankeyDiagram-W5VNT64P-BK_C1BYE.js} +2 -2
- package/dist/component/{sequenceDiagram-3UESZ5HK-C0x0WvhR.js → sequenceDiagram-SI44F4Z6-CEmgVZaE.js} +960 -963
- package/dist/component/sizeCapture-X5ZJPWSS-J5ZNXT4c.js +49 -0
- package/dist/component/{stateDiagram-AJRCARHV-H10vaGL3.js → stateDiagram-OKZ733FA-DrwrNuNs.js} +5 -5
- package/dist/component/{stateDiagram-v2-BHNVJYJU-rj7ljkc-.js → stateDiagram-v2-UEYNNEHI-DHD85VTD.js} +3 -3
- package/dist/component/swimlanes-SLNWSIFB-FOK5tys1.js +5335 -0
- package/dist/component/swimlanesDiagram-ULZ7WXOC-edTvZTge.js +16 -0
- package/dist/component/{timeline-definition-PNZ67QCA-Cil1QaqZ.js → timeline-definition-Z64GVDOM-Cc4fTsjY.js} +15 -15
- package/dist/component/vennDiagram-T6HMQDX7-DYZl8srI.js +1581 -0
- package/dist/component/{wardleyDiagram-YWT4CUSO-Xq5Hnmio.js → wardleyDiagram-T6FBY63Y-BEvv3PjS.js} +15 -15
- package/dist/component/{xychartDiagram-2RQKCTM6-dinwR4Zm.js → xychartDiagram-ELKLHX3M-79AgTtk-.js} +464 -418
- package/dist/embed/voice/line-slots.d.ts +37 -2
- package/dist/embed/voice-call.d.ts +12 -0
- package/dist/i18n/messages/en.d.ts +1 -2
- package/dist/lib/web-storage.d.ts +8 -0
- package/dist/stream/stream-state-store.d.ts +13 -0
- package/dist/types/public.d.ts +3 -0
- package/package.json +1 -1
- package/dist/component/arc-TLcl3N8_.js +0 -86
- package/dist/component/dagre-BM42HDAG-BoPUzTvD.js +0 -448
- package/dist/component/diagram-2AECGRRQ-PIXCGxIt.js +0 -220
- package/dist/component/diagram-5GNKFQAL-CbJxbGBh.js +0 -126
- package/dist/component/ganttDiagram-6RSMTGT7-F_XUzD1p.js +0 -2709
- package/dist/component/layout-Bu6nRdWm.js +0 -1731
- package/dist/component/pieDiagram-4H26LBE5-BkEktPwZ.js +0 -166
- package/dist/component/vennDiagram-CIIHVFJN-Dk8PKmfb.js +0 -1560
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import { I as X } from "./chunk-2Q5K7J3B-F2Rpvtwm.js";
|
|
2
|
+
import { p as G } from "./chunk-JWPE2WC7-BbwyDj9g.js";
|
|
3
|
+
import { o as O, b as Y, s as P, p as F, g as j, a as q, _ as g, D as A, l as D, G as Z, e as U, z as E, q as J, i as K, al as Q, E as ee, am as te } from "./mermaid-GHXKKRXX-BaBCeViM.js";
|
|
4
|
+
import { p as ne } from "./cynefin-VYW2F7L2-DAyxamLw.js";
|
|
5
|
+
globalThis.process = globalThis.process || { env: {} };
|
|
6
|
+
globalThis.global = globalThis.global || globalThis;
|
|
7
|
+
var N = /[─━│┃└┗├┣]/, S = /[└┗├┣]/, re = /[─━]/, B = /^[\s│┃]+$/, V = /^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/, $ = /^\s*%%/, ie = " ";
|
|
8
|
+
function L(n) {
|
|
9
|
+
return n.some((e) => N.test(e));
|
|
10
|
+
}
|
|
11
|
+
g(L, "isBoxDrawingFormat");
|
|
12
|
+
function _(n) {
|
|
13
|
+
for (const e of n) {
|
|
14
|
+
const t = S.exec(e);
|
|
15
|
+
if (t?.index && t.index > 0)
|
|
16
|
+
return t.index;
|
|
17
|
+
}
|
|
18
|
+
return 4;
|
|
19
|
+
}
|
|
20
|
+
g(_, "inferSegmentWidth");
|
|
21
|
+
function M(n, e) {
|
|
22
|
+
return n.replace(/\bline\s+(\d+)\b/gi, (t, r) => {
|
|
23
|
+
const i = parseInt(r, 10), a = e.get(i);
|
|
24
|
+
return a ? `line ${a}` : t;
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
g(M, "remapErrorLines");
|
|
28
|
+
function R(n) {
|
|
29
|
+
const e = n.split(`
|
|
30
|
+
`), t = /* @__PURE__ */ new Map();
|
|
31
|
+
let r = -1;
|
|
32
|
+
for (const [s, o] of e.entries())
|
|
33
|
+
if (o.trim() === "treeView-beta") {
|
|
34
|
+
r = s;
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
if (r === -1)
|
|
38
|
+
return { text: n, lineMap: t };
|
|
39
|
+
const i = [];
|
|
40
|
+
for (let s = r + 1; s < e.length; s++) {
|
|
41
|
+
const o = e[s];
|
|
42
|
+
o.trim() === "" || $.test(o) || V.test(o) || B.test(o) || i.push(o.replace(/\t/g, " "));
|
|
43
|
+
}
|
|
44
|
+
if (!L(i))
|
|
45
|
+
return { text: n, lineMap: t };
|
|
46
|
+
const a = _(i), c = [];
|
|
47
|
+
let l = 0;
|
|
48
|
+
for (let s = 0; s <= r; s++)
|
|
49
|
+
c.push(e[s]), l++, t.set(l, s + 1);
|
|
50
|
+
for (let s = r + 1; s < e.length; s++) {
|
|
51
|
+
const o = e[s], h = o.trim(), p = s + 1;
|
|
52
|
+
if (h === "") {
|
|
53
|
+
c.push(o), l++, t.set(l, p);
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
if ($.test(o)) {
|
|
57
|
+
c.push(o), l++, t.set(l, p);
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
if (V.test(o)) {
|
|
61
|
+
c.push(o), l++, t.set(l, p);
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
if (B.test(o))
|
|
65
|
+
continue;
|
|
66
|
+
const d = o.replace(/\t/g, " "), w = S.exec(d);
|
|
67
|
+
if (w?.index !== void 0) {
|
|
68
|
+
const f = w.index, m = Math.round(f / a) + 1;
|
|
69
|
+
let u = f + 1;
|
|
70
|
+
for (; u < d.length && re.test(d[u]); )
|
|
71
|
+
u++;
|
|
72
|
+
for (; u < d.length && d[u] === " "; )
|
|
73
|
+
u++;
|
|
74
|
+
const v = d.slice(u).trimEnd();
|
|
75
|
+
if (!v)
|
|
76
|
+
throw new Error(
|
|
77
|
+
`Line ${p}: Empty node — expected a filename or directory name after the box-drawing prefix`
|
|
78
|
+
);
|
|
79
|
+
const W = ie.repeat(m);
|
|
80
|
+
c.push(W + v), l++, t.set(l, p);
|
|
81
|
+
} else {
|
|
82
|
+
if (/^[\s─━│┃└┗├┣]+$/.test(d))
|
|
83
|
+
continue;
|
|
84
|
+
if (N.test(d))
|
|
85
|
+
c.push(o), l++, t.set(l, p);
|
|
86
|
+
else {
|
|
87
|
+
if (/^\s+/.test(d))
|
|
88
|
+
throw new Error(
|
|
89
|
+
`Line ${p}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`
|
|
90
|
+
);
|
|
91
|
+
c.push(o), l++, t.set(l, p);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return { text: c.join(`
|
|
96
|
+
`), lineMap: t };
|
|
97
|
+
}
|
|
98
|
+
g(R, "preprocessBoxDrawing");
|
|
99
|
+
var x = new X(() => ({
|
|
100
|
+
cnt: 1,
|
|
101
|
+
stack: [
|
|
102
|
+
{
|
|
103
|
+
id: 0,
|
|
104
|
+
level: -1,
|
|
105
|
+
name: "/",
|
|
106
|
+
nodeType: "directory",
|
|
107
|
+
children: []
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
})), oe = /* @__PURE__ */ g(() => {
|
|
111
|
+
x.reset(), J();
|
|
112
|
+
}, "clear"), se = /* @__PURE__ */ g(() => x.records.stack[0], "getRoot"), ae = /* @__PURE__ */ g(() => x.records.cnt, "getCount"), ce = ee.treeView, le = /* @__PURE__ */ g(() => A(ce, E().treeView), "getConfig"), de = /* @__PURE__ */ g((n, e, t, r, i, a) => {
|
|
113
|
+
for (; n <= x.records.stack[x.records.stack.length - 1].level; )
|
|
114
|
+
x.records.stack.pop();
|
|
115
|
+
const c = {
|
|
116
|
+
id: x.records.cnt++,
|
|
117
|
+
level: n,
|
|
118
|
+
name: e,
|
|
119
|
+
nodeType: t,
|
|
120
|
+
icon: i,
|
|
121
|
+
cssClass: r,
|
|
122
|
+
description: a,
|
|
123
|
+
children: []
|
|
124
|
+
};
|
|
125
|
+
x.records.stack[x.records.stack.length - 1].children.push(c), x.records.stack.push(c);
|
|
126
|
+
}, "addNode"), he = {
|
|
127
|
+
clear: oe,
|
|
128
|
+
addNode: de,
|
|
129
|
+
getRoot: se,
|
|
130
|
+
getCount: ae,
|
|
131
|
+
getConfig: le,
|
|
132
|
+
getAccTitle: q,
|
|
133
|
+
getAccDescription: j,
|
|
134
|
+
getDiagramTitle: F,
|
|
135
|
+
setAccDescription: P,
|
|
136
|
+
setAccTitle: Y,
|
|
137
|
+
setDiagramTitle: O
|
|
138
|
+
}, I = he, pe = /* @__PURE__ */ g((n) => {
|
|
139
|
+
G(n, I);
|
|
140
|
+
for (const e of n.nodes) {
|
|
141
|
+
const t = typeof e.indent == "number" ? e.indent : 0;
|
|
142
|
+
let r = e.name;
|
|
143
|
+
const i = r.endsWith("/");
|
|
144
|
+
i && (r = r.slice(0, -1));
|
|
145
|
+
const a = i ? "directory" : "file", c = e.classAnnotation || void 0, l = e.iconAnnotation, s = l !== void 0 ? l || "none" : void 0, o = e.descAnnotation || void 0, h = o ? K(o, E()) : void 0;
|
|
146
|
+
I.addNode(t, r, a, c, s, h);
|
|
147
|
+
}
|
|
148
|
+
}, "populate"), ge = {
|
|
149
|
+
parse: /* @__PURE__ */ g(async (n) => {
|
|
150
|
+
const { text: e, lineMap: t } = R(n);
|
|
151
|
+
try {
|
|
152
|
+
const r = await ne("treeView", e);
|
|
153
|
+
D.debug(r), pe(r);
|
|
154
|
+
} catch (r) {
|
|
155
|
+
throw t.size > 0 && r instanceof Error && (r.message = M(r.message, t)), r;
|
|
156
|
+
}
|
|
157
|
+
}, "parse")
|
|
158
|
+
}, b = {
|
|
159
|
+
prefix: "mermaid-treeview",
|
|
160
|
+
height: 24,
|
|
161
|
+
width: 24,
|
|
162
|
+
icons: {
|
|
163
|
+
folder: {
|
|
164
|
+
body: '<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'
|
|
165
|
+
},
|
|
166
|
+
file: {
|
|
167
|
+
body: '<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
function z(n, e) {
|
|
172
|
+
const t = e?.filenameIcons?.[n];
|
|
173
|
+
if (t)
|
|
174
|
+
return t;
|
|
175
|
+
const r = n.lastIndexOf(".");
|
|
176
|
+
if (r > 0) {
|
|
177
|
+
const i = n.substring(r).toLowerCase(), a = e?.extensionIcons;
|
|
178
|
+
return a?.[i] ?? a?.[i.slice(1)];
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
g(z, "detectIcon");
|
|
182
|
+
function C(n, e) {
|
|
183
|
+
return n.includes(":") ? n : n in b.icons || !e ? `${b.prefix}:${n}` : `${e}:${n}`;
|
|
184
|
+
}
|
|
185
|
+
g(C, "qualifyIcon");
|
|
186
|
+
function T(n, e) {
|
|
187
|
+
if (n.icon !== "none") {
|
|
188
|
+
if (n.icon)
|
|
189
|
+
return C(n.icon, e.defaultIconPack);
|
|
190
|
+
if (e.showIcons) {
|
|
191
|
+
if (n.nodeType === "file") {
|
|
192
|
+
const t = z(n.name, e);
|
|
193
|
+
if (t === "none")
|
|
194
|
+
return;
|
|
195
|
+
if (t)
|
|
196
|
+
return C(t, e.defaultIconPack);
|
|
197
|
+
}
|
|
198
|
+
return `${b.prefix}:${n.nodeType === "directory" ? "folder" : "file"}`;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
g(T, "getNodeIcon");
|
|
203
|
+
te([
|
|
204
|
+
{
|
|
205
|
+
name: b.prefix,
|
|
206
|
+
icons: b
|
|
207
|
+
}
|
|
208
|
+
]);
|
|
209
|
+
var y = 14, fe = 4, ue = 16, H = /* @__PURE__ */ g((n, e) => `tv-icon-${n}-${e.replace(/[^\w-]/g, "-")}`, "iconSymbolId"), we = /* @__PURE__ */ g(async (n, e, t, r) => {
|
|
210
|
+
const i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ g((s) => {
|
|
211
|
+
const o = T(s, t);
|
|
212
|
+
o && i.add(o), s.children.forEach(a);
|
|
213
|
+
}, "collect");
|
|
214
|
+
if (a(e), i.size === 0)
|
|
215
|
+
return;
|
|
216
|
+
const c = await Promise.all(
|
|
217
|
+
[...i].map(async (s) => ({
|
|
218
|
+
icon: s,
|
|
219
|
+
svg: await Q(s, {
|
|
220
|
+
height: y,
|
|
221
|
+
width: y
|
|
222
|
+
})
|
|
223
|
+
}))
|
|
224
|
+
), l = n.append("defs");
|
|
225
|
+
for (const { icon: s, svg: o } of c)
|
|
226
|
+
l.append("g").attr("id", H(r, s)).html(o);
|
|
227
|
+
}, "injectIconDefs"), me = /* @__PURE__ */ g((n, e, t, r, i, a) => {
|
|
228
|
+
const c = r.append("g");
|
|
229
|
+
let l = "treeView-node-label";
|
|
230
|
+
t.nodeType === "directory" && (l += " treeView-node-dir"), t.cssClass && (l += ` ${t.cssClass}`);
|
|
231
|
+
const s = y + fe, o = T(t, i), h = o !== void 0;
|
|
232
|
+
o && c.append("use").attr("xlink:href", `#${H(a, o)}`).attr("x", n + i.paddingX).attr("y", e + i.paddingY).attr("class", "treeView-node-icon");
|
|
233
|
+
const p = c.append("text").text(t.name).attr("dominant-baseline", "middle").attr("class", l), { height: d, width: w } = p.node().getBBox(), f = d + i.paddingY * 2, m = n + i.paddingX + (h ? s : 0);
|
|
234
|
+
p.attr("x", m), p.attr("y", e + f / 2);
|
|
235
|
+
const u = m + w, v = w + i.paddingX * 2 + (h ? s : 0);
|
|
236
|
+
return t.BBox = { x: n, y: e, width: v, height: f }, t.cssClass?.split(/\s+/).includes("highlight") && c.insert("rect", ":first-child").attr("x", n).attr("y", e + 1).attr("width", 0).attr("height", f - 2).attr("rx", 3).attr("class", "treeView-highlight-bg"), { node: t, nodeGroup: c, labelRightEdge: u, centerY: e + f / 2 };
|
|
237
|
+
}, "positionLabel"), k = /* @__PURE__ */ g((n, e, t, r, i, a) => n.append("line").attr("x1", e).attr("y1", t).attr("x2", r).attr("y2", i).attr("stroke-width", a).attr("class", "treeView-node-line"), "positionLine"), xe = /* @__PURE__ */ g((n, e, t, r) => {
|
|
238
|
+
let i = 0, a = 0;
|
|
239
|
+
const c = [], l = /* @__PURE__ */ g((h, p, d, w) => {
|
|
240
|
+
const f = w * (d.rowIndent + d.paddingX), m = me(f, i, p, h, d, r);
|
|
241
|
+
c.push(m);
|
|
242
|
+
const { height: u, width: v } = p.BBox;
|
|
243
|
+
k(
|
|
244
|
+
h,
|
|
245
|
+
f - d.rowIndent,
|
|
246
|
+
i + u / 2,
|
|
247
|
+
f,
|
|
248
|
+
i + u / 2,
|
|
249
|
+
d.lineThickness
|
|
250
|
+
), a = Math.max(a, f + v), i += u;
|
|
251
|
+
}, "drawNode"), s = /* @__PURE__ */ g((h, p = 0) => {
|
|
252
|
+
l(n, h, t, p), h.children.forEach((m) => {
|
|
253
|
+
s(m, p + 1);
|
|
254
|
+
});
|
|
255
|
+
const { x: d, y: w, height: f } = h.BBox;
|
|
256
|
+
if (h.children.length) {
|
|
257
|
+
const { y: m, height: u } = h.children[h.children.length - 1].BBox;
|
|
258
|
+
k(
|
|
259
|
+
n,
|
|
260
|
+
d + t.paddingX,
|
|
261
|
+
w + f,
|
|
262
|
+
d + t.paddingX,
|
|
263
|
+
m + u / 2 + t.lineThickness / 2,
|
|
264
|
+
t.lineThickness
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
}, "processNode");
|
|
268
|
+
s(e);
|
|
269
|
+
const o = c.filter((h) => h.node.description);
|
|
270
|
+
if (o.length > 0) {
|
|
271
|
+
const p = Math.max(...c.map((d) => d.labelRightEdge)) + ue;
|
|
272
|
+
for (const d of o) {
|
|
273
|
+
const f = d.nodeGroup.append("text").text(d.node.description).attr("dominant-baseline", "middle").attr("class", "treeView-node-description").attr("x", p).attr("y", d.centerY).node().getBBox();
|
|
274
|
+
a = Math.max(a, p + f.width + t.paddingX);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
for (const h of c)
|
|
278
|
+
if (h.node.cssClass?.split(/\s+/).includes("highlight")) {
|
|
279
|
+
const p = h.nodeGroup.select(".treeView-highlight-bg");
|
|
280
|
+
if (!p.empty()) {
|
|
281
|
+
const d = a - h.node.BBox.x + 8;
|
|
282
|
+
p.attr("width", d), a = Math.max(a, h.node.BBox.x + d + 2);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
return { totalHeight: i, totalWidth: a };
|
|
286
|
+
}, "drawTree"), ve = /* @__PURE__ */ g(async (n, e, t, r) => {
|
|
287
|
+
D.debug(`Rendering treeView diagram
|
|
288
|
+
` + n);
|
|
289
|
+
const i = r.db, a = i.getRoot(), c = i.getConfig(), l = Z(e);
|
|
290
|
+
await we(l, a, c, e);
|
|
291
|
+
const s = l.append("g");
|
|
292
|
+
s.attr("class", "tree-view");
|
|
293
|
+
const { totalHeight: o, totalWidth: h } = xe(s, a, c, e);
|
|
294
|
+
l.attr("viewBox", `-${c.lineThickness / 2} 0 ${h} ${o}`), U(l, o, h, c.useMaxWidth);
|
|
295
|
+
}, "draw"), be = {
|
|
296
|
+
draw: ve
|
|
297
|
+
}, Ie = be, Ce = {
|
|
298
|
+
labelFontSize: "16px",
|
|
299
|
+
labelColor: "black",
|
|
300
|
+
lineColor: "black",
|
|
301
|
+
iconColor: "#546e7a",
|
|
302
|
+
descriptionColor: "#6a9955",
|
|
303
|
+
highlightBg: "rgba(255, 193, 7, 0.15)",
|
|
304
|
+
highlightStroke: "#ffc107"
|
|
305
|
+
}, ye = /* @__PURE__ */ g(({
|
|
306
|
+
treeView: n
|
|
307
|
+
}) => {
|
|
308
|
+
const {
|
|
309
|
+
labelFontSize: e,
|
|
310
|
+
labelColor: t,
|
|
311
|
+
lineColor: r,
|
|
312
|
+
iconColor: i,
|
|
313
|
+
descriptionColor: a,
|
|
314
|
+
highlightBg: c,
|
|
315
|
+
highlightStroke: l
|
|
316
|
+
} = A(Ce, n);
|
|
317
|
+
return `
|
|
318
|
+
.treeView-node-label {
|
|
319
|
+
font-size: ${e};
|
|
320
|
+
fill: ${t};
|
|
321
|
+
white-space: pre;
|
|
322
|
+
}
|
|
323
|
+
.treeView-node-dir {
|
|
324
|
+
font-weight: bold;
|
|
325
|
+
}
|
|
326
|
+
.treeView-node-line {
|
|
327
|
+
stroke: ${r};
|
|
328
|
+
}
|
|
329
|
+
.treeView-node-icon {
|
|
330
|
+
color: ${i};
|
|
331
|
+
}
|
|
332
|
+
.treeView-node-description {
|
|
333
|
+
font-size: ${e};
|
|
334
|
+
fill: ${a};
|
|
335
|
+
font-style: italic;
|
|
336
|
+
white-space: pre;
|
|
337
|
+
}
|
|
338
|
+
.treeView-highlight-bg {
|
|
339
|
+
fill: ${c};
|
|
340
|
+
stroke: ${l};
|
|
341
|
+
stroke-width: 1;
|
|
342
|
+
}
|
|
343
|
+
`;
|
|
344
|
+
}, "styles"), Te = ye, Ae = {
|
|
345
|
+
db: I,
|
|
346
|
+
renderer: Ie,
|
|
347
|
+
parser: ge,
|
|
348
|
+
styles: Te
|
|
349
|
+
};
|
|
350
|
+
export {
|
|
351
|
+
Ae as diagram
|
|
352
|
+
};
|
|
353
|
+
//# sourceMappingURL=diagram-7IWD3JNH-Cr5piwKc.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as re } from "./chunk-
|
|
2
|
-
import {
|
|
3
|
-
import { p as pe, i as ve } from "./
|
|
1
|
+
import { p as re } from "./chunk-JWPE2WC7-BbwyDj9g.js";
|
|
2
|
+
import { p as oe, o as se, s as le, g as de, a as ce, b as me, _ as o, l as g, c as R, d as ue, B as xe, q as fe, D as ge, z as M, E as he, i as y, w as P, an as be } from "./mermaid-GHXKKRXX-BaBCeViM.js";
|
|
3
|
+
import { p as pe, i as ve } from "./cynefin-VYW2F7L2-DAyxamLw.js";
|
|
4
4
|
globalThis.process = globalThis.process || { env: {} };
|
|
5
5
|
globalThis.global = globalThis.global || globalThis;
|
|
6
|
-
var
|
|
6
|
+
var D = "position frame", $ = "frame positioned", S = "position relation", N = "relation positioned", we = /* @__PURE__ */ o(function(e) {
|
|
7
7
|
g.debug("options str", e);
|
|
8
8
|
}, "setOptions"), ye = /* @__PURE__ */ o(function() {
|
|
9
9
|
return {};
|
|
@@ -24,15 +24,15 @@ function O() {
|
|
|
24
24
|
if (!n)
|
|
25
25
|
throw new Error("No data for EventModel");
|
|
26
26
|
return n.frames.forEach((i, a) => {
|
|
27
|
-
const r =
|
|
27
|
+
const r = G(i, n.dataEntities, t);
|
|
28
28
|
e = v(e, {
|
|
29
|
-
$kind:
|
|
29
|
+
$kind: D,
|
|
30
30
|
index: a,
|
|
31
31
|
frame: i,
|
|
32
32
|
textProps: r
|
|
33
33
|
});
|
|
34
34
|
let l;
|
|
35
|
-
|
|
35
|
+
K(i) ? (g.debug("source frame", i.sourceFrames), l = n.frames.filter((d) => i.sourceFrames.some((c) => c.$refText === d.name)), l.forEach((d) => {
|
|
36
36
|
e = v(e, {
|
|
37
37
|
$kind: S,
|
|
38
38
|
index: a,
|
|
@@ -149,7 +149,7 @@ function _(e, n) {
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
o(_, "calculateSwimlaneProps");
|
|
152
|
-
function
|
|
152
|
+
function L(e) {
|
|
153
153
|
const { themeVariables: n } = M();
|
|
154
154
|
switch (e.modelEntityType) {
|
|
155
155
|
case "ui":
|
|
@@ -188,8 +188,8 @@ function G(e) {
|
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
o(
|
|
192
|
-
function
|
|
191
|
+
o(L, "calculateEntityVisualProps");
|
|
192
|
+
function G(e, n, t) {
|
|
193
193
|
const i = M(), a = y(H(e.entityIdentifier) ?? "", i);
|
|
194
194
|
let r;
|
|
195
195
|
const l = {
|
|
@@ -219,14 +219,14 @@ function L(e, n, t) {
|
|
|
219
219
|
};
|
|
220
220
|
return g.debug(`[${e.name}] ${e.entityIdentifier} text`, f), f;
|
|
221
221
|
}
|
|
222
|
-
o(
|
|
222
|
+
o(G, "calculateTextProps");
|
|
223
223
|
function V(e, n) {
|
|
224
|
-
const t = n, i =
|
|
224
|
+
const t = n, i = L(t.frame), a = {
|
|
225
225
|
width: t.textProps.width + 2 * s.boxTextPadding,
|
|
226
226
|
height: t.textProps.height + 2 * s.boxTextPadding
|
|
227
227
|
};
|
|
228
228
|
return [{
|
|
229
|
-
$kind:
|
|
229
|
+
$kind: $,
|
|
230
230
|
frame: t.frame,
|
|
231
231
|
index: t.index,
|
|
232
232
|
visual: i,
|
|
@@ -301,14 +301,14 @@ function Y(e, n) {
|
|
|
301
301
|
return h;
|
|
302
302
|
}
|
|
303
303
|
o(Y, "evolveFramePositioned");
|
|
304
|
-
function
|
|
304
|
+
function z(e, n) {
|
|
305
305
|
return e === 0 && n.sourceFrames.length === 0;
|
|
306
306
|
}
|
|
307
|
-
o(
|
|
308
|
-
function
|
|
307
|
+
o(z, "isFirstFrame");
|
|
308
|
+
function K(e) {
|
|
309
309
|
return e.sourceFrames !== void 0 && e.sourceFrames !== null && e.sourceFrames.length > 0;
|
|
310
310
|
}
|
|
311
|
-
o(
|
|
311
|
+
o(K, "hasSourceFrame");
|
|
312
312
|
function k(e, n) {
|
|
313
313
|
if (n != null)
|
|
314
314
|
return e.find((t) => t.frame.name === n.name);
|
|
@@ -325,7 +325,7 @@ function q(e, n, t) {
|
|
|
325
325
|
o(q, "findBoxByLineIndex");
|
|
326
326
|
function J(e, n) {
|
|
327
327
|
const t = n;
|
|
328
|
-
if (ve(t.frame) ||
|
|
328
|
+
if (ve(t.frame) || z(t.index, t.frame))
|
|
329
329
|
return [];
|
|
330
330
|
const i = k(e.boxes, t.frame);
|
|
331
331
|
if (i === void 0)
|
|
@@ -364,10 +364,10 @@ function Q(e, n) {
|
|
|
364
364
|
}
|
|
365
365
|
o(Q, "evolveRelationPositioned");
|
|
366
366
|
var Me = {
|
|
367
|
-
[
|
|
367
|
+
[D]: V,
|
|
368
368
|
[S]: J
|
|
369
369
|
}, Be = {
|
|
370
|
-
[
|
|
370
|
+
[$]: Y,
|
|
371
371
|
[N]: Q
|
|
372
372
|
};
|
|
373
373
|
function Z(e, n) {
|
|
@@ -450,15 +450,15 @@ var Re = /* @__PURE__ */ o(function(e, n, t, i) {
|
|
|
450
450
|
m.sortedSwimlanesArray.forEach(
|
|
451
451
|
ae(d, m.maxR, c, r)
|
|
452
452
|
), m.boxes.forEach(te(d, c)), m.relations.forEach(ie(d, c, x, r)), d.append("defs").append("marker").attr("id", x).attr("markerWidth", "10").attr("markerHeight", "7").attr("refX", "10").attr("refY", "3.5").attr("orient", "auto").append("polygon").attr("points", "0 0, 10 3.5, 0 7").attr("fill", u), xe(void 0, d, l?.padding ?? 30, l?.useMaxWidth);
|
|
453
|
-
}, "draw"),
|
|
453
|
+
}, "draw"), De = {
|
|
454
454
|
draw: Re
|
|
455
|
-
},
|
|
455
|
+
}, $e = /* @__PURE__ */ o((e) => "", "getStyles"), Ne = $e, We = {
|
|
456
456
|
parser: Ee,
|
|
457
457
|
db: F,
|
|
458
|
-
renderer:
|
|
458
|
+
renderer: De,
|
|
459
459
|
styles: Ne
|
|
460
460
|
};
|
|
461
461
|
export {
|
|
462
462
|
We as diagram
|
|
463
463
|
};
|
|
464
|
-
//# sourceMappingURL=diagram-
|
|
464
|
+
//# sourceMappingURL=diagram-B4RE2ZJO-DgLNdZkh.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { p as W } from "./
|
|
3
|
-
import { p as _ } from "./
|
|
1
|
+
import { p as $ } from "./chunk-JWPE2WC7-BbwyDj9g.js";
|
|
2
|
+
import { _ as b, D as u, G as B, e as C, l as m, b as T, a as S, o as D, p as z, g as E, s as P, z as F, E as A, q as W } from "./mermaid-GHXKKRXX-BaBCeViM.js";
|
|
3
|
+
import { p as _ } from "./cynefin-VYW2F7L2-DAyxamLw.js";
|
|
4
4
|
globalThis.process = globalThis.process || { env: {} };
|
|
5
5
|
globalThis.global = globalThis.global || globalThis;
|
|
6
|
-
var N =
|
|
6
|
+
var N = A.packet, w = class {
|
|
7
7
|
constructor() {
|
|
8
|
-
this.packet = [], this.setAccTitle =
|
|
8
|
+
this.packet = [], this.setAccTitle = T, this.getAccTitle = S, this.setDiagramTitle = D, this.getDiagramTitle = z, this.getAccDescription = E, this.setAccDescription = P;
|
|
9
9
|
}
|
|
10
10
|
static {
|
|
11
11
|
b(this, "PacketDB");
|
|
@@ -13,7 +13,7 @@ var N = F.packet, w = class {
|
|
|
13
13
|
getConfig() {
|
|
14
14
|
const t = u({
|
|
15
15
|
...N,
|
|
16
|
-
...
|
|
16
|
+
...F().packet
|
|
17
17
|
});
|
|
18
18
|
return t.showBits && (t.paddingY += 10), t;
|
|
19
19
|
}
|
|
@@ -24,10 +24,10 @@ var N = F.packet, w = class {
|
|
|
24
24
|
t.length > 0 && this.packet.push(t);
|
|
25
25
|
}
|
|
26
26
|
clear() {
|
|
27
|
-
|
|
27
|
+
W(), this.packet = [];
|
|
28
28
|
}
|
|
29
|
-
},
|
|
30
|
-
|
|
29
|
+
}, L = 1e4, M = /* @__PURE__ */ b((t, e) => {
|
|
30
|
+
$(t, e);
|
|
31
31
|
let r = -1, s = [], l = 1;
|
|
32
32
|
const { bitsPerRow: n } = e.getConfig();
|
|
33
33
|
for (let { start: a, end: i, bits: d, label: c } of t.blocks) {
|
|
@@ -39,15 +39,15 @@ var N = F.packet, w = class {
|
|
|
39
39
|
);
|
|
40
40
|
if (d === 0)
|
|
41
41
|
throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);
|
|
42
|
-
for (i ??= a + (d ?? 1) - 1, d ??= i - a + 1, r = i, m.debug(`Packet block ${a} - ${r} with label ${c}`); s.length <= n + 1 && e.getPacket().length <
|
|
43
|
-
const [p, o] =
|
|
42
|
+
for (i ??= a + (d ?? 1) - 1, d ??= i - a + 1, r = i, m.debug(`Packet block ${a} - ${r} with label ${c}`); s.length <= n + 1 && e.getPacket().length < L; ) {
|
|
43
|
+
const [p, o] = Y({ start: a, end: i, bits: d, label: c }, l, n);
|
|
44
44
|
if (s.push(p), p.end + 1 === l * n && (e.pushWord(s), s = [], l++), !o)
|
|
45
45
|
break;
|
|
46
46
|
({ start: a, end: i, bits: d, label: c } = o);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
e.pushWord(s);
|
|
50
|
-
}, "populate"),
|
|
50
|
+
}, "populate"), Y = /* @__PURE__ */ b((t, e, r) => {
|
|
51
51
|
if (t.start === void 0)
|
|
52
52
|
throw new Error("start should have been set during first phase");
|
|
53
53
|
if (t.end === void 0)
|
|
@@ -80,15 +80,15 @@ var N = F.packet, w = class {
|
|
|
80
80
|
throw new Error(
|
|
81
81
|
"parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues."
|
|
82
82
|
);
|
|
83
|
-
m.debug(e),
|
|
83
|
+
m.debug(e), M(e, r);
|
|
84
84
|
}, "parse")
|
|
85
|
-
},
|
|
85
|
+
}, G = /* @__PURE__ */ b((t, e, r, s) => {
|
|
86
86
|
const l = s.db, n = l.getConfig(), { rowHeight: a, paddingY: i, bitWidth: d, bitsPerRow: c } = n, p = l.getPacket(), o = l.getDiagramTitle(), h = a + i, g = h * (p.length + 1) - (o ? 0 : a), k = d * c + 2, f = B(e);
|
|
87
|
-
f.attr("viewBox", `0 0 ${k} ${g}`),
|
|
87
|
+
f.attr("viewBox", `0 0 ${k} ${g}`), C(f, g, k, n.useMaxWidth);
|
|
88
88
|
for (const [x, y] of p.entries())
|
|
89
|
-
|
|
89
|
+
I(f, y, x, n);
|
|
90
90
|
f.append("text").text(o).attr("x", k / 2).attr("y", g - h / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
|
|
91
|
-
}, "draw"),
|
|
91
|
+
}, "draw"), I = /* @__PURE__ */ b((t, e, r, { rowHeight: s, paddingX: l, paddingY: n, bitWidth: a, bitsPerRow: i, showBits: d }) => {
|
|
92
92
|
const c = t.append("g"), p = r * (s + n) + n;
|
|
93
93
|
for (const o of e) {
|
|
94
94
|
const h = o.start % i * a + 1, g = (o.end - o.start + 1) * a - l;
|
|
@@ -97,7 +97,7 @@ var N = F.packet, w = class {
|
|
|
97
97
|
const k = o.end === o.start, f = p - 2;
|
|
98
98
|
c.append("text").attr("x", h + (k ? g / 2 : 0)).attr("y", f).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", k ? "middle" : "start").text(o.start), k || c.append("text").attr("x", h + g).attr("y", f).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(o.end);
|
|
99
99
|
}
|
|
100
|
-
}, "drawWord"),
|
|
100
|
+
}, "drawWord"), O = { draw: G }, j = {
|
|
101
101
|
byteFontSize: "10px",
|
|
102
102
|
startByteColor: "black",
|
|
103
103
|
endByteColor: "black",
|
|
@@ -108,8 +108,8 @@ var N = F.packet, w = class {
|
|
|
108
108
|
blockStrokeColor: "black",
|
|
109
109
|
blockStrokeWidth: "1",
|
|
110
110
|
blockFillColor: "#efefef"
|
|
111
|
-
},
|
|
112
|
-
const e = u(
|
|
111
|
+
}, q = /* @__PURE__ */ b(({ packet: t } = {}) => {
|
|
112
|
+
const e = u(j, t);
|
|
113
113
|
return `
|
|
114
114
|
.packetByte {
|
|
115
115
|
font-size: ${e.byteFontSize};
|
|
@@ -139,10 +139,10 @@ var N = F.packet, w = class {
|
|
|
139
139
|
get db() {
|
|
140
140
|
return new w();
|
|
141
141
|
},
|
|
142
|
-
renderer:
|
|
143
|
-
styles:
|
|
142
|
+
renderer: O,
|
|
143
|
+
styles: q
|
|
144
144
|
};
|
|
145
145
|
export {
|
|
146
146
|
U as diagram
|
|
147
147
|
};
|
|
148
|
-
//# sourceMappingURL=diagram-
|
|
148
|
+
//# sourceMappingURL=diagram-LBJQPF4R-DxeIMTjN.js.map
|