likec4 1.59.1 → 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.
- package/__app__/src/chunks/AIChat.mjs +21 -26
- package/__app__/src/chunks/LikeC4Styles.mjs +257 -263
- package/__app__/src/chunks/ProjectsOverview.mjs +58 -58
- package/__app__/src/chunks/hooks.mjs +106 -80
- package/__app__/src/chunks/libs/@floating-ui.mjs +646 -332
- package/__app__/src/chunks/libs/@mantine.mjs +1911 -1734
- package/__app__/src/chunks/libs/@tanstack-ai.mjs +26 -26
- package/__app__/src/chunks/libs/@tanstack.mjs +42 -41
- package/__app__/src/chunks/libs/@xstate/react.mjs +59 -40
- package/__app__/src/chunks/libs/@xyflow/react.mjs +532 -445
- package/__app__/src/chunks/libs/bezier-js.mjs +10 -9
- package/__app__/src/chunks/libs/d3.mjs +16 -36
- package/__app__/src/chunks/libs/fast-equals.mjs +12 -11
- package/__app__/src/chunks/libs/framer.mjs +294 -273
- package/__app__/src/chunks/libs/zod.mjs +17 -14
- package/__app__/src/chunks/rolldown-runtime.mjs +2 -2
- package/__app__/src/chunks/styled-system.mjs +9 -15
- package/__app__/src/main.mjs +15994 -15936
- package/__app__/src/style.css +1 -1
- package/config/schema.json +35 -0
- package/dist/app/render-view-client.css +1 -0
- package/dist/app/render-view-client.js +745 -0
- package/dist/chunks/enableServer.mjs +1 -1
- package/dist/chunks/filenames.mjs +7 -6
- package/dist/chunks/index.d.mts +11 -0
- package/dist/chunks/index2.d.mts +47 -7
- package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
- package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +5 -5
- package/dist/chunks/libs/@logtape/logtape.mjs +1 -1
- package/dist/chunks/libs/@lume/kiwi.mjs +1 -1
- package/dist/chunks/libs/birpc.mjs +1 -1
- package/dist/chunks/libs/chevrotain-allstar.mjs +1 -1
- package/dist/chunks/libs/chevrotain.mjs +16 -16
- package/dist/chunks/libs/json5.mjs +3 -3
- package/dist/chunks/libs/langium.mjs +11 -11
- package/dist/chunks/libs/merge-error-cause.mjs +2 -2
- package/dist/chunks/libs/package-manager-detector.mjs +1 -1
- package/dist/chunks/libs/pako.mjs +1 -1
- package/dist/chunks/libs/picomatch.mjs +1 -1
- package/dist/chunks/libs/pretty-ms.mjs +1 -1
- package/dist/chunks/libs/remeda.mjs +1 -1
- package/dist/chunks/libs/zod.mjs +4 -4
- package/dist/chunks/node.mjs +69 -57
- package/dist/chunks/rolldown-runtime.mjs +1 -1
- package/dist/chunks/sequence-view.mjs +1 -1
- package/dist/chunks/vite-plugin.mjs +161 -50
- package/dist/cli/index.mjs +272 -162
- package/dist/config/index.d.mts +7 -1
- package/dist/config/index.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/vite-plugin/internal/index.d.mts +64 -27
- package/dist/vite-plugin/internal/index.mjs +76 -39
- package/package.json +41 -41
- package/react/index.d.mts +76 -1
- package/react/index.mjs +7310 -6785
- package/vite-plugin-modules.d.ts +18 -0
- package/dist/chunks/dist.mjs +0 -10
- 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
|
|
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
|
-
}
|
|
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
|
-
}
|
|
344
|
-
|
|
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
|
-
}
|
|
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] ?
|
|
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
|
-
] :
|
|
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 =
|
|
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 > $)
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
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
|
-
|
|
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
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../rolldown-runtime.mjs";
|
|
2
|
-
//#region ../../node_modules/.pnpm/fast-equals@6.0.
|
|
2
|
+
//#region ../../node_modules/.pnpm/fast-equals@6.0.2/node_modules/fast-equals/dist/es/index.mjs
|
|
3
3
|
var { getOwnPropertyNames: e, getOwnPropertySymbols: t } = Object, { hasOwnProperty: n } = Object.prototype;
|
|
4
4
|
function combineComparators(e, t) {
|
|
5
5
|
return function isEqual(n, r, i) {
|
|
@@ -17,7 +17,8 @@ function createIsCircular(e) {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
function getStrictProperties(n) {
|
|
20
|
-
|
|
20
|
+
let r = t(n);
|
|
21
|
+
return r.length ? e(n).concat(r) : e(n);
|
|
21
22
|
}
|
|
22
23
|
var r = Object.hasOwn || ((e, t) => n.call(e, t)), i = "__v", a = "__o", o = "_owner", { getOwnPropertyDescriptor: s, keys: c } = Object, l = Object.is || function sameValueEqual(e, t) {
|
|
23
24
|
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
@@ -47,9 +48,9 @@ function areMapsEqual(e, t, n) {
|
|
|
47
48
|
let r = e.size;
|
|
48
49
|
if (r !== t.size) return !1;
|
|
49
50
|
if (!r) return !0;
|
|
50
|
-
let i =
|
|
51
|
+
let i = new Uint8Array(r), a = e.entries(), o, s, c = 0;
|
|
51
52
|
for (; (o = a.next()) && !o.done;) {
|
|
52
|
-
let r = t.entries(), a =
|
|
53
|
+
let r = t.entries(), a = 0, l = 0;
|
|
53
54
|
for (; (s = r.next()) && !s.done;) {
|
|
54
55
|
if (i[l]) {
|
|
55
56
|
l++;
|
|
@@ -57,7 +58,7 @@ function areMapsEqual(e, t, n) {
|
|
|
57
58
|
}
|
|
58
59
|
let r = o.value, u = s.value;
|
|
59
60
|
if (n.equals(r[0], u[0], c, l, e, t, n) && n.equals(r[1], u[1], r[0], u[0], e, t, n)) {
|
|
60
|
-
a = i[l] =
|
|
61
|
+
a = i[l] = 1;
|
|
61
62
|
break;
|
|
62
63
|
}
|
|
63
64
|
l++;
|
|
@@ -90,12 +91,12 @@ function areSetsEqual(e, t, n) {
|
|
|
90
91
|
let r = e.size;
|
|
91
92
|
if (r !== t.size) return !1;
|
|
92
93
|
if (!r) return !0;
|
|
93
|
-
let i =
|
|
94
|
+
let i = new Uint8Array(r), a = e.values(), o, s;
|
|
94
95
|
for (; (o = a.next()) && !o.done;) {
|
|
95
|
-
let r = t.values(), a =
|
|
96
|
+
let r = t.values(), a = 0, c = 0;
|
|
96
97
|
for (; (s = r.next()) && !s.done;) {
|
|
97
98
|
if (!i[c] && n.equals(o.value, s.value, o.value, s.value, e, t, n)) {
|
|
98
|
-
a = i[c] =
|
|
99
|
+
a = i[c] = 1;
|
|
99
100
|
break;
|
|
100
101
|
}
|
|
101
102
|
c++;
|
|
@@ -105,8 +106,8 @@ function areSetsEqual(e, t, n) {
|
|
|
105
106
|
return !0;
|
|
106
107
|
}
|
|
107
108
|
function areTypedArraysEqual(e, t) {
|
|
108
|
-
let n = e.
|
|
109
|
-
if (t.
|
|
109
|
+
let n = e.length;
|
|
110
|
+
if (t.length !== n || e.byteOffset !== t.byteOffset) return !1;
|
|
110
111
|
for (; n-- > 0;) if (e[n] !== t[n]) return !1;
|
|
111
112
|
return !0;
|
|
112
113
|
}
|
|
@@ -124,7 +125,7 @@ function createEqualityComparator(e) {
|
|
|
124
125
|
if (e == null || f == null) return !1;
|
|
125
126
|
let m = typeof e;
|
|
126
127
|
if (m !== typeof f) return !1;
|
|
127
|
-
if (m !== "object") return m === "number" || m === "bigint" ? o(e, f, p) : m === "function"
|
|
128
|
+
if (m !== "object") return m === "number" || m === "bigint" ? o(e, f, p) : m === "function" && i(e, f, p);
|
|
128
129
|
let h = e.constructor;
|
|
129
130
|
if (h !== f.constructor) return !1;
|
|
130
131
|
if (h === Object) return s(e, f, p);
|