likec4 1.59.4 → 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 (96) 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 +3995 -1779
  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 -369
  9. package/__app__/src/chunks/libs/@floating-ui.mjs +2720 -1966
  10. package/__app__/src/chunks/libs/@mantine.mjs +13920 -10057
  11. package/__app__/src/chunks/libs/@tanstack-ai.mjs +2266 -1146
  12. package/__app__/src/chunks/libs/@tanstack.mjs +3152 -1926
  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 +3219 -1505
  17. package/__app__/src/chunks/libs/fast-equals.mjs +434 -210
  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 +2279 -1951
  23. package/__app__/src/fonts.css +112 -1
  24. package/__app__/src/main.mjs +40817 -21840
  25. package/__app__/src/style.css +18488 -1
  26. package/config/schema.json +122 -97
  27. package/dist/app/render-view-client.css +1 -1
  28. package/dist/app/render-view-client.js +508 -334
  29. package/dist/chunks/enableServer.mjs +1 -1
  30. package/dist/chunks/filenames.mjs +11 -9
  31. package/dist/chunks/generate-likec4.mjs +5 -0
  32. package/dist/chunks/index.d.mts +243 -183
  33. package/dist/chunks/index2.d.mts +2865 -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 +4 -1
  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 +9038 -6193
  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 +1 -1
  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 +59 -58
  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 +45 -45
  61. package/dist/cli/index.mjs +207 -1315
  62. package/dist/config/index.d.mts +2 -2
  63. package/dist/generators/likec4.d.mts +6578 -0
  64. package/dist/generators/likec4.mjs +1 -0
  65. package/dist/model/index.d.mts +4 -1
  66. package/dist/vite-plugin/index.d.mts +4 -1
  67. package/dist/vite-plugin/index.mjs +1 -1
  68. package/dist/vite-plugin/internal/chunks/rolldown-runtime.mjs +9 -0
  69. package/dist/vite-plugin/internal/index.d.mts +6 -5
  70. package/dist/vite-plugin/internal/index.mjs +83 -30
  71. package/generators/likec4/package.json +4 -0
  72. package/package.json +113 -106
  73. package/react/index.d.mts +8500 -26659
  74. package/react/index.mjs +534 -63936
  75. package/react/rolldown-runtime-DnkiqaRY.js +1 -0
  76. package/skills/likec4-dsl/SKILL.md +428 -0
  77. package/skills/likec4-dsl/evals/evals-public.json +202 -0
  78. package/skills/likec4-dsl/evals/grading-spec.json +589 -0
  79. package/skills/likec4-dsl/references/bridge-leanix-drawio.md +42 -0
  80. package/skills/likec4-dsl/references/cli.md +139 -0
  81. package/skills/likec4-dsl/references/configuration.md +266 -0
  82. package/skills/likec4-dsl/references/deployment.md +160 -0
  83. package/skills/likec4-dsl/references/dynamic-views.md +455 -0
  84. package/skills/likec4-dsl/references/examples.md +370 -0
  85. package/skills/likec4-dsl/references/identifier-validity.md +90 -0
  86. package/skills/likec4-dsl/references/include-predicates-wildcards.md +179 -0
  87. package/skills/likec4-dsl/references/model.md +151 -0
  88. package/skills/likec4-dsl/references/predicates.md +123 -0
  89. package/skills/likec4-dsl/references/relationships-bidirectional.md +176 -0
  90. package/skills/likec4-dsl/references/specification.md +75 -0
  91. package/skills/likec4-dsl/references/style-tokens-colors.md +150 -0
  92. package/skills/likec4-dsl/references/troubleshooting.md +96 -0
  93. package/skills/likec4-dsl/references/views.md +329 -0
  94. package/dist/chunks/libs/picomatch.mjs +0 -1
  95. package/dist/chunks/libs/zod.d.mts +0 -3840
  96. package/dist/chunks/libs/zod.mjs +0 -65
