likec4 1.57.0 → 1.58.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 (168) hide show
  1. package/__app__/codegen/react.mjs +7 -8
  2. package/__app__/codegen/webcomponent.mjs +70 -881
  3. package/__app__/src/aichat/index.mjs +8 -1
  4. package/__app__/src/chunks/AIChat.mjs +959 -0
  5. package/__app__/src/chunks/DiagramActorProvider.mjs +7638 -0
  6. package/__app__/src/chunks/LikeC4Styles.mjs +1866 -0
  7. package/__app__/src/chunks/Markdown.mjs +146 -0
  8. package/__app__/src/chunks/NavigationPanel.mjs +61 -0
  9. package/__app__/src/chunks/ProjectsOverview.mjs +540 -0
  10. package/__app__/src/chunks/adhoc-editor.mjs +3386 -0
  11. package/__app__/src/chunks/es.mjs +439 -0
  12. package/__app__/src/chunks/hooks.mjs +145 -0
  13. package/__app__/src/chunks/libs/@dagrejs/dagre.mjs +1894 -0
  14. package/__app__/src/chunks/libs/@floating-ui.mjs +2218 -0
  15. package/__app__/src/chunks/libs/@mantine.mjs +12070 -0
  16. package/__app__/src/chunks/libs/@tabler/icons-react.mjs +252 -0
  17. package/__app__/src/chunks/libs/@tanstack-ai.mjs +1768 -0
  18. package/__app__/src/chunks/libs/@tanstack.mjs +2718 -0
  19. package/__app__/src/chunks/libs/@xstate/react.mjs +1982 -0
  20. package/__app__/src/chunks/libs/@xyflow/react.mjs +5256 -0
  21. package/__app__/src/chunks/libs/bezier-js.mjs +1003 -0
  22. package/__app__/src/chunks/libs/d3.mjs +2842 -0
  23. package/__app__/src/chunks/libs/fast-equals.mjs +268 -0
  24. package/__app__/src/chunks/libs/framer.mjs +5872 -0
  25. package/__app__/src/chunks/libs/remeda.mjs +642 -0
  26. package/__app__/src/chunks/libs/zod.mjs +3170 -0
  27. package/__app__/src/chunks/rolldown-runtime.mjs +23 -0
  28. package/__app__/src/chunks/styled-system.mjs +1040 -0
  29. package/__app__/src/fonts.css +1 -1
  30. package/__app__/src/main.mjs +14816 -14
  31. package/__app__/src/style.css +1 -1
  32. package/dist/chunks/enableServer.mjs +1 -1
  33. package/dist/chunks/filenames.mjs +2 -2
  34. package/dist/chunks/index2.d.mts +1877 -734
  35. package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
  36. package/dist/chunks/libs/@logtape/logtape.mjs +4 -3
  37. package/dist/chunks/libs/chevrotain-allstar.mjs +2 -2
  38. package/dist/chunks/libs/chevrotain.mjs +25 -25
  39. package/dist/chunks/libs/langium.mjs +1 -1
  40. package/dist/chunks/libs/merge-error-cause.mjs +1 -1
  41. package/dist/chunks/libs/pretty-ms.mjs +1 -1
  42. package/dist/chunks/libs/remeda.mjs +1 -1
  43. package/dist/chunks/libs/ufo.mjs +1 -1
  44. package/dist/chunks/libs/unstorage.mjs +1 -1
  45. package/dist/chunks/libs/which.mjs +1 -1
  46. package/dist/chunks/libs/zod.mjs +65 -0
  47. package/dist/chunks/node.mjs +73 -62
  48. package/dist/chunks/{plugin.mjs → vite-plugin.mjs} +41 -41
  49. package/dist/cli/index.mjs +184 -144
  50. package/dist/index.d.mts +1 -1
  51. package/dist/index.mjs +1 -1
  52. package/dist/model/index.d.mts +1 -1
  53. package/dist/vite-plugin/index.mjs +1 -1
  54. package/dist/vite-plugin/internal/index.d.mts +52 -57
  55. package/dist/vite-plugin/internal/index.mjs +946 -1
  56. package/package.json +46 -47
  57. package/react/index.d.mts +92 -23
  58. package/react/index.mjs +44551 -42605
  59. package/__app__/chunks/AIChat2.mjs +0 -2
  60. package/__app__/chunks/DiagramActorProvider.mjs +0 -10
  61. package/__app__/chunks/EmbedPage.mjs +0 -1
  62. package/__app__/chunks/ExportPage.mjs +0 -2
  63. package/__app__/chunks/LikeC4Diagram.mjs +0 -19
  64. package/__app__/chunks/LikeC4Styles.mjs +0 -48
  65. package/__app__/chunks/Markdown.mjs +0 -1
  66. package/__app__/chunks/NavigationPanel.mjs +0 -1
  67. package/__app__/chunks/ViewReact.mjs +0 -1
  68. package/__app__/chunks/adhoc-editor.mjs +0 -1
  69. package/__app__/chunks/aichat.mjs +0 -1
  70. package/__app__/chunks/box.mjs +0 -1
  71. package/__app__/chunks/create-style-context.mjs +0 -1
  72. package/__app__/chunks/css.mjs +0 -1
  73. package/__app__/chunks/factory.mjs +0 -1
  74. package/__app__/chunks/hooks.mjs +0 -1
  75. package/__app__/chunks/hstack.mjs +0 -1
  76. package/__app__/chunks/libs/@dagrejs/dagre.mjs +0 -1
  77. package/__app__/chunks/libs/@floating-ui/core.mjs +0 -1
  78. package/__app__/chunks/libs/@floating-ui/dom.mjs +0 -1
  79. package/__app__/chunks/libs/@floating-ui/react.mjs +0 -1
  80. package/__app__/chunks/libs/@mantine/core.mjs +0 -41
  81. package/__app__/chunks/libs/@mantine/hooks.mjs +0 -1
  82. package/__app__/chunks/libs/@nanostores/react.mjs +0 -1
  83. package/__app__/chunks/libs/@react-hookz/web.mjs +0 -1
  84. package/__app__/chunks/libs/@tabler/icons-react.mjs +0 -358
  85. package/__app__/chunks/libs/@tanstack/ai-client.mjs +0 -2
  86. package/__app__/chunks/libs/@tanstack/ai-react-ui.mjs +0 -1
  87. package/__app__/chunks/libs/@tanstack/ai-react.mjs +0 -1
  88. package/__app__/chunks/libs/@tanstack/ai.mjs +0 -2
  89. package/__app__/chunks/libs/@tanstack/history.mjs +0 -1
  90. package/__app__/chunks/libs/@tanstack/react-router.mjs +0 -3
  91. package/__app__/chunks/libs/@tanstack/router-core.mjs +0 -1
  92. package/__app__/chunks/libs/@xstate/react.mjs +0 -1
  93. package/__app__/chunks/libs/@xstate/store.mjs +0 -1
  94. package/__app__/chunks/libs/@xyflow/react.mjs +0 -7
  95. package/__app__/chunks/libs/@zag-js/anatomy.mjs +0 -1
  96. package/__app__/chunks/libs/@zag-js/collection.mjs +0 -1
  97. package/__app__/chunks/libs/@zag-js/core.mjs +0 -1
  98. package/__app__/chunks/libs/@zag-js/react.mjs +0 -1
  99. package/__app__/chunks/libs/@zag-js/tree-view.mjs +0 -1
  100. package/__app__/chunks/libs/bezier-js.mjs +0 -1
  101. package/__app__/chunks/libs/copy-anything.mjs +0 -1
  102. package/__app__/chunks/libs/d3-path.mjs +0 -1
  103. package/__app__/chunks/libs/d3-shape.mjs +0 -1
  104. package/__app__/chunks/libs/fast-equals.mjs +0 -1
  105. package/__app__/chunks/libs/framer-motion.mjs +0 -9
  106. package/__app__/chunks/libs/html-to-image.mjs +0 -2
  107. package/__app__/chunks/libs/motion-dom.mjs +0 -1
  108. package/__app__/chunks/libs/nanostores.mjs +0 -1
  109. package/__app__/chunks/libs/react-error-boundary.mjs +0 -1
  110. package/__app__/chunks/libs/react-resizable-panels.mjs +0 -1
  111. package/__app__/chunks/libs/remeda.mjs +0 -1
  112. package/__app__/chunks/libs/superjson.mjs +0 -1
  113. package/__app__/chunks/libs/zod.mjs +0 -64
  114. package/__app__/chunks/rolldown-runtime.mjs +0 -1
  115. package/__app__/chunks/styles.css.mjs +0 -1
  116. package/__app__/chunks/txt.mjs +0 -1
  117. package/__app__/chunks/useLikeC4Project.mjs +0 -1
  118. package/__app__/src/pages/AdHocViewEditor.mjs +0 -1
  119. package/__app__/src/pages/EmbedPage.mjs +0 -1
  120. package/__app__/src/pages/ExportPage.mjs +0 -1
  121. package/__app__/src/pages/ProjectsOverview.mjs +0 -1
  122. package/__app__/src/pages/ViewAsD2.mjs +0 -1
  123. package/__app__/src/pages/ViewAsDot.mjs +0 -1
  124. package/__app__/src/pages/ViewAsMmd.mjs +0 -1
  125. package/__app__/src/pages/ViewAsPuml.mjs +0 -1
  126. package/__app__/src/pages/ViewEditor.mjs +0 -1
  127. package/__app__/src/pages/ViewReact.mjs +0 -1
  128. package/dist/chunks/libs/@chevrotain/utils.mjs +0 -1
  129. package/dist/chunks/libs/@hono/mcp.mjs +0 -70
  130. package/dist/chunks/libs/@hono/node-server.mjs +0 -1
  131. package/dist/chunks/libs/@logtape/logtape.d.mts +0 -1023
  132. package/dist/chunks/libs/@modelcontextprotocol/sdk.mjs +0 -12
  133. package/dist/chunks/libs/ajv.mjs +0 -1
  134. package/dist/chunks/libs/ansi-align.mjs +0 -2
  135. package/dist/chunks/libs/ansi-regex.mjs +0 -1
  136. package/dist/chunks/libs/ansi-styles.mjs +0 -1
  137. package/dist/chunks/libs/atomically.mjs +0 -1
  138. package/dist/chunks/libs/boxen.mjs +0 -22
  139. package/dist/chunks/libs/conf.mjs +0 -1
  140. package/dist/chunks/libs/defu.mjs +0 -1
  141. package/dist/chunks/libs/destr.mjs +0 -1
  142. package/dist/chunks/libs/find-up-simple.mjs +0 -1
  143. package/dist/chunks/libs/get-port.mjs +0 -1
  144. package/dist/chunks/libs/hono.mjs +0 -1
  145. package/dist/chunks/libs/is-docker.mjs +0 -1
  146. package/dist/chunks/libs/is-error-instance.mjs +0 -1
  147. package/dist/chunks/libs/is-inside-container.mjs +0 -1
  148. package/dist/chunks/libs/is-plain-obj.mjs +0 -1
  149. package/dist/chunks/libs/isexe.mjs +0 -1
  150. package/dist/chunks/libs/ky.mjs +0 -3
  151. package/dist/chunks/libs/p-debounce.mjs +0 -1
  152. package/dist/chunks/libs/p-limit.mjs +0 -1
  153. package/dist/chunks/libs/p-timeout.mjs +0 -1
  154. package/dist/chunks/libs/package-up.mjs +0 -1
  155. package/dist/chunks/libs/parse-ms.mjs +0 -1
  156. package/dist/chunks/libs/safe-stringify.mjs +0 -1
  157. package/dist/chunks/libs/strip-indent.mjs +0 -1
  158. package/dist/chunks/libs/tinyrainbow.mjs +0 -1
  159. package/dist/chunks/libs/ts-graphviz.mjs +0 -1
  160. package/dist/chunks/libs/unctx.mjs +0 -1
  161. package/dist/chunks/libs/vscode-languageserver.mjs +0 -1
  162. package/dist/chunks/libs/word-wrap.mjs +0 -12
  163. package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.mjs +0 -1
  164. package/dist/vite-plugin/internal/chunks/libs/birpc.mjs +0 -1
  165. package/dist/vite-plugin/internal/chunks/libs/fast-equals.mjs +0 -1
  166. package/dist/vite-plugin/internal/chunks/libs/nanostores.mjs +0 -1
  167. package/dist/vite-plugin/internal/chunks/libs/remeda.mjs +0 -1
  168. package/dist/vite-plugin/internal/chunks/rolldown-runtime.mjs +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "likec4",
