likec4 1.58.0 → 1.59.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 (64) hide show
  1. package/__app__/codegen/webcomponent.mjs +14 -14
  2. package/__app__/src/chunks/AIChat.mjs +153 -156
  3. package/__app__/src/chunks/LikeC4Styles.mjs +1553 -1255
  4. package/__app__/src/chunks/ProjectsOverview.mjs +127 -130
  5. package/__app__/src/chunks/hooks.mjs +419 -106
  6. package/__app__/src/chunks/libs/@floating-ui.mjs +8 -8
  7. package/__app__/src/chunks/libs/@mantine.mjs +3039 -2135
  8. package/__app__/src/chunks/libs/@tanstack-ai.mjs +4 -4
  9. package/__app__/src/chunks/libs/@tanstack.mjs +93 -118
  10. package/__app__/src/chunks/libs/@xstate/react.mjs +30 -16
  11. package/__app__/src/chunks/libs/@xyflow/react.mjs +50 -26
  12. package/__app__/src/chunks/libs/bezier-js.mjs +11 -8
  13. package/__app__/src/chunks/libs/framer.mjs +1188 -1155
  14. package/__app__/src/chunks/libs/zod.mjs +191 -188
  15. package/__app__/src/chunks/rolldown-runtime.mjs +8 -1
  16. package/__app__/src/chunks/styled-system.mjs +23 -16
  17. package/__app__/src/main.mjs +23331 -10467
  18. package/__app__/src/style.css +1 -1
  19. package/dist/chunks/dist.mjs +10 -0
  20. package/dist/chunks/enableServer.mjs +1 -1
  21. package/dist/chunks/index.d.mts +9 -9
  22. package/dist/chunks/index2.d.mts +386 -229
  23. package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
  24. package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +1 -1
  25. package/dist/chunks/libs/@logtape/logtape.mjs +3 -3
  26. package/dist/chunks/libs/@ts-graphviz/common.d.mts +1 -2
  27. package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -1
  28. package/dist/chunks/libs/chevrotain-allstar.mjs +1 -1
  29. package/dist/chunks/libs/chevrotain.mjs +4 -4
  30. package/dist/chunks/libs/json5.mjs +1 -1
  31. package/dist/chunks/libs/langium.d.mts +2940 -2914
  32. package/dist/chunks/libs/langium.mjs +9 -9
  33. package/dist/chunks/libs/merge-error-cause.mjs +1 -1
  34. package/dist/chunks/libs/p-queue.mjs +1 -1
  35. package/dist/chunks/libs/package-manager-detector.mjs +1 -1
  36. package/dist/chunks/libs/pako.mjs +1 -1
  37. package/dist/chunks/libs/picomatch.mjs +1 -1
  38. package/dist/chunks/libs/remeda.mjs +1 -1
  39. package/dist/chunks/libs/ufo.mjs +1 -1
  40. package/dist/chunks/libs/unstorage.d.mts +1 -0
  41. package/dist/chunks/libs/which.mjs +1 -1
  42. package/dist/chunks/libs/zod.d.mts +48 -36
  43. package/dist/chunks/libs/zod.mjs +4 -4
  44. package/dist/chunks/logger.mjs +1 -0
  45. package/dist/chunks/node.mjs +57 -66
  46. package/dist/chunks/rolldown-runtime.mjs +1 -1
  47. package/dist/chunks/sequence-view.mjs +1 -1
  48. package/dist/chunks/vite-plugin.mjs +43 -43
  49. package/dist/cli/index.mjs +159 -157
  50. package/dist/index.d.mts +2 -3
  51. package/dist/index.mjs +1 -1
  52. package/dist/model/index.d.mts +5 -4
  53. package/dist/vite-plugin/index.d.mts +6 -9
  54. package/dist/vite-plugin/internal/index.d.mts +15 -10
  55. package/package.json +38 -38
  56. package/react/index.d.mts +761 -111
  57. package/react/index.mjs +13997 -10234
  58. package/__app__/src/chunks/DiagramActorProvider.mjs +0 -7638
  59. package/__app__/src/chunks/Markdown.mjs +0 -146
  60. package/__app__/src/chunks/NavigationPanel.mjs +0 -61
  61. package/__app__/src/chunks/adhoc-editor.mjs +0 -3386
  62. package/__app__/src/chunks/libs/@dagrejs/dagre.mjs +0 -1894
  63. package/__app__/src/chunks/libs/@tabler/icons-react.mjs +0 -252
  64. package/__app__/src/chunks/libs/remeda.mjs +0 -642
