likec4 1.59.4 → 1.61.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 (186) hide show
  1. package/README.md +2 -0
  2. package/__app__/codegen/react.mjs +4 -10
  3. package/__app__/codegen/webcomponent.mjs +6 -131
  4. package/__app__/index.html +15 -15
  5. package/__app__/src/aichat/index.mjs +11 -7
  6. package/__app__/src/chunks/AIChat.mjs +1355 -739
  7. package/__app__/src/chunks/ErrorComponent.mjs +444 -0
  8. package/__app__/src/chunks/Header.mjs +269 -0
  9. package/__app__/src/chunks/ViewReact.mjs +438 -0
  10. package/__app__/src/chunks/find.mjs +38 -0
  11. package/__app__/src/chunks/hooks.mjs +158 -472
  12. package/__app__/src/chunks/libs/@tabler/icons-react.mjs +340 -0
  13. package/__app__/src/chunks/libs/@tanstack-ai.mjs +11841 -1417
  14. package/__app__/src/chunks/libs/@tanstack.mjs +5110 -2404
  15. package/__app__/src/chunks/libs/fast-equals.mjs +507 -214
  16. package/__app__/src/chunks/libs/html-to-image.mjs +613 -0
  17. package/__app__/src/chunks/libs/nanostores.mjs +170 -0
  18. package/__app__/src/chunks/libs/react-resizable-panels.mjs +2792 -0
  19. package/__app__/src/chunks/react.mjs +22 -0
  20. package/__app__/src/chunks/rolldown-runtime.mjs +16 -29
  21. package/__app__/src/chunks/router.mjs +106 -0
  22. package/__app__/src/chunks/scope.mjs +106 -0
  23. package/__app__/src/chunks/searchParams.mjs +29 -0
  24. package/__app__/src/chunks/single-index.mjs +465 -0
  25. package/__app__/src/chunks/styled-system.mjs +1826 -2528
  26. package/__app__/src/chunks/useAsync.mjs +69 -0
  27. package/__app__/src/chunks/useSyncedRef.mjs +16 -0
  28. package/__app__/src/components/ColorSchemeToggle.mjs +124 -0
  29. package/__app__/src/components/CopyToClipboard.mjs +53 -0
  30. package/__app__/src/components/ErrorComponent.mjs +1 -0
  31. package/__app__/src/components/NavigationPanel.mjs +63 -0
  32. package/__app__/src/components/NotFound.mjs +155 -0
  33. package/__app__/src/components/ViewOutlet.mjs +9 -0
  34. package/__app__/src/components/model-diff/CompareModelProvider.mjs +44 -0
  35. package/__app__/src/components/model-diff/ModelDiffPanel.mjs +179 -0
  36. package/__app__/src/components/model-diff/compare-model.mjs +76 -0
  37. package/__app__/src/components/model-diff/state.mjs +45 -0
  38. package/__app__/src/components/search/OverviewSearch.mjs +92 -0
  39. package/__app__/src/components/search/OverviewSearchAdapter.mjs +94 -0
  40. package/__app__/src/components/sidebar/DiagramTree.css.mjs +48 -0
  41. package/__app__/src/components/sidebar/DiagramsTree.mjs +304 -0
  42. package/__app__/src/components/sidebar/Drawer.mjs +178 -0
  43. package/__app__/src/components/sidebar/SidebarBurger.mjs +28 -0
  44. package/__app__/src/components/sidebar/data.mjs +94 -0
  45. package/__app__/src/components/sidebar/state.mjs +16 -0
  46. package/__app__/src/components/view-page/Header.mjs +1 -0
  47. package/__app__/src/components/view-page/SelectProject.mjs +258 -0
  48. package/__app__/src/components/view-page/ShareModal.mjs +111 -0
  49. package/__app__/src/components/view-page/share-modal/AlertLocalhost.mjs +31 -0
  50. package/__app__/src/components/view-page/share-modal/CopyButtonChild.mjs +36 -0
  51. package/__app__/src/components/view-page/share-modal/EmbedPanel.mjs +100 -0
  52. package/__app__/src/components/view-page/share-modal/WebcomponentsPanel.mjs +264 -0
  53. package/__app__/src/components/view-page/state.mjs +17 -0
  54. package/__app__/src/context/LikeC4CustomizationContext.mjs +26 -0
  55. package/__app__/src/context/LikeC4IconRendererContext.mjs +29 -0
  56. package/__app__/src/context/LikeC4ModelContext.mjs +34 -0
  57. package/__app__/src/context/LikeC4ProjectsContext.mjs +40 -0
  58. package/__app__/src/context/ModelDiffsContext.mjs +33 -0
  59. package/__app__/src/context/safeCtx.mjs +14 -0
  60. package/__app__/src/fonts.css +112 -1
  61. package/__app__/src/hooks.mjs +1 -0
  62. package/__app__/src/main.mjs +6 -29151
  63. package/__app__/src/pages/EmbedPage.mjs +93 -0
  64. package/__app__/src/pages/ExportPage.mjs +691 -0
  65. package/__app__/src/pages/ProjectsOverview.mjs +23 -0
  66. package/__app__/src/pages/ViewAsD2.mjs +105 -0
  67. package/__app__/src/pages/ViewAsDot.mjs +65 -0
  68. package/__app__/src/pages/ViewAsMmd.mjs +109 -0
  69. package/__app__/src/pages/ViewAsPuml.mjs +105 -0
  70. package/__app__/src/pages/ViewEditor.mjs +220 -0
  71. package/__app__/src/pages/ViewReact.mjs +1 -0
  72. package/__app__/src/pages/export-layout.mjs +95 -0
  73. package/__app__/src/pages/export-page-params.mjs +9 -0
  74. package/__app__/src/pages/styles.css.mjs +23 -0
  75. package/__app__/src/routeTree.gen.mjs +105 -0
  76. package/__app__/src/router.mjs +1 -0
  77. package/__app__/src/routes/__root.mjs +65 -0
  78. package/__app__/src/routes/index.css.mjs +29 -0
  79. package/__app__/src/routes/index.mjs +32 -0
  80. package/__app__/src/routes/project._projectId/-components.mjs +100 -0
  81. package/__app__/src/routes/project._projectId/embed._viewId.mjs +5 -0
  82. package/__app__/src/routes/project._projectId/export._viewId.mjs +24 -0
  83. package/__app__/src/routes/project._projectId/index.mjs +14 -0
  84. package/__app__/src/routes/project._projectId/route.mjs +93 -0
  85. package/__app__/src/routes/project._projectId/view._viewId.d2.mjs +34 -0
  86. package/__app__/src/routes/project._projectId/view._viewId.dot.mjs +41 -0
  87. package/__app__/src/routes/project._projectId/view._viewId.index.mjs +7 -0
  88. package/__app__/src/routes/project._projectId/view._viewId.mjs +23 -0
  89. package/__app__/src/routes/project._projectId/view._viewId.mmd.mjs +39 -0
  90. package/__app__/src/routes/project._projectId/view._viewId.puml.mjs +34 -0
  91. package/__app__/src/routes/projects.mjs +36 -0
  92. package/__app__/src/routes/single-index.mjs +1 -0
  93. package/__app__/src/routes/webcomponent._.mjs +94 -0
  94. package/__app__/src/style.css +18497 -1
  95. package/config/schema.json +146 -97
  96. package/dist/app/render-view-client.css +1 -1
  97. package/dist/app/render-view-client.js +394 -238
  98. package/dist/chunks/enableServer.mjs +1 -1
  99. package/dist/chunks/filenames.mjs +25 -17
  100. package/dist/chunks/generate-likec4.mjs +5 -0
  101. package/dist/chunks/index.d.mts +255 -194
  102. package/dist/chunks/index2.d.mts +8246 -3610
  103. package/dist/chunks/libs/@chenglou/pretext.mjs +9 -0
  104. package/dist/chunks/libs/@chevrotain/gast.mjs +27 -1
  105. package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +81 -9
  106. package/dist/chunks/libs/@logtape/logtape.mjs +5 -4
  107. package/dist/chunks/libs/@lume/kiwi.mjs +1 -1
  108. package/dist/chunks/libs/@ts-graphviz/common.d.mts +2 -4
  109. package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -1
  110. package/dist/chunks/libs/birpc.mjs +1 -1
  111. package/dist/chunks/libs/chevrotain-allstar.mjs +2 -2
  112. package/dist/chunks/libs/chevrotain.mjs +88 -36
  113. package/dist/chunks/libs/clone.mjs +1 -0
  114. package/dist/chunks/libs/eventemitter3.mjs +1 -1
  115. package/dist/chunks/libs/fast-equals.mjs +1 -0
  116. package/dist/chunks/libs/fontkit.mjs +1 -0
  117. package/dist/chunks/libs/json5.mjs +4 -4
  118. package/dist/chunks/libs/langium.d.mts +6707 -6715
  119. package/dist/chunks/libs/langium.mjs +16 -24
  120. package/dist/chunks/libs/merge-error-cause.mjs +1 -1
  121. package/dist/chunks/libs/p-limit.mjs +1 -0
  122. package/dist/chunks/libs/p-queue.mjs +1 -1
  123. package/dist/chunks/libs/package-manager-detector.mjs +1 -1
  124. package/dist/chunks/libs/pako.mjs +1 -1
  125. package/dist/chunks/libs/pathe.mjs +1 -1
  126. package/dist/chunks/libs/pretty-ms.mjs +1 -1
  127. package/dist/chunks/libs/remeda.mjs +1 -1
  128. package/dist/chunks/libs/ufo.mjs +1 -1
  129. package/dist/chunks/libs/unstorage.mjs +1 -1
  130. package/dist/chunks/libs/which.mjs +1 -1
  131. package/dist/chunks/node.mjs +111 -77
  132. package/dist/chunks/rolldown-runtime.mjs +1 -1
  133. package/dist/chunks/sequence-view.mjs +1 -1
  134. package/dist/chunks/vite-plugin.mjs +185 -166
  135. package/dist/cli/index.mjs +254 -1306
  136. package/dist/config/index.d.mts +66 -5
  137. package/dist/config/index.mjs +1 -1
  138. package/dist/generators/likec4.d.mts +6530 -0
  139. package/dist/generators/likec4.mjs +1 -0
  140. package/dist/index.d.mts +2 -4
  141. package/dist/model/index.d.mts +0 -7
  142. package/dist/vite-plugin/index.d.mts +83 -58
  143. package/dist/vite-plugin/index.mjs +1 -1
  144. package/dist/vite-plugin/internal/chunks/rolldown-runtime.mjs +8 -0
  145. package/dist/vite-plugin/internal/index.d.mts +92 -17
  146. package/dist/vite-plugin/internal/index.mjs +225 -126
  147. package/generators/likec4/package.json +4 -0
  148. package/package.json +134 -122
  149. package/react/index.d.mts +7496 -26659
  150. package/react/index.mjs +533 -63936
  151. package/react/rolldown-runtime-CfRud99p.js +1 -0
  152. package/skills/likec4-dsl/SKILL.md +474 -0
  153. package/skills/likec4-dsl/evals/evals-public.json +207 -0
  154. package/skills/likec4-dsl/evals/grading-spec.json +603 -0
  155. package/skills/likec4-dsl/references/bridge-leanix-drawio.md +42 -0
  156. package/skills/likec4-dsl/references/cli.md +168 -0
  157. package/skills/likec4-dsl/references/configuration.md +266 -0
  158. package/skills/likec4-dsl/references/deployment.md +160 -0
  159. package/skills/likec4-dsl/references/diffs.md +52 -0
  160. package/skills/likec4-dsl/references/dynamic-views.md +455 -0
  161. package/skills/likec4-dsl/references/examples.md +370 -0
  162. package/skills/likec4-dsl/references/identifier-validity.md +90 -0
  163. package/skills/likec4-dsl/references/include-predicates-wildcards.md +180 -0
  164. package/skills/likec4-dsl/references/model.md +182 -0
  165. package/skills/likec4-dsl/references/predicates.md +123 -0
  166. package/skills/likec4-dsl/references/relationships-bidirectional.md +176 -0
  167. package/skills/likec4-dsl/references/specification.md +79 -0
  168. package/skills/likec4-dsl/references/style-tokens-colors.md +150 -0
  169. package/skills/likec4-dsl/references/troubleshooting.md +101 -0
  170. package/skills/likec4-dsl/references/views.md +329 -0
  171. package/vite-plugin-modules.d.ts +126 -51
  172. package/__app__/src/chunks/LikeC4Styles.mjs +0 -2306
  173. package/__app__/src/chunks/ProjectsOverview.mjs +0 -537
  174. package/__app__/src/chunks/es.mjs +0 -439
  175. package/__app__/src/chunks/libs/@floating-ui.mjs +0 -2532
  176. package/__app__/src/chunks/libs/@mantine.mjs +0 -13868
  177. package/__app__/src/chunks/libs/@xstate/react.mjs +0 -2015
  178. package/__app__/src/chunks/libs/@xyflow/react.mjs +0 -5367
  179. package/__app__/src/chunks/libs/bezier-js.mjs +0 -1007
  180. package/__app__/src/chunks/libs/d3.mjs +0 -2817
  181. package/__app__/src/chunks/libs/framer.mjs +0 -5926
  182. package/__app__/src/chunks/libs/zod.mjs +0 -3176
  183. package/dist/chunks/libs/@chevrotain/types.d.mts +0 -108
  184. package/dist/chunks/libs/picomatch.mjs +0 -1
  185. package/dist/chunks/libs/zod.d.mts +0 -3840
  186. package/dist/chunks/libs/zod.mjs +0 -65
