@foris/ai-agent 0.3.0 → 0.4.1

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 (58) hide show
  1. package/dist/ai-agent.es.js +3 -3
  2. package/dist/ai-agent.umd.js +620 -610
  3. package/dist/ai-prompt-code-editor/PromptCodeEditor.d.ts +20 -0
  4. package/dist/ai-prompt-code-editor/index.d.ts +1 -0
  5. package/dist/ai-prompt-code-editor/promptCodeEditor.mock.d.ts +5 -0
  6. package/dist/arc-CONcyq9a.js +85 -0
  7. package/dist/{architectureDiagram-VXUJARFQ-CuFlEJrK.js → architectureDiagram-VXUJARFQ-rKQ4Lyhz.js} +3 -3
  8. package/dist/{blockDiagram-VD42YOAC-Ceho4Zhj.js → blockDiagram-VD42YOAC-q8x-nl-I.js} +46 -46
  9. package/dist/{c4Diagram-YG6GDRKO-zPB3iQJ7.js → c4Diagram-YG6GDRKO-BCtZ1arM.js} +3 -3
  10. package/dist/channel-Bk9jsMES.js +5 -0
  11. package/dist/{chunk-4BX2VUAB-BZlHuf6l.js → chunk-4BX2VUAB-wPZhboqx.js} +1 -1
  12. package/dist/{chunk-55IACEB6-Dr8rgvy_.js → chunk-55IACEB6-BV8ciSb1.js} +1 -1
  13. package/dist/{chunk-B4BG7PRW-Ccllo2e-.js → chunk-B4BG7PRW-DsX0HPSj.js} +11 -11
  14. package/dist/{chunk-DI55MBZ5-DvAROTIr.js → chunk-DI55MBZ5-jq2QyBxN.js} +44 -44
  15. package/dist/{chunk-FMBD7UC4-CVr83prI.js → chunk-FMBD7UC4-YR7nwd5V.js} +1 -1
  16. package/dist/{chunk-QN33PNHL-nSyFq8_s.js → chunk-QN33PNHL-CEVf-TA_.js} +1 -1
  17. package/dist/{chunk-QZHKN3VN-Dg8JYP6e.js → chunk-QZHKN3VN-BjRs8z1O.js} +1 -1
  18. package/dist/{chunk-TZMSLE5B-Bmj6LGNW.js → chunk-TZMSLE5B-C1vaDaHJ.js} +1 -1
  19. package/dist/{classDiagram-2ON5EDUG-DAkxtl6o.js → classDiagram-2ON5EDUG-B4QDlpZ1.js} +6 -6
  20. package/dist/{classDiagram-v2-WZHVMYZB-DAkxtl6o.js → classDiagram-v2-WZHVMYZB-B4QDlpZ1.js} +6 -6
  21. package/dist/code-block-QI2IAROF-CqxV97B3.js +2812 -0
  22. package/dist/{cose-bilkent-S5V4N54A-DwRYWoaW.js → cose-bilkent-S5V4N54A-Ct46NMY7.js} +2 -2
  23. package/dist/{dagre-6UL2VRFP-imN1Fyg8.js → dagre-6UL2VRFP-DmQvQIeM.js} +3 -3
  24. package/dist/{diagram-PSM6KHXK-DAIDeBLn.js → diagram-PSM6KHXK-CkgrbT_2.js} +47 -47
  25. package/dist/{diagram-QEK2KX5R-DQFy-qK9.js → diagram-QEK2KX5R-CC4kNfLh.js} +13 -13
  26. package/dist/{diagram-S2PKOQOG-Hlk0Nx_Y.js → diagram-S2PKOQOG-Bn5_K1zg.js} +16 -16
  27. package/dist/{erDiagram-Q2GNP2WA-C8PZPSaf.js → erDiagram-Q2GNP2WA-DUUsccBq.js} +5 -5
  28. package/dist/{flowDiagram-NV44I4VS-CgTiIFnt.js → flowDiagram-NV44I4VS-BphIgEre.js} +6 -6
  29. package/dist/{ganttDiagram-JELNMOA3-DzYZEAE_.js → ganttDiagram-JELNMOA3-DB4uV-5E.js} +3 -3
  30. package/dist/{gitGraphDiagram-NY62KEGX-CPwI-Uag.js → gitGraphDiagram-NY62KEGX-CsGGzPy-.js} +16 -16
  31. package/dist/hooks/useCodeTransform.d.ts +14 -0
  32. package/dist/{index-C2DJ8qoy.js → index-4odIPslx.js} +18502 -11456
  33. package/dist/index.d.ts +2 -2
  34. package/dist/{infoDiagram-WHAUD3N6-CcN7ZNYI.js → infoDiagram-WHAUD3N6-DumQO9Nk.js} +2 -2
  35. package/dist/{journeyDiagram-XKPGCS4Q-BACao6jz.js → journeyDiagram-XKPGCS4Q-v431C5nB.js} +5 -5
  36. package/dist/{kanban-definition-3W4ZIXB7-Jb7Xwf92.js → kanban-definition-3W4ZIXB7-fvrRkH6c.js} +39 -39
  37. package/dist/{linear-CxGB80S5.js → linear-B5gvsjso.js} +1 -1
  38. package/dist/{mermaid-NA5CF7SZ-DekDSZe_.js → mermaid-NA5CF7SZ-DPw9pyDl.js} +1 -1
  39. package/dist/{mermaid.core-xMGW442o.js → mermaid.core-fgysRC67.js} +87 -87
  40. package/dist/{mindmap-definition-VGOIOE7T-UHZgRHb7.js → mindmap-definition-VGOIOE7T-DYVMZ5_0.js} +69 -69
  41. package/dist/{pieDiagram-ADFJNKIX-CHrTFTbw.js → pieDiagram-ADFJNKIX-ChUQ9M0l.js} +23 -23
  42. package/dist/{quadrantDiagram-AYHSOK5B-CDfhMB18.js → quadrantDiagram-AYHSOK5B-CCuKtq8U.js} +3 -3
  43. package/dist/{requirementDiagram-UZGBJVZJ-C0aeVQh6.js → requirementDiagram-UZGBJVZJ-CX2K4M3c.js} +4 -4
  44. package/dist/{sankeyDiagram-TZEHDZUN-kjxRgXd2.js → sankeyDiagram-TZEHDZUN-DDTggF6e.js} +2 -2
  45. package/dist/{sequenceDiagram-WL72ISMW-Bs0jyVuH.js → sequenceDiagram-WL72ISMW-hLodMsLa.js} +4 -4
  46. package/dist/services/fetch-api/FetchApi.d.ts +1 -0
  47. package/dist/{stateDiagram-FKZM4ZOC-CAWwlh9R.js → stateDiagram-FKZM4ZOC-BsygERhX.js} +12 -12
  48. package/dist/{stateDiagram-v2-4FDKWEC3-9TYlTzc3.js → stateDiagram-v2-4FDKWEC3-D_QAMIGV.js} +5 -5
  49. package/dist/style.css +1 -1
  50. package/dist/tailwind.css +93 -0
  51. package/dist/{timeline-definition-IT6M3QCI-DrPozOxH.js → timeline-definition-IT6M3QCI-DdL3lWtw.js} +47 -47
  52. package/dist/{xychartDiagram-PRI3JC2R-BkO8dJff.js → xychartDiagram-PRI3JC2R-vUb07G9z.js} +35 -35
  53. package/package.json +2 -1
  54. package/dist/ai-input-action/InputAction.d.ts +0 -8
  55. package/dist/ai-input-action/index.d.ts +0 -1
  56. package/dist/arc-DN1xn8kz.js +0 -85
  57. package/dist/channel-BC4mWQQF.js +0 -5
  58. package/dist/code-block-QI2IAROF-DN-BnDmt.js +0 -9263
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { ChatPanel } from './ai-chat-panel';
2
- import { InputAction } from './ai-input-action';
3
2
  import { SummaryCard } from './ai-summary-card';
