likec4 1.59.3 → 1.60.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 (99) hide show
  1. package/__app__/codegen/react.mjs +6 -6
  2. package/__app__/codegen/webcomponent.mjs +147 -69
  3. package/__app__/src/aichat/index.mjs +10 -5
  4. package/__app__/src/chunks/AIChat.mjs +1134 -693
  5. package/__app__/src/chunks/LikeC4Styles.mjs +4101 -1737
  6. package/__app__/src/chunks/ProjectsOverview.mjs +624 -334
  7. package/__app__/src/chunks/es.mjs +515 -335
  8. package/__app__/src/chunks/hooks.mjs +578 -366
  9. package/__app__/src/chunks/libs/@floating-ui.mjs +2720 -1966
  10. package/__app__/src/chunks/libs/@mantine.mjs +14067 -9487
  11. package/__app__/src/chunks/libs/@tanstack-ai.mjs +2266 -1146
  12. package/__app__/src/chunks/libs/@tanstack.mjs +3152 -1932
  13. package/__app__/src/chunks/libs/@xstate/react.mjs +2924 -1468
  14. package/__app__/src/chunks/libs/@xyflow/react.mjs +6627 -4067
  15. package/__app__/src/chunks/libs/bezier-js.mjs +1312 -726
  16. package/__app__/src/chunks/libs/d3.mjs +3218 -1509
  17. package/__app__/src/chunks/libs/fast-equals.mjs +437 -201
  18. package/__app__/src/chunks/libs/framer.mjs +9251 -3846
  19. package/__app__/src/chunks/libs/nanostores.mjs +174 -0
  20. package/__app__/src/chunks/libs/zod.mjs +4591 -2363
  21. package/__app__/src/chunks/rolldown-runtime.mjs +39 -23
  22. package/__app__/src/chunks/styled-system.mjs +3538 -756
  23. package/__app__/src/fonts.css +112 -1
  24. package/__app__/src/main.mjs +44398 -24039
  25. package/__app__/src/style.css +18488 -1
  26. package/config/schema.json +136 -97
  27. package/dist/app/render-view-client.css +1 -1
  28. package/dist/app/render-view-client.js +506 -338
  29. package/dist/chunks/enableServer.mjs +1 -1
  30. package/dist/chunks/filenames.mjs +16 -14
  31. package/dist/chunks/generate-likec4.mjs +5 -0
  32. package/dist/chunks/index.d.mts +246 -180
  33. package/dist/chunks/index2.d.mts +2882 -1977
  34. package/dist/chunks/libs/@chevrotain/gast.mjs +27 -1
  35. package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +81 -9
  36. package/dist/chunks/libs/@chevrotain/types.d.mts +111 -0
  37. package/dist/chunks/libs/@logtape/logtape.mjs +5 -4
  38. package/dist/chunks/libs/@lume/kiwi.mjs +1 -1
  39. package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -1
  40. package/dist/chunks/libs/birpc.mjs +1 -1
  41. package/dist/chunks/libs/chevrotain-allstar.mjs +2 -2
  42. package/dist/chunks/libs/chevrotain.mjs +87 -35
  43. package/dist/chunks/libs/eventemitter3.mjs +1 -1
  44. package/dist/chunks/libs/json5.mjs +4 -4
  45. package/dist/chunks/libs/langium.d.mts +9903 -5297
  46. package/dist/chunks/libs/langium.mjs +16 -24
  47. package/dist/chunks/libs/merge-error-cause.mjs +1 -1
  48. package/dist/chunks/libs/p-limit.mjs +1 -0
  49. package/dist/chunks/libs/p-queue.mjs +1 -1
  50. package/dist/chunks/libs/package-manager-detector.mjs +1 -1
  51. package/dist/chunks/libs/pako.mjs +2 -2
  52. package/dist/chunks/libs/pretty-ms.mjs +1 -1
  53. package/dist/chunks/libs/remeda.mjs +1 -1
  54. package/dist/chunks/libs/ufo.mjs +1 -1
  55. package/dist/chunks/libs/unstorage.mjs +1 -1
  56. package/dist/chunks/libs/which.mjs +1 -1
  57. package/dist/chunks/node.mjs +60 -60
  58. package/dist/chunks/rolldown-runtime.mjs +1 -1
  59. package/dist/chunks/sequence-view.mjs +1 -1
  60. package/dist/chunks/vite-plugin.mjs +55 -52
  61. package/dist/cli/index.d.mts +1 -1
  62. package/dist/cli/index.mjs +208 -1300
  63. package/dist/config/index.d.mts +2 -2
  64. package/dist/generators/likec4.d.mts +6578 -0
  65. package/dist/generators/likec4.mjs +1 -0
  66. package/dist/index.d.mts +3 -3
  67. package/dist/model/index.d.mts +8 -5
  68. package/dist/vite-plugin/index.d.mts +6 -3
  69. package/dist/vite-plugin/index.mjs +1 -1
  70. package/dist/vite-plugin/internal/chunks/rolldown-runtime.mjs +9 -0
  71. package/dist/vite-plugin/internal/index.d.mts +16 -15
  72. package/dist/vite-plugin/internal/index.mjs +144 -46
  73. package/generators/likec4/package.json +4 -0
  74. package/package.json +117 -110
  75. package/react/index.d.mts +8500 -5399
  76. package/react/index.mjs +534 -58617
  77. package/react/rolldown-runtime-DnkiqaRY.js +1 -0
  78. package/skills/likec4-dsl/SKILL.md +428 -0
  79. package/skills/likec4-dsl/evals/evals-public.json +202 -0
  80. package/skills/likec4-dsl/evals/grading-spec.json +589 -0
  81. package/skills/likec4-dsl/references/bridge-leanix-drawio.md +42 -0
  82. package/skills/likec4-dsl/references/cli.md +139 -0
  83. package/skills/likec4-dsl/references/configuration.md +266 -0
  84. package/skills/likec4-dsl/references/deployment.md +160 -0
  85. package/skills/likec4-dsl/references/dynamic-views.md +455 -0
  86. package/skills/likec4-dsl/references/examples.md +370 -0
  87. package/skills/likec4-dsl/references/identifier-validity.md +90 -0
  88. package/skills/likec4-dsl/references/include-predicates-wildcards.md +179 -0
  89. package/skills/likec4-dsl/references/model.md +151 -0
  90. package/skills/likec4-dsl/references/predicates.md +123 -0
  91. package/skills/likec4-dsl/references/relationships-bidirectional.md +176 -0
  92. package/skills/likec4-dsl/references/specification.md +75 -0
  93. package/skills/likec4-dsl/references/style-tokens-colors.md +150 -0
  94. package/skills/likec4-dsl/references/troubleshooting.md +96 -0
  95. package/skills/likec4-dsl/references/views.md +329 -0
  96. package/vite-plugin-modules.d.ts +4 -2
  97. package/dist/chunks/libs/picomatch.mjs +0 -1
  98. package/dist/chunks/libs/zod.d.mts +0 -2140
  99. package/dist/chunks/libs/zod.mjs +0 -65
