likec4 1.53.0 → 1.55.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.
Files changed (41) hide show
  1. package/__app__/src/likec4.js +9 -5
  2. package/__app__/src/routes/index.js +2 -2
  3. package/__app__/src/style.css +1 -1
  4. package/__app__/src/vendors.js +4023 -2281
  5. package/config/schema.json +77 -92
  6. package/dist/THIRD-PARTY-LICENSES.md +3 -69
  7. package/dist/_chunks/index.d.mts +1 -1
  8. package/dist/_chunks/index2.d.mts +10 -20
  9. package/dist/_chunks/libs/@chevrotain/cst-dts-gen.mjs +7 -7
  10. package/dist/_chunks/libs/@hono/mcp.mjs +35 -24
  11. package/dist/_chunks/libs/@hono/node-server.mjs +1 -1
  12. package/dist/_chunks/libs/@logtape/logtape.d.mts +3 -3
  13. package/dist/_chunks/libs/@logtape/logtape.mjs +3 -3
  14. package/dist/_chunks/libs/@modelcontextprotocol/sdk.mjs +8 -8
  15. package/dist/_chunks/libs/@nanostores/react.d.mts +22 -17
  16. package/dist/_chunks/libs/@nanostores/react.mjs +1 -1
  17. package/dist/_chunks/libs/ajv.mjs +1 -1
  18. package/dist/_chunks/libs/atomically.mjs +1 -1
  19. package/dist/_chunks/libs/conf.mjs +1 -1
  20. package/dist/_chunks/libs/defu.mjs +1 -1
  21. package/dist/_chunks/libs/find-up-simple.mjs +1 -1
  22. package/dist/_chunks/libs/p-timeout.mjs +1 -0
  23. package/dist/_chunks/libs/package-manager-detector.mjs +1 -1
  24. package/dist/_chunks/libs/pathe.mjs +1 -1
  25. package/dist/_chunks/libs/picomatch.mjs +1 -1
  26. package/dist/_chunks/libs/tinyrainbow.mjs +1 -1
  27. package/dist/_chunks/libs/zod.d.mts +2091 -0
  28. package/dist/_chunks/node.mjs +76 -1
  29. package/dist/_chunks/src2.mjs +69 -69
  30. package/dist/cli/index.mjs +1228 -97
  31. package/dist/config/index.d.mts +1 -1
  32. package/dist/index.d.mts +1 -1
  33. package/dist/index.mjs +1 -1
  34. package/dist/vite-plugin/index.d.mts +1 -1
  35. package/dist/vite-plugin/index.mjs +1 -1
  36. package/dist/vite-plugin/internal.mjs +1 -1
  37. package/package.json +32 -31
  38. package/react/index.d.mts +6 -0
  39. package/react/index.mjs +55 -37
  40. package/dist/_chunks/filesystem.mjs +0 -1231
  41. package/dist/_chunks/libs/@modelcontextprotocol/sdk.d.mts +0 -8725
@@ -16269,8 +16269,8 @@ function createLayoutConstraints(xyflowApi, editingNodeIds) {
16269
16269
  }
16270
16270
  }
16271
16271
  const _edgeModifiers = [...edgeModifiers.values()];
16272
- function updateXYFlow() {
16273
- const { edgeLookup, triggerNodeChanges, triggerEdgeChanges, nodeLookup: nodeLookup2 } = xyflowApi.getState();
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
@@ -110,12 +110,12 @@ const theme = createTheme({
110
110
  component: RootComponent
111
111
  });
112
112
  function RootComponent() {
113
- const { theme: theme$1 } = Route$2.useSearch(), forceColorScheme = resolveForceColorScheme(theme$1);
113
+ const { theme: theme$1 } = Route$2.useSearch(), forceColorScheme = resolveForceColorScheme(theme$1), defaultColorScheme = theme$1 === "auto" ? "auto" : __DEFAULT_THEME__;
114
114
  return /* @__PURE__ */ jsx(
115
115
  MantineProvider,
116
116
  {
117
117
  theme,
118
- defaultColorScheme: "auto",
118
+ defaultColorScheme,
119
119
  ...forceColorScheme && { forceColorScheme },
120
120
  children: /* @__PURE__ */ jsx(Outlet, {})
121
121
  }