@@ -1,15 +1,12 @@
1
1
  import "./rolldown-runtime.mjs";
2
- import { K as e, h as t } from "./libs/remeda.mjs";
3
- import { an as n } from "./libs/@mantine.mjs";
4
- import { M as r } from "./styled-system.mjs";
5
- import { n as i } from "./libs/@tabler/icons-react.mjs";
6
- import { D as a, F as o, I as s, M as c, P as l, R as u, T as d, X as f, a as p, c as m, d as h, f as g, i as _, l as v, o as y, p as b, s as x, t as S, u as C, w, y as T } from "./LikeC4Styles.mjs";
7
- import { u as E } from "./Markdown.mjs";
8
- import { l as ee, m as D, s as O, u as k, x as te } from "./libs/@xyflow/react.mjs";
9
- import { n as A } from "./libs/fast-equals.mjs";
10
- import { _ as ne, a as j, g as re, p as M, v as N, y as ie } from "./libs/framer.mjs";
11
- import { a as P, i as F, l as I, n as ae, r as L, t as oe } from "./libs/@xstate/react.mjs";
12
- import { n as R, t as z } from "./NavigationPanel.mjs";
2
+ import { D as e, j as t } from "./hooks.mjs";
3
+ import { B as n, D as r, F as i, H as a, M as o, N as s, U as c, W as l, a as u, c as d, d as f, f as p, l as m, m as h, n as g, o as _, ot as v, p as y, q as b, s as x, t as S, u as C, ut as w, vt as T, x as E } from "./LikeC4Styles.mjs";
4
+ import { on as ee } from "./libs/@mantine.mjs";
5
+ import { M as te } from "./styled-system.mjs";
6
+ import { C as ne, c as re, d as ie, g as ae, u as oe } from "./libs/@xyflow/react.mjs";
7
+ import { n as D } from "./libs/fast-equals.mjs";
8
+ import { _ as O, g as k, o as A, p as j, v as M, y as N } from "./libs/framer.mjs";
9
+ import { a as P, i as F, l as I, n as L, r as R, t as z } from "./libs/@xstate/react.mjs";
13
10
  import { createContext as B, memo as V, useContext as H, useEffect as U, useRef as W } from "react";
14
11
  import { c as G } from "react/compiler-runtime";
15
12
  import { jsx as K, jsxs as q } from "react/jsx-runtime";
