@foris/ai-agent 0.7.0 → 0.7.1-beta.2

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 (64) hide show
  1. package/dist/_baseUniq-Bo-J_G8t.js +479 -0
  2. package/dist/ai-agent.es.js +1 -1
  3. package/dist/ai-agent.umd.js +504 -504
  4. package/dist/ai-chat-panel/ChatPanel.d.ts +3 -2
  5. package/dist/{arc-D25sVj89.js → arc-D6vW-5z7.js} +1 -1
  6. package/dist/architecture-U656AL7Q-CPDaOg6H.js +11 -0
  7. package/dist/{architectureDiagram-VXUJARFQ-Cgk-YoAJ.js → architectureDiagram-VXUJARFQ-aNTRrbg8.js} +8 -6
  8. package/dist/{blockDiagram-VD42YOAC-DEl6OtG0.js → blockDiagram-VD42YOAC-D__rdg-y.js} +801 -937
  9. package/dist/{c4Diagram-YG6GDRKO-C_brDMc_.js → c4Diagram-YG6GDRKO-Ad-zGtIo.js} +3 -3
  10. package/dist/{channel-BP0bUxGp.js → channel-CJ6nZxxi.js} +1 -1
  11. package/dist/{chunk-4BX2VUAB-C5fELlqE.js → chunk-4BX2VUAB-sv6CSdNg.js} +1 -1
  12. package/dist/{chunk-55IACEB6-DaHkCIMI.js → chunk-55IACEB6-tWLXzb2x.js} +1 -1
  13. package/dist/{chunk-B4BG7PRW-C2Vtaq9f.js → chunk-B4BG7PRW-wp7Bc04i.js} +4 -4
  14. package/dist/{chunk-DI55MBZ5-DmM1ZmJ9.js → chunk-DI55MBZ5-BAXA-Ihc.js} +3 -3
  15. package/dist/{chunk-FMBD7UC4-MWLCTT_V.js → chunk-FMBD7UC4-CqgCvnFf.js} +1 -1
  16. package/dist/{chunk-QN33PNHL-BFfd-KsX.js → chunk-QN33PNHL-Xr4FEi7o.js} +1 -1
  17. package/dist/{chunk-QZHKN3VN-DvYwzcYM.js → chunk-QZHKN3VN-CW0xSatw.js} +1 -1
  18. package/dist/{chunk-TZMSLE5B-B_VLLszl.js → chunk-TZMSLE5B-CG4p6VwM.js} +1 -1
  19. package/dist/{classDiagram-2ON5EDUG-CEjscqbc.js → classDiagram-2ON5EDUG-BwMk_mJR.js} +6 -6
  20. package/dist/{classDiagram-v2-WZHVMYZB-CEjscqbc.js → classDiagram-v2-WZHVMYZB-BwMk_mJR.js} +6 -6
  21. package/dist/clone-42WwOfNY.js +8 -0
  22. package/dist/{code-block-QI2IAROF-MPMUtVbZ.js → code-block-QI2IAROF-Dmk5lA1i.js} +1 -1
  23. package/dist/{cose-bilkent-S5V4N54A-DNnmrjSK.js → cose-bilkent-S5V4N54A-CQVvTQey.js} +2 -2
  24. package/dist/{dagre-6UL2VRFP-c7TGz1C2.js → dagre-6UL2VRFP-CZLotLZh.js} +54 -55
  25. package/dist/{diagram-PSM6KHXK-CyVHRF5H.js → diagram-PSM6KHXK-99LoQEL6.js} +9 -7
  26. package/dist/{diagram-QEK2KX5R-BQj43c4D.js → diagram-QEK2KX5R-Bcf8pK3Z.js} +8 -6
  27. package/dist/{diagram-S2PKOQOG-Dp2Zxf6h.js → diagram-S2PKOQOG-Bc7Lic_C.js} +12 -10
  28. package/dist/{erDiagram-Q2GNP2WA-UU_sJ3Nk.js → erDiagram-Q2GNP2WA-Bdr3nWHa.js} +5 -5
  29. package/dist/{flowDiagram-NV44I4VS-DmHh0Mw6.js → flowDiagram-NV44I4VS-By1cH5Mx.js} +6 -6
  30. package/dist/{ganttDiagram-JELNMOA3-B2DD6FxH.js → ganttDiagram-JELNMOA3-DBUWvf88.js} +3 -3
  31. package/dist/gitGraph-F6HP7TQM-DyZaN85C.js +11 -0
  32. package/dist/{gitGraphDiagram-NY62KEGX-BIUvS6sD.js → gitGraphDiagram-NY62KEGX-D201ZDzD.js} +71 -69
  33. package/dist/graph-vxIytVZ1.js +381 -0
  34. package/dist/{index-DWpc-Mxs.js → index-2q9HQ6jv.js} +4157 -4170
  35. package/dist/info-NVLQJR56-Bk44kkrd.js +11 -0
  36. package/dist/infoDiagram-WHAUD3N6-CQvG7eEX.js +29 -0
  37. package/dist/{journeyDiagram-XKPGCS4Q-Dia_QTZe.js → journeyDiagram-XKPGCS4Q-BO4UASto.js} +5 -5
  38. package/dist/{kanban-definition-3W4ZIXB7-ClIKCv5J.js → kanban-definition-3W4ZIXB7-zTTXrQZo.js} +3 -3
  39. package/dist/layout-CFP0NQPV.js +1443 -0
  40. package/dist/{linear-ZyP8gWvJ.js → linear-DQjYFf2K.js} +25 -25
  41. package/dist/{mermaid-NA5CF7SZ-BbXrnAMx.js → mermaid-NA5CF7SZ-Dxy04QGl.js} +1 -1
  42. package/dist/{treemap-KMMF4GRG-D_L55G0b.js → mermaid-parser.core-3bjcG0rb.js} +5934 -5793
  43. package/dist/{mermaid.core-Ce2qm3MW.js → mermaid.core-D77TS0_l.js} +112 -88
  44. package/dist/min-D8aWZ538.js +38 -0
  45. package/dist/{mindmap-definition-VGOIOE7T-CUj7ttm7.js → mindmap-definition-VGOIOE7T-C4eFUgdU.js} +15 -15
  46. package/dist/packet-BFZMPI3H-BXyr1-Ur.js +11 -0
  47. package/dist/pie-7BOR55EZ-BdDEpKOx.js +11 -0
  48. package/dist/pieDiagram-ADFJNKIX-Cagn8I7E.js +168 -0
  49. package/dist/{quadrantDiagram-AYHSOK5B-C4-Gx7bz.js → quadrantDiagram-AYHSOK5B-CBbS2k6R.js} +3 -3
  50. package/dist/radar-NHE76QYJ-rrlsBycr.js +11 -0
  51. package/dist/{requirementDiagram-UZGBJVZJ-Cr3_wZVs.js → requirementDiagram-UZGBJVZJ-BubvO9b2.js} +4 -4
  52. package/dist/{sankeyDiagram-TZEHDZUN-DqXQCv8A.js → sankeyDiagram-TZEHDZUN-2TYAQPq1.js} +2 -2
  53. package/dist/{sequenceDiagram-WL72ISMW-DFW243PP.js → sequenceDiagram-WL72ISMW-C5LXKyO6.js} +4 -4
  54. package/dist/{stateDiagram-FKZM4ZOC-C7xue1N-.js → stateDiagram-FKZM4ZOC-tqWNEvX8.js} +11 -9
  55. package/dist/{stateDiagram-v2-4FDKWEC3-CxbMhTx0.js → stateDiagram-v2-4FDKWEC3-DwNtkzmN.js} +5 -5
  56. package/dist/style.css +1 -1
  57. package/dist/{timeline-definition-IT6M3QCI-HXVoEY4s.js → timeline-definition-IT6M3QCI-DsDBzGHV.js} +3 -3
  58. package/dist/treemap-KMMF4GRG-BNrkQfZw.js +11 -0
  59. package/dist/{xychartDiagram-PRI3JC2R-7Isc60Pi.js → xychartDiagram-PRI3JC2R-C96721pe.js} +3 -3
  60. package/package.json +1 -1
  61. package/dist/graph-DB2UxkYH.js +0 -1190
  62. package/dist/infoDiagram-WHAUD3N6-Cz5rmERs.js +0 -27
  63. package/dist/layout-Q6wQN5dr.js +0 -1730
  64. package/dist/pieDiagram-ADFJNKIX-w5KEkOWO.js +0 -166