4
- export { ChatPanel, InputAction, SummaryCard };
3
+ import { PromptCodeEditor } from './ai-prompt-code-editor';
4
+ export { ChatPanel, SummaryCard, PromptCodeEditor };
@@ -1,6 +1,6 @@
1
- import { _ as e, l as s, H as n, k as i, I as p } from "./mermaid.core-xMGW442o.js";
1
+ import { _ as e, l as s, K as n, k as i, L as p } from "./mermaid.core-fgysRC67.js";
2
2
  import { p as g } from "./treemap-KMMF4GRG-D_L55G0b.js";
3
- import "./index-C2DJ8qoy.js";
3
+ import "./index-4odIPslx.js";
4
4
  import "react";
5
5
  import "react-dom";
6
6
  var v = {
@@ -1,8 +1,8 @@
1
- import { d as gt, f as mt, g as lt, b as xt } from "./chunk-TZMSLE5B-Bmj6LGNW.js";
2
- import { g as kt } from "./chunk-FMBD7UC4-CVr83prI.js";
3
- import { _ as n, d as R, n as _t, o as vt, s as bt, g as wt, c as Tt, b as St, t as $t, j as G, k as Mt } from "./mermaid.core-xMGW442o.js";
4
- import { d as et } from "./arc-DN1xn8kz.js";
5
- import "./index-C2DJ8qoy.js";
1
+ import { d as gt, f as mt, g as lt, b as xt } from "./chunk-TZMSLE5B-C1vaDaHJ.js";
2
+ import { g as kt } from "./chunk-FMBD7UC4-YR7nwd5V.js";
3
+ import { _ as n, d as R, o as _t, p as vt, s as bt, g as wt, c as Tt, b as St, v as $t, j as G, k as Mt } from "./mermaid.core-fgysRC67.js";
4
+ import { d as et } from "./arc-CONcyq9a.js";
5
+ import "./index-4odIPslx.js";
6
6
  import "react";
7
7
  import "react-dom";
8
8
  var U = function() {
@@ -1,14 +1,14 @@
1
- import { _ as c, l as te, d as W, H as fe, af as ye, ag as be, ah as me, W as _e, C as K, i as G, p as Ee, J as ke, X as Se, Y as le, $ as ce } from "./mermaid.core-xMGW442o.js";
2
- import { g as Ne } from "./chunk-FMBD7UC4-CVr83prI.js";
3
- import "./index-C2DJ8qoy.js";
1
+ import { _ as c, l as te, d as W, K as fe, ah as ye, ai as be, aj as me, ad as Ee, E as Y, i as G, q as _e, J as ke, ae as Se, af as le, ag as ce } from "./mermaid.core-fgysRC67.js";
2
+ import { g as Ne } from "./chunk-FMBD7UC4-YR7nwd5V.js";
3
+ import "./index-4odIPslx.js";
4
4
  import "react";
5
5
  import "react-dom";
6
6
  var $ = function() {
7
- var t = /* @__PURE__ */ c(function(_, s, n, a) {
8
- for (n = n || {}, a = _.length; a--; n[_[a]] = s)
7
+ var t = /* @__PURE__ */ c(function(E, s, n, a) {
8
+ for (n = n || {}, a = E.length; a--; n[E[a]] = s)
9
9
  ;
10
10
  return n;
11
- }, "o"), g = [1, 4], d = [1, 13], r = [1, 12], p = [1, 15], E = [1, 16], f = [1, 20], h = [1, 19], L = [6, 7, 8], C = [1, 26], w = [1, 24], N = [1, 25], i = [6, 7, 11], H = [1, 31], x = [6, 7, 11, 24], P = [1, 6, 13, 16, 17, 20, 23], M = [1, 35], U = [1, 36], A = [1, 6, 7, 11, 13, 16, 17, 20, 23], j = [1, 38], V = {
11
+ }, "o"), g = [1, 4], d = [1, 13], r = [1, 12], p = [1, 15], _ = [1, 16], f = [1, 20], h = [1, 19], L = [6, 7, 8], C = [1, 26], w = [1, 24], N = [1, 25], i = [6, 7, 11], j = [1, 31], x = [6, 7, 11, 24], P = [1, 6, 13, 16, 17, 20, 23], M = [1, 35], U = [1, 36], A = [1, 6, 7, 11, 13, 16, 17, 20, 23], H = [1, 38], V = {
12
12
  trace: /* @__PURE__ */ c(function() {
13
13
  }, "trace"),
14
14
  yy: {},
@@ -75,7 +75,7 @@ var $ = function() {
75
75
  break;
76
76
  }
77
77
  }, "anonymous"),
78
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: g }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: g }, { 6: d, 7: [1, 10], 9: 9, 12: 11, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, t(L, [2, 3]), { 1: [2, 2] }, t(L, [2, 4]), t(L, [2, 5]), { 1: [2, 6], 6: d, 12: 21, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, { 6: d, 9: 22, 12: 11, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, { 6: C, 7: w, 10: 23, 11: N }, t(i, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: f, 23: h }), t(i, [2, 19]), t(i, [2, 21], { 15: 30, 24: H }), t(i, [2, 22]), t(i, [2, 23]), t(x, [2, 25]), t(x, [2, 26]), t(x, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: C, 7: w, 10: 34, 11: N }, { 1: [2, 7], 6: d, 12: 21, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, t(P, [2, 14], { 7: M, 11: U }), t(A, [2, 8]), t(A, [2, 9]), t(A, [2, 10]), t(i, [2, 16], { 15: 37, 24: H }), t(i, [2, 17]), t(i, [2, 18]), t(i, [2, 20], { 24: j }), t(x, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, t(P, [2, 13], { 7: M, 11: U }), t(A, [2, 11]), t(A, [2, 12]), t(i, [2, 15], { 24: j }), t(x, [2, 30]), { 22: [1, 41] }, t(x, [2, 27]), t(x, [2, 29])],
78
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: g }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: g }, { 6: d, 7: [1, 10], 9: 9, 12: 11, 13: r, 14: 14, 16: p, 17: _, 18: 17, 19: 18, 20: f, 23: h }, t(L, [2, 3]), { 1: [2, 2] }, t(L, [2, 4]), t(L, [2, 5]), { 1: [2, 6], 6: d, 12: 21, 13: r, 14: 14, 16: p, 17: _, 18: 17, 19: 18, 20: f, 23: h }, { 6: d, 9: 22, 12: 11, 13: r, 14: 14, 16: p, 17: _, 18: 17, 19: 18, 20: f, 23: h }, { 6: C, 7: w, 10: 23, 11: N }, t(i, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: f, 23: h }), t(i, [2, 19]), t(i, [2, 21], { 15: 30, 24: j }), t(i, [2, 22]), t(i, [2, 23]), t(x, [2, 25]), t(x, [2, 26]), t(x, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: C, 7: w, 10: 34, 11: N }, { 1: [2, 7], 6: d, 12: 21, 13: r, 14: 14, 16: p, 17: _, 18: 17, 19: 18, 20: f, 23: h }, t(P, [2, 14], { 7: M, 11: U }), t(A, [2, 8]), t(A, [2, 9]), t(A, [2, 10]), t(i, [2, 16], { 15: 37, 24: j }), t(i, [2, 17]), t(i, [2, 18]), t(i, [2, 20], { 24: H }), t(x, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, t(P, [2, 13], { 7: M, 11: U }), t(A, [2, 11]), t(A, [2, 12]), t(i, [2, 15], { 24: H }), t(x, [2, 30]), { 22: [1, 41] }, t(x, [2, 27]), t(x, [2, 29])],
79
79
  defaultActions: { 2: [2, 1], 6: [2, 2] },
80
80
  parseError: /* @__PURE__ */ c(function(s, n) {
81
81
  if (n.recoverable)
@@ -103,20 +103,20 @@ var $ = function() {
103
103
  return S = o.pop() || b.lex() || re, typeof S != "number" && (S instanceof Array && (o = S, S = o.pop()), S = n.symbols_[S] || S), S;
104
104
  }
105
105
  c(ae, "lex");
106
- for (var k, R, v, Q, F = {}, X, I, oe, Y; ; ) {
106
+ for (var k, R, v, Q, F = {}, K, I, oe, X; ; ) {
107
107
  if (R = a[a.length - 1], this.defaultActions[R] ? v = this.defaultActions[R] : ((k === null || typeof k > "u") && (k = ae()), v = B[R] && B[R][k]), typeof v > "u" || !v.length || !v[0]) {
108
108
  var Z = "";
109
- Y = [];
110
- for (X in B[R])
111
- this.terminals_[X] && X > ue && Y.push("'" + this.terminals_[X] + "'");
109
+ X = [];
110
+ for (K in B[R])
111
+ this.terminals_[K] && K > ue && X.push("'" + this.terminals_[K] + "'");
112
112
  b.showPosition ? Z = "Parse error on line " + (z + 1) + `:
113
113
  ` + b.showPosition() + `
114
- Expecting ` + Y.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "Parse error on line " + (z + 1) + ": Unexpected " + (k == re ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(Z, {
114
+ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "Parse error on line " + (z + 1) + ": Unexpected " + (k == re ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(Z, {
115
115
  text: b.match,
116
116
  token: this.terminals_[k] || k,
117
117
  line: b.yylineno,
118
118
  loc: q,
119
- expected: Y
119
+ expected: X
120
120
  });
121
121
  }
122
122
  if (v[0] instanceof Array && v.length > 1)
@@ -153,7 +153,7 @@ Expecting ` + Y.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
153
153
  return !0;
154
154
  }, "parse")
155
155
  }, m = /* @__PURE__ */ function() {
156
- var _ = {
156
+ var E = {
157
157
  EOF: 1,
158
158
  parseError: /* @__PURE__ */ c(function(n, a) {
159
159
  if (this.yy.parser)
@@ -425,7 +425,7 @@ Expecting ` + Y.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
425
425
  rules: [/^(?:@\{)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^\"]+)/i, /^(?:[^}^"]+)/i, /^(?:\})/i, /^(?:\s*%%.*)/i, /^(?:kanban\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}@]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
426
426
  conditions: { shapeDataEndBracket: { rules: [], inclusive: !1 }, shapeDataStr: { rules: [2, 3], inclusive: !1 }, shapeData: { rules: [1, 4, 5], inclusive: !1 }, CLASS: { rules: [9, 10], inclusive: !1 }, ICON: { rules: [14, 15], inclusive: !1 }, NSTR2: { rules: [28, 29], inclusive: !1 }, NSTR: { rules: [31, 32], inclusive: !1 }, NODE: { rules: [27, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], inclusive: !1 }, INITIAL: { rules: [0, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], inclusive: !0 } }
427
427
  };
428
- return _;
428
+ return E;
429
429
  }();
430
430
  V.lexer = m;
431
431
  function O() {
@@ -450,7 +450,7 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
450
450
  }, "getSections"), Le = /* @__PURE__ */ c(function() {
451
451
  const t = [], g = [], d = he(), r = W();
452
452
  for (const p of d) {
453
- const E = {
453
+ const _ = {
454
454
  id: p.id,
455
455
  label: G(p.label ?? "", r),
456
456
  isGroup: !0,
@@ -459,7 +459,7 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
459
459
  level: p.level,
460
460
  look: r.look
461
461
  };
462
- g.push(E);
462
+ g.push(_);
463
463
  const f = D.filter((h) => h.parentId === p.id);
464
464
  for (const h of f) {
465
465
  const L = {
@@ -483,8 +483,8 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
483
483
  return { nodes: g, edges: t, other: {}, config: W() };
484
484
  }, "getData"), Oe = /* @__PURE__ */ c((t, g, d, r, p) => {
485
485
  var C, w;
486
- const E = W();
487
- let f = ((C = E.mindmap) == null ? void 0 : C.padding) ?? K.mindmap.padding;
486
+ const _ = W();
487
+ let f = ((C = _.mindmap) == null ? void 0 : C.padding) ?? Y.mindmap.padding;
488
488
  switch (r) {
489
489
  case y.ROUNDED_RECT:
490
490
  case y.RECT:
@@ -492,10 +492,10 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
492
492
  f *= 2;
493
493
  }
494
494
  const h = {
495
- id: G(g, E) || "kbn" + ee++,
495
+ id: G(g, _) || "kbn" + ee++,
496
496
  level: t,
497
- label: G(d, E),
498
- width: ((w = E.mindmap) == null ? void 0 : w.maxNodeWidth) ?? K.mindmap.maxNodeWidth,
497
+ label: G(d, _),
498
+ width: ((w = _.mindmap) == null ? void 0 : w.maxNodeWidth) ?? Y.mindmap.maxNodeWidth,
499
499
  padding: f,
500
500
  isGroup: !1
501
501
  };
@@ -506,7 +506,7 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
506
506
  ` : N = `{
507
507
  ` + p + `
508
508
  }`;
509
- const i = Ee(N, { schema: ke });
509
+ const i = _e(N, { schema: ke });
510
510
  if (i.shape && (i.shape !== i.shape.toLowerCase() || i.shape.includes("_")))
511
511
  throw new Error(`No such shape: ${i.shape}. Shape names should be lowercase.`);
512
512
  i != null && i.shape && i.shape === "kanbanItem" && (h.shape = i == null ? void 0 : i.shape), i != null && i.label && (h.label = i == null ? void 0 : i.label), i != null && i.icon && (h.icon = i == null ? void 0 : i.icon.toString()), i != null && i.assigned && (h.assigned = i == null ? void 0 : i.assigned.toString()), i != null && i.ticket && (h.ticket = i == null ? void 0 : i.ticket.toString()), i != null && i.priority && (h.priority = i == null ? void 0 : i.priority);
@@ -578,50 +578,50 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
578
578
  getLogger: Te,
579
579
  getElementById: Re
580
580
  }, Ve = Pe, Be = /* @__PURE__ */ c(async (t, g, d, r) => {
581
- var M, U, A, j, V;
581
+ var M, U, A, H, V;
582
582
  te.debug(`Rendering kanban diagram
583
583
  ` + t);
584
- const E = r.db.getData(), f = W();
584
+ const _ = r.db.getData(), f = W();
585
585
  f.htmlLabels = !1;
586
586
  const h = fe(g), L = h.append("g");
587
587
  L.attr("class", "sections");
588
588
  const C = h.append("g");
589
589
  C.attr("class", "items");
590
- const w = E.nodes.filter(
590
+ const w = _.nodes.filter(
591
591
  // TODO: TypeScript 5.5 will infer this predicate automatically
592
592
  (m) => m.isGroup
593
593
  );
594
594
  let N = 0;
595
- const i = 10, H = [];
595
+ const i = 10, j = [];
596
596
  let x = 25;
597
597
  for (const m of w) {
598
598
  const O = ((M = f == null ? void 0 : f.kanban) == null ? void 0 : M.sectionWidth) || 200;
599
599
  N = N + 1, m.x = O * N + (N - 1) * i / 2, m.width = O, m.y = 0, m.height = O * 3, m.rx = 5, m.ry = 5, m.cssClasses = m.cssClasses + " section-" + N;
600
- const _ = await ye(L, m);
601
- x = Math.max(x, (U = _ == null ? void 0 : _.labelBBox) == null ? void 0 : U.height), H.push(_);
600
+ const E = await ye(L, m);
601
+ x = Math.max(x, (U = E == null ? void 0 : E.labelBBox) == null ? void 0 : U.height), j.push(E);
602
602
  }
603
603
  let P = 0;
604
604
  for (const m of w) {
605
- const O = H[P];
605
+ const O = j[P];
606
606
  P = P + 1;
607
- const _ = ((A = f == null ? void 0 : f.kanban) == null ? void 0 : A.sectionWidth) || 200, s = -_ * 3 / 2 + x;
607
+ const E = ((A = f == null ? void 0 : f.kanban) == null ? void 0 : A.sectionWidth) || 200, s = -E * 3 / 2 + x;
608
608
  let n = s;
609
- const a = E.nodes.filter((e) => e.parentId === m.id);
609
+ const a = _.nodes.filter((e) => e.parentId === m.id);
610
610
  for (const e of a) {
611
611
  if (e.isGroup)
612
612
  throw new Error("Groups within groups are not allowed in Kanban diagrams");
613
- e.x = m.x, e.width = _ - 1.5 * i;
613
+ e.x = m.x, e.width = E - 1.5 * i;
614
614
  const l = (await be(C, e, { config: f })).node().getBBox();
615
615
  e.y = n + l.height / 2, await me(e), n = e.y + l.height / 2 + i / 2;
616
616
  }
617
617
  const o = O.cluster.select("rect"), u = Math.max(n - s + 3 * i, 50) + (x - 25);
618
618
  o.attr("height", u);
619
619
  }
620
- _e(
620
+ Ee(
621
621
  void 0,
622
622
  h,
623
- ((j = f.mindmap) == null ? void 0 : j.padding) ?? K.kanban.padding,
624
- ((V = f.mindmap) == null ? void 0 : V.useMaxWidth) ?? K.kanban.useMaxWidth
623
+ ((H = f.mindmap) == null ? void 0 : H.padding) ?? Y.kanban.padding,
624
+ ((V = f.mindmap) == null ? void 0 : V.useMaxWidth) ?? Y.kanban.useMaxWidth
625
625
  );
626
626
  }, "draw"), Fe = {
627
627
  draw: Be
@@ -681,7 +681,7 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
681
681
  `;
682
682
  }
683
683
  return g;
684
- }, "genSections"), He = /* @__PURE__ */ c((t) => `
684
+ }, "genSections"), je = /* @__PURE__ */ c((t) => `
685
685
  .edge {
686
686
  stroke-width: 3;
687
687
  }
@@ -713,12 +713,12 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
713
713
  text-align: center;
714
714
  }
715
715
  ${Ne()}
716
- `, "getStyles"), Me = He, Ye = {
716
+ `, "getStyles"), Me = je, Xe = {
717
717
  db: Ve,
718
718
  renderer: Fe,
719
719
  parser: xe,
720
720
  styles: Me
721
721
  };
722
722
  export {
723
- Ye as diagram
723
+ Xe as diagram
724
724
  };
@@ -1,4 +1,4 @@
1
- import { aB as j, aC as p, aD as w, aE as k, aF as D } from "./mermaid.core-xMGW442o.js";
1
+ import { aB as j, aC as p, aD as w, aE as k, aF as D } from "./mermaid.core-fgysRC67.js";
2
2
  import { i as F } from "./init-DjUOC4st.js";
3
3
  import { e as g, f as q, a as B, b as z } from "./defaultLocale-DcQU6Vee.js";
4
4
  function M(n, r) {
@@ -1,4 +1,4 @@
1
- import { E as p } from "./index-C2DJ8qoy.js";
1
+ import { E as p } from "./index-4odIPslx.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  export {