@@ -34,7 +31,7 @@ function projectNodeToXY({ id: e, x: t, y: n, width: r, height: i, ...a }) {
34
31
  initialHeight: i,
35
32
  draggable: !1,
36
33
  deletable: !1,
37
- zIndex: o.Element,
34
+ zIndex: c.Element,
38
35
  style: {
39
36
  width: r,
40
37
  height: i
@@ -53,7 +50,7 @@ function projectEdgeToXY({ id: e, source: t, target: n, ...r }) {
53
50
  source: t,
54
51
  target: n,
55
52
  type: "relationship",
56
- zIndex: o.Edge,
53
+ zIndex: c.Edge,
57
54
  deletable: !1,
58
55
  data: {
59
56
  id: e,
@@ -94,15 +91,15 @@ var Y = "likec4:projects-overview:lastViewport", X = {
94
91
  "click: selected node": ({ event: e }) => e.type === "xyflow.click.node" && e.node.selected === !0
95
92
  }
96
93
  }), updateView = () => Z.assign(({ event: e }) => {
97
- L(e, "update.view");
94
+ R(e, "update.view");
98
95
  let { xynodes: t, xyedges: n } = layoutedProjectsViewToXYFlow(e.view);
99
96
  return {
100
97
  view: e.view,
101
98
  xynodes: t,
102
99
  xyedges: n
103
100
  };
104
- }), xyflowApplyNodeChanges = () => Z.assign(({ context: e, event: t }) => (L(t, "xyflow.applyNodeChanges"), { xynodes: k(t.changes, e.xynodes) })), xyflowApplyEdgeChanges = () => Z.assign(({ context: e, event: t }) => (L(t, "xyflow.applyEdgeChanges"), { xyedges: ee(t.changes, e.xyedges) })), onMouseEnterOrLeave = () => Z.assign(({ context: e, event: t }) => {
105
- L(t, [
101
+ }), xyflowApplyNodeChanges = () => Z.assign(({ context: e, event: t }) => (R(t, "xyflow.applyNodeChanges"), { xynodes: ie(t.changes, e.xynodes) })), xyflowApplyEdgeChanges = () => Z.assign(({ context: e, event: t }) => (R(t, "xyflow.applyEdgeChanges"), { xyedges: oe(t.changes, e.xyedges) })), onMouseEnterOrLeave = () => Z.assign(({ context: e, event: t }) => {
102
+ R(t, [
106
103
  "xyflow.mouse.enter.edge",
107
104
  "xyflow.mouse.leave.edge",
108
105
  "xyflow.mouse.enter.node",
@@ -113,12 +110,12 @@ var Y = "likec4:projects-overview:lastViewport", X = {
113
110
  case "xyflow.mouse.enter.edge":
114
111
  case "xyflow.mouse.leave.edge": {
115
112
  let r = t.edge.id;
116
- return { xyedges: e.xyedges.map((e) => e.id === r ? s.setHovered(e, n) : e) };
113
+ return { xyedges: e.xyedges.map((e) => e.id === r ? l.setHovered(e, n) : e) };
117
114
  }
118
115
  case "xyflow.mouse.enter.node":
119
116
  case "xyflow.mouse.leave.node": {
120
117
  let r = t.node.id;
121
- return { xynodes: e.xynodes.map((e) => e.id === r ? s.setHovered(e, n) : e) };
118
+ return { xynodes: e.xynodes.map((e) => e.id === r ? l.setHovered(e, n) : e) };
122
119
  }
123
120
  default: ce(t);
124
121
  }
@@ -133,13 +130,13 @@ var Y = "likec4:projects-overview:lastViewport", X = {
133
130
  }), fitDiagram = (e) => Z.enqueueActions(({ context: t, event: n }) => {
134
131
  let r = t.view.bounds, i;
135
132
  e ? (r = e.bounds ?? t.view.bounds, i = e.duration) : n.type === "xyflow.fitDiagram" && (r = n.bounds ?? t.view.bounds, i = n.duration), i ??= 450;
136
- let { width: a, height: o, panZoom: s, transform: c } = J(t.xystore).getState(), u = Math.max(1, c[2]), d = te(r, a, o, l, u, t.fitViewPadding);
133
+ let { width: o, height: s, panZoom: c, transform: l } = J(t.xystore).getState(), u = Math.max(1, l[2]), d = ne(r, o, s, a, u, t.fitViewPadding);
137
134
  d.x = Math.round(d.x), d.y = Math.round(d.y);
138
135
  let f = i > 0 ? {
139
136
  duration: i,
140
137
  interpolate: "smooth"
141
138
  } : void 0;
142
- s?.setViewport(d, f).catch((e) => {
139
+ c?.setViewport(d, f).catch((e) => {
143
140
  console.error("Error during fitDiagram panZoom setViewport", { err: e });
144
141
  }), X.write(null);
145
142
  }), restoreViewport = () => Z.enqueueActions(({ context: e, enqueue: t }) => {
@@ -235,32 +232,32 @@ var Y = "likec4:projects-overview:lastViewport", X = {
235
232
  entry: [
236
233
  saveViewport(),
237
234
  I({ xyedges: [] }),
238
- ({ context: { navigateTo: t, xyflow: n, xystore: r }, self: i }) => {
239
- se(n && t, "Invalid state, xyflow is undefined");
240
- let { width: a, domNode: o } = J(r).getState(), s = e(Math.min(a * 7 / 9 / t.data.width), {
241
- min: l,
235
+ ({ context: { navigateTo: e, xyflow: t, xystore: n }, self: r }) => {
236
+ se(t && e, "Invalid state, xyflow is undefined");
237
+ let { width: i, domNode: o } = J(n).getState(), s = T(Math.min(i * 7 / 9 / e.data.width), {
238
+ min: a,
242
239
  max: 2.5
243
240
  }), c = {
244
- x: Math.round(-s * t.position.x + (a - s * t.data.width) / 2),
245
- y: Math.round(-s * t.position.y) + 50
246
- }, u = n.getViewport(), d = o.querySelectorAll(`.react-flow__node-project:not([data-id="${t.id}"]) > *`), f = j(d, {
241
+ x: Math.round(-s * e.position.x + (i - s * e.data.width) / 2),
242
+ y: Math.round(-s * e.position.y) + 50
243
+ }, l = t.getViewport(), u = o.querySelectorAll(`.react-flow__node-project:not([data-id="${e.id}"]) > *`), d = A(u, {
247
244
  opacity: 0,
248
245
  scale: .9
249
246
  }, {
250
247
  visualDuration: .25,
251
- delay: ne(.08, { from: "center" })
252
- }), p = ie(1), m = re(p, [1, 0], [`translate(${u.x}px, ${u.y}px) scale(${u.zoom})`, `translate(${c.x}px, ${c.y}px) scale(${s})`]), h = N(o.querySelector(".xyflow__viewport"), { transform: m }), g = N(o.querySelector(`.react-flow__node-project:is([data-id="${t.id}"]) > *`), { opacity: p }), _ = j(p, 0, {
253
- delay: d.length > 3 ? .25 : 0,
248
+ delay: O(.08, { from: "center" })
249
+ }), f = N(1), p = k(f, [1, 0], [`translate(${l.x}px, ${l.y}px) scale(${l.zoom})`, `translate(${c.x}px, ${c.y}px) scale(${s})`]), m = M(o.querySelector(".xyflow__viewport"), { transform: p }), h = M(o.querySelector(`.react-flow__node-project:is([data-id="${e.id}"]) > *`), { opacity: f }), g = A(f, 0, {
250
+ delay: u.length > 3 ? .25 : 0,
254
251
  type: "spring",
255
252
  stiffness: 350,
256
253
  damping: 40,
257
254
  mass: 1.5,
258
255
  visualDuration: .55
259
256
  });
260
- Promise.race([_.finished, sleep(750)]).then(() => {
261
- h(), g(), _.stop(), f.stop(), i.send({
257
+ Promise.race([g.finished, sleep(750)]).then(() => {
258
+ m(), h(), g.stop(), d.stop(), r.send({
262
259
  type: "emit.navigate.to",
263
- projectId: t.data.projectId
260
+ projectId: e.data.projectId
264
261
  });
265
262
  });
266
263
  }
@@ -291,68 +288,68 @@ function useProjectsOverviewActor() {
291
288
  //#region ../diagram/src/projects-overview/panel/ProjectsOverviewPanel.tsx
292
289
  var ProjectsOverviewPanel = () => {
293
290
  let e = G(1), t;
294
- return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ K(z.Root, { children: /* @__PURE__ */ q(z.Body, { children: [/* @__PURE__ */ K(z.Logo, {}), /* @__PURE__ */ K(z.Label, { children: "Projects Overview" })] }) }), e[0] = t) : t = e[0], t;
295
- }, fe = p((e) => {
296
- let t = u(e.data.points);
297
- return /* @__PURE__ */ q(b, {
291
+ return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ K(g.Root, { children: /* @__PURE__ */ q(g.Body, { children: [/* @__PURE__ */ K(g.Logo, {}), /* @__PURE__ */ K(g.Label, { children: "Projects Overview" })] }) }), e[0] = t) : t = e[0], t;
292
+ }, fe = _((e) => {
293
+ let t = b(e.data.points);
294
+ return /* @__PURE__ */ q(h, {
298
295
  ...e,
299
- children: [/* @__PURE__ */ K(C, {
296
+ children: [/* @__PURE__ */ K(f, {
300
297
  edgeProps: e,
301
298
  svgPath: t
302
- }), /* @__PURE__ */ K(h, {
299
+ }), /* @__PURE__ */ K(p, {
303
300
  edgeProps: e,
304
- children: /* @__PURE__ */ K(g, { edgeProps: e })
301
+ children: /* @__PURE__ */ K(y, { edgeProps: e })
305
302
  })]
306
303
  });
307
304
  });
308
305
  //#endregion
309
306
  //#region ../diagram/src/projects-overview/custom/nodeTypes.tsx
310
307
  function ProjectNode(e) {
311
- let t = G(19), r = useProjectsOverviewActor(), t0;
312
- t[0] !== r || t[1] !== e.data.id || t[2] !== e.data.projectId ? (t0 = (t) => {
313
- t.stopPropagation(), r.send({
308
+ let t = G(19), n = useProjectsOverviewActor(), t0;
309
+ t[0] !== n || t[1] !== e.data.id || t[2] !== e.data.projectId ? (t0 = (t) => {
310
+ t.stopPropagation(), n.send({
314
311
  type: "navigate.to",
315
312
  fromNode: e.data.id,
316
313
  projectId: e.data.projectId
317
314
  });
318
- }, t[0] = r, t[1] = e.data.id, t[2] = e.data.projectId, t[3] = t0) : t0 = t[3];
319
- let a = n(t0), o, s;
320
- t[4] === e ? (o = t[5], s = t[6]) : (o = /* @__PURE__ */ K(y, { ...e }), s = /* @__PURE__ */ K(m, { ...e }), t[4] = e, t[5] = o, t[6] = s);
321
- let c;
322
- t[7] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ K(i, {}), t[7] = c) : c = t[7];
323
- let l;
324
- t[8] === a ? l = t[9] : (l = [{
315
+ }, t[0] = n, t[1] = e.data.id, t[2] = e.data.projectId, t[3] = t0) : t0 = t[3];
316
+ let r = ee(t0), i, a;
317
+ t[4] === e ? (i = t[5], a = t[6]) : (i = /* @__PURE__ */ K(x, { ...e }), a = /* @__PURE__ */ K(m, { ...e }), t[4] = e, t[5] = i, t[6] = a);
318
+ let o;
319
+ t[7] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ K(w, {}), t[7] = o) : o = t[7];
320
+ let s;
321
+ t[8] === r ? s = t[9] : (s = [{
325
322
  key: "navigate",
326
- icon: c,
327
- onClick: a
328
- }], t[8] = a, t[9] = l);
329
- let u;
330
- t[10] !== e || t[11] !== l ? (u = /* @__PURE__ */ K(v, {
323
+ icon: o,
324
+ onClick: r
325
+ }], t[8] = r, t[9] = s);
326
+ let c;
327
+ t[10] !== e || t[11] !== s ? (c = /* @__PURE__ */ K(C, {
331
328
  ...e,
332
- buttons: l
333
- }), t[10] = e, t[11] = l, t[12] = u) : u = t[12];
334
- let d;
335
- t[13] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ K(_, {}), t[13] = d) : d = t[13];
329
+ buttons: s
330
+ }), t[10] = e, t[11] = s, t[12] = c) : c = t[12];
331
+ let l;
332
+ t[13] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ K(u, {}), t[13] = l) : l = t[13];
336
333
  let f;
337
- return t[14] !== e || t[15] !== o || t[16] !== s || t[17] !== u ? (f = /* @__PURE__ */ q(x, {
334
+ return t[14] !== e || t[15] !== i || t[16] !== a || t[17] !== c ? (f = /* @__PURE__ */ q(d, {
338
335
  layout: !0,
339
336
  nodeProps: e,
340
337
  children: [
341
- o,
342
- s,
343
- u,
344
- d
338
+ i,
339
+ a,
340
+ c,
341
+ l
345
342
  ]
346
- }, e.id), t[14] = e, t[15] = o, t[16] = s, t[17] = u, t[18] = f) : f = t[18], f;
343
+ }, e.id), t[14] = e, t[15] = i, t[16] = a, t[17] = c, t[18] = f) : f = t[18], f;
347
344
  }
348
345
  //#endregion
349
346
  //#region ../diagram/src/projects-overview/hooks.ts
350
347
  function useProjectsOverviewState(e, t) {
351
- let n = t === void 0 ? A : t;
352
- return ae(useProjectsOverviewActor(), e, n);
348
+ let n = t === void 0 ? D : t;
349
+ return L(useProjectsOverviewActor(), e, n);
353
350
  }
354
351
  function useProjectsOverviewXYStoreApi() {
355
- return D();
352
+ return ae();
356
353
  }
357
354
  //#endregion
358
355
  //#region ../diagram/src/projects-overview/ProjectsOverviewXY.tsx
@@ -360,11 +357,11 @@ var pe = { project: ProjectNode }, me = { relationship: fe }, selector = (e) =>
360
357
  isActive: e.hasTag("active"),
361
358
  nodes: e.context.xynodes,
362
359
  edges: e.context.xyedges
363
- }), selectorEq = (e, t) => e.isActive === t.isActive && A(e.nodes, t.nodes) && A(e.edges, t.edges), $ = V((e) => {
364
- let t = G(45), n, i;
365
- t[0] === e ? (n = t[1], i = t[2]) : ({background: i, ...n} = e, t[0] = e, t[1] = n, t[2] = i);
366
- let a = i === void 0 ? "dots" : i, o = useProjectsOverviewActor(), { isActive: s, nodes: l, edges: u } = useProjectsOverviewState(selector, selectorEq), d = useProjectsOverviewXYStoreApi(), p = s ? "initialized" : "not-initialized", m;
367
- t[3] === p ? m = t[4] : (m = r(p, "projects-overview"), t[3] = p, t[4] = m);
360
+ }), selectorEq = (e, t) => e.isActive === t.isActive && D(e.nodes, t.nodes) && D(e.edges, t.edges), $ = V((e) => {
361
+ let t = G(45), r, i;
362
+ t[0] === e ? (r = t[1], i = t[2]) : ({background: i, ...r} = e, t[0] = e, t[1] = r, t[2] = i);
363
+ let a = i === void 0 ? "dots" : i, o = useProjectsOverviewActor(), { isActive: s, nodes: c, edges: l } = useProjectsOverviewState(selector, selectorEq), u = useProjectsOverviewXYStoreApi(), d = s ? "initialized" : "not-initialized", f;
364
+ t[3] === d ? f = t[4] : (f = te(d, "projects-overview"), t[3] = d, t[4] = f);
368
365
  let t4;
369
366
  t[5] === o ? t4 = t[6] : (t4 = (e, t) => {
370
367
  e.stopPropagation(), o.send({
@@ -372,36 +369,36 @@ var pe = { project: ProjectNode }, me = { relationship: fe }, selector = (e) =>
372
369
  node: t
373
370
  });
374
371
  }, t[5] = o, t[6] = t4);
375
- let h = f(t4), t6;
372
+ let p = v(t4), t6;
376
373
  t[7] === o ? t6 = t[8] : (t6 = (e, t) => {
377
374
  e.stopPropagation(), o.send({
378
375
  type: "xyflow.click.edge",
379
376
  edge: t
380
377
  });
381
378
  }, t[7] = o, t[8] = t6);
382
- let g = f(t6), t8;
379
+ let m = v(t6), t8;
383
380
  t[9] === o ? t8 = t[10] : (t8 = (e) => {
384
381
  e.stopPropagation(), o.send({ type: "xyflow.click.pane" });
385
382
  }, t[9] = o, t[10] = t8);
386
- let _ = f(t8), t10;
383
+ let h = v(t8), t10;
387
384
  t[11] === o ? t10 = t[12] : (t10 = (e) => {
388
385
  e.stopPropagation(), o.send({ type: "xyflow.click.double" });
389
386
  }, t[11] = o, t[12] = t10);
390
- let v = f(t10), t12;
387
+ let g = v(t10), t12;
391
388
  t[13] === o ? t12 = t[14] : (t12 = (e) => {
392
389
  o.send({
393
390
  type: "xyflow.applyNodeChanges",
394
391
  changes: e
395
392
  });
396
393
  }, t[13] = o, t[14] = t12);
397
- let y = f(t12), t14;
394
+ let _ = v(t12), t14;
398
395
  t[15] === o ? t14 = t[16] : (t14 = (e) => {
399
396
  o.send({
400
397
  type: "xyflow.applyEdgeChanges",
401
398
  changes: e
402
399
  });
403
400
  }, t[15] = o, t[16] = t14);
404
- let b = f(t14), t16;
401
+ let y = v(t14), t16;
405
402
  t[17] === o ? t16 = t[18] : (t16 = (e, t) => {
406
403
  o.send({
407
404
  type: "xyflow.mouse.enter.edge",
@@ -409,7 +406,7 @@ var pe = { project: ProjectNode }, me = { relationship: fe }, selector = (e) =>
409
406
  event: e
410
407
  });
411
408
  }, t[17] = o, t[18] = t16);
412
- let x = f(t16), t18;
409
+ let b = v(t16), t18;
413
410
  t[19] === o ? t18 = t[20] : (t18 = (e, t) => {
414
411
  o.send({
415
412
  type: "xyflow.mouse.leave.edge",
@@ -417,120 +414,120 @@ var pe = { project: ProjectNode }, me = { relationship: fe }, selector = (e) =>
417
414
  event: e
418
415
  });
419
416
  }, t[19] = o, t[20] = t18);
420
- let S = f(t18), t20;
417
+ let x = v(t18), t20;
421
418
  t[21] === o ? t20 = t[22] : (t20 = (e, t) => {
422
419
  o.send({
423
420
  type: "xyflow.mouse.enter.node",
424
421
  node: t
425
422
  });
426
423
  }, t[21] = o, t[22] = t20);
427
- let C = f(t20), t22;
424
+ let S = v(t20), t22;
428
425
  t[23] === o ? t22 = t[24] : (t22 = (e, t) => {
429
426
  o.send({
430
427
  type: "xyflow.mouse.leave.node",
431
428
  node: t
432
429
  });
433
430
  }, t[23] = o, t[24] = t22);
434
- let w = f(t22), t24;
435
- t[25] !== o || t[26] !== d ? (t24 = (e) => {
431
+ let C = v(t22), t24;
432
+ t[25] !== o || t[26] !== u ? (t24 = (e) => {
436
433
  o.send({
437
434
  type: "xyflow.init",
438
435
  xyflow: e,
439
- xystore: d
436
+ xystore: u
440
437
  });
441
- }, t[25] = o, t[26] = d, t[27] = t24) : t24 = t[27];
442
- let T = f(t24), E;
443
- return t[28] !== a || t[29] !== u || t[30] !== l || t[31] !== n || t[32] !== v || t[33] !== y || t[34] !== b || t[35] !== x || t[36] !== S || t[37] !== C || t[38] !== w || t[39] !== T || t[40] !== m || t[41] !== h || t[42] !== g || t[43] !== _ ? (E = /* @__PURE__ */ K(c, {
444
- nodes: l,
445
- edges: u,
446
- className: m,
438
+ }, t[25] = o, t[26] = u, t[27] = t24) : t24 = t[27];
439
+ let w = v(t24), T;
440
+ return t[28] !== a || t[29] !== l || t[30] !== c || t[31] !== r || t[32] !== g || t[33] !== _ || t[34] !== y || t[35] !== b || t[36] !== x || t[37] !== S || t[38] !== C || t[39] !== w || t[40] !== f || t[41] !== p || t[42] !== m || t[43] !== h ? (T = /* @__PURE__ */ K(n, {
441
+ nodes: c,
442
+ edges: l,
443
+ className: f,
447
444
  nodeTypes: pe,
448
445
  edgeTypes: me,
449
446
  fitView: !1,
450
- onNodeClick: h,
451
- onEdgeClick: g,
452
- onPaneClick: _,
453
- onDoubleClick: v,
454
- onNodesChange: y,
455
- onEdgesChange: b,
456
- onEdgeMouseEnter: x,
457
- onEdgeMouseLeave: S,
458
- onNodeMouseEnter: C,
459
- onNodeMouseLeave: w,
460
- onInit: T,
447
+ onNodeClick: p,
448
+ onEdgeClick: m,
449
+ onPaneClick: h,
450
+ onDoubleClick: g,
451
+ onNodesChange: _,
452
+ onEdgesChange: y,
453
+ onEdgeMouseEnter: b,
454
+ onEdgeMouseLeave: x,
455
+ onNodeMouseEnter: S,
456
+ onNodeMouseLeave: C,
457
+ onInit: w,
461
458
  nodesDraggable: !1,
462
459
  nodesSelectable: !0,
463
460
  pannable: !0,
464
461
  zoomable: !0,
465
462
  background: a,
466
- ...n
467
- }), t[28] = a, t[29] = u, t[30] = l, t[31] = n, t[32] = v, t[33] = y, t[34] = b, t[35] = x, t[36] = S, t[37] = C, t[38] = w, t[39] = T, t[40] = m, t[41] = h, t[42] = g, t[43] = _, t[44] = E) : E = t[44], E;
463
+ ...r
464
+ }), t[28] = a, t[29] = l, t[30] = c, t[31] = r, t[32] = g, t[33] = _, t[34] = y, t[35] = b, t[36] = x, t[37] = S, t[38] = C, t[39] = w, t[40] = f, t[41] = p, t[42] = m, t[43] = h, t[44] = T) : T = t[44], T;
468
465
  });
469
466
  $.displayName = "ProjectsOverviewXY";
470
467
  //#endregion
471
468
  //#region ../diagram/src/projects-overview/ProjectsOverview.tsx
472
- function ProjectsOverview({ view: e, onNavigateToProject: t, fitViewPadding: n = {
469
+ function ProjectsOverview({ view: t, onNavigateToProject: n, fitViewPadding: r = {
473
470
  top: "50px",
474
471
  bottom: "32px",
475
472
  left: "32px",
476
473
  right: "32px"
477
- }, ...r }) {
478
- let i = oe(ue, { input: {
479
- view: e,
480
- fitViewPadding: n
474
+ }, ...i }) {
475
+ let a = z(ue, { input: {
476
+ view: t,
477
+ fitViewPadding: r
481
478
  } });
482
479
  U(() => {
483
- i.send({
480
+ a.send({
484
481
  type: "update.view",
485
- view: e
482
+ view: t
486
483
  });
487
- }, [i, e]);
488
- let a = E(t);
484
+ }, [a, t]);
485
+ let o = e(n);
489
486
  U(() => {
490
- let e = [i.on("navigate.to", ({ projectId: e }) => {
491
- a.current?.(e);
487
+ let e = [a.on("navigate.to", ({ projectId: e }) => {
488
+ o.current?.(e);
492
489
  })];
493
490
  return () => {
494
491
  e.forEach((e) => e.unsubscribe());
495
492
  };
496
- }, [i]);
497
- let o = e.bounds;
493
+ }, [a]);
494
+ let s = t.bounds;
498
495
  return /* @__PURE__ */ K(de, {
499
- value: i,
500
- children: /* @__PURE__ */ q(O, {
496
+ value: a,
497
+ children: /* @__PURE__ */ q(re, {
501
498
  ...W({
502
499
  initialNodes: [],
503
500
  initialEdges: [],
504
- initialWidth: o.width,
505
- initialHeight: o.height,
501
+ initialWidth: s.width,
502
+ initialHeight: s.height,
506
503
  fitView: !1
507
504
  }).current,
508
- children: [/* @__PURE__ */ K(M, {
509
- id: i.sessionId,
505
+ children: [/* @__PURE__ */ K(j, {
506
+ id: a.sessionId,
510
507
  inherit: !1,
511
- children: /* @__PURE__ */ K($, { ...r })
508
+ children: /* @__PURE__ */ K($, { ...i })
512
509
  }), /* @__PURE__ */ K(ProjectsOverviewPanel, {})]
513
510
  })
514
511
  });
515
512
  }
516
513
  //#endregion
517
514
  //#region ../diagram/src/LikeC4ProjectsOverview.tsx
518
- function LikeC4ProjectsOverview({ view: e, className: t, onNavigateToProject: n, ...r }) {
519
- let i = R(), o = T();
520
- return n ??= i, /* @__PURE__ */ K(d, { children: /* @__PURE__ */ q(w, { children: [/* @__PURE__ */ K(S, { id: o }), /* @__PURE__ */ K(a, {
521
- id: o,
515
+ function LikeC4ProjectsOverview({ view: e, className: t, onNavigateToProject: n, ...a }) {
516
+ let c = E(), l = r();
517
+ return n ??= c, /* @__PURE__ */ K(s, { children: /* @__PURE__ */ q(o, { children: [/* @__PURE__ */ K(S, { id: l }), /* @__PURE__ */ K(i, {
518
+ id: l,
522
519
  className: t,
523
520
  children: /* @__PURE__ */ K(ProjectsOverview, {
524
521
  view: e,
525
522
  onNavigateToProject: n,
526
- ...r
523
+ ...a
527
524
  })
528
525
  })] }) });
529
526
  }
530
527
  //#endregion
531
528
  //#region src/pages/ProjectsOverview.tsx
532
529
  function ProjectsOverviewPage() {
533
- let e = G(3), t = R(), n = le(), r;
530
+ let e = G(3), t = E(), n = le(), r;
534
531
  return e[0] !== t || e[1] !== n ? (r = /* @__PURE__ */ K(LikeC4ProjectsOverview, {
535
532
  view: n,
536
533
  onNavigateToProject: t