@@ -1,15 +1,15 @@
1
1
  import { i as __name } from "./rolldown-runtime.mjs";
2
- import { _ as input, a as ZodDefault, b as $strict, c as ZodLiteral, d as ZodOptional, f as ZodPipe, g as ZodUnion, h as ZodTransform, i as ZodCustom, l as ZodNumber, m as ZodString, n as ZodArray, o as ZodEnum, p as ZodRecord, r as ZodBoolean, s as ZodInt, t as ZodAny, u as ZodObject, v as output, x as $strip, y as $partial } from "./libs/zod.mjs";
2
+ import z from "zod/v4";
3
3
  import { LikeC4ProjectStylesConfig, LikeC4ProjectTheme, ProjectId, ThemeColorValues as ThemeColorValues$1, aux } from "@likec4/core/types";
4
4
  import { DeploymentElementModel, DeploymentRelationModel, ElementModel, LikeC4Model, LikeC4ViewModel, RelationshipModel } from "@likec4/core/model";
5
5
  //#region ../config/dist/chunks/index.d.mts
6
6
  //#region src/schema.include.d.ts
7
- declare const IncludeSchema: ZodObject<{
8
- paths: ZodArray<ZodString>;
9
- maxDepth: ZodDefault<ZodNumber>;
10
- fileThreshold: ZodDefault<ZodNumber>;
11
- }, $strict>;
12
- type IncludeConfig = output<typeof IncludeSchema>;
7
+ declare const IncludeSchema: z.ZodObject<{
8
+ paths: z.ZodArray<z.ZodString>;
9
+ maxDepth: z.ZodDefault<z.ZodNumber>;
10
+ fileThreshold: z.ZodDefault<z.ZodNumber>;
11
+ }, z.core.$strict>;
12
+ type IncludeConfig = z.infer<typeof IncludeSchema>;
13
13
  //#endregion
14
14
  //#region src/schema.d.ts