3
3
  "description": "Toolchain for your architecture diagrams",
4
- "version": "1.57.0",
4
+ "version": "1.58.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://likec4.dev",
7
7
  "author": "Denis Davydkov <denis@davydkov.com>",
@@ -89,23 +89,22 @@
89
89
  "access": "public"
90
90
  },
91
91
  "dependencies": {
92
- "@hpcc-js/wasm-graphviz": "1.21.2",
92
+ "@hpcc-js/wasm-graphviz": "1.21.6",
93
93
  "@vitejs/plugin-react": "^6.0.2",
94
94
  "bundle-require": "^5.1.0",
95
- "esbuild": "0.27.4",
95
+ "esbuild": "0.28.0",
96
96
  "fdir": "6.4.0",
97
- "playwright": "^1.58.2",
97
+ "playwright": "1.60.0",
98
98
  "chokidar": "^5.0.0",
99
- "immer": "^11.1.4",
100
- "std-env": "^3.10.0",
99
+ "immer": "^11.1.8",
100
+ "std-env": "^4.1.0",
101
101
  "type-fest": "^4.41.0",
102
- "vite-plugin-singlefile": "^2.3.2",
102
+ "vite-plugin-singlefile": "^2.3.3",
103
103
  "vite": "^8.0.14",
104
104
  "yargs": "17.7.2",
105
- "nano-spawn": "^2.0.0",
105
+ "nano-spawn": "^2.1.0",
106
106
  "use-sync-external-store": "^1.6.0",
107
- "react-compiler-runtime": "^1.0.0",
108
- "@likec4/core": "1.57.0",
107
+ "@likec4/core": "1.58.0",
109
108
  "@likec4/icons": "1.46.4"
110
109
  },
