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.
- 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 +1 -1
- 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 +41 -5
- 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 +65 -29
- package/package.json +39 -39
- package/react/index.d.mts +76 -1
- package/react/index.mjs +7302 -6778
- package/vite-plugin-modules.d.ts +18 -0
- package/dist/chunks/dist.mjs +0 -10
- package/dist/chunks/logger.mjs +0 -1
|
@@ -9,7 +9,7 @@ import { createContext as _, createElement as v, forwardRef as y, useCallback as
|
|
|
9
9
|
import { c as O } from "react/compiler-runtime";
|
|
10
10
|
import { jsx as k } from "react/jsx-runtime";
|
|
11
11
|
import { useLikeC4Projects as A } from "likec4:projects";
|
|
12
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
12
|
+
//#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/lazyDataLastImpl--3B10z3s.js
|
|
13
13
|
function e$2(o, s, c) {
|
|
14
14
|
let r = (c) => o(c, ...s);
|
|
15
15
|
return c === void 0 ? r : Object.assign(r, {
|
|
@@ -19,7 +19,7 @@ function e$2(o, s, c) {
|
|
|
19
19
|
}
|
|
20
20
|
o(e$2, "e");
|
|
21
21
|
//#endregion
|
|
22
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
22
|
+
//#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/purry.js
|
|
23
23
|
function t$3(o, s, c) {
|
|
24
24
|
let l = o.length - s.length;
|
|
25
25
|
if (l === 0) return o(...s);
|
|
@@ -28,7 +28,7 @@ function t$3(o, s, c) {
|
|
|
28
28
|
}
|
|
29
29
|
o(t$3, "t");
|
|
30
30
|
//#endregion
|
|
31
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
31
|
+
//#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/utilityEvaluators-IxVD3t2o.js
|
|
32
32
|
var j = {
|
|
33
33
|
done: !1,
|
|
34
34
|
hasNext: !1
|
|
@@ -38,64 +38,63 @@ var j = {
|
|
|
38
38
|
done: !1
|
|
39
39
|
}), "r");
|
|
40
40
|
//#endregion
|
|
41
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
41
|
+
//#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/pipe.js
|
|
42
42
|
function t$1(o, ...s) {
|
|
43
|
-
let c = o, l = s.map((o) => "lazy" in o ?
|
|
43
|
+
let c = o, l = s.map((o) => "lazy" in o ? {
|
|
44
|
+
lazyEvaluator: o.lazy(...o.lazyArgs),
|
|
45
|
+
isSingle: o.lazy.single ?? !1,
|
|
46
|
+
index: 0,
|
|
47
|
+
items: []
|
|
48
|
+
} : void 0), u = 0;
|
|
44
49
|
for (; u < s.length;) {
|
|
45
|
-
if (l[u] === void 0 || !
|
|
50
|
+
if (l[u] === void 0 || !a$1(c)) {
|
|
46
51
|
let o = s[u];
|
|
47
52
|
c = o(c), u += 1;
|
|
48
53
|
continue;
|
|
49
54
|
}
|
|
50
|
-
let o =
|
|
51
|
-
for (let c = u; c < s.length; c++) {
|
|
52
|
-
let s = l[c];
|
|
53
|
-
if (s === void 0 || (o.push(s), s.isSingle)) break;
|
|
54
|
-
}
|
|
55
|
-
let d = [];
|
|
56
|
-
for (let s of c) if (n$1(s, d, o)) break;
|
|
57
|
-
let { isSingle: f } = o.at(-1);
|
|
55
|
+
let o = n$1(l, u), d = r$2(c, o), { isSingle: f } = o.at(-1);
|
|
58
56
|
c = f ? d[0] : d, u += o.length;
|
|
59
57
|
}
|
|
60
58
|
return c;
|
|
61
59
|
}
|
|
62
60
|
o(t$1, "t");
|
|
63
|
-
function n$1(o, s
|
|
64
|
-
|
|
65
|
-
let l =
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
if (m.push(l), u = f(l, p, m), f.index += 1, u.hasNext) {
|
|
69
|
-
if (u.hasMany ?? !1) {
|
|
70
|
-
for (let l of u.next) if (n$1(l, s, c.slice(o + 1))) return !0;
|
|
71
|
-
return d;
|
|
72
|
-
}
|
|
73
|
-
l = u.next;
|
|
74
|
-
}
|
|
75
|
-
if (!u.hasNext) break;
|
|
76
|
-
u.done && (d = !0);
|
|
61
|
+
function n$1(o, s) {
|
|
62
|
+
let c = [];
|
|
63
|
+
for (let l = s; l < o.length; l++) {
|
|
64
|
+
let s = o[l];
|
|
65
|
+
if (s === void 0 || (c.push(s), s.isSingle)) break;
|
|
77
66
|
}
|
|
78
|
-
return
|
|
67
|
+
return c;
|
|
79
68
|
}
|
|
80
69
|
o(n$1, "n");
|
|
81
|
-
function r$2(o) {
|
|
82
|
-
let
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
index: 0,
|
|
86
|
-
items: []
|
|
87
|
-
});
|
|
70
|
+
function r$2(o, s) {
|
|
71
|
+
let c = [];
|
|
72
|
+
for (let l of o) if (i$1(l, c, s)) break;
|
|
73
|
+
return c;
|
|
88
74
|
}
|
|
89
75
|
o(r$2, "r");
|
|
90
|
-
function i$1(o) {
|
|
91
|
-
|
|
76
|
+
function i$1(o, s, c) {
|
|
77
|
+
if (c.length === 0) return s.push(o), !1;
|
|
78
|
+
let l = o, u = j, d = !1;
|
|
79
|
+
for (let [o, { items: f, lazyEvaluator: p }] of c.entries()) if (f.push(l), u = p(l, f.length - 1, f), u.done && (d = !0), u.hasNext) {
|
|
80
|
+
if (u.hasMany ?? !1) {
|
|
81
|
+
for (let l of u.next) if (i$1(l, s, c.slice(o + 1))) return !0;
|
|
82
|
+
return d;
|
|
83
|
+
}
|
|
84
|
+
l = u.next;
|
|
85
|
+
} else break;
|
|
86
|
+
return u.hasNext && s.push(l), d;
|
|
92
87
|
}
|
|
93
88
|
o(i$1, "i");
|
|
89
|
+
function a$1(o) {
|
|
90
|
+
return typeof o == "string" || typeof o == "object" && !!o && Symbol.iterator in o;
|
|
91
|
+
}
|
|
92
|
+
o(a$1, "a");
|
|
94
93
|
//#endregion
|
|
95
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
94
|
+
//#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/toSingle-DiQSixar.js
|
|
96
95
|
var N = /* @__PURE__ */ o((o) => Object.assign(o, { single: !0 }), "e");
|
|
97
96
|
//#endregion
|
|
98
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
97
|
+
//#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/find.js
|
|
99
98
|
function r$1(...o) {
|
|
100
99
|
return t$3(i, o, N(a));
|
|
101
100
|
}
|
|
@@ -106,7 +105,7 @@ var i = (o, s) => o.find(s), a = (o) => (s, c, l) => o(s, c, l) ? {
|
|
|
106
105
|
next: s
|
|
107
106
|
} : j, e = (o) => typeof o == "function";
|
|
108
107
|
//#endregion
|
|
109
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
108
|
+
//#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/map.js
|
|
110
109
|
function t(...o) {
|
|
111
110
|
return t$3(n, o, r);
|
|
112
111
|
}
|
|
@@ -164,7 +163,7 @@ var n = (o, s) => o.map(s), r = (o) => (s, c, l) => ({
|
|
|
164
163
|
key: "svg-0"
|
|
165
164
|
}]]);
|
|
166
165
|
//#endregion
|
|
167
|
-
//#region ../../node_modules/.pnpm/@react-hookz+web@25.2.0_react-dom@19.2.
|
|
166
|
+
//#region ../../node_modules/.pnpm/@react-hookz+web@25.2.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-hookz/web/dist/useSyncedRef/index.js
|
|
168
167
|
function useSyncedRef(o) {
|
|
169
168
|
let s = T(o);
|
|
170
169
|
return s.current = o, w(() => Object.freeze({ get current() {
|
|
@@ -172,7 +171,7 @@ function useSyncedRef(o) {
|
|
|
172
171
|
} }), []);
|
|
173
172
|
}
|
|
174
173
|
//#endregion
|
|
175
|
-
//#region ../../node_modules/.pnpm/@react-hookz+web@25.2.0_react-dom@19.2.
|
|
174
|
+
//#region ../../node_modules/.pnpm/@react-hookz+web@25.2.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-hookz/web/dist/util/const.js
|
|
176
175
|
var L = /* @__PURE__ */ o(() => {}, "noop"), R = typeof globalThis < "u" && typeof navigator < "u" && typeof document < "u", basicDepsComparator = (o, s) => {
|
|
177
176
|
if (o === s) return !0;
|
|
178
177
|
if (o.length !== s.length) return !1;
|
|
@@ -180,13 +179,13 @@ var L = /* @__PURE__ */ o(() => {}, "noop"), R = typeof globalThis < "u" && type
|
|
|
180
179
|
return !0;
|
|
181
180
|
};
|
|
182
181
|
//#endregion
|
|
183
|
-
//#region ../../node_modules/.pnpm/@react-hookz+web@25.2.0_react-dom@19.2.
|
|
182
|
+
//#region ../../node_modules/.pnpm/@react-hookz+web@25.2.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-hookz/web/dist/useCustomCompareEffect/index.js
|
|
184
183
|
function useCustomCompareEffect(o, s, c = basicDepsComparator, l = S, ...u) {
|
|
185
184
|
let d = T(void 0);
|
|
186
185
|
(d.current === void 0 || R && !c(d.current, s)) && (d.current = s), l(o, d.current, ...u);
|
|
187
186
|
}
|
|
188
187
|
//#endregion
|
|
189
|
-
//#region ../../node_modules/.pnpm/@react-hookz+web@25.2.0_react-dom@19.2.
|
|
188
|
+
//#region ../../node_modules/.pnpm/@react-hookz+web@25.2.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-hookz/web/dist/useFirstMountState/index.js
|
|
190
189
|
function useFirstMountState() {
|
|
191
190
|
let o = T(!0);
|
|
192
191
|
return S(() => {
|
|
@@ -194,7 +193,7 @@ function useFirstMountState() {
|
|
|
194
193
|
}, []), o.current;
|
|
195
194
|
}
|
|
196
195
|
//#endregion
|
|
197
|
-
//#region ../../node_modules/.pnpm/@react-hookz+web@25.2.0_react-dom@19.2.
|
|
196
|
+
//#region ../../node_modules/.pnpm/@react-hookz+web@25.2.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-hookz/web/dist/useIsomorphicLayoutEffect/index.js
|
|
198
197
|
var z = R ? C : S, cancelTimeout = (o) => {
|
|
199
198
|
o && clearTimeout(o);
|
|
200
199
|
};
|
|
@@ -220,9 +219,18 @@ function useUpdateEffect(o, s, c, l) {
|
|
|
220
219
|
useCustomCompareEffect(useFirstMountState() ? noop : o, s, c ?? depsShallowEqual, l);
|
|
221
220
|
}
|
|
222
221
|
//#endregion
|
|
223
|
-
//#region ../../node_modules/.pnpm/nanostores@1.
|
|
224
|
-
var B = [], V = 0, H =
|
|
222
|
+
//#region ../../node_modules/.pnpm/nanostores@1.5.2/node_modules/nanostores/atom/index.js
|
|
223
|
+
var B = [], V = 0, H = null, U = 4, W = globalThis.nanostoresGlobal ||= { epoch: 0 }, drainQueue = () => {
|
|
224
|
+
let o;
|
|
225
|
+
for (V = 0; V < B.length; V += U) try {
|
|
226
|
+
B[V](B[V + 1].value, B[V + 2], B[V + 3]);
|
|
227
|
+
} catch (s) {
|
|
228
|
+
o = s;
|
|
229
|
+
}
|
|
230
|
+
if (B.length = 0, o) throw o;
|
|
231
|
+
}, atom = /* @__NO_SIDE_EFFECTS__ */ (o) => {
|
|
225
232
|
let s = [], c = {
|
|
233
|
+
eq: Object.is,
|
|
226
234
|
get() {
|
|
227
235
|
return c.lc || c.listen(() => {})(), c.value;
|
|
228
236
|
},
|
|
@@ -230,24 +238,21 @@ var B = [], V = 0, H = 4, U = globalThis.nanostoresGlobal ||= { epoch: 0 }, atom
|
|
|
230
238
|
lc: 0,
|
|
231
239
|
listen(o) {
|
|
232
240
|
return c.lc = s.push(o), () => {
|
|
233
|
-
for (let s = V +
|
|
241
|
+
for (let s = V + U; s < B.length;) B[s] === o ? B.splice(s, U) : s += U;
|
|
234
242
|
let l = s.indexOf(o);
|
|
235
243
|
~l && (s.splice(l, 1), --c.lc || c.off());
|
|
236
244
|
};
|
|
237
245
|
},
|
|
238
246
|
notify(o, l) {
|
|
239
|
-
|
|
240
|
-
let u = !B.length;
|
|
241
|
-
for (let u of s) B.push(u, c
|
|
242
|
-
|
|
243
|
-
for (V = 0; V < B.length; V += H) B[V](B[V + 1], B[V + 2], B[V + 3]);
|
|
244
|
-
B.length = 0;
|
|
245
|
-
}
|
|
247
|
+
W.epoch++;
|
|
248
|
+
let u = !B.length && !0;
|
|
249
|
+
for (let u of s) H?.has(u) || (H?.add(u), B.push(u, c, o, l));
|
|
250
|
+
u && drainQueue();
|
|
246
251
|
},
|
|
247
252
|
off() {},
|
|
248
253
|
set(o) {
|
|
249
254
|
let s = c.value;
|
|
250
|
-
s
|
|
255
|
+
c.eq(s, o) || (c.value = o, c.notify(s));
|
|
251
256
|
},
|
|
252
257
|
subscribe(o) {
|
|
253
258
|
let s = c.listen(o);
|
|
@@ -256,46 +261,67 @@ var B = [], V = 0, H = 4, U = globalThis.nanostoresGlobal ||= { epoch: 0 }, atom
|
|
|
256
261
|
value: o
|
|
257
262
|
};
|
|
258
263
|
return c;
|
|
259
|
-
},
|
|
264
|
+
}, G = 5, K = 6, q = 10, on = (o, s, c, l) => (o.events = o.events || {}, o.events[c + q] || (o.events[c + q] = l((s) => {
|
|
260
265
|
o.events[c].reduceRight((o, s) => (s(o), o), {
|
|
261
266
|
shared: {},
|
|
262
267
|
...s
|
|
263
268
|
});
|
|
264
269
|
})), o.events[c] = o.events[c] || [], o.events[c].push(s), () => {
|
|
265
270
|
let l = o.events[c], u = l.indexOf(s);
|
|
266
|
-
l.splice(u, 1), l.length || (delete o.events[c], o.events[c +
|
|
267
|
-
}),
|
|
271
|
+
l.splice(u, 1), l.length || (delete o.events[c], o.events[c + q](), delete o.events[c + q]);
|
|
272
|
+
}), J = 1e3, onMount = (o, s) => {
|
|
268
273
|
let listener = (c) => {
|
|
269
274
|
let l = s(c);
|
|
270
|
-
l && o.events[
|
|
275
|
+
l && o.events[K].push(l);
|
|
271
276
|
};
|
|
272
|
-
return on(o, listener,
|
|
277
|
+
return on(o, listener, G, (s) => {
|
|
273
278
|
let c = o.listen;
|
|
274
279
|
o.listen = (...l) => (!o.lc && !o.active && (o.active = !0, s()), c(...l));
|
|
275
280
|
let l = o.off;
|
|
276
|
-
return o.events[
|
|
281
|
+
return o.events[K] = [], o.off = () => {
|
|
277
282
|
l(), setTimeout(() => {
|
|
278
283
|
if (o.active && !o.lc) {
|
|
279
284
|
o.active = !1;
|
|
280
|
-
for (let s of o.events[
|
|
281
|
-
o.events[
|
|
285
|
+
for (let s of o.events[K]) s();
|
|
286
|
+
o.events[K] = [];
|
|
282
287
|
}
|
|
283
|
-
},
|
|
288
|
+
}, J);
|
|
284
289
|
}, () => {
|
|
285
290
|
o.listen = c, o.off = l;
|
|
286
291
|
};
|
|
287
292
|
});
|
|
288
293
|
};
|
|
289
294
|
//#endregion
|
|
290
|
-
//#region ../../node_modules/.pnpm/nanostores@1.
|
|
295
|
+
//#region ../../node_modules/.pnpm/nanostores@1.5.2/node_modules/nanostores/deep-map/path.js
|
|
296
|
+
function getPath(o, s) {
|
|
297
|
+
let c = getAllKeysFromPath(s), l = o;
|
|
298
|
+
for (let o of c) {
|
|
299
|
+
if (l == null) return;
|
|
300
|
+
l = l[o];
|
|
301
|
+
}
|
|
302
|
+
return l;
|
|
303
|
+
}
|
|
304
|
+
var Y = /(.*)\[(\d+)\]/;
|
|
305
|
+
function getAllKeysFromPath(o) {
|
|
306
|
+
return o.split(".").flatMap((o) => getKeyAndIndicesFromKey(o));
|
|
307
|
+
}
|
|
308
|
+
function getKeyAndIndicesFromKey(o) {
|
|
309
|
+
if (Y.test(o)) {
|
|
310
|
+
let [, s, c] = o.match(Y);
|
|
311
|
+
return [...getKeyAndIndicesFromKey(s), c];
|
|
312
|
+
}
|
|
313
|
+
return [o];
|
|
314
|
+
}
|
|
315
|
+
//#endregion
|
|
316
|
+
//#region ../../node_modules/.pnpm/nanostores@1.5.2/node_modules/nanostores/listen-keys/index.js
|
|
291
317
|
function listenKeys(o, s, c) {
|
|
292
|
-
let l = new Set(s)
|
|
293
|
-
return o.listen((o,
|
|
294
|
-
l.has(
|
|
318
|
+
let l = new Set(s);
|
|
319
|
+
return o.listen((o, u, d) => {
|
|
320
|
+
(d === void 0 ? s.some((s) => u === void 0 || o[s] !== u[s] || getPath(o, s) !== getPath(u, s)) : l.has(d) || l.has(d.split(/\.|\[/)[0])) && c(o, u, d);
|
|
295
321
|
});
|
|
296
322
|
}
|
|
297
323
|
//#endregion
|
|
298
|
-
//#region ../../node_modules/.pnpm/@nanostores+react@1.1.0_nanostores@1.
|
|
324
|
+
//#region ../../node_modules/.pnpm/@nanostores+react@1.1.0_nanostores@1.5.2_react@19.2.8/node_modules/@nanostores/react/index.js
|
|
299
325
|
var emit = (o, s) => (c) => {
|
|
300
326
|
o.current !== c && (o.current = c, s());
|
|
301
327
|
};
|
|
@@ -307,11 +333,11 @@ function useStore(o, { keys: s, deps: c = [o, s], ssr: l } = {}) {
|
|
|
307
333
|
}
|
|
308
334
|
//#endregion
|
|
309
335
|
//#region ../diagram/src/hooks/safeContext.tsx
|
|
310
|
-
var
|
|
311
|
-
|
|
312
|
-
var
|
|
336
|
+
var X = _(null);
|
|
337
|
+
X.displayName = "DiagramApiSafeContext";
|
|
338
|
+
var Z = X.Provider;
|
|
313
339
|
function useDiagram() {
|
|
314
|
-
let o = x(
|
|
340
|
+
let o = x(X);
|
|
315
341
|
if (o === null) throw Error("DiagramApi is not provided");
|
|
316
342
|
return o;
|
|
317
343
|
}
|
|
@@ -340,10 +366,10 @@ function createSafeContextForActor(o) {
|
|
|
340
366
|
useActorRef
|
|
341
367
|
};
|
|
342
368
|
}
|
|
343
|
-
var { ContextProvider:
|
|
369
|
+
var { ContextProvider: ee, selectSnapshot: te, selectContext: ne, useActorSelector: re, useActorRef: ie } = createSafeContextForActor("DiagramActor"), Q = y((o, s) => {
|
|
344
370
|
let c = O(34), p, m, h, g, _, v, y, b, x;
|
|
345
371
|
c[0] === o ? (p = c[1], m = c[2], h = c[3], g = c[4], _ = c[5], v = c[6], y = c[7], b = c[8], x = c[9]) : ({value: x, textScale: _, uselikec4palette: v, hideIfEmpty: y, emptyText: b, className: p, style: g, fontSize: m, ...h} = o, c[0] = o, c[1] = p, c[2] = m, c[3] = h, c[4] = g, c[5] = _, c[6] = v, c[7] = y, c[8] = b, c[9] = x);
|
|
346
|
-
let S = _ === void 0 ? 1 : _, C = v
|
|
372
|
+
let S = _ === void 0 ? 1 : _, C = v !== void 0 && v, w = y !== void 0 && y, T = b === void 0 ? "no content" : b;
|
|
347
373
|
if (x.isEmpty && w) return null;
|
|
348
374
|
let E;
|
|
349
375
|
c[10] !== T || c[11] !== x.html || c[12] !== x.isMarkdown || c[13] !== x.nonEmpty || c[14] !== x.text ? (E = x.nonEmpty ? x.isMarkdown ? { dangerouslySetInnerHTML: { __html: x.html } } : { children: /* @__PURE__ */ k("p", { children: x.text }) } : { children: /* @__PURE__ */ k(l, {
|
|
@@ -380,7 +406,7 @@ var { ContextProvider: X, selectSnapshot: Z, selectContext: ee, useActorSelector
|
|
|
380
406
|
Q.displayName = "Markdown";
|
|
381
407
|
//#endregion
|
|
382
408
|
//#region src/context/safeCtx.ts
|
|
383
|
-
var $ = _(null),
|
|
409
|
+
var $ = _(null), ae = $.Provider, useLikeC4ModelAtom = () => {
|
|
384
410
|
let o = x($);
|
|
385
411
|
if (o === null) throw Error("LikeC4ModelAtom is not provided");
|
|
386
412
|
return o;
|
|
@@ -388,7 +414,7 @@ var $ = _(null), re = $.Provider, useLikeC4ModelAtom = () => {
|
|
|
388
414
|
//#endregion
|
|
389
415
|
//#region src/hooks.ts
|
|
390
416
|
function useTransparentBackground(o) {
|
|
391
|
-
let s = O(3), c = o === void 0
|
|
417
|
+
let s = O(3), c = o === void 0 || o, t1, l;
|
|
392
418
|
s[0] === c ? (t1 = s[1], l = s[2]) : (t1 = () => {
|
|
393
419
|
let o = document.body.parentElement;
|
|
394
420
|
if (!(!o || c !== !0)) return o.classList.add("transparent-bg"), () => {
|
|
@@ -455,4 +481,4 @@ function selectProjectIdFromContext(o) {
|
|
|
455
481
|
return o.find((o) => o.routeId === "/project/$projectId")?.params?.projectId ?? o.at(-1)?.context.projectId ?? void 0;
|
|
456
482
|
}
|
|
457
483
|
//#endregion
|
|
458
|
-
export { createReactComponent as A, useTimeoutEffect as C, useSyncedRef as D, L as E, t$1 as F, M as I, j as L, e as M, r$1 as N, I as O, N as P, t$3 as R, useUpdateEffect as S, R as T, useStore as _, useTransparentBackground as a,
|
|
484
|
+
export { createReactComponent as A, useTimeoutEffect as C, useSyncedRef as D, L as E, t$1 as F, M as I, j as L, e as M, r$1 as N, I as O, N as P, t$3 as R, useUpdateEffect as S, R as T, useStore as _, useTransparentBackground as a, W as b, Q as c, createSafeContextForActor as d, ne as f, re as g, ie as h, useLikeC4Views as i, t as j, F as k, ee as l, useDiagram as m, useCurrentView as n, ae as o, te as p, useCurrentViewId as r, useLikeC4ModelAtom as s, useCurrentProject as t, Z as u, onMount as v, useFirstMountState as w, depsShallowEqual as x, atom as y, e$2 as z };
|