@likec4/diagram 1.38.1 → 1.39.1
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/bundle/{chunk-BZV0K82k.js → chunk-CaxOLfbm.js} +277 -271
- package/bundle/custom.js +39 -39
- package/bundle/index.js +354 -240
- package/dist/LikeC4Diagram.js +4 -2
- package/dist/LikeC4Diagram.props.d.ts +15 -8
- package/dist/LikeC4Styles.d.ts +3 -1
- package/dist/LikeC4Styles.js +52 -20
- package/dist/base/BaseXYFlow.js +5 -5
- package/dist/base/index.d.ts +1 -2
- package/dist/base/primitives/MarkdownBlock.js +2 -1
- package/dist/base/primitives/customEdge.d.ts +3 -3
- package/dist/base/primitives/edge/EdgeLabel.js +1 -2
- package/dist/base/primitives/element/ElementTitle.js +2 -10
- package/dist/base/types.d.ts +62 -5
- package/dist/base/types.js +54 -0
- package/dist/bundle/LikeC4View.d.ts +2 -2
- package/dist/bundle/LikeC4View.props.d.ts +4 -3
- package/dist/bundle/ReactLikeC4.d.ts +4 -4
- package/dist/context/RootContainer.d.ts +2 -1
- package/dist/context/RootContainer.js +1 -2
- package/dist/custom/customNodes.d.ts +2 -1
- package/dist/globals.css.js +1 -1
- package/dist/hooks/useXYFlow.d.ts +28 -29
- package/dist/likec4diagram/custom/edges/RelationshipEdge.d.ts +4 -5
- package/dist/likec4diagram/custom/nodes/ElementActions.js +1 -1
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +75 -68
- package/dist/likec4diagram/relationship-popover/styles.css.js +8 -5
- package/dist/likec4diagram/types.d.ts +2 -1
- package/dist/likec4diagram/useViewToNodesEdges.js +1 -1
- package/dist/likec4model/LikeC4ModelContext.d.ts +5 -2
- package/dist/likec4model/useLikeC4ElementsTree.js +1 -1
- package/dist/likec4model/useLikeC4Model.d.ts +7 -20
- package/dist/navigationpanel/NavigationPanel.js +3 -1
- package/dist/navigationpanel/NavigationPanelDropdown.js +1 -1
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.js +6 -4
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.d.ts +1 -0
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.js +83 -0
- package/dist/overlays/element-details/actor.d.ts +556 -557
- package/dist/overlays/relationship-details/RelationshipDetails.d.ts +2 -3
- package/dist/overlays/relationship-details/actor.d.ts +1 -1
- package/dist/overlays/relationship-details/actor.js +7 -7
- package/dist/overlays/relationship-details/compute.js +2 -1
- package/dist/overlays/relationship-details/custom/edgeTypes.d.ts +2 -3
- package/dist/overlays/relationship-details/hooks.d.ts +18 -19
- package/dist/overlays/relationship-details/layout.js +2 -1
- package/dist/overlays/relationships-browser/RelationshipsBrowser.d.ts +2 -3
- package/dist/overlays/relationships-browser/actor.d.ts +12 -12
- package/dist/overlays/relationships-browser/actor.js +8 -8
- package/dist/overlays/relationships-browser/custom/edgeTypes.d.ts +2 -3
- package/dist/overlays/relationships-browser/layout.js +2 -1
- package/dist/search/components/ElementsColumn.js +1 -1
- package/dist/state/DiagramActorProvider.js +2 -2
- package/dist/state/assign.js +6 -6
- package/dist/state/diagram-machine.js +14 -14
- package/dist/styles-min.css +1 -1
- package/dist/styles-xyflow.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css2.js +1 -1
- package/dist/utils/xyflow.js +2 -2
- package/package.json +16 -16
- package/panda.buildinfo.json +30 -27
- package/src/LikeC4Diagram.props.ts +16 -16
- package/src/LikeC4Diagram.tsx +4 -2
- package/src/LikeC4Styles.tsx +50 -22
- package/src/base/index.ts +1 -2
- package/src/base/primitives/MarkdownBlock.tsx +1 -0
- package/src/base/primitives/customEdge.ts +5 -5
- package/src/base/primitives/edge/EdgeLabel.tsx +1 -2
- package/src/base/primitives/element/ElementTitle.tsx +10 -22
- package/src/base/types.ts +122 -13
- package/src/bundle/LikeC4View.props.ts +4 -3
- package/src/bundle/LikeC4View.tsx +6 -6
- package/src/bundle/ReactLikeC4.tsx +7 -6
- package/src/context/RootContainer.tsx +2 -2
- package/src/custom/customNodes.ts +3 -1
- package/src/globals.css +2 -2
- package/src/hooks/useSetState.ts +2 -2
- package/src/likec4diagram/custom/nodes/ElementActions.tsx +2 -1
- package/src/likec4diagram/relationship-popover/RelationshipPopover.tsx +49 -41
- package/src/likec4diagram/relationship-popover/styles.css.ts +8 -5
- package/src/likec4diagram/types.ts +1 -1
- package/src/likec4diagram/useViewToNodesEdges.ts +1 -1
- package/src/likec4model/LikeC4ModelContext.tsx +5 -2
- package/src/likec4model/useLikeC4ElementsTree.ts +3 -3
- package/src/likec4model/useLikeC4Model.ts +8 -5
- package/src/navigationpanel/NavigationPanel.tsx +2 -0
- package/src/navigationpanel/NavigationPanelDropdown.tsx +1 -1
- package/src/navigationpanel/walkthrough/ActiveWalkthroughControls.tsx +3 -1
- package/src/navigationpanel/walkthrough/WalkthroughPanel.tsx +88 -0
- package/src/overlays/relationship-details/compute.ts +3 -12
- package/src/overlays/relationship-details/layout.ts +3 -3
- package/src/overlays/relationships-browser/actor.ts +2 -1
- package/src/overlays/relationships-browser/layout.ts +3 -3
- package/src/search/components/ElementsColumn.tsx +3 -3
- package/src/utils/xyflow.ts +2 -2
- package/dist/base/types.Base.d.ts +0 -54
- package/dist/base/types.Base.js +0 -48
- package/dist/likec4diagram/custom/edges/NotePopover.d.ts +0 -4
- package/src/base/types.Base.ts +0 -104
- package/src/likec4diagram/custom/edges/NotePopover.tsx +0 -95
- /package/dist/{likec4diagram/custom/edges/NotePopover.css.d.ts → navigationpanel/walkthrough/WalkthroughPanel.css.d.ts} +0 -0
- /package/src/{likec4diagram/custom/edges/NotePopover.css.ts → navigationpanel/walkthrough/WalkthroughPanel.css.ts} +0 -0
|
@@ -3,8 +3,9 @@ import React__default, { useState, Fragment, createContext, useContext, useRef,
|
|
|
3
3
|
import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
4
4
|
import * as ReactDOM from "react-dom";
|
|
5
5
|
import ReactDOM__default, { createPortal } from "react-dom";
|
|
6
|
-
import { isTagColorSpecified,
|
|
6
|
+
import { isTagColorSpecified, nonexhaustive, invariant as invariant$1, defaultTheme, ElementShapes } from "@likec4/core";
|
|
7
7
|
import { DefaultShapeSize, DefaultTextSize, DefaultPaddingSize } from "@likec4/core/types";
|
|
8
|
+
import { invariant } from "@likec4/core/utils";
|
|
8
9
|
function isObject$1(value) {
|
|
9
10
|
return typeof value == "object" && value != null && !Array.isArray(value);
|
|
10
11
|
}
|
|
@@ -2801,7 +2802,7 @@ function isOverflowElement(element) {
|
|
|
2801
2802
|
overflowX,
|
|
2802
2803
|
overflowY,
|
|
2803
2804
|
display
|
|
2804
|
-
} = getComputedStyle(element);
|
|
2805
|
+
} = getComputedStyle$1(element);
|
|
2805
2806
|
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
|
|
2806
2807
|
}
|
|
2807
2808
|
const tableElements = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
@@ -2820,7 +2821,7 @@ function isTopLayer(element) {
|
|
|
2820
2821
|
}
|
|
2821
2822
|
const transformProperties = ["transform", "translate", "scale", "rotate", "perspective"], willChangeValues = ["transform", "translate", "scale", "rotate", "perspective", "filter"], containValues = ["paint", "layout", "strict", "content"];
|
|
2822
2823
|
function isContainingBlock(elementOrCss) {
|
|
2823
|
-
const webkit = isWebKit(), css2 = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
|
|
2824
|
+
const webkit = isWebKit(), css2 = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
2824
2825
|
return transformProperties.some((value) => css2[value] ? css2[value] !== "none" : !1) || (css2.containerType ? css2.containerType !== "normal" : !1) || !webkit && (css2.backdropFilter ? css2.backdropFilter !== "none" : !1) || !webkit && (css2.filter ? css2.filter !== "none" : !1) || willChangeValues.some((value) => (css2.willChange || "").includes(value)) || containValues.some((value) => (css2.contain || "").includes(value));
|
|
2825
2826
|
}
|
|
2826
2827
|
function getContainingBlock(element) {
|
|
@@ -2841,7 +2842,7 @@ const lastTraversableNodeNames = /* @__PURE__ */ new Set(["html", "body", "#docu
|
|
|
2841
2842
|
function isLastTraversableNode(node) {
|
|
2842
2843
|
return lastTraversableNodeNames.has(getNodeName(node));
|
|
2843
2844
|
}
|
|
2844
|
-
function getComputedStyle(element) {
|
|
2845
|
+
function getComputedStyle$1(element) {
|
|
2845
2846
|
return getWindow(element).getComputedStyle(element);
|
|
2846
2847
|
}
|
|
2847
2848
|
function getNodeScroll(element) {
|
|
@@ -3738,7 +3739,7 @@ const offset$3 = function(options) {
|
|
|
3738
3739
|
};
|
|
3739
3740
|
};
|
|
3740
3741
|
function getCssDimensions(element) {
|
|
3741
|
-
const css2 = getComputedStyle(element);
|
|
3742
|
+
const css2 = getComputedStyle$1(element);
|
|
3742
3743
|
let width = parseFloat(css2.width) || 0, height = parseFloat(css2.height) || 0;
|
|
3743
3744
|
const hasOffset = isHTMLElement(element), offsetWidth = hasOffset ? element.offsetWidth : width, offsetHeight = hasOffset ? element.offsetHeight : height, shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
3744
3745
|
return shouldFallback && (width = offsetWidth, height = offsetHeight), {
|
|
@@ -3787,7 +3788,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
3787
3788
|
const win2 = getWindow(domElement), offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
3788
3789
|
let currentWin = win2, currentIFrame = getFrameElement(currentWin);
|
|
3789
3790
|
for (; currentIFrame && offsetParent && offsetWin !== currentWin; ) {
|
|
3790
|
-
const iframeScale = getScale(currentIFrame), iframeRect = currentIFrame.getBoundingClientRect(), css2 = getComputedStyle(currentIFrame), left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css2.paddingLeft)) * iframeScale.x, top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css2.paddingTop)) * iframeScale.y;
|
|
3791
|
+
const iframeScale = getScale(currentIFrame), iframeRect = currentIFrame.getBoundingClientRect(), css2 = getComputedStyle$1(currentIFrame), left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css2.paddingLeft)) * iframeScale.x, top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css2.paddingTop)) * iframeScale.y;
|
|
3791
3792
|
x *= iframeScale.x, y2 *= iframeScale.y, width *= iframeScale.x, height *= iframeScale.y, x += left, y2 += top, currentWin = getWindow(currentIFrame), currentIFrame = getFrameElement(currentWin);
|
|
3792
3793
|
}
|
|
3793
3794
|
}
|
|
@@ -3802,12 +3803,8 @@ function getWindowScrollBarX(element, rect) {
|
|
|
3802
3803
|
const leftScroll = getNodeScroll(element).scrollLeft;
|
|
3803
3804
|
return rect ? rect.left + leftScroll : getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
|
3804
3805
|
}
|
|
3805
|
-
function getHTMLOffset(documentElement, scroll
|
|
3806
|
-
|
|
3807
|
-
const htmlRect = documentElement.getBoundingClientRect(), x = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 : (
|
|
3808
|
-
// RTL <body> scrollbar.
|
|
3809
|
-
getWindowScrollBarX(documentElement, htmlRect)
|
|
3810
|
-
)), y2 = htmlRect.top + scroll.scrollTop;
|
|
3806
|
+
function getHTMLOffset(documentElement, scroll) {
|
|
3807
|
+
const htmlRect = documentElement.getBoundingClientRect(), x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect), y2 = htmlRect.top + scroll.scrollTop;
|
|
3811
3808
|
return {
|
|
3812
3809
|
x,
|
|
3813
3810
|
y: y2
|
|
@@ -3832,7 +3829,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
3832
3829
|
const offsetRect = getBoundingClientRect(offsetParent);
|
|
3833
3830
|
scale2 = getScale(offsetParent), offsets.x = offsetRect.x + offsetParent.clientLeft, offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
3834
3831
|
}
|
|
3835
|
-
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll
|
|
3832
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
3836
3833
|
return {
|
|
3837
3834
|
width: rect.width * scale2.x,
|
|
3838
3835
|
height: rect.height * scale2.y,
|
|
@@ -3847,13 +3844,14 @@ function getDocumentRect(element) {
|
|
|
3847
3844
|
const html = getDocumentElement(element), scroll = getNodeScroll(element), body2 = element.ownerDocument.body, width = max$1(html.scrollWidth, html.clientWidth, body2.scrollWidth, body2.clientWidth), height = max$1(html.scrollHeight, html.clientHeight, body2.scrollHeight, body2.clientHeight);
|
|
3848
3845
|
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
3849
3846
|
const y2 = -scroll.scrollTop;
|
|
3850
|
-
return getComputedStyle(body2).direction === "rtl" && (x += max$1(html.clientWidth, body2.clientWidth) - width), {
|
|
3847
|
+
return getComputedStyle$1(body2).direction === "rtl" && (x += max$1(html.clientWidth, body2.clientWidth) - width), {
|
|
3851
3848
|
width,
|
|
3852
3849
|
height,
|
|
3853
3850
|
x,
|
|
3854
3851
|
y: y2
|
|
3855
3852
|
};
|
|
3856
3853
|
}
|
|
3854
|
+
const SCROLLBAR_MAX = 25;
|
|
3857
3855
|
function getViewportRect(element, strategy) {
|
|
3858
3856
|
const win2 = getWindow(element), html = getDocumentElement(element), visualViewport = win2.visualViewport;
|
|
3859
3857
|
let width = html.clientWidth, height = html.clientHeight, x = 0, y2 = 0;
|
|
@@ -3862,6 +3860,11 @@ function getViewportRect(element, strategy) {
|
|
|
3862
3860
|
const visualViewportBased = isWebKit();
|
|
3863
3861
|
(!visualViewportBased || visualViewportBased && strategy === "fixed") && (x = visualViewport.offsetLeft, y2 = visualViewport.offsetTop);
|
|
3864
3862
|
}
|
|
3863
|
+
const windowScrollbarX = getWindowScrollBarX(html);
|
|
3864
|
+
if (windowScrollbarX <= 0) {
|
|
3865
|
+
const doc = html.ownerDocument, body2 = doc.body, bodyStyles = getComputedStyle(body2), bodyMarginInline = doc.compatMode === "CSS1Compat" && parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0, clippingStableScrollbarWidth = Math.abs(html.clientWidth - body2.clientWidth - bodyMarginInline);
|
|
3866
|
+
clippingStableScrollbarWidth <= SCROLLBAR_MAX && (width -= clippingStableScrollbarWidth);
|
|
3867
|
+
} else windowScrollbarX <= SCROLLBAR_MAX && (width += windowScrollbarX);
|
|
3865
3868
|
return {
|
|
3866
3869
|
width,
|
|
3867
3870
|
height,
|
|
@@ -3900,17 +3903,17 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
|
|
|
3900
3903
|
}
|
|
3901
3904
|
function hasFixedPositionAncestor(element, stopNode) {
|
|
3902
3905
|
const parentNode = getParentNode(element);
|
|
3903
|
-
return parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode) ? !1 : getComputedStyle(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
|
|
3906
|
+
return parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode) ? !1 : getComputedStyle$1(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
|
|
3904
3907
|
}
|
|
3905
3908
|
function getClippingElementAncestors(element, cache) {
|
|
3906
3909
|
const cachedResult = cache.get(element);
|
|
3907
3910
|
if (cachedResult)
|
|
3908
3911
|
return cachedResult;
|
|
3909
3912
|
let result = getOverflowAncestors(element, [], !1).filter((el) => isElement(el) && getNodeName(el) !== "body"), currentContainingBlockComputedStyle = null;
|
|
3910
|
-
const elementIsFixed = getComputedStyle(element).position === "fixed";
|
|
3913
|
+
const elementIsFixed = getComputedStyle$1(element).position === "fixed";
|
|
3911
3914
|
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
3912
3915
|
for (; isElement(currentNode) && !isLastTraversableNode(currentNode); ) {
|
|
3913
|
-
const computedStyle = getComputedStyle(currentNode), currentNodeIsContaining = isContainingBlock(currentNode);
|
|
3916
|
+
const computedStyle = getComputedStyle$1(currentNode), currentNodeIsContaining = isContainingBlock(currentNode);
|
|
3914
3917
|
!currentNodeIsContaining && computedStyle.position === "fixed" && (currentContainingBlockComputedStyle = null), (elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode)) ? result = result.filter((ancestor) => ancestor !== currentNode) : currentContainingBlockComputedStyle = computedStyle, currentNode = getParentNode(currentNode);
|
|
3915
3918
|
}
|
|
3916
3919
|
return cache.set(element, result), result;
|
|
@@ -3968,10 +3971,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
3968
3971
|
};
|
|
3969
3972
|
}
|
|
3970
3973
|
function isStaticPositioned(element) {
|
|
3971
|
-
return getComputedStyle(element).position === "static";
|
|
3974
|
+
return getComputedStyle$1(element).position === "static";
|
|
3972
3975
|
}
|
|
3973
3976
|
function getTrueOffsetParent(element, polyfill) {
|
|
3974
|
-
if (!isHTMLElement(element) || getComputedStyle(element).position === "fixed")
|
|
3977
|
+
if (!isHTMLElement(element) || getComputedStyle$1(element).position === "fixed")
|
|
3975
3978
|
return null;
|
|
3976
3979
|
if (polyfill)
|
|
3977
3980
|
return polyfill(element);
|
|
@@ -4009,7 +4012,7 @@ const getElementRects = async function(data) {
|
|
|
4009
4012
|
};
|
|
4010
4013
|
};
|
|
4011
4014
|
function isRTL(element) {
|
|
4012
|
-
return getComputedStyle(element).direction === "rtl";
|
|
4015
|
+
return getComputedStyle$1(element).direction === "rtl";
|
|
4013
4016
|
}
|
|
4014
4017
|
const platform = {
|
|
4015
4018
|
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
@@ -4726,7 +4729,7 @@ function useDismiss(context2, props) {
|
|
|
4726
4729
|
if (isHTMLElement(target) && floating) {
|
|
4727
4730
|
const canScrollX = target.clientWidth > 0 && target.scrollWidth > target.clientWidth, canScrollY = target.clientHeight > 0 && target.scrollHeight > target.clientHeight;
|
|
4728
4731
|
let xCond = canScrollY && event.offsetX > target.clientWidth;
|
|
4729
|
-
if (canScrollY && getComputedStyle(target).direction === "rtl" && (xCond = event.offsetX <= target.offsetWidth - target.clientWidth), xCond || canScrollX && event.offsetY > target.clientHeight)
|
|
4732
|
+
if (canScrollY && getComputedStyle$1(target).direction === "rtl" && (xCond = event.offsetX <= target.offsetWidth - target.clientWidth), xCond || canScrollX && event.offsetY > target.clientHeight)
|
|
4730
4733
|
return;
|
|
4731
4734
|
}
|
|
4732
4735
|
const nodeId = (_dataRef$current$floa2 = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa2.nodeId, targetIsInsideChildren = tree && getChildren$1(tree.nodesRef.current, nodeId).some((node) => {
|
|
@@ -8691,6 +8694,10 @@ function u$2(r2, n2, o2) {
|
|
|
8691
8694
|
if (a === 1) return u$3(r2, n2, o2);
|
|
8692
8695
|
throw new Error("Wrong number of arguments");
|
|
8693
8696
|
}
|
|
8697
|
+
function i$1(...e2) {
|
|
8698
|
+
return u$2(n$2, e2);
|
|
8699
|
+
}
|
|
8700
|
+
var n$2 = (e2, r2) => e2.length >= r2;
|
|
8694
8701
|
function l$1(...n2) {
|
|
8695
8702
|
return u$2(d, n2);
|
|
8696
8703
|
}
|
|
@@ -10521,7 +10528,7 @@ function nogamma(a, b) {
|
|
|
10521
10528
|
var d2 = b - a;
|
|
10522
10529
|
return d2 ? linear(a, d2) : constant$1(isNaN(a) ? b : a);
|
|
10523
10530
|
}
|
|
10524
|
-
const interpolateRgb = function rgbGamma(y2) {
|
|
10531
|
+
const interpolateRgb = (function rgbGamma(y2) {
|
|
10525
10532
|
var color2 = gamma(y2);
|
|
10526
10533
|
function rgb$1(start2, end) {
|
|
10527
10534
|
var r2 = color2((start2 = rgb(start2)).r, (end = rgb(end)).r), g = color2(start2.g, end.g), b = color2(start2.b, end.b), opacity = nogamma(start2.opacity, end.opacity);
|
|
@@ -10530,7 +10537,7 @@ const interpolateRgb = function rgbGamma(y2) {
|
|
|
10530
10537
|
};
|
|
10531
10538
|
}
|
|
10532
10539
|
return rgb$1.gamma = rgbGamma, rgb$1;
|
|
10533
|
-
}(1);
|
|
10540
|
+
})(1);
|
|
10534
10541
|
function numberArray(a, b) {
|
|
10535
10542
|
b || (b = []);
|
|
10536
10543
|
var n2 = a ? Math.min(b.length, a.length) : 0, c = b.slice(), i2;
|
|
@@ -10663,7 +10670,7 @@ function sinh(x) {
|
|
|
10663
10670
|
function tanh(x) {
|
|
10664
10671
|
return ((x = Math.exp(2 * x)) - 1) / (x + 1);
|
|
10665
10672
|
}
|
|
10666
|
-
const interpolateZoom = function zoomRho(rho, rho2, rho4) {
|
|
10673
|
+
const interpolateZoom = (function zoomRho(rho, rho2, rho4) {
|
|
10667
10674
|
function zoom2(p0, p1) {
|
|
10668
10675
|
var ux0 = p0[0], uy0 = p0[1], w0 = p0[2], ux1 = p1[0], uy1 = p1[1], w1 = p1[2], dx = ux1 - ux0, dy = uy1 - uy0, d2 = dx * dx + dy * dy, i2, S;
|
|
10669
10676
|
if (d2 < epsilon2)
|
|
@@ -10691,7 +10698,7 @@ const interpolateZoom = function zoomRho(rho, rho2, rho4) {
|
|
|
10691
10698
|
var _1 = Math.max(1e-3, +_), _2 = _1 * _1, _4 = _2 * _2;
|
|
10692
10699
|
return zoomRho(_1, _2, _4);
|
|
10693
10700
|
}, zoom2;
|
|
10694
|
-
}(Math.SQRT2, 2, 4);
|
|
10701
|
+
})(Math.SQRT2, 2, 4);
|
|
10695
10702
|
var frame = 0, timeout$1 = 0, interval = 0, pokeDelay = 1e3, taskHead, taskTail, clockLast = 0, clockNow = 0, clockSkew = 0, clock = typeof performance == "object" && performance.now ? performance : Date, setFrame = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f2) {
|
|
10696
10703
|
setTimeout(f2, 17);
|
|
10697
10704
|
};
|
|
@@ -11866,7 +11873,7 @@ const getViewportForBounds = (bounds, width, height, minZoom, maxZoom, padding)
|
|
|
11866
11873
|
};
|
|
11867
11874
|
}, isMacOs = () => typeof navigator < "u" && navigator?.userAgent?.indexOf("Mac") >= 0;
|
|
11868
11875
|
function isCoordinateExtent(extent) {
|
|
11869
|
-
return extent
|
|
11876
|
+
return extent != null && extent !== "parent";
|
|
11870
11877
|
}
|
|
11871
11878
|
function getNodeDimensions(node) {
|
|
11872
11879
|
return {
|
|
@@ -12518,8 +12525,8 @@ function XYDrag({ onNodeMouseDown, getStoreItems, onDragStart, onDrag, onDragSto
|
|
|
12518
12525
|
continue;
|
|
12519
12526
|
let nextPosition = { x: x - dragItem.distance.x, y: y2 - dragItem.distance.y };
|
|
12520
12527
|
snapToGrid && (nextPosition = multiDragSnapOffset ? {
|
|
12521
|
-
x: nextPosition.x + multiDragSnapOffset.x,
|
|
12522
|
-
y: nextPosition.y + multiDragSnapOffset.y
|
|
12528
|
+
x: Math.round(nextPosition.x + multiDragSnapOffset.x),
|
|
12529
|
+
y: Math.round(nextPosition.y + multiDragSnapOffset.y)
|
|
12523
12530
|
} : snapPosition(nextPosition, snapGrid));
|
|
12524
12531
|
let adjustedNodeExtent = null;
|
|
12525
12532
|
if (isMultiDrag && nodeExtent && !dragItem.extent && nodesBox) {
|
|
@@ -14629,13 +14636,13 @@ const ArrowSymbol = ({ color: color2 = "none", strokeWidth = 1 }) => {
|
|
|
14629
14636
|
strokeWidth,
|
|
14630
14637
|
...color2 && { stroke: color2 }
|
|
14631
14638
|
};
|
|
14632
|
-
return jsx("polyline", { style: style2, strokeLinecap: "round",
|
|
14639
|
+
return jsx("polyline", { className: "arrow", style: style2, strokeLinecap: "round", fill: "none", strokeLinejoin: "round", points: "-5,-4 0,0 -5,4" });
|
|
14633
14640
|
}, ArrowClosedSymbol = ({ color: color2 = "none", strokeWidth = 1 }) => {
|
|
14634
14641
|
const style2 = {
|
|
14635
14642
|
strokeWidth,
|
|
14636
14643
|
...color2 && { stroke: color2, fill: color2 }
|
|
14637
14644
|
};
|
|
14638
|
-
return jsx("polyline", { style: style2, strokeLinecap: "round", strokeLinejoin: "round", points: "-5,-4 0,0 -5,4 -5,-4" });
|
|
14645
|
+
return jsx("polyline", { className: "arrowclosed", style: style2, strokeLinecap: "round", strokeLinejoin: "round", points: "-5,-4 0,0 -5,4 -5,-4" });
|
|
14639
14646
|
}, MarkerSymbols = {
|
|
14640
14647
|
[MarkerType.Arrow]: ArrowSymbol,
|
|
14641
14648
|
[MarkerType.ArrowClosed]: ArrowClosedSymbol
|
|
@@ -15880,9 +15887,9 @@ function createIsCircular(areItemsEqual) {
|
|
|
15880
15887
|
function getStrictProperties(object2) {
|
|
15881
15888
|
return getOwnPropertyNames(object2).concat(getOwnPropertySymbols(object2));
|
|
15882
15889
|
}
|
|
15883
|
-
var hasOwn = Object.hasOwn || function(object2, property) {
|
|
15890
|
+
var hasOwn = Object.hasOwn || (function(object2, property) {
|
|
15884
15891
|
return hasOwnProperty.call(object2, property);
|
|
15885
|
-
};
|
|
15892
|
+
});
|
|
15886
15893
|
function sameValueZeroEqual(a, b) {
|
|
15887
15894
|
return a === b || !a && !b && a !== a && b !== b;
|
|
15888
15895
|
}
|
|
@@ -16479,11 +16486,12 @@ function useTagSpecification(tag) {
|
|
|
16479
16486
|
}
|
|
16480
16487
|
const RootContainerContext = createContext(createRef());
|
|
16481
16488
|
function RootContainer({
|
|
16489
|
+
id: id2,
|
|
16482
16490
|
className,
|
|
16483
16491
|
reduceGraphics = !1,
|
|
16484
16492
|
children: children2
|
|
16485
16493
|
}) {
|
|
16486
|
-
const
|
|
16494
|
+
const ref = useRef(null), $isPanning = usePanningAtom();
|
|
16487
16495
|
return useEffect(() => $isPanning.listen((isPanning) => {
|
|
16488
16496
|
ref.current?.setAttribute("data-likec4-diagram-panning", isPanning ? "true" : "false");
|
|
16489
16497
|
}), [$isPanning]), /* @__PURE__ */ jsx(
|
|
@@ -17487,7 +17495,7 @@ function bezierControlPoints(diagramEdge) {
|
|
|
17487
17495
|
const handles = [
|
|
17488
17496
|
// start
|
|
17489
17497
|
];
|
|
17490
|
-
for (;
|
|
17498
|
+
for (; i$1(bezierPoints, 3); ) {
|
|
17491
17499
|
const [cp1, cp2, end, ...rest] = bezierPoints, bezier = new Bezier(start2[0], start2[1], cp1[0], cp1[1], cp2[0], cp2[1], end[0], end[1]), inflections = bezier.inflections();
|
|
17492
17500
|
inflections.length === 0 && inflections.push(0.5), inflections.forEach((t2) => {
|
|
17493
17501
|
const { x, y: y2 } = bezier.get(t2);
|
|
@@ -17518,7 +17526,7 @@ function bezierPath(bezierSpline) {
|
|
|
17518
17526
|
let [start2, ...points] = bezierSpline;
|
|
17519
17527
|
invariant(start2, "start should be defined");
|
|
17520
17528
|
let path = `M ${start2[0]},${start2[1]}`;
|
|
17521
|
-
for (;
|
|
17529
|
+
for (; i$1(points, 3); ) {
|
|
17522
17530
|
const [cp1, cp2, end, ...rest] = points;
|
|
17523
17531
|
path = path + ` C ${cp1[0]},${cp1[1]} ${cp2[0]},${cp2[1]} ${end[0]},${end[1]}`, points = rest;
|
|
17524
17532
|
}
|
|
@@ -17833,9 +17841,9 @@ function createSystem(rootActor, options) {
|
|
|
17833
17841
|
}
|
|
17834
17842
|
let executingCustomAction = !1;
|
|
17835
17843
|
const $$ACTOR_TYPE = 1;
|
|
17836
|
-
let ProcessingStatus = /* @__PURE__ */ function(ProcessingStatus2) {
|
|
17844
|
+
let ProcessingStatus = /* @__PURE__ */ (function(ProcessingStatus2) {
|
|
17837
17845
|
return ProcessingStatus2[ProcessingStatus2.NotStarted = 0] = "NotStarted", ProcessingStatus2[ProcessingStatus2.Running = 1] = "Running", ProcessingStatus2[ProcessingStatus2.Stopped = 2] = "Stopped", ProcessingStatus2;
|
|
17838
|
-
}({});
|
|
17846
|
+
})({});
|
|
17839
17847
|
const defaultOptions = {
|
|
17840
17848
|
clock: {
|
|
17841
17849
|
setTimeout: (fn, ms) => setTimeout(fn, ms),
|
|
@@ -19612,11 +19620,16 @@ const createRecipe = (name, defaultVariants, compoundVariants) => {
|
|
|
19612
19620
|
},
|
|
19613
19621
|
getVariantProps: likec4tagFn.getVariantProps
|
|
19614
19622
|
}), markdownBlockFn = /* @__PURE__ */ createRecipe("likec4-markdown-block", {
|
|
19615
|
-
uselikec4palette: !1
|
|
19623
|
+
uselikec4palette: !1,
|
|
19624
|
+
value: "markdown"
|
|
19616
19625
|
}, []), markdownBlockVariantMap = {
|
|
19617
19626
|
uselikec4palette: [
|
|
19618
19627
|
"true",
|
|
19619
19628
|
"false"
|
|
19629
|
+
],
|
|
19630
|
+
value: [
|
|
19631
|
+
"markdown",
|
|
19632
|
+
"plaintext"
|
|
19620
19633
|
]
|
|
19621
19634
|
}, markdownBlockVariantKeys = Object.keys(markdownBlockVariantMap), markdownBlock = /* @__PURE__ */ Object.assign(memo(markdownBlockFn.recipeFn), {
|
|
19622
19635
|
__recipe__: !0,
|
|
@@ -20468,7 +20481,8 @@ const MarkdownBlock = forwardRef(({
|
|
|
20468
20481
|
...props,
|
|
20469
20482
|
className: cx(
|
|
20470
20483
|
markdownBlock({
|
|
20471
|
-
uselikec4palette
|
|
20484
|
+
uselikec4palette,
|
|
20485
|
+
value: value.isMarkdown ? "markdown" : "plaintext"
|
|
20472
20486
|
}),
|
|
20473
20487
|
className
|
|
20474
20488
|
),
|
|
@@ -20528,7 +20542,7 @@ function ElementTitle({ id: id2, data, iconSize }) {
|
|
|
20528
20542
|
children: data.technology
|
|
20529
20543
|
}
|
|
20530
20544
|
),
|
|
20531
|
-
data.description?.nonEmpty &&
|
|
20545
|
+
data.description?.nonEmpty && /* @__PURE__ */ jsx(
|
|
20532
20546
|
MarkdownBlock,
|
|
20533
20547
|
{
|
|
20534
20548
|
className: cx(classes2.description, "likec4-element-description"),
|
|
@@ -20538,15 +20552,7 @@ function ElementTitle({ id: id2, data, iconSize }) {
|
|
|
20538
20552
|
maxHeight: data.description.isMarkdown ? "8rem" : void 0,
|
|
20539
20553
|
lineClamp: isSmOrXs ? 3 : 5
|
|
20540
20554
|
}
|
|
20541
|
-
)
|
|
20542
|
-
Text,
|
|
20543
|
-
{
|
|
20544
|
-
component: "div",
|
|
20545
|
-
className: cx(classes2.description, "likec4-element-description"),
|
|
20546
|
-
lineClamp: isSmOrXs ? 3 : 5,
|
|
20547
|
-
children: data.description.text
|
|
20548
|
-
}
|
|
20549
|
-
))
|
|
20555
|
+
)
|
|
20550
20556
|
] })
|
|
20551
20557
|
]
|
|
20552
20558
|
}
|
|
@@ -20591,7 +20597,7 @@ const style = {
|
|
|
20591
20597
|
}
|
|
20592
20598
|
}), buttons2;
|
|
20593
20599
|
}, [enableNavigateTo, enableRelationshipBrowser, diagram, modelFqn, navigateTo, props.id]);
|
|
20594
|
-
return extraButtons &&
|
|
20600
|
+
return extraButtons && i$1(extraButtons, 1) && (buttons = [...buttons, ...extraButtons]), /* @__PURE__ */ jsx(ElementActionButtons, { ...props, buttons });
|
|
20595
20601
|
}, DeploymentElementActions = ({
|
|
20596
20602
|
extraButtons,
|
|
20597
20603
|
...props
|
|
@@ -20613,7 +20619,7 @@ const style = {
|
|
|
20613
20619
|
}
|
|
20614
20620
|
}), buttons2;
|
|
20615
20621
|
}, [enableNavigateTo, enableRelationshipBrowser, diagram, modelFqn, navigateTo, props.id]);
|
|
20616
|
-
return extraButtons &&
|
|
20622
|
+
return extraButtons && i$1(extraButtons, 1) && (buttons = [...buttons, ...extraButtons]), /* @__PURE__ */ jsx(ElementActionButtons, { ...props, buttons });
|
|
20617
20623
|
}, {
|
|
20618
20624
|
primary,
|
|
20619
20625
|
secondary,
|
|
@@ -20639,7 +20645,7 @@ const style = {
|
|
|
20639
20645
|
function useHandlers(target, props) {
|
|
20640
20646
|
const { onChange: triggerOnChange } = useDiagramEventHandlers(), diagram = useDiagram(), [originalColor, setOriginalColor] = useState(null), onColorPreview = useCallbackRef((color2) => {
|
|
20641
20647
|
if (color2 === null) {
|
|
20642
|
-
invariant(originalColor, "originalColor is null"), setOriginalColor(null), diagram.updateNodeData(props.id, {
|
|
20648
|
+
invariant$1(originalColor, "originalColor is null"), setOriginalColor(null), diagram.updateNodeData(props.id, {
|
|
20643
20649
|
color: originalColor
|
|
20644
20650
|
});
|
|
20645
20651
|
return;
|
|
@@ -21512,7 +21518,7 @@ export {
|
|
|
21512
21518
|
parseThemeColor as Z,
|
|
21513
21519
|
createEventHandler as _,
|
|
21514
21520
|
useMediaQuery as a,
|
|
21515
|
-
|
|
21521
|
+
useDebouncedCallback as a$,
|
|
21516
21522
|
useDelayGroup as a0,
|
|
21517
21523
|
useFloating as a1,
|
|
21518
21524
|
useInteractions as a2,
|
|
@@ -21523,209 +21529,209 @@ export {
|
|
|
21523
21529
|
Loader as a7,
|
|
21524
21530
|
createScopedKeydownHandler as a8,
|
|
21525
21531
|
getContrastColor as a9,
|
|
21526
|
-
|
|
21527
|
-
|
|
21528
|
-
|
|
21529
|
-
|
|
21530
|
-
|
|
21531
|
-
|
|
21532
|
-
|
|
21533
|
-
|
|
21534
|
-
|
|
21535
|
-
|
|
21536
|
-
|
|
21537
|
-
|
|
21538
|
-
|
|
21539
|
-
|
|
21540
|
-
|
|
21541
|
-
|
|
21542
|
-
|
|
21543
|
-
|
|
21544
|
-
|
|
21545
|
-
|
|
21546
|
-
|
|
21547
|
-
|
|
21548
|
-
|
|
21549
|
-
|
|
21550
|
-
|
|
21551
|
-
|
|
21552
|
-
|
|
21532
|
+
isMotionValue as aA,
|
|
21533
|
+
isControllingVariants as aB,
|
|
21534
|
+
isVariantNode as aC,
|
|
21535
|
+
hasReducedMotionListener as aD,
|
|
21536
|
+
initPrefersReducedMotion as aE,
|
|
21537
|
+
prefersReducedMotion as aF,
|
|
21538
|
+
transformProps as aG,
|
|
21539
|
+
featureDefinitions as aH,
|
|
21540
|
+
resolveVariantFromProps as aI,
|
|
21541
|
+
isCSSVariableName as aJ,
|
|
21542
|
+
buildHTMLStyles as aK,
|
|
21543
|
+
scrapeMotionValuesFromProps$1 as aL,
|
|
21544
|
+
camelToDash as aM,
|
|
21545
|
+
scrapeMotionValuesFromProps as aN,
|
|
21546
|
+
buildSVGAttrs as aO,
|
|
21547
|
+
isSVGTag as aP,
|
|
21548
|
+
isSVGComponent as aQ,
|
|
21549
|
+
optimizedAppearDataAttribute as aR,
|
|
21550
|
+
isVariantLabel as aS,
|
|
21551
|
+
variantProps as aT,
|
|
21552
|
+
isAnimationControls as aU,
|
|
21553
|
+
variantPriorityOrder as aV,
|
|
21554
|
+
isRefObject as aW,
|
|
21555
|
+
SwitchLayoutGroupContext as aX,
|
|
21556
|
+
addScaleCorrector as aY,
|
|
21557
|
+
resolveMotionValue as aZ,
|
|
21558
|
+
scaleCorrectors as a_,
|
|
21553
21559
|
findElementAncestor as aa,
|
|
21554
21560
|
useClickOutside as ab,
|
|
21555
21561
|
createReactComponent as ac,
|
|
21556
21562
|
C as ad,
|
|
21557
21563
|
s as ae,
|
|
21558
21564
|
u$2 as af,
|
|
21559
|
-
|
|
21560
|
-
|
|
21561
|
-
|
|
21562
|
-
|
|
21563
|
-
|
|
21564
|
-
|
|
21565
|
-
|
|
21566
|
-
|
|
21567
|
-
|
|
21568
|
-
|
|
21569
|
-
|
|
21570
|
-
|
|
21571
|
-
|
|
21572
|
-
|
|
21573
|
-
|
|
21574
|
-
|
|
21575
|
-
|
|
21576
|
-
|
|
21577
|
-
|
|
21578
|
-
|
|
21565
|
+
i$1 as ag,
|
|
21566
|
+
number as ah,
|
|
21567
|
+
alpha as ai,
|
|
21568
|
+
clamp$1 as aj,
|
|
21569
|
+
percent as ak,
|
|
21570
|
+
isCSSVariableToken as al,
|
|
21571
|
+
px as am,
|
|
21572
|
+
transformPropOrder as an,
|
|
21573
|
+
degrees$1 as ao,
|
|
21574
|
+
vw as ap,
|
|
21575
|
+
vh as aq,
|
|
21576
|
+
numberValueTypes as ar,
|
|
21577
|
+
MotionConfigContext as as,
|
|
21578
|
+
useConstant as at,
|
|
21579
|
+
PresenceContext as au,
|
|
21580
|
+
useIsomorphicLayoutEffect$1 as av,
|
|
21581
|
+
LayoutGroupContext as aw,
|
|
21582
|
+
loadFeatures as ax,
|
|
21583
|
+
LazyContext as ay,
|
|
21584
|
+
loadExternalIsValidProp as az,
|
|
21579
21585
|
useMantineTheme as b,
|
|
21580
|
-
|
|
21581
|
-
|
|
21582
|
-
|
|
21583
|
-
|
|
21584
|
-
|
|
21585
|
-
|
|
21586
|
-
|
|
21587
|
-
|
|
21588
|
-
|
|
21589
|
-
|
|
21590
|
-
|
|
21591
|
-
|
|
21592
|
-
|
|
21593
|
-
|
|
21594
|
-
|
|
21595
|
-
|
|
21596
|
-
|
|
21597
|
-
|
|
21598
|
-
|
|
21599
|
-
|
|
21600
|
-
|
|
21601
|
-
|
|
21602
|
-
|
|
21603
|
-
|
|
21604
|
-
|
|
21605
|
-
|
|
21606
|
-
|
|
21607
|
-
|
|
21608
|
-
|
|
21609
|
-
|
|
21610
|
-
|
|
21611
|
-
|
|
21612
|
-
|
|
21613
|
-
|
|
21614
|
-
|
|
21615
|
-
|
|
21616
|
-
|
|
21617
|
-
|
|
21618
|
-
|
|
21619
|
-
|
|
21620
|
-
|
|
21621
|
-
|
|
21622
|
-
|
|
21623
|
-
|
|
21624
|
-
|
|
21625
|
-
|
|
21626
|
-
|
|
21627
|
-
|
|
21628
|
-
|
|
21629
|
-
|
|
21630
|
-
|
|
21631
|
-
|
|
21632
|
-
|
|
21633
|
-
|
|
21634
|
-
|
|
21635
|
-
|
|
21636
|
-
|
|
21637
|
-
|
|
21638
|
-
|
|
21639
|
-
|
|
21640
|
-
|
|
21641
|
-
|
|
21642
|
-
|
|
21643
|
-
|
|
21586
|
+
MotionDiv as b$,
|
|
21587
|
+
isBrowser as b0,
|
|
21588
|
+
css as b1,
|
|
21589
|
+
getPatternStyles as b2,
|
|
21590
|
+
patternFns as b3,
|
|
21591
|
+
splitProps as b4,
|
|
21592
|
+
styled as b5,
|
|
21593
|
+
Background as b6,
|
|
21594
|
+
BackgroundVariant as b7,
|
|
21595
|
+
useIsZoomTooSmall as b8,
|
|
21596
|
+
useXYStoreApi as b9,
|
|
21597
|
+
$$ACTOR_TYPE as bA,
|
|
21598
|
+
STATE_DELIMITER as bB,
|
|
21599
|
+
mapValues as bC,
|
|
21600
|
+
toArray as bD,
|
|
21601
|
+
formatTransitions as bE,
|
|
21602
|
+
toTransitionConfigArray as bF,
|
|
21603
|
+
formatTransition as bG,
|
|
21604
|
+
evaluateGuard as bH,
|
|
21605
|
+
getCandidates as bI,
|
|
21606
|
+
NULL_EVENT as bJ,
|
|
21607
|
+
createInvokeId as bK,
|
|
21608
|
+
getDelayedTransitions as bL,
|
|
21609
|
+
formatInitialTransition as bM,
|
|
21610
|
+
createErrorActorEvent as bN,
|
|
21611
|
+
XSTATE_ERROR as bO,
|
|
21612
|
+
cancel as bP,
|
|
21613
|
+
raise as bQ,
|
|
21614
|
+
spawnChild as bR,
|
|
21615
|
+
stopChild as bS,
|
|
21616
|
+
memo as bT,
|
|
21617
|
+
createRecipe as bU,
|
|
21618
|
+
mergeRecipes as bV,
|
|
21619
|
+
compact as bW,
|
|
21620
|
+
getSlotCompoundVariant as bX,
|
|
21621
|
+
deepEqual as bY,
|
|
21622
|
+
ActionIcon as bZ,
|
|
21623
|
+
IconZoomScan as b_,
|
|
21624
|
+
index as ba,
|
|
21625
|
+
stopPropagation as bb,
|
|
21626
|
+
cx as bc,
|
|
21627
|
+
roundDpr as bd,
|
|
21628
|
+
useStore as be,
|
|
21629
|
+
useUpdateEffect as bf,
|
|
21630
|
+
XSTATE_STOP as bg,
|
|
21631
|
+
cloneMachineSnapshot as bh,
|
|
21632
|
+
ProcessingStatus as bi,
|
|
21633
|
+
resolveReferencedActor as bj,
|
|
21634
|
+
createActor as bk,
|
|
21635
|
+
resolveStateValue as bl,
|
|
21636
|
+
getAllStateNodes as bm,
|
|
21637
|
+
getStateNodes as bn,
|
|
21638
|
+
createMachineSnapshot as bo,
|
|
21639
|
+
isInFinalState as bp,
|
|
21640
|
+
macrostep as bq,
|
|
21641
|
+
transitionNode as br,
|
|
21642
|
+
resolveActionsAndContext as bs,
|
|
21643
|
+
createInitEvent as bt,
|
|
21644
|
+
microstep as bu,
|
|
21645
|
+
getInitialStateNodes as bv,
|
|
21646
|
+
toStatePath as bw,
|
|
21647
|
+
isStateId as bx,
|
|
21648
|
+
getStateNodeByPath as by,
|
|
21649
|
+
getPersistedSnapshot as bz,
|
|
21644
21650
|
useMantineStyleNonce as c,
|
|
21645
|
-
|
|
21646
|
-
|
|
21647
|
-
|
|
21648
|
-
|
|
21649
|
-
|
|
21650
|
-
|
|
21651
|
-
|
|
21652
|
-
|
|
21653
|
-
|
|
21654
|
-
|
|
21655
|
-
|
|
21656
|
-
|
|
21657
|
-
|
|
21658
|
-
|
|
21659
|
-
|
|
21660
|
-
|
|
21661
|
-
|
|
21662
|
-
|
|
21663
|
-
|
|
21664
|
-
|
|
21665
|
-
|
|
21666
|
-
|
|
21667
|
-
|
|
21668
|
-
|
|
21669
|
-
|
|
21670
|
-
|
|
21671
|
-
|
|
21672
|
-
|
|
21673
|
-
|
|
21674
|
-
|
|
21675
|
-
|
|
21676
|
-
|
|
21677
|
-
|
|
21678
|
-
|
|
21679
|
-
|
|
21680
|
-
|
|
21681
|
-
|
|
21682
|
-
|
|
21683
|
-
|
|
21684
|
-
|
|
21685
|
-
|
|
21686
|
-
|
|
21687
|
-
|
|
21688
|
-
|
|
21689
|
-
|
|
21690
|
-
|
|
21691
|
-
|
|
21692
|
-
|
|
21693
|
-
|
|
21694
|
-
|
|
21695
|
-
|
|
21696
|
-
|
|
21697
|
-
|
|
21698
|
-
|
|
21699
|
-
|
|
21700
|
-
|
|
21701
|
-
|
|
21702
|
-
|
|
21703
|
-
|
|
21704
|
-
|
|
21705
|
-
|
|
21706
|
-
|
|
21707
|
-
|
|
21708
|
-
|
|
21651
|
+
IconTransform as c$,
|
|
21652
|
+
Box as c0,
|
|
21653
|
+
n$1 as c1,
|
|
21654
|
+
EdgeLabelRenderer as c2,
|
|
21655
|
+
e as c3,
|
|
21656
|
+
getNodeDimensions as c4,
|
|
21657
|
+
useXYFlow as c5,
|
|
21658
|
+
useDiagram as c6,
|
|
21659
|
+
useEnabledFeatures as c7,
|
|
21660
|
+
useXYInternalNode as c8,
|
|
21661
|
+
isSamePoint as c9,
|
|
21662
|
+
IconFileSymlink as cA,
|
|
21663
|
+
isMacOs as cB,
|
|
21664
|
+
IconCheck as cC,
|
|
21665
|
+
IconId as cD,
|
|
21666
|
+
HStack as cE,
|
|
21667
|
+
ElementTag as cF,
|
|
21668
|
+
MarkdownBlock as cG,
|
|
21669
|
+
cva as cH,
|
|
21670
|
+
Button as cI,
|
|
21671
|
+
MotionSpan as cJ,
|
|
21672
|
+
Portal as cK,
|
|
21673
|
+
useLikeC4ProjectsContext as cL,
|
|
21674
|
+
useLikeC4ProjectId as cM,
|
|
21675
|
+
Menu as cN,
|
|
21676
|
+
MenuTarget as cO,
|
|
21677
|
+
MenuDropdown as cP,
|
|
21678
|
+
MenuItem as cQ,
|
|
21679
|
+
useLikeC4Model as cR,
|
|
21680
|
+
Divider as cS,
|
|
21681
|
+
o$1 as cT,
|
|
21682
|
+
useDiagramActorRef as cU,
|
|
21683
|
+
useCurrentViewModel as cV,
|
|
21684
|
+
useActorRef as cW,
|
|
21685
|
+
useUpdateEffect$1 as cX,
|
|
21686
|
+
Group as cY,
|
|
21687
|
+
getBezierPath as cZ,
|
|
21688
|
+
ElementActionButtons as c_,
|
|
21689
|
+
bezierControlPoints as ca,
|
|
21690
|
+
bezierPath as cb,
|
|
21691
|
+
ViewGroupNode as cc,
|
|
21692
|
+
CompoundDeploymentNode as cd,
|
|
21693
|
+
CompoundElementNode as ce,
|
|
21694
|
+
DeploymentNode as cf,
|
|
21695
|
+
ElementNode as cg,
|
|
21696
|
+
useDiagramActorSnapshot as ch,
|
|
21697
|
+
n as ci,
|
|
21698
|
+
MotionButton as cj,
|
|
21699
|
+
Tooltip$1 as ck,
|
|
21700
|
+
useDiagramEventHandlers as cl,
|
|
21701
|
+
useDiagramContext as cm,
|
|
21702
|
+
useHover$1 as cn,
|
|
21703
|
+
PopoverTarget as co,
|
|
21704
|
+
PopoverDropdown as cp,
|
|
21705
|
+
FloatingIndicator as cq,
|
|
21706
|
+
Flex as cr,
|
|
21707
|
+
clampUseMovePosition as cs,
|
|
21708
|
+
useMove as ct,
|
|
21709
|
+
useMantinePortalProps as cu,
|
|
21710
|
+
hstack as cv,
|
|
21711
|
+
TooltipGroup as cw,
|
|
21712
|
+
shallowEqual as cx,
|
|
21713
|
+
useSelector as cy,
|
|
21714
|
+
useCurrentViewId as cz,
|
|
21709
21715
|
alpha$1 as d,
|
|
21710
21716
|
getBoundsOfRects as d$,
|
|
21711
|
-
|
|
21712
|
-
|
|
21713
|
-
|
|
21714
|
-
|
|
21715
|
-
|
|
21716
|
-
|
|
21717
|
-
|
|
21718
|
-
|
|
21719
|
-
|
|
21720
|
-
|
|
21721
|
-
|
|
21722
|
-
|
|
21723
|
-
|
|
21724
|
-
|
|
21725
|
-
|
|
21726
|
-
|
|
21727
|
-
|
|
21728
|
-
|
|
21717
|
+
CompoundNodeContainer as d0,
|
|
21718
|
+
CompoundTitle as d1,
|
|
21719
|
+
CompoundDetailsButton as d2,
|
|
21720
|
+
ElementNodeContainer as d3,
|
|
21721
|
+
ElementShape as d4,
|
|
21722
|
+
ElementTitle as d5,
|
|
21723
|
+
ElementTags as d6,
|
|
21724
|
+
Handle as d7,
|
|
21725
|
+
Position as d8,
|
|
21726
|
+
ElementDetailsButton as d9,
|
|
21727
|
+
VisuallyHidden as dA,
|
|
21728
|
+
IconOrShapeRenderer as dB,
|
|
21729
|
+
FocusTrap as dC,
|
|
21730
|
+
t$3 as dD,
|
|
21731
|
+
useOnDiagramEvent as dE,
|
|
21732
|
+
findDiagramEdge as dF,
|
|
21733
|
+
findDiagramNode as dG,
|
|
21734
|
+
autoUpdate as dH,
|
|
21729
21735
|
computePosition as dI,
|
|
21730
21736
|
offset$2 as dJ,
|
|
21731
21737
|
autoPlacement as dK,
|
|
@@ -21745,31 +21751,31 @@ export {
|
|
|
21745
21751
|
getViewportForBounds as dY,
|
|
21746
21752
|
typedSystem as dZ,
|
|
21747
21753
|
centerXYInternalNode as d_,
|
|
21748
|
-
|
|
21749
|
-
|
|
21750
|
-
|
|
21751
|
-
|
|
21752
|
-
|
|
21753
|
-
|
|
21754
|
-
|
|
21755
|
-
|
|
21756
|
-
|
|
21757
|
-
|
|
21758
|
-
|
|
21759
|
-
|
|
21760
|
-
|
|
21761
|
-
|
|
21762
|
-
|
|
21763
|
-
|
|
21764
|
-
|
|
21765
|
-
|
|
21766
|
-
|
|
21767
|
-
|
|
21768
|
-
|
|
21769
|
-
|
|
21770
|
-
|
|
21771
|
-
|
|
21772
|
-
|
|
21754
|
+
getDefaultExportFromCjs as da,
|
|
21755
|
+
l$1 as db,
|
|
21756
|
+
IconSelector as dc,
|
|
21757
|
+
SegmentedControl as dd,
|
|
21758
|
+
ReactFlowProvider as de,
|
|
21759
|
+
useStoreApi as df,
|
|
21760
|
+
useReactFlow as dg,
|
|
21761
|
+
Panel as dh,
|
|
21762
|
+
m as di,
|
|
21763
|
+
Stack as dj,
|
|
21764
|
+
u as dk,
|
|
21765
|
+
useSyncedRef as dl,
|
|
21766
|
+
IconRenderer as dm,
|
|
21767
|
+
useTimeoutEffect as dn,
|
|
21768
|
+
ReactRemoveScroll as dp,
|
|
21769
|
+
ActionIconGroup as dq,
|
|
21770
|
+
IfEnabled as dr,
|
|
21771
|
+
DiagramFeatures as ds,
|
|
21772
|
+
t$1 as dt,
|
|
21773
|
+
customNode as du,
|
|
21774
|
+
useXYStore as dv,
|
|
21775
|
+
useReducedMotionConfig as dw,
|
|
21776
|
+
Overlay as dx,
|
|
21777
|
+
sva as dy,
|
|
21778
|
+
t$2 as dz,
|
|
21773
21779
|
em as e,
|
|
21774
21780
|
boxToRect as e0,
|
|
21775
21781
|
and as e1,
|