111
110
  "peerDependencies": {
@@ -115,8 +114,8 @@
115
114
  "@tanstack/ai-openai": "^0.8.2",
116
115
  "@tanstack/ai-ollama": "^0.6.10",
117
116
  "@tanstack/ai-openrouter": "^0.8.2",
118
- "react": "^18.x || ^19.x",
119
- "react-dom": "^18.x || ^19.x"
117
+ "react": "^19.x",
118
+ "react-dom": "^19.x"
120
119
  },
121
120
  "peerDependenciesMeta": {
122
121
  "@tanstack/ai": {
@@ -146,18 +145,18 @@
146
145
  "@tanstack/ai": "^0.14.0",
147
146
  "@types/node": "~22.19.19",
148
147
  "@types/picomatch": "^4.0.3",
149
- "@types/react": "19.2.15",
148
+ "@types/react": "19.2.16",
150
149
  "@types/react-dom": "19.2.3",
151
150
  "@types/semver": "^7.7.1",
152
151
  "@types/yargs": "^17.0.33",
153
- "autoprefixer": "^10.4.27",
152
+ "autoprefixer": "^10.5.0",
154
153
  "picomatch": "^4.0.4",
155
154
  "birpc": "^4.0.0",
156
155
  "boxen": "^8.0.1",
157
156
  "clsx": "^2.1.1",
158
157
  "conf": "^15.1.0",
159
158
  "defu": "^6.1.7",
160
- "esbuild-node-externals": "1.20.1",
159
+ "esbuild-node-externals": "1.22.0",
161
160
  "esm-env": "^1.2.2",
162
161
  "fast-equals": "^6.0.0",
163
162
  "get-port": "^7.1.0",
@@ -167,52 +166,52 @@
167
166
  "mkdirp": "^3.0.1",
168
167
  "npm-run-all2": "^8.0.4",
169
168
  "p-limit": "7.3.0",
170
- "nanostores": "1.2.0",
169
+ "nanostores": "1.3.0",
171
170
  "@nanostores/react": "1.1.0",
172
- "oxlint": "1.59.0",
171
+ "oxlint": "1.68.0",
173
172
  "package-manager-detector": "1.6.0",
174
173
  "package-up": "^5.0.0",
175
174
  "postcss": "8.5.15",
176
175
  "pretty-ms": "^9.3.0",
177
- "react": "19.2.6",
178
- "react-dom": "19.2.6",
179
- "react-error-boundary": "^6.1.1",
180
- "react-resizable-panels": "^4.11.1",
181
- "remeda": "^2.33.7",
182
- "semver": "^7.7.4",
176
+ "react": "19.2.7",
177
+ "react-dom": "19.2.7",
178
+ "react-error-boundary": "^6.1.2",
179
+ "react-resizable-panels": "^4.11.2",
180
+ "remeda": "^2.37.0",
181
+ "semver": "^7.8.1",
183
182
  "strip-indent": "^4.1.1",
184
183
  "tinyrainbow": "^3.1.0",
185
- "tsx": "4.21.0",
186
- "turbo": "2.9.14",
187
- "typescript": "5.9.3",
188
- "ufo": "1.6.3",
189
- "tsdown": "^0.22.0",
190
- "vite-plugin-dts": "^5.0.1",
191
- "vitest": "4.1.3",
184
+ "tsx": "4.22.4",
185
+ "turbo": "2.9.16",
186
+ "typescript": "6.0.3",
187
+ "ufo": "1.6.4",
188
+ "tsdown": "^0.22.1",
189
+ "vite-plugin-dts": "^5.0.2",
190
+ "vitest": "4.1.8",
192
191
  "vscode-jsonrpc": "8.2.0",
193
192
  "vscode-languageserver": "9.0.1",
194
193
  "vscode-languageserver-types": "3.17.5",
195
194
  "vscode-uri": "3.1.0",
196
195
  "which": "^5.0.0",
197
196
  "wireit": "0.14.12",
198
- "zod": "^4.3.6",
197
+ "zod": "^4.4.3",
199
198
  "zx": "8.8.5",
200
- "@likec4/config": "1.57.0",
201
- "@likec4/leanix-bridge": "1.57.0",
202
- "@likec4/log": "1.57.0",
203
- "@likec4/language-server": "1.57.0",
204
- "@likec4/mcp": "1.57.0",
205
- "@likec4/language-services": "1.57.0",
206
- "@likec4/devops": "1.57.0",
207
- "@likec4/diagram": "1.57.0",
208
- "@likec4/layouts": "1.57.0",
209
- "@likec4/vite-plugin": "1.57.0",
210
- "@likec4/react": "1.57.0",
211
- "@likec4/spa": "1.57.0",
212
- "@likec4/style-preset": "1.57.0",
213
- "@likec4/generators": "1.57.0",
214
- "@likec4/styles": "1.57.0",
215
- "@likec4/tsconfig": "1.57.0"
199
+ "@likec4/config": "1.58.0",
200
+ "@likec4/leanix-bridge": "1.58.0",
201
+ "@likec4/log": "1.58.0",
202
+ "@likec4/language-services": "1.58.0",
203
+ "@likec4/language-server": "1.58.0",
204
+ "@likec4/mcp": "1.58.0",
205
+ "@likec4/devops": "1.58.0",
206
+ "@likec4/diagram": "1.58.0",
207
+ "@likec4/layouts": "1.58.0",
208
+ "@likec4/vite-plugin": "1.58.0",
209
+ "@likec4/react": "1.58.0",
210
+ "@likec4/style-preset": "1.58.0",
211
+ "@likec4/generators": "1.58.0",
212
+ "@likec4/spa": "1.58.0",
213
+ "@likec4/styles": "1.58.0",
214
+ "@likec4/tsconfig": "1.58.0"
216
215
  },
217
216
  "scripts": {
218
217
  "typecheck": "tsc --build --verbose",
package/react/index.d.mts CHANGED
@@ -9,6 +9,7 @@ import { Color } from '@likec4/core/types';
9
9
  import { ComputedNodeStyle } from '@likec4/core/types';
10
10
  import { ComputedNodeStyle as ComputedNodeStyle_2 } from '@likec4/core';
11
11
  import { Context as Context_4 } from 'react';
12
+ import { ControlButton } from '@xyflow/react';
12
13
  import { CSSProperties } from 'react';
13
14
  import { DependencyList } from 'react';
14
15
  import { DeploymentFqn } from '@likec4/core/types';
@@ -41,8 +42,9 @@ import { FunctionComponent } from 'react';
41
42
  import { HTMLAttributes } from 'react';
42
43
  import { HTMLMotionProps } from 'motion/react';
43
44
  import { IconUrl } from '@likec4/core/types';
44
- import { JSX } from 'react/jsx-runtime';
45
- import { JsxStyleProps } from '@likec4/styles/types';
45
+ import { JSX } from 'react';
46
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
47
+ import { JsxStyleProps } from '../../styled-system/types';
46
48
  import { LayoutedProjectsView } from '@likec4/core/compute-view';
47
49
  import { LayoutedView } from '@likec4/core/types';
48
50
  import { LayoutType } from '@likec4/core/types';
@@ -50,13 +52,16 @@ import { LikeC4Model } from '@likec4/core/model';
50
52
  import { LikeC4Project } from '@likec4/core/types';
51
53
  import { LikeC4Styles } from '@likec4/core/styles';
52
54
  import { LikeC4ViewModel } from '@likec4/core/model';
55
+ import { MantineProviderProps } from '@mantine/core';
53
56
  import { MarkdownOrString } from '@likec4/core/types';
54
57
  import { MarkdownOrString as MarkdownOrString_2 } from '@likec4/core';
55
58
  import { MemoExoticComponent } from 'react';
59
+ import { MiniMapNodeProps } from '@xyflow/react';
60
+ import { MiniMapProps } from '@xyflow/react';
56
61
  import { MotionNodeLayoutOptions } from 'motion/react';
57
62
  import { MotionStyle } from 'motion/react';
58
63
  import { MouseEvent as MouseEvent_2 } from 'react';
59
- import { NavigationPanelRecipe } from '@likec4/styles/recipes';
64
+ import { NavigationPanelRecipe } from '../../styled-system/recipes';
60
65
  import { Node as Node_2 } from '@xyflow/react';
61
66
  import { NodeChange } from '@xyflow/system';
62
67
  import { NodeChange as NodeChange_2 } from '@xyflow/react';
@@ -65,12 +70,15 @@ import { NodeId as NodeId_3 } from '@likec4/core';
65
70
  import { NodeModel } from '@likec4/core/model';
66
71
  import { NodeNotation } from '@likec4/core/types';
67
72
  import { NodeProps } from '@xyflow/react';
73
+ import { NodeToolbar } from '@xyflow/react';
68
74
  import { NodeToolbarProps } from '@xyflow/react';
69
75
  import { NonEmptyArray } from '@likec4/core/types';
70
76
  import { NonEmptyObject } from 'type-fest';
71
77
  import { NonEmptyReadonlyArray } from '@likec4/core/types';
72
78
  import { OptionalKeysOf } from 'type-fest';
79
+ import { PanelPosition } from '@xyflow/system';
73
80
  import { PartialDeep } from 'type-fest';
81
+ import { Position } from '@xyflow/react';
74
82
  import { ProjectId } from '@likec4/core/types';
75
83
  import { ProjectId as ProjectId_2 } from '@likec4/core';
76
84
  import { PropsWithChildren } from 'react';
@@ -89,8 +97,8 @@ import { SetRequired } from 'type-fest';
89
97
  import { Simplify } from 'type-fest';
90
98
  import { SimplifyDeep } from 'type-fest';
91
99
  import { StepEdgeId } from '@likec4/core/types';
92
- import { StyleContextConsumer } from '@likec4/styles/jsx';
93
- import { StyleContextProvider } from '@likec4/styles/jsx';
100
+ import { StyleContextConsumer } from '../../styled-system/jsx';
101
+ import { StyleContextProvider } from '../../styled-system/jsx';
94
102
  import type * as t from '@likec4/core/types';
95
103
  import { UnknownLayouted as UnknownLayouted_2 } from '@likec4/core/types';
96
104
  import { UnstyledButtonProps } from '@mantine/core';
@@ -98,6 +106,7 @@ import { ViewChange } from '@likec4/core/types';
98
106
  import { ViewId } from '@likec4/core/types';
99
107
  import { ViewId as ViewId_3 } from '@likec4/core';
100
108
  import { Viewport } from '@xyflow/system';
109
+ import { ViewportPortal } from '@xyflow/react';
101
110
  import { WhereOperator } from '@likec4/core/types';
102
111
  import { Without } from 'type-fest/source/merge-exclusive';
103
112
  import { XYPosition } from '@xyflow/system';
@@ -525,7 +534,7 @@ declare interface ActorSystem<T extends ActorSystemInfo> {
525
534
  get: <K extends keyof T['actors']>(key: K) => T['actors'][K] | undefined;
526
535
  getAll: () => Partial<T['actors']>;
527
536
  inspect: (observer: Observer<InspectionEvent> | ((inspectionEvent: InspectionEvent) => void)) => Subscription;
528
- scheduler: Scheduler;
537
+ scheduler: Scheduler_2;
529
538
  getSnapshot: () => {
530
539
  _scheduledEvents: Record<string, ScheduledEvent>;
531
540
  };
@@ -856,6 +865,8 @@ export declare function DefaultHandles({ direction }: {
856
865
  direction?: AutoLayoutDirection | undefined;
857
866
  }): JSX.Element;
858
867
 
868
+ export declare function DefaultMantineProvider({ children, theme, ...props }: MantineProviderProps): JSX.Element;
869
+
859
870
  declare type Delay<TDelay extends string> = TDelay | number;
860
871
 
861
872
  declare type DelayConfig<TContext extends MachineContext, TExpressionEvent extends EventObject, TParams extends ParameterizedObject['params'] | undefined, TEvent extends EventObject> = number | DelayExpr<TContext, TExpressionEvent, TParams, TEvent>;
@@ -1440,6 +1451,7 @@ declare type EdgeId_3 = t.aux.EdgeId;
1440
1451
  declare interface EditorActorContext {
1441
1452
  viewId: t.ViewId;
1442
1453
  history: LinkedSnapshot | null;
1454
+ redo: LinkedSnapshot | null;
1443
1455
  editing: null | {
1444
1456
  /**
1445
1457
  * The subject of the edit
@@ -1467,6 +1479,10 @@ declare type EditorActorEvent = {
1467
1479
  type: 'change.latest-to-manual';
1468
1480
  } | {
1469
1481
  type: 'change.sync-snapshot';
1482
+ } | {
1483
+ type: 'delete.nodes-edges';
1484
+ nodeIds: t.NodeId[];
1485
+ edgeIds: t.EdgeId[];
1470
1486
  } | {
1471
1487
  type: 'view.synched';
1472
1488
  } | {
@@ -1941,13 +1957,13 @@ declare type Fqn_2<A> = t.aux.Fqn<A>;
1941
1957
 
1942
1958
  declare type Fqn_4<A> = t.aux.Fqn<A>;
1943
1959
 
1944
- export declare const FramerMotionConfig: ({ reducedMotion, children, }: PropsWithChildren<{
1960
+ export declare function FramerMotionConfig({ reducedMotion, children, }: PropsWithChildren<{
1945
1961
  /**
1946
1962
  * If true, will respect the device prefersReducedMotion setting by switching
1947
1963
  * transform animations off.
1948
1964
  */
1949
- reducedMotion?: "always" | "never" | "user" | undefined;
1950
- }>) => JSX.Element;
1965
+ reducedMotion?: 'always' | 'never' | 'user' | undefined;
1966
+ }>): JSX.Element;
1951
1967
 
1952
1968
  declare type GetConcreteByKey<T, TKey extends keyof T, TValue extends T[TKey]> = T & Record<TKey, TValue>;
1953
1969
 
@@ -1980,7 +1996,7 @@ declare type HotKeyEvent = {
1980
1996
  };
1981
1997
 
1982
1998
  declare type HotKeyEvent_2 = {
1983
- type: 'undo';
1999
+ type: 'undo' | 'redo';
1984
2000
  };
1985
2001
 
1986
2002
  declare type IconProps = {
@@ -2023,15 +2039,15 @@ export declare function IconRendererProvider({ value, children, }: PropsWithChil
2023
2039
  export declare function IfEnabled({ feature, children, and, }: PropsWithChildren<{
2024
2040
  feature: FeatureName;
2025
2041
  and?: boolean;
2026
- }>): JSX.Element | null;
2042
+ }>): JSX_2.Element | null;
2027
2043
 
2028
2044
  export declare function IfNotEnabled({ feature, children }: PropsWithChildren<{
2029
2045
  feature: FeatureName;
2030
- }>): JSX.Element | null;
2046
+ }>): JSX_2.Element | null;
2031
2047
 
