likec4 1.35.0 → 1.36.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.
@@ -1,4 +1,4 @@
1
- import { L as LikeC4LanguageServices } from '../shared/likec4.CcP3mRJH.mjs';
1
+ import { L as LikeC4LanguageServices } from '../shared/likec4.CoVNuZKl.mjs';
2
2
  import 'type-fest';
3
3
  import '@likec4/core';
4
4
  import '@likec4/core/model';
@@ -1,2 +1,2 @@
1
- export{L as LikeC4VitePlugin}from"../shared/likec4.SsV1pHm2.mjs";import"node:path";import"../shared/likec4.B4j8eNO5.mjs";import"node:fs";import"node:url";import"../shared/likec4.BeWJWU7_.mjs";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";
1
+ export{L as LikeC4VitePlugin}from"../shared/likec4.D8qlxD_Y.mjs";import"@likec4/core";import"node:path";import"../shared/likec4.DWIqzE5d.mjs";import"node:fs";import"node:url";import"../shared/likec4.BeWJWU7_.mjs";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/types";import"events";import"@hpcc-js/wasm-graphviz";import"@likec4/core/model";import"buffer";import"@likec4/core/compute-view";
2
2
  import"@likec4/core/utils";import"node:process";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,7 @@
1
1
  {
2
2
  "name": "likec4",
3
- "version": "1.35.0",
3
+ "description": "Toolchain for your architecture diagrams",
4
+ "version": "1.36.0",
4
5
  "license": "MIT",
5
6
  "homepage": "https://likec4.dev",
6
7
  "author": "Denis Davydkov <denis@davydkov.com>",
@@ -89,14 +90,14 @@
89
90
  "access": "public"
90
91
  },
91
92
  "dependencies": {
92
- "@hpcc-js/wasm-graphviz": "1.7.0",
93
+ "@hpcc-js/wasm-graphviz": "1.10.0",
93
94
  "@vitejs/plugin-react": "^4.6.0",
94
95
  "boxen": "^8.0.1",
95
- "playwright": "^1.53.1",
96
+ "playwright": "1.54.2",
96
97
  "rollup": "^4.44.0",
97
98
  "type-fest": "^4.41.0",
98
99
  "vite": "^6.3.5",
99
- "@likec4/core": "1.35.0"
100
+ "@likec4/core": "1.36.0"
100
101
  },
