@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.
Files changed (78) hide show
  1. package/dist/api/agent-grants.d.ts +6 -0
  2. package/dist/api/client.d.ts +30 -1
  3. package/dist/app/call-summary.d.ts +30 -0
  4. package/dist/component/abnfDiagram-N423BO3Z-C1O9dfJJ.js +90 -0
  5. package/dist/component/arc-Cpnt_LFj.js +86 -0
  6. package/dist/component/{architectureDiagram-3BPJPVTR-DYcaPx2M.js → architectureDiagram-T3A2C74G-iakL6yUj.js} +1872 -1785
  7. package/dist/component/{blockDiagram-GPEHLZMM-BdjruLO5.js → blockDiagram-VBNYF7ZC-D7t0jIvW.js} +895 -894
  8. package/dist/component/{c4Diagram-AAUBKEIU-Bd2ebSgB.js → c4Diagram-5PPSVZJV-CRX1o0CJ.js} +3 -3
  9. package/dist/component/{channel-CYFijF_t.js → channel-DnM50Ep0.js} +2 -2
  10. package/dist/component/{chunk-ND2GUHAM-OX1-DIU1.js → chunk-2GRJ4B5K-ChTMjM-v.js} +5 -5
  11. package/dist/component/{chunk-QZHKN3VN-DLQ8oUCc.js → chunk-2Q5K7J3B-F2Rpvtwm.js} +2 -2
  12. package/dist/component/{chunk-AQP2D5EJ-D4G4syYu.js → chunk-5RXB4S5H-B1WLx-ex.js} +399 -378
  13. package/dist/component/{chunk-FMBD7UC4-CbRxWx_A.js → chunk-5VM5RSS4-D35VMAuN.js} +2 -2
  14. package/dist/component/chunk-6Q2QTUOP-DGVp_gyk.js +673 -0
  15. package/dist/component/{chunk-727SXJPM-A5r5oL1_.js → chunk-GF5L2VYU-CZOQEv_q.js} +244 -239
  16. package/dist/component/{chunk-4BX2VUAB-DVpS0I_p.js → chunk-JWPE2WC7-BbwyDj9g.js} +2 -2
  17. package/dist/component/{chunk-2J33WTMH-B06Y_xVy.js → chunk-KBJHAD2P-B9qL0VLM.js} +2 -2
  18. package/dist/component/chunk-RYQCIY6F-5eaMbXXL.js +316 -0
  19. package/dist/component/{chunk-55IACEB6-DmZctFkK.js → chunk-XXDRQBXY-XJadTIK5.js} +2 -2
  20. package/dist/component/{classDiagram-4FO5ZUOK-4S9mdFC1.js → classDiagram-JCYQIIEL-DVaEk7uT.js} +3 -3
  21. package/dist/component/{classDiagram-v2-Q7XG4LA2-4S9mdFC1.js → classDiagram-v2-OCEON4UE-DVaEk7uT.js} +3 -3
  22. package/dist/component/{cose-bilkent-S5V4N54A-BIrVaakt.js → cose-bilkent-JH36ORCC-DZA30AqI.js} +2 -2
  23. package/dist/component/{wardley-L42UT6IY-HA1eSIS_.js → cynefin-VYW2F7L2-DAyxamLw.js} +9199 -7918
  24. package/dist/component/cynefinDiagram-MW4NZA55-CutZScTQ.js +302 -0
  25. package/dist/component/dagre-VZM6K2ZE-CelPLP8N.js +343 -0
  26. package/dist/component/diagram-7IWD3JNH-Cr5piwKc.js +353 -0
  27. package/dist/component/{diagram-KO2AKTUF-Da1E68Eo.js → diagram-B4RE2ZJO-DgLNdZkh.js} +24 -24
  28. package/dist/component/{diagram-LMA3HP47-dRbk5sBa.js → diagram-LBJQPF4R-DxeIMTjN.js} +23 -23
  29. package/dist/component/{diagram-OG6HWLK6-CcKT8mhn.js → diagram-Q27KOJAE-WACyk_gr.js} +197 -197
  30. package/dist/component/diagram-UB23O5K3-DbhVYU5T.js +222 -0
  31. package/dist/component/ebnfDiagram-BXEA7PRR-DoGrYW10.js +112 -0
  32. package/dist/component/{erDiagram-TEJ5UH35-3ATYT9J-.js → erDiagram-JOGREHBK-BgewA6fH.js} +142 -131
  33. package/dist/component/{flowDiagram-I6XJVG4X-D9PLm9Od.js → flowDiagram-UKHOOZJN-1YmYJYcE.js} +268 -258
  34. package/dist/component/ganttDiagram-PKOTCBZU-BFAEPYkH.js +2714 -0
  35. package/dist/component/{gitGraphDiagram-PVQCEYII-13gVhAGc.js → gitGraphDiagram-DS77QQ5N-CSiPuE-l.js} +33 -33
  36. package/dist/component/{graph-BZLHvygk.js → graph-CWpEkm4G.js} +35 -35
  37. package/dist/component/{highlighted-body-OFNGDK62-DCxRI4UV.js → highlighted-body-OFNGDK62-CSJNGt18.js} +2 -2
  38. package/dist/component/index.js +2 -2
  39. package/dist/component/{infoDiagram-5YYISTIA-DymxA7AN.js → infoDiagram-6WML65LV-CoMVfONe.js} +4 -4
  40. package/dist/component/{ishikawaDiagram-YF4QCWOH-C3sTn76C.js → ishikawaDiagram-WSZJBQD7-B2YEkQ4b.js} +27 -27
  41. package/dist/component/{journeyDiagram-JHISSGLW-Cq0hOAfJ.js → journeyDiagram-NVQOT4AX-B7b5ZwlF.js} +5 -5
  42. package/dist/component/{kanban-definition-UN3LZRKU-5tBWjkp7.js → kanban-definition-27J2QSJJ-C9GPAsBR.js} +35 -35
  43. package/dist/component/layout-Br2UjHRU.js +1522 -0
  44. package/dist/component/{linear-BT4blD8s.js → linear-Bi0C-9d1.js} +13 -13
  45. package/dist/component/map-CdwokNh2.js +227 -0
  46. package/dist/component/{mermaid-GHXKKRXX-DXPXjnb7.js → mermaid-GHXKKRXX-BaBCeViM.js} +25220 -24784
  47. package/dist/component/{mindmap-definition-RKZ34NQL-DO-OuAQQ.js → mindmap-definition-FAOFIHXS-tHIAo7Ms.js} +26 -26
  48. package/dist/component/pegDiagram-VL7TDLO6-Db_7lLRV.js +98 -0
  49. package/dist/component/pieDiagram-7S7Q4E2Y-C4fs4XCK.js +210 -0
  50. package/dist/component/{quadrantDiagram-W4KKPZXB-CaJWg9ep.js → quadrantDiagram-CIZ2JOQS-Bw7vXO0q.js} +14 -15
  51. package/dist/component/railroadDiagram-AXF67PYL-kY0VoZEg.js +80 -0
  52. package/dist/component/{requirementDiagram-4Y6WPE33-CmZrtZqe.js → requirementDiagram-LRYGKXZP-BkNtSZm5.js} +15 -15
  53. package/dist/component/{sankeyDiagram-5OEKKPKP-Cp95M1aj.js → sankeyDiagram-W5VNT64P-BK_C1BYE.js} +2 -2
  54. package/dist/component/{sequenceDiagram-3UESZ5HK-C0x0WvhR.js → sequenceDiagram-SI44F4Z6-CEmgVZaE.js} +960 -963
  55. package/dist/component/sizeCapture-X5ZJPWSS-J5ZNXT4c.js +49 -0
  56. package/dist/component/{stateDiagram-AJRCARHV-H10vaGL3.js → stateDiagram-OKZ733FA-DrwrNuNs.js} +5 -5
  57. package/dist/component/{stateDiagram-v2-BHNVJYJU-rj7ljkc-.js → stateDiagram-v2-UEYNNEHI-DHD85VTD.js} +3 -3
  58. package/dist/component/swimlanes-SLNWSIFB-FOK5tys1.js +5335 -0
  59. package/dist/component/swimlanesDiagram-ULZ7WXOC-edTvZTge.js +16 -0
  60. package/dist/component/{timeline-definition-PNZ67QCA-Cil1QaqZ.js → timeline-definition-Z64GVDOM-Cc4fTsjY.js} +15 -15
  61. package/dist/component/vennDiagram-T6HMQDX7-DYZl8srI.js +1581 -0
  62. package/dist/component/{wardleyDiagram-YWT4CUSO-Xq5Hnmio.js → wardleyDiagram-T6FBY63Y-BEvv3PjS.js} +15 -15
  63. package/dist/component/{xychartDiagram-2RQKCTM6-dinwR4Zm.js → xychartDiagram-ELKLHX3M-79AgTtk-.js} +464 -418
  64. package/dist/embed/voice/line-slots.d.ts +37 -2
  65. package/dist/embed/voice-call.d.ts +12 -0
  66. package/dist/i18n/messages/en.d.ts +1 -2
  67. package/dist/lib/web-storage.d.ts +8 -0
  68. package/dist/stream/stream-state-store.d.ts +13 -0
  69. package/dist/types/public.d.ts +3 -0
  70. package/package.json +1 -1
  71. package/dist/component/arc-TLcl3N8_.js +0 -86
  72. package/dist/component/dagre-BM42HDAG-BoPUzTvD.js +0 -448
  73. package/dist/component/diagram-2AECGRRQ-PIXCGxIt.js +0 -220
  74. package/dist/component/diagram-5GNKFQAL-CbJxbGBh.js +0 -126
  75. package/dist/component/ganttDiagram-6RSMTGT7-F_XUzD1p.js +0 -2709
  76. package/dist/component/layout-Bu6nRdWm.js +0 -1731
  77. package/dist/component/pieDiagram-4H26LBE5-BkEktPwZ.js +0 -166
  78. package/dist/component/vennDiagram-CIIHVFJN-Dk8PKmfb.js +0 -1560