@@ -1,17 +1,13 @@
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
- //#region ../config/dist/chunks/index.d.mts
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>;
13
- //#endregion
14
- //#region src/schema.d.ts
5
+ declare const IncludeSchema: z.ZodObject<{
6
+ paths: z.ZodArray<z.ZodString>;
7
+ maxDepth: z.ZodDefault<z.ZodNumber>;
8
+ fileThreshold: z.ZodDefault<z.ZodNumber>;
9
+ }, z.core.$strict>;
10
+ type IncludeConfig = z.infer<typeof IncludeSchema>;
15
11
  interface VscodeURI {
16
12
  readonly scheme: string;
17
13
  readonly authority: string;
@@ -21,96 +17,143 @@ interface VscodeURI {
21
17
  readonly fragment: string;
22
18
  toString(): string;
23
19
  }
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<{
20
+ declare const WebappExportFormatSchema: z.ZodEnum<{
21
+ png: "png";
22
+ jpg: "jpg";
23
+ dot: "dot";
24
+ d2: "d2";
25
+ mmd: "mmd";
26
+ puml: "puml";
27
+ drawio: "drawio";
28
+ }>;
29
+ declare const RelationshipBrowserScopeSchema: z.ZodEnum<{
30
+ global: "global";
31
+ view: "view";
32
+ }>;
33
+ type RelationshipBrowserScope = z.infer<typeof RelationshipBrowserScopeSchema>;
34
+ declare const RelationshipsBrowserConfigSchema: z.ZodObject<{
35
+ defaultScope: z.ZodDefault<z.ZodEnum<{
36
+ global: "global";
37
+ view: "view";
38
+ }>>;
39
+ }, z.core.$strict>;
40
+ declare const WebappConfigSchema: z.ZodObject<{
41
+ exportFormats: z.ZodDefault<z.ZodArray<z.ZodEnum<{
42
+ png: "png";
43
+ jpg: "jpg";
44
+ dot: "dot";
45
+ d2: "d2";
46
+ mmd: "mmd";
47
+ puml: "puml";
48
+ drawio: "drawio";
49
+ }>>>;
50
+ relationshipsBrowser: z.ZodOptional<z.ZodObject<{
51
+ defaultScope: z.ZodDefault<z.ZodEnum<{
52
+ global: "global";
53
+ view: "view";
54
+ }>>;
55
+ }, z.core.$strict>>;
56
+ }, z.core.$strict>;
57
+ type WebappConfig = z.infer<typeof WebappConfigSchema>;
58
+ declare const LikeC4ProjectJsonConfigSchema: z.ZodObject<{
59
+ name: z.ZodString;
60
+ extends: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
61
+ title: z.ZodOptional<z.ZodString>;
62
+ contactPerson: z.ZodOptional<z.ZodString>;
63
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
64
+ styles: z.ZodOptional<z.ZodPipe<z.ZodObject<{
65
+ theme: z.ZodOptional<z.ZodPipe<z.ZodObject<{
66
+ colors: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
33
67
  [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, {
68
+ }>, 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<{
69
+ elements: z.ZodUnion<[z.ZodPipe<z.ZodObject<{
70
+ fill: z.ZodString;
71
+ stroke: z.ZodString;
72
+ hiContrast: z.ZodString;
73
+ loContrast: z.ZodString;
74
+ }, z.core.$strict>, z.ZodTransform<any, {
41
75
  fill: string;
42
76
  stroke: string;
43
77
  hiContrast: string;
44
78
  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, {
79
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>;
80
+ relationships: z.ZodUnion<[z.ZodPipe<z.ZodObject<{
81
+ line: z.ZodString;
82
+ label: z.ZodString;
83
+ labelBg: z.ZodDefault<z.ZodOptional<z.ZodString>>;
84
+ }, z.core.$strict>, z.ZodTransform<any, {
51
85
  line: string;
52
86
  label: string;
53
87
  labelBg: string;
54
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>;
55
- }, $strict>, ZodTransform<any, {
88
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>;
89
+ }, z.core.$strict>, z.ZodTransform<any, {
56
90
  elements: any;
57
91
  relationships: any;
58
- }>>, ZodPipe<ZodString, ZodTransform<any, string>>]>, ZodTransform<any, any>>>, ZodTransform<Record<ThemeColor, ThemeColorValues>, Partial<Record<any, any>>>>>;
59
- sizes: ZodOptional<ZodRecord<ZodEnum<{
92
+ }>>, z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>]>, z.ZodTransform<any, any>>>, z.ZodTransform<Record<ThemeColor, ThemeColorValues>, Partial<Record<any, any>>>>>;
93
+ sizes: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
60
94
  [x: string]: any;
61
- }> & $partial, ZodObject<{
62
- width: ZodNumber;
63
- height: ZodNumber;
64
- }, $strict>>>;
65
- }, $strict>, ZodTransform<any, {
95
+ }> & z.core.$partial, z.ZodObject<{
96
+ width: z.ZodNumber;
97
+ height: z.ZodNumber;
98
+ }, z.core.$strict>>>;
99
+ }, z.core.$strict>, z.ZodTransform<any, {
66
100
  colors?: Record<ThemeColor, ThemeColorValues> | undefined;
67
101
  sizes?: Partial<Record<any, {
68
102
  width: number;
69
103
  height: number;
70
104
  }>> | undefined;
71
105
  }>>>;
72
- defaults: ZodOptional<ZodObject<{
73
- color: ZodOptional<ZodPipe<ZodUnion<[ZodEnum<{
106
+ defaults: z.ZodOptional<z.ZodObject<{
107
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
74
108
  [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<{
109
+ }>, z.ZodPipe<z.ZodCustom<string & Record<never, never>, string & Record<never, never>>, z.ZodTransform<any, string & Record<never, never>>>]>, z.ZodTransform<any, any>>>;
110
+ opacity: z.ZodOptional<z.ZodInt>;
111
+ border: z.ZodOptional<z.ZodEnum<{
78
112
  [x: string]: any;
79
113
  }>>;
80
- size: ZodOptional<ZodEnum<{
114
+ size: z.ZodOptional<z.ZodEnum<{
81
115
  [x: string]: any;
82
116
  }>>;
83
- shape: ZodOptional<ZodEnum<{
117
+ shape: z.ZodOptional<z.ZodEnum<{
84
118
  [x: string]: any;
85
119
  }>>;
86
- iconPosition: ZodOptional<ZodEnum<{
120
+ iconPosition: z.ZodOptional<z.ZodEnum<{
87
121
  [x: string]: any;
88
122
  }>>;
89
- group: ZodOptional<ZodObject<{
90
- color: ZodOptional<ZodPipe<ZodUnion<[ZodEnum<{
123
+ group: z.ZodOptional<z.ZodObject<{
124
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
91
125
  [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<{
126
+ }>, z.ZodPipe<z.ZodCustom<string & Record<never, never>, string & Record<never, never>>, z.ZodTransform<any, string & Record<never, never>>>]>, z.ZodTransform<any, any>>>;
127
+ opacity: z.ZodOptional<z.ZodInt>;
128
+ border: z.ZodOptional<z.ZodEnum<{
95
129
  [x: string]: any;
96
130
  }>>;
97
- }, $strict>>;
98
- relationship: ZodOptional<ZodObject<{
99
- color: ZodOptional<ZodPipe<ZodUnion<[ZodEnum<{
131
+ }, z.core.$strict>>;
132
+ relationship: z.ZodOptional<z.ZodObject<{
133
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
100
134
  [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<{
135
+ }>, z.ZodPipe<z.ZodCustom<string & Record<never, never>, string & Record<never, never>>, z.ZodTransform<any, string & Record<never, never>>>]>, z.ZodTransform<any, any>>>;
136
+ line: z.ZodOptional<z.ZodEnum<{
103
137
  dashed: "dashed";
104
138
  solid: "solid";
105
139
  dotted: "dotted";
106
140
  }>>;
107
- arrow: ZodOptional<ZodEnum<{
141
+ arrow: z.ZodOptional<z.ZodEnum<{
108
142
  [x: string]: any;
109
143
  }>>;
110
- }, $strict>>;
111
- }, $strict>>;
112
- customCss: ZodOptional<ZodUnion<readonly [ZodString, ZodArray<ZodString>]>>;
113
- }, $strict>, ZodTransform<any, {
144
+ }, z.core.$strict>>;
145
+ view: z.ZodOptional<z.ZodObject<{
146
+ routing: z.ZodOptional<z.ZodEnum<{
147
+ spline: "spline";
148
+ ortho: "ortho";
149
+ }>>;
150
+ }, z.core.$strict>>;
151
+ }, z.core.$strict>>;
152
+ customCss: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
153
+ paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
154
+ content: z.ZodString;
155
+ }, z.core.$strict>]>>;
156
+ }, z.core.$strict>, z.ZodTransform<any, {
114
157
  theme?: any;
115
158
  defaults?: {
116
159
  color?: any;
@@ -129,30 +172,36 @@ declare const LikeC4ProjectJsonConfigSchema: ZodObject<{
129
172
  line?: "dashed" | "solid" | "dotted" | undefined;
130
173
  arrow?: any;
131
174
  } | undefined;
175
+ view?: {
176
+ routing?: "spline" | "ortho" | undefined;
177
+ } | undefined;
178
+ } | undefined;
179
+ customCss?: string | string[] | {
180
+ paths: readonly string[];
181
+ content: string;
132
182
  } | undefined;
133
- customCss?: string | string[] | undefined;
134
183
  }>>>;
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<{
184
+ imageAliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
185
+ include: z.ZodOptional<z.ZodObject<{
186
+ paths: z.ZodArray<z.ZodString>;
187
+ maxDepth: z.ZodDefault<z.ZodNumber>;
188
+ fileThreshold: z.ZodDefault<z.ZodNumber>;
189
+ }, z.core.$strict>>;
190
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
191
+ manualLayouts: z.ZodOptional<z.ZodObject<{
192
+ outDir: z.ZodDefault<z.ZodString>;
193
+ }, z.core.$strict>>;
194
+ inferTechnologyFromIcon: z.ZodOptional<z.ZodBoolean>;
195
+ implicitViews: z.ZodOptional<z.ZodBoolean>;
196
+ landingPage: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
197
+ redirect: z.ZodLiteral<true>;
198
+ }, z.core.$strict>, z.ZodObject<{
199
+ include: z.ZodArray<z.ZodString>;
200
+ }, z.core.$strict>, z.ZodObject<{
201
+ exclude: z.ZodArray<z.ZodString>;
202
+ }, z.core.$strict>]>>;
203
+ webapp: z.ZodOptional<z.ZodObject<{
204
+ exportFormats: z.ZodDefault<z.ZodArray<z.ZodEnum<{
156
205
  png: "png";
157
206
  jpg: "jpg";
158
207
  dot: "dot";
@@ -161,15 +210,15 @@ declare const LikeC4ProjectJsonConfigSchema: ZodObject<{
161
210
  puml: "puml";
162
211
  drawio: "drawio";
163
212
  }>>>;
164
- relationshipsBrowser: ZodOptional<ZodObject<{
165
- defaultScope: ZodDefault<ZodEnum<{
213
+ relationshipsBrowser: z.ZodOptional<z.ZodObject<{
214
+ defaultScope: z.ZodDefault<z.ZodEnum<{
166
215
  global: "global";
167
216
  view: "view";
168
217
  }>>;
169
- }, $strict>>;
170
- }, $strict>>;
171
- }, $strip>;
172
- type LikeC4ProjectJsonConfig = input<typeof LikeC4ProjectJsonConfigSchema>;
218
+ }, z.core.$strict>>;
219
+ }, z.core.$strict>>;
220
+ }, z.core.$strip>;
221
+ type LikeC4ProjectJsonConfig = z.input<typeof LikeC4ProjectJsonConfigSchema>;
173
222
  /**
174
223
  * Result of the {@link GeneratorFnContext.locate} function
175
224
  */
@@ -270,7 +319,7 @@ interface GeneratorFn {
270
319
  * })
271
320
  * ```
272
321
  */
273
- type LikeC4ProjectConfig = output<typeof LikeC4ProjectJsonConfigSchema> & {
322
+ type LikeC4ProjectConfig = z.infer<typeof LikeC4ProjectJsonConfigSchema> & {
274
323
  /**
275
324
  * Add custom generators to the project
276
325
  * @example
@@ -309,162 +358,169 @@ declare function parseProjectConfigJSON(config: string): LikeC4ProjectConfig;
309
358
  declare const LikeC4ProjectConfigOps: {
310
359
  parse: typeof parseProjectConfigJSON;
311
360
  validate: typeof validateProjectConfig;
312
- normalizeInclude: (include: input<typeof IncludeSchema> | undefined) => IncludeConfig;
361
+ normalizeInclude: (include: z.input<typeof IncludeSchema> | undefined) => IncludeConfig;
313
362
  };
314
- //#endregion
315
- //#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.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
520
+ paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
521
+ content: z.ZodString;
522
+ }, z.core.$strict>]>>;
523
+ }, z.core.$strict>, z.ZodTransform<any, {
468
524
  theme?: any;
469
525
  defaults?: {
470
526
  color?: any;
@@ -483,11 +539,19 @@ declare const LikeC4StylesConfigSchema: ZodPipe<ZodObject<{
483
539
  line?: "dashed" | "solid" | "dotted" | undefined;
484
540
  arrow?: any;
485
541
  } | undefined;
542
+ view?: {
543
+ routing?: "spline" | "ortho" | undefined;
544
+ } | undefined;
545
+ } | undefined;
546
+ customCss?: string | string[] | {
547
+ paths: readonly string[];
548
+ content: string;
486
549
  } | undefined;
487
- customCss?: string | string[] | undefined;
488
550
  }>>;
489
- interface LikeC4StylesConfig extends output<typeof LikeC4StylesConfigSchema> {}
490
- type LikeC4StylesConfigInput = input<typeof LikeC4StylesConfigSchema>;
551
+ interface LikeC4StylesConfig extends z.infer<typeof LikeC4StylesConfigSchema> {}
552
+ type LikeC4StylesConfigInput = z.input<typeof LikeC4StylesConfigSchema>;
553
+ /** All known LikeC4 config filenames (JSON and non-JSON). */
554
+ 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
555
  /** Returns true if the **basename** of the given path matches a known config filename. */
492
556
  declare function isLikeC4JsonConfig(filename: string): boolean;
493
557
  /**
@@ -498,8 +562,6 @@ declare function isLikeC4NonJsonConfig(filename: string): boolean;
498
562
  * Returns true if the **basename** of the given path matches a known LikeC4 config file (JSON or non-JSON).
499
563
  */
500
564
  declare function isLikeC4Config(filename: string): boolean;
501
- //#endregion
502
- //#region src/define-config.d.ts
503
565
  /**
504
566
  * Defines LikeC4 Project, allows custom generators that can be executed using CLI:
505
567
  *
@@ -606,5 +668,4 @@ declare function defineTheme<const S extends LikeC4ConfigThemeInput>(theme: S):
606
668
  * })
607
669
  */
608
670
  declare function defineStyle<const S extends LikeC4StylesConfigInput>(styles: S): LikeC4ProjectStylesConfig;
609
- //#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 };
671
+ 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 };