likec4 1.59.3 → 1.59.4
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 +108 -108
- package/__app__/src/chunks/LikeC4Styles.mjs +752 -604
- package/__app__/src/chunks/ProjectsOverview.mjs +72 -72
- package/__app__/src/chunks/es.mjs +1 -1
- package/__app__/src/chunks/hooks.mjs +94 -91
- package/__app__/src/chunks/libs/@floating-ui.mjs +3 -3
- package/__app__/src/chunks/libs/@mantine.mjs +1609 -892
- package/__app__/src/chunks/libs/@tanstack-ai.mjs +2 -2
- package/__app__/src/chunks/libs/@tanstack.mjs +4 -10
- package/__app__/src/chunks/libs/@xyflow/react.mjs +4 -4
- package/__app__/src/chunks/libs/d3.mjs +4 -9
- package/__app__/src/chunks/libs/fast-equals.mjs +61 -49
- package/__app__/src/chunks/libs/framer.mjs +6 -6
- package/__app__/src/chunks/styled-system.mjs +2578 -124
- package/__app__/src/main.mjs +21537 -20155
- package/__app__/src/style.css +1 -1
- package/config/schema.json +14 -0
- package/dist/app/render-view-client.css +1 -1
- package/dist/app/render-view-client.js +99 -105
- package/dist/chunks/filenames.mjs +6 -6
- package/dist/chunks/index.d.mts +7 -1
- package/dist/chunks/index2.d.mts +38 -21
- package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
- package/dist/chunks/libs/@chevrotain/types.d.mts +108 -0
- package/dist/chunks/libs/@logtape/logtape.mjs +4 -4
- package/dist/chunks/libs/langium.d.mts +1777 -16
- package/dist/chunks/libs/langium.mjs +4 -4
- package/dist/chunks/libs/p-queue.mjs +1 -1
- package/dist/chunks/libs/package-manager-detector.mjs +1 -1
- package/dist/chunks/libs/pako.mjs +2 -2
- 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/ufo.mjs +1 -1
- package/dist/chunks/libs/unstorage.mjs +1 -1
- package/dist/chunks/libs/zod.d.mts +1717 -17
- package/dist/chunks/node.mjs +58 -59
- package/dist/chunks/vite-plugin.mjs +15 -12
- package/dist/cli/index.d.mts +1 -1
- package/dist/cli/index.mjs +104 -88
- package/dist/index.d.mts +3 -3
- package/dist/model/index.d.mts +4 -4
- package/dist/vite-plugin/index.d.mts +2 -2
- package/dist/vite-plugin/internal/index.d.mts +15 -15
- package/dist/vite-plugin/internal/index.mjs +72 -27
- package/package.json +28 -28
- package/react/index.d.mts +22720 -1460
- package/react/index.mjs +30391 -25072
- package/vite-plugin-modules.d.ts +4 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./rolldown-runtime.mjs";
|
|
2
2
|
import { D as e, j as t } from "./hooks.mjs";
|
|
3
|
-
import { A as n, D as r, F as i,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { A as n, D as r, F as i, I as a, O as o, Q as s, a as c, c as l, d as u, f as d, h as f, i as p, l as m, mt as h, n as g, nt as _, o as v, ot as y, r as b, s as x, t as S, tt as C, u as w, x as T, z as E } from "./LikeC4Styles.mjs";
|
|
4
|
+
import { fn as ee } from "./libs/@mantine.mjs";
|
|
5
|
+
import { I as te } from "./styled-system.mjs";
|
|
6
6
|
import { C as ne, c as re, d as ie, g as ae, u as oe } from "./libs/@xyflow/react.mjs";
|
|
7
7
|
import { n as D } from "./libs/fast-equals.mjs";
|
|
8
8
|
import { _ as O, g as k, o as A, p as j, v as M, y as N } from "./libs/framer.mjs";
|
|
@@ -31,7 +31,7 @@ function projectNodeToXY({ id: e, x: t, y: n, width: r, height: i, ...a }) {
|
|
|
31
31
|
initialHeight: i,
|
|
32
32
|
draggable: !1,
|
|
33
33
|
deletable: !1,
|
|
34
|
-
zIndex:
|
|
34
|
+
zIndex: _.Element,
|
|
35
35
|
style: {
|
|
36
36
|
width: r,
|
|
37
37
|
height: i
|
|
@@ -50,7 +50,7 @@ function projectEdgeToXY({ id: e, source: t, target: n, ...r }) {
|
|
|
50
50
|
source: t,
|
|
51
51
|
target: n,
|
|
52
52
|
type: "relationship",
|
|
53
|
-
zIndex:
|
|
53
|
+
zIndex: _.Edge,
|
|
54
54
|
deletable: !1,
|
|
55
55
|
data: {
|
|
56
56
|
id: e,
|
|
@@ -110,12 +110,12 @@ var Y = "likec4:projects-overview:lastViewport", X = {
|
|
|
110
110
|
case "xyflow.mouse.enter.edge":
|
|
111
111
|
case "xyflow.mouse.leave.edge": {
|
|
112
112
|
let r = t.edge.id;
|
|
113
|
-
return { xyedges: e.xyedges.map((e) => e.id === r ?
|
|
113
|
+
return { xyedges: e.xyedges.map((e) => e.id === r ? a.setHovered(e, n) : e) };
|
|
114
114
|
}
|
|
115
115
|
case "xyflow.mouse.enter.node":
|
|
116
116
|
case "xyflow.mouse.leave.node": {
|
|
117
117
|
let r = t.node.id;
|
|
118
|
-
return { xynodes: e.xynodes.map((e) => e.id === r ?
|
|
118
|
+
return { xynodes: e.xynodes.map((e) => e.id === r ? a.setHovered(e, n) : e) };
|
|
119
119
|
}
|
|
120
120
|
default: ce(t);
|
|
121
121
|
}
|
|
@@ -130,13 +130,13 @@ var Y = "likec4:projects-overview:lastViewport", X = {
|
|
|
130
130
|
}), fitDiagram = (e) => Z.enqueueActions(({ context: t, event: n }) => {
|
|
131
131
|
let r = t.view.bounds, i;
|
|
132
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;
|
|
133
|
-
let { width: a, height:
|
|
134
|
-
|
|
135
|
-
let
|
|
133
|
+
let { width: a, height: o, panZoom: s, transform: c } = J(t.xystore).getState(), l = Math.max(1, c[2]), u = ne(r, a, o, C, l, t.fitViewPadding);
|
|
134
|
+
u.x = Math.round(u.x), u.y = Math.round(u.y);
|
|
135
|
+
let d = i > 0 ? {
|
|
136
136
|
duration: i,
|
|
137
137
|
interpolate: "smooth"
|
|
138
138
|
} : void 0;
|
|
139
|
-
|
|
139
|
+
s?.setViewport(u, d).catch((e) => {
|
|
140
140
|
console.error("Error during fitDiagram panZoom setViewport", { err: e });
|
|
141
141
|
}), X.write(null);
|
|
142
142
|
}), restoreViewport = () => Z.enqueueActions(({ context: e, enqueue: t }) => {
|
|
@@ -234,20 +234,20 @@ var Y = "likec4:projects-overview:lastViewport", X = {
|
|
|
234
234
|
I({ xyedges: [] }),
|
|
235
235
|
({ context: { navigateTo: e, xyflow: t, xystore: n }, self: r }) => {
|
|
236
236
|
se(t && e, "Invalid state, xyflow is undefined");
|
|
237
|
-
let { width: i, domNode: a } = J(n).getState(),
|
|
238
|
-
min:
|
|
237
|
+
let { width: i, domNode: a } = J(n).getState(), o = h(Math.min(i * 7 / 9 / e.data.width), {
|
|
238
|
+
min: C,
|
|
239
239
|
max: 2.5
|
|
240
|
-
}),
|
|
241
|
-
x: Math.round(-
|
|
242
|
-
y: Math.round(-
|
|
243
|
-
},
|
|
240
|
+
}), s = {
|
|
241
|
+
x: Math.round(-o * e.position.x + (i - o * e.data.width) / 2),
|
|
242
|
+
y: Math.round(-o * e.position.y) + 50
|
|
243
|
+
}, c = t.getViewport(), l = a.querySelectorAll(`.react-flow__node-project:not([data-id="${e.id}"]) > *`), u = A(l, {
|
|
244
244
|
opacity: 0,
|
|
245
245
|
scale: .9
|
|
246
246
|
}, {
|
|
247
247
|
visualDuration: .25,
|
|
248
248
|
delay: O(.08, { from: "center" })
|
|
249
|
-
}),
|
|
250
|
-
delay:
|
|
249
|
+
}), d = N(1), f = k(d, [1, 0], [`translate(${c.x}px, ${c.y}px) scale(${c.zoom})`, `translate(${s.x}px, ${s.y}px) scale(${o})`]), p = M(a.querySelector(".xyflow__viewport"), { transform: f }), m = M(a.querySelector(`.react-flow__node-project:is([data-id="${e.id}"]) > *`), { opacity: d }), g = A(d, 0, {
|
|
250
|
+
delay: l.length > 3 ? .25 : 0,
|
|
251
251
|
type: "spring",
|
|
252
252
|
stiffness: 350,
|
|
253
253
|
damping: 40,
|
|
@@ -255,7 +255,7 @@ var Y = "likec4:projects-overview:lastViewport", X = {
|
|
|
255
255
|
visualDuration: .55
|
|
256
256
|
});
|
|
257
257
|
Promise.race([g.finished, sleep(750)]).then(() => {
|
|
258
|
-
|
|
258
|
+
p(), m(), g.stop(), u.stop(), r.send({
|
|
259
259
|
type: "emit.navigate.to",
|
|
260
260
|
projectId: e.data.projectId
|
|
261
261
|
});
|
|
@@ -288,17 +288,17 @@ function useProjectsOverviewActor() {
|
|
|
288
288
|
//#region ../diagram/src/projects-overview/panel/ProjectsOverviewPanel.tsx
|
|
289
289
|
var ProjectsOverviewPanel = () => {
|
|
290
290
|
let e = G(1), t;
|
|
291
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ K(
|
|
292
|
-
}, fe =
|
|
293
|
-
let t =
|
|
294
|
-
return /* @__PURE__ */ q(
|
|
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 = p((e) => {
|
|
293
|
+
let t = E(e.data.points);
|
|
294
|
+
return /* @__PURE__ */ q(d, {
|
|
295
295
|
...e,
|
|
296
|
-
children: [/* @__PURE__ */ K(
|
|
296
|
+
children: [/* @__PURE__ */ K(m, {
|
|
297
297
|
edgeProps: e,
|
|
298
298
|
svgPath: t
|
|
299
|
-
}), /* @__PURE__ */ K(
|
|
299
|
+
}), /* @__PURE__ */ K(w, {
|
|
300
300
|
edgeProps: e,
|
|
301
|
-
children: /* @__PURE__ */ K(
|
|
301
|
+
children: /* @__PURE__ */ K(u, { edgeProps: e })
|
|
302
302
|
})]
|
|
303
303
|
});
|
|
304
304
|
});
|
|
@@ -314,33 +314,33 @@ function ProjectNode(e) {
|
|
|
314
314
|
});
|
|
315
315
|
}, t[0] = n, t[1] = e.data.id, t[2] = e.data.projectId, t[3] = t0) : t0 = t[3];
|
|
316
316
|
let r = ee(t0), i, a;
|
|
317
|
-
t[4] === e ? (i = t[5], a = t[6]) : (i = /* @__PURE__ */ K(
|
|
317
|
+
t[4] === e ? (i = t[5], a = t[6]) : (i = /* @__PURE__ */ K(c, { ...e }), a = /* @__PURE__ */ K(x, { ...e }), t[4] = e, t[5] = i, t[6] = a);
|
|
318
318
|
let o;
|
|
319
|
-
t[7] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ K(
|
|
319
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ K(y, {}), t[7] = o) : o = t[7];
|
|
320
320
|
let s;
|
|
321
321
|
t[8] === r ? s = t[9] : (s = [{
|
|
322
322
|
key: "navigate",
|
|
323
323
|
icon: o,
|
|
324
324
|
onClick: r
|
|
325
325
|
}], t[8] = r, t[9] = s);
|
|
326
|
-
let
|
|
327
|
-
t[10] !== e || t[11] !== s ? (
|
|
326
|
+
let u;
|
|
327
|
+
t[10] !== e || t[11] !== s ? (u = /* @__PURE__ */ K(l, {
|
|
328
328
|
...e,
|
|
329
329
|
buttons: s
|
|
330
|
-
}), t[10] = e, t[11] = s, t[12] =
|
|
330
|
+
}), t[10] = e, t[11] = s, t[12] = u) : u = t[12];
|
|
331
|
+
let d;
|
|
332
|
+
t[13] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ K(b, {}), t[13] = d) : d = t[13];
|
|
331
333
|
let f;
|
|
332
|
-
t[
|
|
333
|
-
let p;
|
|
334
|
-
return t[14] !== e || t[15] !== i || t[16] !== a || t[17] !== c ? (p = /* @__PURE__ */ q(d, {
|
|
334
|
+
return t[14] !== e || t[15] !== i || t[16] !== a || t[17] !== u ? (f = /* @__PURE__ */ q(v, {
|
|
335
335
|
layout: !0,
|
|
336
336
|
nodeProps: e,
|
|
337
337
|
children: [
|
|
338
338
|
i,
|
|
339
339
|
a,
|
|
340
|
-
|
|
341
|
-
|
|
340
|
+
u,
|
|
341
|
+
d
|
|
342
342
|
]
|
|
343
|
-
}, e.id), t[14] = e, t[15] = i, t[16] = a, t[17] =
|
|
343
|
+
}, e.id), t[14] = e, t[15] = i, t[16] = a, t[17] = u, t[18] = f) : f = t[18], f;
|
|
344
344
|
}
|
|
345
345
|
//#endregion
|
|
346
346
|
//#region ../diagram/src/projects-overview/hooks.ts
|
|
@@ -360,8 +360,8 @@ var pe = { project: ProjectNode }, me = { relationship: fe }, selector = (e) =>
|
|
|
360
360
|
}), selectorEq = (e, t) => e.isActive === t.isActive && D(e.nodes, t.nodes) && D(e.edges, t.edges), $ = V((e) => {
|
|
361
361
|
let t = G(45), n, r;
|
|
362
362
|
t[0] === e ? (n = t[1], r = t[2]) : ({background: r, ...n} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
363
|
-
let a = r === void 0 ? "dots" : r, o = useProjectsOverviewActor(), { isActive:
|
|
364
|
-
t[3] ===
|
|
363
|
+
let a = r === void 0 ? "dots" : r, o = useProjectsOverviewActor(), { isActive: c, nodes: l, edges: u } = useProjectsOverviewState(selector, selectorEq), d = useProjectsOverviewXYStoreApi(), f = c ? "initialized" : "not-initialized", p;
|
|
364
|
+
t[3] === f ? p = t[4] : (p = te(f, "projects-overview"), t[3] = f, t[4] = p);
|
|
365
365
|
let t4;
|
|
366
366
|
t[5] === o ? t4 = t[6] : (t4 = (e, t) => {
|
|
367
367
|
e.stopPropagation(), o.send({
|
|
@@ -369,36 +369,36 @@ var pe = { project: ProjectNode }, me = { relationship: fe }, selector = (e) =>
|
|
|
369
369
|
node: t
|
|
370
370
|
});
|
|
371
371
|
}, t[5] = o, t[6] = t4);
|
|
372
|
-
let
|
|
372
|
+
let m = s(t4), t6;
|
|
373
373
|
t[7] === o ? t6 = t[8] : (t6 = (e, t) => {
|
|
374
374
|
e.stopPropagation(), o.send({
|
|
375
375
|
type: "xyflow.click.edge",
|
|
376
376
|
edge: t
|
|
377
377
|
});
|
|
378
378
|
}, t[7] = o, t[8] = t6);
|
|
379
|
-
let
|
|
379
|
+
let h = s(t6), t8;
|
|
380
380
|
t[9] === o ? t8 = t[10] : (t8 = (e) => {
|
|
381
381
|
e.stopPropagation(), o.send({ type: "xyflow.click.pane" });
|
|
382
382
|
}, t[9] = o, t[10] = t8);
|
|
383
|
-
let
|
|
383
|
+
let g = s(t8), t10;
|
|
384
384
|
t[11] === o ? t10 = t[12] : (t10 = (e) => {
|
|
385
385
|
e.stopPropagation(), o.send({ type: "xyflow.click.double" });
|
|
386
386
|
}, t[11] = o, t[12] = t10);
|
|
387
|
-
let
|
|
387
|
+
let _ = s(t10), t12;
|
|
388
388
|
t[13] === o ? t12 = t[14] : (t12 = (e) => {
|
|
389
389
|
o.send({
|
|
390
390
|
type: "xyflow.applyNodeChanges",
|
|
391
391
|
changes: e
|
|
392
392
|
});
|
|
393
393
|
}, t[13] = o, t[14] = t12);
|
|
394
|
-
let
|
|
394
|
+
let v = s(t12), t14;
|
|
395
395
|
t[15] === o ? t14 = t[16] : (t14 = (e) => {
|
|
396
396
|
o.send({
|
|
397
397
|
type: "xyflow.applyEdgeChanges",
|
|
398
398
|
changes: e
|
|
399
399
|
});
|
|
400
400
|
}, t[15] = o, t[16] = t14);
|
|
401
|
-
let
|
|
401
|
+
let y = s(t14), t16;
|
|
402
402
|
t[17] === o ? t16 = t[18] : (t16 = (e, t) => {
|
|
403
403
|
o.send({
|
|
404
404
|
type: "xyflow.mouse.enter.edge",
|
|
@@ -406,7 +406,7 @@ var pe = { project: ProjectNode }, me = { relationship: fe }, selector = (e) =>
|
|
|
406
406
|
event: e
|
|
407
407
|
});
|
|
408
408
|
}, t[17] = o, t[18] = t16);
|
|
409
|
-
let
|
|
409
|
+
let b = s(t16), t18;
|
|
410
410
|
t[19] === o ? t18 = t[20] : (t18 = (e, t) => {
|
|
411
411
|
o.send({
|
|
412
412
|
type: "xyflow.mouse.leave.edge",
|
|
@@ -414,46 +414,46 @@ var pe = { project: ProjectNode }, me = { relationship: fe }, selector = (e) =>
|
|
|
414
414
|
event: e
|
|
415
415
|
});
|
|
416
416
|
}, t[19] = o, t[20] = t18);
|
|
417
|
-
let
|
|
417
|
+
let x = s(t18), t20;
|
|
418
418
|
t[21] === o ? t20 = t[22] : (t20 = (e, t) => {
|
|
419
419
|
o.send({
|
|
420
420
|
type: "xyflow.mouse.enter.node",
|
|
421
421
|
node: t
|
|
422
422
|
});
|
|
423
423
|
}, t[21] = o, t[22] = t20);
|
|
424
|
-
let
|
|
424
|
+
let S = s(t20), t22;
|
|
425
425
|
t[23] === o ? t22 = t[24] : (t22 = (e, t) => {
|
|
426
426
|
o.send({
|
|
427
427
|
type: "xyflow.mouse.leave.node",
|
|
428
428
|
node: t
|
|
429
429
|
});
|
|
430
430
|
}, t[23] = o, t[24] = t22);
|
|
431
|
-
let
|
|
432
|
-
t[25] !== o || t[26] !==
|
|
431
|
+
let C = s(t22), t24;
|
|
432
|
+
t[25] !== o || t[26] !== d ? (t24 = (e) => {
|
|
433
433
|
o.send({
|
|
434
434
|
type: "xyflow.init",
|
|
435
435
|
xyflow: e,
|
|
436
|
-
xystore:
|
|
436
|
+
xystore: d
|
|
437
437
|
});
|
|
438
|
-
}, t[25] = o, t[26] =
|
|
439
|
-
let w =
|
|
440
|
-
return t[28] !== a || t[29] !==
|
|
441
|
-
nodes:
|
|
442
|
-
edges:
|
|
443
|
-
className:
|
|
438
|
+
}, t[25] = o, t[26] = d, t[27] = t24) : t24 = t[27];
|
|
439
|
+
let w = s(t24), T;
|
|
440
|
+
return t[28] !== a || t[29] !== u || t[30] !== l || t[31] !== n || t[32] !== _ || t[33] !== v || t[34] !== y || t[35] !== b || t[36] !== x || t[37] !== S || t[38] !== C || t[39] !== w || t[40] !== p || t[41] !== m || t[42] !== h || t[43] !== g ? (T = /* @__PURE__ */ K(i, {
|
|
441
|
+
nodes: l,
|
|
442
|
+
edges: u,
|
|
443
|
+
className: p,
|
|
444
444
|
nodeTypes: pe,
|
|
445
445
|
edgeTypes: me,
|
|
446
446
|
fitView: !1,
|
|
447
|
-
onNodeClick:
|
|
448
|
-
onEdgeClick:
|
|
449
|
-
onPaneClick:
|
|
450
|
-
onDoubleClick:
|
|
451
|
-
onNodesChange:
|
|
452
|
-
onEdgesChange:
|
|
453
|
-
onEdgeMouseEnter:
|
|
454
|
-
onEdgeMouseLeave:
|
|
455
|
-
onNodeMouseEnter:
|
|
456
|
-
onNodeMouseLeave:
|
|
447
|
+
onNodeClick: m,
|
|
448
|
+
onEdgeClick: h,
|
|
449
|
+
onPaneClick: g,
|
|
450
|
+
onDoubleClick: _,
|
|
451
|
+
onNodesChange: v,
|
|
452
|
+
onEdgesChange: y,
|
|
453
|
+
onEdgeMouseEnter: b,
|
|
454
|
+
onEdgeMouseLeave: x,
|
|
455
|
+
onNodeMouseEnter: S,
|
|
456
|
+
onNodeMouseLeave: C,
|
|
457
457
|
onInit: w,
|
|
458
458
|
nodesDraggable: !1,
|
|
459
459
|
nodesSelectable: !0,
|
|
@@ -461,7 +461,7 @@ var pe = { project: ProjectNode }, me = { relationship: fe }, selector = (e) =>
|
|
|
461
461
|
zoomable: !0,
|
|
462
462
|
background: a,
|
|
463
463
|
...n
|
|
464
|
-
}), t[28] = a, t[29] =
|
|
464
|
+
}), t[28] = a, t[29] = u, t[30] = l, t[31] = n, t[32] = _, t[33] = v, t[34] = y, t[35] = b, t[36] = x, t[37] = S, t[38] = C, t[39] = w, t[40] = p, t[41] = m, t[42] = h, t[43] = g, t[44] = T) : T = t[44], T;
|
|
465
465
|
});
|
|
466
466
|
$.displayName = "ProjectsOverviewXY";
|
|
467
467
|
//#endregion
|
|
@@ -513,8 +513,8 @@ function ProjectsOverview({ view: t, onNavigateToProject: n, fitViewPadding: r =
|
|
|
513
513
|
//#endregion
|
|
514
514
|
//#region ../diagram/src/LikeC4ProjectsOverview.tsx
|
|
515
515
|
function LikeC4ProjectsOverview({ view: e, className: t, onNavigateToProject: i, ...a }) {
|
|
516
|
-
let
|
|
517
|
-
return i ??=
|
|
516
|
+
let s = f(), c = T();
|
|
517
|
+
return i ??= s, /* @__PURE__ */ K(o, { children: /* @__PURE__ */ q(r, { children: [/* @__PURE__ */ K(S, { rootSelector: `#${c}` }), /* @__PURE__ */ K(n, {
|
|
518
518
|
id: c,
|
|
519
519
|
className: t,
|
|
520
520
|
children: /* @__PURE__ */ K(ProjectsOverview, {
|
|
@@ -527,7 +527,7 @@ function LikeC4ProjectsOverview({ view: e, className: t, onNavigateToProject: i,
|
|
|
527
527
|
//#endregion
|
|
528
528
|
//#region src/pages/ProjectsOverview.tsx
|
|
529
529
|
function ProjectsOverviewPage() {
|
|
530
|
-
let e = G(3), t =
|
|
530
|
+
let e = G(3), t = f(), n = le(), r;
|
|
531
531
|
return e[0] !== t || e[1] !== n ? (r = /* @__PURE__ */ K(LikeC4ProjectsOverview, {
|
|
532
532
|
view: n,
|
|
533
533
|
onNavigateToProject: t
|
|
@@ -297,7 +297,7 @@ async function embedBackground(e, t) {
|
|
|
297
297
|
}
|
|
298
298
|
async function embedImageNode(e, t) {
|
|
299
299
|
let n = isInstanceOfElement(e, HTMLImageElement);
|
|
300
|
-
if (!
|
|
300
|
+
if ((!n || isDataUrl(e.src)) && (!isInstanceOfElement(e, SVGImageElement) || isDataUrl(e.href.baseVal))) return;
|
|
301
301
|
let r = n ? e.src : e.href.baseVal, i = await resourceToDataURL(r, getMimeType(r), t);
|
|
302
302
|
await new Promise((t, r) => {
|
|
303
303
|
e.onload = t, e.onerror = r;
|