@@ -1,166 +0,0 @@
1
- import { a0 as S, S as R, b5 as J, g as Q, s as Y, a as tt, b as et, t as at, q as nt, _ as g, l as W, c as rt, I as it, N as st, a7 as lt, e as ot, B as ct, K as ut } from "./mermaid-GHXKKRXX-DXPXjnb7.js";
2
- import { p as gt } from "./chunk-4BX2VUAB-DVpS0I_p.js";
3
- import { p as dt } from "./wardley-L42UT6IY-HA1eSIS_.js";
4
- import { d as P } from "./arc-TLcl3N8_.js";
5
- import { o as pt } from "./ordinal-D0x7izaa.js";
6
- globalThis.process = globalThis.process || { env: {} };
7
- globalThis.global = globalThis.global || globalThis;
8
- function ft(t, a) {
9
- return a < t ? -1 : a > t ? 1 : a >= t ? 0 : NaN;
10
- }
11
- function ht(t) {
12
- return t;
13
- }
14
- function mt() {
15
- var t = ht, a = ft, f = null, y = S(0), s = S(R), d = S(0);
16
- function l(e) {
17
- var r, o = (e = J(e)).length, p, h, v = 0, c = new Array(o), i = new Array(o), x = +y.apply(this, arguments), w = Math.min(R, Math.max(-R, s.apply(this, arguments) - x)), m, C = Math.min(Math.abs(w) / o, d.apply(this, arguments)), D = C * (w < 0 ? -1 : 1), u;
18
- for (r = 0; r < o; ++r)
19
- (u = i[c[r] = r] = +t(e[r], r, e)) > 0 && (v += u);
20
- for (a != null ? c.sort(function(A, T) {
21
- return a(i[A], i[T]);
22
- }) : f != null && c.sort(function(A, T) {
23
- return f(e[A], e[T]);
24
- }), r = 0, h = v ? (w - o * D) / v : 0; r < o; ++r, x = m)
25
- p = c[r], u = i[p], m = x + (u > 0 ? u * h : 0) + D, i[p] = {
26
- data: e[p],
27
- index: r,
28
- value: u,
29
- startAngle: x,
30
- endAngle: m,
31
- padAngle: C
32
- };
33
- return i;
34
- }
35
- return l.value = function(e) {
36
- return arguments.length ? (t = typeof e == "function" ? e : S(+e), l) : t;
37
- }, l.sortValues = function(e) {
38
- return arguments.length ? (a = e, f = null, l) : a;
39
- }, l.sort = function(e) {
40
- return arguments.length ? (f = e, a = null, l) : f;
41
- }, l.startAngle = function(e) {
42
- return arguments.length ? (y = typeof e == "function" ? e : S(+e), l) : y;
43
- }, l.endAngle = function(e) {
44
- return arguments.length ? (s = typeof e == "function" ? e : S(+e), l) : s;
45
- }, l.padAngle = function(e) {
46
- return arguments.length ? (d = typeof e == "function" ? e : S(+e), l) : d;
47
- }, l;
48
- }
49
- var vt = ut.pie, z = {
50
- sections: /* @__PURE__ */ new Map(),
51
- showData: !1
52
- }, $ = z.sections, F = z.showData, xt = structuredClone(vt), St = /* @__PURE__ */ g(() => structuredClone(xt), "getConfig"), yt = /* @__PURE__ */ g(() => {
53
- $ = /* @__PURE__ */ new Map(), F = z.showData, ct();
54
- }, "clear"), wt = /* @__PURE__ */ g(({ label: t, value: a }) => {
55
- if (a < 0)
56
- throw new Error(
57
- `"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`
58
- );
59
- $.has(t) || ($.set(t, a), W.debug(`added new section: ${t}, with value: ${a}`));
60
- }, "addSection"), At = /* @__PURE__ */ g(() => $, "getSections"), Tt = /* @__PURE__ */ g((t) => {
61
- F = t;
62
- }, "setShowData"), Ct = /* @__PURE__ */ g(() => F, "getShowData"), _ = {
63
- getConfig: St,
64
- clear: yt,
65
- setDiagramTitle: nt,
66
- getDiagramTitle: at,
67
- setAccTitle: et,
68
- getAccTitle: tt,
69
- setAccDescription: Y,
70
- getAccDescription: Q,
71
- addSection: wt,
72
- getSections: At,
73
- setShowData: Tt,
74
- getShowData: Ct
75
- }, Dt = /* @__PURE__ */ g((t, a) => {
76
- gt(t, a), a.setShowData(t.showData), t.sections.map(a.addSection);
77
- }, "populateDb"), $t = {
78
- parse: /* @__PURE__ */ g(async (t) => {
79
- const a = await dt("pie", t);
80
- W.debug(a), Dt(a, _);
81
- }, "parse")
82
- }, bt = /* @__PURE__ */ g((t) => `
83
- .pieCircle{
84
- stroke: ${t.pieStrokeColor};
85
- stroke-width : ${t.pieStrokeWidth};
86
- opacity : ${t.pieOpacity};
87
- }
88
- .pieOuterCircle{
89
- stroke: ${t.pieOuterStrokeColor};
90
- stroke-width: ${t.pieOuterStrokeWidth};
91
- fill: none;
92
- }
93
- .pieTitleText {
94
- text-anchor: middle;
95
- font-size: ${t.pieTitleTextSize};
96
- fill: ${t.pieTitleTextColor};
97
- font-family: ${t.fontFamily};
98
- }
99
- .slice {
100
- font-family: ${t.fontFamily};
101
- fill: ${t.pieSectionTextColor};
102
- font-size:${t.pieSectionTextSize};
103
- // fill: white;
104
- }
105
- .legend text {
106
- fill: ${t.pieLegendTextColor};
107
- font-family: ${t.fontFamily};
108
- font-size: ${t.pieLegendTextSize};
109
- }
110
- `, "getStyles"), kt = bt, Et = /* @__PURE__ */ g((t) => {
111
- const a = [...t.values()].reduce((s, d) => s + d, 0), f = [...t.entries()].map(([s, d]) => ({ label: s, value: d })).filter((s) => s.value / a * 100 >= 1);
112
- return mt().value((s) => s.value).sort(null)(f);
113
- }, "createPieArcs"), Mt = /* @__PURE__ */ g((t, a, f, y) => {
114
- W.debug(`rendering pie chart
115
- ` + t);
116
- const s = y.db, d = rt(), l = it(s.getConfig(), d.pie), e = 40, r = 18, o = 4, p = 450, h = p, v = st(a), c = v.append("g");
117
- c.attr("transform", "translate(" + h / 2 + "," + p / 2 + ")");
118
- const { themeVariables: i } = d;
119
- let [x] = lt(i.pieOuterStrokeWidth);
120
- x ??= 2;
121
- const w = l.textPosition, m = Math.min(h, p) / 2 - e, C = P().innerRadius(0).outerRadius(m), D = P().innerRadius(m * w).outerRadius(m * w);
122
- c.append("circle").attr("cx", 0).attr("cy", 0).attr("r", m + x / 2).attr("class", "pieOuterCircle");
123
- const u = s.getSections(), A = Et(u), T = [
124
- i.pie1,
125
- i.pie2,
126
- i.pie3,
127
- i.pie4,
128
- i.pie5,
129
- i.pie6,
130
- i.pie7,
131
- i.pie8,
132
- i.pie9,
133
- i.pie10,
134
- i.pie11,
135
- i.pie12
136
- ];
137
- let b = 0;
138
- u.forEach((n) => {
139
- b += n;
140
- });
141
- const N = A.filter((n) => (n.data.value / b * 100).toFixed(0) !== "0"), k = pt(T).domain([
142
- ...u.keys()
143
- ]);
144
- c.selectAll("mySlices").data(N).enter().append("path").attr("d", C).attr("fill", (n) => k(n.data.label)).attr("class", "pieCircle"), c.selectAll("mySlices").data(N).enter().append("text").text((n) => (n.data.value / b * 100).toFixed(0) + "%").attr("transform", (n) => "translate(" + D.centroid(n) + ")").style("text-anchor", "middle").attr("class", "slice");
145
- const V = c.append("text").text(s.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText"), B = [...u.entries()].map(([n, M]) => ({
146
- label: n,
147
- value: M
148
- })), E = c.selectAll(".legend").data(B).enter().append("g").attr("class", "legend").attr("transform", (n, M) => {
149
- const O = r + o, X = O * B.length / 2, Z = 12 * r, H = M * O - X;
150
- return "translate(" + Z + "," + H + ")";
151
- });
152
- E.append("rect").attr("width", r).attr("height", r).style("fill", (n) => k(n.label)).style("stroke", (n) => k(n.label)), E.append("text").attr("x", r + o).attr("y", r - o).text((n) => s.getShowData() ? `${n.label} [${n.value}]` : n.label);
153
- const U = Math.max(
154
- ...E.selectAll("text").nodes().map((n) => n?.getBoundingClientRect().width ?? 0)
155
- ), j = h + e + r + o + U, G = V.node()?.getBoundingClientRect().width ?? 0, q = h / 2 - G / 2, K = h / 2 + G / 2, L = Math.min(0, q), I = Math.max(j, K) - L;
156
- v.attr("viewBox", `${L} 0 ${I} ${p}`), ot(v, p, I, l.useMaxWidth);
157
- }, "draw"), Rt = { draw: Mt }, Lt = {
158
- parser: $t,
159
- db: _,
160
- renderer: Rt,
161
- styles: kt
162
- };
163
- export {
164
- Lt as diagram
165
- };
166
- //# sourceMappingURL=pieDiagram-4H26LBE5-BkEktPwZ.js.map