likec4 1.44.0 → 1.45.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/likec4.js +14290 -13881
- package/__app__/src/main.js +16 -18
- package/__app__/src/style.css +1 -1
- package/__app__/src/vendors.js +531 -445
- package/__app__/src/webcomponent.js +1 -1
- package/config/schema.json +3 -5
- package/dist/cli/index.mjs +549 -548
- package/dist/config/index.d.mts +1 -1
- package/dist/config/index.mjs +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +1 -1
- package/dist/shared/{likec4.H8IcXBiE.mjs → likec4.CuC6o09-.mjs} +125 -124
- package/dist/shared/{likec4.CXaeDwoC.mjs → likec4.DH1Cjktk.mjs} +1 -1
- package/dist/shared/{likec4.CyRRoRaV.d.mts → likec4.DVpfjKrU.d.mts} +18 -2
- package/dist/shared/{likec4.BSr9pG1Z.mjs → likec4.Do3Hp_xd.mjs} +1883 -1872
- package/dist/shared/{likec4.97TpL3Hf.d.mts → likec4.YFH8qb4R.d.mts} +57 -37
- package/dist/vite-plugin/index.d.mts +2 -2
- package/dist/vite-plugin/index.mjs +1 -1
- package/dist/vite-plugin/internal.mjs +6 -6
- package/package.json +32 -31
- package/react/index.d.ts +1904 -6174
- package/react/index.js +10346 -9859
package/__app__/src/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, lazy, Suspense, createContext, useContext, useState, useMemo, memo, useRef, StrictMode } from "react";
|
|
3
3
|
import { createRoot } from "react-dom/client";
|
|
4
|
-
import {
|
|
4
|
+
import { cD as useRouter, cE as isNotFound, cF as Container, bv as Alert, O as Text, cG as Code, P as Button, bc as Group, b8 as rem, bX as Title, cH as Link, cI as useNavigate, bQ as useCallbackRef, cJ as createRootRouteWithContext, cK as stripSearchParams, as as e, cL as Outlet, k as useMantineColorScheme, cM as createFileRoute, cN as useDocumentTitle, b6 as Stack, cO as Loader, cP as useStore, N as ErrorBoundary, cQ as Navigate, d as deepEqual, s as shallowEqual, cR as useParams, v as useIsomorphicLayoutEffect, cS as SimpleGrid, cT as useInViewport, cU as e$1, ce as Card, aI as Box, cV as notFound, a6 as r, bu as useTree, cW as useComputedColorScheme, bw as Tree, aZ as HoverCard, a_ as HoverCardTarget, a$ as HoverCardDropdown, T as ThemeIcon, cX as onMount, r as atom, cd as useLocalStorage, cY as Drawer, bP as ScrollArea, aB as SegmentedControl, at as ActionIcon, ay as Menu, bd as MenuTarget, be as MenuDropdown, bf as MenuItem, aY as CopyButton$1, cZ as Select, c_ as ModalRoot, c$ as ModalOverlay, d0 as ModalContent, d1 as ModalBody, bL as Tabs, bM as TabsList, bN as TabsTab, bO as TabsPanel, d2 as useMatches, d3 as useMantineTheme, d4 as useMediaQuery, d5 as useDisclosure, aC as Divider, b5 as Space, d6 as useParentMatches, d7 as MenuLabel, G as t, $ as t$1, a2 as t$2, a1 as e$2, a0 as t$3, a3 as t$4, z as t$5, a4 as n, g as t$6, a9 as dagre, aa as t$7, ab as t$8, d8 as useSearch, aL as useDebouncedCallback, d9 as LoadingOverlay, da as toBlob, aw as Tooltip, db as useAsync, dc as PanelGroup, dd as Panel, de as PanelResizeHandle, df as Burger, dg as RouterProvider, dh as createRouter$1, di as createHashHistory, dj as createBrowserHistory, dk as createTheme, b2 as Portal, A as MantineProvider } from "./vendors.js";
|
|
5
5
|
import { projects } from "likec4:projects";
|
|
6
6
|
import { c as css, L as LikeC4ProjectsProvider, u as useLikeC4Projects, I as IconRendererProvider, a as LikeC4ModelProvider, b as useUpdateEffect, S as StaticLikeC4Diagram, M as Markdown, B as Box$1, d as useLikeC4Model$1, e as IconStarFilled, f as IconStack2, g as IconLayoutDashboard, h as IconFileCode, i as IconFolderOpen, j as IconFolderFilled, k as IconArrowLeft, l as IconMoonStars, m as IconSun, n as IconChevronDown, o as IconAlertTriangle, p as IconCheck, q as IconCopy, r as IconExternalLink, s as IconShare, t as pickViewBounds, v as LikeC4Diagram, w as useDiagramContext } from "./likec4.js";
|
|
7
7
|
import { pageTitle, ComponentName, useHashHistory, withOverviewGraph, krokiPumlSvgUrl, isDevelopment, krokiD2SvgUrl, basepath } from "./const.js";
|
|
@@ -397,15 +397,15 @@ function ViewCard({ view }) {
|
|
|
397
397
|
value: RichText.from(view.description),
|
|
398
398
|
textScale: 0.75,
|
|
399
399
|
emptyText: "No description",
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
400
|
+
className: css({
|
|
401
|
+
lineClamp: 3,
|
|
402
|
+
mt: "1",
|
|
403
403
|
transition: "fast",
|
|
404
404
|
opacity: {
|
|
405
405
|
base: 0.8,
|
|
406
406
|
_groupHover: 1
|
|
407
407
|
}
|
|
408
|
-
}
|
|
408
|
+
})
|
|
409
409
|
}
|
|
410
410
|
),
|
|
411
411
|
/* @__PURE__ */ jsx(Link, { to: "/view/$viewId/", params: { viewId: view.id }, search: !0, className: cardLink })
|
|
@@ -790,15 +790,17 @@ function ColorSchemeToggle() {
|
|
|
790
790
|
);
|
|
791
791
|
}
|
|
792
792
|
const cssHeader = css({
|
|
793
|
+
top: "4",
|
|
794
|
+
right: "4",
|
|
793
795
|
position: "absolute",
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
backgroundColor: "mantine.colors.dark[6]/60"
|
|
797
|
-
},
|
|
796
|
+
layerStyle: "likec4.panel",
|
|
797
|
+
rounded: "md",
|
|
798
798
|
'#likec4-root:has([data-likec4-diagram-panning="true"]) &': {
|
|
799
799
|
boxShadow: "none",
|
|
800
|
-
|
|
801
|
-
|
|
800
|
+
rounded: "0"
|
|
801
|
+
},
|
|
802
|
+
_print: {
|
|
803
|
+
display: "none"
|
|
802
804
|
}
|
|
803
805
|
});
|
|
804
806
|
function SelectProject() {
|
|
@@ -1016,14 +1018,9 @@ const Header = memo(() => {
|
|
|
1016
1018
|
}
|
|
1017
1019
|
}), { breakpoints } = useMantineTheme(), isTablet = useMediaQuery(`(min-width: ${breakpoints.md})`) ?? !1, [opened, { open, close }] = useDisclosure(!1);
|
|
1018
1020
|
return /* @__PURE__ */ jsxs(
|
|
1019
|
-
|
|
1021
|
+
Box$1,
|
|
1020
1022
|
{
|
|
1021
1023
|
className: cssHeader,
|
|
1022
|
-
top: "0.5rem",
|
|
1023
|
-
right: "0.5rem",
|
|
1024
|
-
p: 4,
|
|
1025
|
-
radius: "sm",
|
|
1026
|
-
shadow: "lg",
|
|
1027
1024
|
children: [
|
|
1028
1025
|
/* @__PURE__ */ jsxs(Group, { gap: isTablet ? 6 : 4, wrap: "nowrap", children: [
|
|
1029
1026
|
isReactDiagramRoute ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -1600,8 +1597,9 @@ function ExportPage() {
|
|
|
1600
1597
|
console.error("viewportRef.current is null");
|
|
1601
1598
|
return;
|
|
1602
1599
|
}
|
|
1600
|
+
const x = Math.round(-bounds.x + padding), y = Math.round(-bounds.y + padding);
|
|
1603
1601
|
[...viewportRef.current.querySelectorAll(".react-flow__viewport")].forEach((el) => {
|
|
1604
|
-
el.style.transform = "translate(" +
|
|
1602
|
+
el.style.transform = "translate(" + x + "px, " + y + "px)";
|
|
1605
1603
|
}), download && downloadDiagram();
|
|
1606
1604
|
}
|
|
1607
1605
|
}
|