@likec4/diagram 1.32.0 → 1.32.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.
Files changed (52) hide show
  1. package/bundle/{chunk-BvTQaUYl.js → chunk-DlHyKoeo.js} +236 -210
  2. package/bundle/custom.js +50 -49
  3. package/bundle/index.js +144 -121
  4. package/dist/LikeC4Diagram.js +1 -1
  5. package/dist/LikeC4Diagram.props.d.ts +14 -3
  6. package/dist/bundle/LikeC4View.js +16 -15
  7. package/dist/bundle/ReactLikeC4.js +7 -6
  8. package/dist/bundle/index.js +1 -1
  9. package/dist/custom/customNodes.d.ts +5 -0
  10. package/dist/custom/hooks.d.ts +1 -1
  11. package/dist/index.js +1 -1
  12. package/dist/likec4diagram/DiagramXYFlow.js +3 -3
  13. package/dist/likec4diagram/custom/nodes/toolbar/_shared.d.ts +5 -5
  14. package/dist/likec4model/index.d.ts +1 -1
  15. package/dist/likec4model/useLikeC4Model.d.ts +2 -1
  16. package/dist/likec4model/useLikeC4Model.js +13 -2
  17. package/dist/overlays/overlay/Overlay.js +24 -4
  18. package/dist/search/Search.d.ts +2 -3
  19. package/dist/search/Search.js +27 -46
  20. package/dist/search/components/ElementsColumn.js +12 -13
  21. package/dist/search/components/PickView.js +6 -6
  22. package/dist/search/components/SearchByTags.js +5 -2
  23. package/dist/search/components/SearchInput.js +16 -14
  24. package/dist/search/components/ViewsColum.js +16 -9
  25. package/dist/search/components/utils.d.ts +3 -2
  26. package/dist/search/components/utils.js +37 -5
  27. package/dist/search/hooks.d.ts +2 -8
  28. package/dist/search/hooks.js +4 -4
  29. package/dist/state/DiagramActorProvider.js +1 -1
  30. package/dist/state/diagram-machine.d.ts +216 -8
  31. package/dist/state/diagram-machine.js +8 -6
  32. package/package.json +9 -8
  33. package/src/LikeC4Diagram.props.ts +14 -3
  34. package/src/LikeC4Diagram.tsx +1 -1
  35. package/src/bundle/LikeC4View.tsx +12 -19
  36. package/src/bundle/ReactLikeC4.tsx +2 -10
  37. package/src/custom/customNodes.tsx +5 -0
  38. package/src/custom/hooks.ts +1 -0
  39. package/src/likec4diagram/DiagramXYFlow.tsx +3 -3
  40. package/src/likec4model/index.ts +2 -0
  41. package/src/likec4model/useLikeC4Model.ts +16 -2
  42. package/src/overlays/overlay/Overlay.tsx +20 -5
  43. package/src/search/Search.tsx +34 -51
  44. package/src/search/components/ElementsColumn.tsx +12 -15
  45. package/src/search/components/PickView.tsx +41 -47
  46. package/src/search/components/SearchByTags.tsx +5 -2
  47. package/src/search/components/SearchInput.tsx +17 -14
  48. package/src/search/components/ViewsColum.tsx +18 -10
  49. package/src/search/components/utils.ts +41 -4
  50. package/src/search/hooks.ts +5 -8
  51. package/src/state/DiagramActorProvider.tsx +2 -1
  52. package/src/state/diagram-machine.ts +8 -6
@@ -15484,7 +15484,7 @@ function useDebouncedCallback(callback, deps, delay, maxWait = 0) {
15484
15484
  }, [delay, maxWait, ...deps]);
15485
15485
  }