2032
- export declare function IfNotReadOnly({ children }: PropsWithChildren): JSX.Element | null;
2048
+ export declare function IfNotReadOnly({ children }: PropsWithChildren): JSX_2.Element | null;
2033
2049
 
2034
- export declare function IfReadOnly({ children }: PropsWithChildren): JSX.Element | null;
2050
+ export declare function IfReadOnly({ children }: PropsWithChildren): JSX_2.Element | null;
2035
2051
 
2036
2052
  declare type InitialContext<TContext extends MachineContext, TActor extends ProvidedActor, TInput, TEvent extends EventObject> = TContext | ContextFactory<TContext, TActor, TInput, TEvent>;
2037
2053
 
@@ -2121,7 +2137,13 @@ declare interface InspectedSnapshotEvent extends BaseInspectionEventProperties {
2121
2137
  snapshot: Snapshot<unknown>;
2122
2138
  }
2123
2139
 
2124
- declare type InspectionEvent = InspectedSnapshotEvent | InspectedEventEvent | InspectedActorEvent | InspectedMicrostepEvent | InspectedActionEvent;
2140
+ declare interface InspectedTransitionEvent extends BaseInspectionEventProperties {
2141
+ type: '@xstate.transition';
2142
+ event: AnyEventObject;
2143
+ snapshot: Snapshot<unknown>;
2144
+ }
2145
+
2146
+ declare type InspectionEvent = InspectedSnapshotEvent | InspectedEventEvent | InspectedActorEvent | InspectedTransitionEvent | InspectedMicrostepEvent | InspectedActionEvent;
2125
2147
 
