@ucap-llm/ai-ui 1.1.20 → 1.1.22

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 (69) hide show
  1. package/_basePickBy-49aBLVXj.mjs +151 -0
  2. package/_baseUniq-Duw-LCxN.mjs +418 -0
  3. package/ai-ui.es.js +5 -5
  4. package/ai-ui.umd.js +441 -398
  5. package/{arc-e33cf4bd.mjs → arc-CxnBoKcf.mjs} +3 -5
  6. package/architecture-4AB2E3PP-DpATI33S.mjs +5 -0
  7. package/{architectureDiagram-IEHRJDOE-8c0644d3.mjs → architectureDiagram-IEHRJDOE-CaoKd3s2.mjs} +774 -781
  8. package/{blockDiagram-JOT3LUYC-2e03b1f8.mjs → blockDiagram-JOT3LUYC-Dno4VG8f.mjs} +17 -21
  9. package/{c4Diagram-VJAJSXHY-0d7e02b1.mjs → c4Diagram-VJAJSXHY-D5HK6aXG.mjs} +45 -47
  10. package/channel-CjgQSUhn.mjs +5 -0
  11. package/{chunk-4BMEZGHF-c55a79e8.mjs → chunk-4BMEZGHF-B5q96F5j.mjs} +1 -1
  12. package/{chunk-A2AXSNBT-72cb8e03.mjs → chunk-A2AXSNBT-CwIw1dro.mjs} +31 -32
  13. package/{chunk-AEK57VVT-103a8016.mjs → chunk-AEK57VVT-CgqpfRdv.mjs} +29 -30
  14. package/{chunk-D6G4REZN-eb0c0a03.mjs → chunk-D6G4REZN-BuQQgKKf.mjs} +24 -24
  15. package/chunk-RZ5BOZE2-nBulgjak.mjs +24 -0
  16. package/{chunk-XZIHB7SX-697eddab.mjs → chunk-XZIHB7SX-ChfFX5tX.mjs} +1 -1
  17. package/classDiagram-GIVACNV2-DW4s6Pgr.mjs +16 -0
  18. package/classDiagram-v2-COTLJTTW-DW4s6Pgr.mjs +16 -0
  19. package/{clone-e06e1908.mjs → clone-BWxZJOIB.mjs} +1 -1
  20. package/{cytoscape.esm-9ffb4bbe.mjs → cytoscape.esm-D1A2YP3J.mjs} +133 -240
  21. package/{dagre-OKDRZEBW-1380cf0d.mjs → dagre-OKDRZEBW-BF7VSsgY.mjs} +25 -26
  22. package/{diagram-SSKATNLV-1e22cab7.mjs → diagram-SSKATNLV-BHV-tmQz.mjs} +48 -52
  23. package/{diagram-VNBRO52H-63b9b854.mjs → diagram-VNBRO52H-DhnmXzVl.mjs} +31 -35
  24. package/{erDiagram-Q7BY3M3F-6f4f40c6.mjs → erDiagram-Q7BY3M3F-yoOr4S3e.mjs} +32 -34
  25. package/{flowDiagram-4HSFHLVR-217f422a.mjs → flowDiagram-4HSFHLVR-Dypn-7OY.mjs} +21 -23
  26. package/{ganttDiagram-APWFNJXF-b1c138fc.mjs → ganttDiagram-APWFNJXF-Bpg6PwzQ.mjs} +933 -961
  27. package/gitGraph-O2Q2CXLX-B57Ivesv.mjs +5 -0
  28. package/{gitGraphDiagram-7IBYFJ6S-a40cd00c.mjs → gitGraphDiagram-7IBYFJ6S-C2SKSevj.mjs} +27 -31
  29. package/{graph-c2e1b9d5.mjs → graph-BqoU6xY2.mjs} +7 -9
  30. package/{index-4283477e.mjs → index-LXAHF7dZ.mjs} +56792 -32545
  31. package/info-4N47QTOZ-rUYWBWKH.mjs +5 -0
  32. package/infoDiagram-PH2N3AL5-Dwh9BN3B.mjs +22 -0
  33. package/{journeyDiagram-U35MCT3I-ea34e89d.mjs → journeyDiagram-U35MCT3I-BuJo6oNZ.mjs} +26 -28
  34. package/{kanban-definition-NDS4AKOZ-3dc1bdfc.mjs → kanban-definition-NDS4AKOZ-3bBL0X_A.mjs} +22 -23
  35. package/{layout-b7402112.mjs → layout-UCl5QdSx.mjs} +288 -308
  36. package/{linear-6028b26a.mjs → linear-5kjmVbWx.mjs} +136 -160
  37. package/{mermaid-parser.core-89f41f6f.mjs → mermaid-parser.core-BTQeWTCL.mjs} +2510 -2520
  38. package/{mindmap-definition-ALO5MXBD-cf0036bd.mjs → mindmap-definition-ALO5MXBD-pyGAc115.mjs} +309 -311
  39. package/{ordinal-980380c7.mjs → ordinal-C0oynhte.mjs} +4 -8
  40. package/package.json +2 -2
  41. package/packet-KVYON367-B0aEJOd2.mjs +5 -0
  42. package/pie-R6RNRRYF-mat_xgAT.mjs +5 -0
  43. package/pieDiagram-IB7DONF6-Dfr5jCmu.mjs +161 -0
  44. package/{quadrantDiagram-7GDLP6J5-4e41575d.mjs → quadrantDiagram-7GDLP6J5-CUP0tYJI.mjs} +28 -31
  45. package/radar-MK3ICKWK-ae8hsHN1.mjs +5 -0
  46. package/{requirementDiagram-KVF5MWMF-edfb0543.mjs → requirementDiagram-KVF5MWMF-O1db62rc.mjs} +47 -49
  47. package/{sankeyDiagram-QLVOVGJD-c0853822.mjs → sankeyDiagram-QLVOVGJD-CCf-MSR0.mjs} +113 -131
  48. package/{sequenceDiagram-X6HHIX6F-96ff1e7c.mjs → sequenceDiagram-X6HHIX6F-CrB4QPFZ.mjs} +40 -42
  49. package/{stateDiagram-DGXRK772-7c6ceb1c.mjs → stateDiagram-DGXRK772-DWFrvHEL.mjs} +8 -12
  50. package/stateDiagram-v2-YXO3MK2T-BuEm2W4g.mjs +16 -0
  51. package/style.css +10 -1
  52. package/{timeline-definition-BDJGKUSR-23f3d39c.mjs → timeline-definition-BDJGKUSR-ThsfvZPa.mjs} +11 -13
  53. package/{xychartDiagram-VJFVF3MP-9b2268b5.mjs → xychartDiagram-VJFVF3MP-D7Ns77UK.mjs} +161 -163
  54. package/_basePickBy-576eaf6e.mjs +0 -153
  55. package/_baseUniq-83e8b0cb.mjs +0 -440
  56. package/architecture-4AB2E3PP-1faad353.mjs +0 -10
  57. package/channel-283b31f1.mjs +0 -5
  58. package/chunk-RZ5BOZE2-97e0c31b.mjs +0 -24
  59. package/classDiagram-GIVACNV2-306a98b6.mjs +0 -18
  60. package/classDiagram-v2-COTLJTTW-306a98b6.mjs +0 -18
  61. package/gitGraph-O2Q2CXLX-804a8ebe.mjs +0 -10
  62. package/info-4N47QTOZ-6f3c3677.mjs +0 -10
  63. package/infoDiagram-PH2N3AL5-4c0f80b6.mjs +0 -26
  64. package/packet-KVYON367-3ead67ef.mjs +0 -10
  65. package/pie-R6RNRRYF-41122910.mjs +0 -10
  66. package/pieDiagram-IB7DONF6-9b4a5b06.mjs +0 -167
  67. package/radar-MK3ICKWK-0d996d37.mjs +0 -10
  68. package/stateDiagram-v2-YXO3MK2T-012aec41.mjs +0 -18
  69. /package/{init-f9637058.mjs → init-DjUOC4st.mjs} +0 -0
