likec4 1.59.2 → 1.59.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 (58) hide show
  1. package/__app__/src/chunks/AIChat.mjs +21 -26
  2. package/__app__/src/chunks/LikeC4Styles.mjs +257 -263
  3. package/__app__/src/chunks/ProjectsOverview.mjs +58 -58
  4. package/__app__/src/chunks/hooks.mjs +106 -80
  5. package/__app__/src/chunks/libs/@floating-ui.mjs +646 -332
  6. package/__app__/src/chunks/libs/@mantine.mjs +1911 -1734
  7. package/__app__/src/chunks/libs/@tanstack-ai.mjs +26 -26
  8. package/__app__/src/chunks/libs/@tanstack.mjs +42 -41
  9. package/__app__/src/chunks/libs/@xstate/react.mjs +59 -40
  10. package/__app__/src/chunks/libs/@xyflow/react.mjs +532 -445
  11. package/__app__/src/chunks/libs/bezier-js.mjs +10 -9
  12. package/__app__/src/chunks/libs/d3.mjs +16 -36
  13. package/__app__/src/chunks/libs/fast-equals.mjs +1 -1
  14. package/__app__/src/chunks/libs/framer.mjs +294 -273
  15. package/__app__/src/chunks/libs/zod.mjs +17 -14
  16. package/__app__/src/chunks/rolldown-runtime.mjs +2 -2
  17. package/__app__/src/chunks/styled-system.mjs +9 -15
  18. package/__app__/src/main.mjs +15994 -15936
  19. package/__app__/src/style.css +1 -1
  20. package/config/schema.json +35 -0
  21. package/dist/app/render-view-client.css +1 -0
  22. package/dist/app/render-view-client.js +745 -0
  23. package/dist/chunks/enableServer.mjs +1 -1
  24. package/dist/chunks/filenames.mjs +7 -6
  25. package/dist/chunks/index.d.mts +11 -0
  26. package/dist/chunks/index2.d.mts +41 -5
  27. package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
  28. package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +5 -5
  29. package/dist/chunks/libs/@logtape/logtape.mjs +1 -1
  30. package/dist/chunks/libs/@lume/kiwi.mjs +1 -1
  31. package/dist/chunks/libs/birpc.mjs +1 -1
  32. package/dist/chunks/libs/chevrotain-allstar.mjs +1 -1
  33. package/dist/chunks/libs/chevrotain.mjs +16 -16
  34. package/dist/chunks/libs/json5.mjs +3 -3
  35. package/dist/chunks/libs/langium.mjs +11 -11
  36. package/dist/chunks/libs/merge-error-cause.mjs +2 -2
  37. package/dist/chunks/libs/package-manager-detector.mjs +1 -1
  38. package/dist/chunks/libs/pako.mjs +1 -1
  39. package/dist/chunks/libs/picomatch.mjs +1 -1
  40. package/dist/chunks/libs/pretty-ms.mjs +1 -1
  41. package/dist/chunks/libs/remeda.mjs +1 -1
  42. package/dist/chunks/libs/zod.mjs +4 -4
  43. package/dist/chunks/node.mjs +69 -57
  44. package/dist/chunks/rolldown-runtime.mjs +1 -1
  45. package/dist/chunks/sequence-view.mjs +1 -1
  46. package/dist/chunks/vite-plugin.mjs +161 -50
  47. package/dist/cli/index.mjs +272 -162
  48. package/dist/config/index.d.mts +7 -1
  49. package/dist/config/index.mjs +1 -1
  50. package/dist/index.mjs +1 -1
  51. package/dist/vite-plugin/internal/index.d.mts +64 -27
  52. package/dist/vite-plugin/internal/index.mjs +65 -29
  53. package/package.json +39 -39
  54. package/react/index.d.mts +76 -1
  55. package/react/index.mjs +7302 -6778
  56. package/vite-plugin-modules.d.ts +18 -0
  57. package/dist/chunks/dist.mjs +0 -10
  58. package/dist/chunks/logger.mjs +0 -1
@@ -206,7 +206,7 @@ var c = Math.PI, l = 2 * c, u = c / 2, f = 1e-6, p = 2 ** 53 - 1 || 900719925474
206
206
  },
207
207
  lli8: function(e, n, r, i, a, o, s, c) {
208
208
  let l = (e * i - n * r) * (a - s) - (e - r) * (a * c - o * s), u = (e * i - n * r) * (o - c) - (n - i) * (a * c - o * s), f = (e - r) * (o - c) - (n - i) * (a - s);
209
- return f == 0 ? !1 : {
209
+ return f != 0 && {
210
210
  x: l / f,
211
211
  y: u / f
212
212
  };
@@ -322,8 +322,8 @@ var c = Math.PI, l = 2 * c, u = c / 2, f = 1e-6, p = 2 ** 53 - 1 || 900719925474
322
322
  if (i !== 0) {
323
323
  let a = -o(n * n - e * r), s = -e + n;
324
324
  return [-(a + s) / i, -(-a + s) / i].filter(reduce);
325
- } else if (n !== r && i === 0) return [(2 * n - r) / (2 * n - 2 * r)].filter(reduce);
326
- return [];
325
+ }
326
+ return n !== r && i === 0 ? [(2 * n - r) / (2 * n - 2 * r)].filter(reduce) : [];
327
327
  }