15
15
  interface VscodeURI {
@@ -21,96 +21,140 @@ interface VscodeURI {
21
21
  readonly fragment: string;
22
22
  toString(): string;
23
23
  }
24
- declare const LikeC4ProjectJsonConfigSchema: ZodObject<{
25
- name: ZodString;
26
- extends: ZodOptional<ZodUnion<readonly [ZodString, ZodArray<ZodString>]>>;
27
- title: ZodOptional<ZodString>;
28
- contactPerson: ZodOptional<ZodString>;
29
- metadata: ZodOptional<ZodRecord<ZodString, ZodAny>>;
30
- styles: ZodOptional<ZodPipe<ZodObject<{
31
- theme: ZodOptional<ZodPipe<ZodObject<{
32
- colors: ZodOptional<ZodPipe<ZodRecord<ZodPipe<ZodUnion<[ZodEnum<{
24
+ declare const WebappExportFormatSchema: z.ZodEnum<{
25
+ png: "png";
26
+ jpg: "jpg";
27
+ dot: "dot";
28
+ d2: "d2";
29
+ mmd: "mmd";
30
+ puml: "puml";
31
+ drawio: "drawio";
32
+ }>;
33
+ declare const RelationshipBrowserScopeSchema: z.ZodEnum<{
34
+ global: "global";
35
+ view: "view";
36
+ }>;
37
+ type RelationshipBrowserScope = z.infer<typeof RelationshipBrowserScopeSchema>;
38
+ declare const RelationshipsBrowserConfigSchema: z.ZodObject<{
39
+ defaultScope: z.ZodDefault<z.ZodEnum<{
40
+ global: "global";
41
+ view: "view";
42
+ }>>;
43
+ }, z.core.$strict>;
44
+ declare const WebappConfigSchema: z.ZodObject<{
45
+ exportFormats: z.ZodDefault<z.ZodArray<z.ZodEnum<{
46
+ png: "png";
47
+ jpg: "jpg";
48
+ dot: "dot";
49
+ d2: "d2";
50
+ mmd: "mmd";
51
+ puml: "puml";
52
+ drawio: "drawio";
53
+ }>>>;
54
+ relationshipsBrowser: z.ZodOptional<z.ZodObject<{
55
+ defaultScope: z.ZodDefault<z.ZodEnum<{
56
+ global: "global";
57
+ view: "view";
58
+ }>>;
59
+ }, z.core.$strict>>;
60
+ }, z.core.$strict>;
61
+ type WebappConfig = z.infer<typeof WebappConfigSchema>;
62
+ declare const LikeC4ProjectJsonConfigSchema: z.ZodObject<{
63
+ name: z.ZodString;
64
+ extends: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
65
+ title: z.ZodOptional<z.ZodString>;
66
+ contactPerson: z.ZodOptional<z.ZodString>;
67
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
68
+ styles: z.ZodOptional<z.ZodPipe<z.ZodObject<{
69
+ theme: z.ZodOptional<z.ZodPipe<z.ZodObject<{
70
+ colors: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
33
71
  [x: string]: any;
34
- }>, ZodPipe<ZodCustom<string & Record<never, never>, string & Record<never, never>>, ZodTransform<any, string & Record<never, never>>>]>, ZodTransform<any, any>> & $partial, ZodPipe<ZodUnion<[ZodPipe<ZodObject<{
35
- elements: ZodUnion<[ZodPipe<ZodObject<{
36
- fill: ZodString;
37
- stroke: ZodString;
38
- hiContrast: ZodString;
39
- loContrast: ZodString;
40
- }, $strict>, ZodTransform<any, {
72
+ }>, z.ZodPipe<z.ZodCustom<string & Record<never, never>, string & Record<never, never>>, z.ZodTransform<any, string & Record<never, never>>>]>, z.ZodTransform<any, any>> & z.core.$partial, z.ZodPipe<z.ZodUnion<[z.ZodPipe<z.ZodObject<{
73
+ elements: z.ZodUnion<[z.ZodPipe<z.ZodObject<{
74
+ fill: z.ZodString;
75
+ stroke: z.ZodString;
76
+ hiContrast: z.ZodString;
77
+ loContrast: z.ZodString;
78
+ }, z.core.$strict>, z.ZodTransform<any, {
41
79
  fill: string;
42
80
  stroke: string;
43
81
  hiContrast: string;
44
82
  loContrast: string;
45
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>;
46
- relationships: ZodUnion<[ZodPipe<ZodObject<{
47
- line: ZodString;
48
- label: ZodString;
49
- labelBg: ZodDefault<ZodOptional<ZodString>>;
50
- }, $strict>, ZodTransform<any, {
83
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>;
84
+ relationships: z.ZodUnion<[z.ZodPipe<z.ZodObject<{
85
+ line: z.ZodString;
86
+ label: z.ZodString;
87
+ labelBg: z.ZodDefault<z.ZodOptional<z.ZodString>>;
88
+ }, z.core.$strict>, z.ZodTransform<any, {
51
89
  line: string;
52
90
  label: string;
53
91
  labelBg: string;
54
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>;
55
- }, $strict>, ZodTransform<any, {
92
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>;
93
+ }, z.core.$strict>, z.ZodTransform<any, {
56
94
  elements: any;
57
95
  relationships: any;
58
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>, ZodTransform<any, any>>>, ZodTransform<Record<ThemeColor, ThemeColorValues>, Partial<Record<any, any>>>>>;
59
- sizes: ZodOptional<ZodRecord<ZodEnum<{
96
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>, z.ZodTransform<any, any>>>, z.ZodTransform<Record<ThemeColor, ThemeColorValues>, Partial<Record<any, any>>>>>;
97
+ sizes: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
60
98
  [x: string]: any;
61
- }> & $partial, ZodObject<{
62
- width: ZodNumber;
63
- height: ZodNumber;
64
- }, $strict>>>;
65
- }, $strict>, ZodTransform<any, {
99
+ }> & z.core.$partial, z.ZodObject<{
100
+ width: z.ZodNumber;
101
+ height: z.ZodNumber;
102
+ }, z.core.$strict>>>;
103
+ }, z.core.$strict>, z.ZodTransform<any, {
66
104
  colors?: Record<ThemeColor, ThemeColorValues> | undefined;
67
105
  sizes?: Partial<Record<any, {
68
106
  width: number;
69
107
  height: number;
70
108
  }>> | undefined;
71
109
  }>>>;
72
- defaults: ZodOptional<ZodObject<{
73
- color: ZodOptional<ZodPipe<ZodUnion<[ZodEnum<{
110
+ defaults: z.ZodOptional<z.ZodObject<{
111
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
74
112
  [x: string]: any;
75
- }>, ZodPipe<ZodCustom<string & Record<never, never>, string & Record<never, never>>, ZodTransform<any, string & Record<never, never>>>]>, ZodTransform<any, any>>>;
76
- opacity: ZodOptional<ZodInt>;
77
- border: ZodOptional<ZodEnum<{
113
+ }>, z.ZodPipe<z.ZodCustom<string & Record<never, never>, string & Record<never, never>>, z.ZodTransform<any, string & Record<never, never>>>]>, z.ZodTransform<any, any>>>;
114
+ opacity: z.ZodOptional<z.ZodInt>;
115
+ border: z.ZodOptional<z.ZodEnum<{
78
116
  [x: string]: any;
79
117
  }>>;
80
- size: ZodOptional<ZodEnum<{
118
+ size: z.ZodOptional<z.ZodEnum<{
81
119
  [x: string]: any;
82
120
  }>>;
83
- shape: ZodOptional<ZodEnum<{
121
+ shape: z.ZodOptional<z.ZodEnum<{
84
122
  [x: string]: any;
85
123
  }>>;
86
- iconPosition: ZodOptional<ZodEnum<{
124
+ iconPosition: z.ZodOptional<z.ZodEnum<{
87
125
  [x: string]: any;
88
126
  }>>;
89
- group: ZodOptional<ZodObject<{
90
- color: ZodOptional<ZodPipe<ZodUnion<[ZodEnum<{
127
+ group: z.ZodOptional<z.ZodObject<{
128
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
91
129
  [x: string]: any;
92
- }>, ZodPipe<ZodCustom<string & Record<never, never>, string & Record<never, never>>, ZodTransform<any, string & Record<never, never>>>]>, ZodTransform<any, any>>>;
93
- opacity: ZodOptional<ZodInt>;
94
- border: ZodOptional<ZodEnum<{
130
+ }>, z.ZodPipe<z.ZodCustom<string & Record<never, never>, string & Record<never, never>>, z.ZodTransform<any, string & Record<never, never>>>]>, z.ZodTransform<any, any>>>;
131
+ opacity: z.ZodOptional<z.ZodInt>;
132
+ border: z.ZodOptional<z.ZodEnum<{
95
133
  [x: string]: any;
96
134
  }>>;
97
- }, $strict>>;
98
- relationship: ZodOptional<ZodObject<{
99
- color: ZodOptional<ZodPipe<ZodUnion<[ZodEnum<{
135
+ }, z.core.$strict>>;
136
+ relationship: z.ZodOptional<z.ZodObject<{
137
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
100
138
  [x: string]: any;
101
- }>, ZodPipe<ZodCustom<string & Record<never, never>, string & Record<never, never>>, ZodTransform<any, string & Record<never, never>>>]>, ZodTransform<any, any>>>;
102
- line: ZodOptional<ZodEnum<{
139
+ }>, z.ZodPipe<z.ZodCustom<string & Record<never, never>, string & Record<never, never>>, z.ZodTransform<any, string & Record<never, never>>>]>, z.ZodTransform<any, any>>>;
140
+ line: z.ZodOptional<z.ZodEnum<{
103
141
  dashed: "dashed";
104
142
  solid: "solid";
105
143
  dotted: "dotted";
106
144
  }>>;
107
- arrow: ZodOptional<ZodEnum<{
145
+ arrow: z.ZodOptional<z.ZodEnum<{
108
146
  [x: string]: any;
109
147
  }>>;
110
- }, $strict>>;
111
- }, $strict>>;
112
- customCss: ZodOptional<ZodUnion<readonly [ZodString, ZodArray<ZodString>]>>;
113
- }, $strict>, ZodTransform<any, {
148
+ }, z.core.$strict>>;
149
+ view: z.ZodOptional<z.ZodObject<{
150
+ routing: z.ZodOptional<z.ZodEnum<{
151
+ spline: "spline";
152
+ ortho: "ortho";
153
+ }>>;
154
+ }, z.core.$strict>>;
155
+ }, z.core.$strict>>;
156
+ customCss: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
157
+ }, z.core.$strict>, z.ZodTransform<any, {
114
158
  theme?: any;
115
159
  defaults?: {
116
160
  color?: any;
@@ -129,30 +173,33 @@ declare const LikeC4ProjectJsonConfigSchema: ZodObject<{
129
173
  line?: "dashed" | "solid" | "dotted" | undefined;
130
174
  arrow?: any;
131
175
  } | undefined;
176
+ view?: {
177
+ routing?: "spline" | "ortho" | undefined;
178
+ } | undefined;
132
179
  } | undefined;
133
180
  customCss?: string | string[] | undefined;
134
181
  }>>>;
135
- imageAliases: ZodOptional<ZodRecord<ZodString, ZodString>>;
136
- include: ZodOptional<ZodObject<{
137
- paths: ZodArray<ZodString>;
138
- maxDepth: ZodDefault<ZodNumber>;
139
- fileThreshold: ZodDefault<ZodNumber>;
140
- }, $strict>>;
141
- exclude: ZodOptional<ZodArray<ZodString>>;
142
- manualLayouts: ZodOptional<ZodObject<{
143
- outDir: ZodDefault<ZodString>;
144
- }, $strict>>;
145
- inferTechnologyFromIcon: ZodOptional<ZodBoolean>;
146
- implicitViews: ZodOptional<ZodBoolean>;
147
- landingPage: ZodOptional<ZodUnion<readonly [ZodObject<{
148
- redirect: ZodLiteral<true>;
149
- }, $strict>, ZodObject<{
150
- include: ZodArray<ZodString>;
151
- }, $strict>, ZodObject<{
152
- exclude: ZodArray<ZodString>;
153
- }, $strict>]>>;
154
- webapp: ZodOptional<ZodObject<{
155
- exportFormats: ZodDefault<ZodArray<ZodEnum<{
182
+ imageAliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
183
+ include: z.ZodOptional<z.ZodObject<{
184
+ paths: z.ZodArray<z.ZodString>;
185
+ maxDepth: z.ZodDefault<z.ZodNumber>;
186
+ fileThreshold: z.ZodDefault<z.ZodNumber>;
187
+ }, z.core.$strict>>;
188
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
189
+ manualLayouts: z.ZodOptional<z.ZodObject<{
190
+ outDir: z.ZodDefault<z.ZodString>;
191
+ }, z.core.$strict>>;
192
+ inferTechnologyFromIcon: z.ZodOptional<z.ZodBoolean>;
193
+ implicitViews: z.ZodOptional<z.ZodBoolean>;
194
+ landingPage: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
195
+ redirect: z.ZodLiteral<true>;
196
+ }, z.core.$strict>, z.ZodObject<{
197
+ include: z.ZodArray<z.ZodString>;
198
+ }, z.core.$strict>, z.ZodObject<{
199
+ exclude: z.ZodArray<z.ZodString>;
200
+ }, z.core.$strict>]>>;
201
+ webapp: z.ZodOptional<z.ZodObject<{
202
+ exportFormats: z.ZodDefault<z.ZodArray<z.ZodEnum<{
156
203
  png: "png";
157
204
  jpg: "jpg";
158
205
  dot: "dot";
@@ -161,9 +208,15 @@ declare const LikeC4ProjectJsonConfigSchema: ZodObject<{
161
208
  puml: "puml";
162
209
  drawio: "drawio";
163
210
  }>>>;
164
- }, $strict>>;
165
- }, $strip>;
166
- type LikeC4ProjectJsonConfig = input<typeof LikeC4ProjectJsonConfigSchema>;
211
+ relationshipsBrowser: z.ZodOptional<z.ZodObject<{
212
+ defaultScope: z.ZodDefault<z.ZodEnum<{
213
+ global: "global";
214
+ view: "view";
215
+ }>>;
216
+ }, z.core.$strict>>;
217
+ }, z.core.$strict>>;
218
+ }, z.core.$strip>;
219
+ type LikeC4ProjectJsonConfig = z.input<typeof LikeC4ProjectJsonConfigSchema>;
167
220
  /**
168
221
  * Result of the {@link GeneratorFnContext.locate} function
169
222
  */
@@ -264,7 +317,7 @@ interface GeneratorFn {
264
317
  * })
265
318
  * ```
266
319
  */
267
- type LikeC4ProjectConfig = output<typeof LikeC4ProjectJsonConfigSchema> & {
320
+ type LikeC4ProjectConfig = z.infer<typeof LikeC4ProjectJsonConfigSchema> & {
268
321
  /**
269
322
  * Add custom generators to the project
270
323
  * @example
@@ -303,162 +356,168 @@ declare function parseProjectConfigJSON(config: string): LikeC4ProjectConfig;
303
356
  declare const LikeC4ProjectConfigOps: {
304
357
  parse: typeof parseProjectConfigJSON;
305
358
  validate: typeof validateProjectConfig;
306
- normalizeInclude: (include: input<typeof IncludeSchema> | undefined) => IncludeConfig;
359
+ normalizeInclude: (include: z.input<typeof IncludeSchema> | undefined) => IncludeConfig;
307
360
  };
308
361
  //#endregion
309
362
  //#region src/schema.theme.d.ts
310
- declare const ThemeColorValuesSchema: ZodPipe<ZodUnion<[ZodPipe<ZodObject<{
311
- elements: ZodUnion<[ZodPipe<ZodObject<{
312
- fill: ZodString;
313
- stroke: ZodString;
314
- hiContrast: ZodString;
315
- loContrast: ZodString;
316
- }, $strict>, ZodTransform<any, {
363
+ declare const ThemeColorValuesSchema: z.ZodPipe<z.ZodUnion<[z.ZodPipe<z.ZodObject<{
364
+ elements: z.ZodUnion<[z.ZodPipe<z.ZodObject<{
365
+ fill: z.ZodString;
366
+ stroke: z.ZodString;
367
+ hiContrast: z.ZodString;
368
+ loContrast: z.ZodString;
369
+ }, z.core.$strict>, z.ZodTransform<any, {
317
370
  fill: string;
318
371
  stroke: string;
319
372
  hiContrast: string;
320
373
  loContrast: string;
321
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>;
322
- relationships: ZodUnion<[ZodPipe<ZodObject<{
323
- line: ZodString;
324
- label: ZodString;
325
- labelBg: ZodDefault<ZodOptional<ZodString>>;
326
- }, $strict>, ZodTransform<any, {
374
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>;
375
+ relationships: z.ZodUnion<[z.ZodPipe<z.ZodObject<{
376
+ line: z.ZodString;
377
+ label: z.ZodString;
378
+ labelBg: z.ZodDefault<z.ZodOptional<z.ZodString>>;
379
+ }, z.core.$strict>, z.ZodTransform<any, {
327
380
  line: string;
328
381
  label: string;
329
382
  labelBg: string;
330
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>;
331
- }, $strict>, ZodTransform<any, {
383
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>;
384
+ }, z.core.$strict>, z.ZodTransform<any, {
332
385
  elements: any;
333
386
  relationships: any;
334
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>, ZodTransform<any, any>>;
335
- type ThemeColorValuesInput = input<typeof ThemeColorValuesSchema>;
336
- declare const LikeC4Config_Styles_Theme: ZodPipe<ZodObject<{
337
- colors: ZodOptional<ZodPipe<ZodRecord<ZodPipe<ZodUnion<[ZodEnum<{
387
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>, z.ZodTransform<any, any>>;
388
+ type ThemeColorValuesInput = z.input<typeof ThemeColorValuesSchema>;
389
+ declare const LikeC4Config_Styles_Theme: z.ZodPipe<z.ZodObject<{
390
+ colors: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
338
391
  [x: string]: any;
339
- }>, ZodPipe<ZodCustom<string & Record<never, never>, string & Record<never, never>>, ZodTransform<any, string & Record<never, never>>>]>, ZodTransform<any, any>> & $partial, ZodPipe<ZodUnion<[ZodPipe<ZodObject<{
340
- elements: ZodUnion<[ZodPipe<ZodObject<{
341
- fill: ZodString;
342
- stroke: ZodString;
343
- hiContrast: ZodString;
344
- loContrast: ZodString;
345
- }, $strict>, ZodTransform<any, {
392
+ }>, z.ZodPipe<z.ZodCustom<string & Record<never, never>, string & Record<never, never>>, z.ZodTransform<any, string & Record<never, never>>>]>, z.ZodTransform<any, any>> & z.core.$partial, z.ZodPipe<z.ZodUnion<[z.ZodPipe<z.ZodObject<{
393
+ elements: z.ZodUnion<[z.ZodPipe<z.ZodObject<{
394
+ fill: z.ZodString;
395
+ stroke: z.ZodString;
396
+ hiContrast: z.ZodString;
397
+ loContrast: z.ZodString;
398
+ }, z.core.$strict>, z.ZodTransform<any, {
346
399
  fill: string;
347
400
  stroke: string;
348
401
  hiContrast: string;
349
402
  loContrast: string;
350
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>;
351
- relationships: ZodUnion<[ZodPipe<ZodObject<{
352
- line: ZodString;
353
- label: ZodString;
354
- labelBg: ZodDefault<ZodOptional<ZodString>>;
355
- }, $strict>, ZodTransform<any, {
403
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>;
404
+ relationships: z.ZodUnion<[z.ZodPipe<z.ZodObject<{
405
+ line: z.ZodString;
406
+ label: z.ZodString;
407
+ labelBg: z.ZodDefault<z.ZodOptional<z.ZodString>>;
408
+ }, z.core.$strict>, z.ZodTransform<any, {
356
409
  line: string;
357
410
  label: string;
358
411
  labelBg: string;
359
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>;
360
- }, $strict>, ZodTransform<any, {
412
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>;
413
+ }, z.core.$strict>, z.ZodTransform<any, {
361
414
  elements: any;
362
415
  relationships: any;
363
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>, ZodTransform<any, any>>>, ZodTransform<Record<ThemeColor, ThemeColorValues>, Partial<Record<any, any>>>>>;
364
- sizes: ZodOptional<ZodRecord<ZodEnum<{
416
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>, z.ZodTransform<any, any>>>, z.ZodTransform<Record<ThemeColor, ThemeColorValues>, Partial<Record<any, any>>>>>;
417
+ sizes: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
365
418
  [x: string]: any;
366
- }> & $partial, ZodObject<{
367
- width: ZodNumber;
368
- height: ZodNumber;
369
- }, $strict>>>;
370
- }, $strict>, ZodTransform<any, {
419
+ }> & z.core.$partial, z.ZodObject<{
420
+ width: z.ZodNumber;
421
+ height: z.ZodNumber;
422
+ }, z.core.$strict>>>;
423
+ }, z.core.$strict>, z.ZodTransform<any, {
371
424
  colors?: Record<ThemeColor, ThemeColorValues> | undefined;
372
425
  sizes?: Partial<Record<any, {
373
426
  width: number;
374
427
  height: number;
375
428
  }>> | undefined;
376
429
  }>>;
377
- type LikeC4ConfigThemeInput = input<typeof LikeC4Config_Styles_Theme>;
378
- declare const LikeC4StylesConfigSchema: ZodPipe<ZodObject<{
379
- theme: ZodOptional<ZodPipe<ZodObject<{
380
- colors: ZodOptional<ZodPipe<ZodRecord<ZodPipe<ZodUnion<[ZodEnum<{
430
+ type LikeC4ConfigThemeInput = z.input<typeof LikeC4Config_Styles_Theme>;
431
+ declare const LikeC4StylesConfigSchema: z.ZodPipe<z.ZodObject<{
432
+ theme: z.ZodOptional<z.ZodPipe<z.ZodObject<{
433
+ colors: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
381
434
  [x: string]: any;
382
- }>, ZodPipe<ZodCustom<string & Record<never, never>, string & Record<never, never>>, ZodTransform<any, string & Record<never, never>>>]>, ZodTransform<any, any>> & $partial, ZodPipe<ZodUnion<[ZodPipe<ZodObject<{
383
- elements: ZodUnion<[ZodPipe<ZodObject<{
384
- fill: ZodString;
385
- stroke: ZodString;
386
- hiContrast: ZodString;
387
- loContrast: ZodString;
388
- }, $strict>, ZodTransform<any, {
435
+ }>, z.ZodPipe<z.ZodCustom<string & Record<never, never>, string & Record<never, never>>, z.ZodTransform<any, string & Record<never, never>>>]>, z.ZodTransform<any, any>> & z.core.$partial, z.ZodPipe<z.ZodUnion<[z.ZodPipe<z.ZodObject<{
436
+ elements: z.ZodUnion<[z.ZodPipe<z.ZodObject<{
437
+ fill: z.ZodString;
438
+ stroke: z.ZodString;
439
+ hiContrast: z.ZodString;
440
+ loContrast: z.ZodString;
441
+ }, z.core.$strict>, z.ZodTransform<any, {
389
442
  fill: string;
390
443
  stroke: string;
391
444
  hiContrast: string;
392
445
  loContrast: string;
393
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>;
394
- relationships: ZodUnion<[ZodPipe<ZodObject<{
395
- line: ZodString;
396
- label: ZodString;
397
- labelBg: ZodDefault<ZodOptional<ZodString>>;
398
- }, $strict>, ZodTransform<any, {
446
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>;
447
+ relationships: z.ZodUnion<[z.ZodPipe<z.ZodObject<{
448
+ line: z.ZodString;
449
+ label: z.ZodString;
450
+ labelBg: z.ZodDefault<z.ZodOptional<z.ZodString>>;
451
+ }, z.core.$strict>, z.ZodTransform<any, {
399
452
  line: string;
400
453
  label: string;
401
454
  labelBg: string;
402
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>;
403
- }, $strict>, ZodTransform<any, {
455
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>;
456
+ }, z.core.$strict>, z.ZodTransform<any, {
404
457
  elements: any;
405
458
  relationships: any;
406
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>, ZodTransform<any, any>>>, ZodTransform<Record<ThemeColor, ThemeColorValues>, Partial<Record<any, any>>>>>;
407
- sizes: ZodOptional<ZodRecord<ZodEnum<{
459
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>, z.ZodTransform<any, any>>>, z.ZodTransform<Record<ThemeColor, ThemeColorValues>, Partial<Record<any, any>>>>>;
460
+ sizes: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
408
461
  [x: string]: any;
409
- }> & $partial, ZodObject<{
410
- width: ZodNumber;
411
- height: ZodNumber;
412
- }, $strict>>>;
413
- }, $strict>, ZodTransform<any, {
462
+ }> & z.core.$partial, z.ZodObject<{
463
+ width: z.ZodNumber;
464
+ height: z.ZodNumber;
465
+ }, z.core.$strict>>>;
466
+ }, z.core.$strict>, z.ZodTransform<any, {
414
467
  colors?: Record<ThemeColor, ThemeColorValues> | undefined;
415
468
  sizes?: Partial<Record<any, {
416
469
  width: number;
417
470
  height: number;
418
471
  }>> | undefined;
419
472
  }>>>;
420
- defaults: ZodOptional<ZodObject<{
421
- color: ZodOptional<ZodPipe<ZodUnion<[ZodEnum<{
473
+ defaults: z.ZodOptional<z.ZodObject<{
474
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
422
475
  [x: string]: any;
423
- }>, ZodPipe<ZodCustom<string & Record<never, never>, string & Record<never, never>>, ZodTransform<any, string & Record<never, never>>>]>, ZodTransform<any, any>>>;
424
- opacity: ZodOptional<ZodInt>;
425
- border: ZodOptional<ZodEnum<{
476
+ }>, z.ZodPipe<z.ZodCustom<string & Record<never, never>, string & Record<never, never>>, z.ZodTransform<any, string & Record<never, never>>>]>, z.ZodTransform<any, any>>>;
477
+ opacity: z.ZodOptional<z.ZodInt>;
478
+ border: z.ZodOptional<z.ZodEnum<{
426
479
  [x: string]: any;
427
480
  }>>;
428
- size: ZodOptional<ZodEnum<{
481
+ size: z.ZodOptional<z.ZodEnum<{
429
482
  [x: string]: any;
430
483
  }>>;
431
- shape: ZodOptional<ZodEnum<{
484
+ shape: z.ZodOptional<z.ZodEnum<{
432
485
  [x: string]: any;
433
486
  }>>;
434
- iconPosition: ZodOptional<ZodEnum<{
487
+ iconPosition: z.ZodOptional<z.ZodEnum<{
435
488
  [x: string]: any;
436
489
  }>>;
437
- group: ZodOptional<ZodObject<{
438
- color: ZodOptional<ZodPipe<ZodUnion<[ZodEnum<{
490
+ group: z.ZodOptional<z.ZodObject<{
491
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
439
492
  [x: string]: any;
440
- }>, ZodPipe<ZodCustom<string & Record<never, never>, string & Record<never, never>>, ZodTransform<any, string & Record<never, never>>>]>, ZodTransform<any, any>>>;
441
- opacity: ZodOptional<ZodInt>;
442
- border: ZodOptional<ZodEnum<{
493
+ }>, z.ZodPipe<z.ZodCustom<string & Record<never, never>, string & Record<never, never>>, z.ZodTransform<any, string & Record<never, never>>>]>, z.ZodTransform<any, any>>>;
494
+ opacity: z.ZodOptional<z.ZodInt>;
495
+ border: z.ZodOptional<z.ZodEnum<{
443
496
  [x: string]: any;
444
497
  }>>;
445
- }, $strict>>;
446
- relationship: ZodOptional<ZodObject<{
447
- color: ZodOptional<ZodPipe<ZodUnion<[ZodEnum<{
498
+ }, z.core.$strict>>;
499
+ relationship: z.ZodOptional<z.ZodObject<{
500
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
448
501
  [x: string]: any;
449
- }>, ZodPipe<ZodCustom<string & Record<never, never>, string & Record<never, never>>, ZodTransform<any, string & Record<never, never>>>]>, ZodTransform<any, any>>>;
450
- line: ZodOptional<ZodEnum<{
502
+ }>, z.ZodPipe<z.ZodCustom<string & Record<never, never>, string & Record<never, never>>, z.ZodTransform<any, string & Record<never, never>>>]>, z.ZodTransform<any, any>>>;
503
+ line: z.ZodOptional<z.ZodEnum<{
451
504
  dashed: "dashed";
452
505
  solid: "solid";
453
506
  dotted: "dotted";
454
507
  }>>;
455
- arrow: ZodOptional<ZodEnum<{
508
+ arrow: z.ZodOptional<z.ZodEnum<{
456
509
  [x: string]: any;
457
510
  }>>;
458
- }, $strict>>;
459
- }, $strict>>;
460
- customCss: ZodOptional<ZodUnion<readonly [ZodString, ZodArray<ZodString>]>>;
461
- }, $strict>, ZodTransform<any, {
511
+ }, z.core.$strict>>;
512
+ view: z.ZodOptional<z.ZodObject<{
513
+ routing: z.ZodOptional<z.ZodEnum<{
514
+ spline: "spline";
515
+ ortho: "ortho";
516
+ }>>;
517
+ }, z.core.$strict>>;
518
+ }, z.core.$strict>>;
519
+ customCss: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
520
+ }, z.core.$strict>, z.ZodTransform<any, {
462
521
  theme?: any;
463
522
  defaults?: {
464
523
  color?: any;
@@ -477,11 +536,18 @@ declare const LikeC4StylesConfigSchema: ZodPipe<ZodObject<{
477
536
  line?: "dashed" | "solid" | "dotted" | undefined;
478
537
  arrow?: any;
479
538
  } | undefined;
539
+ view?: {
540
+ routing?: "spline" | "ortho" | undefined;
541
+ } | undefined;
480
542
  } | undefined;
481
543
  customCss?: string | string[] | undefined;
482
544
  }>>;
483
- interface LikeC4StylesConfig extends output<typeof LikeC4StylesConfigSchema> {}
484
- type LikeC4StylesConfigInput = input<typeof LikeC4StylesConfigSchema>;
545
+ interface LikeC4StylesConfig extends z.infer<typeof LikeC4StylesConfigSchema> {}
546
+ type LikeC4StylesConfigInput = z.input<typeof LikeC4StylesConfigSchema>;
547
+ //#endregion
548
+ //#region src/filenames.d.ts
549
+ /** All known LikeC4 config filenames (JSON and non-JSON). */
550
+ declare const ConfigFilenames: readonly [".likec4rc", ".likec4.config.json", "likec4.config.json", "likec4.config.js", "likec4.config.cjs", "likec4.config.mjs", "likec4.config.ts", "likec4.config.cts", "likec4.config.mts"];
485
551
  /** Returns true if the **basename** of the given path matches a known config filename. */
486
552
  declare function isLikeC4JsonConfig(filename: string): boolean;
487
553
  /**
@@ -601,4 +667,4 @@ declare function defineTheme<const S extends LikeC4ConfigThemeInput>(theme: S):
601
667
  */
602
668
  declare function defineStyle<const S extends LikeC4StylesConfigInput>(styles: S): LikeC4ProjectStylesConfig;
603
669
  //#endregion
604
- export { isLikeC4JsonConfig as _, LikeC4ProjectConfig as a, LikeC4ProjectJsonConfig as c, defineConfig as d, defineGenerators as f, isLikeC4Config as g, defineThemeColor as h, IncludeConfig as i, LikeC4StylesConfig as l, defineTheme as m, GeneratorFnContext as n, LikeC4ProjectConfigInput as o, defineStyle as p, GeneratorFnParams as r, LikeC4ProjectConfigOps as s, GeneratorFn as t, LikeC4StylesConfigInput as u, isLikeC4NonJsonConfig as v };
670
+ export { defineGenerators as C, isLikeC4Config as D, defineThemeColor as E, isLikeC4JsonConfig as O, defineConfig as S, defineTheme as T, RelationshipsBrowserConfigSchema as _, IncludeConfig as a, WebappConfigSchema as b, LikeC4ProjectConfigInput as c, LikeC4StylesConfig as d, LikeC4StylesConfigInput as f, RelationshipBrowserScopeSchema as g, RelationshipBrowserScope as h, GeneratorFnParams as i, isLikeC4NonJsonConfig as k, LikeC4ProjectConfigOps as l, LocateResult as m, GeneratorFn as n, LikeC4ConfigThemeInput as o, LikeC4StylesConfigSchema as p, GeneratorFnContext as r, LikeC4ProjectConfig as s, ConfigFilenames as t, LikeC4ProjectJsonConfig as u, ThemeColorValuesInput as v, defineStyle as w, WebappExportFormatSchema as x, WebappConfig as y };