15486
15486
  const noop$1 = () => {
15487
- }, isBrowser = typeof globalThis < "u" && typeof navigator < "u" && typeof document < "u", isStrictEqual = (previous, next) => previous === next, basicDepsComparator = (d1, d2) => {
15487
+ }, isBrowser = typeof globalThis < "u" && typeof navigator < "u" && typeof document < "u", basicDepsComparator = (d1, d2) => {
15488
15488
  if (d1 === d2)
15489
15489
  return !0;
15490
15490
  if (d1.length !== d2.length)
@@ -16183,11 +16183,19 @@ const LikeC4ModelContext = createContext(null);
16183
16183
  function useLikeC4Model(type) {
16184
16184
  const model = useContext(LikeC4ModelContext);
16185
16185
  if (!model)
16186
- throw new Error("No LikeC4Model found in context");
16186
+ throw new Error("LikeC4Model not found. Make sure you have LikeC4ModelProvider.");
16187
16187
  if (t$3(type) && model.stage !== type)
16188
16188
  throw new Error(`Invalid LikeC4ModelContext, expected "${type}" but got "${model.stage}" in context`);
16189
16189
  return model;
16190
16190
  }
16191
+ function useLikeC4ViewModel(viewId) {
16192
+ const view = useLikeC4Model("layouted").findView(viewId);
16193
+ if (!view)
16194
+ return null;
16195
+ if (!view.isDiagram())
16196
+ throw new Error(`View "${viewId}" is not layouted`);
16197
+ return view;
16198
+ }
16191
16199
  function useLikeC4Specification() {
16192
16200
  return useLikeC4Model().$data.specification;
16193
16201
  }
@@ -21452,7 +21460,7 @@ const backdropBlur = "--_blur", backdropOpacity = "--_opacity", level = "--_leve
21452
21460
  openDelay = 130,
21453
21461
  ...rest
21454
21462
  }, ref) => {
21455
- const [opened, setOpened] = useState(openDelay === 0), dialogRef = useRef(null), isClosingRef = useRef(!1), motionNotReduced = useReducedMotionConfig() !== !0, onCloseRef = useRef(onClose);
21463
+ const [opened, setOpened] = useState(openDelay === 0), focusTrapRef = useFocusTrap(opened), dialogRef = useRef(null), isClosingRef = useRef(!1), motionNotReduced = useReducedMotionConfig() !== !0, onCloseRef = useRef(onClose);
21456
21464
  onCloseRef.current = onClose;
21457
21465
  const close = useDebouncedCallback(
21458
21466
  () => {
@@ -21474,8 +21482,17 @@ const backdropBlur = "--_blur", backdropOpacity = "--_opacity", level = "--_leve
21474
21482
  return backdrop?.opacity !== void 0 && (targetBackdropOpacity = `${backdrop.opacity * 100}%`), /* @__PURE__ */ jsx(
21475
21483
  m.dialog,
21476
21484
  {
21477
- ref: useMergedRef(dialogRef, ref),
21478
- className: cx(ReactRemoveScroll.classNames.fullWidth, classes2?.dialog, className, styles.dialog),
21485
+ ref: useMergedRef(
21486
+ dialogRef,
21487
+ focusTrapRef,
21488
+ ref
21489
+ ),
21490
+ className: cx(
21491
+ classes2?.dialog,
21492
+ className,
21493
+ styles.dialog,
21494
+ fullscreen && ReactRemoveScroll.classNames.fullWidth
21495
+ ),
21479
21496
  layout: !0,
21480
21497
  style: {
21481
21498
  // @ts-ignore
@@ -21531,7 +21548,17 @@ const backdropBlur = "--_blur", backdropOpacity = "--_opacity", level = "--_leve
21531
21548
  e2.stopPropagation(), close();
21532
21549
  },
21533
21550
  ...rest,
21534
- children: /* @__PURE__ */ jsx(ReactRemoveScroll, { forwardProps: !0, removeScrollBar: !1, children: /* @__PURE__ */ jsx("div", { className: cx(classes2?.body, styles.body, "overlay-body"), children: opened && /* @__PURE__ */ jsx(Fragment$1, { children: children2 }) }) })
21551
+ children: /* @__PURE__ */ jsx(ReactRemoveScroll, { forwardProps: !0, children: /* @__PURE__ */ jsx(
21552
+ "div",
21553
+ {
21554
+ className: cx(
21555
+ classes2?.body,
21556
+ styles.body,
21557
+ "overlay-body"
21558
+ ),
21559
+ children: opened && /* @__PURE__ */ jsx(Fragment$1, { children: children2 })
21560
+ }
21561
+ ) })
21535
21562
  }
21536
21563
  );
21537
21564
  });
@@ -21566,7 +21593,7 @@ export {
21566
21593
  findElementAncestor as Z,
21567
21594
  useClickOutside as _,
21568
21595
  useMediaQuery as a,
21569
- t$1 as a$,
21596
+ BackgroundVariant as a$,
21570
21597
  C as a0,
21571
21598
  s as a1,
21572
21599
  u$2 as a2,
@@ -21594,16 +21621,16 @@ export {
21594
21621
  isSVGComponent as aO,
21595
21622
  useDebouncedCallback as aP,
21596
21623
  isBrowser as aQ,
21597
- isStrictEqual as aR,
21598
- useUpdateEffect$1 as aS,
21599
- getPatternStyles as aT,
21600
- patternFns as aU,
21601
- splitProps as aV,
21602
- styled as aW,
21603
- css as aX,
21604
- useLikeC4Specification as aY,
21605
- useUpdateEffect as aZ,
21606
- n as a_,
21624
+ getPatternStyles as aR,
21625
+ patternFns as aS,
21626
+ splitProps as aT,
21627
+ styled as aU,
21628
+ css as aV,
21629
+ useLikeC4Specification as aW,
21630
+ useUpdateEffect as aX,
21631
+ n as aY,
21632
+ t$1 as aZ,
21633
+ Background as a_,
21607
21634
  LazyContext as aa,
21608
21635
  loadExternalIsValidProp as ab,
21609
21636
  resolveVariantFromProps as ac,
@@ -21631,202 +21658,201 @@ export {
21631
21658
  degrees$1 as ay,
21632
21659
  vw as az,
21633
21660
  useMantineTheme as b,
21634
- IconCheck as b$,
21635
- Background as b0,
21636
- BackgroundVariant as b1,
21637
- useIsZoomTooSmall as b2,
21638
- useXYStoreApi as b3,
21639
- index as b4,
21640
- stopPropagation as b5,
21641
- cx as b6,
21642
- useStore$1 as b7,
21643
- XSTATE_STOP as b8,
21644
- cloneMachineSnapshot as b9,
21645
- STATE_DELIMITER as bA,
21646
- mapValues as bB,
21647
- toArray as bC,
21648
- formatTransitions as bD,
21649
- toTransitionConfigArray as bE,
21650
- formatTransition as bF,
21651
- getCandidates as bG,
21652
- NULL_EVENT as bH,
21653
- createInvokeId as bI,
21654
- getDelayedTransitions as bJ,
21655
- formatInitialTransition as bK,
21656
- deepEqual as bL,
21657
- ActionIcon as bM,
21658
- IconZoomScan as bN,
21659
- sva as bO,
21660
- Box as bP,
21661
- n$1 as bQ,
21662
- EdgeLabelRenderer as bR,
21663
- e as bS,
21664
- useDiagramContext as bT,
21665
- useDiagram as bU,
21666
- useMantinePortalProps as bV,
21667
- PopoverTarget as bW,
21668
- PopoverDropdown as bX,
21669
- Stack as bY,
21670
- Group as bZ,
21671
- Button as b_,
21672
- evaluateGuard as ba,
21673
- createErrorActorEvent as bb,
21674
- XSTATE_ERROR as bc,
21675
- ProcessingStatus as bd,
21676
- resolveReferencedActor as be,
21677
- createActor as bf,
21678
- cancel as bg,
21679
- raise as bh,
21680
- spawnChild as bi,
21681
- stopChild as bj,
21682
- resolveStateValue as bk,
21683
- getAllStateNodes as bl,
21684
- getStateNodes as bm,
21685
- createMachineSnapshot as bn,
21686
- isInFinalState as bo,
21687
- macrostep as bp,
21688
- transitionNode as bq,
21689
- resolveActionsAndContext as br,
21690
- createInitEvent as bs,
21691
- microstep as bt,
21692
- getInitialStateNodes as bu,
21693
- toStatePath as bv,
21694
- isStateId as bw,
21695
- getStateNodeByPath as bx,
21696
- getPersistedSnapshot as by,
21697
- $$ACTOR_TYPE as bz,
21661
+ useLikeC4Model as b$,
21662
+ useIsZoomTooSmall as b0,
21663
+ useXYStoreApi as b1,
21664
+ index as b2,
21665
+ stopPropagation as b3,
21666
+ cx as b4,
21667
+ useStore$1 as b5,
21668
+ XSTATE_STOP as b6,
21669
+ cloneMachineSnapshot as b7,
21670
+ evaluateGuard as b8,
21671
+ createErrorActorEvent as b9,
21672
+ toArray as bA,
21673
+ formatTransitions as bB,
21674
+ toTransitionConfigArray as bC,
21675
+ formatTransition as bD,
21676
+ getCandidates as bE,
21677
+ NULL_EVENT as bF,
21678
+ createInvokeId as bG,
21679
+ getDelayedTransitions as bH,
21680
+ formatInitialTransition as bI,
21681
+ deepEqual as bJ,
21682
+ ActionIcon as bK,
21683
+ IconZoomScan as bL,
21684
+ sva as bM,
21685
+ Box as bN,
21686
+ n$1 as bO,
21687
+ EdgeLabelRenderer as bP,
21688
+ e as bQ,
21689
+ useDiagramContext as bR,
21690
+ useDiagram as bS,
21691
+ useMantinePortalProps as bT,
21692
+ PopoverTarget as bU,
21693
+ PopoverDropdown as bV,
21694
+ Stack as bW,
21695
+ Group as bX,
21696
+ Button as bY,
21697
+ IconCheck as bZ,
21698
+ cva as b_,
21699
+ XSTATE_ERROR as ba,
21700
+ ProcessingStatus as bb,
21701
+ resolveReferencedActor as bc,
21702
+ createActor as bd,
21703
+ cancel as be,
21704
+ raise as bf,
21705
+ spawnChild as bg,
21706
+ stopChild as bh,
21707
+ resolveStateValue as bi,
21708
+ getAllStateNodes as bj,
21709
+ getStateNodes as bk,
21710
+ createMachineSnapshot as bl,
21711
+ isInFinalState as bm,
21712
+ macrostep as bn,
21713
+ transitionNode as bo,
21714
+ resolveActionsAndContext as bp,
21715
+ createInitEvent as bq,
21716
+ microstep as br,
21717
+ getInitialStateNodes as bs,
21718
+ toStatePath as bt,
21719
+ isStateId as bu,
21720
+ getStateNodeByPath as bv,
21721
+ getPersistedSnapshot as bw,
21722
+ $$ACTOR_TYPE as bx,
21723
+ STATE_DELIMITER as by,
21724
+ mapValues as bz,
21698
21725
  useMantineStyleNonce as c,
21699
- DiagramFeatures as c$,
21700
- cva as c0,
21701
- useLikeC4Model as c1,
21702
- findDiagramNode as c2,
21703
- findDiagramEdge as c3,
21704
- Menu as c4,
21705
- MenuTarget as c5,
21706
- MenuDropdown as c6,
21707
- MenuLabel as c7,
21708
- MenuDivider as c8,
21709
- MenuItem as c9,
21710
- customNode as cA,
21711
- CompoundNodeContainer as cB,
21712
- CompoundTitle as cC,
21713
- ElementNodeContainer as cD,
21714
- ElementShape as cE,
21715
- ElementTitle as cF,
21716
- ElementTags as cG,
21717
- ElementDetailsButton as cH,
21718
- Handle as cI,
21719
- Position as cJ,
21720
- getDefaultExportFromCjs as cK,
21721
- l$1 as cL,
21722
- IconSelector as cM,
21723
- SegmentedControl as cN,
21724
- ReactFlowProvider as cO,
21725
- useStoreApi as cP,
21726
- useReactFlow as cQ,
21727
- Panel as cR,
21728
- m as cS,
21729
- u as cT,
21730
- useSyncedRef as cU,
21731
- IconRenderer as cV,
21732
- useTimeoutEffect as cW,
21733
- ReactRemoveScroll as cX,
21734
- Flex as cY,
21735
- ElementTag as cZ,
21736
- ActionIconGroup as c_,
21737
- useEnabledFeatures as ca,
21738
- useDiagramEventHandlers as cb,
21739
- TooltipGroup as cc,
21740
- Space as cd,
21741
- Tooltip$1 as ce,
21742
- IfEnabled as cf,
21743
- IconFileSymlink as cg,
21744
- getNodeDimensions as ch,
21745
- useIsPanning as ci,
21746
- useXYFlow as cj,
21747
- useDiagramActorSnapshot as ck,
21748
- useXYInternalNode as cl,
21749
- isSamePoint as cm,
21750
- bezierControlPoints as cn,
21751
- bezierPath as co,
21752
- ViewGroupNode as cp,
21753
- CompoundDeploymentNode as cq,
21754
- CompoundElementNode as cr,
21755
- DeploymentNode as cs,
21756
- ElementNode as ct,
21757
- shallowEqual as cu,
21758
- useSelector as cv,
21759
- getBezierPath as cw,
21760
- useCurrentViewId as cx,
21761
- ElementActionButtons as cy,
21762
- IconTransform as cz,
21726
+ useXYStore as c$,
21727
+ findDiagramNode as c0,
21728
+ findDiagramEdge as c1,
21729
+ Menu as c2,
21730
+ MenuTarget as c3,
21731
+ MenuDropdown as c4,
21732
+ MenuLabel as c5,
21733
+ MenuDivider as c6,
21734
+ MenuItem as c7,
21735
+ useEnabledFeatures as c8,
21736
+ useDiagramEventHandlers as c9,
21737
+ CompoundTitle as cA,
21738
+ ElementNodeContainer as cB,
21739
+ ElementShape as cC,
21740
+ ElementTitle as cD,
21741
+ ElementTags as cE,
21742
+ ElementDetailsButton as cF,
21743
+ Handle as cG,
21744
+ Position as cH,
21745
+ getDefaultExportFromCjs as cI,
21746
+ l$1 as cJ,
21747
+ IconSelector as cK,
21748
+ SegmentedControl as cL,
21749
+ ReactFlowProvider as cM,
21750
+ useStoreApi as cN,
21751
+ useReactFlow as cO,
21752
+ Panel as cP,
21753
+ m as cQ,
21754
+ u as cR,
21755
+ useSyncedRef as cS,
21756
+ IconRenderer as cT,
21757
+ useTimeoutEffect as cU,
21758
+ ReactRemoveScroll as cV,
21759
+ Flex as cW,
21760
+ ElementTag as cX,
21761
+ ActionIconGroup as cY,
21762
+ DiagramFeatures as cZ,
21763
+ Divider as c_,
21764
+ TooltipGroup as ca,
21765
+ Space as cb,
21766
+ Tooltip$1 as cc,
21767
+ IfEnabled as cd,
21768
+ IconFileSymlink as ce,
21769
+ getNodeDimensions as cf,
21770
+ useIsPanning as cg,
21771
+ useXYFlow as ch,
21772
+ useDiagramActorSnapshot as ci,
21773
+ useXYInternalNode as cj,
21774
+ isSamePoint as ck,
21775
+ bezierControlPoints as cl,
21776
+ bezierPath as cm,
21777
+ ViewGroupNode as cn,
21778
+ CompoundDeploymentNode as co,
21779
+ CompoundElementNode as cp,
21780
+ DeploymentNode as cq,
21781
+ ElementNode as cr,
21782
+ shallowEqual as cs,
21783
+ useSelector as ct,
21784
+ getBezierPath as cu,
21785
+ useCurrentViewId as cv,
21786
+ ElementActionButtons as cw,
21787
+ IconTransform as cx,
21788
+ customNode as cy,
21789
+ CompoundNodeContainer as cz,
21763
21790
  alpha$1 as d,
21764
- Toolbar as d$,
21765
- Divider as d0,
21766
- useXYStore as d1,
21767
- useReducedMotionConfig as d2,
21768
- Overlay as d3,
21769
- VisuallyHidden as d4,
21770
- MotionDiv as d5,
21771
- IconOrShapeRenderer as d6,
21772
- MotionButton as d7,
21773
- FocusTrap as d8,
21774
- HStack as d9,
21775
- or as dA,
21776
- nodeToRect as dB,
21777
- useDiagramEventHandlersRef as dC,
21778
- useActorRef as dD,
21779
- DiagramActorContextProvider as dE,
21780
- IconRendererProvider as dF,
21781
- DiagramEventHandlers as dG,
21782
- ReduceGraphicsContext as dH,
21783
- RootContainer as dI,
21784
- useMutationObserver as dJ,
21785
- t$2 as dK,
21786
- Portal as dL,
21787
- shallowEqual$1 as dM,
21788
- LikeC4ModelContext as dN,
21789
- useSetState as dO,
21790
- CompoundActionButton as dP,
21791
- CompoundDetailsButton as dQ,
21792
- DefaultHandles as dR,
21793
- CompoundActions as dS,
21794
- CompoundDeploymentToolbar as dT,
21795
- CompoundDetailsButtonWithHandler as dU,
21796
- CompoundElementToolbar as dV,
21797
- DeploymentElementActions as dW,
21798
- DeploymentElementToolbar as dX,
21799
- ElementActions as dY,
21800
- ElementDetailsButtonWithHandler as dZ,
21801
- ElementToolbar as d_,
21802
- t$4 as da,
21803
- isMacOs as db,
21804
- FloatingIndicator as dc,
21805
- clampUseMovePosition as dd,
21806
- useMove as de,
21807
- HoverCard as df,
21808
- HoverCardTarget as dg,
21809
- HoverCardDropdown as dh,
21810
- useDiagramSyncLayoutState as di,
21811
- ButtonGroup as dj,
21812
- useIsReducedGraphics as dk,
21813
- usePanningAtom as dl,
21814
- useTimeout as dm,
21815
- useCustomCompareMemo as dn,
21816
- applyEdgeChanges as dp,
21817
- applyNodeChanges as dq,
21818
- getViewportForBounds as dr,
21819
- typedSystem as ds,
21820
- centerXYInternalNode as dt,
21821
- t$3 as du,
21822
- getBoundsOfRects as dv,
21823
- boxToRect as dw,
21824
- and as dx,
21825
- AllDisabled as dy,
21826
- focusedBounds as dz,
21791
+ IfNotEnabled as d$,
21792
+ useReducedMotionConfig as d0,
21793
+ Overlay as d1,
21794
+ t$2 as d2,
21795
+ VisuallyHidden as d3,
21796
+ MotionDiv as d4,
21797
+ IconOrShapeRenderer as d5,
21798
+ MotionButton as d6,
21799
+ FocusTrap as d7,
21800
+ HStack as d8,
21801
+ t$4 as d9,
21802
+ nodeToRect as dA,
21803
+ useDiagramEventHandlersRef as dB,
21804
+ useActorRef as dC,
21805
+ DiagramActorContextProvider as dD,
21806
+ IconRendererProvider as dE,
21807
+ DiagramEventHandlers as dF,
21808
+ ReduceGraphicsContext as dG,
21809
+ RootContainer as dH,
21810
+ useMutationObserver as dI,
21811
+ Portal as dJ,
21812
+ shallowEqual$1 as dK,
21813
+ LikeC4ModelContext as dL,
21814
+ useLikeC4ViewModel as dM,
21815
+ useSetState as dN,
21816
+ CompoundActionButton as dO,
21817
+ CompoundDetailsButton as dP,
21818
+ DefaultHandles as dQ,
21819
+ CompoundActions as dR,
21820
+ CompoundDeploymentToolbar as dS,
21821
+ CompoundDetailsButtonWithHandler as dT,
21822
+ CompoundElementToolbar as dU,
21823
+ DeploymentElementActions as dV,
21824
+ DeploymentElementToolbar as dW,
21825
+ ElementActions as dX,
21826
+ ElementDetailsButtonWithHandler as dY,
21827
+ ElementToolbar as dZ,
21828
+ Toolbar as d_,
21829
+ isMacOs as da,
21830
+ FloatingIndicator as db,
21831
+ clampUseMovePosition as dc,
21832
+ useMove as dd,
21833
+ HoverCard as de,
21834
+ HoverCardTarget as df,
21835
+ HoverCardDropdown as dg,
21836
+ useDiagramSyncLayoutState as dh,
21837
+ ButtonGroup as di,
21838
+ useIsReducedGraphics as dj,
21839
+ usePanningAtom as dk,
21840
+ useTimeout as dl,
21841
+ useCustomCompareMemo as dm,
21842
+ applyEdgeChanges as dn,
21843
+ applyNodeChanges as dp,
21844
+ getViewportForBounds as dq,
21845
+ typedSystem as dr,
21846
+ centerXYInternalNode as ds,
21847
+ t$3 as dt,
21848
+ getBoundsOfRects as du,
21849
+ boxToRect as dv,
21850
+ and as dw,
21851
+ AllDisabled as dx,
21852
+ focusedBounds as dy,
21853
+ or as dz,
21827
21854
  em as e,
21828
- IfNotEnabled as e0,
21829
- IfNotReadOnly as e1,
21855
+ IfNotReadOnly as e0,
21830
21856
  getPrimaryContrastColor as f,
21831
21857
  getPrimaryShade as g,
21832
21858
  deepMerge as h,
package/bundle/custom.js CHANGED
@@ -1,5 +1,5 @@
1
- import { cA as customNode, c1 as useLikeC4Model } from "./chunk-BvTQaUYl.js";
2
- import { dP, dS, cq, dT, dQ, dU, cr, dV, cB, cC, dR, dW, dX, cs, cy, dY, cH, dZ, ct, cD, cE, cZ, cG, cF, d_, d6, cV, dF, cf, e0, e1, d3, d$, cp, cx, bU, bT, cb, ca, aY, bV, dO, aZ, cj, cl, d1, b3 } from "./chunk-BvTQaUYl.js";
1
+ import { cy as customNode, b$ as useLikeC4Model } from "./chunk-DlHyKoeo.js";
2
+ import { dO, dR, co, dS, dP, dT, cp, dU, cz, cA, dQ, dV, dW, cq, cw, dX, cF, dY, cr, cB, cC, cX, cE, cD, dZ, d5, cT, dE, cd, d$, e0, d1, d_, cn, cv, bS, bR, c9, c8, aW, dM, bT, dN, aX, ch, cj, c$, b1 } from "./chunk-DlHyKoeo.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  function customDiagramNode(Node) {
5
5
  return customNode((props) => {
@@ -9,57 +9,58 @@ function customDiagramNode(Node) {
9
9
  }
10
10
  const elementNode = customDiagramNode, deploymentNode = customDiagramNode, compoundElementNode = customDiagramNode, compoundDeploymentNode = customDiagramNode, viewGroupNode = customDiagramNode;
11
11
  export {
12
- dP as CompoundActionButton,
13
- dS as CompoundActions,
14
- cq as CompoundDeploymentNode,
15
- dT as CompoundDeploymentToolbar,
16
- dQ as CompoundDetailsButton,
17
- dU as CompoundDetailsButtonWithHandler,
18
- cr as CompoundElementNode,
19
- dV as CompoundElementToolbar,
20
- cB as CompoundNodeContainer,
21
- cC as CompoundTitle,
22
- dR as DefaultHandles,
23
- dW as DeploymentElementActions,
24
- dX as DeploymentElementToolbar,
25
- cs as DeploymentNode,
26
- cy as ElementActionButtons,
27
- dY as ElementActions,
28
- cH as ElementDetailsButton,
29
- dZ as ElementDetailsButtonWithHandler,
30
- ct as ElementNode,
31
- cD as ElementNodeContainer,
32
- cE as ElementShape,
33
- cZ as ElementTag,
34
- cG as ElementTags,
35
- cF as ElementTitle,
36
- d_ as ElementToolbar,
37
- d6 as IconOrShapeRenderer,
38
- cV as IconRenderer,
39
- dF as IconRendererProvider,
40
- cf as IfEnabled,
41
- e0 as IfNotEnabled,
42
- e1 as IfNotReadOnly,
43
- d3 as Overlay,
44
- d$ as Toolbar,
45
- cp as ViewGroupNode,
12
+ dO as CompoundActionButton,
13
+ dR as CompoundActions,
14
+ co as CompoundDeploymentNode,
15
+ dS as CompoundDeploymentToolbar,
16
+ dP as CompoundDetailsButton,
17
+ dT as CompoundDetailsButtonWithHandler,
18
+ cp as CompoundElementNode,
19
+ dU as CompoundElementToolbar,
20
+ cz as CompoundNodeContainer,
21
+ cA as CompoundTitle,
22
+ dQ as DefaultHandles,
23
+ dV as DeploymentElementActions,
24
+ dW as DeploymentElementToolbar,
25
+ cq as DeploymentNode,
26
+ cw as ElementActionButtons,
27
+ dX as ElementActions,
28
+ cF as ElementDetailsButton,
29
+ dY as ElementDetailsButtonWithHandler,
30
+ cr as ElementNode,
31
+ cB as ElementNodeContainer,
32
+ cC as ElementShape,
33
+ cX as ElementTag,
34
+ cE as ElementTags,
35
+ cD as ElementTitle,
36
+ dZ as ElementToolbar,
37
+ d5 as IconOrShapeRenderer,
38
+ cT as IconRenderer,
39
+ dE as IconRendererProvider,
40
+ cd as IfEnabled,
41
+ d$ as IfNotEnabled,
42
+ e0 as IfNotReadOnly,
43
+ d1 as Overlay,
44
+ d_ as Toolbar,
45
+ cn as ViewGroupNode,
46
46
  compoundDeploymentNode,
47
47
  compoundElementNode,
48
48
  deploymentNode,
49
49
  elementNode,
50
- cx as useCurrentViewId,
51
- bU as useDiagram,
52
- bT as useDiagramContext,
53
- cb as useDiagramEventHandlers,
54
- ca as useEnabledFeatures,
50
+ cv as useCurrentViewId,
51
+ bS as useDiagram,
52
+ bR as useDiagramContext,
53
+ c9 as useDiagramEventHandlers,
54
+ c8 as useEnabledFeatures,
55
55
  useLikeC4Model,
56
- aY as useLikeC4Specification,
57
- bV as useMantinePortalProps,
58
- dO as useSetState,
59
- aZ as useUpdateEffect,
60
- cj as useXYFlow,
61
- cl as useXYInternalNode,
62
- d1 as useXYStore,
63
- b3 as useXYStoreApi,
56
+ aW as useLikeC4Specification,
57
+ dM as useLikeC4ViewModel,
58
+ bT as useMantinePortalProps,
59
+ dN as useSetState,
60
+ aX as useUpdateEffect,
61
+ ch as useXYFlow,
62
+ cj as useXYInternalNode,
63
+ c$ as useXYStore,
64
+ b1 as useXYStoreApi,
64
65
  viewGroupNode
65
66
  };