2126
2148
  declare type InternalMachineImplementations<TTypes extends StateMachineTypes> = {
2127
2149
  actions?: MachineImplementationsActions<TTypes>;
@@ -2340,7 +2362,7 @@ export declare type LikeC4ColorScheme = 'light' | 'dark';
2340
2362
  *
2341
2363
  * Use {@link ReactLikeC4} or {@link LikeC4View} for ready-to-use component
2342
2364
  */
2343
- export declare function LikeC4Diagram<A extends Any = Any>({ onCanvasClick, onCanvasContextMenu, onCanvasDblClick, onEdgeClick, onEdgeContextMenu, onNavigateTo, onNodeClick, onNodeContextMenu, onOpenSource, onLogoClick, onLayoutTypeChange, onInitialized, view, className, controls, fitView, fitViewPadding: _fitViewPadding, pannable, zoomable, background, enableElementTags, enableFocusMode, enableElementDetails, enableRelationshipDetails, enableRelationshipBrowser, enableCompareWithLatest, nodesSelectable, enableNotations, showNavigationButtons, enableDynamicViewWalkthrough, dynamicViewVariant, enableSearch, enableNotes, initialWidth, initialHeight, reduceGraphics, renderIcon, where, reactFlowProps, renderNodes, children, }: LikeC4DiagramProps<A>): JSX.Element;
2365
+ export declare function LikeC4Diagram<A extends Any = Any>({ onCanvasClick, onCanvasContextMenu, onCanvasDblClick, onEdgeClick, onEdgeContextMenu, onNavigateTo, onNodeClick, onNodeContextMenu, onOpenSource, onLogoClick, onLayoutTypeChange, onInitialized, view, className, controls, fitView, fitViewPadding: _fitViewPadding, pannable, zoomable, background, enableElementTags, enableFocusMode, enableElementDetails, enableRelationshipDetails, enableRelationshipBrowser, enableCompareWithLatest, nodesSelectable, enableNotations, showNavigationButtons, enableDynamicViewWalkthrough, dynamicViewVariant, enableSearch, enableNotes, initialWidth, initialHeight, reduceGraphics, renderIcon, where, reactFlowProps, renderNodes, children, }: LikeC4DiagramProps<A>): JSX_2.Element;
2344
2366
 
2345
2367
  export declare interface LikeC4DiagramEventHandlers<A extends Any_2 = Unknown> {
2346
2368
  onNavigateTo?: OnNavigateTo<A> | null | undefined;
@@ -2581,7 +2603,7 @@ export declare type LikeC4EditorProviderProps = PropsWithChildren<{
2581
2603
  /**
2582
2604
  * Ensures LikeC4Model context
2583
2605
  */
2584
- export declare function LikeC4ModelProvider({ children, likec4model, }: PropsWithChildren<LikeC4ModelProviderProps>): JSX.Element;
2606
+ export declare function LikeC4ModelProvider({ children, likec4model, }: PropsWithChildren<LikeC4ModelProviderProps>): JSX_2.Element;
2585
2607
 
2586
2608
  export declare interface LikeC4ModelProviderProps {
2587
2609
  likec4model: LikeC4Model<any>;
@@ -2592,7 +2614,7 @@ declare type LikeC4ProjectsContext = {
2592
2614
  onProjectChange: (id: ProjectId) => void;
2593
2615
  };
2594
2616
 
2595
- export declare function LikeC4ProjectsOverview({ view, className, onNavigateToProject, ...props }: LikeC4ProjectsOverviewProps): JSX.Element;
2617
+ export declare function LikeC4ProjectsOverview({ view, className, onNavigateToProject, ...props }: LikeC4ProjectsOverviewProps): JSX_2.Element;
2596
2618
 
2597
2619
  export declare type LikeC4ProjectsOverviewProps = Simplify<ProjectsOverviewProps & {
2598
2620
  className?: string;
@@ -2602,7 +2624,7 @@ export declare type LikeC4ProjectsOverviewProps = Simplify<ProjectsOverviewProps
2602
2624
  /**
2603
2625
  * Ensures LikeC4Projects context
2604
2626
  */
2605
- export declare function LikeC4ProjectsProvider({ children, projects, onProjectChange: _onProjectChange, }: PropsWithChildren<LikeC4ProjectsProviderProps>): JSX.Element;
2627
+ export declare function LikeC4ProjectsProvider({ children, projects, onProjectChange: _onProjectChange, }: PropsWithChildren<LikeC4ProjectsProviderProps>): JSX_2.Element;
2606
2628
 
2607
2629
  export declare interface LikeC4ProjectsProviderProps {
2608
2630
  /**
@@ -2624,7 +2646,7 @@ export declare interface LikeC4ProjectsProviderProps {
2624
2646
  *
2625
2647
  * Component is wrapped in ShadowRoot to isolate styles.
2626
2648
  */
2627
- export declare function LikeC4View<A extends t.aux.Any = t.aux.UnknownLayouted>({ viewId, className, pannable, zoomable, keepAspectRatio, colorScheme, injectFontCss, controls, layoutType: initialLayoutType, background, browser, showNavigationButtons, enableNotations, enableFocusMode, enableDynamicViewWalkthrough, enableElementDetails, enableRelationshipDetails, enableRelationshipBrowser, enableNotes, reduceGraphics, mantineTheme, styleNonce, style, reactFlowProps, renderNodes, children, ...props }: LikeC4ViewProps<A>): JSX.Element;
2649
+ export declare function LikeC4View<A extends t.aux.Any = t.aux.UnknownLayouted>({ viewId, className, pannable, zoomable, keepAspectRatio, colorScheme, injectFontCss, controls, layoutType: initialLayoutType, background, browser, showNavigationButtons, enableNotations, enableFocusMode, enableDynamicViewWalkthrough, enableElementDetails, enableRelationshipDetails, enableRelationshipBrowser, enableNotes, reduceGraphics, mantineTheme, styleNonce, style, reactFlowProps, renderNodes, children, ...props }: LikeC4ViewProps<A>): JSX_2.Element;
2628
2650
 
2629
2651
  export declare interface LikeC4ViewProps<A extends t.aux.Any = t.aux.UnknownLayouted> {
2630
2652
  /**
@@ -2815,6 +2837,8 @@ declare type MachineConfig<TContext extends MachineContext, TEvent extends Event
2815
2837
  /** The machine's own version. */
2816
2838
  version?: string;
2817
2839
  output?: Mapper<TContext, DoneStateEvent, TOutput, TEvent> | TOutput;
2840
+ /** Runtime options for machine execution. */
2841
+ options?: MachineOptions;
2818
2842
  }) & (MachineContext extends TContext ? {
2819
2843
  context?: InitialContext<LowInfer<TContext>, TActor, TInput, TEvent>;
2820
2844
  } : {
@@ -2850,6 +2874,32 @@ declare interface MachineImplementationsSimplified<TContext extends MachineConte
2850
2874
  delays: DelayFunctionMap<TContext, TEvent, TAction>;
2851
2875
  }
2852
2876
 
2877
+ /**
2878
+ * Runtime options for state machine execution.
2879
+ *
2880
+ * @example
2881
+ *
2882
+ * ```ts
2883
+ * const machine = createMachine({
2884
+ * // ... machine config
2885
+ * options: {
2886
+ * maxIterations: 5000
2887
+ * // other runtime options can be added here
2888
+ * }
2889
+ * });
2890
+ * ```
2891
+ */
2892
+ declare interface MachineOptions {
2893
+ /**
2894
+ * Maximum number of microsteps allowed before throwing an infinite loop
2895
+ * error. Defaults to `Infinity` (no limit). Set to a finite number to enable
2896
+ * infinite loop detection.
2897
+ *
2898
+ * @default Infinity
2899
+ */
2900
+ maxIterations?: number;
2901
+ }
2902
+
2853
2903
  declare type MachineSnapshot<TContext extends MachineContext, TEvent extends EventObject, TChildren extends Record<string, AnyActorRef | undefined>, TStateValue extends StateValue, TTag extends string, TOutput, TMeta extends MetaObject, TStateSchema extends StateSchema> = ActiveMachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput, TMeta, TStateSchema> | DoneMachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput, TMeta, TStateSchema> | ErrorMachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput, TMeta, TStateSchema> | StoppedMachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput, TMeta, TStateSchema>;
2854
2904
 
2855
2905
  declare interface MachineSnapshotBase<TContext extends MachineContext, TEvent extends EventObject, TChildren extends Record<string, AnyActorRef | undefined>, TStateValue extends StateValue, TTag extends string, TOutput, TMeta, TStateSchema extends StateSchema = StateSchema> {
@@ -3293,7 +3343,7 @@ declare interface ProvidedActor {
3293
3343
  *
3294
3344
  * Component is wrapped in ShadowRoot to isolate styles.
3295
3345
  */
3296
- export declare function ReactLikeC4<A extends t.aux.Any = t.aux.UnknownLayouted>({ viewId, layoutType: initialLayoutType, className, colorScheme, injectFontCss, enableNotations, keepAspectRatio, style, mantineTheme, styleNonce, ...props }: ReactLikeC4Props<A>): JSX.Element;
3346
+ export declare function ReactLikeC4<A extends t.aux.Any = t.aux.UnknownLayouted>({ viewId, layoutType: initialLayoutType, className, colorScheme, injectFontCss, enableNotations, keepAspectRatio, style, mantineTheme, styleNonce, ...props }: ReactLikeC4Props<A>): JSX_2.Element;
3297
3347
 
3298
3348
  export declare type ReactLikeC4Props<A extends t.aux.Any = t.aux.UnknownLayouted> = {
3299
3349
  viewId: t.aux.ViewId<A>;
@@ -3544,7 +3594,7 @@ declare interface ScheduledEvent {
3544
3594
  target: AnyActorRef;
3545
3595
  }
3546
3596
 
3547
- declare interface Scheduler {
3597
+ declare interface Scheduler_2 {
3548
3598
  schedule(source: AnyActorRef, target: AnyActorRef, event: EventObject, delay: number, id: string | undefined): void;
3549
3599
  cancel(source: AnyActorRef, id: string): void;
3550
3600
  cancelAll(actorRef: AnyActorRef): void;
@@ -3608,7 +3658,7 @@ export declare interface SearchContextValue {
3608
3658
 
3609
3659
  export declare function SearchControl({ className, ...others }: SearchControlProps): JSX.Element;
3610
3660
 
3611
- declare interface SearchControlProps extends UnstyledButtonProps, ElementProps<'button'> {
3661
+ declare interface SearchControlProps extends Omit<UnstyledButtonProps, 'className'>, ElementProps<'button'> {
3612
3662
  }
3613
3663
 
3614
3664
  export declare const searchDialogCss: string;
@@ -3737,6 +3787,8 @@ declare class StateMachine<TContext extends MachineContext, TEvent extends Event
3737
3787
  version?: string;
3738
3788
  schemas: unknown;
3739
3789
  implementations: MachineImplementationsSimplified<TContext, TEvent>;
3790
+ /** Runtime options for machine execution. */
3791
+ options: MachineOptions;
3740
3792
  root: StateNode<TContext, TEvent>;
3741
3793
  id: string;
3742
3794
  states: StateNode<TContext, TEvent>['states'];
@@ -4294,12 +4346,14 @@ export declare namespace Types {
4294
4346
  export type RelationshipEdgeData = Simplify<BaseEdgeData & NonOptional<Pick<DiagramEdge, 'id' | 'label' | 'labelBBox' | 'technology' | 'points' | 'dir' | 'color' | 'line' | 'head' | 'tail' | 'navigateTo' | 'astPath' | 'drifts'>> & {
4295
4347
  notes: MarkdownOrString | null;
4296
4348
  labelXY: XYPosition | null;
4349
+ isLabelCustomized?: boolean | undefined;
4297
4350
  controlPoints: XYPosition[] | undefined | null;
4298
4351
  }>;
4299
4352
  export type SequenceStepEdgeData = Simplify<BaseEdgeData & NonOptional<Pick<DiagramEdge, 'id' | 'label' | 'technology' | 'points' | 'dir' | 'color' | 'line' | 'head' | 'tail' | 'navigateTo' | 'astPath' | 'drifts'>> & {
4300
4353
  notes: MarkdownOrString | null;
4301
4354
  labelXY: XYPosition | null;
4302
4355
  labelBBox: BBox;
4356
+ isLabelCustomized?: boolean | undefined;
4303
4357
  controlPoints: XYPosition[] | undefined | null;
4304
4358
  }>;
4305
4359
  export type RelationshipEdge = BaseEdge<RelationshipEdgeData, 'relationship'>;
@@ -4575,6 +4629,21 @@ declare type WithHovered = {
4575
4629
  };
4576
4630
  };
4577
4631
 
4632
+ export declare const xyflow: {
4633
+ readonly ControlButton: typeof ControlButton;
4634
+ readonly MiniMap: {
4635
+ ({ style, className, nodeStrokeColor, nodeColor, nodeClassName, nodeBorderRadius, nodeStrokeWidth, nodeComponent, bgColor, maskColor, maskStrokeColor, maskStrokeWidth, position, onClick, onNodeClick, pannable, zoomable, ariaLabel, inversePan, zoomStep, offsetScale, }: MiniMapProps<Types.AnyNode>): JSX.Element;
4636
+ displayName: string;
4637
+ };
4638
+ readonly MiniMapNode: MemoExoticComponent<({ id, x, y, width, height, style, color, strokeColor, strokeWidth, className, borderRadius, shapeRendering, selected, onClick, }: MiniMapNodeProps) => JSX.Element>;
4639
+ readonly NodeToolbar: typeof NodeToolbar;
4640
+ readonly Panel: ForwardRefExoticComponent< HTMLAttributes<HTMLDivElement> & {
4641
+ position?: PanelPosition;
4642
+ } & RefAttributes<HTMLDivElement>>;
4643
+ readonly Position: typeof Position;
4644
+ readonly ViewportPortal: typeof ViewportPortal;
4645
+ };
4646
+
4578
4647
  declare type XYFLowInstance = ReactFlowInstance<RelationshipsBrowserTypes.AnyNode, RelationshipsBrowserTypes.Edge>;
4579
4648
 
4580
4649
  declare type XYFlowInstance = ReactFlowInstance<Types.AnyNode, Types.AnyEdge>;