likec4 1.59.1 → 1.59.3
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 +21 -26
- package/__app__/src/chunks/LikeC4Styles.mjs +257 -263
- package/__app__/src/chunks/ProjectsOverview.mjs +58 -58
- package/__app__/src/chunks/hooks.mjs +106 -80
- package/__app__/src/chunks/libs/@floating-ui.mjs +646 -332
- package/__app__/src/chunks/libs/@mantine.mjs +1911 -1734
- package/__app__/src/chunks/libs/@tanstack-ai.mjs +26 -26
- package/__app__/src/chunks/libs/@tanstack.mjs +42 -41
- package/__app__/src/chunks/libs/@xstate/react.mjs +59 -40
- package/__app__/src/chunks/libs/@xyflow/react.mjs +532 -445
- package/__app__/src/chunks/libs/bezier-js.mjs +10 -9
- package/__app__/src/chunks/libs/d3.mjs +16 -36
- package/__app__/src/chunks/libs/fast-equals.mjs +12 -11
- package/__app__/src/chunks/libs/framer.mjs +294 -273
- 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 +9 -15
- package/__app__/src/main.mjs +15994 -15936
- package/__app__/src/style.css +1 -1
- package/config/schema.json +35 -0
- package/dist/app/render-view-client.css +1 -0
- package/dist/app/render-view-client.js +745 -0
- package/dist/chunks/enableServer.mjs +1 -1
- package/dist/chunks/filenames.mjs +7 -6
- package/dist/chunks/index.d.mts +11 -0
- package/dist/chunks/index2.d.mts +47 -7
- package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
- package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +5 -5
- package/dist/chunks/libs/@logtape/logtape.mjs +1 -1
- 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.mjs +11 -11
- package/dist/chunks/libs/merge-error-cause.mjs +2 -2
- package/dist/chunks/libs/package-manager-detector.mjs +1 -1
- package/dist/chunks/libs/pako.mjs +1 -1
- 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/zod.mjs +4 -4
- package/dist/chunks/node.mjs +69 -57
- package/dist/chunks/rolldown-runtime.mjs +1 -1
- package/dist/chunks/sequence-view.mjs +1 -1
- package/dist/chunks/vite-plugin.mjs +161 -50
- package/dist/cli/index.mjs +272 -162
- package/dist/config/index.d.mts +7 -1
- package/dist/config/index.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/vite-plugin/internal/index.d.mts +64 -27
- package/dist/vite-plugin/internal/index.mjs +76 -39
- package/package.json +41 -41
- package/react/index.d.mts +76 -1
- package/react/index.mjs +7310 -6785
- package/vite-plugin-modules.d.ts +18 -0
- package/dist/chunks/dist.mjs +0 -10
- package/dist/chunks/logger.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.59.
|
|
4
|
+
"version": "1.59.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://likec4.dev",
|
|
7
7
|
"author": "Denis Davydkov <denis@davydkov.com>",
|
|
@@ -90,22 +90,22 @@
|
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
92
|
"@hpcc-js/wasm-graphviz": "1.22.2",
|
|
93
|
-
"@
|
|
93
|
+
"@likec4/core": "1.59.3",
|
|
94
|
+
"@likec4/icons": "1.46.4",
|
|
95
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
94
96
|
"bundle-require": "^5.1.0",
|
|
95
97
|
"esbuild": "0.28.1",
|
|
96
98
|
"fdir": "6.4.0",
|
|
97
99
|
"playwright": "1.60.0",
|
|
98
100
|
"chokidar": "^5.0.0",
|
|
99
|
-
"immer": "^11.1.
|
|
101
|
+
"immer": "^11.1.18",
|
|
100
102
|
"std-env": "^4.1.0",
|
|
101
103
|
"type-fest": "^4.41.0",
|
|
102
104
|
"vite-plugin-singlefile": "^2.3.3",
|
|
103
|
-
"vite": "^8.
|
|
105
|
+
"vite": "^8.2.2",
|
|
104
106
|
"yargs": "17.7.2",
|
|
105
107
|
"nano-spawn": "^2.1.0",
|
|
106
|
-
"use-sync-external-store": "^1.6.0"
|
|
107
|
-
"@likec4/icons": "1.46.4",
|
|
108
|
-
"@likec4/core": "1.59.1"
|
|
108
|
+
"use-sync-external-store": "^1.6.0"
|
|
109
109
|
},
|
|
110
110
|
"peerDependencies": {
|
|
111
111
|
"@tanstack/ai": "^0.14.0",
|
|
@@ -139,55 +139,71 @@
|
|
|
139
139
|
},
|
|
140
140
|
"devDependencies": {
|
|
141
141
|
"langium": "3.5.0",
|
|
142
|
+
"@likec4/config": "1.59.3",
|
|
143
|
+
"@likec4/leanix-bridge": "1.59.3",
|
|
144
|
+
"@likec4/log": "1.59.3",
|
|
145
|
+
"@likec4/language-server": "1.59.3",
|
|
146
|
+
"@likec4/language-services": "1.59.3",
|
|
147
|
+
"@likec4/mcp": "1.59.3",
|
|
142
148
|
"@dagrejs/dagre": "1.1.8",
|
|
143
149
|
"@fontsource-variable/ibm-plex-sans": "^5.2.8",
|
|
150
|
+
"@likec4/devops": "1.59.3",
|
|
151
|
+
"@likec4/diagram": "1.59.3",
|
|
152
|
+
"@likec4/layouts": "1.59.3",
|
|
153
|
+
"@likec4/vite-plugin": "1.59.3",
|
|
154
|
+
"@likec4/react": "1.59.3",
|
|
155
|
+
"@likec4/spa": "1.59.3",
|
|
156
|
+
"@likec4/generators": "1.59.3",
|
|
157
|
+
"@likec4/style-preset": "1.59.3",
|
|
158
|
+
"@likec4/styles": "1.59.3",
|
|
159
|
+
"@likec4/tsconfig": "1.59.3",
|
|
144
160
|
"@pandacss/dev": "^1.11.4",
|
|
145
161
|
"@tanstack/ai": "^0.14.0",
|
|
146
162
|
"@types/node": "~22.19.19",
|
|
147
163
|
"@types/picomatch": "^4.0.3",
|
|
148
|
-
"@types/react": "19.2.
|
|
149
|
-
"@types/react-dom": "19.2.
|
|
164
|
+
"@types/react": "19.2.18",
|
|
165
|
+
"@types/react-dom": "19.2.5",
|
|
150
166
|
"@types/semver": "^7.7.1",
|
|
151
167
|
"@types/yargs": "^17.0.33",
|
|
152
|
-
"autoprefixer": "^10.5.
|
|
168
|
+
"autoprefixer": "^10.5.4",
|
|
153
169
|
"picomatch": "^4.0.5",
|
|
154
|
-
"birpc": "^4.
|
|
170
|
+
"birpc": "^4.2.0",
|
|
155
171
|
"boxen": "^8.0.1",
|
|
156
172
|
"clsx": "^2.1.1",
|
|
157
173
|
"conf": "^15.1.0",
|
|
158
174
|
"defu": "^6.1.7",
|
|
159
175
|
"esbuild-node-externals": "1.23.1",
|
|
160
176
|
"esm-env": "^1.2.2",
|
|
161
|
-
"fast-equals": "^6.0.
|
|
177
|
+
"fast-equals": "^6.0.2",
|
|
162
178
|
"get-port": "^7.2.0",
|
|
163
179
|
"is-inside-container": "^1.0.0",
|
|
164
180
|
"json5": "^2.2.3",
|
|
165
181
|
"ky": "^1.14.3",
|
|
166
182
|
"mkdirp": "^3.0.1",
|
|
167
183
|
"npm-run-all2": "^8.0.4",
|
|
168
|
-
"p-limit": "7.3.
|
|
169
|
-
"nanostores": "1.
|
|
184
|
+
"p-limit": "7.3.2",
|
|
185
|
+
"nanostores": "1.5.2",
|
|
170
186
|
"@nanostores/react": "1.1.0",
|
|
171
187
|
"oxlint": "1.72.0",
|
|
172
188
|
"package-manager-detector": "1.6.0",
|
|
173
189
|
"package-up": "^5.0.0",
|
|
174
|
-
"postcss": "8.5.
|
|
190
|
+
"postcss": "8.5.23",
|
|
175
191
|
"pretty-ms": "^9.3.0",
|
|
176
|
-
"react": "19.2.
|
|
177
|
-
"react-dom": "19.2.
|
|
178
|
-
"react-error-boundary": "^6.1.
|
|
179
|
-
"react-resizable-panels": "^4.
|
|
180
|
-
"remeda": "^2.
|
|
192
|
+
"react": "19.2.8",
|
|
193
|
+
"react-dom": "19.2.8",
|
|
194
|
+
"react-error-boundary": "^6.1.4",
|
|
195
|
+
"react-resizable-panels": "^4.12.3",
|
|
196
|
+
"remeda": "^2.45.0",
|
|
181
197
|
"semver": "^7.8.1",
|
|
182
198
|
"strip-indent": "^4.1.1",
|
|
183
|
-
"tinyrainbow": "^3.1.
|
|
199
|
+
"tinyrainbow": "^3.1.1",
|
|
184
200
|
"tsx": "4.22.5",
|
|
185
|
-
"turbo": "2.10.
|
|
201
|
+
"turbo": "2.10.12",
|
|
186
202
|
"typescript": "6.0.3",
|
|
187
203
|
"ufo": "1.6.4",
|
|
188
204
|
"tsdown": "^0.22.9",
|
|
189
|
-
"vite-plugin-dts": "^5.0
|
|
190
|
-
"vitest": "4.1.
|
|
205
|
+
"vite-plugin-dts": "^5.1.0",
|
|
206
|
+
"vitest": "4.1.11",
|
|
191
207
|
"vscode-jsonrpc": "8.2.0",
|
|
192
208
|
"vscode-languageserver": "9.0.1",
|
|
193
209
|
"vscode-languageserver-types": "3.17.5",
|
|
@@ -195,23 +211,7 @@
|
|
|
195
211
|
"which": "^5.0.0",
|
|
196
212
|
"wireit": "0.14.12",
|
|
197
213
|
"zod": "^4.4.3",
|
|
198
|
-
"zx": "8.8.5"
|
|
199
|
-
"@likec4/config": "1.59.1",
|
|
200
|
-
"@likec4/leanix-bridge": "1.59.1",
|
|
201
|
-
"@likec4/language-server": "1.59.1",
|
|
202
|
-
"@likec4/language-services": "1.59.1",
|
|
203
|
-
"@likec4/log": "1.59.1",
|
|
204
|
-
"@likec4/mcp": "1.59.1",
|
|
205
|
-
"@likec4/devops": "1.59.1",
|
|
206
|
-
"@likec4/diagram": "1.59.1",
|
|
207
|
-
"@likec4/layouts": "1.59.1",
|
|
208
|
-
"@likec4/vite-plugin": "1.59.1",
|
|
209
|
-
"@likec4/spa": "1.59.1",
|
|
210
|
-
"@likec4/react": "1.59.1",
|
|
211
|
-
"@likec4/generators": "1.59.1",
|
|
212
|
-
"@likec4/style-preset": "1.59.1",
|
|
213
|
-
"@likec4/styles": "1.59.1",
|
|
214
|
-
"@likec4/tsconfig": "1.59.1"
|
|
214
|
+
"zx": "8.8.5"
|
|
215
215
|
},
|
|
216
216
|
"scripts": {
|
|
217
217
|
"typecheck": "tsc --build --verbose",
|
package/react/index.d.mts
CHANGED
|
@@ -1240,6 +1240,33 @@ export declare class DiagramApi<A extends Any_3 = Unknown_2> {
|
|
|
1240
1240
|
toggleSequenceFlow(flowId: t.StepPath): void;
|
|
1241
1241
|
}
|
|
1242
1242
|
|
|
1243
|
+
/**
|
|
1244
|
+
* Manual-layout actions exposed by {@link useDiagramCompareLayout}.
|
|
1245
|
+
*/
|
|
1246
|
+
export declare type DiagramCompareLayoutOps = {
|
|
1247
|
+
/**
|
|
1248
|
+
* Toggles the compare mode on or off.
|
|
1249
|
+
*/
|
|
1250
|
+
toggleCompare: (force?: 'on' | 'off') => void;
|
|
1251
|
+
/**
|
|
1252
|
+
* Switches the layout type between 'auto' and 'manual'.
|
|
1253
|
+
*/
|
|
1254
|
+
switchLayout: (layoutType: t.LayoutType) => void;
|
|
1255
|
+
/**
|
|
1256
|
+
* Merges the latest layout into the manual layout.
|
|
1257
|
+
*/
|
|
1258
|
+
applyLatestToManual: () => void;
|
|
1259
|
+
/**
|
|
1260
|
+
* Resets the manual layout to its default state.
|
|
1261
|
+
*/
|
|
1262
|
+
resetManualLayout: () => void;
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
* Current manual-layout comparison state exposed by {@link useDiagramCompareLayout}.
|
|
1267
|
+
*/
|
|
1268
|
+
export declare type DiagramCompareLayoutState = ReturnType<typeof selectCompareLayoutState>;
|
|
1269
|
+
|
|
1243
1270
|
export declare function DiagramContext({ input }: {
|
|
1244
1271
|
input: Input_4;
|
|
1245
1272
|
}): DiagramContext;
|
|
@@ -1835,6 +1862,7 @@ declare namespace EditorCalls {
|
|
|
1835
1862
|
type Output = {
|
|
1836
1863
|
requested: t.ViewChange[];
|
|
1837
1864
|
applied: t.ViewChange[];
|
|
1865
|
+
waitForViewSync: boolean;
|
|
1838
1866
|
};
|
|
1839
1867
|
}
|
|
1840
1868
|
}
|
|
@@ -3044,8 +3072,27 @@ export declare interface LikeC4EditorCallbacks {
|
|
|
3044
3072
|
fetchView(viewId: t.ViewId, layout?: t.LayoutType): t.LayoutedView | Promise<t.LayoutedView>;
|
|
3045
3073
|
/**
|
|
3046
3074
|
* Callback invoked when the view changes.
|
|
3075
|
+
*
|
|
3076
|
+
* Return `{ waitForViewSync: false }` when the integration applies the
|
|
3077
|
+
* change locally and will not publish a refreshed view. When changes are
|
|
3078
|
+
* batched, the editor waits if any callback invocation expects a refresh.
|
|
3079
|
+
*/
|
|
3080
|
+
handleChange(viewId: t.ViewId, change: t.ViewChange): void | LikeC4EditorChangeResult | Promise<void | LikeC4EditorChangeResult>;
|
|
3081
|
+
}
|
|
3082
|
+
|
|
3083
|
+
/**
|
|
3084
|
+
* Result of applying a change from the LikeC4 Editor.
|
|
3085
|
+
*/
|
|
3086
|
+
export declare interface LikeC4EditorChangeResult {
|
|
3087
|
+
/**
|
|
3088
|
+
* Whether applying the change will publish a refreshed view to the diagram
|
|
3089
|
+
* that the editor should wait for.
|
|
3090
|
+
*
|
|
3091
|
+
* Returning no result from `handleChange` defaults this to `true`,
|
|
3092
|
+
* preserving the existing behavior for integrations that persist changes
|
|
3093
|
+
* through an external model service.
|
|
3047
3094
|
*/
|
|
3048
|
-
|
|
3095
|
+
waitForViewSync: boolean;
|
|
3049
3096
|
}
|
|
3050
3097
|
|
|
3051
3098
|
/**
|
|
@@ -4173,6 +4220,24 @@ selector: (snapshot: A) => B,
|
|
|
4173
4220
|
compare: (a: B, b: B) => boolean
|
|
4174
4221
|
];
|
|
4175
4222
|
|
|
4223
|
+
declare const selectCompareLayoutState: ({ context }: DiagramActorSnapshot) => {
|
|
4224
|
+
isEnabled: false;
|
|
4225
|
+
hasEditor: false;
|
|
4226
|
+
isEditable: false;
|
|
4227
|
+
isActive: false;
|
|
4228
|
+
drifts: null;
|
|
4229
|
+
canApplyLatest: boolean;
|
|
4230
|
+
layout: t.LayoutType;
|
|
4231
|
+
} | {
|
|
4232
|
+
isEnabled: true;
|
|
4233
|
+
hasEditor: boolean;
|
|
4234
|
+
isEditable: boolean;
|
|
4235
|
+
isActive: boolean;
|
|
4236
|
+
drifts: readonly [t.LayoutedViewDriftReason, ...t.LayoutedViewDriftReason[]];
|
|
4237
|
+
canApplyLatest: boolean;
|
|
4238
|
+
layout: t.LayoutType;
|
|
4239
|
+
};
|
|
4240
|
+
|
|
4176
4241
|
export declare const selectDiagramContext: <T>(select: (state: DiagramContext) => T, compare?: ((old: NoInfer<T>, next: NoInfer<T>) => boolean) | undefined) => SelectAndCompare< MachineSnapshot<DiagramContext, DiagramEvents, {
|
|
4177
4242
|
overlays: OverlaysActorRef | undefined;
|
|
4178
4243
|
search: SearchActorRef | undefined;
|
|
@@ -5038,6 +5103,16 @@ export declare function useDiagram(): DiagramApi;
|
|
|
5038
5103
|
|
|
5039
5104
|
export declare const useDiagramActorRef: () => DiagramActorRef;
|
|
5040
5105
|
|
|
5106
|
+
/**
|
|
5107
|
+
* Controls LikeC4's manual-layout comparison from custom diagram children.
|
|
5108
|
+
*
|
|
5109
|
+
* The hook must be called by a component rendered inside {@link LikeC4Diagram}.
|
|
5110
|
+
*/
|
|
5111
|
+
export declare function useDiagramCompareLayout(): [
|
|
5112
|
+
DiagramCompareLayoutState,
|
|
5113
|
+
DiagramCompareLayoutOps
|
|
5114
|
+
];
|
|
5115
|
+
|
|
5041
5116
|
/**
|
|
5042
5117
|
* Read diagram context
|
|
5043
5118
|
* @deprecated use {@link useDiagramSelector}
|