likec4 1.59.2 → 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 +118 -123
- package/__app__/src/chunks/LikeC4Styles.mjs +828 -686
- package/__app__/src/chunks/ProjectsOverview.mjs +82 -82
- package/__app__/src/chunks/es.mjs +1 -1
- package/__app__/src/chunks/hooks.mjs +164 -135
- package/__app__/src/chunks/libs/@floating-ui.mjs +649 -335
- package/__app__/src/chunks/libs/@mantine.mjs +2934 -2040
- package/__app__/src/chunks/libs/@tanstack-ai.mjs +28 -28
- package/__app__/src/chunks/libs/@tanstack.mjs +46 -51
- package/__app__/src/chunks/libs/@xstate/react.mjs +59 -40
- package/__app__/src/chunks/libs/@xyflow/react.mjs +535 -448
- package/__app__/src/chunks/libs/bezier-js.mjs +10 -9
- package/__app__/src/chunks/libs/d3.mjs +20 -45
- package/__app__/src/chunks/libs/fast-equals.mjs +62 -50
- package/__app__/src/chunks/libs/framer.mjs +300 -279
- 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 +2580 -132
- package/__app__/src/main.mjs +24925 -23485
- package/__app__/src/style.css +1 -1
- package/config/schema.json +49 -0
- package/dist/app/render-view-client.css +1 -0
- package/dist/app/render-view-client.js +739 -0
- package/dist/chunks/enableServer.mjs +1 -1
- package/dist/chunks/filenames.mjs +7 -6
- package/dist/chunks/index.d.mts +18 -1
- package/dist/chunks/index2.d.mts +79 -26
- package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
- package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +5 -5
- package/dist/chunks/libs/@chevrotain/types.d.mts +108 -0
- package/dist/chunks/libs/@logtape/logtape.mjs +4 -4
- 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.d.mts +1777 -16
- package/dist/chunks/libs/langium.mjs +11 -11
- package/dist/chunks/libs/merge-error-cause.mjs +2 -2
- 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/libs/zod.mjs +4 -4
- package/dist/chunks/node.mjs +68 -57
- package/dist/chunks/rolldown-runtime.mjs +1 -1
- package/dist/chunks/sequence-view.mjs +1 -1
- package/dist/chunks/vite-plugin.mjs +168 -54
- package/dist/cli/index.d.mts +1 -1
- package/dist/cli/index.mjs +291 -165
- package/dist/config/index.d.mts +7 -1
- package/dist/config/index.mjs +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- 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 +72 -35
- package/dist/vite-plugin/internal/index.mjs +125 -44
- package/package.json +47 -47
- package/react/index.d.mts +22767 -1432
- package/react/index.mjs +38152 -32309
- package/vite-plugin-modules.d.ts +21 -1
- package/dist/chunks/dist.mjs +0 -10
- package/dist/chunks/logger.mjs +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { i as e } from "../../rolldown-runtime.mjs";
|
|
2
2
|
import { useCallback as t, useEffect as n, useLayoutEffect as r, useState as i } from "react";
|
|
3
3
|
import { useSyncExternalStoreWithSelector as a } from "use-sync-external-store/shim/with-selector";
|
|
4
|
-
//#region ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types+react@19.2.
|
|
4
|
+
//#region ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types+react@19.2.18_react@19.2.8/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js
|
|
5
5
|
var o = r;
|
|
6
6
|
//#endregion
|
|
7
|
-
//#region ../../node_modules/.pnpm/xstate@5.32.
|
|
7
|
+
//#region ../../node_modules/.pnpm/xstate@5.32.6/node_modules/xstate/dist/xstate-dev.esm.js
|
|
8
8
|
function getGlobal() {
|
|
9
9
|
if (typeof globalThis < "u") return globalThis;
|
|
10
10
|
if (typeof self < "u") return self;
|
|
@@ -85,7 +85,7 @@ function reportUnhandledError(e) {
|
|
|
85
85
|
var f = typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
86
86
|
function matchesState(e, t) {
|
|
87
87
|
let n = toStateValue(e), r = toStateValue(t);
|
|
88
|
-
return typeof r == "string" ? typeof n == "string"
|
|
88
|
+
return typeof r == "string" ? typeof n == "string" && r === n : typeof n == "string" ? n in r : Object.keys(n).every((e) => e in r && matchesState(n[e], r[e]));
|
|
89
89
|
}
|
|
90
90
|
function toStatePath(e) {
|
|
91
91
|
if (isArray(e)) return e;
|
|
@@ -147,7 +147,7 @@ function toTransitionConfigArray(e) {
|
|
|
147
147
|
return toArrayStrict(e).map((e) => e === void 0 || typeof e == "string" ? { target: e } : e);
|
|
148
148
|
}
|
|
149
149
|
function normalizeTarget(e) {
|
|
150
|
-
if (
|
|
150
|
+
if (e !== void 0 && e !== s) return toArray(e);
|
|
151
151
|
}
|
|
152
152
|
function toObserver(e, t, n) {
|
|
153
153
|
let r = typeof e == "object", i = r ? e : void 0;
|
|
@@ -366,9 +366,7 @@ var m = !1, h = /*#__PURE__*/ function(e) {
|
|
|
366
366
|
}
|
|
367
367
|
this._stopProcedure(), this._complete(), this._doneEvent = createDoneActorEvent(this.id, this._snapshot.output), this._parent && this.system._relay(this, this._parent, this._doneEvent);
|
|
368
368
|
break;
|
|
369
|
-
case "error":
|
|
370
|
-
this._error(this._snapshot.error);
|
|
371
|
-
break;
|
|
369
|
+
case "error": this._error(this._snapshot.error);
|
|
372
370
|
}
|
|
373
371
|
this.system._sendInspectionEvent({
|
|
374
372
|
type: "@xstate.snapshot",
|
|
@@ -836,7 +834,7 @@ function resolveTarget(e, t) {
|
|
|
836
834
|
} catch (t) {
|
|
837
835
|
throw Error(`Invalid transition definition for state node '${e.id}':\n${t.message}`);
|
|
838
836
|
}
|
|
839
|
-
|
|
837
|
+
throw Error(`Invalid target: "${t}" is not a valid target from the root node. Did you mean ".${t}"?`);
|
|
840
838
|
});
|
|
841
839
|
}
|
|
842
840
|
function resolveHistoryDefaultTransition(e) {
|
|
@@ -933,10 +931,12 @@ function removeConflictingTransitions(e, t, n) {
|
|
|
933
931
|
let r = /* @__PURE__ */ new Set();
|
|
934
932
|
for (let i of e) {
|
|
935
933
|
let e = !1, a = /* @__PURE__ */ new Set();
|
|
936
|
-
for (let o of r) if (hasIntersection(computeExitSet([i], t, n), computeExitSet([o], t, n)))
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
934
|
+
for (let o of r) if (hasIntersection(computeExitSet([i], t, n), computeExitSet([o], t, n))) {
|
|
935
|
+
if (isDescendant(i.source, o.source)) a.add(o);
|
|
936
|
+
else {
|
|
937
|
+
e = !0;
|
|
938
|
+
break;
|
|
939
|
+
}
|
|
940
940
|
}
|
|
941
941
|
if (!e) {
|
|
942
942
|
for (let e of a) r.delete(e);
|
|
@@ -952,9 +952,10 @@ function findLeastCommonAncestor(e) {
|
|
|
952
952
|
function getEffectiveTargetStates(e, t) {
|
|
953
953
|
if (!e.target) return [];
|
|
954
954
|
let n = /* @__PURE__ */ new Set();
|
|
955
|
-
for (let r of e.target) if (isHistoryNode(r))
|
|
956
|
-
|
|
957
|
-
|
|
955
|
+
for (let r of e.target) if (isHistoryNode(r)) {
|
|
956
|
+
if (t[r.id]) for (let e of t[r.id]) n.add(e);
|
|
957
|
+
else for (let e of getEffectiveTargetStates(resolveHistoryDefaultTransition(r), t)) n.add(e);
|
|
958
|
+
} else n.add(r);
|
|
958
959
|
return [...n];
|
|
959
960
|
}
|
|
960
961
|
function getTransitionDomain(e, t) {
|
|
@@ -1058,16 +1059,17 @@ function computeEntrySet(e, t, n, r) {
|
|
|
1058
1059
|
}
|
|
1059
1060
|
}
|
|
1060
1061
|
function addDescendantStatesToEnter(e, t, n, r) {
|
|
1061
|
-
if (isHistoryNode(e))
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1062
|
+
if (isHistoryNode(e)) {
|
|
1063
|
+
if (t[e.id]) {
|
|
1064
|
+
let i = t[e.id];
|
|
1065
|
+
for (let e of i) r.add(e), addDescendantStatesToEnter(e, t, n, r);
|
|
1066
|
+
for (let a of i) addProperAncestorStatesToEnter(a, e.parent, r, t, n);
|
|
1067
|
+
} else {
|
|
1068
|
+
let i = resolveHistoryDefaultTransition(e);
|
|
1069
|
+
for (let a of i.target) r.add(a), i === e.parent?.initial && n.add(e.parent), addDescendantStatesToEnter(a, t, n, r);
|
|
1070
|
+
for (let a of i.target) addProperAncestorStatesToEnter(a, e.parent, r, t, n);
|
|
1071
|
+
}
|
|
1072
|
+
} else if (e.type === "compound") {
|
|
1071
1073
|
let [i] = e.initial.target;
|
|
1072
1074
|
isHistoryNode(i) || (r.add(i), n.add(i)), addDescendantStatesToEnter(i, t, n, r), addProperAncestorStatesToEnter(i, e, r, t, n);
|
|
1073
1075
|
} else if (e.type === "parallel") for (let i of getChildren(e).filter((e) => !isHistoryNode(e))) [...r].some((e) => isDescendant(e, i)) || (isHistoryNode(i) || (r.add(i), n.add(i)), addDescendantStatesToEnter(i, t, n, r));
|
|
@@ -1270,13 +1272,15 @@ function persistContext(e) {
|
|
|
1270
1272
|
let t;
|
|
1271
1273
|
for (let n in e) {
|
|
1272
1274
|
let r = e[n];
|
|
1273
|
-
if (r && typeof r == "object")
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1275
|
+
if (r && typeof r == "object") {
|
|
1276
|
+
if ("sessionId" in r && "send" in r && "ref" in r) t ??= Array.isArray(e) ? e.slice() : { ...e }, t[n] = {
|
|
1277
|
+
xstate$$type: 1,
|
|
1278
|
+
id: r.id
|
|
1279
|
+
};
|
|
1280
|
+
else {
|
|
1281
|
+
let i = persistContext(r);
|
|
1282
|
+
i !== r && (t ??= Array.isArray(e) ? e.slice() : { ...e }, t[n] = i);
|
|
1283
|
+
}
|
|
1280
1284
|
}
|
|
1281
1285
|
}
|
|
1282
1286
|
return t ?? e;
|
|
@@ -1415,7 +1419,7 @@ function fromPromise(e) {
|
|
|
1415
1419
|
};
|
|
1416
1420
|
}
|
|
1417
1421
|
//#endregion
|
|
1418
|
-
//#region ../../node_modules/.pnpm/xstate@5.32.
|
|
1422
|
+
//#region ../../node_modules/.pnpm/xstate@5.32.6/node_modules/xstate/dist/assign-54f9e2d3.esm.js
|
|
1419
1423
|
function createSpawner(e, { machine: t, context: n }, r, i) {
|
|
1420
1424
|
let spawn = (a, o) => {
|
|
1421
1425
|
if (typeof a == "string") {
|
|
@@ -1434,7 +1438,8 @@ function createSpawner(e, { machine: t, context: n }, r, i) {
|
|
|
1434
1438
|
systemId: o?.systemId
|
|
1435
1439
|
});
|
|
1436
1440
|
return i[c.id] = c, c;
|
|
1437
|
-
}
|
|
1441
|
+
}
|
|
1442
|
+
return createActor(a, {
|
|
1438
1443
|
id: o?.id,
|
|
1439
1444
|
parent: e.self,
|
|
1440
1445
|
syncSnapshot: o?.syncSnapshot,
|
|
@@ -1481,7 +1486,7 @@ function assign(e) {
|
|
|
1481
1486
|
return assign.type = "xstate.assign", assign.assignment = e, assign.resolve = resolveAssign, assign;
|
|
1482
1487
|
}
|
|
1483
1488
|
//#endregion
|
|
1484
|
-
//#region ../../node_modules/.pnpm/xstate@5.32.
|
|
1489
|
+
//#region ../../node_modules/.pnpm/xstate@5.32.6/node_modules/xstate/dist/StateMachine-28a9f50e.esm.js
|
|
1485
1490
|
var E = /* @__PURE__ */ new WeakMap();
|
|
1486
1491
|
function memo$1(e, t, n) {
|
|
1487
1492
|
let r = E.get(e);
|
|
@@ -1676,8 +1681,22 @@ var D = {}, toSerializableAction = (e) => typeof e == "string" ? { type: e } : t
|
|
|
1676
1681
|
return i;
|
|
1677
1682
|
}
|
|
1678
1683
|
getInitialSnapshot(e, t) {
|
|
1679
|
-
let n = createInitEvent(t), r = [], i =
|
|
1680
|
-
|
|
1684
|
+
let n = createInitEvent(t), r = [], i = createMachineSnapshot({
|
|
1685
|
+
context: typeof this.config.context != "function" && this.config.context ? this.config.context : {},
|
|
1686
|
+
_nodes: [this.root],
|
|
1687
|
+
children: {},
|
|
1688
|
+
status: "active"
|
|
1689
|
+
}, this);
|
|
1690
|
+
try {
|
|
1691
|
+
i = this._getPreInitialState(e, n, r);
|
|
1692
|
+
let [t] = initialMicrostep(this.root, i, e, n, r), { snapshot: a } = macrostep(t, n, e, r);
|
|
1693
|
+
return a;
|
|
1694
|
+
} catch (e) {
|
|
1695
|
+
return cloneMachineSnapshot(i, {
|
|
1696
|
+
status: "error",
|
|
1697
|
+
error: e
|
|
1698
|
+
});
|
|
1699
|
+
}
|
|
1681
1700
|
}
|
|
1682
1701
|
start(e) {
|
|
1683
1702
|
Object.values(e.children).forEach((e) => {
|
|
@@ -1756,7 +1775,7 @@ var D = {}, toSerializableAction = (e) => typeof e == "string" ? { type: e } : t
|
|
|
1756
1775
|
}
|
|
1757
1776
|
};
|
|
1758
1777
|
//#endregion
|
|
1759
|
-
//#region ../../node_modules/.pnpm/xstate@5.32.
|
|
1778
|
+
//#region ../../node_modules/.pnpm/xstate@5.32.6/node_modules/xstate/dist/log-66075555.esm.js
|
|
1760
1779
|
function resolveEmit(e, t, n, r, { event: i }) {
|
|
1761
1780
|
return [
|
|
1762
1781
|
t,
|
|
@@ -1876,7 +1895,7 @@ function log(e = ({ context: e, event: t }) => ({
|
|
|
1876
1895
|
return log.type = "xstate.log", log.value = e, log.label = t, log.resolve = resolveLog, log.execute = executeLog, log;
|
|
1877
1896
|
}
|
|
1878
1897
|
//#endregion
|
|
1879
|
-
//#region ../../node_modules/.pnpm/xstate@5.32.
|
|
1898
|
+
//#region ../../node_modules/.pnpm/xstate@5.32.6/node_modules/xstate/dist/xstate.esm.js
|
|
1880
1899
|
function assertEvent(e, t) {
|
|
1881
1900
|
let n = toArray(t);
|
|
1882
1901
|
if (!n.some((t) => matchesEventDescriptor(e.type, t))) {
|
|
@@ -1928,7 +1947,7 @@ function setup({ schemas: e, actors: t, actions: n, guards: r, delays: i }) {
|
|
|
1928
1947
|
};
|
|
1929
1948
|
}
|
|
1930
1949
|
//#endregion
|
|
1931
|
-
//#region ../../node_modules/.pnpm/@xstate+react@6.1.0_@types+react@19.2.
|
|
1950
|
+
//#region ../../node_modules/.pnpm/@xstate+react@6.1.0_@types+react@19.2.18_react@19.2.8_xstate@5.32.6/node_modules/@xstate/react/dist/xstate-react.esm.js
|
|
1932
1951
|
var forEachActor = (e, t) => {
|
|
1933
1952
|
t(e);
|
|
1934
1953
|
let n = e.getSnapshot().children;
|