@@ -1,15 +1,15 @@
1
1
  import { i as __name } from "./rolldown-runtime.mjs";
2
- import { S as $strip, _ as ZodUnion, a as ZodCustom, b as $partial, c as ZodInt, d as ZodObject, f as ZodOptional, g as ZodTransform, h as ZodString, i as ZodBoolean, l as ZodLiteral, m as ZodRecord, n as ZodAny, o as ZodDefault, p as ZodPipe, r as ZodArray, s as ZodEnum, t as external_d_exports, u as ZodNumber, v as input, x as $strict, y as output } 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,15 +208,15 @@ declare const LikeC4ProjectJsonConfigSchema: ZodObject<{
161
208
  puml: "puml";
162
209
  drawio: "drawio";
163
210
  }>>>;
164
- relationshipsBrowser: ZodOptional<ZodObject<{
165
- defaultScope: ZodDefault<ZodEnum<{
211
+ relationshipsBrowser: z.ZodOptional<z.ZodObject<{
212
+ defaultScope: z.ZodDefault<z.ZodEnum<{
166
213
  global: "global";
167
214
  view: "view";
168
215
  }>>;
169
- }, $strict>>;
170
- }, $strict>>;
171
- }, $strip>;
172
- type LikeC4ProjectJsonConfig = input<typeof LikeC4ProjectJsonConfigSchema>;
216
+ }, z.core.$strict>>;
217
+ }, z.core.$strict>>;
218
+ }, z.core.$strip>;
219
+ type LikeC4ProjectJsonConfig = z.input<typeof LikeC4ProjectJsonConfigSchema>;
173
220
  /**
174
221
  * Result of the {@link GeneratorFnContext.locate} function
175
222
  */
@@ -270,7 +317,7 @@ interface GeneratorFn {
270
317
  * })