328
328
  let c = s[0].y, u = s[1].y, f = s[2].y, p = s[3].y, m = -c + 3 * u - 3 * f + p, h = 3 * c - 6 * u + 3 * f, _ = -3 * c + 3 * u, v = c;
329
329
  if (g.approximately(m, 0)) {
@@ -340,8 +340,9 @@ var c = Math.PI, l = 2 * c, u = c / 2, f = 1e-6, p = 2 ** 53 - 1 || 900719925474
340
340
  D,
341
341
  O
342
342
  ].filter(reduce);
343
- } else if (C === 0) return w = S < 0 ? crt(-S) : -crt(S), E = 2 * w - h / 3, D = -w - h / 3, [E, D].filter(reduce);
344
- else {
343
+ }
344
+ if (C === 0) return w = S < 0 ? crt(-S) : -crt(S), E = 2 * w - h / 3, D = -w - h / 3, [E, D].filter(reduce);
345
+ {
345
346
  let e = o(C);
346
347
  return w = crt(-S + e), T = crt(S + e), [w - T - h / 3].filter(reduce);
347
348
  }
@@ -352,8 +353,8 @@ var c = Math.PI, l = 2 * c, u = c / 2, f = 1e-6, p = 2 ** 53 - 1 || 900719925474
352
353
  if (a !== 0) {
353
354
  let e = -o(r * r - n * i), s = -n + r;
354
355
  return [-(e + s) / a, -(-e + s) / a];
355
- } else if (r !== i && a === 0) return [(2 * r - i) / (2 * (r - i))];
356
- return [];
356
+ }
357
+ return r !== i && a === 0 ? [(2 * r - i) / (2 * (r - i))] : [];
357
358
  }