101
102
  "peerDependencies": {
102
103
  "react": "^18.x || ^19.x",
@@ -105,8 +106,8 @@
105
106
  "devDependencies": {
106
107
  "@dagrejs/dagre": "1.1.5",
107
108
  "@fontsource/ibm-plex-sans": "^5.2.6",
108
- "@mantine/core": "8.2.1",
109
- "@mantine/hooks": "8.2.1",
109
+ "@mantine/core": "8.2.2",
110
+ "@mantine/hooks": "8.2.2",
110
111
  "@nanostores/react": "1.0.0",
111
112
  "@pandacss/dev": "^0.54.0",
112
113
  "@react-hookz/web": "^25.1.1",
@@ -164,7 +165,7 @@
164
165
  "tinyrainbow": "^2.0.0",
165
166
  "tsx": "4.20.3",
166
167
  "turbo": "2.5.5",
167
- "typescript": "5.8.3",
168
+ "typescript": "5.9.2",
168
169
  "ufo": "1.6.1",
169
170
  "unbuild": "3.5.0",
170
171
  "vite-plugin-dts": "^4.5.4",
@@ -178,15 +179,15 @@
178
179
  "which": "^5.0.0",
179
180
  "wireit": "0.14.12",
180
181
  "yargs": "17.7.2",
181
- "@likec4/diagram": "1.35.0",
182
- "@likec4/generators": "1.35.0",
183
- "@likec4/language-server": "1.35.0",
184
- "@likec4/layouts": "1.35.0",
185
- "@likec4/icons": "1.35.0",
186
- "@likec4/styles": "1.35.0",
187
- "@likec4/style-preset": "1.35.0",
188
- "@likec4/log": "1.35.0",
189
- "@likec4/tsconfig": "1.35.0"
182
+ "@likec4/diagram": "1.36.0",
183
+ "@likec4/icons": "1.36.0",
184
+ "@likec4/language-server": "1.36.0",
185
+ "@likec4/layouts": "1.36.0",
186
+ "@likec4/generators": "1.36.0",
187
+ "@likec4/log": "1.36.0",
188
+ "@likec4/style-preset": "1.36.0",
189
+ "@likec4/styles": "1.36.0",
190
+ "@likec4/tsconfig": "1.36.0"
190
191
  },
191
192
  "scripts": {
192
193
  "typecheck": "tsc --build --verbose",
package/react/index.d.mts CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { CSSProperties, ComponentType, HTMLAttributes, JSX, MouseEvent as ReactMouseEvent, PropsWithChildren, ReactNode, WheelEvent as WheelEvent$1 } from 'react';
4
4
 
5
+ type Primitive = null | undefined | string | number | boolean | symbol | bigint;
5
6
  type UnionToIntersection<Union> = (
6
7
  // `extends unknown` is always going to be the case and is used to convert the
7
8
  // `Union` into a [distributive conditional
@@ -28,6 +29,38 @@ type IsArrayReadonly<T extends UnknownArray> = IfNever<T, false, T extends unkno
28
29
  type IfArrayReadonly<T extends UnknownArray, TypeIfArrayReadonly = true, TypeIfNotArrayReadonly = false> = IsArrayReadonly<T> extends infer Result ? Result extends true ? TypeIfArrayReadonly : TypeIfNotArrayReadonly : never;
29
30
  type NoInfer$1<T> = T extends infer U ? U : never;
30
31
  type IsAny<T> = 0 extends 1 & NoInfer$1<T> ? true : false;
32
+ type Numeric = number | bigint;
33
+ type LiteralCheck<T, LiteralType extends Primitive> = (IsNever<T> extends false // Must be wider than `never`
34
+ ? [
35
+ T
36
+ ] extends [
37
+ LiteralType & infer U
38
+ ] // Remove any branding
39
+ ? [
40
+ U
41
+ ] extends [
42
+ LiteralType
43
+ ] // Must be narrower than `LiteralType`
44
+ ? [
45
+ LiteralType
46
+ ] extends [
47
+ U
48
+ ] // Cannot be wider than `LiteralType`
49
+ ? false : true : false : false : false);
50
+ type LiteralChecks<T, LiteralUnionType> = (
51
+ // Conditional type to force union distribution.
52
+ // If `T` is none of the literal types in the union `LiteralUnionType`, then `LiteralCheck<T, LiteralType>` will evaluate to `false` for the whole union.
53
+ // If `T` is one of the literal types in the union, it will evaluate to `boolean` (i.e. `true | false`)
54
+ IsNotFalse<LiteralUnionType extends Primitive ? LiteralCheck<T, LiteralUnionType> : never>);
55
+ type IsStringLiteral<T> = IfNever<T, false,
56
+ // If `T` is an infinite string type (e.g., `on${string}`), `Record<T, never>` produces an index signature,
57
+ // and since `{}` extends index signatures, the result becomes `false`.
58
+ T extends string ? {} extends Record<T, never> ? false : true : false>;
59
+ type IsNumericLiteral<T> = LiteralChecks<T, Numeric>;
60
+ type IsBooleanLiteral<T> = LiteralCheck<T, boolean>;
61
+ type IsSymbolLiteral<T> = LiteralCheck<T, symbol>;
62
+ type IsLiteralUnion<T> = IsStringLiteral<T> | IsNumericLiteral<T> | IsBooleanLiteral<T> | IsSymbolLiteral<T>;
63
+ type IsLiteral<T> = IsPrimitive<T> extends true ? IsNotFalse<IsLiteralUnion<T>> : false;
31
64
  type IsEqual<A, B> = (<G>() => G extends A & G | G ? 1 : 2) extends (<G>() => G extends B & G | G ? 1 : 2) ? true : false;
32
65
  type Simplify<T> = {
33
66
  [KeyType in keyof T]: T[KeyType];
@@ -43,6 +76,16 @@ type SimpleMerge<Destination, Source> = {
43
76
  } & Source;
44
77
  type Merge<Destination, Source> = Simplify<SimpleMerge<PickIndexSignature<Destination>, PickIndexSignature<Source>> & SimpleMerge<OmitIndexSignature<Destination>, OmitIndexSignature<Source>>>;
45
78
  type IfAny<T, TypeIfAny = true, TypeIfNotAny = false> = (IsAny<T> extends true ? TypeIfAny : TypeIfNotAny);
79
+ type IsNotFalse<T extends boolean> = [
80
+ T
81
+ ] extends [
82
+ false
83
+ ] ? false : true;
84
+ type IsPrimitive<T> = [
85
+ T
86
+ ] extends [
87
+ Primitive
88
+ ] ? true : false;
46
89
  type HomomorphicPick<T, Keys extends KeysOfUnion<T>> = {
47
90
  [P in keyof T as Extract<P, Keys>]: T[P];
48
91
  };
@@ -120,6 +163,7 @@ interface Link {
120
163
  relative?: string;
121
164
  }
122
165
  type Coalesce<V extends string, OrIfAny = string> = IsAny<V> extends true ? OrIfAny : V;
166
+ type ProjectId<T = string> = Tagged<T, "ProjectID">;
123
167
  type MarkdownOrString = {
124
168
  txt: string;
125
169
  md?: never;
@@ -132,12 +176,16 @@ type Icon = Tagged<string, "Icon"> | BuiltInIcon;
132
176
  type IconUrl = Icon;
133
177
  type Fqn<Id = string> = Tagged<Id, "Fqn">;
134
178
  declare function Fqn(name: string, parent?: Fqn | null): Fqn;
179
+ type ElementKind<Kinds = string> = Tagged<Kinds, "ElementKind">;
135
180
  type DeploymentFqn<T = string> = Tagged<T, "DeploymentFqn">;
136
181
  declare function DeploymentFqn(name: string, parent?: DeploymentFqn | null): DeploymentFqn;
182
+ type DeploymentKind<Kinds = string> = Tagged<Kinds, "DeploymentKind">;
137
183
  type ViewId<Id = string> = Tagged<Id, "ViewId">;
138
184
  declare function ViewId(id: string): ViewId;
185
+ type RelationshipKind<Kinds = string> = Tagged<Kinds, "RelationshipKind">;
139
186
  type RelationId<Id = string> = Tagged<Id, "RelationId">;
140
187
  declare function RelationId(id: string): RelationId;
188
+ type Tag$1<T = string> = Tagged<T, "Tag">;
141
189
  type NodeId = Tagged<string, "NodeId" | "Fqn" | "DeploymentFqn">;
142
190
  declare function NodeId(id: string): NodeId;
143
191
  type EdgeId = Tagged<string, "EdgeId">;
@@ -155,6 +203,7 @@ interface SpecAux<ElementKind extends string, DeploymentKind extends string, Rel
155
203
  Tag: Tag;
156
204
  MetadataKey: MetadataKey;
157
205
  }
206
+ type AnySpec = SpecAux<any, any, any, any, any>;
158
207
  interface Aux<Stage extends ModelStage, Element extends string, Deployment extends string, View extends string, Project extends string, Spec extends SpecAux<string, string, string, string, string>> {
159
208
  Stage: Stage;
160
209
  ProjectId: Project;
@@ -168,26 +217,129 @@ interface Aux<Stage extends ModelStage, Element extends string, Deployment exten
168
217
  MetadataKey: Spec["MetadataKey"];
169
218
  }
170
219
  type Any = Aux<any, any, any, any, any, SpecAux<any, any, any, any, any>>;
220
+ type Never = Aux<never, never, never, never, never, SpecAux<never, never, never, never, never>>;
221
+ type Unknown = Aux<"layouted" | "computed", string, string, string, string, SpecAux<string, string, string, string, string>>;
222
+ type UnknownParsed = Aux<"parsed", string, string, string, string, SpecAux<string, string, string, string, string>>;
223
+ type UnknownComputed = Aux<"computed", string, string, string, string, SpecAux<string, string, string, string, string>>;
171
224
  type UnknownLayouted = Aux<"layouted", string, string, string, string, SpecAux<string, string, string, string, string>>;
225
+ type Stage<A> = A extends Aux<infer S, any, any, any, any, any> ? IfNever<S, never, Coalesce<S, ModelStage>> : never;
226
+ type PickByStage<A extends Any, OnParsed, OnComputed, OnLayouted = OnComputed> = {
227
+ parsed: OnParsed;
228
+ computed: OnComputed;
229
+ layouted: OnLayouted;
230
+ }[A["Stage"]];
231
+ type setStage<A, S extends ModelStage> = A extends Aux<any, infer E, infer D, infer V, infer P, infer Spec> ? Aux<S, E, D, V, P, Spec> : never;
232
+ type toParsed<A> = A extends Aux<any, infer E, infer D, infer V, infer P, infer Spec> ? Aux<"parsed", E, D, V, P, Spec> : never;
233
+ type toComputed<A> = A extends Aux<any, infer E, infer D, infer V, infer P, infer Spec> ? Aux<"computed", E, D, V, P, Spec> : never;
234
+ type toLayouted<A> = A extends Aux<any, infer E, infer D, infer V, infer P, infer Spec> ? Aux<"layouted", E, D, V, P, Spec> : never;
235
+ type ProjectId$1<A> = A extends infer T extends Any ? Coalesce<T["ProjectId"]> : never;
236
+ type setProject<A, P extends string> = A extends Aux<infer S, infer E, infer D, infer V, any, infer Spec> ? Aux<S, E, D, V, P, Spec> : never;
172
237
  type Fqn$1<A> = A extends infer T extends Any ? Fqn<ElementId<T>> : never;
173
238
  type ElementId<A> = A extends infer T extends Any ? Coalesce<T["ElementId"]> : never;
174
239
  type DeploymentFqn$1<A> = A extends infer T extends Any ? DeploymentFqn<DeploymentId<T>> : never;
175
240
  type DeploymentId<A> = A extends infer T extends Any ? Coalesce<T["DeploymentId"]> : never;
176
241
  type ViewId$1<A> = A extends infer T extends Any ? Coalesce<T["ViewId"]> : never;
177
242
  type RelationId$1 = RelationId;
178
- type ElementKind<A> = A extends infer T extends Any ? Coalesce<T["ElementKind"]> : never;
179
- type DeploymentKind<A> = A extends infer T extends Any ? Coalesce<T["DeploymentKind"]> : never;
243
+ type NodeId$1 = NodeId;
244
+ type EdgeId$1 = EdgeId;
245
+ type ElementKind$1<A> = A extends infer T extends Any ? Coalesce<T["ElementKind"]> : never;
246
+ type DeploymentKind$1<A> = A extends infer T extends Any ? Coalesce<T["DeploymentKind"]> : never;
180
247
  type RelationKind<A> = A extends infer T extends Any ? Coalesce<T["RelationKind"]> : never;
181
- type Tag$1<A> = A extends infer T extends Any ? Coalesce<T["Tag"]> : never;
182
- type Tags<A extends Any> = readonly Tag$1<A>[];
183
- type AllKinds<A> = ElementKind<A> | DeploymentKind<A> | RelationKind<A>;
248
+ type Tag$2<A> = A extends infer T extends Any ? Coalesce<T["Tag"]> : never;
249
+ type Tags<A extends Any> = readonly Tag$2<A>[];
250
+ type MetadataKey<A> = A extends infer T extends Any ? Coalesce<T["MetadataKey"]> : never;
251
+ type Metadata<A extends Any> = IsNever<A["MetadataKey"]> extends true ? never : IsLiteral<A["MetadataKey"]> extends true ? {
252
+ [key in A["MetadataKey"]]?: string;
253
+ } : Record<string, string>;
254
+ type AllKinds<A> = ElementKind$1<A> | DeploymentKind$1<A> | RelationKind<A>;
255
+ type Spec<A> = A extends Aux<any, any, any, any, any, infer S> ? S : never;
256
+ type StrictProjectId<A> = A extends infer T extends Any ? ProjectId<ProjectId$1<T>> : never;
184
257
  type StrictViewId<A> = A extends infer T extends Any ? ViewId<ViewId$1<T>> : never;
258
+ type StrictTag<A> = A extends infer T extends Any ? Tag$1<Tag$2<T>> : never;
259
+ type StrictElementKind<A> = A extends infer T extends Any ? ElementKind<ElementKind$1<T>> : never;
260
+ type StrictDeploymentKind<A> = A extends infer T extends Any ? DeploymentKind<DeploymentKind$1<T>> : never;
261
+ type StrictRelationKind<A> = A extends infer T extends Any ? RelationshipKind<RelationKind<T>> : never;
262
+ type WithTags<A extends Any> = {
263
+ readonly tags: Tags<A>;
264
+ };
185
265
  type WithOptionalTags<A extends Any> = {
186
266
  readonly tags?: Tags<A> | null;
187
267
  };
268
+ type WithLinks = {
269
+ readonly links: readonly Link[];
270
+ };
188
271
  type WithOptionalLinks = {
189
272
  readonly links?: readonly Link[] | null;
190
273
  };
274
+ type WithMetadata<A extends Any> = {
275
+ readonly metadata?: Metadata<A>;
276
+ };
277
+ type OrString = string & Record<never, never>;
278
+ type LooseElementId<A extends Any> = Coalesce<A["ElementId"]> | OrString;
279
+ type LooseDeploymentId<A extends Any> = Coalesce<A["DeploymentId"]> | OrString;
280
+ type LooseViewId<A extends Any> = Coalesce<A["ViewId"]> | OrString;
281
+ type LooseTag<A extends Any> = Coalesce<A["Tag"]> | OrString;
282
+ type LooseTags<A extends Any> = readonly (Coalesce<A["Tag"]> | OrString)[];
283
+ type LooseElementKind<A extends Any> = Coalesce<A["ElementKind"]> | OrString;
284
+ type LooseDeploymentKind<A extends Any> = Coalesce<A["DeploymentKind"]> | OrString;
285
+ type LooseRelationKind<A extends Any> = Coalesce<A["RelationKind"]> | OrString;
286
+ type _aux_AllKinds<A> = AllKinds<A>;
287
+ type _aux_Any = Any;
288
+ type _aux_AnySpec = AnySpec;
289
+ type _aux_Aux<Stage extends ModelStage, Element extends string, Deployment extends string, View extends string, Project extends string, Spec extends SpecAux<string, string, string, string, string>> = Aux<Stage, Element, Deployment, View, Project, Spec>;
290
+ type _aux_DeploymentFqn<A> = DeploymentFqn$1<A>;
291
+ type _aux_DeploymentId<A> = DeploymentId<A>;
292
+ type _aux_DeploymentKind<A> = DeploymentKind$1<A>;
293
+ type _aux_EdgeId = EdgeId$1;
294
+ type _aux_ElementId<A> = ElementId<A>;
295
+ type _aux_ElementKind<A> = ElementKind$1<A>;
296
+ type _aux_Fqn<A> = Fqn$1<A>;
297
+ type _aux_LooseDeploymentId<A extends Any> = LooseDeploymentId<A>;
298
+ type _aux_LooseDeploymentKind<A extends Any> = LooseDeploymentKind<A>;
299
+ type _aux_LooseElementId<A extends Any> = LooseElementId<A>;
300
+ type _aux_LooseElementKind<A extends Any> = LooseElementKind<A>;
301
+ type _aux_LooseRelationKind<A extends Any> = LooseRelationKind<A>;
302
+ type _aux_LooseTag<A extends Any> = LooseTag<A>;
303
+ type _aux_LooseTags<A extends Any> = LooseTags<A>;
304
+ type _aux_LooseViewId<A extends Any> = LooseViewId<A>;
305
+ type _aux_Metadata<A extends Any> = Metadata<A>;
306
+ type _aux_MetadataKey<A> = MetadataKey<A>;
307
+ type _aux_Never = Never;
308
+ type _aux_NodeId = NodeId$1;
309
+ type _aux_OrString = OrString;
310
+ type _aux_PickByStage<A extends Any, OnParsed, OnComputed, OnLayouted = OnComputed> = PickByStage<A, OnParsed, OnComputed, OnLayouted>;
311
+ type _aux_ProjectId<A> = ProjectId$1<A>;
312
+ type _aux_RelationId = RelationId$1;
313
+ type _aux_RelationKind<A> = RelationKind<A>;
314
+ type _aux_Spec<A> = Spec<A>;
315
+ type _aux_SpecAux<ElementKind extends string, DeploymentKind extends string, RelationKind extends string, Tag extends string, MetadataKey extends string> = SpecAux<ElementKind, DeploymentKind, RelationKind, Tag, MetadataKey>;
316
+ type _aux_Stage<A> = Stage<A>;
317
+ type _aux_StrictDeploymentKind<A> = StrictDeploymentKind<A>;
318
+ type _aux_StrictElementKind<A> = StrictElementKind<A>;
319
+ type _aux_StrictProjectId<A> = StrictProjectId<A>;
320
+ type _aux_StrictRelationKind<A> = StrictRelationKind<A>;
321
+ type _aux_StrictTag<A> = StrictTag<A>;
322
+ type _aux_StrictViewId<A> = StrictViewId<A>;
323
+ type _aux_Tag<A> = Tag$2<A>;
324
+ type _aux_Tags<A extends Any> = Tags<A>;
325
+ type _aux_Unknown = Unknown;
326
+ type _aux_UnknownComputed = UnknownComputed;
327
+ type _aux_UnknownLayouted = UnknownLayouted;
328
+ type _aux_UnknownParsed = UnknownParsed;
329
+ type _aux_ViewId<A> = ViewId$1<A>;
330
+ type _aux_WithLinks = WithLinks;
331
+ type _aux_WithMetadata<A extends Any> = WithMetadata<A>;
332
+ type _aux_WithOptionalLinks = WithOptionalLinks;
333
+ type _aux_WithOptionalTags<A extends Any> = WithOptionalTags<A>;
334
+ type _aux_WithTags<A extends Any> = WithTags<A>;
335
+ type _aux_setProject<A, P extends string> = setProject<A, P>;
336
+ type _aux_setStage<A, S extends ModelStage> = setStage<A, S>;
337
+ type _aux_toComputed<A> = toComputed<A>;
338
+ type _aux_toLayouted<A> = toLayouted<A>;
339
+ type _aux_toParsed<A> = toParsed<A>;
340
+ declare namespace _aux {
341
+ export type { _aux_AllKinds as _aux_AllKinds, _aux_Any as _aux_Any, Any as Any, _aux_AnySpec as _aux_AnySpec, _aux_Aux as _aux_Aux, _aux_DeploymentFqn as _aux_DeploymentFqn, _aux_DeploymentId as _aux_DeploymentId, _aux_DeploymentKind as _aux_DeploymentKind, _aux_EdgeId as _aux_EdgeId, _aux_ElementId as _aux_ElementId, _aux_ElementKind as _aux_ElementKind, _aux_Fqn as _aux_Fqn, _aux_LooseDeploymentId as _aux_LooseDeploymentId, _aux_LooseDeploymentKind as _aux_LooseDeploymentKind, _aux_LooseElementId as _aux_LooseElementId, _aux_LooseElementKind as _aux_LooseElementKind, _aux_LooseRelationKind as _aux_LooseRelationKind, _aux_LooseTag as _aux_LooseTag, _aux_LooseTags as _aux_LooseTags, _aux_LooseViewId as _aux_LooseViewId, _aux_Metadata as _aux_Metadata, _aux_MetadataKey as _aux_MetadataKey, _aux_Never as _aux_Never, _aux_NodeId as _aux_NodeId, _aux_OrString as _aux_OrString, _aux_PickByStage as _aux_PickByStage, _aux_ProjectId as _aux_ProjectId, _aux_RelationId as _aux_RelationId, _aux_RelationKind as _aux_RelationKind, _aux_Spec as _aux_Spec, _aux_SpecAux as _aux_SpecAux, _aux_Stage as _aux_Stage, DeploymentFqn$1 as DeploymentFqn$1, _aux_StrictDeploymentKind as _aux_StrictDeploymentKind, _aux_StrictElementKind as _aux_StrictElementKind, Fqn$1 as Fqn$1, _aux_StrictProjectId as _aux_StrictProjectId, _aux_StrictRelationKind as _aux_StrictRelationKind, _aux_StrictTag as _aux_StrictTag, _aux_StrictViewId as _aux_StrictViewId, _aux_Tag as _aux_Tag, _aux_Tags as _aux_Tags, _aux_Unknown as _aux_Unknown, _aux_UnknownComputed as _aux_UnknownComputed, _aux_UnknownLayouted as _aux_UnknownLayouted, _aux_UnknownParsed as _aux_UnknownParsed, _aux_ViewId as _aux_ViewId, _aux_WithLinks as _aux_WithLinks, _aux_WithMetadata as _aux_WithMetadata, _aux_WithOptionalLinks as _aux_WithOptionalLinks, _aux_WithOptionalTags as _aux_WithOptionalTags, _aux_WithTags as _aux_WithTags, _aux_setProject as _aux_setProject, _aux_setStage as _aux_setStage, _aux_toComputed as _aux_toComputed, _aux_toLayouted as _aux_toLayouted, _aux_toParsed as _aux_toParsed };
342
+ }
191
343
  type SpacingSize = "xs" | "sm" | "md" | "lg" | "xl";
192
344
  type TextSize = "xs" | "sm" | "md" | "lg" | "xl";
193
345
  type ShapeSize = "xs" | "sm" | "md" | "lg" | "xl";
@@ -244,7 +396,7 @@ type AllNever = {
244
396
  operator?: never;
245
397
  };
246
398
  type TagEqual<A extends Any> = Omit<AllNever, "tag"> & {
247
- tag: EqualOperator<Tag$1<A>> | Tag$1<A>;
399
+ tag: EqualOperator<Tag$2<A>> | Tag$2<A>;
248
400
  };
249
401
  type KindEqual<A extends Any> = Omit<AllNever, "kind"> & {
250
402
  kind: EqualOperator<AllKinds<A>> | AllKinds<A>;
@@ -384,7 +536,7 @@ interface ElementStyle {
384
536
  }
385
537
  interface ComputedNode<A extends Any = Any> extends WithOptionalLinks {
386
538
  id: NodeId;
387
- kind: ElementKind<A> | DeploymentKind<A> | "@group";
539
+ kind: ElementKind$1<A> | DeploymentKind$1<A> | "@group";
388
540
  parent: NodeId | null;
389
541
  /**
390
542
  * Reference to model element
@@ -425,7 +577,7 @@ interface ComputedEdge<A extends Any = Any> extends WithOptionalTags<A> {
425
577
  relations: RelationId[];
426
578
  kind?: RelationKind<A> | typeof StepEdgeKind;
427
579
  notation?: string;
428
- notes?: string;
580
+ notes?: MarkdownOrString;
429
581
  color?: Color;
430
582
  line?: RelationshipLineType;
431
583
  head?: RelationshipArrowType;
@@ -2123,7 +2275,7 @@ type ElementIconRendererProps = {
2123
2275
  className?: string;
2124
2276
  };
2125
2277
  export type ElementIconRenderer = (props: ElementIconRendererProps) => ReactNode;
2126
- type OnNavigateTo<A extends Any> = (to: ViewId$1<A>, event?: ReactMouseEvent, element?: DiagramNodeWithNavigate<A>) => void;
2278
+ type OnNavigateTo<A extends Any> = (to: _aux.ViewId<A>, event?: ReactMouseEvent, element?: DiagramNodeWithNavigate<A>) => void;
2127
2279
  type OnNodeClick<A extends Any> = (node: DiagramNode<A>, event: ReactMouseEvent) => void;
2128
2280
  type OnEdgeClick<A extends Any> = (edge: DiagramEdge<A>, event: ReactMouseEvent) => void;
2129
2281
  type OnCanvasClick = (event: ReactMouseEvent) => void;
@@ -2142,7 +2294,7 @@ type ViewPadding = PaddingWithUnit$1 | {
2142
2294
  x?: PaddingWithUnit$1;
2143
2295
  y?: PaddingWithUnit$1;
2144
2296
  };
2145
- interface LikeC4DiagramProperties<A extends Any> {
2297
+ interface LikeC4DiagramProperties<A extends _aux.Any> {
2146
2298
  view: LayoutedView<A>;
2147
2299
  className?: string | undefined;
2148
2300
  /**
@@ -2314,18 +2466,18 @@ interface LikeC4DiagramProperties<A extends Any> {
2314
2466
  */
2315
2467
  reactFlowProps?: OverrideReactFlowProps | undefined;
2316
2468
  }
2317
- type OpenSourceParams<A extends Any = Any> = {
2318
- element: Fqn$1<A>;
2469
+ type OpenSourceParams<A extends _aux.Any = _aux.Any> = {
2470
+ element: _aux.Fqn<A>;
2319
2471
  property?: string;
2320
2472
  } | {
2321
- relation: RelationId$1;
2473
+ relation: _aux.RelationId;
2322
2474
  } | {
2323
- deployment: DeploymentFqn$1<A>;
2475
+ deployment: _aux.DeploymentFqn<A>;
2324
2476
  property?: string;
2325
2477
  } | {
2326
- view: StrictViewId<A>;
2478
+ view: _aux.StrictViewId<A>;
2327
2479
  };
2328
- interface LikeC4DiagramEventHandlers<A extends Any> {
2480
+ interface LikeC4DiagramEventHandlers<A extends _aux.Any = _aux.Any> {
2329
2481
  onChange?: OnChange | null | undefined;
2330
2482
  onNavigateTo?: OnNavigateTo<A> | null | undefined;
2331
2483
  onNodeClick?: OnNodeClick<A> | null | undefined;
@@ -2338,11 +2490,11 @@ interface LikeC4DiagramEventHandlers<A extends Any> {
2338
2490
  onBurgerMenuClick?: null | undefined | (() => void);
2339
2491
  onOpenSource?: null | undefined | ((params: OpenSourceParams<A>) => void);
2340
2492
  }
2341
- export interface LikeC4ViewProps<A extends Any> {
2493
+ export interface LikeC4ViewProps<A extends _aux.Any> {
2342
2494
  /**
2343
2495
  * View to display.
2344
2496
  */
2345
- viewId: ViewId$1<A>;
2497
+ viewId: _aux.ViewId<A>;
2346
2498
  /**
2347
2499
  * Enable/disable panning
2348
2500
  * @default false
@@ -2560,10 +2712,10 @@ interface LikeC4BrowserProps {
2560
2712
  */
2561
2713
  reactFlowProps?: OverrideReactFlowProps | undefined;
2562
2714
  }
2563
- export declare function LikeC4View<A extends Any = UnknownLayouted>({ viewId, ...props }: LikeC4ViewProps<A>): import("react/jsx-runtime").JSX.Element;
2715
+ export declare function LikeC4View<A extends _aux.Any = _aux.UnknownLayouted>({ viewId, ...props }: LikeC4ViewProps<A>): import("react/jsx-runtime").JSX.Element;
2564
2716
  type LikeC4DiagramProps<A extends Any = Any> = PropsWithChildren<LikeC4DiagramProperties<A> & LikeC4DiagramEventHandlers<A>>;
2565
- export type ReactLikeC4Props<A extends Any> = Omit<LikeC4DiagramProps<A>, "view"> & {
2566
- viewId: ViewId$1<A>;
2717
+ export type ReactLikeC4Props<A extends _aux.Any> = Omit<LikeC4DiagramProps<A>, "view"> & {
2718
+ viewId: _aux.ViewId<A>;
2567
2719
  /**
2568
2720
  * Keep aspect ratio of the diagram
2569
2721
  * Disable if you need to manage the viewport (use className)
@@ -2588,7 +2740,7 @@ export type ReactLikeC4Props<A extends Any> = Omit<LikeC4DiagramProps<A>, "view"
2588
2740
  /** Function to generate nonce attribute added to all generated `<style />` tags */
2589
2741
  styleNonce?: string | (() => string) | undefined;
2590
2742
  };
2591
- export declare function ReactLikeC4<A extends Any = UnknownLayouted>({ viewId, ...props }: ReactLikeC4Props<A>): import("react/jsx-runtime").JSX.Element;
2743
+ export declare function ReactLikeC4<A extends _aux.Any = _aux.UnknownLayouted>({ viewId, ...props }: ReactLikeC4Props<A>): import("react/jsx-runtime").JSX.Element;
2592
2744
  export declare namespace ReactLikeC4 {
2593
2745
  var displayName: string;
2594
2746
  }