likec4 1.53.0 → 1.54.0
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/likec4.js +9 -5
- package/__app__/src/style.css +1 -1
- package/__app__/src/vendors.js +4023 -2281
- package/config/schema.json +77 -92
- package/dist/_chunks/filesystem.mjs +50 -52
- package/dist/_chunks/libs/@chevrotain/cst-dts-gen.mjs +7 -7
- package/dist/_chunks/libs/@hono/mcp.mjs +35 -24
- package/dist/_chunks/libs/@hono/node-server.mjs +1 -1
- package/dist/_chunks/libs/@logtape/logtape.d.mts +3 -3
- package/dist/_chunks/libs/@logtape/logtape.mjs +3 -3
- package/dist/_chunks/libs/@modelcontextprotocol/sdk.d.mts +795 -195
- package/dist/_chunks/libs/@modelcontextprotocol/sdk.mjs +6 -6
- package/dist/_chunks/libs/@nanostores/react.d.mts +22 -17
- package/dist/_chunks/libs/@nanostores/react.mjs +1 -1
- package/dist/_chunks/libs/defu.mjs +1 -1
- package/dist/_chunks/libs/picomatch.mjs +1 -1
- package/dist/_chunks/node.mjs +1 -1
- package/dist/_chunks/src2.mjs +45 -45
- package/dist/cli/index.mjs +97 -97
- package/package.json +27 -27
- package/react/index.d.mts +6 -0
- package/react/index.mjs +55 -37
package/__app__/src/likec4.js
CHANGED
|
@@ -16269,8 +16269,8 @@ function createLayoutConstraints(xyflowApi, editingNodeIds) {
|
|
|
16269
16269
|
}
|
|
16270
16270
|
}
|
|
16271
16271
|
const _edgeModifiers = [...edgeModifiers.values()];
|
|
16272
|
-
function
|
|
16273
|
-
const {
|
|
16272
|
+
function syncFromXYFlow() {
|
|
16273
|
+
const { nodeLookup: nodeLookup2 } = xyflowApi.getState();
|
|
16274
16274
|
for (const id of editingNodeIds) {
|
|
16275
16275
|
const rect = rects.get(id);
|
|
16276
16276
|
if (!rect) {
|
|
@@ -16284,6 +16284,9 @@ function createLayoutConstraints(xyflowApi, editingNodeIds) {
|
|
|
16284
16284
|
}
|
|
16285
16285
|
rect.positionAbsolute = node2.internals.positionAbsolute;
|
|
16286
16286
|
}
|
|
16287
|
+
}
|
|
16288
|
+
function updateXYFlow() {
|
|
16289
|
+
const { edgeLookup, triggerNodeChanges, triggerEdgeChanges } = xyflowApi.getState();
|
|
16287
16290
|
applyConstraints(rectsToUpdate);
|
|
16288
16291
|
const nodeUpdates = [], edgeUpdates = [];
|
|
16289
16292
|
for (const r2 of rectsToUpdate)
|
|
@@ -16310,11 +16313,11 @@ function createLayoutConstraints(xyflowApi, editingNodeIds) {
|
|
|
16310
16313
|
animationFrameId !== null && (cancelAnimationFrame(animationFrameId), animationFrameId = null);
|
|
16311
16314
|
}
|
|
16312
16315
|
function flushPending() {
|
|
16313
|
-
cancelPending(), updateXYFlow();
|
|
16316
|
+
cancelPending(), syncFromXYFlow(), updateXYFlow();
|
|
16314
16317
|
}
|
|
16315
16318
|
function onMove() {
|
|
16316
16319
|
animationFrameId ??= requestAnimationFrame(() => {
|
|
16317
|
-
animationFrameId = null, updateXYFlow();
|
|
16320
|
+
animationFrameId = null, syncFromXYFlow(), updateXYFlow();
|
|
16318
16321
|
});
|
|
16319
16322
|
}
|
|
16320
16323
|
function hasChanges() {
|
|
@@ -18373,7 +18376,7 @@ const setViewport = (params) => machine$2.createAction(({ context: context2, eve
|
|
|
18373
18376
|
viewportBefore
|
|
18374
18377
|
} = fromHistory, nextCtx = {
|
|
18375
18378
|
...mergeXYNodesEdges(context2, eventWithXYData),
|
|
18376
|
-
dynamicViewVariant: fromHistory.dynamicViewVariant ?? context2.dynamicViewVariant,
|
|
18379
|
+
dynamicViewVariant: fromHistory.dynamicViewVariant ?? (eventWithXYData.view._type === "dynamic" ? eventWithXYData.view.variant : void 0) ?? context2.dynamicViewVariant,
|
|
18377
18380
|
viewportChangedManually: viewportBefore?.wasChangedManually ?? fromHistory.viewportChangedManually,
|
|
18378
18381
|
viewport: viewportBefore?.value ?? fromHistory.viewport,
|
|
18379
18382
|
viewportBefore: null
|
|
@@ -18445,6 +18448,7 @@ const setViewport = (params) => machine$2.createAction(({ context: context2, eve
|
|
|
18445
18448
|
...mergeXYNodesEdges(context2, eventWithXYData),
|
|
18446
18449
|
viewportChangedManually: !1,
|
|
18447
18450
|
lastOnNavigate: null,
|
|
18451
|
+
dynamicViewVariant: eventWithXYData.view._type === "dynamic" ? eventWithXYData.view.variant : context2.dynamicViewVariant,
|
|
18448
18452
|
navigationHistory: {
|
|
18449
18453
|
currentIndex: updatedHistory.length - 1,
|
|
18450
18454
|
history: updatedHistory
|