@likec4/diagram 1.60.0 → 1.61.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/README.md +63 -11
- package/dist/LikeC4Diagram.d.mts +4 -6
- package/dist/LikeC4Diagram.mjs +13 -12
- package/dist/LikeC4Diagram.props.d.mts +5 -7
- package/dist/LikeC4MantineProvider.d.mts +1 -2
- package/dist/LikeC4MantineProvider.mjs +26 -11
- package/dist/LikeC4ModelProvider.d.mts +1 -3
- package/dist/LikeC4ModelProvider.mjs +1 -2
- package/dist/LikeC4ProjectsOverview.d.mts +1 -3
- package/dist/LikeC4ProjectsOverview.mjs +1 -2
- package/dist/LikeC4ProjectsProvider.d.mts +1 -2
- package/dist/LikeC4ProjectsProvider.mjs +2 -3
- package/dist/LikeC4Styles.d.mts +1 -2
- package/dist/LikeC4Styles.mjs +11 -6
- package/dist/LikeC4View.d.mts +3 -5
- package/dist/LikeC4View.mjs +12 -11
- package/dist/ReactLikeC4.d.mts +3 -5
- package/dist/ReactLikeC4.mjs +8 -7
- package/dist/StaticLikeC4Diagram.d.mts +1 -3
- package/dist/StaticLikeC4Diagram.mjs +1 -2
- package/dist/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/base/Background.mjs +1 -2
- package/dist/base/Base.d.mts +1 -2
- package/dist/base/Base.mjs +1 -2
- package/dist/base/BaseXYFlow.mjs +12 -10
- package/dist/base/const.d.mts +1 -3
- package/dist/base/const.mjs +1 -2
- package/dist/base/keyboardZoom.mjs +1 -2
- package/dist/base/types.d.mts +2 -4
- package/dist/base/updateEdges.mjs +1 -2
- package/dist/base/updateNodes.mjs +1 -2
- package/dist/base-primitives/Markdown.d.mts +5 -5
- package/dist/base-primitives/Markdown.mjs +22 -11
- package/dist/base-primitives/NodeHandles.d.mts +1 -3
- package/dist/base-primitives/NodeHandles.mjs +1 -2
- package/dist/base-primitives/compound/CompoundActionButton.d.mts +1 -2
- package/dist/base-primitives/compound/CompoundActionButton.mjs +3 -4
- package/dist/base-primitives/compound/CompoundDetailsButton.d.mts +1 -2
- package/dist/base-primitives/compound/CompoundDetailsButton.mjs +3 -4
- package/dist/base-primitives/compound/CompoundNodeContainer.d.mts +1 -2
- package/dist/base-primitives/compound/CompoundNodeContainer.mjs +1 -2
- package/dist/base-primitives/compound/CompoundTitle.d.mts +1 -2
- package/dist/base-primitives/compound/CompoundTitle.mjs +1 -2
- package/dist/base-primitives/compound/actionbtns.css.mjs +1 -2
- package/dist/base-primitives/edge/EdgeActionButton.mjs +2 -3
- package/dist/base-primitives/edge/EdgeContainer.mjs +2 -3
- package/dist/base-primitives/edge/EdgeLabel.mjs +3 -3
- package/dist/base-primitives/edge/EdgeLabelContainer.mjs +2 -3
- package/dist/base-primitives/edge/EdgeMarkers.mjs +1 -2
- package/dist/base-primitives/edge/EdgePath.mjs +1 -2
- package/dist/base-primitives/element/ElementActionButtons.d.mts +1 -2
- package/dist/base-primitives/element/ElementActionButtons.mjs +2 -3
- package/dist/base-primitives/element/ElementData.d.mts +1 -2
- package/dist/base-primitives/element/ElementData.mjs +1 -2
- package/dist/base-primitives/element/ElementDetailsButton.d.mts +1 -2
- package/dist/base-primitives/element/ElementDetailsButton.mjs +2 -3
- package/dist/base-primitives/element/ElementNodeContainer.d.mts +1 -2
- package/dist/base-primitives/element/ElementNodeContainer.mjs +2 -3
- package/dist/base-primitives/element/ElementShape.d.mts +11 -6
- package/dist/base-primitives/element/ElementShape.mjs +10 -5
- package/dist/base-primitives/element/ElementTags.d.mts +6 -3
- package/dist/base-primitives/element/ElementTags.mjs +2 -4
- package/dist/base-primitives/index.d.mts +5 -5
- package/dist/base-primitives/memoEdge.d.mts +2 -6
- package/dist/base-primitives/memoEdge.mjs +1 -2
- package/dist/base-primitives/memoNode.d.mts +2 -6
- package/dist/components/EmptyBox.mjs +1 -2
- package/dist/components/ErrorFallback.d.mts +4 -3
- package/dist/components/ErrorFallback.mjs +61 -56
- package/dist/components/FloatingWindow.mjs +3 -4
- package/dist/components/GithubIcon.mjs +1 -2
- package/dist/components/Link.mjs +3 -4
- package/dist/components/Logo.d.mts +3 -5
- package/dist/components/Logo.mjs +28 -35
- package/dist/components/NavigationLink.mjs +1 -2
- package/dist/components/NavigationPanel.mjs +11 -11
- package/dist/components/PortalToContainer.d.mts +1 -3
- package/dist/components/PortalToContainer.mjs +1 -2
- package/dist/components/RootContainer.mjs +1 -2
- package/dist/components/SearchControl.css.mjs +1 -2
- package/dist/components/SearchControl.d.mts +1 -2
- package/dist/components/SearchControl.mjs +2 -3
- package/dist/components/ViewIcon.mjs +5 -6
- package/dist/components/ViewNotFound.mjs +1 -2
- package/dist/components/markdown/MarkdownWithRefs.mjs +268 -0
- package/dist/components/markdown/markdown-refs.mjs +145 -0
- package/dist/components/markdown/useMarkdownRefsInteractivity.mjs +126 -0
- package/dist/context/ComparingLayoutsContext.mjs +24 -0
- package/dist/context/CurrentViewModelProvider.mjs +1 -2
- package/dist/context/DiagramEventHandlers.mjs +3 -4
- package/dist/context/DiagramFeatures.d.mts +2 -3
- package/dist/context/DiagramFeatures.mjs +15 -9
- package/dist/context/EnsureMantine.mjs +1 -2
- package/dist/context/FramerMotionConfig.d.mts +1 -3
- package/dist/context/FramerMotionConfig.mjs +1 -2
- package/dist/context/IconRenderer.d.mts +1 -3
- package/dist/context/IconRenderer.mjs +14 -14
- package/dist/context/LikeC4ModelContext.d.mts +1 -2
- package/dist/context/LikeC4ModelContext.mjs +1 -2
- package/dist/context/LikeC4ProjectsContext.d.mts +1 -3
- package/dist/context/LikeC4ProjectsContext.mjs +1 -2
- package/dist/context/RootContainerContext.mjs +1 -2
- package/dist/context/TagStylesContext.d.mts +1 -2
- package/dist/context/TagStylesContext.mjs +7 -19
- package/dist/custom/builtins.d.mts +4 -1
- package/dist/custom/customNodes.d.mts +164 -7
- package/dist/custom/customNodes.mjs +387 -8
- package/dist/custom/index.d.mts +18 -30
- package/dist/custom/index.mjs +11 -19
- package/dist/custom/primitives.d.mts +3 -5
- package/dist/customization/CustomizationContext.d.mts +50 -0
- package/dist/customization/CustomizationContext.mjs +64 -0
- package/dist/customization/customizable.d.mts +32 -0
- package/dist/customization/customizable.mjs +75 -0
- package/dist/customization/customization-types.d.mts +40 -0
- package/dist/customization/customization-types.mjs +8 -0
- package/dist/customization/stableComponents.mjs +35 -0
- package/dist/editor/LikeC4EditorCallbacks.d.mts +1 -3
- package/dist/editor/LikeC4EditorCallbacks.mjs +1 -2
- package/dist/editor/LikeC4EditorProvider.d.mts +1 -3
- package/dist/editor/LikeC4EditorProvider.mjs +1 -2
- package/dist/editor/actor/actions.mjs +2 -3
- package/dist/editor/actor/hotkey.d.mts +1 -3
- package/dist/editor/actor/hotkey.mjs +1 -2
- package/dist/editor/actor/machine.d.mts +2 -4
- package/dist/editor/actor/machine.mjs +1 -2
- package/dist/editor/actor/setup.d.mts +1 -2
- package/dist/editor/actor/setup.mjs +1 -2
- package/dist/editor/actor/state.editor.mjs +2 -3
- package/dist/editor/actor/state.sync-queue.mjs +2 -3
- package/dist/editor/actor/types.d.mts +1 -3
- package/dist/editor/actor/types.mjs +1 -2
- package/dist/editor/applyChangesToManualLayout.mjs +1 -2
- package/dist/editor/index.d.mts +1 -1
- package/dist/editor/useEditorActorLogic.mjs +3 -4
- package/dist/hooks/safeContext.d.mts +16 -35
- package/dist/hooks/safeContext.mjs +1 -2
- package/dist/hooks/useCallbackRef.mjs +1 -2
- package/dist/hooks/useCurrentView.d.mts +1 -3
- package/dist/hooks/useCurrentView.mjs +1 -2
- package/dist/hooks/useCurrentViewModel.d.mts +0 -2
- package/dist/hooks/useCurrentViewModel.mjs +1 -2
- package/dist/hooks/useDiagram.d.mts +3 -12
- package/dist/hooks/useDiagram.mjs +11 -10
- package/dist/hooks/useDiagramCompareLayout.d.mts +2 -4
- package/dist/hooks/useDiagramCompareLayout.mjs +12 -21
- package/dist/hooks/useDiagramMarkdownRefActions.mjs +35 -0
- package/dist/hooks/useEdgeLabelFontLoader.mjs +29 -0
- package/dist/hooks/useEdgeTracks.mjs +2 -3
- package/dist/hooks/useEditorActor.mjs +1 -2
- package/dist/hooks/useId.mjs +1 -2
- package/dist/hooks/useLikeC4ElementsTree.mjs +1 -2
- package/dist/hooks/useLikeC4Model.d.mts +0 -2
- package/dist/hooks/useLikeC4Model.mjs +1 -2
- package/dist/hooks/useLikeC4Project.d.mts +2 -4
- package/dist/hooks/useLikeC4Project.mjs +1 -2
- package/dist/hooks/useLikeC4Styles.d.mts +1 -3
- package/dist/hooks/useLikeC4Styles.mjs +1 -2
- package/dist/hooks/useMantinePortalProps.mjs +1 -2
- package/dist/hooks/useSetState.mjs +1 -2
- package/dist/hooks/useUpdateEffect.d.mts +0 -2
- package/dist/hooks/useUpdateEffect.mjs +1 -2
- package/dist/hooks/useXYFlow.d.mts +1 -3
- package/dist/hooks/useXYFlow.mjs +1 -2
- package/dist/index.d.mts +20 -18
- package/dist/index.mjs +20 -18
- package/dist/likec4diagram/DiagramUI.mjs +14 -11
- package/dist/likec4diagram/DiagramXYFlow.mjs +34 -34
- package/dist/likec4diagram/convert-to-xyflow.mjs +7 -3
- package/dist/likec4diagram/custom/edges/EdgeDrifts.mjs +4 -3
- package/dist/likec4diagram/custom/edges/RelationshipEdge.mjs +18 -14
- package/dist/likec4diagram/custom/edges/SequenceStepEdge.mjs +3 -4
- package/dist/likec4diagram/custom/edges/useControlPoints.mjs +2 -3
- package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.mjs +2 -3
- package/dist/likec4diagram/custom/index.mjs +4 -5
- package/dist/likec4diagram/custom/nodes/CompoundActions.d.mts +1 -2
- package/dist/likec4diagram/custom/nodes/CompoundActions.mjs +2 -3
- package/dist/likec4diagram/custom/nodes/ElementActions.d.mts +3 -4
- package/dist/likec4diagram/custom/nodes/ElementActions.mjs +4 -5
- package/dist/likec4diagram/custom/nodes/GraphElementNode.d.mts +6 -1
- package/dist/likec4diagram/custom/nodes/GraphElementNode.mjs +3 -4
- package/dist/likec4diagram/custom/nodes/NodeDrifts.d.mts +6 -1
- package/dist/likec4diagram/custom/nodes/NodeDrifts.mjs +4 -3
- package/dist/likec4diagram/custom/nodes/NodeNotes.mjs +3 -5
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.d.mts +1 -3
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.mjs +3 -4
- package/dist/likec4diagram/custom/nodes/SequenceSubFlow.d.mts +3 -1
- package/dist/likec4diagram/custom/nodes/SequenceSubFlow.mjs +1 -2
- package/dist/likec4diagram/custom/nodes/index.d.mts +4 -4
- package/dist/likec4diagram/custom/nodes/nodes.d.mts +3 -4
- package/dist/likec4diagram/custom/nodes/nodes.mjs +19 -21
- package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.mjs +1 -2
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.d.mts +1 -3
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.mjs +1 -2
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.d.mts +1 -3
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.mjs +4 -5
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.d.mts +1 -3
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.mjs +4 -6
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.mjs +3 -4
- package/dist/likec4diagram/custom/nodes/toolbar/styles.css.mjs +1 -2
- package/dist/likec4diagram/custom/nodes/toolbar/types.mjs +1 -2
- package/dist/likec4diagram/custom/nodes/toolbar/useHandlers.mjs +1 -2
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.mjs +29 -12
- package/dist/likec4diagram/relationship-popover/actor.mjs +1 -2
- package/dist/likec4diagram/relationship-popover/components.mjs +1 -2
- package/dist/likec4diagram/state/DiagramActorProvider.mjs +22 -34
- package/dist/likec4diagram/state/aligners.d.mts +1 -3
- package/dist/likec4diagram/state/aligners.mjs +1 -2
- package/dist/likec4diagram/state/assign.mjs +3 -4
- package/dist/likec4diagram/state/createViewChange.mjs +1 -2
- package/dist/likec4diagram/state/diagram-api.d.mts +33 -16
- package/dist/likec4diagram/state/diagram-api.mjs +55 -31
- package/dist/likec4diagram/state/hotkeyActor.d.mts +1 -3
- package/dist/likec4diagram/state/hotkeyActor.mjs +12 -6
- package/dist/likec4diagram/state/machine.actions.layout.mjs +2 -3
- package/dist/likec4diagram/state/machine.actions.mjs +81 -44
- package/dist/likec4diagram/state/machine.d.mts +107 -15
- package/dist/likec4diagram/state/machine.mjs +3 -4
- package/dist/likec4diagram/state/machine.setup.d.mts +14 -10
- package/dist/likec4diagram/state/machine.setup.mjs +55 -28
- package/dist/likec4diagram/state/machine.state.initializing.mjs +3 -4
- package/dist/likec4diagram/state/machine.state.navigating.mjs +3 -6
- package/dist/likec4diagram/state/machine.state.ready.comparing.mjs +63 -0
- package/dist/likec4diagram/state/machine.state.ready.focused.mjs +10 -7
- package/dist/likec4diagram/state/machine.state.ready.idle.mjs +10 -7
- package/dist/likec4diagram/state/machine.state.ready.mjs +8 -8
- package/dist/likec4diagram/state/machine.state.ready.printing.mjs +3 -4
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.mjs +5 -6
- package/dist/likec4diagram/state/mediaPrintActor.d.mts +1 -3
- package/dist/likec4diagram/state/mediaPrintActor.mjs +1 -2
- package/dist/likec4diagram/state/persistence.mjs +12 -5
- package/dist/likec4diagram/state/types.d.mts +1 -3
- package/dist/likec4diagram/state/utils.mjs +2 -3
- package/dist/likec4diagram/types.d.mts +1 -3
- package/dist/likec4diagram/ui/FloatingSequenceActors.mjs +5 -7
- package/dist/likec4diagram/ui/notation/NotationPanel.css.mjs +1 -2
- package/dist/likec4diagram/ui/notation/NotationPanel.mjs +6 -7
- package/dist/likec4diagram/ui/sequence-outline/ActiveTrail.mjs +2 -3
- package/dist/likec4diagram/ui/sequence-outline/FlowRow.mjs +3 -4
- package/dist/likec4diagram/ui/sequence-outline/OutlineBody.mjs +4 -7
- package/dist/likec4diagram/ui/sequence-outline/OutlineHeader.mjs +4 -5
- package/dist/likec4diagram/ui/sequence-outline/OutlineNodes.mjs +4 -6
- package/dist/likec4diagram/ui/sequence-outline/SequenceOutlinePanel.mjs +2 -3
- package/dist/likec4diagram/ui/sequence-outline/StepBadge.mjs +1 -2
- package/dist/likec4diagram/ui/sequence-outline/StepRow.mjs +7 -8
- package/dist/likec4diagram/ui/sequence-outline/StoreProvider.mjs +3 -9
- package/dist/likec4diagram/ui/sequence-outline/depth-of-field.mjs +1 -2
- package/dist/likec4diagram/ui/sequence-outline/motion.mjs +1 -2
- package/dist/likec4diagram/ui/sequence-outline/presentation.mjs +7 -8
- package/dist/likec4diagram/ui/sequence-outline/tree.mjs +1 -2
- package/dist/likec4diagram/ui/sequence-outline/types.mjs +1 -2
- package/dist/likec4diagram/useLayoutConstraints.mjs +5 -10
- package/dist/likec4diagram/useNodeDragHandlers.mjs +28 -0
- package/dist/likec4diagram/xyflow-diagram/diagram-view.mjs +9 -2
- package/dist/likec4diagram/xyflow-graph/graph-view-to-xy.mjs +1 -2
- package/dist/likec4diagram/xyflow-graph/useGraphForceSimulation.mjs +3 -6
- package/dist/likec4diagram/xyflow-props.mjs +25 -0
- package/dist/likec4diagram/xyflow-sequence/const.mjs +1 -2
- package/dist/likec4diagram/xyflow-sequence/layouter.mjs +2 -3
- package/dist/likec4diagram/xyflow-sequence/sequence-view-to-xy.mjs +2 -3
- package/dist/likec4diagram/xyflow-sequence/sequence-view.mjs +2 -3
- package/dist/likec4diagram/xyflow-sequence/utils.mjs +1 -2
- package/dist/navigationpanel/ElementViewControls.mjs +6 -7
- package/dist/navigationpanel/NavigationPanel.mjs +38 -67
- package/dist/navigationpanel/NavigationPanelControls.mjs +35 -114
- package/dist/navigationpanel/NavigationPanelDropdown.mjs +37 -34
- package/dist/navigationpanel/_common.mjs +3 -4
- package/dist/navigationpanel/actor.actions.mjs +1 -2
- package/dist/navigationpanel/actor.d.mts +0 -2
- package/dist/navigationpanel/actor.mjs +2 -3
- package/dist/navigationpanel/actor.setup.d.mts +1 -3
- package/dist/navigationpanel/actor.setup.mjs +1 -2
- package/dist/navigationpanel/comparepanel/ComparePanel.mjs +160 -90
- package/dist/navigationpanel/comparepanel/DriftsSummary.mjs +173 -142
- package/dist/{likec4diagram/ui → navigationpanel/comparepanel}/LayoutDriftFrame.mjs +6 -12
- package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.mjs +14 -19
- package/dist/navigationpanel/controls/LayoutWarning.mjs +3 -4
- package/dist/navigationpanel/controls/LogoButton.mjs +5 -23
- package/dist/navigationpanel/controls/NavigationBreadcrumbs.mjs +110 -0
- package/dist/navigationpanel/controls/NavigationButtons.mjs +3 -4
- package/dist/navigationpanel/controls/OpenSource.mjs +2 -3
- package/dist/navigationpanel/controls/SearchControl.mjs +2 -3
- package/dist/navigationpanel/controls/ToggleReadonly.mjs +36 -21
- package/dist/navigationpanel/controls/ViewDetailsButton.mjs +12 -15
- package/dist/navigationpanel/dropdown/ProjectsMenu.mjs +46 -13
- package/dist/navigationpanel/editorpanel/ApplySemanticLayout.mjs +3 -4
- package/dist/navigationpanel/editorpanel/CenterCamera.mjs +2 -3
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.mjs +3 -4
- package/dist/navigationpanel/editorpanel/EditorPanel.mjs +4 -4
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.mjs +11 -13
- package/dist/navigationpanel/editorpanel/ToggleReadonly.mjs +2 -3
- package/dist/navigationpanel/editorpanel/_common.mjs +1 -2
- package/dist/navigationpanel/editorpanel/styles.mjs +1 -2
- package/dist/navigationpanel/hooks.mjs +1 -2
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.mjs +5 -6
- package/dist/navigationpanel/walkthrough/DynamicViewControls.mjs +7 -9
- package/dist/navigationpanel/walkthrough/DynamicViewModeSwitcher.mjs +1 -2
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.mjs +3 -4
- package/dist/navigationpanel/windows/ViewDetailsWindow.mjs +44 -38
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowFork.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowGuide.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.mjs +1 -2
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCaretRightFilled.mjs +16 -0
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCornerDownRight.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconId.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStop.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRepeat.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRobot.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSparkles.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs +1 -2
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.49.0_react@19.3.0 → @tabler_icons-react@3.49.0_react@19.3.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.mjs +1 -2
- package/dist/overlays/Overlays.mjs +4 -5
- package/dist/overlays/element-details/ElementDetails.mjs +2 -3
- package/dist/overlays/element-details/ElementDetailsCard.css.mjs +148 -102
- package/dist/overlays/element-details/ElementDetailsCard.mjs +503 -256
- package/dist/overlays/element-details/MetadataValue.mjs +115 -222
- package/dist/overlays/element-details/PropertiesSplit.mjs +162 -0
- package/dist/overlays/element-details/TabPanelDeployments.css.mjs +1 -2
- package/dist/overlays/element-details/TabPanelDeployments.mjs +5 -6
- package/dist/overlays/element-details/TabPanelRelationships.css.mjs +1 -2
- package/dist/overlays/element-details/TabPanelRelationships.mjs +6 -7
- package/dist/overlays/element-details/TabPanelStructure.css.mjs +1 -2
- package/dist/overlays/element-details/TabPanelStructure.mjs +3 -4
- package/dist/overlays/element-details/TabPanelViews.mjs +51 -0
- package/dist/overlays/element-details/actor.d.mts +6 -7
- package/dist/overlays/element-details/actor.mjs +31 -15
- package/dist/overlays/element-details/actorContext.mjs +1 -2
- package/dist/overlays/element-details/subject.d.mts +12 -0
- package/dist/overlays/element-details/subject.mjs +15 -0
- package/dist/overlays/hooks.mjs +1 -2
- package/dist/overlays/overlay/Overlay.d.mts +1 -3
- package/dist/overlays/overlay/Overlay.mjs +4 -5
- package/dist/overlays/overlaysActor.d.mts +12 -5
- package/dist/overlays/overlaysActor.mjs +24 -6
- package/dist/overlays/relationship-details/RelationshipDetails.mjs +16 -8
- package/dist/overlays/relationship-details/SelectEdge.css.mjs +1 -2
- package/dist/overlays/relationship-details/SelectEdge.mjs +3 -4
- package/dist/overlays/relationship-details/_types.d.mts +6 -4
- package/dist/overlays/relationship-details/actor.d.mts +0 -2
- package/dist/overlays/relationship-details/actor.mjs +2 -3
- package/dist/overlays/relationship-details/compute.mjs +1 -2
- package/dist/overlays/relationship-details/custom/ElementActions.mjs +6 -7
- package/dist/overlays/relationship-details/custom/edgeTypes.mjs +8 -13
- package/dist/overlays/relationship-details/custom/nodeTypes.mjs +8 -6
- package/dist/overlays/relationship-details/hooks.mjs +1 -2
- package/dist/overlays/relationship-details/layout-to-xyflow.mjs +3 -3
- package/dist/overlays/relationship-details/layout.d.mts +1 -3
- package/dist/overlays/relationship-details/layout.mjs +39 -13
- package/dist/overlays/relationships-browser/RelationshipsBrowser.mjs +12 -13
- package/dist/overlays/relationships-browser/SelectElement.css.mjs +1 -2
- package/dist/overlays/relationships-browser/SelectElement.mjs +4 -5
- package/dist/overlays/relationships-browser/_types.d.mts +6 -4
- package/dist/overlays/relationships-browser/actor.d.mts +0 -2
- package/dist/overlays/relationships-browser/actor.mjs +4 -5
- package/dist/overlays/relationships-browser/const.mjs +1 -2
- package/dist/overlays/relationships-browser/custom/ElementActions.mjs +6 -7
- package/dist/overlays/relationships-browser/custom/EmptyNode.mjs +1 -2
- package/dist/overlays/relationships-browser/custom/edgeTypes.mjs +14 -17
- package/dist/overlays/relationships-browser/custom/nodeTypes.mjs +12 -7
- package/dist/overlays/relationships-browser/hooks.mjs +1 -2
- package/dist/overlays/relationships-browser/layout.d.mts +1 -3
- package/dist/overlays/relationships-browser/layout.mjs +73 -24
- package/dist/overlays/relationships-browser/useViewToNodesEdges.mjs +2 -2
- package/dist/overlays/types.d.mts +5 -7
- package/dist/projects-overview/ProjectsOverview.d.mts +1 -3
- package/dist/projects-overview/ProjectsOverview.mjs +1 -2
- package/dist/projects-overview/ProjectsOverviewXY.d.mts +1 -3
- package/dist/projects-overview/ProjectsOverviewXY.mjs +3 -4
- package/dist/projects-overview/actor.mjs +1 -2
- package/dist/projects-overview/context.mjs +1 -2
- package/dist/projects-overview/custom/edgeTypes.mjs +2 -3
- package/dist/projects-overview/custom/nodeTypes.mjs +3 -4
- package/dist/projects-overview/hooks.mjs +1 -2
- package/dist/projects-overview/layouted-to-xyflow.mjs +1 -2
- package/dist/projects-overview/panel/ProjectsOverviewPanel.mjs +1 -2
- package/dist/projects-overview/persistence.mjs +1 -2
- package/dist/search/Search.d.mts +1 -3
- package/dist/search/Search.mjs +13 -12
- package/dist/search/SearchContext.d.mts +1 -3
- package/dist/search/SearchContext.mjs +1 -2
- package/dist/search/XStateSearchAdapter.mjs +1 -2
- package/dist/search/components/ElementsColumn.css.mjs +1 -2
- package/dist/search/components/ElementsColumn.mjs +31 -9
- package/dist/search/components/PickView.mjs +3 -4
- package/dist/search/components/SearchByTags.mjs +3 -4
- package/dist/search/components/SearchInput.mjs +3 -4
- package/dist/search/components/ViewsColum.mjs +20 -20
- package/dist/search/components/ViewsColumn.css.mjs +1 -2
- package/dist/search/components/_shared.css.mjs +1 -2
- package/dist/search/components/styles.css.mjs +1 -2
- package/dist/search/components/utils.mjs +32 -3
- package/dist/search/fuzzy.mjs +27 -0
- package/dist/search/hooks.mjs +1 -2
- package/dist/search/metadata-search.mjs +32 -0
- package/dist/search/searchActor.d.mts +1 -3
- package/dist/search/searchActor.mjs +1 -2
- package/dist/shadowroot/ShadowRoot.mjs +8 -7
- package/dist/styles-font2.mjs +1 -2
- package/dist/styles-min.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles2.mjs +2 -3
- package/dist/utils/defineActors.d.mts +1 -3
- package/dist/utils/defineActors.mjs +1 -2
- package/dist/utils/edge-corners.mjs +2 -3
- package/dist/utils/edge-endpoints.mjs +1 -2
- package/dist/utils/edge-label.mjs +1 -2
- package/dist/utils/edge-path-through-label.mjs +51 -0
- package/dist/utils/edge-path.mjs +1 -2
- package/dist/utils/edge-tracks.mjs +1 -2
- package/dist/utils/filterProjects.d.mts +10 -0
- package/dist/utils/filterProjects.mjs +36 -0
- package/dist/utils/index.mjs +1 -0
- package/dist/utils/measure-edge-label.mjs +129 -0
- package/dist/utils/readableText.mjs +1 -2
- package/dist/utils/roundDpr.mjs +1 -2
- package/dist/utils/search-event.mjs +17 -0
- package/dist/utils/view-bounds.d.mts +1 -3
- package/dist/utils/view-bounds.mjs +1 -2
- package/dist/utils/view-routing.mjs +1 -2
- package/dist/utils/xyflow.mjs +2 -3
- package/dist/webcomponent/defineWebcomponent.d.mts +12 -0
- package/dist/webcomponent/defineWebcomponent.mjs +93 -0
- package/package.json +29 -26
- package/panda.buildinfo.json +211 -208
- package/styles-min.css +1 -1
- package/styles.css +1 -1
- package/dist/base-primitives/memoNode.mjs +0 -23
- package/dist/context/DiagramEventHandlers.d.mts +0 -11
- package/dist/custom/hooks.d.mts +0 -17
- package/dist/hooks/useSetState.d.mts +0 -10
- package/dist/likec4diagram/custom/edges/edges.css.mjs +0 -50
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.mjs +0 -69
- package/dist/navigationpanel/comparepanel/ComparePanelControls.mjs +0 -56
- package/dist/navigationpanel/styles.css.mjs +0 -23
- package/src/styles-font.css +0 -114
- package/src/styles-min.css +0 -2
- package/src/styles-xyflow.css +0 -1
- package/src/styles.css +0 -3
|
@@ -4,12 +4,12 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
import { EdgeLabelRenderer } from "@xyflow/react";
|
|
5
5
|
import { isNumber } from "remeda";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/base-primitives/edge/EdgeLabelContainer.tsx
|
|
8
8
|
const toCssVarValue = (value) => {
|
|
9
9
|
if (value === void 0) return "";
|
|
10
10
|
return isNumber(value) ? `${Math.trunc(value)}px` : value;
|
|
11
11
|
};
|
|
12
|
-
function EdgeLabelContainer({ edgeProps: { id, selected = false, data: { hovered: isHovered = false, active: isActive = false, dimmed: isDimmed = false, labelBBox, color
|
|
12
|
+
function EdgeLabelContainer({ edgeProps: { id, selected = false, data: { hovered: isHovered = false, active: isActive = false, dimmed: isDimmed = false, labelBBox, color }, animated }, labelPosition: labelXY, className, style: contentStyle, children, ...rest }) {
|
|
13
13
|
let labelX = labelXY?.x ?? labelBBox?.x;
|
|
14
14
|
let labelY = labelXY?.y ?? labelBBox?.y;
|
|
15
15
|
if (labelX === void 0 || labelY === void 0) return null;
|
|
@@ -36,5 +36,4 @@ function EdgeLabelContainer({ edgeProps: { id, selected = false, data: { hovered
|
|
|
36
36
|
}, id) });
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
//#endregion
|
|
40
39
|
export { EdgeLabelContainer };
|
|
@@ -2,7 +2,7 @@ import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { nonexhaustive } from "@likec4/core";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/base-primitives/edge/EdgeMarkers.tsx
|
|
6
6
|
const Open = (props) => /* @__PURE__ */ jsx("marker", {
|
|
7
7
|
viewBox: "-4 -4 14 16",
|
|
8
8
|
refX: 5,
|
|
@@ -159,5 +159,4 @@ function arrowTypeToMarker(arrowType) {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
//#endregion
|
|
163
162
|
export { EdgeMarkers, arrowTypeToMarker };
|
|
@@ -5,7 +5,7 @@ import { forwardRef } from "react";
|
|
|
5
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { edgePath } from "@likec4/styles/recipes";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/base-primitives/edge/EdgePath.tsx
|
|
9
9
|
const EdgePath = forwardRef(({ edgeProps: { id, data: { line, dir, tail, head }, selectable = true, style, interactionWidth }, isDragging = false, onEdgePointerDown, strokeWidth, svgPath }, svgPathRef) => {
|
|
10
10
|
let markerStartName = arrowTypeToMarker(tail);
|
|
11
11
|
let markerEndName = arrowTypeToMarker(head ?? "normal");
|
|
@@ -63,5 +63,4 @@ const EdgePath = forwardRef(({ edgeProps: { id, data: { line, dir, tail, head },
|
|
|
63
63
|
});
|
|
64
64
|
EdgePath.displayName = "EdgePath";
|
|
65
65
|
|
|
66
|
-
//#endregion
|
|
67
66
|
export { EdgePath };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { MouseEvent, ReactNode } from "react";
|
|
3
|
-
//#region src/base-primitives/element/ElementActionButtons.d.ts
|
|
4
3
|
type ElementActionButtonsProps = {
|
|
5
4
|
selected?: boolean;
|
|
6
5
|
data: {
|
|
@@ -42,4 +41,4 @@ export declare namespace ElementActionButtons {
|
|
|
42
41
|
onClick: (e: MouseEvent) => void;
|
|
43
42
|
};
|
|
44
43
|
}
|
|
45
|
-
|
|
44
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconBolt from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
2
|
+
import IconBolt from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.mjs";
|
|
3
3
|
import { stopPropagation } from "../../utils/xyflow.mjs";
|
|
4
4
|
import { cx } from "@likec4/styles/css";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -8,7 +8,7 @@ import { useId } from "@mantine/hooks";
|
|
|
8
8
|
import * as m from "motion/react-m";
|
|
9
9
|
import { actionBtn, actionButtons } from "@likec4/styles/recipes";
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// src/base-primitives/element/ElementActionButtons.tsx
|
|
12
12
|
const variants = {
|
|
13
13
|
normal: {
|
|
14
14
|
originY: 0,
|
|
@@ -96,5 +96,4 @@ function ElementActionButtons({ selected = false, data: { hovered: isHovered = f
|
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
//#endregion
|
|
100
99
|
export { ElementActionButtons };
|
|
@@ -2,7 +2,6 @@ import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
|
2
2
|
import { CSSProperties, DetailedHTMLProps, HTMLAttributes } from "react";
|
|
3
3
|
import { ComputedNodeStyle, ElementShape, MarkdownOrString, NodeId } from "@likec4/core";
|
|
4
4
|
import { Color } from "@likec4/core/types";
|
|
5
|
-
//#region src/base-primitives/element/ElementData.d.ts
|
|
6
5
|
type RequiredData = {
|
|
7
6
|
id: NodeId;
|
|
8
7
|
title: string;
|
|
@@ -69,4 +68,4 @@ export declare namespace ElementData {
|
|
|
69
68
|
}, SlotProps> & SlotProps)) & import("react").RefAttributes<HTMLDivElement>>;
|
|
70
69
|
var Description: import("react").ForwardRefExoticComponent<SlotProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
71
70
|
}
|
|
72
|
-
|
|
71
|
+
export {};
|
|
@@ -9,7 +9,7 @@ import { isTruthy } from "remeda";
|
|
|
9
9
|
import { RichText } from "@likec4/core/types";
|
|
10
10
|
import { elementNodeData } from "@likec4/styles/recipes";
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// src/base-primitives/element/ElementData.tsx
|
|
13
13
|
/**
|
|
14
14
|
* Resolve the icon color based on the node's style and color.
|
|
15
15
|
*
|
|
@@ -131,5 +131,4 @@ ElementData.Title = Title;
|
|
|
131
131
|
ElementData.Technology = Technology;
|
|
132
132
|
ElementData.Description = Description;
|
|
133
133
|
|
|
134
|
-
//#endregion
|
|
135
134
|
export { ElementData };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { BaseNodeData } from "../../base/types.mjs";
|
|
3
3
|
import { MouseEvent, ReactNode } from "react";
|
|
4
|
-
//#region src/base-primitives/element/ElementDetailsButton.d.ts
|
|
5
4
|
type ElementDetailsButtonProps = {
|
|
6
5
|
selected?: boolean;
|
|
7
6
|
data: BaseNodeData;
|
|
@@ -10,4 +9,4 @@ type ElementDetailsButtonProps = {
|
|
|
10
9
|
onClick: (e: MouseEvent) => void;
|
|
11
10
|
};
|
|
12
11
|
export declare function ElementDetailsButton({ selected, data: { hovered: isHovered }, icon, ariaLabel, onClick }: ElementDetailsButtonProps): import("react").JSX.Element;
|
|
13
|
-
|
|
12
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconId from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
2
|
+
import IconId from "../../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconId.mjs";
|
|
3
3
|
import { stopPropagation } from "../../utils/xyflow.mjs";
|
|
4
4
|
import { css, cx } from "@likec4/styles/css";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -8,7 +8,7 @@ import { Box as Box$1 } from "@likec4/styles/jsx";
|
|
|
8
8
|
import * as m from "motion/react-m";
|
|
9
9
|
import { actionBtn } from "@likec4/styles/recipes";
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// src/base-primitives/element/ElementDetailsButton.tsx
|
|
12
12
|
const variants = {
|
|
13
13
|
normal: {
|
|
14
14
|
originX: .4,
|
|
@@ -83,5 +83,4 @@ function ElementDetailsButton({ selected = false, data: { hovered: isHovered = f
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
//#endregion
|
|
87
86
|
export { ElementDetailsButton };
|
|
@@ -2,7 +2,6 @@ import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
|
2
2
|
import { BaseNodePropsWithData } from "../../base/types.mjs";
|
|
3
3
|
import { MotionNodeLayoutOptions, MotionStyle } from "motion/react";
|
|
4
4
|
import { Color, ComputedNodeStyle, ElementShape } from "@likec4/core/types";
|
|
5
|
-
//#region src/base-primitives/element/ElementNodeContainer.d.ts
|
|
6
5
|
type RequiredData = {
|
|
7
6
|
color: Color;
|
|
8
7
|
shape: ElementShape;
|
|
@@ -20,4 +19,4 @@ export declare const ElementNodeContainer: import("react").ForwardRefExoticCompo
|
|
|
20
19
|
} & MotionNodeLayoutOptions & {
|
|
21
20
|
children?: import("react").ReactNode | undefined;
|
|
22
21
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
|
-
|
|
22
|
+
export {};
|
|
@@ -6,7 +6,7 @@ import { ensureSizes } from "@likec4/core/types";
|
|
|
6
6
|
import * as m from "motion/react-m";
|
|
7
7
|
import { elementNode } from "@likec4/styles/recipes";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/base-primitives/element/ElementNodeContainer.tsx
|
|
10
10
|
const variants = {
|
|
11
11
|
normal: { scale: 1 },
|
|
12
12
|
hovered: { scale: 1.05 },
|
|
@@ -17,7 +17,7 @@ const variants = {
|
|
|
17
17
|
* Top-level primitive to compose leaf nodes renderers.
|
|
18
18
|
* This container provides the state via data-* attributes
|
|
19
19
|
*/
|
|
20
|
-
const ElementNodeContainer = forwardRef(({ nodeProps: { selected
|
|
20
|
+
const ElementNodeContainer = forwardRef(({ nodeProps: { selected, selectable, data: { hovered: isHovered = false, dimmed: isDimmed = false, ...data } }, className, style, children, ...rest }, ref) => {
|
|
21
21
|
let variant;
|
|
22
22
|
switch (true) {
|
|
23
23
|
case isHovered:
|
|
@@ -54,5 +54,4 @@ const ElementNodeContainer = forwardRef(({ nodeProps: { selected = false, select
|
|
|
54
54
|
});
|
|
55
55
|
ElementNodeContainer.displayName = "ElementNodeContainer";
|
|
56
56
|
|
|
57
|
-
//#endregion
|
|
58
57
|
export { ElementNodeContainer };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { Customizable } from "../../customization/customization-types.mjs";
|
|
3
|
+
import { ComputedNodeStyle, ElementShape } from "@likec4/core/types";
|
|
4
4
|
type RequiredData = {
|
|
5
|
-
shape: ElementShape
|
|
5
|
+
shape: ElementShape;
|
|
6
6
|
width: number;
|
|
7
7
|
height: number;
|
|
8
8
|
style?: ComputedNodeStyle;
|
|
9
9
|
};
|
|
10
|
-
type ElementShapeProps = {
|
|
10
|
+
export type ElementShapeProps = {
|
|
11
11
|
data: RequiredData;
|
|
12
12
|
width?: number | undefined;
|
|
13
13
|
height?: number | undefined;
|
|
@@ -16,6 +16,11 @@ type ElementShapeProps = {
|
|
|
16
16
|
*/
|
|
17
17
|
showSelectionOutline?: boolean | undefined;
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Shape of the element node.
|
|
21
|
+
*
|
|
22
|
+
* Customizable slot `ElementShape`: the replacement is rendered for every node
|
|
23
|
+
* (and wherever else the shape is shown), so keep it cheap and memoize heavy computations.
|
|
24
|
+
*/
|
|
25
|
+
declare const ElementShape$1: Customizable<({ data, width, height, showSelectionOutline }: ElementShapeProps) => import("react").JSX.Element, "ElementShape">;
|
|
21
26
|
export { ElementShape$1 as ElementShape };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { customizable } from "../../customization/customizable.mjs";
|
|
2
3
|
import { roundDpr } from "../../utils/roundDpr.mjs";
|
|
3
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
5
|
import { nonexhaustive } from "@likec4/core";
|
|
5
6
|
import { elementShapeRecipe } from "@likec4/styles/recipes";
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
// src/base-primitives/element/ElementShape.tsx
|
|
8
9
|
function cylinderSVGPath(diameter, height, tilt = .07) {
|
|
9
10
|
const radius = Math.round(diameter / 2);
|
|
10
11
|
const rx = radius;
|
|
@@ -415,7 +416,13 @@ function ShapeSvgOutline({ shape, w, h }) {
|
|
|
415
416
|
children: svg
|
|
416
417
|
});
|
|
417
418
|
}
|
|
418
|
-
|
|
419
|
+
/**
|
|
420
|
+
* Shape of the element node.
|
|
421
|
+
*
|
|
422
|
+
* Customizable slot `ElementShape`: the replacement is rendered for every node
|
|
423
|
+
* (and wherever else the shape is shown), so keep it cheap and memoize heavy computations.
|
|
424
|
+
*/
|
|
425
|
+
const ElementShape$1 = customizable("ElementShape")(function ElementShape({ data, width, height, showSelectionOutline = true }) {
|
|
419
426
|
let w = !!width && width > 10 ? width : data.width;
|
|
420
427
|
let h = !!height && height > 10 ? height : data.height;
|
|
421
428
|
const isMultiple = data.style?.multiple ?? false;
|
|
@@ -462,8 +469,6 @@ function ElementShape$1({ data, width, height, showSelectionOutline = true }) {
|
|
|
462
469
|
h
|
|
463
470
|
})]
|
|
464
471
|
})] });
|
|
465
|
-
}
|
|
466
|
-
__name(ElementShape$1, "ElementShape");
|
|
472
|
+
});
|
|
467
473
|
|
|
468
|
-
//#endregion
|
|
469
474
|
export { ElementShape$1 as ElementShape };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { __name } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { BaseNodePropsWithData } from "../../base/types.mjs";
|
|
3
|
-
import "react";
|
|
4
|
-
|
|
3
|
+
import { ComponentPropsWithoutRef } from "react";
|
|
4
|
+
export type ElementTagProps = {
|
|
5
|
+
tag: string;
|
|
6
|
+
cursor?: 'pointer' | 'default';
|
|
7
|
+
} & Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'color' | 'translate'>;
|
|
5
8
|
export declare const ElementTag: import("react").ForwardRefExoticComponent<{
|
|
6
9
|
tag: string;
|
|
7
10
|
cursor?: "pointer" | "default";
|
|
@@ -16,4 +19,4 @@ export type ElementTagsProps = BaseNodePropsWithData<Data> & {
|
|
|
16
19
|
onTagMouseLeave?: (tag: `#${string}`) => void;
|
|
17
20
|
};
|
|
18
21
|
export declare const ElementTags: import("react").MemoExoticComponent<({ id, data: { tags, width, hovered }, onTagClick, onTagMouseEnter, onTagMouseLeave }: ElementTagsProps) => import("react").JSX.Element | null>;
|
|
19
|
-
|
|
22
|
+
export {};
|
|
@@ -12,7 +12,7 @@ import { Box, HStack } from "@likec4/styles/jsx";
|
|
|
12
12
|
import { hstack } from "@likec4/styles/patterns";
|
|
13
13
|
import { likec4tag } from "@likec4/styles/recipes";
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
// src/base-primitives/element/ElementTags.tsx
|
|
16
16
|
const ElementTag = forwardRef(({ tag, cursor, className, style, ...props }, ref) => {
|
|
17
17
|
return /* @__PURE__ */ jsxs(Box, {
|
|
18
18
|
ref,
|
|
@@ -96,8 +96,7 @@ function WithElementTags({ id, tags, width, hovered, onTagClick, onTagMouseEnter
|
|
|
96
96
|
transition: "fast"
|
|
97
97
|
})
|
|
98
98
|
}, id + "#" + tag))
|
|
99
|
-
}), /* @__PURE__ */ jsx(NodeToolbar, {
|
|
100
|
-
isVisible,
|
|
99
|
+
}), isVisible && /* @__PURE__ */ jsx(NodeToolbar, {
|
|
101
100
|
align: "start",
|
|
102
101
|
position: Position.Bottom,
|
|
103
102
|
children: /* @__PURE__ */ jsx(HStack, {
|
|
@@ -133,5 +132,4 @@ function WithElementTags({ id, tags, width, hovered, onTagClick, onTagMouseEnter
|
|
|
133
132
|
})] });
|
|
134
133
|
}
|
|
135
134
|
|
|
136
|
-
//#endregion
|
|
137
135
|
export { ElementTag, ElementTags };
|
|
@@ -12,10 +12,10 @@ import { ElementActionButtons } from "./element/ElementActionButtons.mjs";
|
|
|
12
12
|
import { ElementData } from "./element/ElementData.mjs";
|
|
13
13
|
import { ElementDetailsButton } from "./element/ElementDetailsButton.mjs";
|
|
14
14
|
import { ElementNodeContainer } from "./element/ElementNodeContainer.mjs";
|
|
15
|
-
import { ElementShape } from "./element/ElementShape.mjs";
|
|
16
|
-
import { ElementTag, ElementTags, ElementTagsProps } from "./element/ElementTags.mjs";
|
|
15
|
+
import { ElementShape, ElementShapeProps } from "./element/ElementShape.mjs";
|
|
16
|
+
import { ElementTag, ElementTagProps, ElementTags, ElementTagsProps } from "./element/ElementTags.mjs";
|
|
17
17
|
import { Markdown } from "./Markdown.mjs";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
18
|
+
import "./memoEdge.mjs";
|
|
19
|
+
import "./memoNode.mjs";
|
|
20
20
|
import { DefaultHandles } from "./NodeHandles.mjs";
|
|
21
|
-
export { CompoundActionButton, CompoundDetailsButton, CompoundNodeContainer, CompoundTitle, DefaultHandles, ElementActionButtons, ElementData, ElementDetailsButton, ElementNodeContainer, ElementTag,
|
|
21
|
+
export { CompoundActionButton, CompoundDetailsButton, CompoundNodeContainer, CompoundTitle, DefaultHandles, ElementActionButtons, ElementData, ElementDetailsButton, ElementNodeContainer, ElementShape, type ElementShapeProps, ElementTag, type ElementTagProps, ElementTags, type ElementTagsProps, Markdown };
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { FunctionComponent } from "react";
|
|
4
|
-
//#region src/base-primitives/memoEdge.d.ts
|
|
5
|
-
export declare function memoEdge<P extends BaseEdgeProps>(Edge: FunctionComponent<P>): FunctionComponent<P>;
|
|
6
|
-
//#endregion
|
|
1
|
+
import "../base/types.mjs";
|
|
2
|
+
import { FunctionComponent } from "react";
|
|
@@ -2,7 +2,7 @@ import { __name } from "../_virtual/_rolldown/runtime.mjs";
|
|
|
2
2
|
import { memo } from "react";
|
|
3
3
|
import { deepEqual } from "fast-equals";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/base-primitives/memoEdge.ts
|
|
6
6
|
const isSame = (a, b) => {
|
|
7
7
|
return Math.abs(a - b) < 2.5;
|
|
8
8
|
};
|
|
@@ -13,5 +13,4 @@ function memoEdge(Edge) {
|
|
|
13
13
|
return Memo;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
//#endregion
|
|
17
16
|
export { memoEdge };
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { FunctionComponent } from "react";
|
|
4
|
-
//#region src/base-primitives/memoNode.d.ts
|
|
5
|
-
export declare function memoNode<P extends BaseNodeProps>(Node: FunctionComponent<P>, displayName?: string): FunctionComponent<P>;
|
|
6
|
-
//#endregion
|
|
1
|
+
import "../base/types.mjs";
|
|
2
|
+
import { FunctionComponent } from "react";
|
|
@@ -2,10 +2,9 @@ import { __name } from "../_virtual/_rolldown/runtime.mjs";
|
|
|
2
2
|
import { isCssProperty, styled } from "@likec4/styles/jsx";
|
|
3
3
|
import { emptyBox } from "@likec4/styles/recipes";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/components/EmptyBox.tsx
|
|
6
6
|
const EmptyBox = styled("div", emptyBox, { shouldForwardProp(prop, variantKeys) {
|
|
7
7
|
return !variantKeys.includes(prop) && !isCssProperty(prop);
|
|
8
8
|
} });
|
|
9
9
|
|
|
10
|
-
//#endregion
|
|
11
10
|
export { EmptyBox };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { __name } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { ErrorBoundaryProps, FallbackProps } from "react-error-boundary";
|
|
3
|
-
//#region src/components/ErrorFallback.d.ts
|
|
4
3
|
export declare function ErrorFallback({ error, resetErrorBoundary }: FallbackProps): import("react").JSX.Element;
|
|
5
|
-
declare function ErrorBoundary$1(props: Pick<ErrorBoundaryProps, 'onReset' | 'onError' | 'children'>
|
|
6
|
-
|
|
4
|
+
declare function ErrorBoundary$1({ variant, ...props }: Pick<ErrorBoundaryProps, 'onReset' | 'onError' | 'children'> & {
|
|
5
|
+
/** @default 'dialog' */
|
|
6
|
+
variant?: 'dialog' | 'message';
|
|
7
|
+
}): import("react").JSX.Element;
|
|
7
8
|
export { ErrorBoundary$1 as ErrorBoundary };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __name } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconX from "../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
2
|
+
import IconX from "../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs";
|
|
3
3
|
import { css } from "@likec4/styles/css";
|
|
4
4
|
import { useRef } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -7,9 +7,8 @@ import { Button, ScrollAreaAutosize, Text, ThemeIcon } from "@mantine/core";
|
|
|
7
7
|
import { HStack, VStack } from "@likec4/styles/jsx";
|
|
8
8
|
import { ErrorBoundary } from "react-error-boundary";
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/components/ErrorFallback.tsx
|
|
11
11
|
function ErrorFallback({ error, resetErrorBoundary }) {
|
|
12
|
-
const errorString = error instanceof Error ? error.message : "Unknown error";
|
|
13
12
|
const dialogRef = useRef(null);
|
|
14
13
|
return /* @__PURE__ */ jsx("dialog", {
|
|
15
14
|
open: true,
|
|
@@ -47,62 +46,69 @@ function ErrorFallback({ error, resetErrorBoundary }) {
|
|
|
47
46
|
e.stopPropagation();
|
|
48
47
|
resetErrorBoundary();
|
|
49
48
|
},
|
|
50
|
-
children: /* @__PURE__ */
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
49
|
+
children: /* @__PURE__ */ jsx(ErrorFallbackMessage, {
|
|
50
|
+
error,
|
|
51
|
+
resetErrorBoundary
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function ErrorFallbackMessage({ error, resetErrorBoundary }) {
|
|
56
|
+
const errorString = error instanceof Error ? error.message : "Unknown error";
|
|
57
|
+
return /* @__PURE__ */ jsxs(HStack, {
|
|
58
|
+
p: "xl",
|
|
59
|
+
gap: "lg",
|
|
60
|
+
alignItems: "flex-start",
|
|
61
|
+
flexWrap: "nowrap",
|
|
62
|
+
children: [/* @__PURE__ */ jsx(ThemeIcon, {
|
|
63
|
+
size: "md",
|
|
64
|
+
radius: "xl",
|
|
65
|
+
color: "red",
|
|
66
|
+
children: /* @__PURE__ */ jsx(IconX, { style: {
|
|
67
|
+
width: 20,
|
|
68
|
+
height: 20
|
|
69
|
+
} })
|
|
70
|
+
}), /* @__PURE__ */ jsxs(VStack, {
|
|
71
|
+
flex: "1",
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ jsx(Text, {
|
|
74
|
+
fz: "md",
|
|
75
|
+
children: "Oops, something went wrong"
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ jsx(ScrollAreaAutosize, {
|
|
78
|
+
maw: "100%",
|
|
79
|
+
mah: 400,
|
|
80
|
+
type: "auto",
|
|
81
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
67
82
|
fz: "md",
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
75
|
-
fz: "md",
|
|
76
|
-
c: "red",
|
|
77
|
-
style: {
|
|
78
|
-
whiteSpace: "pre-wrap",
|
|
79
|
-
userSelect: "all"
|
|
80
|
-
},
|
|
81
|
-
children: errorString
|
|
82
|
-
})
|
|
83
|
-
}),
|
|
84
|
-
/* @__PURE__ */ jsxs(HStack, {
|
|
85
|
-
gap: "md",
|
|
86
|
-
mt: "md",
|
|
87
|
-
children: [/* @__PURE__ */ jsx(Button, {
|
|
88
|
-
size: "sm",
|
|
89
|
-
variant: "default",
|
|
90
|
-
onClick: () => resetErrorBoundary(),
|
|
91
|
-
children: "Reset"
|
|
92
|
-
}), /* @__PURE__ */ jsx(Text, {
|
|
93
|
-
fz: "sm",
|
|
94
|
-
c: "dimmed",
|
|
95
|
-
children: "See console for more details and report the issue if it persists."
|
|
96
|
-
})]
|
|
83
|
+
c: "red",
|
|
84
|
+
style: {
|
|
85
|
+
whiteSpace: "pre-wrap",
|
|
86
|
+
userSelect: "all"
|
|
87
|
+
},
|
|
88
|
+
children: errorString
|
|
97
89
|
})
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ jsxs(HStack, {
|
|
92
|
+
gap: "md",
|
|
93
|
+
mt: "md",
|
|
94
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
95
|
+
size: "sm",
|
|
96
|
+
variant: "default",
|
|
97
|
+
onClick: () => resetErrorBoundary(),
|
|
98
|
+
children: "Reset"
|
|
99
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
100
|
+
fz: "sm",
|
|
101
|
+
c: "dimmed",
|
|
102
|
+
children: "See console for more details and report the issue if it persists."
|
|
103
|
+
})]
|
|
104
|
+
})
|
|
105
|
+
]
|
|
106
|
+
})]
|
|
101
107
|
});
|
|
102
108
|
}
|
|
103
|
-
function ErrorBoundary$1(props) {
|
|
109
|
+
function ErrorBoundary$1({ variant = "dialog", ...props }) {
|
|
104
110
|
return /* @__PURE__ */ jsx(ErrorBoundary, {
|
|
105
|
-
FallbackComponent: ErrorFallback,
|
|
111
|
+
FallbackComponent: variant === "dialog" ? ErrorFallback : ErrorFallbackMessage,
|
|
106
112
|
onError: (err, info) => {
|
|
107
113
|
console.error(err, info);
|
|
108
114
|
},
|
|
@@ -111,5 +117,4 @@ function ErrorBoundary$1(props) {
|
|
|
111
117
|
}
|
|
112
118
|
__name(ErrorBoundary$1, "ErrorBoundary");
|
|
113
119
|
|
|
114
|
-
|
|
115
|
-
export { ErrorBoundary$1 as ErrorBoundary, ErrorFallback };
|
|
120
|
+
export { ErrorBoundary$1 as ErrorBoundary, ErrorFallback, ErrorFallbackMessage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __name } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { useId as useId$
|
|
2
|
+
import { useId as useId$2 } from "../hooks/useId.mjs";
|
|
3
3
|
import { useMantinePortalProps } from "../hooks/useMantinePortalProps.mjs";
|
|
4
4
|
import { cx } from "@likec4/styles/css";
|
|
5
5
|
import { useRef } from "react";
|
|
@@ -10,10 +10,10 @@ import { useSessionStorage } from "@mantine/hooks";
|
|
|
10
10
|
import { Box as Box$1 } from "@likec4/styles/jsx";
|
|
11
11
|
import { floatingWindow } from "@likec4/styles/recipes";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// src/components/FloatingWindow.tsx
|
|
14
14
|
function FloatingWindow$1({ children, windowId, onClose, dimensions, initialPosition, className, nonResizeable = false, ...props }) {
|
|
15
15
|
const portalProps = useMantinePortalProps();
|
|
16
|
-
const id = useId$
|
|
16
|
+
const id = useId$2();
|
|
17
17
|
const [windowState, setWindowState] = useSessionStorage({
|
|
18
18
|
key: `likec4:window:${windowId ?? id}`,
|
|
19
19
|
getInitialValueInEffect: false,
|
|
@@ -87,5 +87,4 @@ function FloatingWindow$1({ children, windowId, onClose, dimensions, initialPosi
|
|
|
87
87
|
}
|
|
88
88
|
__name(FloatingWindow$1, "FloatingWindow");
|
|
89
89
|
|
|
90
|
-
//#endregion
|
|
91
90
|
export { FloatingWindow$1 as FloatingWindow };
|
|
@@ -2,7 +2,7 @@ import { __name } from "../_virtual/_rolldown/runtime.mjs";
|
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/components/GithubIcon.tsx
|
|
6
6
|
const GithubIcon = forwardRef((props, ref) => /* @__PURE__ */ jsx("svg", {
|
|
7
7
|
height: "24",
|
|
8
8
|
width: "24",
|
|
@@ -13,5 +13,4 @@ const GithubIcon = forwardRef((props, ref) => /* @__PURE__ */ jsx("svg", {
|
|
|
13
13
|
children: /* @__PURE__ */ jsx("path", { d: "M12 1C5.923 1 1 5.923 1 12c0 4.867 3.149 8.979 7.521 10.436.55.096.756-.233.756-.522 0-.262-.013-1.128-.013-2.049-2.764.509-3.479-.674-3.699-1.292-.124-.317-.66-1.293-1.127-1.554-.385-.207-.936-.715-.014-.729.866-.014 1.485.797 1.691 1.128.99 1.663 2.571 1.196 3.204.907.096-.715.385-1.196.701-1.471-2.448-.275-5.005-1.224-5.005-5.432 0-1.196.426-2.186 1.128-2.956-.111-.275-.496-1.402.11-2.915 0 0 .921-.288 3.024 1.128a10.193 10.193 0 0 1 2.75-.371c.936 0 1.871.123 2.75.371 2.104-1.43 3.025-1.128 3.025-1.128.605 1.513.221 2.64.111 2.915.701.77 1.127 1.747 1.127 2.956 0 4.222-2.571 5.157-5.019 5.432.399.344.743 1.004.743 2.035 0 1.471-.014 2.654-.014 3.025 0 .289.206.632.756.522C19.851 20.979 23 16.854 23 12c0-6.077-4.922-11-11-11Z" })
|
|
14
14
|
}));
|
|
15
15
|
|
|
16
|
-
//#endregion
|
|
17
16
|
export { GithubIcon };
|
package/dist/components/Link.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __name } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import IconCheck from "../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
3
|
-
import IconCopy from "../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.
|
|
2
|
+
import IconCheck from "../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs";
|
|
3
|
+
import IconCopy from "../node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.mjs";
|
|
4
4
|
import { GithubIcon } from "./GithubIcon.mjs";
|
|
5
5
|
import { css, cx } from "@likec4/styles/css";
|
|
6
6
|
import { forwardRef } from "react";
|
|
@@ -8,7 +8,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
8
8
|
import { ActionIcon, Badge, CopyButton } from "@mantine/core";
|
|
9
9
|
import { styled } from "@likec4/styles/jsx";
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// src/components/Link.tsx
|
|
12
12
|
const GITHUB_PREFIX = "https://github.com/";
|
|
13
13
|
const Link = forwardRef(({ value, className, ...props }, ref) => {
|
|
14
14
|
const url = value.url.includes("://") ? value.url : new window.URL(value.url, window.location.href).toString();
|
|
@@ -99,5 +99,4 @@ const Link = forwardRef(({ value, className, ...props }, ref) => {
|
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
101
|
|
|
102
|
-
//#endregion
|
|
103
102
|
export { Link };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { __name } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { Customizable } from "../customization/customization-types.mjs";
|
|
2
3
|
import { SVGProps } from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const Logo: import("react").ForwardRefExoticComponent<Omit<LogoProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
6
|
-
export declare const LogoIcon: import("react").ForwardRefExoticComponent<Omit<LogoProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
7
|
-
//#endregion
|
|
4
|
+
export declare const Logo: Customizable<(props: SVGProps<SVGSVGElement>) => import("react").JSX.Element, "LogoSvg">;
|
|
5
|
+
export declare const LogoIcon: Customizable<(props: SVGProps<SVGSVGElement>) => import("react").JSX.Element, "LogoIconSvg">;
|