358
359
  if (e.length === 2) {
359
360
  let n = e[0], r = e[1];
@@ -909,12 +910,12 @@ var c = Math.PI, l = 2 * c, u = c / 2, f = 1e-6, p = 2 ** 53 - 1 || 900719925474
909
910
  let o = a.length();
910
911
  p ? (s.push(a.scale(linearDistanceFunction(e, r, f, u, o))), c.push(a.scale(linearDistanceFunction(-n, -i, f, u, o)))) : (s.push(a.scale(e)), c.push(a.scale(-n))), u += o;
911
912
  }), c = c.map(function(e) {
912
- return l = e.points, l[3] ? e.points = [
913
+ return l = e.points, e.points = l[3] ? [
913
914
  l[3],
914
915
  l[2],
915
916
  l[1],
916
917
  l[0]
917
- ] : e.points = [
918
+ ] : [
918
919
  l[2],
919
920
  l[1],
920
921
  l[0]
@@ -951,9 +951,7 @@ function drag_default() {
951
951
  a[c] = gesture, g = u++;
952
952
  break;
953
953
  case "end": delete a[c], --u;
954
- case "drag":
955
- f = pointer_default(o || r, t), g = u;
956
- break;
954
+ case "drag": f = pointer_default(o || r, t), g = u;
957
955
  }
958
956
  d.call(n, e, new DragEvent(n, {
959
957
  sourceEvent: r,
@@ -2115,14 +2113,11 @@ var re = 0;
2115
2113
  function Transition(e, t, n, r) {
2116
2114
  this._groups = e, this._parents = t, this._name = n, this._id = r;
2117
2115
  }
2118
- function transition(e) {
2119
- return selection().transition(e);
2120
- }
2121
2116
  function newId() {
2122
2117
  return ++re;
2123
2118
  }
2124
2119
  var q = selection.prototype;
2125
- Transition.prototype = transition.prototype = {
2120
+ Transition.prototype = {
2126
2121
  constructor: Transition,
2127
2122
  select: select_default,
2128
2123
  selectAll: selectAll_default,
@@ -2520,10 +2515,12 @@ var Path = class {
2520
2515
  if (e = +e, t = +t, n = +n, r = +r, a = +a, a < 0) throw Error(`negative radius: ${a}`);
2521
2516
  let o = this._x1, s = this._y1, c = n - e, l = r - t, u = o - e, d = s - t, f = u * u + d * d;
2522
2517
  if (this._x1 === null) this._append`M${this._x1 = e},${this._y1 = t}`;
2523
- else if (f > $) if (!(Math.abs(d * c - l * u) > $) || !a) this._append`L${this._x1 = e},${this._y1 = t}`;
2524
- else {
2525
- let p = n - o, m = r - s, h = c * c + l * l, g = p * p + m * m, _ = Math.sqrt(h), v = Math.sqrt(f), b = a * Math.tan((Z - Math.acos((h + f - g) / (2 * _ * v))) / 2), S = b / v, C = b / _;
2526
- Math.abs(S - 1) > $ && this._append`L${e + S * u},${t + S * d}`, this._append`A${a},${a},0,0,${+(d * p > u * m)},${this._x1 = e + C * c},${this._y1 = t + C * l}`;
2518
+ else if (f > $) {
2519
+ if (!(Math.abs(d * c - l * u) > $) || !a) this._append`L${this._x1 = e},${this._y1 = t}`;
2520
+ else {
2521
+ let p = n - o, m = r - s, h = c * c + l * l, g = p * p + m * m, _ = Math.sqrt(h), v = Math.sqrt(f), b = a * Math.tan((Z - Math.acos((h + f - g) / (2 * _ * v))) / 2), S = b / v, C = b / _;
2522
+ Math.abs(S - 1) > $ && this._append`L${e + S * u},${t + S * d}`, this._append`A${a},${a},0,0,${+(d * p > u * m)},${this._x1 = e + C * c},${this._y1 = t + C * l}`;
2523
+ }
2527
2524
  }
2528
2525
  }
2529
2526
  arc(e, t, n, r, a, o) {
@@ -2538,10 +2535,7 @@ var Path = class {
2538
2535
  return this._;
2539
2536
  }
2540
2537
  };
2541
- function path() {
2542
- return new Path();
2543
- }
2544
- path.prototype = Path.prototype;
2538
+ Path.prototype;
2545
2539
  //#endregion
2546
2540
  //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.js
2547
2541
  function withPath(e) {
@@ -2586,9 +2580,7 @@ Linear.prototype = {
2586
2580
  this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
2587
2581
  break;
2588
2582
  case 1: this._point = 2;
2589
- default:
2590
- this._context.lineTo(e, t);
2591
- break;
2583
+ default: this._context.lineTo(e, t);
2592
2584
  }
2593
2585
  }
2594
2586
  };
@@ -2651,9 +2643,7 @@ Cardinal.prototype = {
2651
2643
  case 2:
2652
2644
  this._context.lineTo(this._x2, this._y2);
2653
2645
  break;
2654
- case 3:
2655
- point$1(this, this._x1, this._y1);
2656
- break;
2646
+ case 3: point$1(this, this._x1, this._y1);
2657
2647
  }
2658
2648
  (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
2659
2649
  },
@@ -2666,9 +2656,7 @@ Cardinal.prototype = {
2666
2656
  this._point = 2, this._x1 = e, this._y1 = t;
2667
2657
  break;
2668
2658
  case 2: this._point = 3;
2669
- default:
2670
- point$1(this, e, t);
2671
- break;
2659
+ default: point$1(this, e, t);
2672
2660
  }
2673
2661
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
2674
2662
  }
@@ -2710,9 +2698,7 @@ CardinalOpen.prototype = {
2710
2698
  this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
2711
2699
  break;
2712
2700
  case 3: this._point = 4;
2713
- default:
2714
- point$1(this, e, t);
2715
- break;
2701
+ default: point$1(this, e, t);
2716
2702
  }
2717
2703
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
2718
2704
  }
@@ -2756,9 +2742,7 @@ CatmullRom.prototype = {
2756
2742
  case 2:
2757
2743
  this._context.lineTo(this._x2, this._y2);
2758
2744
  break;
2759
- case 3:
2760
- this.point(this._x2, this._y2);
2761
- break;
2745
+ case 3: this.point(this._x2, this._y2);
2762
2746
  }
2763
2747
  (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
2764
2748
  },
@@ -2775,9 +2759,7 @@ CatmullRom.prototype = {
2775
2759
  this._point = 2;
2776
2760
  break;
2777
2761
  case 2: this._point = 3;
2778
- default:
2779
- point(this, e, t);
2780
- break;
2762
+ default: point(this, e, t);
2781
2763
  }
2782
2764
  this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
2783
2765
  }
@@ -2823,9 +2805,7 @@ CatmullRomOpen.prototype = {
2823
2805
  this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
2824
2806
  break;
2825
2807
  case 3: this._point = 4;
2826
- default:
2827
- point(this, e, t);
2828
- break;
2808
+ default: point(this, e, t);
2829
2809
  }
2830
2810
  this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
2831
2811
  }
@@ -125,7 +125,7 @@ function createEqualityComparator(e) {
125
125
  if (e == null || f == null) return !1;
126
126
  let m = typeof e;
127
127
  if (m !== typeof f) return !1;
128
- if (m !== "object") return m === "number" || m === "bigint" ? o(e, f, p) : m === "function" ? i(e, f, p) : !1;
128
+ if (m !== "object") return m === "number" || m === "bigint" ? o(e, f, p) : m === "function" && i(e, f, p);
129
129
  let h = e.constructor;
130
130
  if (h !== f.constructor) return !1;
131
131
  if (h === Object) return s(e, f, p);