likec4 1.32.0 → 1.32.2

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.
@@ -1,6 +1,6 @@
1
- import { L as LikeC4LanguageServices } from '../shared/likec4.8nZi1RFs.mjs';
2
- import '@likec4/core';
1
+ import { L as LikeC4LanguageServices } from '../shared/likec4.BaQDJZ_m.mjs';
3
2
  import 'type-fest';
3
+ import '@likec4/core';
4
4
  import '@likec4/core/model';
5
5
  import '/home/runner/work/likec4/likec4/node_modules/.pnpm/@types+picomatch@4.0.0/node_modules/@types/picomatch/posix.d.ts';
6
6
  import '@likec4/core/types';
@@ -1,2 +1,2 @@
1
- export{L as LikeC4VitePlugin}from"../shared/likec4.BdLFzcl1.mjs";import"node:path";import"../shared/likec4.CouFKCvO.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";
1
+ export{L as LikeC4VitePlugin}from"../shared/likec4.D6SCXR05.mjs";import"node:path";import"../shared/likec4.DDbeRd6k.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"@hpcc-js/wasm-graphviz";import"@likec4/core/model";import"buffer";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.0",
3
+ "version": "1.32.2",
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": {
@@ -78,13 +86,13 @@
78
86
  },
79
87
  "dependencies": {
80
88
  "@hpcc-js/wasm-graphviz": "1.7.0",
81
- "@vitejs/plugin-react": "^4.5.0",
89
+ "@vitejs/plugin-react": "^4.5.2",
82
90
  "boxen": "^8.0.1",
83
- "playwright": "^1.52.0",
91
+ "playwright": "^1.53.0",
84
92
  "rollup": "^4.41.0",
85
93
  "type-fest": "^4.41.0",
86
94
  "vite": "^6.3.5",
87
- "@likec4/core": "1.32.0"
95
+ "@likec4/core": "1.32.2"
88
96
  },
89
97
  "peerDependencies": {
90
98
  "react": "^18.x || ^19.x",
@@ -96,17 +104,16 @@
96
104
  "@mantine/core": "8.1.0",
97
105
  "@mantine/hooks": "8.1.0",
98
106
  "@nanostores/react": "1.0.0",
99
- "@pandacss/dev": "^0.53.6",
107
+ "@pandacss/dev": "^0.53.7",
100
108
  "@react-hookz/web": "^25.1.1",
101
109
  "@tabler/icons-react": "3.31.0",
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": "^20.19.0",
113
+ "@types/node": "~20.19.0",
106
114
  "@types/picomatch": "^4.0.0",
107
- "@types/prop-types": "^15.7.14",
108
- "@types/react": "^19.1.5",
109
- "@types/react-dom": "^19.1.5",
115
+ "@types/react": "19.1.5",
116
+ "@types/react-dom": "19.1.5",
110
117
  "@types/semver": "^7.7.0",
111
118
  "@types/yargs": "^17.0.33",
112
119
  "@xyflow/react": "^12.6.4",
@@ -133,50 +140,48 @@
133
140
  "motion": "^12.12.2",
134
141
  "nano-spawn": "^1.0.2",
135
142
  "nanostores": "1.0.1",
136
- "npm-run-all2": "^7.0.1",
143
+ "npm-run-all2": "^8.0.4",
137
144
  "p-limit": "^6.2.0",
138
145
  "package-manager-detector": "^1.2.0",
139
146
  "package-up": "^5.0.0",
140
147
  "picomatch": "^4.0.2",
141
- "postcss": "^8.5.4",
148
+ "postcss": "8.5.5",
142
149
  "pretty-ms": "^9.2.0",
143
- "prop-types": "^15.8.1",
144
150
  "react": "^19.1.0",
145
151
  "react-dom": "^19.1.0",
146
- "react-error-boundary": "^5.0.0",
152
+ "react-error-boundary": "^6.0.0",
147
153
  "react-resizable-panels": "^3.0.2",
148
154
  "react-shadow": "^20.6.0",
149
155
  "remeda": "^2.23.0",
150
156
  "semver": "^7.7.2",
151
157
  "std-env": "^3.9.0",
152
158
  "strip-indent": "^4.0.0",
153
- "terser": "^5.39.2",
154
159
  "tinyrainbow": "^2.0.0",
155
- "tsx": "~4.19.4",
156
- "turbo": "^2.5.4",
157
- "typescript": "^5.8.3",
160
+ "tsx": "4.19.4",
161
+ "turbo": "2.5.4",
162
+ "typescript": "5.8.3",
158
163
  "ufo": "^1.6.1",
159
- "unbuild": "^3.5.0",
164
+ "unbuild": "3.5.0",
160
165
  "vite-plugin-dts": "^4.5.4",
161
166
  "vite-plugin-inspect": "^11.1.0",
162
167
  "vite-plugin-singlefile": "^2.2.0",
163
- "vitest": "^3.2.3",
168
+ "vitest": "3.2.3",
164
169
  "vscode-jsonrpc": "8.2.0",
165
170
  "vscode-languageserver": "9.0.1",
166
171
  "vscode-languageserver-types": "3.17.5",
167
172
  "vscode-uri": "3.1.0",
168
173
  "which": "^5.0.0",
169
- "wireit": "^0.14.12",
174
+ "wireit": "0.14.12",
170
175
  "yargs": "17.7.2",
171
- "@likec4/diagram": "1.32.0",
172
- "@likec4/generators": "1.32.0",
173
- "@likec4/language-server": "1.32.0",
174
- "@likec4/icons": "1.32.0",
175
- "@likec4/layouts": "1.32.0",
176
- "@likec4/log": "1.32.0",
177
- "@likec4/styles": "1.32.0",
178
- "@likec4/tsconfig": "1.32.0",
179
- "@likec4/style-preset": "1.32.0"
176
+ "@likec4/diagram": "1.32.2",
177
+ "@likec4/generators": "1.32.2",
178
+ "@likec4/icons": "1.32.2",
179
+ "@likec4/layouts": "1.32.2",
180
+ "@likec4/style-preset": "1.32.2",
181
+ "@likec4/language-server": "1.32.2",
182
+ "@likec4/styles": "1.32.2",
183
+ "@likec4/log": "1.32.2",
184
+ "@likec4/tsconfig": "1.32.2"
180
185
  },
181
186
  "scripts": {
182
187
  "typecheck": "tsc --build --verbose",
@@ -188,7 +193,7 @@
188
193
  "generate:icons": "tsx --conditions=sources scripts/generate-icons.ts",
189
194
  "pack": "pnpm pack",
190
195
  "lint": "run -T eslint src/ --fix",
191
- "clean": "rm -r -f dist app/dist dev/.export dev/dist node_modules/.vite",
196
+ "clean": "pnpm rimraf lib dist app/dist dev/.export dev/dist node_modules/.vite react/*.mjs react/*.d.mts icons",
192
197
  "start": "tsx --conditions=sources src/cli/index.ts",
193
198
  "dev": "pnpm cli:serve dev",
194
199
  "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 | HexColor;
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 of the view
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 true
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 set to true if view has more then 3000 * 2000 pixels
2230
+ * @default 'auto' - will be `true` if view has more then 3000 * 2000 pixels
2219
2231
  */
2220
2232
  reduceGraphics?: "auto" | boolean | undefined;
2221
2233
  /**