@@ -1,166 +0,0 @@
1
- import { Y as S, P as F, av as K, E as Y, o as Z, p as q, s as H, g as J, c as Q, b as X, _ as g, l as z, v as ee, d as te, F as ae, K as re, a6 as ne, k as ie } from "./mermaid.core-Ce2qm3MW.js";
2
- import { p as se } from "./chunk-4BX2VUAB-C5fELlqE.js";
3
- import { p as le } from "./treemap-KMMF4GRG-D_L55G0b.js";
4
- import { d as I } from "./arc-D25sVj89.js";
5
- import { o as oe } from "./ordinal-MUacOSdK.js";
6
- import "./index-DWpc-Mxs.js";
7
- import "react";
8
- import "react-dom";
9
- import "./init-DjUOC4st.js";
10
- function ce(e, a) {
11
- return a < e ? -1 : a > e ? 1 : a >= e ? 0 : NaN;
12
- }
13
- function ue(e) {
14
- return e;
15
- }
16
- function pe() {
17
- var e = ue, a = ce, f = null, x = S(0), s = S(F), o = S(0);
18
- function l(t) {
19
- var n, c = (t = K(t)).length, u, y, h = 0, p = new Array(c), i = new Array(c), v = +x.apply(this, arguments), w = Math.min(F, Math.max(-F, s.apply(this, arguments) - v)), m, C = Math.min(Math.abs(w) / c, o.apply(this, arguments)), $ = C * (w < 0 ? -1 : 1), d;
20
- for (n = 0; n < c; ++n)
21
- (d = i[p[n] = n] = +e(t[n], n, t)) > 0 && (h += d);
22
- for (a != null ? p.sort(function(A, D) {
23
- return a(i[A], i[D]);
24
- }) : f != null && p.sort(function(A, D) {
25
- return f(t[A], t[D]);
26
- }), n = 0, y = h ? (w - c * $) / h : 0; n < c; ++n, v = m)
27
- u = p[n], d = i[u], m = v + (d > 0 ? d * y : 0) + $, i[u] = {
28
- data: t[u],
29
- index: n,
30
- value: d,
31
- startAngle: v,
32
- endAngle: m,
33
- padAngle: C
34
- };
35
- return i;
36
- }
37
- return l.value = function(t) {
38
- return arguments.length ? (e = typeof t == "function" ? t : S(+t), l) : e;
39
- }, l.sortValues = function(t) {
40
- return arguments.length ? (a = t, f = null, l) : a;
41
- }, l.sort = function(t) {
42
- return arguments.length ? (f = t, a = null, l) : f;
43
- }, l.startAngle = function(t) {
44
- return arguments.length ? (x = typeof t == "function" ? t : S(+t), l) : x;
45
- }, l.endAngle = function(t) {
46
- return arguments.length ? (s = typeof t == "function" ? t : S(+t), l) : s;
47
- }, l.padAngle = function(t) {
48
- return arguments.length ? (o = typeof t == "function" ? t : S(+t), l) : o;
49
- }, l;
50
- }
51
- var L = Y.pie, G = {
52
- sections: /* @__PURE__ */ new Map(),
53
- showData: !1,
54
- config: L
55
- }, T = G.sections, N = G.showData, ge = structuredClone(L), de = /* @__PURE__ */ g(() => structuredClone(ge), "getConfig"), fe = /* @__PURE__ */ g(() => {
56
- T = /* @__PURE__ */ new Map(), N = G.showData, ee();
57
- }, "clear"), me = /* @__PURE__ */ g(({ label: e, value: a }) => {
58
- if (a < 0)
59
- throw new Error(
60
- `"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`
61
- );
62
- T.has(e) || (T.set(e, a), z.debug(`added new section: ${e}, with value: ${a}`));
63
- }, "addSection"), he = /* @__PURE__ */ g(() => T, "getSections"), ve = /* @__PURE__ */ g((e) => {
64
- N = e;
65
- }, "setShowData"), Se = /* @__PURE__ */ g(() => N, "getShowData"), _ = {
66
- getConfig: de,
67
- clear: fe,
68
- setDiagramTitle: Z,
69
- getDiagramTitle: q,
70
- setAccTitle: H,
71
- getAccTitle: J,
72
- setAccDescription: Q,
73
- getAccDescription: X,
74
- addSection: me,
75
- getSections: he,
76
- setShowData: ve,
77
- getShowData: Se
78
- }, xe = /* @__PURE__ */ g((e, a) => {
79
- se(e, a), a.setShowData(e.showData), e.sections.map(a.addSection);
80
- }, "populateDb"), ye = {
81
- parse: /* @__PURE__ */ g(async (e) => {
82
- const a = await le("pie", e);
83
- z.debug(a), xe(a, _);
84
- }, "parse")
85
- }, we = /* @__PURE__ */ g((e) => `
86
- .pieCircle{
87
- stroke: ${e.pieStrokeColor};
88
- stroke-width : ${e.pieStrokeWidth};
89
- opacity : ${e.pieOpacity};
90
- }
91
- .pieOuterCircle{
92
- stroke: ${e.pieOuterStrokeColor};
93
- stroke-width: ${e.pieOuterStrokeWidth};
94
- fill: none;
95
- }
96
- .pieTitleText {
97
- text-anchor: middle;
98
- font-size: ${e.pieTitleTextSize};
99
- fill: ${e.pieTitleTextColor};
100
- font-family: ${e.fontFamily};
101
- }
102
- .slice {
103
- font-family: ${e.fontFamily};
104
- fill: ${e.pieSectionTextColor};
105
- font-size:${e.pieSectionTextSize};
106
- // fill: white;
107
- }
108
- .legend text {
109
- fill: ${e.pieLegendTextColor};
110
- font-family: ${e.fontFamily};
111
- font-size: ${e.pieLegendTextSize};
112
- }
113
- `, "getStyles"), Ae = we, De = /* @__PURE__ */ g((e) => {
114
- const a = [...e.values()].reduce((s, o) => s + o, 0), f = [...e.entries()].map(([s, o]) => ({ label: s, value: o })).filter((s) => s.value / a * 100 >= 1).sort((s, o) => o.value - s.value);
115
- return pe().value((s) => s.value)(f);
116
- }, "createPieArcs"), Ce = /* @__PURE__ */ g((e, a, f, x) => {
117
- z.debug(`rendering pie chart
118
- ` + e);
119
- const s = x.db, o = te(), l = ae(s.getConfig(), o.pie), t = 40, n = 18, c = 4, u = 450, y = u, h = re(a), p = h.append("g");
120
- p.attr("transform", "translate(" + y / 2 + "," + u / 2 + ")");
121
- const { themeVariables: i } = o;
122
- let [v] = ne(i.pieOuterStrokeWidth);
123
- v ?? (v = 2);
124
- const w = l.textPosition, m = Math.min(y, u) / 2 - t, C = I().innerRadius(0).outerRadius(m), $ = I().innerRadius(m * w).outerRadius(m * w);
125
- p.append("circle").attr("cx", 0).attr("cy", 0).attr("r", m + v / 2).attr("class", "pieOuterCircle");
126
- const d = s.getSections(), A = De(d), D = [
127
- i.pie1,
128
- i.pie2,
129
- i.pie3,
130
- i.pie4,
131
- i.pie5,
132
- i.pie6,
133
- i.pie7,
134
- i.pie8,
135
- i.pie9,
136
- i.pie10,
137
- i.pie11,
138
- i.pie12
139
- ];
140
- let E = 0;
141
- d.forEach((r) => {
142
- E += r;
143
- });
144
- const P = A.filter((r) => (r.data.value / E * 100).toFixed(0) !== "0"), b = oe(D);
145
- p.selectAll("mySlices").data(P).enter().append("path").attr("d", C).attr("fill", (r) => b(r.data.label)).attr("class", "pieCircle"), p.selectAll("mySlices").data(P).enter().append("text").text((r) => (r.data.value / E * 100).toFixed(0) + "%").attr("transform", (r) => "translate(" + $.centroid(r) + ")").style("text-anchor", "middle").attr("class", "slice"), p.append("text").text(s.getDiagramTitle()).attr("x", 0).attr("y", -(u - 50) / 2).attr("class", "pieTitleText");
146
- const W = [...d.entries()].map(([r, M]) => ({
147
- label: r,
148
- value: M
149
- })), k = p.selectAll(".legend").data(W).enter().append("g").attr("class", "legend").attr("transform", (r, M) => {
150
- const R = n + c, V = R * W.length / 2, U = 12 * n, j = M * R - V;
151
- return "translate(" + U + "," + j + ")";
152
- });
153
- k.append("rect").attr("width", n).attr("height", n).style("fill", (r) => b(r.label)).style("stroke", (r) => b(r.label)), k.append("text").attr("x", n + c).attr("y", n - c).text((r) => s.getShowData() ? `${r.label} [${r.value}]` : r.label);
154
- const B = Math.max(
155
- ...k.selectAll("text").nodes().map((r) => (r == null ? void 0 : r.getBoundingClientRect().width) ?? 0)
156
- ), O = y + t + n + c + B;
157
- h.attr("viewBox", `0 0 ${O} ${u}`), ie(h, u, O, l.useMaxWidth);
158
- }, "draw"), $e = { draw: Ce }, Pe = {
159
- parser: ye,
160
- db: _,
161
- renderer: $e,
162
- styles: Ae
163
- };
164
- export {
165
- Pe as diagram
166
- };