@@ -0,0 +1,5 @@
1
+ import { G as a, f as G } from "./mermaid-parser.core-BTQeWTCL.mjs";
2
+ export {
3
+ a as GitGraphModule,
4
+ G as createGitGraphServices
5
+ };
@@ -1,20 +1,16 @@
1
- import { p as Z } from "./chunk-4BMEZGHF-c55a79e8.mjs";
2
- import { I as F } from "./chunk-XZIHB7SX-697eddab.mjs";
3
- import { C as U, _ as h, d as rr, D as er, E as tr, F as ar, l as w, s as nr, g as sr, b as or, c as cr, n as ir, o as dr, e as B, t as hr, j as lr, u as $r, G as fr } from "./index-4283477e.mjs";
4
- import { p as gr } from "./mermaid-parser.core-89f41f6f.mjs";
5
- import "vue";
6
- import "./_baseUniq-83e8b0cb.mjs";
7
- import "./_basePickBy-576eaf6e.mjs";
8
- import "./clone-e06e1908.mjs";
1
+ import { p as Z } from "./chunk-4BMEZGHF-B5q96F5j.mjs";
2
+ import { I as F } from "./chunk-XZIHB7SX-ChfFX5tX.mjs";
3
+ import { _ as h, q as U, p as rr, s as er, g as tr, a as ar, b as nr, l as w, c as sr, d as or, u as cr, C as ir, y as dr, k as B, D as hr, E as lr, F as $r, G as fr } from "./index-LXAHF7dZ.mjs";
4
+ import { p as gr } from "./mermaid-parser.core-BTQeWTCL.mjs";
9
5
  var x = {
10
6
  NORMAL: 0,
11
7
  REVERSE: 1,
12
8
  HIGHLIGHT: 2,
13
9
  MERGE: 3,
14
10
  CHERRY_PICK: 4
15
- }, yr = U.gitGraph, z = /* @__PURE__ */ h(() => er({
11
+ }, yr = $r.gitGraph, z = /* @__PURE__ */ h(() => hr({
16
12
  ...yr,
17
- ...tr().gitGraph
13
+ ...lr().gitGraph
18
14
  }), "getConfig"), i = new F(() => {
19
15
  const t = z(), r = t.mainBranchName, a = t.mainBranchOrder;
20
16
  return {
@@ -29,10 +25,10 @@ var x = {
29
25
  options: {}
30
26
  };
31
27
  });
32
- function j() {
33
- return ar({ length: 7 });
28
+ function S() {
29
+ return fr({ length: 7 });
34
30
  }
35
- h(j, "getID");
31
+ h(S, "getID");
36
32
  function N(t, r) {
37
33
  const a = /* @__PURE__ */ Object.create(null);
38
34
  return t.reduce((s, e) => {
@@ -60,7 +56,7 @@ var ur = /* @__PURE__ */ h(function(t) {
60
56
  const n = z();
61
57
  a = B.sanitizeText(a, n), r = B.sanitizeText(r, n), e = e == null ? void 0 : e.map((o) => B.sanitizeText(o, n));
62
58
  const c = {
63
- id: a || i.records.seq + "-" + j(),
59
+ id: a || i.records.seq + "-" + S(),
64
60
  message: r,
65
61
  seq: i.records.seq++,
66
62
  type: s ?? x.NORMAL,
@@ -143,7 +139,7 @@ var ur = /* @__PURE__ */ h(function(t) {
143
139
  }, d;
144
140
  }
145
141
  const f = o || "", g = {
146
- id: a || `${i.records.seq}-${j()}`,
142
+ id: a || `${i.records.seq}-${S()}`,
147
143
  message: `merged branch ${r} into ${i.records.currBranch}`,
148
144
  seq: i.records.seq++,
149
145
  parents: i.records.head == null ? [] : [i.records.head.id, f],
@@ -214,7 +210,7 @@ var ur = /* @__PURE__ */ h(function(t) {
214
210
  }, g;
215
211
  }
216
212
  const f = {
217
- id: i.records.seq + "-" + j(),
213
+ id: i.records.seq + "-" + S(),
218
214
  message: `cherry-picked ${c == null ? void 0 : c.message} into ${i.records.currBranch}`,
219
215
  seq: i.records.seq++,
220
216
  parents: i.records.head == null ? [] : [i.records.head.id, c.id],
@@ -275,7 +271,7 @@ var Cr = /* @__PURE__ */ h(function() {
275
271
  const t = V()[0];
276
272
  D([t]);
277
273
  }, "prettyPrint"), Er = /* @__PURE__ */ h(function() {
278
- i.reset(), hr();
274
+ i.reset(), dr();
279
275
  }, "clear"), Br = /* @__PURE__ */ h(function() {
280
276
  return [...i.records.branchConfig.values()].map((r, a) => r.order !== null && r.order !== void 0 ? r : {
281
277
  ...r,
@@ -318,11 +314,11 @@ var Cr = /* @__PURE__ */ h(function() {
318
314
  getDirection: Mr,
319
315
  getHead: Rr,
320
316
  setAccTitle: nr,
321
- getAccTitle: sr,
322
- getAccDescription: or,
323
- setAccDescription: cr,
324
- setDiagramTitle: ir,
325
- getDiagramTitle: dr
317
+ getAccTitle: ar,
318
+ getAccDescription: tr,
319
+ setAccDescription: er,
320
+ setDiagramTitle: rr,
321
+ getDiagramTitle: U
326
322
  }, Ir = /* @__PURE__ */ h((t, r) => {
327
323
  Z(t, r), t.dir && r.setDirection(t.dir);
328
324
  for (const a of t.statements)
@@ -362,7 +358,7 @@ var Cr = /* @__PURE__ */ h(function() {
362
358
  const r = await gr("gitGraph", t);
363
359
  w.debug(r), Ir(r, X);
364
360
  }, "parse")
365
- }, S = rr(), b = S == null ? void 0 : S.gitGraph, R = 10, I = 40, k = 4, L = 2, O = 8, C = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), P = 30, G = /* @__PURE__ */ new Map(), W = [], M = 0, u = "LR", jr = /* @__PURE__ */ h(() => {
361
+ }, j = sr(), b = j == null ? void 0 : j.gitGraph, R = 10, I = 40, k = 4, L = 2, O = 8, C = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), P = 30, G = /* @__PURE__ */ new Map(), W = [], M = 0, u = "LR", Sr = /* @__PURE__ */ h(() => {
366
362
  C.clear(), E.clear(), G.clear(), M = 0, W = [], u = "LR";
367
363
  }, "clear"), J = /* @__PURE__ */ h((t) => {
368
364
  const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
@@ -377,7 +373,7 @@ var Cr = /* @__PURE__ */ h(function() {
377
373
  const n = u === "TB" || u == "BT" ? (c = E.get(e)) == null ? void 0 : c.y : (o = E.get(e)) == null ? void 0 : o.x;
378
374
  n !== void 0 && a(n, s) && (r = e, s = n);
379
375
  }), r;
380
- }, "findClosestParent"), Sr = /* @__PURE__ */ h((t) => {
376
+ }, "findClosestParent"), jr = /* @__PURE__ */ h((t) => {
381
377
  let r = "", a = 1 / 0;
382
378
  return t.forEach((s) => {
383
379
  const e = E.get(s).y;
@@ -396,7 +392,7 @@ var Cr = /* @__PURE__ */ h(function() {
396
392
  }), t.forEach((c) => {
397
393
  const o = r.get(c);
398
394
  if (o != null && o.parents.length) {
399
- const $ = Sr(o.parents);
395
+ const $ = jr(o.parents);
400
396
  s = E.get($).y - I, s <= e && (e = s);
401
397
  const l = C.get(o.branch).pos, f = s - R;
402
398
  E.set(o.id, { x: l, y: f });
@@ -624,14 +620,14 @@ var Cr = /* @__PURE__ */ h(function() {
624
620
  }, "drawBranches"), te = /* @__PURE__ */ h(function(t, r, a, s, e) {
625
621
  return C.set(t, { pos: r, index: a }), r += 50 + (e ? 40 : 0) + (u === "TB" || u === "BT" ? s.width / 2 : 0), r;
626
622
  }, "setBranchPosition"), ae = /* @__PURE__ */ h(function(t, r, a, s) {
627
- if (jr(), w.debug("in gitgraph renderer", t + `
623
+ if (Sr(), w.debug("in gitgraph renderer", t + `
628
624
  `, "id:", r, a), !b)
629
625
  throw new Error("GitGraph config not found");
630
626
  const e = b.rotateCommitLabel ?? !1, n = s.db;
631
627
  G = n.getCommits();
632
628
  const c = n.getBranchesAsObjArray();
633
629
  u = n.getDirection();
634
- const o = lr(`[id="${r}"]`);
630
+ const o = or(`[id="${r}"]`);
635
631
  let $ = 0;
636
632
  c.forEach((l, f) => {
637
633
  var q;
@@ -639,12 +635,12 @@ var Cr = /* @__PURE__ */ h(function() {
639
635
  (q = p.node()) == null || q.appendChild(g);
640
636
  const m = g.getBBox();
641
637
  $ = te(l.name, $, f, m, e), p.remove(), y.remove(), d.remove();
642
- }), K(o, G, !1), b.showBranches && ee(o, c), re(o, G), K(o, G, !0), $r.insertTitle(
638
+ }), K(o, G, !1), b.showBranches && ee(o, c), re(o, G), K(o, G, !0), cr.insertTitle(
643
639
  o,
644
640
  "gitTitleText",
645
641
  b.titleTopMargin ?? 0,
646
642
  n.getDiagramTitle()
647
- ), fr(
643
+ ), ir(
648
644
  void 0,
649
645
  o,
650
646
  b.diagramPadding,
@@ -705,12 +701,12 @@ var Cr = /* @__PURE__ */ h(function() {
705
701
  font-size: 18px;
706
702
  fill: ${t.textColor};
707
703
  }
708
- `, "getStyles"), oe = se, ye = {
704
+ `, "getStyles"), oe = se, le = {
709
705
  parser: Wr,
710
706
  db: X,
711
707
  renderer: ne,
712
708
  styles: oe
713
709
  };
714
710
  export {
715
- ye as diagram
711
+ le as diagram
716
712
  };
@@ -1,10 +1,8 @@
1
- import { az as N, aA as j, aB as f, aC as b, aD as _, aE as E } from "./index-4283477e.mjs";
2
- import { a as v, c as P, f as g, d, i as l, v as p, r as D } from "./_baseUniq-83e8b0cb.mjs";
1
+ import { az as N, aA as j, aB as f, aC as b, aD as _, aE as E } from "./index-LXAHF7dZ.mjs";
2
+ import { a as v, c as P, f as g, d, i as l, v as p, r as D } from "./_baseUniq-Duw-LCxN.mjs";
3
3
  var w = N(function(o) {
4
4
  return v(P(o, 1, j, !0));
5
- });
6
- const F = w;
7
- var M = "\0", a = "\0", O = "";
5
+ }), F = "\0", a = "\0", O = "";
8
6
  class L {
9
7
  constructor(e = {}) {
10
8
  this._isDirected = Object.prototype.hasOwnProperty.call(e, "directed") ? e.directed : !0, this._isMultigraph = Object.prototype.hasOwnProperty.call(e, "multigraph") ? e.multigraph : !1, this._isCompound = Object.prototype.hasOwnProperty.call(e, "compound") ? e.compound : !1, this._label = void 0, this._defaultNodeLabelFn = f(void 0), this._defaultEdgeLabelFn = f(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[a] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {};
@@ -120,7 +118,7 @@ class L {
120
118
  neighbors(e) {
121
119
  var t = this.predecessors(e);
122
120
  if (t)
123
- return F(t, this.successors(e));
121
+ return w(t, this.successors(e));
124
122
  }
125
123
  isLeaf(e) {
126
124
  var t;
@@ -177,7 +175,7 @@ class L {
177
175
  if (!l(s) && !this._isMultigraph)
178
176
  throw new Error("Cannot set a named edge when isMultigraph = false");
179
177
  this.setNode(e), this.setNode(t), this._edgeLabels[h] = r ? i : this._defaultEdgeLabelFn(e, t, s);
180
- var u = A(this._isDirected, e, t, s);
178
+ var u = M(this._isDirected, e, t, s);
181
179
  return e = u.v, t = u.w, Object.freeze(u), this._edgeObjs[h] = u, C(this._preds[t], e), C(this._sucs[e], t), this._in[t][h] = u, this._out[e][h] = u, this._edgeCount++, this;
182
180
  }
183
181
  edge(e, t, s) {
@@ -230,9 +228,9 @@ function c(o, e, t, s) {
230
228
  var n = i;
231
229
  i = r, r = n;
232
230
  }
233
- return i + O + r + O + (l(s) ? M : s);
231
+ return i + O + r + O + (l(s) ? F : s);
234
232
  }
235
- function A(o, e, t, s) {
233
+ function M(o, e, t, s) {
236
234
  var i = "" + e, r = "" + t;
237
235
  if (!o && i > r) {
238
236
  var n = i;