likec4 1.32.0 → 1.32.1
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/main.js +159 -126
- package/dist/cli/index.d.mts +1 -0
- package/dist/cli/index.mjs +2 -2
- package/dist/index.d.mts +9 -5
- package/dist/index.mjs +2 -2
- package/dist/model/builder.d.mts +1 -0
- package/dist/model/builder.mjs +1 -0
- package/dist/shared/{likec4.BdLFzcl1.mjs → likec4.B20Ey-3l.mjs} +1 -1
- package/dist/shared/{likec4.8nZi1RFs.d.mts → likec4.CVzYPnDX.d.mts} +1724 -83
- package/dist/shared/{likec4.CouFKCvO.mjs → likec4.CbTFhAsc.mjs} +1748 -1742
- package/dist/vite-plugin/index.d.mts +1 -1
- package/dist/vite-plugin/index.mjs +1 -1
- package/package.json +23 -15
- package/react/index.d.mts +16 -4
- package/react/index.mjs +25 -25
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{L as LikeC4VitePlugin}from"../shared/likec4.
|
|
1
|
+
export{L as LikeC4VitePlugin}from"../shared/likec4.B20Ey-3l.mjs";import"node:path";import"../shared/likec4.CbTFhAsc.mjs";import"node:fs";import"node:url";import"tty";import"node:util";import"util";import"path";import"os";import"crypto";import"net";import"url";import"fs";import"child_process";import"@likec4/core";import"@likec4/core/types";import"events";import"@likec4/core/model";import"buffer";import"@hpcc-js/wasm-graphviz";import"@likec4/core/compute-view";import"@likec4/core/utils";import"node:process";
|
|
2
2
|
import"boxen";import"node:child_process";import"node:events";import"node:fs/promises";import"node:stream/promises";import"node:readline/promises";import"node:os";import"fs/promises";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "likec4",
|
|
3
|
-
"version": "1.32.
|
|
3
|
+
"version": "1.32.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://likec4.dev",
|
|
6
6
|
"author": "Denis Davydkov <denis@davydkov.com>",
|
|
@@ -34,6 +34,14 @@
|
|
|
34
34
|
"default": "./dist/index.mjs"
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
+
"./model/builder": {
|
|
38
|
+
"sources": "./src/model/builder.ts",
|
|
39
|
+
"default": {
|
|
40
|
+
"types": "./dist/model/builder.d.mts",
|
|
41
|
+
"import": "./dist/model/builder.mjs",
|
|
42
|
+
"default": "./dist/model/builder.mjs"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
37
45
|
"./model": {
|
|
38
46
|
"sources": "./src/model/index.ts",
|
|
39
47
|
"default": {
|
|
@@ -84,7 +92,7 @@
|
|
|
84
92
|
"rollup": "^4.41.0",
|
|
85
93
|
"type-fest": "^4.41.0",
|
|
86
94
|
"vite": "^6.3.5",
|
|
87
|
-
"@likec4/core": "1.32.
|
|
95
|
+
"@likec4/core": "1.32.1"
|
|
88
96
|
},
|
|
89
97
|
"peerDependencies": {
|
|
90
98
|
"react": "^18.x || ^19.x",
|
|
@@ -102,7 +110,7 @@
|
|
|
102
110
|
"@tanstack/react-router": "^1.114.13",
|
|
103
111
|
"@tanstack/router-cli": "^1.114.13",
|
|
104
112
|
"@tanstack/router-vite-plugin": "^1.114.13",
|
|
105
|
-
"@types/node": "
|
|
113
|
+
"@types/node": "~20.19.0",
|
|
106
114
|
"@types/picomatch": "^4.0.0",
|
|
107
115
|
"@types/prop-types": "^15.7.14",
|
|
108
116
|
"@types/react": "^19.1.5",
|
|
@@ -152,7 +160,7 @@
|
|
|
152
160
|
"strip-indent": "^4.0.0",
|
|
153
161
|
"terser": "^5.39.2",
|
|
154
162
|
"tinyrainbow": "^2.0.0",
|
|
155
|
-
"tsx": "~4.
|
|
163
|
+
"tsx": "~4.20.1",
|
|
156
164
|
"turbo": "^2.5.4",
|
|
157
165
|
"typescript": "^5.8.3",
|
|
158
166
|
"ufo": "^1.6.1",
|
|
@@ -160,7 +168,7 @@
|
|
|
160
168
|
"vite-plugin-dts": "^4.5.4",
|
|
161
169
|
"vite-plugin-inspect": "^11.1.0",
|
|
162
170
|
"vite-plugin-singlefile": "^2.2.0",
|
|
163
|
-
"vitest": "
|
|
171
|
+
"vitest": "3.2.3",
|
|
164
172
|
"vscode-jsonrpc": "8.2.0",
|
|
165
173
|
"vscode-languageserver": "9.0.1",
|
|
166
174
|
"vscode-languageserver-types": "3.17.5",
|
|
@@ -168,15 +176,15 @@
|
|
|
168
176
|
"which": "^5.0.0",
|
|
169
177
|
"wireit": "^0.14.12",
|
|
170
178
|
"yargs": "17.7.2",
|
|
171
|
-
"@likec4/diagram": "1.32.
|
|
172
|
-
"@likec4/
|
|
173
|
-
"@likec4/language-server": "1.32.
|
|
174
|
-
"@likec4/
|
|
175
|
-
"@likec4/layouts": "1.32.
|
|
176
|
-
"@likec4/log": "1.32.
|
|
177
|
-
"@likec4/
|
|
178
|
-
"@likec4/
|
|
179
|
-
"@likec4/
|
|
179
|
+
"@likec4/diagram": "1.32.1",
|
|
180
|
+
"@likec4/icons": "1.32.1",
|
|
181
|
+
"@likec4/language-server": "1.32.1",
|
|
182
|
+
"@likec4/generators": "1.32.1",
|
|
183
|
+
"@likec4/layouts": "1.32.1",
|
|
184
|
+
"@likec4/log": "1.32.1",
|
|
185
|
+
"@likec4/style-preset": "1.32.1",
|
|
186
|
+
"@likec4/styles": "1.32.1",
|
|
187
|
+
"@likec4/tsconfig": "1.32.1"
|
|
180
188
|
},
|
|
181
189
|
"scripts": {
|
|
182
190
|
"typecheck": "tsc --build --verbose",
|
|
@@ -188,7 +196,7 @@
|
|
|
188
196
|
"generate:icons": "tsx --conditions=sources scripts/generate-icons.ts",
|
|
189
197
|
"pack": "pnpm pack",
|
|
190
198
|
"lint": "run -T eslint src/ --fix",
|
|
191
|
-
"clean": "
|
|
199
|
+
"clean": "pnpm rimraf lib dist app/dist dev/.export dev/dist node_modules/.vite react/*.mjs react/*.d.mts icons",
|
|
192
200
|
"start": "tsx --conditions=sources src/cli/index.ts",
|
|
193
201
|
"dev": "pnpm cli:serve dev",
|
|
194
202
|
"dev:docs:bigbank": "pnpm cli:serve ../../apps/docs/src/components/bigbank",
|
package/react/index.d.mts
CHANGED
|
@@ -239,6 +239,7 @@ declare const ElementShapes: readonly [
|
|
|
239
239
|
];
|
|
240
240
|
type ElementShape = TupleToUnion<typeof ElementShapes>;
|
|
241
241
|
type HexColor = `#${string}`;
|
|
242
|
+
type ColorLiteral = HexColor | `rgb(${number},${number},${number})` | `rgba(${number},${number},${number},${number})`;
|
|
242
243
|
type RelationshipLineType = "dashed" | "solid" | "dotted";
|
|
243
244
|
type RelationshipArrowType = "none" | "normal" | "onormal" | "dot" | "odot" | "diamond" | "odiamond" | "crow" | "open" | "vee";
|
|
244
245
|
declare const ThemeColors: readonly [
|
|
@@ -255,7 +256,7 @@ declare const ThemeColors: readonly [
|
|
|
255
256
|
"sky"
|
|
256
257
|
];
|
|
257
258
|
type ThemeColor = typeof ThemeColors[number];
|
|
258
|
-
type Color = ThemeColor |
|
|
259
|
+
type Color = ThemeColor | ColorLiteral;
|
|
259
260
|
type Point = readonly [
|
|
260
261
|
x: number,
|
|
261
262
|
y: number
|
|
@@ -2149,7 +2150,15 @@ interface LikeC4DiagramProperties<A extends Any> {
|
|
|
2149
2150
|
* @default false if readonly
|
|
2150
2151
|
*/
|
|
2151
2152
|
nodesDraggable?: boolean | undefined;
|
|
2153
|
+
/**
|
|
2154
|
+
* Initial width of the diagram
|
|
2155
|
+
* (supposed to be used during SSR)
|
|
2156
|
+
*/
|
|
2152
2157
|
initialWidth?: number | undefined;
|
|
2158
|
+
/**
|
|
2159
|
+
* Initial height of the diagram
|
|
2160
|
+
* (supposed to be used during SSR)
|
|
2161
|
+
*/
|
|
2153
2162
|
initialHeight?: number | undefined;
|
|
2154
2163
|
/**
|
|
2155
2164
|
* Background pattern
|
|
@@ -2167,7 +2176,9 @@ interface LikeC4DiagramProperties<A extends Any> {
|
|
|
2167
2176
|
*/
|
|
2168
2177
|
showNavigationButtons?: undefined | boolean;
|
|
2169
2178
|
/**
|
|
2170
|
-
* Display notations
|
|
2179
|
+
* Display notations in the bottom right corner
|
|
2180
|
+
* (Active if only notations are present)
|
|
2181
|
+
*
|
|
2171
2182
|
* @default true
|
|
2172
2183
|
*/
|
|
2173
2184
|
showNotations?: boolean | undefined;
|
|
@@ -2204,7 +2215,7 @@ interface LikeC4DiagramProperties<A extends Any> {
|
|
|
2204
2215
|
enableDynamicViewWalkthrough?: boolean | undefined;
|
|
2205
2216
|
/**
|
|
2206
2217
|
* Display element tags in the bottom left corner
|
|
2207
|
-
* @default
|
|
2218
|
+
* @default false
|
|
2208
2219
|
*/
|
|
2209
2220
|
enableElementTags?: boolean | undefined;
|
|
2210
2221
|
/**
|
|
@@ -2214,8 +2225,9 @@ interface LikeC4DiagramProperties<A extends Any> {
|
|
|
2214
2225
|
experimentalEdgeEditing?: boolean | undefined;
|
|
2215
2226
|
/**
|
|
2216
2227
|
* Improve performance by hiding certain elements and reducing visual effects (disable mix-blend, shadows, animations)
|
|
2228
|
+
* Enable it if you have a large or static view
|
|
2217
2229
|
*
|
|
2218
|
-
* @default 'auto' - will be
|
|
2230
|
+
* @default 'auto' - will be `true` if view has more then 3000 * 2000 pixels
|
|
2219
2231
|
*/
|
|
2220
2232
|
reduceGraphics?: "auto" | boolean | undefined;
|
|
2221
2233
|
/**
|