@likec4/diagram 1.43.0 → 1.45.0
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/index.js +14727 -13166
- package/dist/LikeC4Diagram.d.ts +1 -1
- package/dist/LikeC4Diagram.js +14 -9
- package/dist/LikeC4Diagram.props.d.ts +25 -15
- package/dist/LikeC4ProjectsProvider.js +1 -1
- package/dist/LikeC4Styles.js +0 -3
- package/dist/LikeC4View.d.ts +8 -3
- package/dist/LikeC4View.js +29 -14
- package/dist/ReactLikeC4.d.ts +2 -2
- package/dist/ReactLikeC4.js +2 -2
- package/dist/StaticLikeC4Diagram.js +1 -1
- package/dist/_virtual/_commonjsHelpers.js +3 -0
- package/dist/_virtual/assign-dea9f7c8.cjs.js +3 -0
- package/dist/_virtual/log-ec8d4df4.cjs.js +3 -0
- package/dist/_virtual/raise-da5b247f.cjs.js +3 -0
- package/dist/_virtual/xstate-actions.cjs.js +5 -0
- package/dist/_virtual/xstate-actions.cjs2.js +3 -0
- package/dist/_virtual/xstate-dev.cjs.js +3 -0
- package/dist/_virtual/xstate-guards.cjs.js +5 -0
- package/dist/_virtual/xstate-guards.cjs2.js +3 -0
- package/dist/base/Background.d.ts +2 -1
- package/dist/base/Background.js +11 -2
- package/dist/base/Base.d.ts +28 -0
- package/dist/base/BaseXYFlow.d.ts +5 -5
- package/dist/base/BaseXYFlow.js +38 -44
- package/dist/base/index.d.ts +6 -2
- package/dist/base/types.d.ts +1 -28
- package/dist/base/updateEdges.js +25 -14
- package/dist/base/updateNodes.d.ts +14 -0
- package/dist/base/updateNodes.js +51 -17
- package/dist/base-primitives/Markdown.d.ts +30 -4
- package/dist/base-primitives/Markdown.js +3 -2
- package/dist/base-primitives/compound/CompoundActionButton.d.ts +3 -2
- package/dist/base-primitives/compound/CompoundActionButton.js +1 -1
- package/dist/base-primitives/compound/CompoundDetailsButton.d.ts +3 -2
- package/dist/base-primitives/compound/CompoundDetailsButton.js +1 -1
- package/dist/base-primitives/edge/EdgeActionButton.d.ts +3 -2
- package/dist/base-primitives/edge/EdgeActionButton.js +1 -1
- package/dist/base-primitives/edge/EdgeContainer.d.ts +1 -1
- package/dist/base-primitives/edge/EdgeContainer.js +8 -1
- package/dist/base-primitives/edge/EdgeLabel.d.ts +3 -2
- package/dist/base-primitives/edge/EdgeLabel.js +2 -0
- package/dist/base-primitives/edge/EdgeLabelContainer.d.ts +1 -1
- package/dist/base-primitives/edge/EdgeLabelContainer.js +4 -0
- package/dist/base-primitives/edge/EdgePath.d.ts +4 -0
- package/dist/base-primitives/edge/EdgePath.js +29 -5
- package/dist/base-primitives/element/ElementActionButtons.d.ts +6 -4
- package/dist/base-primitives/element/ElementActionButtons.js +3 -3
- package/dist/base-primitives/element/ElementData.d.ts +3 -3
- package/dist/base-primitives/element/ElementData.js +13 -7
- package/dist/base-primitives/element/ElementDetailsButton.d.ts +3 -2
- package/dist/base-primitives/element/ElementDetailsButton.js +5 -5
- package/dist/base-primitives/element/ElementNodeContainer.css.js +15 -27
- package/dist/base-primitives/element/ElementShape.js +5 -5
- package/dist/base-primitives/element/ElementTags.d.ts +6 -4
- package/dist/base-primitives/element/ElementTags.js +2 -1
- package/dist/base-primitives/memoEdge.js +4 -2
- package/dist/base-primitives/memoNode.d.ts +1 -1
- package/dist/base-primitives/memoNode.js +3 -3
- package/dist/components/ErrorFallback.js +52 -35
- package/dist/components/Link.js +2 -2
- package/dist/context/DiagramEventHandlers.js +2 -1
- package/dist/context/DiagramFeatures.d.ts +25 -6
- package/dist/context/DiagramFeatures.js +28 -56
- package/dist/context/IconRenderer.js +6 -6
- package/dist/context/LikeC4ModelContext.js +3 -10
- package/dist/context/TagStylesContext.js +3 -19
- package/dist/context/index.d.ts +1 -1
- package/dist/custom/customNodes.js +3 -2
- package/dist/custom/hooks.d.ts +3 -3
- package/dist/custom/index.d.ts +1 -1
- package/dist/custom/index.js +5 -5
- package/dist/editor/LikeC4EditorContext.d.ts +21 -0
- package/dist/editor/index.d.ts +2 -0
- package/dist/hooks/index.d.ts +4 -2
- package/dist/hooks/safeContext.d.ts +6 -3
- package/dist/hooks/safeContext.js +10 -3
- package/dist/hooks/useCallbackRef.d.ts +1 -0
- package/dist/hooks/useCallbackRef.js +13 -0
- package/dist/hooks/useCurrentView.d.ts +11 -0
- package/dist/hooks/{useCurrentViewId.js → useCurrentView.js} +7 -3
- package/dist/hooks/useCurrentViewModel.js +4 -1
- package/dist/hooks/useDiagram.d.ts +7 -113
- package/dist/hooks/useDiagram.js +7 -127
- package/dist/hooks/useDiagramCompareLayout.d.ts +35 -0
- package/dist/hooks/useDiagramCompareLayout.js +65 -0
- package/dist/hooks/useLikeC4Project.d.ts +6 -1
- package/dist/hooks/useLikeC4Project.js +14 -2
- package/dist/hooks/useMediaPrint.d.ts +6 -0
- package/dist/hooks/useUpdateEffect.js +2 -4
- package/dist/hooks/useXYFlow.d.ts +1 -0
- package/dist/hooks/useXYFlow.js +4 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -3
- package/dist/likec4diagram/DiagramUI.js +14 -7
- package/dist/likec4diagram/DiagramXYFlow.d.ts +2 -2
- package/dist/likec4diagram/DiagramXYFlow.js +60 -52
- package/dist/likec4diagram/convert-to-xyflow.d.ts +0 -1
- package/dist/likec4diagram/custom/edges/EdgeDrifts.d.ts +6 -0
- package/dist/likec4diagram/custom/edges/EdgeDrifts.js +38 -0
- package/dist/likec4diagram/custom/edges/RelationshipEdge.js +256 -217
- package/dist/likec4diagram/custom/edges/SequenceStepEdge.js +9 -2
- package/dist/likec4diagram/custom/edges/edges.css.js +3 -4
- package/dist/likec4diagram/custom/edges/useControlPoints.d.ts +8 -0
- package/dist/likec4diagram/custom/edges/useControlPoints.js +58 -0
- package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.d.ts +7 -0
- package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.js +60 -0
- package/dist/likec4diagram/custom/edges/utils.d.ts +0 -12
- package/dist/likec4diagram/custom/nodes/CompoundActions.js +4 -1
- package/dist/likec4diagram/custom/nodes/ElementActions.d.ts +2 -1
- package/dist/likec4diagram/custom/nodes/ElementActions.js +15 -10
- package/dist/likec4diagram/custom/nodes/NodeDrifts.d.ts +6 -0
- package/dist/likec4diagram/custom/nodes/NodeDrifts.js +50 -0
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.js +7 -2
- package/dist/likec4diagram/custom/nodes/index.d.ts +1 -0
- package/dist/likec4diagram/custom/nodes/nodes.d.ts +9 -1
- package/dist/likec4diagram/custom/nodes/nodes.js +74 -29
- package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.d.ts +1 -1
- package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.js +1 -1
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.js +2 -1
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.js +4 -3
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.d.ts +1 -11
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.js +7 -51
- package/dist/likec4diagram/custom/nodes/toolbar/types.d.ts +5 -0
- package/dist/likec4diagram/custom/nodes/toolbar/types.js +7 -0
- package/dist/likec4diagram/custom/nodes/toolbar/useHandlers.d.ts +8 -0
- package/dist/likec4diagram/custom/nodes/toolbar/useHandlers.js +44 -0
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +8 -10
- package/dist/likec4diagram/relationship-popover/actor.d.ts +1 -1
- package/dist/likec4diagram/state/DiagramActorProvider.d.ts +4 -3
- package/dist/likec4diagram/state/DiagramActorProvider.js +95 -70
- package/dist/likec4diagram/state/assign.d.ts +13 -7
- package/dist/likec4diagram/state/assign.js +43 -282
- package/dist/likec4diagram/state/createViewChange.d.ts +3 -0
- package/dist/likec4diagram/state/createViewChange.js +79 -0
- package/dist/likec4diagram/state/diagram-api.d.ts +109 -0
- package/dist/likec4diagram/state/diagram-api.js +126 -0
- package/dist/likec4diagram/state/machine.actions.d.ts +1783 -0
- package/dist/likec4diagram/state/machine.actions.js +644 -0
- package/dist/likec4diagram/state/machine.actions.layout.d.ts +579 -0
- package/dist/likec4diagram/state/machine.actions.layout.js +129 -0
- package/dist/likec4diagram/state/machine.d.ts +22 -0
- package/dist/likec4diagram/state/machine.js +127 -0
- package/dist/likec4diagram/state/machine.setup.d.ts +327 -0
- package/dist/likec4diagram/state/machine.setup.js +93 -0
- package/dist/likec4diagram/state/machine.state.initializing.d.ts +208 -0
- package/dist/likec4diagram/state/machine.state.initializing.js +55 -0
- package/dist/likec4diagram/state/machine.state.navigating.d.ts +14 -0
- package/dist/likec4diagram/state/machine.state.navigating.js +178 -0
- package/dist/likec4diagram/state/machine.state.ready.d.ts +3131 -0
- package/dist/likec4diagram/state/machine.state.ready.focused.d.ts +386 -0
- package/dist/likec4diagram/state/machine.state.ready.focused.js +85 -0
- package/dist/likec4diagram/state/machine.state.ready.idle.d.ts +474 -0
- package/dist/likec4diagram/state/machine.state.ready.idle.js +96 -0
- package/dist/likec4diagram/state/machine.state.ready.js +262 -0
- package/dist/likec4diagram/state/machine.state.ready.printing.d.ts +128 -0
- package/dist/likec4diagram/state/machine.state.ready.printing.js +40 -0
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.d.ts +511 -0
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.js +177 -0
- package/dist/likec4diagram/state/mediaPrintActor.d.ts +12 -0
- package/dist/likec4diagram/state/mediaPrintActor.js +18 -0
- package/dist/likec4diagram/state/syncManualLayoutActor.d.ts +31 -108
- package/dist/likec4diagram/state/syncManualLayoutActor.js +278 -142
- package/dist/likec4diagram/state/types.d.ts +7 -12
- package/dist/likec4diagram/state/utils.d.ts +19 -4
- package/dist/likec4diagram/state/utils.js +47 -4
- package/dist/likec4diagram/types.d.ts +8 -8
- package/dist/likec4diagram/ui/LayoutDriftFrame.d.ts +2 -0
- package/dist/likec4diagram/ui/LayoutDriftFrame.js +66 -0
- package/dist/likec4diagram/ui/index.d.ts +1 -0
- package/dist/likec4diagram/ui/notation/NotationPanel.css.js +5 -2
- package/dist/likec4diagram/ui/notation/NotationPanel.js +5 -4
- package/dist/likec4diagram/useLayoutConstraints.d.ts +10 -5
- package/dist/likec4diagram/useLayoutConstraints.js +237 -61
- package/dist/likec4diagram/xyflow-diagram/diagram-view.d.ts +0 -1
- package/dist/likec4diagram/xyflow-diagram/diagram-view.js +14 -17
- package/dist/likec4diagram/xyflow-sequence/sequence-layout.js +11 -8
- package/dist/navigationpanel/NavigationPanel.js +16 -8
- package/dist/navigationpanel/NavigationPanelControls.d.ts +2 -1
- package/dist/navigationpanel/NavigationPanelControls.js +23 -17
- package/dist/navigationpanel/NavigationPanelDropdown.d.ts +2 -1
- package/dist/navigationpanel/NavigationPanelDropdown.js +62 -42
- package/dist/navigationpanel/_common.d.ts +1 -1
- package/dist/navigationpanel/_common.js +4 -2
- package/dist/navigationpanel/actor.d.ts +9 -205
- package/dist/navigationpanel/actor.js +6 -5
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.d.ts +3 -0
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.js +59 -0
- package/dist/navigationpanel/comparepanel/ComparePanel.d.ts +2 -0
- package/dist/navigationpanel/comparepanel/ComparePanel.js +42 -0
- package/dist/navigationpanel/comparepanel/ComparePanelControls.d.ts +1 -0
- package/dist/navigationpanel/comparepanel/ComparePanelControls.js +60 -0
- package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.d.ts +5 -0
- package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.js +38 -0
- package/dist/navigationpanel/comparepanel/index.d.ts +1 -0
- package/dist/navigationpanel/controls/{ViewDetailsCard.d.ts → DetailsControls.d.ts} +1 -1
- package/dist/navigationpanel/controls/{ViewDetailsCard.js → DetailsControls.js} +18 -14
- package/dist/navigationpanel/controls/LayoutWarning.d.ts +2 -0
- package/dist/navigationpanel/controls/LayoutWarning.js +102 -0
- package/dist/navigationpanel/controls/NavigationButtons.js +4 -3
- package/dist/navigationpanel/controls/OpenSource.js +2 -2
- package/dist/navigationpanel/controls/SearchControl.d.ts +2 -1
- package/dist/navigationpanel/controls/SearchControl.js +15 -17
- package/dist/navigationpanel/controls/ToggleReadonly.d.ts +1 -1
- package/dist/navigationpanel/controls/ToggleReadonly.js +26 -18
- package/dist/navigationpanel/controls/index.d.ts +2 -1
- package/dist/navigationpanel/dropdown/ProjectsMenu.d.ts +2 -2
- package/dist/navigationpanel/dropdown/ProjectsMenu.js +5 -5
- package/dist/navigationpanel/editorpanel/CenterCamera.js +5 -2
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.d.ts +1 -1
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.js +21 -20
- package/dist/navigationpanel/editorpanel/EditorPanel.js +3 -3
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.d.ts +2 -2
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.js +16 -13
- package/dist/navigationpanel/editorpanel/ToggleReadonly.d.ts +1 -0
- package/dist/navigationpanel/editorpanel/ToggleReadonly.js +15 -0
- package/dist/navigationpanel/styles.css.d.ts +2 -2
- package/dist/navigationpanel/styles.css.js +4 -4
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.js +14 -8
- package/dist/navigationpanel/walkthrough/DynamicViewControls.d.ts +66 -66
- package/dist/navigationpanel/walkthrough/DynamicViewControls.js +31 -14
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.d.ts +2 -1
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.js +68 -50
- package/dist/node_modules/.pnpm/xstate@5.24.0_patch_hash_3a1bd6d012ec67bf6e38a00c3226d1be77089442f83aeb6e424b00ca2a11d21c/node_modules/xstate/actions/dist/xstate-actions.cjs.js +37 -0
- package/dist/node_modules/.pnpm/xstate@5.24.0_patch_hash_3a1bd6d012ec67bf6e38a00c3226d1be77089442f83aeb6e424b00ca2a11d21c/node_modules/xstate/dev/dist/xstate-dev.cjs.js +59 -0
- package/dist/node_modules/.pnpm/xstate@5.24.0_patch_hash_3a1bd6d012ec67bf6e38a00c3226d1be77089442f83aeb6e424b00ca2a11d21c/node_modules/xstate/dist/assign-dea9f7c8.cjs.js +140 -0
- package/dist/node_modules/.pnpm/xstate@5.24.0_patch_hash_3a1bd6d012ec67bf6e38a00c3226d1be77089442f83aeb6e424b00ca2a11d21c/node_modules/xstate/dist/log-ec8d4df4.cjs.js +401 -0
- package/dist/node_modules/.pnpm/xstate@5.24.0_patch_hash_3a1bd6d012ec67bf6e38a00c3226d1be77089442f83aeb6e424b00ca2a11d21c/node_modules/xstate/dist/raise-da5b247f.cjs.js +2716 -0
- package/dist/node_modules/.pnpm/xstate@5.24.0_patch_hash_3a1bd6d012ec67bf6e38a00c3226d1be77089442f83aeb6e424b00ca2a11d21c/node_modules/xstate/guards/dist/xstate-guards.cjs.js +26 -0
- package/dist/overlays/element-details/ElementDetails.js +7 -7
- package/dist/overlays/element-details/ElementDetailsCard.css.js +3 -3
- package/dist/overlays/element-details/ElementDetailsCard.js +7 -5
- package/dist/overlays/element-details/MetadataValue.d.ts +2 -1
- package/dist/overlays/element-details/MetadataValue.js +2 -2
- package/dist/overlays/element-details/TabPanelDeployments.js +6 -4
- package/dist/overlays/element-details/TabPanelRelationships.js +3 -3
- package/dist/overlays/element-details/TabPanelStructure.js +1 -1
- package/dist/overlays/element-details/actor.d.ts +8 -82
- package/dist/overlays/element-details/actor.js +0 -8
- package/dist/overlays/overlay/Overlay.js +10 -10
- package/dist/overlays/overlaysActor.d.ts +7 -150
- package/dist/overlays/overlaysActor.js +183 -161
- package/dist/overlays/relationship-details/RelationshipDetails.js +4 -3
- package/dist/overlays/relationship-details/SelectEdge.js +2 -2
- package/dist/overlays/relationship-details/_types.d.ts +3 -4
- package/dist/overlays/relationship-details/actor.d.ts +6 -550
- package/dist/overlays/relationship-details/actor.js +18 -3
- package/dist/overlays/relationship-details/custom/ElementActions.js +8 -5
- package/dist/overlays/relationship-details/custom/edgeTypes.js +4 -1
- package/dist/overlays/relationship-details/custom/nodeTypes.js +4 -1
- package/dist/overlays/relationship-details/hooks.js +1 -1
- package/dist/overlays/relationship-details/layout-to-xyflow.js +3 -5
- package/dist/overlays/relationship-details/layout.d.ts +3 -3
- package/dist/overlays/relationship-details/layout.js +4 -4
- package/dist/overlays/relationships-browser/RelationshipsBrowser.js +6 -4
- package/dist/overlays/relationships-browser/SelectElement.js +2 -2
- package/dist/overlays/relationships-browser/_types.d.ts +2 -3
- package/dist/overlays/relationships-browser/actor.d.ts +7 -673
- package/dist/overlays/relationships-browser/actor.js +132 -110
- package/dist/overlays/relationships-browser/custom/ElementActions.js +44 -37
- package/dist/overlays/relationships-browser/custom/edgeTypes.js +4 -1
- package/dist/overlays/relationships-browser/custom/nodeTypes.js +4 -1
- package/dist/overlays/relationships-browser/hooks.js +7 -6
- package/dist/overlays/relationships-browser/layout.d.ts +2 -2
- package/dist/overlays/relationships-browser/layout.js +3 -3
- package/dist/overlays/relationships-browser/useViewToNodesEdges.js +0 -3
- package/dist/overlays/types.d.ts +12 -13
- package/dist/search/Search.js +2 -1
- package/dist/search/components/ElementsColumn.js +5 -3
- package/dist/search/components/PickView.js +1 -1
- package/dist/search/components/SearchByTags.js +21 -44
- package/dist/search/components/SearchInput.js +1 -1
- package/dist/search/components/ViewsColum.js +6 -4
- package/dist/search/components/_shared.css.d.ts +1 -1
- package/dist/search/searchActor.d.ts +3 -66
- package/dist/shadowroot/ShadowRoot.d.ts +5 -7
- package/dist/shadowroot/ShadowRoot.js +8 -6
- package/dist/styles.css2.js +1 -1
- package/dist/utils/index.d.ts +4 -4
- package/dist/utils/vector.d.ts +83 -21
- package/dist/utils/vector.js +98 -24
- package/dist/utils/view-bounds.d.ts +8 -0
- package/dist/utils/view-bounds.js +58 -0
- package/dist/utils/xyflow.d.ts +52 -8
- package/dist/utils/xyflow.js +31 -11
- package/package.json +26 -24
- package/panda.buildinfo.json +124 -71
- package/styles-min.css +1 -1
- package/styles.css +1 -1
- package/dist/hooks/useCurrentViewId.d.ts +0 -6
- package/dist/likec4diagram/custom/edges/utils.js +0 -23
- package/dist/likec4diagram/state/diagram-machine.d.ts +0 -2590
- package/dist/likec4diagram/state/diagram-machine.js +0 -1180
- package/dist/navigationpanel/editorpanel/LayoutDriftNotification.d.ts +0 -1
- package/dist/navigationpanel/editorpanel/LayoutDriftNotification.js +0 -56
- package/dist/utils/get-view-bounds.d.ts +0 -3
- package/dist/utils/get-view-bounds.js +0 -14
- /package/dist/base/{types.js → Base.js} +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/createReactComponent.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconId.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.1.1 → @tabler_icons-react@3.35.0_react@19.2.0}/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { __exports as xstateGuards_cjs } from '../../../../../../../_virtual/xstate-guards.cjs2.js';
|
|
2
|
+
import { __require as requireRaiseDa5b247f_cjs } from '../../dist/raise-da5b247f.cjs.js';
|
|
3
|
+
import { __require as requireXstateDev_cjs } from '../../dev/dist/xstate-dev.cjs.js';
|
|
4
|
+
|
|
5
|
+
var hasRequiredXstateGuards_cjs;
|
|
6
|
+
|
|
7
|
+
function requireXstateGuards_cjs () {
|
|
8
|
+
if (hasRequiredXstateGuards_cjs) return xstateGuards_cjs;
|
|
9
|
+
hasRequiredXstateGuards_cjs = 1;
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(xstateGuards_cjs, '__esModule', { value: true });
|
|
12
|
+
|
|
13
|
+
var guards_dist_xstateGuards = /*@__PURE__*/ requireRaiseDa5b247f_cjs();
|
|
14
|
+
requireXstateDev_cjs();
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
xstateGuards_cjs.and = guards_dist_xstateGuards.and;
|
|
19
|
+
xstateGuards_cjs.evaluateGuard = guards_dist_xstateGuards.evaluateGuard;
|
|
20
|
+
xstateGuards_cjs.not = guards_dist_xstateGuards.not;
|
|
21
|
+
xstateGuards_cjs.or = guards_dist_xstateGuards.or;
|
|
22
|
+
xstateGuards_cjs.stateIn = guards_dist_xstateGuards.stateIn;
|
|
23
|
+
return xstateGuards_cjs;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { requireXstateGuards_cjs as __require };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { useCallbackRef } from '@mantine/hooks';
|
|
3
2
|
import { useSelector } from '@xstate/react';
|
|
4
3
|
import { shallowEqual } from 'fast-equals';
|
|
5
4
|
import { ElementDetailsActorContext } from './actorContext.js';
|
|
6
5
|
import { ElementDetailsCard } from './ElementDetailsCard.js';
|
|
7
6
|
|
|
7
|
+
const selector = (s) => ({
|
|
8
|
+
viewId: s.context.currentView.id,
|
|
9
|
+
fromNode: s.context.initiatedFrom.node,
|
|
10
|
+
rectFromNode: s.context.initiatedFrom.clientRect,
|
|
11
|
+
fqn: s.context.subject
|
|
12
|
+
});
|
|
8
13
|
function ElementDetails({
|
|
9
14
|
actorRef,
|
|
10
15
|
onClose
|
|
11
16
|
}) {
|
|
12
17
|
const props = useSelector(
|
|
13
18
|
actorRef,
|
|
14
|
-
|
|
15
|
-
viewId: s.context.currentView.id,
|
|
16
|
-
fromNode: s.context.initiatedFrom.node,
|
|
17
|
-
rectFromNode: s.context.initiatedFrom.clientRect,
|
|
18
|
-
fqn: s.context.subject
|
|
19
|
-
})),
|
|
19
|
+
selector,
|
|
20
20
|
shallowEqual
|
|
21
21
|
);
|
|
22
22
|
return /* @__PURE__ */ jsx(ElementDetailsActorContext.Provider, { value: actorRef, children: /* @__PURE__ */ jsx(
|
|
@@ -39,9 +39,9 @@ const card = css({
|
|
|
39
39
|
border: "none",
|
|
40
40
|
backgroundImage: `
|
|
41
41
|
linear-gradient(180deg,
|
|
42
|
-
color-mix(in
|
|
43
|
-
color-mix(in
|
|
44
|
-
color-mix(in
|
|
42
|
+
color-mix(in oklab, var(--likec4-palette-fill) 60%, transparent),
|
|
43
|
+
color-mix(in oklab, var(--likec4-palette-fill) 20%, transparent) 8px,
|
|
44
|
+
color-mix(in oklab, var(--likec4-palette-fill) 14%, transparent) 20px,
|
|
45
45
|
transparent 80px
|
|
46
46
|
),
|
|
47
47
|
linear-gradient(180deg, var(--likec4-palette-fill), var(--likec4-palette-fill) 4px, transparent 4px)
|
|
@@ -10,7 +10,9 @@ import { pipe, map, partition, only, clamp, isNullish, entries } from 'remeda';
|
|
|
10
10
|
import { ElementTag } from '../../base-primitives/element/ElementTags.js';
|
|
11
11
|
import { Link } from '../../components/Link.js';
|
|
12
12
|
import { useCurrentViewModel } from '../../hooks/useCurrentViewModel.js';
|
|
13
|
-
import
|
|
13
|
+
import '@xstate/react';
|
|
14
|
+
import 'fast-equals';
|
|
15
|
+
import { useDiagram } from '../../hooks/safeContext.js';
|
|
14
16
|
import { elementIcon, card, cardHeader, title, tabsPanel, tabsTab, tabsList, tabsRoot, propertiesGrid, resizeHandle, backdropOpacity, backdropBlur, dialog, propertyLabel, viewButton, viewButtonTitle } from './ElementDetailsCard.css.js';
|
|
15
17
|
import { MetadataProvider, MetadataValue } from './MetadataValue.js';
|
|
16
18
|
import { TabPanelDeployments } from './TabPanelDeployments.js';
|
|
@@ -19,12 +21,12 @@ import { TabPanelStructure } from './TabPanelStructure.js';
|
|
|
19
21
|
import { useUpdateEffect } from '../../hooks/useUpdateEffect.js';
|
|
20
22
|
import { IconRenderer } from '../../context/IconRenderer.js';
|
|
21
23
|
import { stopPropagation } from '../../utils/xyflow.js';
|
|
22
|
-
import IconExternalLink from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.
|
|
24
|
+
import IconExternalLink from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.0/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js';
|
|
23
25
|
import { IfEnabled, DiagramFeatures } from '../../context/DiagramFeatures.js';
|
|
24
|
-
import IconFileSymlink from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.
|
|
25
|
-
import IconZoomScan from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.
|
|
26
|
+
import IconFileSymlink from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.0/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js';
|
|
27
|
+
import IconZoomScan from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.0/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js';
|
|
26
28
|
import { Markdown } from '../../base-primitives/Markdown.js';
|
|
27
|
-
import IconStack2 from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.
|
|
29
|
+
import IconStack2 from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.0/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.js';
|
|
28
30
|
|
|
29
31
|
const Divider = Divider$1.withProps({
|
|
30
32
|
mb: 8,
|
|
@@ -2,8 +2,8 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { css } from '@likec4/styles/css';
|
|
3
3
|
import { UnstyledButton, Flex, Text, Box, Stack, Tooltip } from '@mantine/core';
|
|
4
4
|
import { useState, useRef, useEffect } from 'react';
|
|
5
|
-
import IconChevronDown from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.
|
|
6
|
-
import IconChevronRight from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.
|
|
5
|
+
import IconChevronDown from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.0/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js';
|
|
6
|
+
import IconChevronRight from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.0/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js';
|
|
7
7
|
|
|
8
8
|
function MetadataProvider({ children }) {
|
|
9
9
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useTree, Alert, Tree, Box, rem, Button, Group, Text, ThemeIcon, Menu } from '@mantine/core';
|
|
3
3
|
import { memo, useMemo, useEffect } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import '@xstate/react';
|
|
5
|
+
import 'fast-equals';
|
|
6
|
+
import { useDiagram } from '../../hooks/safeContext.js';
|
|
5
7
|
import { useLikeC4Model } from '../../hooks/useLikeC4Model.js';
|
|
6
8
|
import { treeNodeLabel, treeNode, nodeLabel, instanceLabel } from './TabPanelDeployments.css.js';
|
|
7
|
-
import IconInfoCircle from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.
|
|
8
|
-
import IconTarget from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.
|
|
9
|
+
import IconInfoCircle from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.0/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js';
|
|
10
|
+
import IconTarget from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.0/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.js';
|
|
9
11
|
import { stopPropagation } from '../../utils/xyflow.js';
|
|
10
|
-
import IconZoomScan from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.
|
|
12
|
+
import IconZoomScan from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.0/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js';
|
|
11
13
|
|
|
12
14
|
const DeploymentNodeRenderer = ({
|
|
13
15
|
node
|
|
@@ -7,9 +7,9 @@ import { useOverlaysActorRef } from '../../hooks/useOverlaysActor.js';
|
|
|
7
7
|
import { RelationshipsBrowser } from '../relationships-browser/RelationshipsBrowser.js';
|
|
8
8
|
import { useElementDetailsActorRef } from './actorContext.js';
|
|
9
9
|
import { fqn, xyflow, relationshipStat } from './TabPanelRelationships.css.js';
|
|
10
|
-
import IconArrowRight from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.
|
|
11
|
-
import IconInfoCircle from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.
|
|
12
|
-
import IconExternalLink from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.
|
|
10
|
+
import IconArrowRight from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.0/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js';
|
|
11
|
+
import IconInfoCircle from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.0/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js';
|
|
12
|
+
import IconExternalLink from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.0/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js';
|
|
13
13
|
|
|
14
14
|
const Tooltip = Tooltip$1.withProps({
|
|
15
15
|
color: "dark",
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useTree, Alert, Anchor, Tree, Box, Text, Pill } from '@mantine/core';
|
|
3
3
|
import { useMemo, useEffect } from 'react';
|
|
4
4
|
import { treeNodeLabel, elementLabel } from './TabPanelStructure.css.js';
|
|
5
|
-
import IconInfoCircle from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.
|
|
5
|
+
import IconInfoCircle from '../../node_modules/.pnpm/@tabler_icons-react@3.35.0_react@19.2.0/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js';
|
|
6
6
|
|
|
7
7
|
const ElementLabel = ({
|
|
8
8
|
element
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DiagramView, Fqn, NodeId } from '@likec4/core/types';
|
|
2
2
|
import { Rect } from '@xyflow/system';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { ActorRef, SnapshotFrom, StateMachine } from 'xstate';
|
|
4
|
+
import { RelationshipsBrowserActorRef } from '../relationships-browser/actor';
|
|
5
5
|
export type Input = {
|
|
6
6
|
subject: Fqn;
|
|
7
7
|
currentView: DiagramView;
|
|
@@ -24,86 +24,12 @@ export type Events = {
|
|
|
24
24
|
} | {
|
|
25
25
|
type: 'close';
|
|
26
26
|
};
|
|
27
|
-
|
|
28
|
-
[
|
|
29
|
-
}, {
|
|
30
|
-
src: "relationshipsBrowserLogic";
|
|
31
|
-
logic: RelationshipsBrowserLogic;
|
|
32
|
-
id: `${string}-relationships`;
|
|
33
|
-
}, never, never, never, "active" | "closed", string, Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
34
|
-
readonly id: "element-details";
|
|
35
|
-
readonly context: ({ input }: {
|
|
36
|
-
spawn: {
|
|
37
|
-
<TSrc extends "relationshipsBrowserLogic">(logic: TSrc, ...[options]: {
|
|
38
|
-
src: "relationshipsBrowserLogic";
|
|
39
|
-
logic: RelationshipsBrowserLogic;
|
|
40
|
-
id: `${string}-relationships`;
|
|
41
|
-
} extends infer T ? T extends {
|
|
42
|
-
src: "relationshipsBrowserLogic";
|
|
43
|
-
logic: RelationshipsBrowserLogic;
|
|
44
|
-
id: `${string}-relationships`;
|
|
45
|
-
} ? T extends {
|
|
46
|
-
src: TSrc;
|
|
47
|
-
} ? ConditionalRequired<[options?: {
|
|
48
|
-
id?: T["id"];
|
|
49
|
-
systemId?: string;
|
|
50
|
-
input?: InputFrom<T["logic"]>;
|
|
51
|
-
syncSnapshot?: boolean;
|
|
52
|
-
} & { [K in RequiredActorOptions<T>]: unknown; }], IsNotNever<RequiredActorOptions<T>>> : never : never : never): ActorRefFromLogic< GetConcreteByKey<{
|
|
53
|
-
src: "relationshipsBrowserLogic";
|
|
54
|
-
logic: RelationshipsBrowserLogic;
|
|
55
|
-
id: `${string}-relationships`;
|
|
56
|
-
}, "src", TSrc>["logic"]>;
|
|
57
|
-
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
58
|
-
id?: never;
|
|
59
|
-
systemId?: string;
|
|
60
|
-
input?: InputFrom<TLogic>;
|
|
61
|
-
syncSnapshot?: boolean;
|
|
62
|
-
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
63
|
-
};
|
|
64
|
-
input: Input;
|
|
65
|
-
self: ActorRef<MachineSnapshot<Context, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
|
|
66
|
-
}) => {
|
|
67
|
-
initiatedFrom: {
|
|
68
|
-
node: NodeId | null;
|
|
69
|
-
clientRect: Rect | null;
|
|
70
|
-
};
|
|
71
|
-
subject: Fqn;
|
|
72
|
-
currentView: DiagramView;
|
|
73
|
-
};
|
|
74
|
-
readonly initial: "active";
|
|
75
|
-
readonly states: {
|
|
76
|
-
readonly active: {
|
|
77
|
-
readonly entry: ActionFunction<Context, Events, Events, undefined, {
|
|
78
|
-
src: "relationshipsBrowserLogic";
|
|
79
|
-
logic: RelationshipsBrowserLogic;
|
|
80
|
-
id: `${string}-relationships`;
|
|
81
|
-
}, never, never, never, never>;
|
|
82
|
-
readonly exit: readonly [ ActionFunction<Context, Events, Events, undefined, never, never, never, never, never>, StopAction<Context, Events, undefined, Events>];
|
|
83
|
-
readonly on: {
|
|
84
|
-
readonly 'change.subject': {
|
|
85
|
-
readonly actions: ActionFunction<Context, {
|
|
86
|
-
type: "change.subject";
|
|
87
|
-
subject: Fqn;
|
|
88
|
-
}, Events, undefined, {
|
|
89
|
-
src: "relationshipsBrowserLogic";
|
|
90
|
-
logic: RelationshipsBrowserLogic;
|
|
91
|
-
id: `${string}-relationships`;
|
|
92
|
-
}, never, never, never, never>;
|
|
93
|
-
};
|
|
94
|
-
readonly close: "closed";
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
readonly closed: {
|
|
98
|
-
readonly id: "closed";
|
|
99
|
-
readonly type: "final";
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
}>;
|
|
103
|
-
export interface ElementDetailsLogic extends ActorLogicFrom<typeof _elementDetailsLogic> {
|
|
27
|
+
export interface ElementDetailsLogic extends StateMachine<Context, Events, {
|
|
28
|
+
[key: `${string}-relationships`]: RelationshipsBrowserActorRef | undefined;
|
|
29
|
+
}, any, any, any, any, any, never, Input, any, any, any, any> {
|
|
104
30
|
}
|
|
105
31
|
export declare const elementDetailsLogic: ElementDetailsLogic;
|
|
106
|
-
export interface ElementDetailsActorRef extends ActorRefFromLogic<ElementDetailsLogic> {
|
|
107
|
-
}
|
|
108
32
|
export type ElementDetailsSnapshot = SnapshotFrom<ElementDetailsLogic>;
|
|
109
|
-
export {
|
|
33
|
+
export interface ElementDetailsActorRef extends ActorRef<ElementDetailsSnapshot, Events> {
|
|
34
|
+
}
|
|
35
|
+
export type { Input as ElementDetailsInput, };
|
|
@@ -52,14 +52,6 @@ const _elementDetailsLogic = setup({
|
|
|
52
52
|
type: "final"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
// exit: assign({
|
|
56
|
-
// initialized: false,
|
|
57
|
-
// xyflow: null,
|
|
58
|
-
// layouted: null,
|
|
59
|
-
// xystore: null,
|
|
60
|
-
// xyedges: [],
|
|
61
|
-
// xynodes: [],
|
|
62
|
-
// }),
|
|
63
55
|
});
|
|
64
56
|
const elementDetailsLogic = _elementDetailsLogic;
|
|
65
57
|
|
|
@@ -79,9 +79,9 @@ const Overlay = forwardRef(({
|
|
|
79
79
|
initial: {
|
|
80
80
|
[backdropBlur]: "0px",
|
|
81
81
|
[backdropOpacity]: "0%",
|
|
82
|
-
scale: 0.
|
|
83
|
-
originY: 0,
|
|
84
|
-
translateY: -
|
|
82
|
+
scale: 0.85,
|
|
83
|
+
// originY: 0.4,
|
|
84
|
+
// translateY: -10,
|
|
85
85
|
opacity: 0
|
|
86
86
|
},
|
|
87
87
|
animate: {
|
|
@@ -89,18 +89,18 @@ const Overlay = forwardRef(({
|
|
|
89
89
|
[backdropOpacity]: targetBackdropOpacity,
|
|
90
90
|
scale: 1,
|
|
91
91
|
opacity: 1,
|
|
92
|
-
translateY: 0
|
|
93
|
-
transition: {
|
|
94
|
-
|
|
95
|
-
}
|
|
92
|
+
translateY: 0
|
|
93
|
+
// transition: {
|
|
94
|
+
// delay: 0.075,
|
|
95
|
+
// },
|
|
96
96
|
},
|
|
97
97
|
exit: {
|
|
98
98
|
opacity: 0,
|
|
99
99
|
scale: 0.98,
|
|
100
100
|
translateY: -20,
|
|
101
|
-
transition: {
|
|
102
|
-
|
|
103
|
-
},
|
|
101
|
+
// transition: {
|
|
102
|
+
// duration: 0.1,
|
|
103
|
+
// },
|
|
104
104
|
[backdropBlur]: "0px",
|
|
105
105
|
[backdropOpacity]: "0%"
|
|
106
106
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Fqn } from '@likec4/core/types';
|
|
2
|
-
import {
|
|
2
|
+
import { ActorRef, SnapshotFrom, StateMachine } from 'xstate';
|
|
3
3
|
import { Overlays } from './types';
|
|
4
|
-
import { ElementDetailsLogic } from './element-details/actor';
|
|
5
4
|
export type OverlayActorEvent = {
|
|
6
5
|
type: 'open.elementDetails';
|
|
7
6
|
} & Overlays.ElementDetails.Input | {
|
|
@@ -38,155 +37,13 @@ export type OverlayActorEmitedEvent = {
|
|
|
38
37
|
} | {
|
|
39
38
|
type: 'idle';
|
|
40
39
|
};
|
|
41
|
-
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
45
|
-
|
|
46
|
-
}, Values<{
|
|
47
|
-
elementDetails: {
|
|
48
|
-
src: "elementDetails";
|
|
49
|
-
logic: ElementDetailsLogic;
|
|
50
|
-
id: `elementDetails-${number}`;
|
|
51
|
-
};
|
|
52
|
-
relationshipsBrowser: {
|
|
53
|
-
src: "relationshipsBrowser";
|
|
54
|
-
logic: Overlays.RelationshipsBrowser.Logic;
|
|
55
|
-
id: `relationshipsBrowser-${number}`;
|
|
56
|
-
};
|
|
57
|
-
relationshipDetails: {
|
|
58
|
-
src: "relationshipDetails";
|
|
59
|
-
logic: Overlays.RelationshipDetails.Logic;
|
|
60
|
-
id: `relationshipDetails-${number}`;
|
|
61
|
-
};
|
|
62
|
-
hotkey: {
|
|
63
|
-
src: "hotkey";
|
|
64
|
-
logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
|
|
65
|
-
id: "hotkey";
|
|
66
|
-
};
|
|
67
|
-
}>, Values<{
|
|
68
|
-
closeLastOverlay: {
|
|
69
|
-
type: "closeLastOverlay";
|
|
70
|
-
params: NonReducibleUnknown;
|
|
71
|
-
};
|
|
72
|
-
closeSpecificOverlay: {
|
|
73
|
-
type: "closeSpecificOverlay";
|
|
74
|
-
params: {
|
|
75
|
-
actorId: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
closeAllOverlays: {
|
|
79
|
-
type: "closeAllOverlays";
|
|
80
|
-
params: NonReducibleUnknown;
|
|
81
|
-
};
|
|
82
|
-
openElementDetails: {
|
|
83
|
-
type: "openElementDetails";
|
|
84
|
-
params: NonReducibleUnknown;
|
|
85
|
-
};
|
|
86
|
-
openRelationshipDetails: {
|
|
87
|
-
type: "openRelationshipDetails";
|
|
88
|
-
params: NonReducibleUnknown;
|
|
89
|
-
};
|
|
90
|
-
openRelationshipsBrowser: {
|
|
91
|
-
type: "openRelationshipsBrowser";
|
|
92
|
-
params: NonReducibleUnknown;
|
|
93
|
-
};
|
|
94
|
-
listenToEsc: {
|
|
95
|
-
type: "listenToEsc";
|
|
96
|
-
params: NonReducibleUnknown;
|
|
97
|
-
};
|
|
98
|
-
stopListeningToEsc: {
|
|
99
|
-
type: "stopListeningToEsc";
|
|
100
|
-
params: NonReducibleUnknown;
|
|
101
|
-
};
|
|
102
|
-
}>, Values<{
|
|
103
|
-
"has overlays?": {
|
|
104
|
-
type: "has overlays?";
|
|
105
|
-
params: unknown;
|
|
106
|
-
};
|
|
107
|
-
"close specific overlay?": {
|
|
108
|
-
type: "close specific overlay?";
|
|
109
|
-
params: unknown;
|
|
110
|
-
};
|
|
111
|
-
"last: is relationshipDetails?": {
|
|
112
|
-
type: "last: is relationshipDetails?";
|
|
113
|
-
params: unknown;
|
|
114
|
-
};
|
|
115
|
-
"last: is relationshipsBrowser?": {
|
|
116
|
-
type: "last: is relationshipsBrowser?";
|
|
117
|
-
params: unknown;
|
|
118
|
-
};
|
|
119
|
-
}>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
|
|
120
|
-
readonly id: "overlays";
|
|
121
|
-
readonly context: () => {
|
|
122
|
-
seq: number;
|
|
123
|
-
overlays: never[];
|
|
124
|
-
};
|
|
125
|
-
readonly initial: "idle";
|
|
126
|
-
readonly on: {
|
|
127
|
-
readonly 'open.elementDetails': {
|
|
128
|
-
readonly actions: "openElementDetails";
|
|
129
|
-
readonly target: ".active";
|
|
130
|
-
readonly reenter: false;
|
|
131
|
-
};
|
|
132
|
-
readonly 'open.relationshipDetails': {
|
|
133
|
-
readonly actions: "openRelationshipDetails";
|
|
134
|
-
readonly target: ".active";
|
|
135
|
-
readonly reenter: false;
|
|
136
|
-
};
|
|
137
|
-
readonly 'open.relationshipsBrowser': {
|
|
138
|
-
readonly actions: "openRelationshipsBrowser";
|
|
139
|
-
readonly target: ".active";
|
|
140
|
-
readonly reenter: false;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
readonly states: {
|
|
144
|
-
readonly idle: {};
|
|
145
|
-
readonly active: {
|
|
146
|
-
readonly entry: "listenToEsc";
|
|
147
|
-
readonly exit: "stopListeningToEsc";
|
|
148
|
-
readonly on: {
|
|
149
|
-
readonly close: readonly [{
|
|
150
|
-
readonly guard: "close specific overlay?";
|
|
151
|
-
readonly actions: {
|
|
152
|
-
readonly type: "closeSpecificOverlay";
|
|
153
|
-
readonly params: ({ event }: {
|
|
154
|
-
context: OverlaysContext;
|
|
155
|
-
event: {
|
|
156
|
-
type: "close";
|
|
157
|
-
actorId?: string | undefined;
|
|
158
|
-
};
|
|
159
|
-
}) => {
|
|
160
|
-
actorId: string;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
readonly target: "closing";
|
|
164
|
-
}, {
|
|
165
|
-
readonly actions: "closeLastOverlay";
|
|
166
|
-
readonly target: "closing";
|
|
167
|
-
}];
|
|
168
|
-
readonly 'close.all': {
|
|
169
|
-
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
170
|
-
readonly target: "idle";
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
readonly closing: {
|
|
175
|
-
readonly always: readonly [{
|
|
176
|
-
readonly guard: "has overlays?";
|
|
177
|
-
readonly target: "active";
|
|
178
|
-
}, {
|
|
179
|
-
readonly actions: "stopListeningToEsc";
|
|
180
|
-
readonly target: "idle";
|
|
181
|
-
}];
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
|
|
185
|
-
}>;
|
|
186
|
-
export interface OverlaysActorLogic extends ActorLogicFrom<typeof _overlaysActorLogic> {
|
|
40
|
+
export interface OverlaysActorLogic extends StateMachine<OverlaysContext, OverlayActorEvent, {
|
|
41
|
+
[key: `elementDetails-${number}`]: Overlays.ElementDetails.ActorRef | undefined;
|
|
42
|
+
[key: `relationshipDetails-${number}`]: Overlays.RelationshipDetails.ActorRef | undefined;
|
|
43
|
+
[key: `relationshipsBrowser-${number}`]: Overlays.RelationshipsBrowser.ActorRef | undefined;
|
|
44
|
+
}, any, any, any, any, any, never, never, any, OverlayActorEmitedEvent, any, any> {
|
|
187
45
|
}
|
|
188
46
|
export declare const overlaysActorLogic: OverlaysActorLogic;
|
|
189
47
|
export type OverlaysActorSnapshot = SnapshotFrom<OverlaysActorLogic>;
|
|
190
|
-
export interface OverlaysActorRef extends
|
|
48
|
+
export interface OverlaysActorRef extends ActorRef<OverlaysActorSnapshot, OverlayActorEvent, OverlayActorEmitedEvent> {
|
|
191
49
|
}
|
|
192
|
-
export {};
|