@tumaet/apollon 4.3.0 → 4.5.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 +206 -34
- package/dist/assets/style.css +1 -1
- package/dist/index.d.ts +897 -7
- package/dist/index.js +7988 -73543
- package/dist/internals.d.ts +868 -0
- package/dist/internals.js +40 -0
- package/dist/react/App.d.ts +9 -0
- package/dist/react/apollon-editor.d.ts +112 -0
- package/dist/react/components/AlignmentGuides.d.ts +1 -0
- package/dist/react/components/AssessmentSelectionDebug.d.ts +1 -0
- package/dist/react/components/CustomBackground.d.ts +1 -0
- package/dist/react/components/CustomControls.d.ts +1 -0
- package/dist/react/components/CustomMiniMap.d.ts +1 -0
- package/dist/{components → react/components}/Icon/ArrowBackIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/ArrowForwardIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/CheckIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/CrossIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/DeleteIcon.d.ts +1 -1
- package/dist/react/components/Icon/DragHandleIcon.d.ts +4 -0
- package/dist/{components → react/components}/Icon/EditIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/ExclamationIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/InfiniteIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/MapIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/PaintRollerIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/RedoIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/SouthEastArrowIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/SwapHorizIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/UndoIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/index.d.ts +1 -0
- package/dist/react/components/ReconnectConnectionLine.d.ts +2 -0
- package/dist/react/components/Sidebar.d.ts +1 -0
- package/dist/react/components/collaboration/CollaborationLayer.d.ts +25 -0
- package/dist/{components → react/components}/index.d.ts +2 -0
- package/dist/{components → react/components}/popovers/DefaultNodeGiveFeedbackPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/DefaultNodeSeeFeedbackPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/GiveFeedbackAssessmentBox.d.ts +1 -1
- package/dist/{components → react/components}/popovers/PopoverManager.d.ts +1 -1
- package/dist/{components → react/components}/popovers/SeeFeedbackAssessmentBox.d.ts +1 -1
- package/dist/{components → react/components}/popovers/bpmnDiagram/BPMNPoolEditPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/classDiagram/ClassGiveFeedbackPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/classDiagram/ClassSeeFeedbackPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/communicationDiagram/CommunicationObjectNameGiveFeedbackPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/communicationDiagram/CommunicationObjectNameSeeFeedbackPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/edgePopovers/EdgeGiveFeedbackPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/edgePopovers/EdgeSeeFeedbackPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/objectDiagram/ObjectGiveFeedbackPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/objectDiagram/ObjectSeeFeedbackPopover.d.ts +1 -1
- package/dist/react/components/react/Apollon.d.ts +45 -0
- package/dist/react/components/react/context.d.ts +16 -0
- package/dist/react/components/react/useApollonSubscription.d.ts +17 -0
- package/dist/{components → react/components}/svgs/edges/InlineMarker.d.ts +2 -2
- package/dist/react/components/svgs/nodes/CustomText.d.ts +10 -0
- package/dist/{components → react/components}/svgs/nodes/classDiagram/ClassSVG.d.ts +1 -1
- package/dist/{components → react/components}/svgs/nodes/classDiagram/ColorDescriptionSVG.d.ts +1 -1
- package/dist/{components → react/components}/svgs/nodes/communicationDiagram/CommunicationObjectNameSVG.d.ts +1 -1
- package/dist/{components → react/components}/svgs/nodes/objectDiagram/ObjectNameSVG.d.ts +1 -1
- package/dist/{components → react/components}/toolbars/edgeToolBar/CustomEdgeToolBar.d.ts +2 -0
- package/dist/{components → react/components}/ui/StyleEditor/ColorButtons.d.ts +1 -1
- package/dist/{constants.d.ts → react/constants.d.ts} +43 -6
- package/dist/react/edges/GenericEdge.d.ts +79 -0
- package/dist/{edges → react/edges}/edgeTypes/ActivityDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/BPMNDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/ClassDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/CommunicationDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/ComponentDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/DeploymentDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/FlowChartEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/ObjectDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/PetriNetEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/ReachabilityGraphArc.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/SfcDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/SyntaxTreeEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/UseCaseDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/labelTypes/EdgeEndLabels.d.ts +1 -1
- package/dist/{edges → react/edges}/labelTypes/EdgeIncludeExtendLabel.d.ts +1 -1
- package/dist/{edges → react/edges}/labelTypes/EdgeMiddleLabels.d.ts +2 -1
- package/dist/{edges → react/edges}/labelTypes/EdgeMultipleLabels.d.ts +2 -2
- package/dist/{edges → react/edges}/types.d.ts +34 -34
- package/dist/react/enums/index.d.ts +1 -0
- package/dist/react/hooks/useEdgeLineJumps.d.ts +25 -0
- package/dist/{hooks → react/hooks}/useHandleFinder.d.ts +1 -0
- package/dist/{hooks → react/hooks}/useReconnect.d.ts +1 -1
- package/dist/{hooks → react/hooks}/useStepPathEdge.d.ts +10 -6
- package/dist/react/hooks/useStraightPathEdge.d.ts +23 -0
- package/dist/react/index.d.ts +7 -0
- package/dist/react/internals.d.ts +5 -0
- package/dist/{nodes → react/nodes}/TitleAndDescriptionNode.d.ts +1 -1
- package/dist/{nodes → react/nodes}/activityDiagram/Activity.d.ts +1 -1
- package/dist/{nodes → react/nodes}/activityDiagram/ActivityActionNode.d.ts +1 -1
- package/dist/{nodes → react/nodes}/activityDiagram/ActivityFinalNode.d.ts +1 -1
- package/dist/{nodes → react/nodes}/activityDiagram/ActivityForkNode.d.ts +1 -1
- package/dist/{nodes → react/nodes}/activityDiagram/ActivityForkNodeHorizontal.d.ts +1 -1
- package/dist/{nodes → react/nodes}/activityDiagram/ActivityInitialNode.d.ts +1 -1
- package/dist/{nodes → react/nodes}/activityDiagram/ActivityMergeNode.d.ts +1 -1
- package/dist/{nodes → react/nodes}/activityDiagram/ActivityObjectNode.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNAnnotation.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNCallActivity.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNDataObject.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNDataStore.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNEndEvent.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNGateway.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNGroup.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNIntermediateEvent.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNPool.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNStartEvent.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNSubprocess.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNTask.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNTransaction.d.ts +1 -1
- package/dist/{nodes → react/nodes}/classDiagram/Class.d.ts +1 -1
- package/dist/{nodes → react/nodes}/classDiagram/ColorDescription.d.ts +1 -1
- package/dist/{nodes → react/nodes}/classDiagram/Package.d.ts +1 -1
- package/dist/{nodes → react/nodes}/communicationDiagram/CommunicationObjectName.d.ts +1 -1
- package/dist/{nodes → react/nodes}/componentDiagram/Component.d.ts +1 -1
- package/dist/{nodes → react/nodes}/componentDiagram/ComponentInterface.d.ts +1 -1
- package/dist/{nodes → react/nodes}/componentDiagram/ComponentSubsystem.d.ts +1 -1
- package/dist/{nodes → react/nodes}/deploymentDiagram/DeploymentArtifact.d.ts +1 -1
- package/dist/{nodes → react/nodes}/deploymentDiagram/DeploymentComponent.d.ts +1 -1
- package/dist/{nodes → react/nodes}/deploymentDiagram/DeploymentInterface.d.ts +1 -1
- package/dist/{nodes → react/nodes}/deploymentDiagram/DeploymentNode.d.ts +1 -1
- package/dist/{nodes → react/nodes}/flowchart/FlowchartDecision.d.ts +1 -1
- package/dist/{nodes → react/nodes}/flowchart/FlowchartFunctionCall.d.ts +1 -1
- package/dist/{nodes → react/nodes}/flowchart/FlowchartInputOutput.d.ts +1 -1
- package/dist/{nodes → react/nodes}/flowchart/FlowchartProcess.d.ts +1 -1
- package/dist/{nodes → react/nodes}/flowchart/FlowchartTerminal.d.ts +1 -1
- package/dist/{nodes → react/nodes}/objectDiagram/ObjectName.d.ts +1 -1
- package/dist/{nodes → react/nodes}/petriNetDiagram/PetriNetPlace.d.ts +1 -1
- package/dist/{nodes → react/nodes}/petriNetDiagram/PetriNetTransition.d.ts +1 -1
- package/dist/{nodes → react/nodes}/reachabilityGraphDiagram/ReachabilityGraphMarking.d.ts +1 -1
- package/dist/{nodes → react/nodes}/sfcDiagram/SfcActionTable.d.ts +1 -1
- package/dist/{nodes → react/nodes}/sfcDiagram/SfcJump.d.ts +1 -1
- package/dist/{nodes → react/nodes}/sfcDiagram/SfcStart.d.ts +1 -1
- package/dist/{nodes → react/nodes}/sfcDiagram/SfcStep.d.ts +1 -1
- package/dist/{nodes → react/nodes}/sfcDiagram/SfcTransitionBranch.d.ts +1 -1
- package/dist/{nodes → react/nodes}/syntaxTreeDiagram/SyntaxTreeNonterminal.d.ts +1 -1
- package/dist/{nodes → react/nodes}/syntaxTreeDiagram/SyntaxTreeTerminal.d.ts +1 -1
- package/dist/{nodes → react/nodes}/useCaseDiagram/UseCase.d.ts +1 -1
- package/dist/{nodes → react/nodes}/useCaseDiagram/UseCaseActor.d.ts +1 -1
- package/dist/{nodes → react/nodes}/useCaseDiagram/UseCaseSystem.d.ts +1 -1
- package/dist/react/nodes/wrappers/DefaultNodeWrapper.d.ts +49 -0
- package/dist/react/react.d.ts +4 -0
- package/dist/react/react.js +34580 -0
- package/dist/react/services/migration/EdgeTransformer.d.ts +11 -0
- package/dist/{store → react/store}/context.d.ts +3 -0
- package/dist/{store → react/store}/diagramStore.d.ts +8 -0
- package/dist/react/store/edgeGeometryStore.d.ts +18 -0
- package/dist/{store → react/store}/index.d.ts +2 -1
- package/dist/{store → react/store}/metadataStore.d.ts +12 -1
- package/dist/react/sync/headless.d.ts +16 -0
- package/dist/react/sync/yjsSync.d.ts +62 -0
- package/dist/{typings.d.ts → react/typings.d.ts} +44 -9
- package/dist/{utils → react/utils}/alignmentUtils.d.ts +2 -2
- package/dist/react/utils/collaboration.d.ts +10 -0
- package/dist/react/utils/edgeUtils.d.ts +167 -0
- package/dist/{utils → react/utils}/exportUtils.d.ts +0 -1
- package/dist/react/utils/geometry/bendHandles.d.ts +42 -0
- package/dist/{utils → react/utils}/index.d.ts +2 -2
- package/dist/{utils → react/utils}/interactiveUtils.d.ts +0 -1
- package/dist/{utils → react/utils}/nodeUtils.d.ts +1 -1
- package/dist/react/utils/storeUtils.d.ts +1 -0
- package/dist/react/utils/textUtils.d.ts +1 -0
- package/dist/yjsSync-hZSPGLEP.js +70938 -0
- package/package.json +95 -35
- package/dist/App.d.ts +0 -6
- package/dist/apollon-editor.d.ts +0 -56
- package/dist/components/AlignmentGuides.d.ts +0 -1
- package/dist/components/AssessmentSelectionDebug.d.ts +0 -1
- package/dist/components/CustomBackground.d.ts +0 -1
- package/dist/components/CustomControls.d.ts +0 -1
- package/dist/components/CustomMiniMap.d.ts +0 -1
- package/dist/components/Sidebar.d.ts +0 -1
- package/dist/components/debug/AssessmentSelectionDebug.d.ts +0 -6
- package/dist/components/svgs/nodes/CustomText.d.ts +0 -16
- package/dist/components/theme/styles.d.ts +0 -22
- package/dist/edges/GenericEdge.d.ts +0 -43
- package/dist/enums/ExportFileFormat.d.ts +0 -6
- package/dist/enums/index.d.ts +0 -2
- package/dist/hooks/useClipboard.d.ts +0 -11
- package/dist/hooks/useDragContext.d.ts +0 -0
- package/dist/hooks/useStraightPathEdge.d.ts +0 -31
- package/dist/initialElements.d.ts +0 -3
- package/dist/nodes/syntaxTreeDiagram/index.d.ts +0 -0
- package/dist/nodes/wrappers/DefaultNodeWrapper.d.ts +0 -33
- package/dist/sync/index.d.ts +0 -1
- package/dist/sync/yjsSyncClass.d.ts +0 -31
- package/dist/utils/edgeUtils.d.ts +0 -90
- package/dist/utils/labelUtils.d.ts +0 -16
- package/dist/utils/storeUtils.d.ts +0 -1
- package/dist/utils/textUtils.d.ts +0 -7
- package/dist/utils/v2Typings.d.ts +0 -127
- /package/dist/{components → react/components}/AssessmentSelectableElement.d.ts +0 -0
- /package/dist/{components → react/components}/DraggableGhost.d.ts +0 -0
- /package/dist/{components → react/components}/ScrollOverlay.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/DefaultNodeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/GenericPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/bpmnDiagram/BPMNEndEventEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/bpmnDiagram/BPMNGatewayEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/bpmnDiagram/BPMNIntermediateEventEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/bpmnDiagram/BPMNStartEventEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/bpmnDiagram/BPMNTaskEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/bpmnDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/classDiagram/ClassEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/classDiagram/EditableAttributesList.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/classDiagram/EditableMethodsList.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/classDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/communicationDiagram/CommunicationObjectNameEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/communicationDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/componentDiagram/ComponentEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/componentDiagram/ComponentSubsystemEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/componentDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/deploymentDiagram/DeploymentComponentEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/deploymentDiagram/DeploymentNodeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/deploymentDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/ActivityDiagramEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/BPMNDiagramEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/ClassDiagramEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/CommunicationDiagramEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/ComponentDiagramEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/DeploymentDiagramEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/FlowChartEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/ObjectDiagramEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/PetriNetEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/ReachabilityGraphEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/SyntaxTreeEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/UseCaseDiagramEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/objectDiagram/ObjectEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/objectDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/petriNetDiagram/PetriNetPlaceEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/petriNetDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/reachabilityGraphDiagram/ReachabilityGraphMarkingEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/reachabilityGraphDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/sfcDiagram/SfcActionTableEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/sfcDiagram/SfcEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/sfcDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/syntaxTreeDiagram/SyntaxTreeNonterminalEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/syntaxTreeDiagram/SyntaxTreeTerminalEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/syntaxTreeDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/types.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/AssessmentIcon.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/StyledElements.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/edges/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/HeaderSection.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/MultilineText.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/RowBlockSection.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/SeparationLine.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/StereotypeAndName.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/ActivityActionNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/ActivityFinalNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/ActivityForkNodeHorizontalSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/ActivityForkNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/ActivityInitialNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/ActivityMergeNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/ActivityObjectNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/ActivitySVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNAnnotationNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNDataObjectNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNDataStoreNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNEventNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNGatewayNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNGroupNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNPoolNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNSubprocessNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNTaskNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/classDiagram/PackageSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/classDiagram/TitleAndDescriptionSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/classDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/communicationDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/componentDiagram/ComponentInterfaceNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/componentDiagram/ComponentNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/componentDiagram/ComponentSubsystemNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/componentDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/deploymentDiagram/DeploymentArtifactSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/deploymentDiagram/DeploymentComponentSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/deploymentDiagram/DeploymentInterfaceSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/deploymentDiagram/DeploymentNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/deploymentDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/flowchartDiagram/FlowchartDecisionNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/flowchartDiagram/FlowchartFunctionCallNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/flowchartDiagram/FlowchartInputOutputNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/flowchartDiagram/FlowchartProcessNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/flowchartDiagram/FlowchartTerminalNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/flowchartDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/objectDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/petriNetDiagram/PetriNetPlaceSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/petriNetDiagram/PetriNetTransitionSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/petriNetDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/reachabilityGraphDiagram/ReachabilityGraphMarkingSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/reachabilityGraphDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/sfcDiagram/SfcActionTableNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/sfcDiagram/SfcJumpNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/sfcDiagram/SfcStartNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/sfcDiagram/SfcStepNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/sfcDiagram/SfcTransitionBranchNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/sfcDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/syntaxTreeDiagram/SyntaxTreeNonterminalNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/syntaxTreeDiagram/SyntaxTreeTerminalNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/syntaxTreeDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/useCaseDiagram/UseCaseActorNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/useCaseDiagram/UseCaseNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/useCaseDiagram/UseCaseSystemNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/useCaseDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/toolbars/NodeToolbar.d.ts +0 -0
- /package/dist/{components → react/components}/toolbars/edgeToolBar/index.d.ts +0 -0
- /package/dist/{components → react/components}/toolbars/index.d.ts +0 -0
- /package/dist/{components → react/components}/ui/DividerLine.d.ts +0 -0
- /package/dist/{components → react/components}/ui/HeaderSwitchElement.d.ts +0 -0
- /package/dist/{components → react/components}/ui/PrimaryButton.d.ts +0 -0
- /package/dist/{components → react/components}/ui/StereotypeButtonGroup.d.ts +0 -0
- /package/dist/{components → react/components}/ui/StyleEditor/EdgeStyleEditor.d.ts +0 -0
- /package/dist/{components → react/components}/ui/StyleEditor/NodeStyleEditor.d.ts +0 -0
- /package/dist/{components → react/components}/ui/StyleEditor/index.d.ts +0 -0
- /package/dist/{components → react/components}/ui/TextField.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Typography.d.ts +0 -0
- /package/dist/{components → react/components}/ui/index.d.ts +0 -0
- /package/dist/{components → react/components}/wrapper/AssessmentSelectableWrapper.d.ts +0 -0
- /package/dist/{components → react/components}/wrapper/FeedbackDropzone.d.ts +0 -0
- /package/dist/{components → react/components}/wrapper/index.d.ts +0 -0
- /package/dist/{edges → react/edges}/Connection.d.ts +0 -0
- /package/dist/{edges → react/edges}/EdgeProps.d.ts +0 -0
- /package/dist/{edges → react/edges}/edgeTypes/index.d.ts +0 -0
- /package/dist/{edges → react/edges}/index.d.ts +0 -0
- /package/dist/{enums → react/enums}/Quadrant.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/index.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useAssessmentSelection.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useConnect.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useDiagramModifiable.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useDragOver.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useDropFeedback.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useEdgeConfig.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useEdgeToolbar.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useEdges.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useElementInteractions.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useGoToNextAssessment.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useHandleDelete.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useHandleOnResize.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useIsOnlyThisElementSelected.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useKeyboardShortcuts.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useMessagePositioning.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useNodeDrag.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useNodeDragStop.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/usePaneClicked.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useSelectionForCopyPaste.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useViewPointCenter.d.ts +0 -0
- /package/dist/{logger.d.ts → react/logger.d.ts} +0 -0
- /package/dist/{nodes → react/nodes}/activityDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/bpmn/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/classDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/communicationDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/componentDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/deploymentDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/flowchart/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/objectDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/petriNetDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/reachabilityGraphDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/sfcDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/types.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/useCaseDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/wrappers/index.d.ts +0 -0
- /package/dist/{store → react/store}/alignmentGuidesStore.d.ts +0 -0
- /package/dist/{store → react/store}/assessmentSelectionStore.d.ts +0 -0
- /package/dist/{store → react/store}/popoverStore.d.ts +0 -0
- /package/dist/{styles → react/styles}/theme.d.ts +0 -0
- /package/dist/{sync → react/sync}/ydoc.d.ts +0 -0
- /package/dist/{types → react/types}/DiagramType.d.ts +0 -0
- /package/dist/{types → react/types}/SVG.d.ts +0 -0
- /package/dist/{types → react/types}/index.d.ts +0 -0
- /package/dist/{types → react/types}/locationPopover.d.ts +0 -0
- /package/dist/{types → react/types}/nodes/DropNodeDate.d.ts +0 -0
- /package/dist/{types → react/types}/nodes/NodeProps.d.ts +0 -0
- /package/dist/{types → react/types}/nodes/enums/ClassType.d.ts +0 -0
- /package/dist/{types → react/types}/nodes/enums/index.d.ts +0 -0
- /package/dist/{types → react/types}/nodes/index.d.ts +0 -0
- /package/dist/{utils → react/utils}/bpmnConstraints.d.ts +0 -0
- /package/dist/{utils → react/utils}/copyPasteUtils.d.ts +0 -0
- /package/dist/{utils → react/utils}/deepPartial.d.ts +0 -0
- /package/dist/{utils → react/utils}/diagramTypeUtils.d.ts +0 -0
- /package/dist/{utils → react/utils}/helpers.d.ts +0 -0
- /package/dist/{utils → react/utils}/layoutUtils.d.ts +0 -0
- /package/dist/{utils → react/utils}/pathParsing.d.ts +0 -0
- /package/dist/{utils → react/utils}/popoverUtils.d.ts +0 -0
- /package/dist/{utils → react/utils}/quadrantUtils.d.ts +0 -0
- /package/dist/{utils → react/utils}/requiredInterfaceUtils.d.ts +0 -0
- /package/dist/{utils → react/utils}/svgTextLayout.d.ts +0 -0
- /package/dist/{utils → react/utils}/v3Typings.d.ts +0 -0
- /package/dist/{utils → react/utils}/versionConverter.d.ts +0 -0
|
@@ -0,0 +1,868 @@
|
|
|
1
|
+
import { Edge } from '@xyflow/react';
|
|
2
|
+
import { EdgeProps } from '@xyflow/react';
|
|
3
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
4
|
+
import { Node as Node_2 } from '@xyflow/react';
|
|
5
|
+
import { NodeProps } from '@xyflow/react';
|
|
6
|
+
import { OnEdgesChange } from '@xyflow/react';
|
|
7
|
+
import { OnNodesChange } from '@xyflow/react';
|
|
8
|
+
import { StoreApi } from 'zustand';
|
|
9
|
+
import * as Y from 'yjs';
|
|
10
|
+
|
|
11
|
+
declare function Activity({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
12
|
+
|
|
13
|
+
declare function ActivityActionNode({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
14
|
+
|
|
15
|
+
declare function ActivityFinalNode({ id, width, height, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
16
|
+
|
|
17
|
+
declare function ActivityForkNode({ id, width, height, parentId, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
18
|
+
|
|
19
|
+
declare function ActivityForkNodeHorizontal({ id, width, height, parentId, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
20
|
+
|
|
21
|
+
declare function ActivityInitialNode({ id, width, height, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
22
|
+
|
|
23
|
+
declare function ActivityMergeNode({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
24
|
+
|
|
25
|
+
declare function ActivityObjectNode({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
26
|
+
|
|
27
|
+
declare type ApollonEdge = {
|
|
28
|
+
id: string;
|
|
29
|
+
source: string;
|
|
30
|
+
target: string;
|
|
31
|
+
type: DiagramEdgeType;
|
|
32
|
+
sourceHandle: string;
|
|
33
|
+
targetHandle: string;
|
|
34
|
+
data: OrthogonalEdgeData;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
declare enum ApollonMode {
|
|
38
|
+
Modelling = "Modelling",
|
|
39
|
+
Exporting = "Exporting",
|
|
40
|
+
Assessment = "Assessment"
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare type ApollonNode = {
|
|
44
|
+
id: string;
|
|
45
|
+
width: number;
|
|
46
|
+
height: number;
|
|
47
|
+
type: DiagramNodeType;
|
|
48
|
+
position: {
|
|
49
|
+
x: number;
|
|
50
|
+
y: number;
|
|
51
|
+
};
|
|
52
|
+
data: {
|
|
53
|
+
[key: string]: unknown;
|
|
54
|
+
};
|
|
55
|
+
parentId?: string;
|
|
56
|
+
measured: {
|
|
57
|
+
width: number;
|
|
58
|
+
height: number;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
declare enum ApollonView {
|
|
63
|
+
Modelling = "Modelling",
|
|
64
|
+
Exporting = "Exporting",
|
|
65
|
+
Highlight = "Highlight"
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare type Assessment = {
|
|
69
|
+
modelElementId: string;
|
|
70
|
+
elementType: string;
|
|
71
|
+
score: number;
|
|
72
|
+
feedback?: string;
|
|
73
|
+
dropInfo?: unknown;
|
|
74
|
+
label?: string;
|
|
75
|
+
labelColor?: string;
|
|
76
|
+
correctionStatus?: FeedbackCorrectionStatus;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
declare type BaseEdgeProps = ExtendedEdgeProps;
|
|
80
|
+
|
|
81
|
+
declare function BPMNAnnotation({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNAnnotationProps>>): JSX_2.Element | null;
|
|
82
|
+
|
|
83
|
+
declare type BPMNAnnotationProps = DefaultNodeProps;
|
|
84
|
+
|
|
85
|
+
declare function BPMNCallActivity({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNCallActivityProps>>): JSX_2.Element | null;
|
|
86
|
+
|
|
87
|
+
declare type BPMNCallActivityProps = DefaultNodeProps;
|
|
88
|
+
|
|
89
|
+
declare function BPMNDataObject({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNDataObjectProps>>): JSX_2.Element | null;
|
|
90
|
+
|
|
91
|
+
declare type BPMNDataObjectProps = DefaultNodeProps;
|
|
92
|
+
|
|
93
|
+
declare function BPMNDataStore({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNDataStoreProps>>): JSX_2.Element | null;
|
|
94
|
+
|
|
95
|
+
declare type BPMNDataStoreProps = DefaultNodeProps;
|
|
96
|
+
|
|
97
|
+
declare function BPMNEndEvent({ id, width, height, data, }: NodeProps<Node_2<BPMNEventProps>>): JSX_2.Element;
|
|
98
|
+
|
|
99
|
+
declare type BPMNEventProps = DefaultNodeProps & {
|
|
100
|
+
eventType: BPMNStartEventType;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
declare function BPMNGateway({ id, width, height, data, }: NodeProps<Node_2<BPMNGatewayProps>>): JSX_2.Element;
|
|
104
|
+
|
|
105
|
+
declare type BPMNGatewayProps = DefaultNodeProps & {
|
|
106
|
+
gatewayType: BPMNGatewayType;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
declare type BPMNGatewayType = "complex" | "event-based" | "exclusive" | "inclusive" | "parallel";
|
|
110
|
+
|
|
111
|
+
declare function BPMNGroup({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNGroupProps>>): JSX_2.Element | null;
|
|
112
|
+
|
|
113
|
+
declare type BPMNGroupProps = DefaultNodeProps;
|
|
114
|
+
|
|
115
|
+
declare function BPMNIntermediateEvent({ id, width, height, data, }: NodeProps<Node_2<BPMNEventProps>>): JSX_2.Element;
|
|
116
|
+
|
|
117
|
+
declare type BPMNMarkerType = "none" | "parallel multi instance" | "sequential multi instance" | "loop";
|
|
118
|
+
|
|
119
|
+
declare function BPMNPool({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNPoolProps>>): JSX_2.Element | null;
|
|
120
|
+
|
|
121
|
+
declare type BPMNPoolProps = DefaultNodeProps;
|
|
122
|
+
|
|
123
|
+
declare function BPMNStartEvent({ id, width, height, data, }: NodeProps<Node_2<BPMNEventProps>>): JSX_2.Element;
|
|
124
|
+
|
|
125
|
+
declare type BPMNStartEventType = "default" | "message" | "timer" | "conditional" | "signal";
|
|
126
|
+
|
|
127
|
+
declare function BPMNSubprocess({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNSubprocessProps>>): JSX_2.Element | null;
|
|
128
|
+
|
|
129
|
+
declare type BPMNSubprocessProps = DefaultNodeProps;
|
|
130
|
+
|
|
131
|
+
declare function BPMNTask({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNTaskProps>>): JSX_2.Element | null;
|
|
132
|
+
|
|
133
|
+
declare type BPMNTaskProps = DefaultNodeProps & {
|
|
134
|
+
taskType: BPMNTaskType;
|
|
135
|
+
marker: BPMNMarkerType;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
declare type BPMNTaskType = "default" | "user" | "send" | "receive" | "manual" | "business-rule" | "script";
|
|
139
|
+
|
|
140
|
+
declare function BPMNTransaction({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNTransactionProps>>): JSX_2.Element | null;
|
|
141
|
+
|
|
142
|
+
declare type BPMNTransactionProps = DefaultNodeProps;
|
|
143
|
+
|
|
144
|
+
declare function Class({ id, width, height, data, }: NodeProps<Node_2<ClassNodeProps>>): JSX_2.Element;
|
|
145
|
+
|
|
146
|
+
declare type ClassNodeElement = {
|
|
147
|
+
id: string;
|
|
148
|
+
} & DefaultNodeProps;
|
|
149
|
+
|
|
150
|
+
declare type ClassNodeProps = {
|
|
151
|
+
methods: ClassNodeElement[];
|
|
152
|
+
attributes: ClassNodeElement[];
|
|
153
|
+
stereotype?: ClassType;
|
|
154
|
+
} & DefaultNodeProps;
|
|
155
|
+
|
|
156
|
+
declare enum ClassType {
|
|
157
|
+
Abstract = "Abstract",
|
|
158
|
+
Interface = "Interface",
|
|
159
|
+
Enumeration = "Enumeration"
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
declare type CollaborationCursor = {
|
|
163
|
+
x: number;
|
|
164
|
+
y: number;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
declare type CollaborationState = {
|
|
168
|
+
user?: CollaborationUser;
|
|
169
|
+
cursor?: CollaborationCursor | null;
|
|
170
|
+
viewport?: CollaborationViewport | null;
|
|
171
|
+
followingClientId?: number | null;
|
|
172
|
+
selectedElementId?: string | null;
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
declare type CollaborationUser = {
|
|
176
|
+
name: string;
|
|
177
|
+
color: string;
|
|
178
|
+
id?: string;
|
|
179
|
+
imageUrl?: string;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
declare type CollaborationViewport = {
|
|
183
|
+
x: number;
|
|
184
|
+
y: number;
|
|
185
|
+
zoom: number;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
declare type CollaboratorInfo = {
|
|
189
|
+
id: string;
|
|
190
|
+
name: string;
|
|
191
|
+
color: string;
|
|
192
|
+
imageUrl?: string;
|
|
193
|
+
clientIds: number[];
|
|
194
|
+
isLocal: boolean;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
declare function ColorDescription({ width, height, data, id, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
198
|
+
|
|
199
|
+
declare function CommunicationObjectName({ id, width, height, data, }: NodeProps<Node_2<CommunicationObjectNodeProps>>): JSX_2.Element;
|
|
200
|
+
|
|
201
|
+
declare type CommunicationObjectNodeProps = {
|
|
202
|
+
methods: ClassNodeElement[];
|
|
203
|
+
attributes: ClassNodeElement[];
|
|
204
|
+
} & DefaultNodeProps;
|
|
205
|
+
|
|
206
|
+
declare function Component({ id, width, height, data, parentId, }: NodeProps<Node_2<ComponentNodeProps>>): JSX_2.Element | null;
|
|
207
|
+
|
|
208
|
+
declare function ComponentInterface({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
209
|
+
|
|
210
|
+
declare type ComponentNodeProps = {
|
|
211
|
+
isComponentHeaderShown: boolean;
|
|
212
|
+
} & DefaultNodeProps;
|
|
213
|
+
|
|
214
|
+
declare function ComponentSubsystem({ id, width, height, data, parentId, }: NodeProps<Node_2<ComponentSubsystemNodeProps>>): JSX_2.Element | null;
|
|
215
|
+
|
|
216
|
+
declare type ComponentSubsystemNodeProps = {
|
|
217
|
+
isComponentSubsystemHeaderShown: boolean;
|
|
218
|
+
} & DefaultNodeProps;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Convert v2 format to v4 format
|
|
222
|
+
*/
|
|
223
|
+
export declare function convertV2ToV4(v2Data: V2DiagramFormat): UMLModel;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Convert v3 edge types to v4 edge types
|
|
227
|
+
*/
|
|
228
|
+
export declare function convertV3EdgeTypeToV4(v3Type: string, flowType?: string): string;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Convert v3 handle directions to v4 handle IDs
|
|
232
|
+
* V3 uses Direction enum, V4 uses HandleId enum
|
|
233
|
+
*/
|
|
234
|
+
export declare function convertV3HandleToV4(v3Handle: string): string;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Convert V3 messages format to V4 MessageData array
|
|
238
|
+
*/
|
|
239
|
+
export declare function convertV3MessagesToV4(messages: V3Messages | MessageData[] | undefined): MessageData[];
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Convert v3 node types to v4 node types
|
|
243
|
+
*/
|
|
244
|
+
export declare function convertV3NodeTypeToV4(v3Type: string): string;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Main conversion function from v3 to v4 format
|
|
248
|
+
*/
|
|
249
|
+
export declare function convertV3ToV4(v3Data: V3DiagramFormat | V3UMLModel): UMLModel;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Construct a `YjsSync` against minimal stub stores. Intended for
|
|
253
|
+
* tests that exercise the wire protocol (sync/awareness handshake,
|
|
254
|
+
* incremental updates, reconnect behaviour) without dragging the React
|
|
255
|
+
* editor / React-Flow / zustand-with-middleware setup into the harness.
|
|
256
|
+
*
|
|
257
|
+
* Stores expose only the methods the sync class actually invokes. The
|
|
258
|
+
* Yjs observers will call them, but their bodies are no-ops because the
|
|
259
|
+
* test asserts directly against the `Y.Doc` that's returned.
|
|
260
|
+
*/
|
|
261
|
+
export declare function createHeadlessSync(ydoc?: Y.Doc): {
|
|
262
|
+
ydoc: Y.Doc;
|
|
263
|
+
sync: YjsSync;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
declare type CustomEdgeProps = {
|
|
267
|
+
sourceRole: string | null;
|
|
268
|
+
sourceMultiplicity: string | null;
|
|
269
|
+
targetRole: string | null;
|
|
270
|
+
targetMultiplicity: string | null;
|
|
271
|
+
points: IPoint[];
|
|
272
|
+
label?: string | null;
|
|
273
|
+
messages?: MessageData[];
|
|
274
|
+
strokeColor?: string;
|
|
275
|
+
textColor?: string;
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
declare type DefaultNodeProps = {
|
|
279
|
+
name: string;
|
|
280
|
+
fillColor?: string;
|
|
281
|
+
strokeColor?: string;
|
|
282
|
+
textColor?: string;
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
declare function DeploymentArtifact({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
286
|
+
|
|
287
|
+
declare function DeploymentComponent({ id, width, height, data, parentId, }: NodeProps<Node_2<DeploymentComponentProps>>): JSX_2.Element | null;
|
|
288
|
+
|
|
289
|
+
declare type DeploymentComponentProps = {
|
|
290
|
+
isComponentHeaderShown: boolean;
|
|
291
|
+
} & DefaultNodeProps;
|
|
292
|
+
|
|
293
|
+
declare function DeploymentInterface({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
294
|
+
|
|
295
|
+
declare function DeploymentNode({ id, width, height, data, parentId, }: NodeProps<Node_2<DeploymentNodeProps>>): JSX_2.Element | null;
|
|
296
|
+
|
|
297
|
+
declare type DeploymentNodeProps = {
|
|
298
|
+
isComponentHeaderShown: boolean;
|
|
299
|
+
stereotype: string;
|
|
300
|
+
} & DefaultNodeProps;
|
|
301
|
+
|
|
302
|
+
declare type DiagramEdgeType = keyof typeof diagramEdgeTypes;
|
|
303
|
+
|
|
304
|
+
declare const diagramEdgeTypes: {
|
|
305
|
+
ClassAggregation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
306
|
+
ClassInheritance: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
307
|
+
ClassRealization: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
308
|
+
ClassComposition: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
309
|
+
ClassBidirectional: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
310
|
+
ClassUnidirectional: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
311
|
+
ClassDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
312
|
+
ActivityControlFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
313
|
+
ObjectLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
314
|
+
FlowChartFlowline: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
315
|
+
SyntaxTreeLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
316
|
+
CommunicationLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
317
|
+
PetriNetArc: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
318
|
+
UseCaseAssociation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
319
|
+
UseCaseInclude: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
320
|
+
UseCaseExtend: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
321
|
+
UseCaseGeneralization: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
322
|
+
ComponentDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
323
|
+
ComponentProvidedInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
324
|
+
ComponentRequiredInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
325
|
+
ComponentRequiredThreeQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
326
|
+
ComponentRequiredQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
327
|
+
DeploymentAssociation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
328
|
+
DeploymentDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
329
|
+
DeploymentProvidedInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
330
|
+
DeploymentRequiredInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
331
|
+
DeploymentRequiredThreeQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
332
|
+
DeploymentRequiredQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
333
|
+
SfcDiagramEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
334
|
+
ReachabilityGraphArc: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
335
|
+
BPMNSequenceFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
336
|
+
BPMNMessageFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
337
|
+
BPMNAssociationFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
338
|
+
BPMNDataAssociationFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
declare type DiagramNodeType = keyof typeof diagramNodeTypes;
|
|
342
|
+
|
|
343
|
+
declare const diagramNodeTypes: {
|
|
344
|
+
package: typeof Package;
|
|
345
|
+
class: typeof Class;
|
|
346
|
+
objectName: typeof ObjectName;
|
|
347
|
+
communicationObjectName: typeof CommunicationObjectName;
|
|
348
|
+
colorDescription: typeof ColorDescription;
|
|
349
|
+
titleAndDesctiption: typeof TitleAndDesctiption;
|
|
350
|
+
activity: typeof Activity;
|
|
351
|
+
activityInitialNode: typeof ActivityInitialNode;
|
|
352
|
+
activityFinalNode: typeof ActivityFinalNode;
|
|
353
|
+
activityActionNode: typeof ActivityActionNode;
|
|
354
|
+
activityObjectNode: typeof ActivityObjectNode;
|
|
355
|
+
activityMergeNode: typeof ActivityMergeNode;
|
|
356
|
+
activityForkNode: typeof ActivityForkNode;
|
|
357
|
+
activityForkNodeHorizontal: typeof ActivityForkNodeHorizontal;
|
|
358
|
+
useCase: typeof UseCase;
|
|
359
|
+
useCaseActor: typeof UseCaseActor;
|
|
360
|
+
useCaseSystem: typeof UseCaseSystem;
|
|
361
|
+
component: typeof Component;
|
|
362
|
+
componentInterface: typeof ComponentInterface;
|
|
363
|
+
componentSubsystem: typeof ComponentSubsystem;
|
|
364
|
+
deploymentNode: typeof DeploymentNode;
|
|
365
|
+
deploymentComponent: typeof DeploymentComponent;
|
|
366
|
+
deploymentArtifact: typeof DeploymentArtifact;
|
|
367
|
+
deploymentInterface: typeof DeploymentInterface;
|
|
368
|
+
flowchartTerminal: typeof FlowchartTerminal;
|
|
369
|
+
flowchartProcess: typeof FlowchartProcess;
|
|
370
|
+
flowchartDecision: typeof FlowchartDecision;
|
|
371
|
+
flowchartInputOutput: typeof FlowchartInputOutput;
|
|
372
|
+
flowchartFunctionCall: typeof FlowchartFunctionCall;
|
|
373
|
+
syntaxTreeTerminal: typeof SyntaxTreeTerminal;
|
|
374
|
+
syntaxTreeNonterminal: typeof SyntaxTreeNonterminal;
|
|
375
|
+
petriNetTransition: typeof PetriNetTransition;
|
|
376
|
+
petriNetPlace: typeof PetriNetPlace;
|
|
377
|
+
bpmnTask: typeof BPMNTask;
|
|
378
|
+
bpmnStartEvent: typeof BPMNStartEvent;
|
|
379
|
+
bpmnIntermediateEvent: typeof BPMNIntermediateEvent;
|
|
380
|
+
bpmnEndEvent: typeof BPMNEndEvent;
|
|
381
|
+
bpmnGateway: typeof BPMNGateway;
|
|
382
|
+
bpmnSubprocess: typeof BPMNSubprocess;
|
|
383
|
+
bpmnTransaction: typeof BPMNTransaction;
|
|
384
|
+
bpmnCallActivity: typeof BPMNCallActivity;
|
|
385
|
+
bpmnAnnotation: typeof BPMNAnnotation;
|
|
386
|
+
bpmnDataObject: typeof BPMNDataObject;
|
|
387
|
+
bpmnDataStore: typeof BPMNDataStore;
|
|
388
|
+
bpmnPool: typeof BPMNPool;
|
|
389
|
+
bpmnGroup: typeof BPMNGroup;
|
|
390
|
+
reachabilityGraphMarking: typeof ReachabilityGraphMarking;
|
|
391
|
+
sfcStart: typeof SfcStart;
|
|
392
|
+
sfcStep: typeof SfcStep;
|
|
393
|
+
sfcActionTable: typeof SfcActionTable;
|
|
394
|
+
sfcTransitionBranch: typeof SfcTransitionBranch;
|
|
395
|
+
sfcJump: typeof SfcJump;
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
declare type DiagramStore = {
|
|
399
|
+
nodes: Node_2[];
|
|
400
|
+
edges: Edge[];
|
|
401
|
+
selectedElementIds: string[];
|
|
402
|
+
diagramId: string;
|
|
403
|
+
assessments: Record<string, Assessment>;
|
|
404
|
+
interactiveElements: Record<string, boolean>;
|
|
405
|
+
interactiveRelationships: Record<string, boolean>;
|
|
406
|
+
interactiveSelectionInitialized: boolean;
|
|
407
|
+
canUndo: boolean;
|
|
408
|
+
canRedo: boolean;
|
|
409
|
+
undoManager: Y.UndoManager | null;
|
|
410
|
+
previewMode: boolean;
|
|
411
|
+
setDiagramId: (diagramId: string) => void;
|
|
412
|
+
setNodes: (payload: Node_2[] | ((nodes: Node_2[]) => Node_2[])) => void;
|
|
413
|
+
setEdges: (payload: Edge[] | ((edges: Edge[]) => Edge[])) => void;
|
|
414
|
+
setNodesAndEdges: (nodes: Node_2[], edges: Edge[]) => void;
|
|
415
|
+
addEdge: (edge: Edge) => void;
|
|
416
|
+
addNode: (node: Node_2) => void;
|
|
417
|
+
onNodesChange: OnNodesChange;
|
|
418
|
+
onEdgesChange: OnEdgesChange;
|
|
419
|
+
reset: () => void;
|
|
420
|
+
setSelectedElementsId: (payload: string[] | ((edges: string[]) => string[])) => void;
|
|
421
|
+
getAssessment: (id: string) => Assessment | undefined;
|
|
422
|
+
setAssessments: (assessments: Record<string, Assessment> | ((prev: Record<string, Assessment>) => Record<string, Assessment>)) => void;
|
|
423
|
+
updateNodesFromYjs: () => void;
|
|
424
|
+
updateEdgesFromYjs: () => void;
|
|
425
|
+
updateAssessmentFromYjs: () => void;
|
|
426
|
+
addOrUpdateAssessment: (assessment: Assessment) => void;
|
|
427
|
+
undo: () => void;
|
|
428
|
+
redo: () => void;
|
|
429
|
+
initializeUndoManager: () => void;
|
|
430
|
+
updateUndoRedoState: () => void;
|
|
431
|
+
toggleInteractiveElement: (elementId: string) => void;
|
|
432
|
+
getInteractiveForSerialization: () => InteractiveElements | undefined;
|
|
433
|
+
setInteractive: (interactive: InteractiveElements | undefined) => void;
|
|
434
|
+
isElementInteractive: (elementId: string) => boolean;
|
|
435
|
+
/**
|
|
436
|
+
* Toggle the preview overlay. When entering, the Yjs doc is left
|
|
437
|
+
* untouched by store mutators and observers. When exiting, the local
|
|
438
|
+
* Zustand state is rebuilt from the (peer-augmented) Yjs maps so the
|
|
439
|
+
* canvas catches up to everything that arrived during preview.
|
|
440
|
+
*/
|
|
441
|
+
setPreviewMode: (active: boolean) => void;
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
declare type ExtendedEdgeProps = EdgeProps<Edge<CustomEdgeProps>> & {
|
|
445
|
+
markerEnd?: string;
|
|
446
|
+
markerPadding?: number;
|
|
447
|
+
strokeDashArray?: string;
|
|
448
|
+
type: string;
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
declare type FeedbackCorrectionStatus = {
|
|
452
|
+
description?: string;
|
|
453
|
+
status: "CORRECT" | "INCORRECT" | "NOT_VALIDATED";
|
|
454
|
+
};
|
|
455
|
+
|
|
456
|
+
declare function FlowchartDecision({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
457
|
+
|
|
458
|
+
declare function FlowchartFunctionCall({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
459
|
+
|
|
460
|
+
declare function FlowchartInputOutput({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
461
|
+
|
|
462
|
+
declare function FlowchartProcess({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
463
|
+
|
|
464
|
+
declare function FlowchartTerminal({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
465
|
+
|
|
466
|
+
declare type InteractiveElements = {
|
|
467
|
+
elements: Record<string, boolean>;
|
|
468
|
+
relationships: Record<string, boolean>;
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
declare interface IPoint {
|
|
472
|
+
x: number;
|
|
473
|
+
y: number;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
declare interface IPoint_2 {
|
|
477
|
+
x: number;
|
|
478
|
+
y: number;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Check if data is in v2 format
|
|
483
|
+
*/
|
|
484
|
+
export declare function isV2Format(data: any): data is V2DiagramFormat;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Check if data is in v3 format
|
|
488
|
+
*/
|
|
489
|
+
export declare function isV3Format(data: any): data is V3DiagramFormat;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Check if data is in v4 format
|
|
493
|
+
*/
|
|
494
|
+
export declare function isV4Format(data: any): data is UMLModel;
|
|
495
|
+
|
|
496
|
+
declare interface MessageData {
|
|
497
|
+
id: string;
|
|
498
|
+
text: string;
|
|
499
|
+
direction: "target" | "source";
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
export declare enum MessageType {
|
|
503
|
+
YjsSYNC = 0,
|
|
504
|
+
YjsUpdate = 1,
|
|
505
|
+
AwarenessSync = 2,
|
|
506
|
+
AwarenessUpdate = 3
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
declare type MetadataStore = {
|
|
510
|
+
diagramTitle: string;
|
|
511
|
+
diagramType: UMLDiagramType;
|
|
512
|
+
mode: ApollonMode;
|
|
513
|
+
view: ApollonView;
|
|
514
|
+
availableViews: ApollonView[];
|
|
515
|
+
readonly: boolean;
|
|
516
|
+
debug: boolean;
|
|
517
|
+
scrollLock: boolean;
|
|
518
|
+
scrollEnabled: boolean;
|
|
519
|
+
connectionGuidanceActive: boolean;
|
|
520
|
+
connectionGuidanceSourceNodeId: string | null;
|
|
521
|
+
connectionGuidanceSourceHandleId: string | null;
|
|
522
|
+
reconnectPreviewEdgeId: string | null;
|
|
523
|
+
reconnectPreviewHandleType: "source" | "target" | null;
|
|
524
|
+
reconnectPreviewBasePoints: IPoint[];
|
|
525
|
+
setMode: (mode: ApollonMode) => void;
|
|
526
|
+
setView: (view: ApollonView) => void;
|
|
527
|
+
setAvailableViews: (availableViews: ApollonView[]) => void;
|
|
528
|
+
setReadonly: (readonly: boolean) => void;
|
|
529
|
+
setScrollLock: (scrollLock: boolean) => void;
|
|
530
|
+
setScrollEnabled: (scrollEnabled: boolean) => void;
|
|
531
|
+
startConnectionGuidance: (sourceNodeId: string | null, sourceHandleId: string | null) => void;
|
|
532
|
+
stopConnectionGuidance: () => void;
|
|
533
|
+
startReconnectPreview: (edgeId: string, handleType: "source" | "target", basePoints: IPoint[]) => void;
|
|
534
|
+
stopReconnectPreview: () => void;
|
|
535
|
+
updateDiagramTitle: (diagramTitle: string) => void;
|
|
536
|
+
updateDiagramType: (diagramType: UMLDiagramType) => void;
|
|
537
|
+
updateMetaData: (diagramTitle: string, diagramType: UMLDiagramType) => void;
|
|
538
|
+
updateMetaDataFromYjs: () => void;
|
|
539
|
+
reset: () => void;
|
|
540
|
+
setDebug: (debug: boolean) => void;
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
declare function ObjectName({ id, width, height, data, }: NodeProps<Node_2<ObjectNodeProps>>): JSX_2.Element;
|
|
544
|
+
|
|
545
|
+
declare type ObjectNodeProps = {
|
|
546
|
+
methods: ClassNodeElement[];
|
|
547
|
+
attributes: ClassNodeElement[];
|
|
548
|
+
} & DefaultNodeProps;
|
|
549
|
+
|
|
550
|
+
declare interface OrthogonalEdgeData {
|
|
551
|
+
[key: string]: unknown;
|
|
552
|
+
points: IPoint_2[];
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
declare function Package({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
556
|
+
|
|
557
|
+
declare function PetriNetPlace({ id, width, height, data, }: NodeProps<Node_2<PetriNetPlaceProps>>): JSX_2.Element | null;
|
|
558
|
+
|
|
559
|
+
declare type PetriNetPlaceProps = {
|
|
560
|
+
tokens: number;
|
|
561
|
+
capacity: number | "Infinity";
|
|
562
|
+
} & DefaultNodeProps;
|
|
563
|
+
|
|
564
|
+
declare function PetriNetTransition({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
565
|
+
|
|
566
|
+
declare type Props = Node_2<{
|
|
567
|
+
description?: string;
|
|
568
|
+
title: string;
|
|
569
|
+
}>;
|
|
570
|
+
|
|
571
|
+
declare function ReachabilityGraphMarking({ id, width, height, data, parentId, }: NodeProps<Node_2<ReachabilityGraphMarkingProps>>): JSX_2.Element | null;
|
|
572
|
+
|
|
573
|
+
declare type ReachabilityGraphMarkingProps = DefaultNodeProps & {
|
|
574
|
+
isInitialMarking: boolean;
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
export declare type SendBroadcastMessage = (base64data: string) => void;
|
|
578
|
+
|
|
579
|
+
declare type SfcActionRow = DefaultNodeProps & {
|
|
580
|
+
id: string;
|
|
581
|
+
identifier: string;
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
declare function SfcActionTable({ id, width, height, data, }: NodeProps<Node_2<SfcActionTableProps>>): JSX_2.Element | null;
|
|
585
|
+
|
|
586
|
+
declare type SfcActionTableProps = DefaultNodeProps & {
|
|
587
|
+
actionRows: SfcActionRow[];
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
declare function SfcJump({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
591
|
+
|
|
592
|
+
declare function SfcStart({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
593
|
+
|
|
594
|
+
declare function SfcStep({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
595
|
+
|
|
596
|
+
declare function SfcTransitionBranch({ id, width, height, data, }: NodeProps<Node_2<SfcTransitionBranchNodeProps>>): JSX_2.Element | null;
|
|
597
|
+
|
|
598
|
+
declare type SfcTransitionBranchNodeProps = DefaultNodeProps & {
|
|
599
|
+
showHint: boolean;
|
|
600
|
+
};
|
|
601
|
+
|
|
602
|
+
declare function SyntaxTreeNonterminal({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
603
|
+
|
|
604
|
+
declare function SyntaxTreeTerminal({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
605
|
+
|
|
606
|
+
declare function TitleAndDesctiption({ width, height, id, data: { description, title }, }: NodeProps<Props>): JSX_2.Element | null;
|
|
607
|
+
|
|
608
|
+
declare type UMLDiagramType = keyof typeof UMLDiagramType;
|
|
609
|
+
|
|
610
|
+
declare const UMLDiagramType: {
|
|
611
|
+
readonly ClassDiagram: "ClassDiagram";
|
|
612
|
+
readonly ObjectDiagram: "ObjectDiagram";
|
|
613
|
+
readonly ActivityDiagram: "ActivityDiagram";
|
|
614
|
+
readonly UseCaseDiagram: "UseCaseDiagram";
|
|
615
|
+
readonly CommunicationDiagram: "CommunicationDiagram";
|
|
616
|
+
readonly ComponentDiagram: "ComponentDiagram";
|
|
617
|
+
readonly DeploymentDiagram: "DeploymentDiagram";
|
|
618
|
+
readonly PetriNet: "PetriNet";
|
|
619
|
+
readonly ReachabilityGraph: "ReachabilityGraph";
|
|
620
|
+
readonly SyntaxTree: "SyntaxTree";
|
|
621
|
+
readonly Flowchart: "Flowchart";
|
|
622
|
+
readonly BPMN: "BPMN";
|
|
623
|
+
readonly Sfc: "Sfc";
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
declare type UMLModel = {
|
|
627
|
+
version: `4.${number}.${number}`;
|
|
628
|
+
id: string;
|
|
629
|
+
title: string;
|
|
630
|
+
type: UMLDiagramType;
|
|
631
|
+
nodes: ApollonNode[];
|
|
632
|
+
edges: ApollonEdge[];
|
|
633
|
+
assessments: {
|
|
634
|
+
[id: string]: Assessment;
|
|
635
|
+
};
|
|
636
|
+
interactive?: InteractiveElements;
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
declare function UseCase({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
640
|
+
|
|
641
|
+
declare function UseCaseActor({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
642
|
+
|
|
643
|
+
declare function UseCaseSystem({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
644
|
+
|
|
645
|
+
declare interface V2DiagramFormat {
|
|
646
|
+
version: string;
|
|
647
|
+
size: {
|
|
648
|
+
width: number;
|
|
649
|
+
height: number;
|
|
650
|
+
};
|
|
651
|
+
type: string;
|
|
652
|
+
interactive: {
|
|
653
|
+
elements: string[];
|
|
654
|
+
relationships: string[];
|
|
655
|
+
};
|
|
656
|
+
elements: V3UMLElement[];
|
|
657
|
+
relationships: V3UMLRelationship[];
|
|
658
|
+
assessments: V3Assessment[];
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
export declare type V3Assessment = {
|
|
662
|
+
modelElementId: string;
|
|
663
|
+
elementType: string;
|
|
664
|
+
score: number;
|
|
665
|
+
feedback?: string;
|
|
666
|
+
dropInfo?: any;
|
|
667
|
+
label?: string;
|
|
668
|
+
labelColor?: string;
|
|
669
|
+
correctionStatus?: {
|
|
670
|
+
description?: string;
|
|
671
|
+
status: "CORRECT" | "INCORRECT" | "NOT_VALIDATED";
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
export declare type V3BPMNEndEvent = {
|
|
676
|
+
eventType: "default" | "message" | "escalation" | "error" | "compensation" | "signal" | "terminate";
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
export declare type V3BPMNGateway = {
|
|
680
|
+
gatewayType: "complex" | "event-based" | "exclusive" | "inclusive" | "parallel";
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
export declare type V3BPMNIntermediateEvent = {
|
|
684
|
+
eventType: "default" | "message-catch" | "message-throw" | "timer-catch" | "escalation-throw" | "conditional-catch" | "link-catch" | "link-throw" | "compensation-throw" | "signal-catch" | "signal-throw";
|
|
685
|
+
};
|
|
686
|
+
|
|
687
|
+
export declare type V3BPMNStartEvent = {
|
|
688
|
+
eventType: "default" | "message" | "timer" | "conditional" | "signal";
|
|
689
|
+
};
|
|
690
|
+
|
|
691
|
+
export declare type V3BPMNTask = {
|
|
692
|
+
taskType: "default" | "user" | "send" | "receive" | "manual" | "business-rule" | "script";
|
|
693
|
+
marker: "none" | "parallel multi instance" | "sequential multi instance" | "loop";
|
|
694
|
+
};
|
|
695
|
+
|
|
696
|
+
export declare type V3DiagramFormat = {
|
|
697
|
+
id: string;
|
|
698
|
+
title: string;
|
|
699
|
+
model: V3UMLModel;
|
|
700
|
+
lastUpdate?: string;
|
|
701
|
+
};
|
|
702
|
+
|
|
703
|
+
export declare type V3Message = {
|
|
704
|
+
id: string;
|
|
705
|
+
name: string;
|
|
706
|
+
direction: "source" | "target";
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
export declare type V3Messages = {
|
|
710
|
+
[id: string]: V3Message;
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
export declare type V3Selection = {
|
|
714
|
+
elements: {
|
|
715
|
+
[id: string]: boolean;
|
|
716
|
+
};
|
|
717
|
+
relationships: {
|
|
718
|
+
[id: string]: boolean;
|
|
719
|
+
};
|
|
720
|
+
};
|
|
721
|
+
|
|
722
|
+
export declare type V3UMLClassifier = {
|
|
723
|
+
attributes: string[];
|
|
724
|
+
methods: string[];
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
export declare type V3UMLComponentComponent = {
|
|
728
|
+
displayStereotype: boolean;
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
export declare type V3UMLComponentSubsystem = {
|
|
732
|
+
stereotype: string;
|
|
733
|
+
displayStereotype: boolean;
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
export declare type V3UMLDeploymentComponent = {
|
|
737
|
+
displayStereotype: boolean;
|
|
738
|
+
};
|
|
739
|
+
|
|
740
|
+
export declare type V3UMLDeploymentNode = {
|
|
741
|
+
stereotype: string;
|
|
742
|
+
displayStereotype: boolean;
|
|
743
|
+
};
|
|
744
|
+
|
|
745
|
+
export declare type V3UMLElement = V3UMLModelElement & Partial<V3UMLClassifier> & Partial<V3UMLDeploymentNode> & Partial<V3UMLDeploymentComponent> & Partial<V3UMLComponentSubsystem> & Partial<V3UMLComponentComponent> & Partial<V3UMLPetriNetPlace> & Partial<V3BPMNTask> & Partial<V3BPMNGateway> & Partial<V3BPMNStartEvent> & Partial<V3BPMNIntermediateEvent> & Partial<V3BPMNEndEvent> & Partial<V3UMLReachabilityGraphMarking>;
|
|
746
|
+
|
|
747
|
+
export declare interface V3UMLModel {
|
|
748
|
+
version: string;
|
|
749
|
+
type: string;
|
|
750
|
+
size: {
|
|
751
|
+
width: number;
|
|
752
|
+
height: number;
|
|
753
|
+
};
|
|
754
|
+
interactive: {
|
|
755
|
+
elements: Record<string, boolean>;
|
|
756
|
+
relationships: Record<string, boolean>;
|
|
757
|
+
};
|
|
758
|
+
elements: Record<string, V3UMLElement>;
|
|
759
|
+
relationships: Record<string, V3UMLRelationship>;
|
|
760
|
+
assessments: Record<string, V3Assessment>;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
export declare type V3UMLModelElement = {
|
|
764
|
+
id: string;
|
|
765
|
+
name: string;
|
|
766
|
+
type: V3UMLModelElementType;
|
|
767
|
+
owner: string | null;
|
|
768
|
+
bounds: {
|
|
769
|
+
x: number;
|
|
770
|
+
y: number;
|
|
771
|
+
width: number;
|
|
772
|
+
height: number;
|
|
773
|
+
};
|
|
774
|
+
highlight?: string;
|
|
775
|
+
fillColor?: string;
|
|
776
|
+
strokeColor?: string;
|
|
777
|
+
textColor?: string;
|
|
778
|
+
assessmentNote?: string;
|
|
779
|
+
};
|
|
780
|
+
|
|
781
|
+
export declare type V3UMLModelElementType = string;
|
|
782
|
+
|
|
783
|
+
export declare type V3UMLPetriNetPlace = {
|
|
784
|
+
amountOfTokens: number;
|
|
785
|
+
capacity: number | string;
|
|
786
|
+
};
|
|
787
|
+
|
|
788
|
+
export declare type V3UMLReachabilityGraphMarking = {
|
|
789
|
+
isInitialMarking: boolean;
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
export declare type V3UMLRelationship = V3UMLModelElement & {
|
|
793
|
+
path: IPoint[];
|
|
794
|
+
source: {
|
|
795
|
+
element: string;
|
|
796
|
+
direction: string;
|
|
797
|
+
multiplicity?: string;
|
|
798
|
+
role?: string;
|
|
799
|
+
};
|
|
800
|
+
target: {
|
|
801
|
+
element: string;
|
|
802
|
+
direction: string;
|
|
803
|
+
multiplicity?: string;
|
|
804
|
+
role?: string;
|
|
805
|
+
};
|
|
806
|
+
isManuallyLayouted?: boolean;
|
|
807
|
+
messages?: {
|
|
808
|
+
[id: string]: {
|
|
809
|
+
id: string;
|
|
810
|
+
name: string;
|
|
811
|
+
direction: "source" | "target";
|
|
812
|
+
};
|
|
813
|
+
};
|
|
814
|
+
flowType?: string;
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
export declare class YjsSync {
|
|
818
|
+
private readonly stopYjsObserver;
|
|
819
|
+
private sendBroadcastMessage;
|
|
820
|
+
private readonly ydoc;
|
|
821
|
+
private readonly diagramStore;
|
|
822
|
+
private readonly metadataStore;
|
|
823
|
+
private readonly awareness;
|
|
824
|
+
constructor(ydoc: Y.Doc, diagramStore: StoreApi<DiagramStore>, metadataStore: StoreApi<MetadataStore>);
|
|
825
|
+
stopSync(): void;
|
|
826
|
+
/**
|
|
827
|
+
* Push the entire local Yjs document as a single `YjsUpdate`. Callers should
|
|
828
|
+
* invoke this after a (re)connect so peers absorb any edits made while we
|
|
829
|
+
* were disconnected — those updates fire while `readyState !== OPEN`, are
|
|
830
|
+
* silently dropped by the send callback, and never replayed otherwise.
|
|
831
|
+
* Yjs CRDTs converge on merge, so peers that already have these ops just
|
|
832
|
+
* no-op.
|
|
833
|
+
*/
|
|
834
|
+
broadcastFullState: () => void;
|
|
835
|
+
setSendBroadcastMessage: (sendFn: SendBroadcastMessage) => void;
|
|
836
|
+
setLocalAwarenessUser: (user: CollaborationUser) => void;
|
|
837
|
+
setLocalAwarenessCursor: (cursor: {
|
|
838
|
+
x: number;
|
|
839
|
+
y: number;
|
|
840
|
+
} | null) => void;
|
|
841
|
+
setLocalAwarenessViewport: (viewport: CollaborationViewport | null) => void;
|
|
842
|
+
setLocalAwarenessFollowing: (followingClientId: number | null) => void;
|
|
843
|
+
setLocalAwarenessSelectedElement: (selectedElementId: string | null) => void;
|
|
844
|
+
setLocalAwarenessState: (state: Partial<CollaborationState>) => void;
|
|
845
|
+
subscribeToAwarenessChanges: (callback: (states: Map<number, CollaborationState>) => void) => () => void;
|
|
846
|
+
getAwarenessStates: () => Map<number, CollaborationState>;
|
|
847
|
+
getCollaborators: () => CollaboratorInfo[];
|
|
848
|
+
subscribeToCollaboratorChanges: (callback: (collaborators: CollaboratorInfo[]) => void) => () => void;
|
|
849
|
+
getLocalAwarenessClientId: () => number;
|
|
850
|
+
private static narrowState;
|
|
851
|
+
private getTypedStates;
|
|
852
|
+
private computeParticipantSignature;
|
|
853
|
+
private sendFramedMessage;
|
|
854
|
+
private applyUpdate;
|
|
855
|
+
handleReceivedData: (base64Data: string) => void;
|
|
856
|
+
private startYjsObserver;
|
|
857
|
+
private isUndoRedoTransaction;
|
|
858
|
+
/**
|
|
859
|
+
* Convert Uint8Array to Base64 string
|
|
860
|
+
*/
|
|
861
|
+
static uint8ToBase64(uint8: Uint8Array): string;
|
|
862
|
+
/**
|
|
863
|
+
* Convert Base64 string to Uint8Array
|
|
864
|
+
*/
|
|
865
|
+
private base64ToUint8;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
export { }
|