likec4 1.51.0 → 1.53.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.
- package/__app__/src/ProjectsOverview.js +1 -1
- package/__app__/src/likec4.js +295 -190
- package/__app__/src/routes/index.js +11 -2
- package/__app__/src/routes/projects.js +1 -1
- package/__app__/src/routes/single.js +460 -81
- package/__app__/src/style.css +1 -1
- package/__app__/src/vendors.js +2206 -1685
- package/__app__/src/webcomponent.js +1 -1
- package/config/schema.json +57 -1
- package/dist/THIRD-PARTY-LICENSES.md +32 -226
- package/dist/_chunks/filesystem.mjs +71 -70
- package/dist/_chunks/index.d.mts +10 -1
- package/dist/_chunks/index2.d.mts +112 -8
- package/dist/_chunks/libs/@hono/mcp.mjs +9 -9
- package/dist/_chunks/libs/@hono/node-server.mjs +1 -1
- package/dist/_chunks/libs/@logtape/logtape.d.mts +1021 -0
- package/dist/_chunks/libs/@logtape/logtape.mjs +4 -6
- package/dist/_chunks/libs/@modelcontextprotocol/sdk.d.mts +14 -14
- package/dist/_chunks/libs/@nanostores/react.d.mts +5 -5
- package/dist/_chunks/libs/destr.mjs +1 -0
- package/dist/_chunks/libs/fast-equals.mjs +1 -1
- package/dist/_chunks/libs/langium.mjs +1 -1
- package/dist/_chunks/libs/remeda.mjs +2 -2
- package/dist/_chunks/libs/tinyrainbow.mjs +1 -1
- package/dist/_chunks/libs/unstorage.mjs +1 -0
- package/dist/_chunks/node.mjs +1 -0
- package/dist/_chunks/sequence.mjs +1 -1
- package/dist/_chunks/src.mjs +14 -12
- package/dist/_chunks/src2.mjs +46 -46
- package/dist/cli/index.mjs +164 -83
- package/dist/index.d.mts +47 -819
- package/dist/index.mjs +1 -1
- package/dist/vite-plugin/index.mjs +1 -1
- package/dist/vite-plugin/internal.mjs +1 -1
- package/package.json +38 -37
- package/react/index.d.mts +80 -22
- package/react/index.mjs +692 -465
- package/vite-plugin-modules.d.ts +5 -0
- package/dist/_chunks/LikeC4.mjs +0 -1
- package/dist/_chunks/libs/@msgpack/msgpack.mjs +0 -1
- package/dist/_chunks/libs/@smithy/is-array-buffer.mjs +0 -1
- package/dist/_chunks/libs/@smithy/util-base64.mjs +0 -1
- package/dist/_chunks/libs/boxen.d.mts +0 -1
|
@@ -23,7 +23,8 @@ const searchParamsSchema = z.object({
|
|
|
23
23
|
theme: z.literal(["light", "dark", "auto"]).optional().catch(void 0),
|
|
24
24
|
dynamic: z.enum(["diagram", "sequence"]).default("diagram").catch("diagram"),
|
|
25
25
|
padding: z.number().min(0).default(20).catch(20),
|
|
26
|
-
relationships: z.string().nonempty().optional().catch(void 0).transform((v) => v)
|
|
26
|
+
relationships: z.string().nonempty().optional().catch(void 0).transform((v) => v),
|
|
27
|
+
focusOnElement: z.string().nonempty().optional().catch(void 0).transform((v) => v)
|
|
27
28
|
});
|
|
28
29
|
function resolveForceColorScheme(theme2) {
|
|
29
30
|
switch (theme2) {
|
|
@@ -94,7 +95,8 @@ const theme = createTheme({
|
|
|
94
95
|
padding: 20,
|
|
95
96
|
theme: void 0,
|
|
96
97
|
dynamic: "diagram",
|
|
97
|
-
relationships: void 0
|
|
98
|
+
relationships: void 0,
|
|
99
|
+
focusOnElement: void 0
|
|
98
100
|
})
|
|
99
101
|
]
|
|
100
102
|
},
|
|
@@ -145,6 +147,13 @@ const Route = createFileRoute("/")({
|
|
|
145
147
|
to: "/",
|
|
146
148
|
unmaskOnReload: !0
|
|
147
149
|
}
|
|
150
|
+
}) : projects[0]?.landingPage && "redirect" in projects[0].landingPage ? redirect({
|
|
151
|
+
to: "/view/$viewId/",
|
|
152
|
+
params: { viewId: "index" },
|
|
153
|
+
mask: {
|
|
154
|
+
to: "/",
|
|
155
|
+
unmaskOnReload: !0
|
|
156
|
+
}
|
|
148
157
|
}) : redirect({
|
|
149
158
|
to: "/single-index/",
|
|
150
159
|
mask: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { d1 as createFileRoute, db as Container, bp as Stack, bZ as Title, W as Button, df as Link,
|
|
2
|
+
import { d1 as createFileRoute, db as Container, bp as Stack, bZ as Title, W as Button, df as Link, dG as notFound, d2 as redirect, Q as m, d0 as Outlet, dH as Navigate, c$ as stripSearchParams, cZ as z } from "../vendors.js";
|
|
3
3
|
import { loadModel } from "likec4:model";
|
|
4
4
|
import { V as ViewOutlet, F as Fallback, L as LikeC4IconRendererContext, l as LikeC4ModelContext, A as AdHocViewEditor, H as Header, E as ExportPage, m as EmbedPage, n as ViewEditor, o as ViewReact, p as ViewAsPuml, q as ViewAsMmd, r as ViewAsDot, s as ViewAsD2 } from "./single.js";
|
|
5
5
|
import { isRpcAvailable } from "likec4:rpc";
|