@likec4/diagram 1.39.0 → 1.39.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/bundle/{chunk-Bg7UjtMS.js → chunk-CaxOLfbm.js} +58 -58
- package/bundle/custom.js +22 -22
- package/bundle/index.js +162 -120
- package/dist/LikeC4Diagram.js +4 -2
- package/dist/LikeC4Styles.d.ts +3 -1
- package/dist/LikeC4Styles.js +52 -20
- package/dist/base/primitives/edge/EdgeLabel.js +1 -2
- package/dist/bundle/LikeC4View.js +6 -3
- package/dist/context/RootContainer.d.ts +2 -1
- package/dist/context/RootContainer.js +1 -2
- package/dist/globals.css.js +1 -1
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +75 -68
- package/dist/likec4diagram/relationship-popover/styles.css.js +8 -5
- package/dist/styles-min.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css2.js +1 -1
- package/package.json +4 -4
- package/panda.buildinfo.json +16 -16
- package/src/LikeC4Diagram.tsx +4 -2
- package/src/LikeC4Styles.tsx +50 -22
- package/src/base/primitives/edge/EdgeLabel.tsx +1 -2
- package/src/bundle/LikeC4View.tsx +7 -3
- package/src/context/RootContainer.tsx +2 -2
- package/src/globals.css +2 -2
- package/src/hooks/useReducedGraphics.ts +0 -7
- package/src/likec4diagram/relationship-popover/RelationshipPopover.tsx +49 -41
- package/src/likec4diagram/relationship-popover/styles.css.ts +8 -5
|
@@ -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
|
|
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
|
-
|
|
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
|
-
|
|
21735
|
-
|
|
21736
|
-
|
|
21737
|
-
|
|
21738
|
-
|
|
21739
|
-
|
|
21740
|
-
|
|
21741
|
-
|
|
21742
|
-
|
|
21743
|
-
|
|
21744
|
-
|
|
21745
|
-
|
|
21746
|
-
|
|
21747
|
-
|
|
21748
|
-
|
|
21749
|
-
|
|
21750
|
-
|
|
21751
|
-
|
|
21752
|
-
|
|
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
|
-
|
|
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
|
-
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,
|
|
2
|
-
import {
|
|
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
|
-
|
|
19
|
-
|
|
18
|
+
el as CompoundActionButton,
|
|
19
|
+
en as CompoundActions,
|
|
20
20
|
cd as CompoundDeploymentNode,
|
|
21
|
-
|
|
21
|
+
eo as CompoundDeploymentToolbar,
|
|
22
22
|
d2 as CompoundDetailsButton,
|
|
23
|
-
|
|
23
|
+
ep as CompoundDetailsButtonWithHandler,
|
|
24
24
|
ce as CompoundElementNode,
|
|
25
|
-
|
|
25
|
+
eq as CompoundElementToolbar,
|
|
26
26
|
d0 as CompoundNodeContainer,
|
|
27
27
|
d1 as CompoundTitle,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
em as DefaultHandles,
|
|
29
|
+
er as DeploymentElementActions,
|
|
30
|
+
es as DeploymentElementToolbar,
|
|
31
31
|
cf as DeploymentNode,
|
|
32
32
|
c_ as ElementActionButtons,
|
|
33
|
-
|
|
33
|
+
et as ElementActions,
|
|
34
34
|
d9 as ElementDetailsButton,
|
|
35
|
-
|
|
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
|
-
|
|
42
|
+
ev as ElementToolbar,
|
|
43
43
|
dB as IconOrShapeRenderer,
|
|
44
44
|
dm as IconRenderer,
|
|
45
|
-
|
|
45
|
+
e9 as IconRendererProvider,
|
|
46
46
|
dr as IfEnabled,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
ex as IfNotEnabled,
|
|
48
|
+
ey as IfNotReadOnly,
|
|
49
|
+
ez as IfReadOnly,
|
|
50
50
|
cG as MarkdownBlock,
|
|
51
51
|
dx as Overlay,
|
|
52
|
-
|
|
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
|
-
|
|
65
|
+
ei as useHasProjects,
|
|
66
66
|
cR as useLikeC4Model,
|
|
67
67
|
cM as useLikeC4ProjectId,
|
|
68
|
-
|
|
68
|
+
ej as useLikeC4Projects,
|
|
69
69
|
cL as useLikeC4ProjectsContext,
|
|
70
|
-
|
|
70
|
+
dU as useLikeC4Specification,
|
|
71
71
|
useLikeC4ViewModel,
|
|
72
72
|
cu as useMantinePortalProps,
|
|
73
73
|
dE as useOnDiagramEvent,
|
|
74
|
-
|
|
74
|
+
ek as useSetState,
|
|
75
75
|
bf as useUpdateEffect,
|
|
76
76
|
c5 as useXYFlow,
|
|
77
77
|
c8 as useXYInternalNode,
|