271
318
  * ```
272
319
  */
273
- type LikeC4ProjectConfig = output<typeof LikeC4ProjectJsonConfigSchema> & {
320
+ type LikeC4ProjectConfig = z.infer<typeof LikeC4ProjectJsonConfigSchema> & {
274
321
  /**
275
322
  * Add custom generators to the project
276
323
  * @example
@@ -309,162 +356,168 @@ declare function parseProjectConfigJSON(config: string): LikeC4ProjectConfig;
309
356
  declare const LikeC4ProjectConfigOps: {
310
357
  parse: typeof parseProjectConfigJSON;
311
358
  validate: typeof validateProjectConfig;
312
- normalizeInclude: (include: input<typeof IncludeSchema> | undefined) => IncludeConfig;
359
+ normalizeInclude: (include: z.input<typeof IncludeSchema> | undefined) => IncludeConfig;
313
360
  };
314
361
  //#endregion
315
362
  //#region src/schema.theme.d.ts
316
- declare const ThemeColorValuesSchema: ZodPipe<ZodUnion<[ZodPipe<ZodObject<{
317
- elements: ZodUnion<[ZodPipe<ZodObject<{
318
- fill: ZodString;
319
- stroke: ZodString;
320
- hiContrast: ZodString;
321
- loContrast: ZodString;
322
- }, $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, {
323
370
  fill: string;
324
371
  stroke: string;
325
372
  hiContrast: string;
326
373
  loContrast: string;
327
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>;
328
- relationships: ZodUnion<[ZodPipe<ZodObject<{
329
- line: ZodString;
330
- label: ZodString;
331
- labelBg: ZodDefault<ZodOptional<ZodString>>;
332
- }, $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, {
333
380
  line: string;
334
381
  label: string;
335
382
  labelBg: string;
336
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>;
337
- }, $strict>, ZodTransform<any, {
383
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>;
384
+ }, z.core.$strict>, z.ZodTransform<any, {
338
385
  elements: any;
339
386
  relationships: any;
340
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>, ZodTransform<any, any>>;
341
- type ThemeColorValuesInput = input<typeof ThemeColorValuesSchema>;
342
- declare const LikeC4Config_Styles_Theme: ZodPipe<ZodObject<{
343
- 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<{
344
391
  [x: string]: any;
345
- }>, ZodPipe<ZodCustom<string & Record<never, never>, string & Record<never, never>>, ZodTransform<any, string & Record<never, never>>>]>, ZodTransform<any, any>> & $partial, ZodPipe<ZodUnion<[ZodPipe<ZodObject<{
346
- elements: ZodUnion<[ZodPipe<ZodObject<{
347
- fill: ZodString;
348
- stroke: ZodString;
349
- hiContrast: ZodString;
350
- loContrast: ZodString;
351
- }, $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, {
352
399
  fill: string;
353
400
  stroke: string;
354
401
  hiContrast: string;
355
402
  loContrast: string;
356
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>;
357
- relationships: ZodUnion<[ZodPipe<ZodObject<{
358
- line: ZodString;
359
- label: ZodString;
360
- labelBg: ZodDefault<ZodOptional<ZodString>>;
361
- }, $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, {
362
409
  line: string;
363
410
  label: string;
364
411
  labelBg: string;
365
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>;
366
- }, $strict>, ZodTransform<any, {
412
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>;
413
+ }, z.core.$strict>, z.ZodTransform<any, {
367
414
  elements: any;
368
415
  relationships: any;
369
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>, ZodTransform<any, any>>>, ZodTransform<Record<ThemeColor, ThemeColorValues>, Partial<Record<any, any>>>>>;
370
- 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<{
371
418
  [x: string]: any;
372
- }> & $partial, ZodObject<{
373
- width: ZodNumber;
374
- height: ZodNumber;
375
- }, $strict>>>;
376
- }, $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, {
377
424
  colors?: Record<ThemeColor, ThemeColorValues> | undefined;
378
425
  sizes?: Partial<Record<any, {
379
426
  width: number;
380
427
  height: number;
381
428
  }>> | undefined;
382
429
  }>>;
383
- type LikeC4ConfigThemeInput = input<typeof LikeC4Config_Styles_Theme>;
384
- declare const LikeC4StylesConfigSchema: ZodPipe<ZodObject<{
385
- theme: ZodOptional<ZodPipe<ZodObject<{
386
- 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<{
387
434
  [x: string]: any;
388
- }>, ZodPipe<ZodCustom<string & Record<never, never>, string & Record<never, never>>, ZodTransform<any, string & Record<never, never>>>]>, ZodTransform<any, any>> & $partial, ZodPipe<ZodUnion<[ZodPipe<ZodObject<{
389
- elements: ZodUnion<[ZodPipe<ZodObject<{
390
- fill: ZodString;
391
- stroke: ZodString;
392
- hiContrast: ZodString;
393
- loContrast: ZodString;
394
- }, $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, {
395
442
  fill: string;
396
443
  stroke: string;
397
444
  hiContrast: string;
398
445
  loContrast: string;
399
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>;
400
- relationships: ZodUnion<[ZodPipe<ZodObject<{
401
- line: ZodString;
402
- label: ZodString;
403
- labelBg: ZodDefault<ZodOptional<ZodString>>;
404
- }, $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, {
405
452
  line: string;
406
453
  label: string;
407
454
  labelBg: string;
408
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>;
409
- }, $strict>, ZodTransform<any, {
455
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>;
456
+ }, z.core.$strict>, z.ZodTransform<any, {
410
457
  elements: any;
411
458
  relationships: any;
412
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>, ZodTransform<any, any>>>, ZodTransform<Record<ThemeColor, ThemeColorValues>, Partial<Record<any, any>>>>>;
413
- 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<{
414
461
  [x: string]: any;
415
- }> & $partial, ZodObject<{
416
- width: ZodNumber;
417
- height: ZodNumber;
418
- }, $strict>>>;
419
- }, $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, {
420
467
  colors?: Record<ThemeColor, ThemeColorValues> | undefined;
421
468
  sizes?: Partial<Record<any, {
422
469
  width: number;
423
470
  height: number;
424
471
  }>> | undefined;
425
472
  }>>>;
426
- defaults: ZodOptional<ZodObject<{
427
- color: ZodOptional<ZodPipe<ZodUnion<[ZodEnum<{
473
+ defaults: z.ZodOptional<z.ZodObject<{
474
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
428
475
  [x: string]: any;
429
- }>, ZodPipe<ZodCustom<string & Record<never, never>, string & Record<never, never>>, ZodTransform<any, string & Record<never, never>>>]>, ZodTransform<any, any>>>;
430
- opacity: ZodOptional<ZodInt>;
431
- 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<{
432
479
  [x: string]: any;
433
480
  }>>;
434
- size: ZodOptional<ZodEnum<{
481
+ size: z.ZodOptional<z.ZodEnum<{
435
482
  [x: string]: any;
436
483
  }>>;
437
- shape: ZodOptional<ZodEnum<{
484
+ shape: z.ZodOptional<z.ZodEnum<{
438
485
  [x: string]: any;
439
486
  }>>;
440
- iconPosition: ZodOptional<ZodEnum<{
487
+ iconPosition: z.ZodOptional<z.ZodEnum<{
441
488
  [x: string]: any;
442
489
  }>>;
443
- group: ZodOptional<ZodObject<{
444
- color: ZodOptional<ZodPipe<ZodUnion<[ZodEnum<{
490
+ group: z.ZodOptional<z.ZodObject<{
491
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
445
492
  [x: string]: any;
446
- }>, ZodPipe<ZodCustom<string & Record<never, never>, string & Record<never, never>>, ZodTransform<any, string & Record<never, never>>>]>, ZodTransform<any, any>>>;
447
- opacity: ZodOptional<ZodInt>;
448
- 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<{
449
496
  [x: string]: any;
450
497
  }>>;
451
- }, $strict>>;
452
- relationship: ZodOptional<ZodObject<{
453
- 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<{
454
501
  [x: string]: any;
455
- }>, ZodPipe<ZodCustom<string & Record<never, never>, string & Record<never, never>>, ZodTransform<any, string & Record<never, never>>>]>, ZodTransform<any, any>>>;
456
- 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<{
457
504
  dashed: "dashed";
458
505
  solid: "solid";
459
506
  dotted: "dotted";
460
507
  }>>;
461
- arrow: ZodOptional<ZodEnum<{
508
+ arrow: z.ZodOptional<z.ZodEnum<{
462
509
  [x: string]: any;
463
510
  }>>;
464
- }, $strict>>;
465
- }, $strict>>;
466
- customCss: ZodOptional<ZodUnion<readonly [ZodString, ZodArray<ZodString>]>>;
467
- }, $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, {
468
521
  theme?: any;
469
522
  defaults?: {
470
523
  color?: any;
@@ -483,11 +536,18 @@ declare const LikeC4StylesConfigSchema: ZodPipe<ZodObject<{
483
536
  line?: "dashed" | "solid" | "dotted" | undefined;
484
537
  arrow?: any;
485
538
  } | undefined;
539
+ view?: {
540
+ routing?: "spline" | "ortho" | undefined;
541
+ } | undefined;
486
542
  } | undefined;
487
543
  customCss?: string | string[] | undefined;
488
544
  }>>;
489
- interface LikeC4StylesConfig extends output<typeof LikeC4StylesConfigSchema> {}
490
- 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"];
491
551
  /** Returns true if the **basename** of the given path matches a known config filename. */
492
552
  declare function isLikeC4JsonConfig(filename: string): boolean;
493
553
  /**
@@ -607,4 +667,4 @@ declare function defineTheme<const S extends LikeC4ConfigThemeInput>(theme: S):
607
667
  */
608
668
  declare function defineStyle<const S extends LikeC4StylesConfigInput>(styles: S): LikeC4ProjectStylesConfig;
609
669
  //#endregion
610
- 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 };