@likec4/diagram 1.39.0 → 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.
@@ -16486,11 +16486,12 @@ function useTagSpecification(tag) {
16486
16486
  }
16487
16487
  const RootContainerContext = createContext(createRef());
16488
16488
  function RootContainer({
16489
+ id: id2,
16489
16490
  className,
16490
16491
  reduceGraphics = !1,
16491
16492
  children: children2
16492
16493
  }) {
16493
- const id2 = useId$1(), ref = useRef(null), $isPanning = usePanningAtom();
16494
+ const ref = useRef(null), $isPanning = usePanningAtom();
16494
16495
  return useEffect(() => $isPanning.listen((isPanning) => {
16495
16496
  ref.current?.setAttribute("data-likec4-diagram-panning", isPanning ? "true" : "false");
16496
16497
  }), [$isPanning]), /* @__PURE__ */ jsx(
@@ -21712,7 +21713,7 @@ export {
21712
21713
  useSelector as cy,
21713
21714
  useCurrentViewId as cz,
21714
21715
  alpha$1 as d,
21715
- centerXYInternalNode as d$,
21716
+ getBoundsOfRects as d$,
21716
21717
  CompoundNodeContainer as d0,
21717
21718
  CompoundTitle as d1,
21718
21719
  CompoundDetailsButton as d2,
@@ -21731,25 +21732,25 @@ export {
21731
21732
  findDiagramEdge as dF,
21732
21733
  findDiagramNode as dG,
21733
21734
  autoUpdate as dH,
21734
- Space as dI,
21735
- computePosition as dJ,
21736
- offset$2 as dK,
21737
- autoPlacement as dL,
21738
- size$1 as dM,
21739
- hide$1 as dN,
21740
- useOptionalCurrentViewModel as dO,
21741
- ButtonGroup as dP,
21742
- EnsureCurrentViewModel as dQ,
21743
- useIsReducedGraphics as dR,
21744
- usePanningAtom as dS,
21745
- useTimeout as dT,
21746
- useCustomCompareMemo as dU,
21747
- useLikeC4Specification as dV,
21748
- r as dW,
21749
- applyEdgeChanges as dX,
21750
- applyNodeChanges as dY,
21751
- getViewportForBounds as dZ,
21752
- typedSystem as d_,
21735
+ computePosition as dI,
21736
+ offset$2 as dJ,
21737
+ autoPlacement as dK,
21738
+ size$1 as dL,
21739
+ hide$1 as dM,
21740
+ useOptionalCurrentViewModel as dN,
21741
+ ButtonGroup as dO,
21742
+ EnsureCurrentViewModel as dP,
21743
+ useIsReducedGraphics as dQ,
21744
+ usePanningAtom as dR,
21745
+ useTimeout as dS,
21746
+ useCustomCompareMemo as dT,
21747
+ useLikeC4Specification as dU,
21748
+ r as dV,
21749
+ applyEdgeChanges as dW,
21750
+ applyNodeChanges as dX,
21751
+ getViewportForBounds as dY,
21752
+ typedSystem as dZ,
21753
+ centerXYInternalNode as d_,
21753
21754
  getDefaultExportFromCjs as da,
21754
21755
  l$1 as db,
21755
21756
  IconSelector as dc,
@@ -21776,43 +21777,42 @@ export {
21776
21777
  sva as dy,
21777
21778
  t$2 as dz,
21778
21779
  em as e,
21779
- getBoundsOfRects as e0,
21780
- boxToRect as e1,
21781
- and as e2,
21782
- AllDisabled as e3,
21783
- focusedBounds as e4,
21784
- or as e5,
21785
- nodeToRect as e6,
21786
- useCustomCompareEffect as e7,
21787
- DiagramActorContextProvider as e8,
21788
- CurrentViewModelContext as e9,
21789
- IfReadOnly as eA,
21790
- IconRendererProvider as ea,
21791
- DiagramEventHandlers as eb,
21792
- ReduceGraphicsContext as ec,
21793
- RootContainer as ed,
21794
- useMutationObserver as ee,
21795
- shallowEqual$1 as ef,
21796
- LikeC4ProjectsContext as eg,
21797
- LikeC4ModelContext as eh,
21798
- useLikeC4ViewModel as ei,
21799
- useHasProjects as ej,
21800
- useLikeC4Projects as ek,
21801
- useSetState as el,
21802
- CompoundActionButton as em,
21803
- DefaultHandles as en,
21804
- CompoundActions as eo,
21805
- CompoundDeploymentToolbar as ep,
21806
- CompoundDetailsButtonWithHandler as eq,
21807
- CompoundElementToolbar as er,
21808
- DeploymentElementActions as es,
21809
- DeploymentElementToolbar as et,
21810
- ElementActions as eu,
21811
- ElementDetailsButtonWithHandler as ev,
21812
- ElementToolbar as ew,
21813
- Toolbar as ex,
21814
- IfNotEnabled as ey,
21815
- IfNotReadOnly as ez,
21780
+ boxToRect as e0,
21781
+ and as e1,
21782
+ AllDisabled as e2,
21783
+ focusedBounds as e3,
21784
+ or as e4,
21785
+ nodeToRect as e5,
21786
+ useCustomCompareEffect as e6,
21787
+ DiagramActorContextProvider as e7,
21788
+ CurrentViewModelContext as e8,
21789
+ IconRendererProvider as e9,
21790
+ DiagramEventHandlers as ea,
21791
+ ReduceGraphicsContext as eb,
21792
+ RootContainer as ec,
21793
+ useMutationObserver as ed,
21794
+ shallowEqual$1 as ee,
21795
+ LikeC4ProjectsContext as ef,
21796
+ LikeC4ModelContext as eg,
21797
+ useLikeC4ViewModel as eh,
21798
+ useHasProjects as ei,
21799
+ useLikeC4Projects as ej,
21800
+ useSetState as ek,
21801
+ CompoundActionButton as el,
21802
+ DefaultHandles as em,
21803
+ CompoundActions as en,
21804
+ CompoundDeploymentToolbar as eo,
21805
+ CompoundDetailsButtonWithHandler as ep,
21806
+ CompoundElementToolbar as eq,
21807
+ DeploymentElementActions as er,
21808
+ DeploymentElementToolbar as es,
21809
+ ElementActions as et,
21810
+ ElementDetailsButtonWithHandler as eu,
21811
+ ElementToolbar as ev,
21812
+ Toolbar as ew,
21813
+ IfNotEnabled as ex,
21814
+ IfNotReadOnly as ey,
21815
+ IfReadOnly as ez,
21816
21816
  getPrimaryContrastColor as f,
21817
21817
  getPrimaryShade as g,
21818
21818
  deepMerge as h,
package/bundle/custom.js CHANGED
@@ -1,5 +1,5 @@
1
- import { du as customNode, ei as useLikeC4ViewModel } from "./chunk-Bg7UjtMS.js";
2
- import { em, eo, cd, ep, d2, eq, ce, er, d0, d1, en, es, et, cf, c_, eu, d9, ev, cg, d3, d4, cF, d6, d5, ew, dB, dm, ea, dr, ey, ez, eA, cG, dx, ex, cc, cz, cV, c6, cU, cm, cl, c7, ej, cR, cM, ek, cL, dV, cu, dE, el, bf, c5, c8, dv, b9 } from "./chunk-Bg7UjtMS.js";
1
+ import { du as customNode, eh as useLikeC4ViewModel } from "./chunk-CaxOLfbm.js";
2
+ import { el, en, cd, eo, d2, ep, ce, eq, d0, d1, em, er, es, cf, c_, et, d9, eu, cg, d3, d4, cF, d6, d5, ev, dB, dm, e9, dr, ex, ey, ez, cG, dx, ew, cc, cz, cV, c6, cU, cm, cl, c7, ei, cR, cM, ej, cL, dU, cu, dE, ek, bf, c5, c8, dv, b9 } from "./chunk-CaxOLfbm.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  function customDiagramNode(Node) {
5
5
  return customNode((props) => {
@@ -15,41 +15,41 @@ function customDiagramNode(Node) {
15
15
  }
16
16
  const elementNode = customDiagramNode, deploymentNode = customDiagramNode, compoundElementNode = customDiagramNode, compoundDeploymentNode = customDiagramNode, viewGroupNode = customDiagramNode;
17
17
  export {
18
- em as CompoundActionButton,
19
- eo as CompoundActions,
18
+ el as CompoundActionButton,
19
+ en as CompoundActions,
20
20
  cd as CompoundDeploymentNode,
21
- ep as CompoundDeploymentToolbar,
21
+ eo as CompoundDeploymentToolbar,
22
22
  d2 as CompoundDetailsButton,
23
- eq as CompoundDetailsButtonWithHandler,
23
+ ep as CompoundDetailsButtonWithHandler,
24
24
  ce as CompoundElementNode,
25
- er as CompoundElementToolbar,
25
+ eq as CompoundElementToolbar,
26
26
  d0 as CompoundNodeContainer,
27
27
  d1 as CompoundTitle,
28
- en as DefaultHandles,
29
- es as DeploymentElementActions,
30
- et as DeploymentElementToolbar,
28
+ em as DefaultHandles,
29
+ er as DeploymentElementActions,
30
+ es as DeploymentElementToolbar,
31
31
  cf as DeploymentNode,
32
32
  c_ as ElementActionButtons,
33
- eu as ElementActions,
33
+ et as ElementActions,
34
34
  d9 as ElementDetailsButton,
35
- ev as ElementDetailsButtonWithHandler,
35
+ eu as ElementDetailsButtonWithHandler,
36
36
  cg as ElementNode,
37
37
  d3 as ElementNodeContainer,
38
38
  d4 as ElementShape,
39
39
  cF as ElementTag,
40
40
  d6 as ElementTags,
41
41
  d5 as ElementTitle,
42
- ew as ElementToolbar,
42
+ ev as ElementToolbar,
43
43
  dB as IconOrShapeRenderer,
44
44
  dm as IconRenderer,
45
- ea as IconRendererProvider,
45
+ e9 as IconRendererProvider,
46
46
  dr as IfEnabled,
47
- ey as IfNotEnabled,
48
- ez as IfNotReadOnly,
49
- eA as IfReadOnly,
47
+ ex as IfNotEnabled,
48
+ ey as IfNotReadOnly,
49
+ ez as IfReadOnly,
50
50
  cG as MarkdownBlock,
51
51
  dx as Overlay,
52
- ex as Toolbar,
52
+ ew as Toolbar,
53
53
  cc as ViewGroupNode,
54
54
  compoundDeploymentNode,
55
55
  compoundElementNode,
@@ -62,16 +62,16 @@ export {
62
62
  cm as useDiagramContext,
63
63
  cl as useDiagramEventHandlers,
64
64
  c7 as useEnabledFeatures,
65
- ej as useHasProjects,
65
+ ei as useHasProjects,
66
66
  cR as useLikeC4Model,
67
67
  cM as useLikeC4ProjectId,
68
- ek as useLikeC4Projects,
68
+ ej as useLikeC4Projects,
69
69
  cL as useLikeC4ProjectsContext,
70
- dV as useLikeC4Specification,
70
+ dU as useLikeC4Specification,
71
71
  useLikeC4ViewModel,
72
72
  cu as useMantinePortalProps,
73
73
  dE as useOnDiagramEvent,
74
- el as useSetState,
74
+ ek as useSetState,
75
75
  bf as useUpdateEffect,
76
76
  c5 as useXYFlow,
77
77
  c8 as useXYInternalNode,