@likec4/diagram 1.32.0 → 1.32.2
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/README.md +12 -5
- package/bundle/{chunk-BvTQaUYl.js → chunk-DlHyKoeo.js} +236 -210
- package/bundle/custom.js +50 -49
- package/bundle/index.js +144 -121
- package/dist/LikeC4Diagram.js +1 -1
- package/dist/LikeC4Diagram.props.d.ts +14 -3
- package/dist/bundle/LikeC4View.js +16 -15
- package/dist/bundle/ReactLikeC4.js +7 -6
- package/dist/bundle/index.js +1 -1
- package/dist/custom/customNodes.d.ts +5 -0
- package/dist/custom/hooks.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/likec4diagram/DiagramXYFlow.js +3 -3
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.d.ts +5 -5
- package/dist/likec4model/index.d.ts +1 -1
- package/dist/likec4model/useLikeC4Model.d.ts +2 -1
- package/dist/likec4model/useLikeC4Model.js +13 -2
- package/dist/overlays/overlay/Overlay.js +24 -4
- package/dist/search/Search.d.ts +2 -3
- package/dist/search/Search.js +27 -46
- package/dist/search/components/ElementsColumn.js +12 -13
- package/dist/search/components/PickView.js +6 -6
- package/dist/search/components/SearchByTags.js +5 -2
- package/dist/search/components/SearchInput.js +16 -14
- package/dist/search/components/ViewsColum.js +16 -9
- package/dist/search/components/utils.d.ts +3 -2
- package/dist/search/components/utils.js +37 -5
- package/dist/search/hooks.d.ts +2 -8
- package/dist/search/hooks.js +4 -4
- package/dist/state/DiagramActorProvider.js +1 -1
- package/dist/state/diagram-machine.d.ts +216 -8
- package/dist/state/diagram-machine.js +8 -6
- package/package.json +17 -16
- package/panda.buildinfo.json +1 -1
- package/src/LikeC4Diagram.props.ts +14 -3
- package/src/LikeC4Diagram.tsx +1 -1
- package/src/bundle/LikeC4View.tsx +12 -19
- package/src/bundle/ReactLikeC4.tsx +2 -10
- package/src/custom/customNodes.tsx +5 -0
- package/src/custom/hooks.ts +1 -0
- package/src/likec4diagram/DiagramXYFlow.tsx +3 -3
- package/src/likec4model/index.ts +2 -0
- package/src/likec4model/useLikeC4Model.ts +16 -2
- package/src/overlays/overlay/Overlay.tsx +20 -5
- package/src/search/Search.tsx +34 -51
- package/src/search/components/ElementsColumn.tsx +12 -15
- package/src/search/components/PickView.tsx +41 -47
- package/src/search/components/SearchByTags.tsx +5 -2
- package/src/search/components/SearchInput.tsx +17 -14
- package/src/search/components/ViewsColum.tsx +18 -10
- package/src/search/components/utils.ts +41 -4
- package/src/search/hooks.ts +5 -8
- package/src/state/DiagramActorProvider.tsx +2 -1
- package/src/state/diagram-machine.ts +8 -6
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@ See:
|
|
|
16
16
|
|
|
17
17
|
Contents:
|
|
18
18
|
|
|
19
|
+
- [Model Provider](#model-provider)
|
|
19
20
|
- [Bundled Version](#bundled-version)
|
|
20
21
|
- [LikeC4View](#likec4view)
|
|
21
22
|
- [ReactLikeC4](#reactlikec4)
|
|
@@ -27,6 +28,13 @@ Contents:
|
|
|
27
28
|
- [Node renderer](#custom-node-renderer)
|
|
28
29
|
- [Styles](#custom-styles)
|
|
29
30
|
|
|
31
|
+
## Model Provider
|
|
32
|
+
|
|
33
|
+
Diagram requires instance of `LikeC4Model.Layouted` to render.\
|
|
34
|
+
You need to prepare it and wrap your diagram with`LikeC4ModelProvider` component.
|
|
35
|
+
|
|
36
|
+
See [📖 Documentation](https://likec4.dev/tooling/react/#likec4modelprovider) for examples.
|
|
37
|
+
|
|
30
38
|
## Bundled version
|
|
31
39
|
|
|
32
40
|
The easiest way to use this package is the bundled version.\
|
|
@@ -35,12 +43,11 @@ Diagram renders inside shadow DOM and has its own styles.
|
|
|
35
43
|
### LikeC4View
|
|
36
44
|
|
|
37
45
|
```tsx
|
|
38
|
-
import { LikeC4Model } from '@likec4/core/model'
|
|
39
46
|
import { LikeC4ModelProvider, LikeC4View } from '@likec4/diagram/bundle'
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
/**
|
|
48
|
+
* See https://likec4.dev/tooling/react/#likec4modelprovider
|
|
49
|
+
*/
|
|
50
|
+
import { likec4model } from './likec4-model.ts'
|
|
44
51
|
|
|
45
52
|
function App() {
|
|
46
53
|
return (
|
|
@@ -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",
|
|
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("
|
|
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(
|
|
21478
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
21598
|
-
|
|
21599
|
-
|
|
21600
|
-
|
|
21601
|
-
|
|
21602
|
-
|
|
21603
|
-
|
|
21604
|
-
|
|
21605
|
-
|
|
21606
|
-
|
|
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
|
-
|
|
21635
|
-
|
|
21636
|
-
|
|
21637
|
-
|
|
21638
|
-
|
|
21639
|
-
|
|
21640
|
-
|
|
21641
|
-
|
|
21642
|
-
|
|
21643
|
-
|
|
21644
|
-
|
|
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
|
-
|
|
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
|
-
|
|
21700
|
-
|
|
21701
|
-
|
|
21702
|
-
|
|
21703
|
-
|
|
21704
|
-
|
|
21705
|
-
|
|
21706
|
-
|
|
21707
|
-
|
|
21708
|
-
|
|
21709
|
-
|
|
21710
|
-
|
|
21711
|
-
|
|
21712
|
-
|
|
21713
|
-
|
|
21714
|
-
|
|
21715
|
-
|
|
21716
|
-
|
|
21717
|
-
|
|
21718
|
-
|
|
21719
|
-
|
|
21720
|
-
|
|
21721
|
-
|
|
21722
|
-
|
|
21723
|
-
|
|
21724
|
-
|
|
21725
|
-
|
|
21726
|
-
|
|
21727
|
-
|
|
21728
|
-
|
|
21729
|
-
|
|
21730
|
-
|
|
21731
|
-
|
|
21732
|
-
|
|
21733
|
-
|
|
21734
|
-
|
|
21735
|
-
|
|
21736
|
-
|
|
21737
|
-
|
|
21738
|
-
|
|
21739
|
-
|
|
21740
|
-
|
|
21741
|
-
|
|
21742
|
-
|
|
21743
|
-
|
|
21744
|
-
|
|
21745
|
-
|
|
21746
|
-
|
|
21747
|
-
|
|
21748
|
-
|
|
21749
|
-
|
|
21750
|
-
|
|
21751
|
-
|
|
21752
|
-
|
|
21753
|
-
|
|
21754
|
-
|
|
21755
|
-
|
|
21756
|
-
|
|
21757
|
-
|
|
21758
|
-
|
|
21759
|
-
|
|
21760
|
-
|
|
21761
|
-
|
|
21762
|
-
|
|
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
|
-
|
|
21765
|
-
|
|
21766
|
-
|
|
21767
|
-
|
|
21768
|
-
|
|
21769
|
-
|
|
21770
|
-
|
|
21771
|
-
|
|
21772
|
-
|
|
21773
|
-
|
|
21774
|
-
|
|
21775
|
-
|
|
21776
|
-
|
|
21777
|
-
|
|
21778
|
-
|
|
21779
|
-
|
|
21780
|
-
|
|
21781
|
-
|
|
21782
|
-
|
|
21783
|
-
|
|
21784
|
-
|
|
21785
|
-
|
|
21786
|
-
|
|
21787
|
-
|
|
21788
|
-
|
|
21789
|
-
|
|
21790
|
-
|
|
21791
|
-
|
|
21792
|
-
|
|
21793
|
-
|
|
21794
|
-
|
|
21795
|
-
|
|
21796
|
-
|
|
21797
|
-
|
|
21798
|
-
|
|
21799
|
-
|
|
21800
|
-
|
|
21801
|
-
|
|
21802
|
-
|
|
21803
|
-
|
|
21804
|
-
|
|
21805
|
-
|
|
21806
|
-
|
|
21807
|
-
|
|
21808
|
-
|
|
21809
|
-
|
|
21810
|
-
|
|
21811
|
-
|
|
21812
|
-
|
|
21813
|
-
|
|
21814
|
-
|
|
21815
|
-
|
|
21816
|
-
|
|
21817
|
-
|
|
21818
|
-
|
|
21819
|
-
|
|
21820
|
-
|
|
21821
|
-
|
|
21822
|
-
|
|
21823
|
-
|
|
21824
|
-
|
|
21825
|
-
|
|
21826
|
-
|
|
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
|
-
|
|
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 {
|
|
2
|
-
import {
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
cv as useCurrentViewId,
|
|
51
|
+
bS as useDiagram,
|
|
52
|
+
bR as useDiagramContext,
|
|
53
|
+
c9 as useDiagramEventHandlers,
|
|
54
|
+
c8 as useEnabledFeatures,
|
|
55
55
|
useLikeC4Model,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
};
|