likec4 1.12.1 → 1.13.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/dist/__app__/react/likec4.tsx +2 -0
- package/dist/__app__/src/chunks/{-index-overview-BCq3uZl4.js → -index-overview-DrWsHFH4.js} +6 -6
- package/dist/__app__/src/chunks/{likec4-CNg5BLwi.js → likec4-B4TbAFjc.js} +19 -14
- package/dist/__app__/src/chunks/{main-TBVrmxK9.js → main-Bb3q3o7f.js} +6589 -3860
- package/dist/__app__/src/chunks/{mantine-CDAXKBgY.js → mantine-5H3V65ZR.js} +112 -69
- package/dist/__app__/src/chunks/{tanstack-router-COsz5nw6.js → tanstack-router-C6UpMKjv.js} +1 -1
- package/dist/__app__/src/main.js +1 -1
- package/dist/__app__/src/style.css +1 -1
- package/dist/__app__/webcomponent/webcomponent.js +7860 -4741
- package/dist/chunks/prompt.mjs +3 -3
- package/dist/cli/index.mjs +47 -47
- package/dist/index.d.mts +483 -205
- package/dist/index.d.ts +483 -205
- package/dist/index.mjs +1 -1
- package/dist/shared/likec4.Dgm8MxXR.mjs +1816 -0
- package/package.json +14 -14
- package/react/index.d.ts +273 -232
- package/react/index.mjs +8088 -4993
- package/react/style.css +1 -1
- package/dist/shared/likec4.DIJE01bW.mjs +0 -1816
|
@@ -84,6 +84,7 @@ const LikeC4ViewMemo = /* @__PURE__ */ memo<LikeC4ViewProps>(function LikeC4View
|
|
|
84
84
|
showNotations = false,
|
|
85
85
|
enableFocusMode = false,
|
|
86
86
|
showRelationshipDetails = false,
|
|
87
|
+
enableRelationshipsBrowser = false,
|
|
87
88
|
browserClassName,
|
|
88
89
|
browserStyle,
|
|
89
90
|
mantineTheme,
|
|
@@ -148,6 +149,7 @@ const LikeC4ViewMemo = /* @__PURE__ */ memo<LikeC4ViewProps>(function LikeC4View
|
|
|
148
149
|
style={browserStyle}
|
|
149
150
|
mantineTheme={mantineTheme}
|
|
150
151
|
styleNonce={styleNonce}
|
|
152
|
+
enableRelationshipsBrowser={enableRelationshipsBrowser}
|
|
151
153
|
/>
|
|
152
154
|
)}
|
|
153
155
|
</LikeC4ModelProvider>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useOverviewGraph } from "virtual:likec4/overview-graph";
|
|
3
|
-
import { u, c as createReactComponent, I as IconFolderFilled, e, a as useUpdateEffect, n as nonexhaustive } from "./main-
|
|
4
|
-
import { u as useRouter } from "./tanstack-router-
|
|
5
|
-
import { B as BaseEdge, H as Handle, P as Position, u as useNodesState, a as useEdgesState, i as index, b as Background, c as BackgroundVariant } from "./likec4-
|
|
3
|
+
import { u, c as createReactComponent, I as IconFolderFilled, e, a as useUpdateEffect, n as nonexhaustive } from "./main-Bb3q3o7f.js";
|
|
4
|
+
import { u as useRouter } from "./tanstack-router-C6UpMKjv.js";
|
|
5
|
+
import { B as BaseEdge, H as Handle, P as Position, u as useNodesState, a as useEdgesState, i as index, b as Background, c as BackgroundVariant } from "./likec4-B4TbAFjc.js";
|
|
6
6
|
import { memo, useRef, useMemo } from "react";
|
|
7
|
-
import { P as Paper, c as clsx, G as Group, T as ThemeIcon, a as Text, C as Card, b as CardSection, d as Center, I as Image, B as Box, u as useMantineColorScheme } from "./mantine-
|
|
7
|
+
import { P as Paper, c as clsx, G as Group, T as ThemeIcon, a as Text, C as Card, b as CardSection, d as Center, I as Image, B as Box, u as useMantineColorScheme } from "./mantine-5H3V65ZR.js";
|
|
8
8
|
import { usePreviewUrl } from "virtual:likec4/previews";
|
|
9
9
|
function a(...n) {
|
|
10
10
|
return u(c, n);
|
|
@@ -15,14 +15,14 @@ function c(n, r) {
|
|
|
15
15
|
return o;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* @license @tabler/icons-react v3.
|
|
18
|
+
* @license @tabler/icons-react v3.17.0 - MIT
|
|
19
19
|
*
|
|
20
20
|
* This source code is licensed under the MIT license.
|
|
21
21
|
* See the LICENSE file in the root directory of this source tree.
|
|
22
22
|
*/
|
|
23
23
|
var IconLoader = createReactComponent("outline", "loader", "IconLoader", [["path", { d: "M12 6l0 -3", key: "svg-0" }], ["path", { d: "M16.25 7.75l2.15 -2.15", key: "svg-1" }], ["path", { d: "M18 12l3 0", key: "svg-2" }], ["path", { d: "M16.25 16.25l2.15 2.15", key: "svg-3" }], ["path", { d: "M12 18l0 3", key: "svg-4" }], ["path", { d: "M7.75 16.25l-2.15 2.15", key: "svg-5" }], ["path", { d: "M6 12l-3 0", key: "svg-6" }], ["path", { d: "M7.75 7.75l-2.15 -2.15", key: "svg-7" }]]);
|
|
24
24
|
/**
|
|
25
|
-
* @license @tabler/icons-react v3.
|
|
25
|
+
* @license @tabler/icons-react v3.17.0 - MIT
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the MIT license.
|
|
28
28
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -5562,7 +5562,10 @@ const GraphView = memo(GraphViewComponent), getInitialState = ({ nodes, edges, d
|
|
|
5562
5562
|
triggerEdgeChanges(getSelectionChanges(edgeLookup, /* @__PURE__ */ new Set([...selectedEdgeIds]))), triggerNodeChanges(getSelectionChanges(nodeLookup, /* @__PURE__ */ new Set(), !0));
|
|
5563
5563
|
},
|
|
5564
5564
|
unselectNodesAndEdges: ({ nodes: nodes2, edges: edges2 } = {}) => {
|
|
5565
|
-
const { edges: storeEdges, nodes: storeNodes, triggerNodeChanges, triggerEdgeChanges } = get2(), nodesToUnselect = nodes2 || storeNodes, edgesToUnselect = edges2 || storeEdges, nodeChanges = nodesToUnselect.map((n2) =>
|
|
5565
|
+
const { edges: storeEdges, nodes: storeNodes, nodeLookup, triggerNodeChanges, triggerEdgeChanges } = get2(), nodesToUnselect = nodes2 || storeNodes, edgesToUnselect = edges2 || storeEdges, nodeChanges = nodesToUnselect.map((n2) => {
|
|
5566
|
+
const internalNode = nodeLookup.get(n2.id);
|
|
5567
|
+
return internalNode && (internalNode.selected = !1), createSelectionChange(n2.id, !1);
|
|
5568
|
+
}), edgeChanges = edgesToUnselect.map((edge) => createSelectionChange(edge.id, !1));
|
|
5566
5569
|
triggerNodeChanges(nodeChanges), triggerEdgeChanges(edgeChanges);
|
|
5567
5570
|
},
|
|
5568
5571
|
setMinZoom: (minZoom) => {
|
|
@@ -5785,7 +5788,7 @@ function ControlsComponent({ style: style2, showZoom = !0, showFitView = !0, sho
|
|
|
5785
5788
|
return jsxs(Panel, { className: cc(["react-flow__controls", orientation === "horizontal" ? "horizontal" : "vertical", className]), position, style: style2, "data-testid": "rf__controls", "aria-label": ariaLabel, children: [showZoom && jsxs(Fragment, { children: [jsx(ControlButton, { onClick: onZoomInHandler, className: "react-flow__controls-zoomin", title: "zoom in", "aria-label": "zoom in", disabled: maxZoomReached, children: jsx(PlusIcon, {}) }), jsx(ControlButton, { onClick: onZoomOutHandler, className: "react-flow__controls-zoomout", title: "zoom out", "aria-label": "zoom out", disabled: minZoomReached, children: jsx(MinusIcon, {}) })] }), showFitView && jsx(ControlButton, { className: "react-flow__controls-fitview", onClick: onFitViewHandler, title: "fit view", "aria-label": "fit view", children: jsx(FitViewIcon, {}) }), showInteractive && jsx(ControlButton, { className: "react-flow__controls-interactive", onClick: onToggleInteractivity, title: "toggle interactivity", "aria-label": "toggle interactivity", children: isInteractive ? jsx(UnlockIcon, {}) : jsx(LockIcon, {}) }), children2] });
|
|
5786
5789
|
}
|
|
5787
5790
|
ControlsComponent.displayName = "Controls";
|
|
5788
|
-
|
|
5791
|
+
memo(ControlsComponent);
|
|
5789
5792
|
function MiniMapNodeComponent({ id: id2, x, y, width, height, style: style2, color: color2, strokeColor, strokeWidth, className, borderRadius, shapeRendering, selected: selected2, onClick }) {
|
|
5790
5793
|
const { background, backgroundColor } = style2 || {}, fill = color2 || background || backgroundColor;
|
|
5791
5794
|
return jsx("rect", { className: cc(["react-flow__minimap-node", { selected: selected2 }, className]), x, y, rx: borderRadius, ry: borderRadius, width, height, style: {
|
|
@@ -6055,9 +6058,9 @@ function NodeToolbar({ nodeId, children: children2, className, style: style2, is
|
|
|
6055
6058
|
}
|
|
6056
6059
|
export {
|
|
6057
6060
|
BaseEdge as B,
|
|
6058
|
-
Controls as C,
|
|
6059
6061
|
EdgeLabelRenderer as E,
|
|
6060
6062
|
Handle as H,
|
|
6063
|
+
MarkerType as M,
|
|
6061
6064
|
NodeToolbar as N,
|
|
6062
6065
|
Position as P,
|
|
6063
6066
|
ReactFlowProvider as R,
|
|
@@ -6067,19 +6070,21 @@ export {
|
|
|
6067
6070
|
useReactFlow as d,
|
|
6068
6071
|
useStoreApi as e,
|
|
6069
6072
|
useStore as f,
|
|
6070
|
-
|
|
6071
|
-
|
|
6073
|
+
getDefaultExportFromCjs as g,
|
|
6074
|
+
useNodesData as h,
|
|
6072
6075
|
index as i,
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6076
|
+
getNodeDimensions as j,
|
|
6077
|
+
createWithEqualityFn as k,
|
|
6078
|
+
applyNodeChanges as l,
|
|
6079
|
+
applyEdgeChanges as m,
|
|
6080
|
+
getViewportForBounds as n,
|
|
6081
|
+
getBoundsOfRects as o,
|
|
6082
|
+
boxToRect as p,
|
|
6083
|
+
useStoreWithEqualityFn as q,
|
|
6084
|
+
getBezierPath as r,
|
|
6082
6085
|
shallow$1 as s,
|
|
6086
|
+
Panel as t,
|
|
6083
6087
|
useNodesState as u,
|
|
6088
|
+
useOnViewportChange as v,
|
|
6084
6089
|
withSelectorExports as w
|
|
6085
6090
|
};
|