@tumaet/apollon 4.9.0 → 5.0.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.
Files changed (410) hide show
  1. package/README.md +27 -63
  2. package/dist/assets/style.css +2 -1
  3. package/dist/export.js +189 -205
  4. package/dist/exportFonts-B_CLIgms.js +5 -0
  5. package/dist/exportStyles-ob7cmOn_.js +5 -0
  6. package/dist/fontStack-BKkvgDI3.js +4 -0
  7. package/dist/index.d.ts +237 -58
  8. package/dist/index.js +16850 -36346
  9. package/dist/internals.d.ts +2 -10
  10. package/dist/internals.js +28 -46
  11. package/dist/versionConverter-C-s36Ory.js +4769 -0
  12. package/package.json +33 -79
  13. package/dist/exportFonts-DxO9jrR1.js +0 -19
  14. package/dist/exportStyles-Co-WBqTa.js +0 -5
  15. package/dist/external/LICENSE-InterFont +0 -92
  16. package/dist/external/exportFonts-DxO9jrR1.js +0 -19
  17. package/dist/external/exportStyles-Co-WBqTa.js +0 -5
  18. package/dist/external/index.js +0 -22191
  19. package/dist/fontStack-DOtVH2j8.js +0 -5
  20. package/dist/react/App.d.ts +0 -9
  21. package/dist/react/LICENSE-InterFont +0 -92
  22. package/dist/react/apollon-editor.d.ts +0 -184
  23. package/dist/react/components/AlignmentGuides.d.ts +0 -1
  24. package/dist/react/components/AssessmentSelectableElement.d.ts +0 -10
  25. package/dist/react/components/AssessmentSelectionDebug.d.ts +0 -1
  26. package/dist/react/components/CustomBackground.d.ts +0 -1
  27. package/dist/react/components/CustomControls.d.ts +0 -8
  28. package/dist/react/components/CustomMiniMap.d.ts +0 -1
  29. package/dist/react/components/DraggableGhost.d.ts +0 -13
  30. package/dist/react/components/Icon/ArrowBackIcon.d.ts +0 -4
  31. package/dist/react/components/Icon/ArrowForwardIcon.d.ts +0 -4
  32. package/dist/react/components/Icon/CheckIcon.d.ts +0 -4
  33. package/dist/react/components/Icon/CrossIcon.d.ts +0 -4
  34. package/dist/react/components/Icon/DeleteIcon.d.ts +0 -4
  35. package/dist/react/components/Icon/DragHandleIcon.d.ts +0 -4
  36. package/dist/react/components/Icon/EditIcon.d.ts +0 -4
  37. package/dist/react/components/Icon/ExclamationIcon.d.ts +0 -4
  38. package/dist/react/components/Icon/InfiniteIcon.d.ts +0 -4
  39. package/dist/react/components/Icon/MapIcon.d.ts +0 -4
  40. package/dist/react/components/Icon/PaintRollerIcon.d.ts +0 -2
  41. package/dist/react/components/Icon/RedoIcon.d.ts +0 -2
  42. package/dist/react/components/Icon/SouthEastArrowIcon.d.ts +0 -4
  43. package/dist/react/components/Icon/SwapHorizIcon.d.ts +0 -4
  44. package/dist/react/components/Icon/UndoIcon.d.ts +0 -2
  45. package/dist/react/components/Icon/index.d.ts +0 -14
  46. package/dist/react/components/ReconnectConnectionLine.d.ts +0 -2
  47. package/dist/react/components/ScrollOverlay.d.ts +0 -7
  48. package/dist/react/components/Sidebar.d.ts +0 -2
  49. package/dist/react/components/collaboration/CollaborationLayer.d.ts +0 -25
  50. package/dist/react/components/collaboration/coordinates.d.ts +0 -7
  51. package/dist/react/components/index.d.ts +0 -18
  52. package/dist/react/components/popovers/DefaultNodeEditPopover.d.ts +0 -2
  53. package/dist/react/components/popovers/DefaultNodeGiveFeedbackPopover.d.ts +0 -2
  54. package/dist/react/components/popovers/DefaultNodeSeeFeedbackPopover.d.ts +0 -2
  55. package/dist/react/components/popovers/GenericPopover.d.ts +0 -17
  56. package/dist/react/components/popovers/GiveFeedbackAssessmentBox.d.ts +0 -7
  57. package/dist/react/components/popovers/PopoverManager.d.ts +0 -10
  58. package/dist/react/components/popovers/SeeFeedbackAssessmentBox.d.ts +0 -5
  59. package/dist/react/components/popovers/activityDiagram/ActivitySwimlaneEditPopover.d.ts +0 -2
  60. package/dist/react/components/popovers/activityDiagram/index.d.ts +0 -1
  61. package/dist/react/components/popovers/bpmnDiagram/BPMNEndEventEditPopover.d.ts +0 -2
  62. package/dist/react/components/popovers/bpmnDiagram/BPMNGatewayEditPopover.d.ts +0 -2
  63. package/dist/react/components/popovers/bpmnDiagram/BPMNIntermediateEventEditPopover.d.ts +0 -2
  64. package/dist/react/components/popovers/bpmnDiagram/BPMNPoolEditPopover.d.ts +0 -2
  65. package/dist/react/components/popovers/bpmnDiagram/BPMNStartEventEditPopover.d.ts +0 -2
  66. package/dist/react/components/popovers/bpmnDiagram/BPMNTaskEditPopover.d.ts +0 -2
  67. package/dist/react/components/popovers/bpmnDiagram/index.d.ts +0 -6
  68. package/dist/react/components/popovers/classDiagram/ClassEditPopover.d.ts +0 -2
  69. package/dist/react/components/popovers/classDiagram/ClassGiveFeedbackPopover.d.ts +0 -2
  70. package/dist/react/components/popovers/classDiagram/ClassSeeFeedbackPopover.d.ts +0 -2
  71. package/dist/react/components/popovers/classDiagram/EditableAttributesList.d.ts +0 -6
  72. package/dist/react/components/popovers/classDiagram/EditableMethodsList.d.ts +0 -6
  73. package/dist/react/components/popovers/classDiagram/index.d.ts +0 -6
  74. package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameEditPopover.d.ts +0 -2
  75. package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameGiveFeedbackPopover.d.ts +0 -2
  76. package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameSeeFeedbackPopover.d.ts +0 -2
  77. package/dist/react/components/popovers/communicationDiagram/index.d.ts +0 -3
  78. package/dist/react/components/popovers/componentDiagram/ComponentEditPopover.d.ts +0 -2
  79. package/dist/react/components/popovers/componentDiagram/ComponentSubsystemEditPopover.d.ts +0 -2
  80. package/dist/react/components/popovers/componentDiagram/index.d.ts +0 -2
  81. package/dist/react/components/popovers/deploymentDiagram/DeploymentComponentEditPopover.d.ts +0 -2
  82. package/dist/react/components/popovers/deploymentDiagram/DeploymentNodeEditPopover.d.ts +0 -2
  83. package/dist/react/components/popovers/deploymentDiagram/index.d.ts +0 -2
  84. package/dist/react/components/popovers/edgePopovers/ActivityDiagramEdgeEditPopover.d.ts +0 -2
  85. package/dist/react/components/popovers/edgePopovers/BPMNDiagramEdgeEditPopover.d.ts +0 -2
  86. package/dist/react/components/popovers/edgePopovers/ClassDiagramEdgeEditPopover.d.ts +0 -2
  87. package/dist/react/components/popovers/edgePopovers/CommunicationDiagramEdgeEditPopover.d.ts +0 -2
  88. package/dist/react/components/popovers/edgePopovers/ComponentDiagramEdgeEditPopover.d.ts +0 -2
  89. package/dist/react/components/popovers/edgePopovers/DeploymentDiagramEdgeEditPopover.d.ts +0 -2
  90. package/dist/react/components/popovers/edgePopovers/EdgeGiveFeedbackPopover.d.ts +0 -2
  91. package/dist/react/components/popovers/edgePopovers/EdgeSeeFeedbackPopover.d.ts +0 -2
  92. package/dist/react/components/popovers/edgePopovers/EdgeTypePreviewIcon.d.ts +0 -3
  93. package/dist/react/components/popovers/edgePopovers/EdgeTypeSelect.d.ts +0 -9
  94. package/dist/react/components/popovers/edgePopovers/FlowChartEdgeEditPopover.d.ts +0 -2
  95. package/dist/react/components/popovers/edgePopovers/ObjectDiagramEdgeEditPopover.d.ts +0 -2
  96. package/dist/react/components/popovers/edgePopovers/PetriNetEdgeEditPopover.d.ts +0 -2
  97. package/dist/react/components/popovers/edgePopovers/ReachabilityGraphEdgeEditPopover.d.ts +0 -2
  98. package/dist/react/components/popovers/edgePopovers/SwapEndsButton.d.ts +0 -9
  99. package/dist/react/components/popovers/edgePopovers/SyntaxTreeEdgeEditPopover.d.ts +0 -2
  100. package/dist/react/components/popovers/edgePopovers/UseCaseDiagramEdgeEditPopover.d.ts +0 -2
  101. package/dist/react/components/popovers/edgePopovers/index.d.ts +0 -8
  102. package/dist/react/components/popovers/index.d.ts +0 -3
  103. package/dist/react/components/popovers/objectDiagram/ObjectEditPopover.d.ts +0 -2
  104. package/dist/react/components/popovers/objectDiagram/ObjectGiveFeedbackPopover.d.ts +0 -2
  105. package/dist/react/components/popovers/objectDiagram/ObjectSeeFeedbackPopover.d.ts +0 -2
  106. package/dist/react/components/popovers/objectDiagram/index.d.ts +0 -3
  107. package/dist/react/components/popovers/petriNetDiagram/PetriNetPlaceEditPopover.d.ts +0 -2
  108. package/dist/react/components/popovers/petriNetDiagram/index.d.ts +0 -1
  109. package/dist/react/components/popovers/reachabilityGraphDiagram/ReachabilityGraphMarkingEditPopover.d.ts +0 -2
  110. package/dist/react/components/popovers/reachabilityGraphDiagram/index.d.ts +0 -1
  111. package/dist/react/components/popovers/sfcDiagram/SfcActionTableEditPopover.d.ts +0 -3
  112. package/dist/react/components/popovers/sfcDiagram/SfcEdgeEditPopover.d.ts +0 -2
  113. package/dist/react/components/popovers/sfcDiagram/index.d.ts +0 -2
  114. package/dist/react/components/popovers/syntaxTreeDiagram/SyntaxTreeNonterminalEditPopover.d.ts +0 -2
  115. package/dist/react/components/popovers/syntaxTreeDiagram/SyntaxTreeTerminalEditPopover.d.ts +0 -2
  116. package/dist/react/components/popovers/syntaxTreeDiagram/index.d.ts +0 -2
  117. package/dist/react/components/popovers/types.d.ts +0 -6
  118. package/dist/react/components/react/Apollon.d.ts +0 -50
  119. package/dist/react/components/react/ApollonControl.d.ts +0 -18
  120. package/dist/react/components/react/context.d.ts +0 -16
  121. package/dist/react/components/react/useApollonSubscription.d.ts +0 -17
  122. package/dist/react/components/svgs/AssessmentIcon.d.ts +0 -8
  123. package/dist/react/components/svgs/StyledElements.d.ts +0 -2
  124. package/dist/react/components/svgs/edges/InlineMarker.d.ts +0 -70
  125. package/dist/react/components/svgs/edges/index.d.ts +0 -1
  126. package/dist/react/components/svgs/index.d.ts +0 -3
  127. package/dist/react/components/svgs/nodes/CustomText.d.ts +0 -10
  128. package/dist/react/components/svgs/nodes/HeaderSection.d.ts +0 -14
  129. package/dist/react/components/svgs/nodes/InterfaceLabel.d.ts +0 -26
  130. package/dist/react/components/svgs/nodes/MultilineText.d.ts +0 -51
  131. package/dist/react/components/svgs/nodes/RowBlockSection.d.ts +0 -15
  132. package/dist/react/components/svgs/nodes/SeparationLine.d.ts +0 -8
  133. package/dist/react/components/svgs/nodes/StereotypeAndName.d.ts +0 -54
  134. package/dist/react/components/svgs/nodes/activityDiagram/ActivityActionNodeSVG.d.ts +0 -6
  135. package/dist/react/components/svgs/nodes/activityDiagram/ActivityFinalNodeSVG.d.ts +0 -2
  136. package/dist/react/components/svgs/nodes/activityDiagram/ActivityForkNodeHorizontalSVG.d.ts +0 -7
  137. package/dist/react/components/svgs/nodes/activityDiagram/ActivityForkNodeSVG.d.ts +0 -7
  138. package/dist/react/components/svgs/nodes/activityDiagram/ActivityInitialNodeSVG.d.ts +0 -2
  139. package/dist/react/components/svgs/nodes/activityDiagram/ActivityMergeNodeSVG.d.ts +0 -7
  140. package/dist/react/components/svgs/nodes/activityDiagram/ActivityObjectNodeSVG.d.ts +0 -7
  141. package/dist/react/components/svgs/nodes/activityDiagram/ActivitySVG.d.ts +0 -6
  142. package/dist/react/components/svgs/nodes/activityDiagram/ActivitySwimlaneSVG.d.ts +0 -9
  143. package/dist/react/components/svgs/nodes/activityDiagram/index.d.ts +0 -9
  144. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNAnnotationNodeSVG.d.ts +0 -7
  145. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNDataObjectNodeSVG.d.ts +0 -7
  146. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNDataStoreNodeSVG.d.ts +0 -7
  147. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNEventNodeSVG.d.ts +0 -8
  148. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNGatewayNodeSVG.d.ts +0 -7
  149. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNGroupNodeSVG.d.ts +0 -7
  150. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNPoolNodeSVG.d.ts +0 -7
  151. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNSubprocessNodeSVG.d.ts +0 -8
  152. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNTaskNodeSVG.d.ts +0 -6
  153. package/dist/react/components/svgs/nodes/bpmnDiagram/index.d.ts +0 -9
  154. package/dist/react/components/svgs/nodes/classDiagram/ClassSVG.d.ts +0 -10
  155. package/dist/react/components/svgs/nodes/classDiagram/ColorDescriptionSVG.d.ts +0 -10
  156. package/dist/react/components/svgs/nodes/classDiagram/PackageSVG.d.ts +0 -6
  157. package/dist/react/components/svgs/nodes/classDiagram/TitleAndDescriptionSVG.d.ts +0 -11
  158. package/dist/react/components/svgs/nodes/classDiagram/index.d.ts +0 -4
  159. package/dist/react/components/svgs/nodes/communicationDiagram/CommunicationObjectNameSVG.d.ts +0 -6
  160. package/dist/react/components/svgs/nodes/communicationDiagram/index.d.ts +0 -1
  161. package/dist/react/components/svgs/nodes/componentDiagram/ComponentInterfaceNodeSVG.d.ts +0 -9
  162. package/dist/react/components/svgs/nodes/componentDiagram/ComponentNodeSVG.d.ts +0 -7
  163. package/dist/react/components/svgs/nodes/componentDiagram/ComponentSubsystemNodeSVG.d.ts +0 -7
  164. package/dist/react/components/svgs/nodes/componentDiagram/index.d.ts +0 -3
  165. package/dist/react/components/svgs/nodes/deploymentDiagram/DeploymentArtifactSVG.d.ts +0 -7
  166. package/dist/react/components/svgs/nodes/deploymentDiagram/DeploymentComponentSVG.d.ts +0 -7
  167. package/dist/react/components/svgs/nodes/deploymentDiagram/DeploymentInterfaceSVG.d.ts +0 -9
  168. package/dist/react/components/svgs/nodes/deploymentDiagram/DeploymentNodeSVG.d.ts +0 -7
  169. package/dist/react/components/svgs/nodes/deploymentDiagram/index.d.ts +0 -4
  170. package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartDecisionNodeSVG.d.ts +0 -7
  171. package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartFunctionCallNodeSVG.d.ts +0 -7
  172. package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartInputOutputNodeSVG.d.ts +0 -7
  173. package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartProcessNodeSVG.d.ts +0 -7
  174. package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartTerminalNodeSVG.d.ts +0 -7
  175. package/dist/react/components/svgs/nodes/flowchartDiagram/index.d.ts +0 -5
  176. package/dist/react/components/svgs/nodes/index.d.ts +0 -13
  177. package/dist/react/components/svgs/nodes/objectDiagram/ObjectNameSVG.d.ts +0 -7
  178. package/dist/react/components/svgs/nodes/objectDiagram/index.d.ts +0 -1
  179. package/dist/react/components/svgs/nodes/petriNetDiagram/PetriNetPlaceSVG.d.ts +0 -7
  180. package/dist/react/components/svgs/nodes/petriNetDiagram/PetriNetTransitionSVG.d.ts +0 -7
  181. package/dist/react/components/svgs/nodes/petriNetDiagram/index.d.ts +0 -2
  182. package/dist/react/components/svgs/nodes/reachabilityGraphDiagram/ReachabilityGraphMarkingSVG.d.ts +0 -7
  183. package/dist/react/components/svgs/nodes/reachabilityGraphDiagram/index.d.ts +0 -1
  184. package/dist/react/components/svgs/nodes/sfcDiagram/SfcActionTableNodeSVG.d.ts +0 -7
  185. package/dist/react/components/svgs/nodes/sfcDiagram/SfcJumpNodeSVG.d.ts +0 -7
  186. package/dist/react/components/svgs/nodes/sfcDiagram/SfcStartNodeSVG.d.ts +0 -7
  187. package/dist/react/components/svgs/nodes/sfcDiagram/SfcStepNodeSVG.d.ts +0 -7
  188. package/dist/react/components/svgs/nodes/sfcDiagram/SfcTransitionBranchNodeSVG.d.ts +0 -7
  189. package/dist/react/components/svgs/nodes/sfcDiagram/index.d.ts +0 -5
  190. package/dist/react/components/svgs/nodes/syntaxTreeDiagram/SyntaxTreeNonterminalNodeSVG.d.ts +0 -7
  191. package/dist/react/components/svgs/nodes/syntaxTreeDiagram/SyntaxTreeTerminalNodeSVG.d.ts +0 -7
  192. package/dist/react/components/svgs/nodes/syntaxTreeDiagram/index.d.ts +0 -2
  193. package/dist/react/components/svgs/nodes/useCaseDiagram/UseCaseActorNodeSVG.d.ts +0 -7
  194. package/dist/react/components/svgs/nodes/useCaseDiagram/UseCaseNodeSVG.d.ts +0 -7
  195. package/dist/react/components/svgs/nodes/useCaseDiagram/UseCaseSystemNodeSVG.d.ts +0 -7
  196. package/dist/react/components/svgs/nodes/useCaseDiagram/index.d.ts +0 -3
  197. package/dist/react/components/toolbars/NodeToolbar.d.ts +0 -7
  198. package/dist/react/components/toolbars/edgeToolBar/CustomEdgeToolBar.d.ts +0 -12
  199. package/dist/react/components/toolbars/edgeToolBar/index.d.ts +0 -1
  200. package/dist/react/components/toolbars/index.d.ts +0 -1
  201. package/dist/react/components/ui/DividerLine.d.ts +0 -9
  202. package/dist/react/components/ui/HeaderSwitchElement.d.ts +0 -7
  203. package/dist/react/components/ui/PrimaryButton.d.ts +0 -8
  204. package/dist/react/components/ui/StereotypeButtonGroup.d.ts +0 -8
  205. package/dist/react/components/ui/StyleEditor/ColorButtons.d.ts +0 -11
  206. package/dist/react/components/ui/StyleEditor/EdgeStyleEditor.d.ts +0 -11
  207. package/dist/react/components/ui/StyleEditor/NodeStyleEditor.d.ts +0 -22
  208. package/dist/react/components/ui/StyleEditor/index.d.ts +0 -2
  209. package/dist/react/components/ui/TextField.d.ts +0 -3
  210. package/dist/react/components/ui/Typography.d.ts +0 -3
  211. package/dist/react/components/ui/index.d.ts +0 -7
  212. package/dist/react/components/wrapper/AssessmentSelectableWrapper.d.ts +0 -11
  213. package/dist/react/components/wrapper/FeedbackDropzone.d.ts +0 -10
  214. package/dist/react/components/wrapper/index.d.ts +0 -2
  215. package/dist/react/constants.d.ts +0 -261
  216. package/dist/react/edges/Connection.d.ts +0 -36
  217. package/dist/react/edges/EdgeProps.d.ts +0 -24
  218. package/dist/react/edges/GenericEdge.d.ts +0 -78
  219. package/dist/react/edges/edgeTypes/ActivityDiagramEdge.d.ts +0 -2
  220. package/dist/react/edges/edgeTypes/BPMNDiagramEdge.d.ts +0 -2
  221. package/dist/react/edges/edgeTypes/ClassDiagramEdge.d.ts +0 -2
  222. package/dist/react/edges/edgeTypes/CommunicationDiagramEdge.d.ts +0 -2
  223. package/dist/react/edges/edgeTypes/ComponentDiagramEdge.d.ts +0 -2
  224. package/dist/react/edges/edgeTypes/DeploymentDiagramEdge.d.ts +0 -2
  225. package/dist/react/edges/edgeTypes/FlowChartEdge.d.ts +0 -2
  226. package/dist/react/edges/edgeTypes/ObjectDiagramEdge.d.ts +0 -2
  227. package/dist/react/edges/edgeTypes/PetriNetEdge.d.ts +0 -2
  228. package/dist/react/edges/edgeTypes/ReachabilityGraphArc.d.ts +0 -2
  229. package/dist/react/edges/edgeTypes/SfcDiagramEdge.d.ts +0 -2
  230. package/dist/react/edges/edgeTypes/SyntaxTreeEdge.d.ts +0 -2
  231. package/dist/react/edges/edgeTypes/UseCaseDiagramEdge.d.ts +0 -2
  232. package/dist/react/edges/edgeTypes/index.d.ts +0 -6
  233. package/dist/react/edges/index.d.ts +0 -3
  234. package/dist/react/edges/labelTypes/EdgeEndLabels.d.ts +0 -19
  235. package/dist/react/edges/labelTypes/EdgeIncludeExtendLabel.d.ts +0 -10
  236. package/dist/react/edges/labelTypes/EdgeMiddleLabels.d.ts +0 -18
  237. package/dist/react/edges/labelTypes/EdgeMultipleLabels.d.ts +0 -14
  238. package/dist/react/edges/labelTypes/messageLayout.d.ts +0 -51
  239. package/dist/react/edges/types.d.ts +0 -153
  240. package/dist/react/enums/Quadrant.d.ts +0 -6
  241. package/dist/react/enums/index.d.ts +0 -1
  242. package/dist/react/export/exportErrors.d.ts +0 -10
  243. package/dist/react/export/index.d.ts +0 -13
  244. package/dist/react/export/normalizeExportSvg.d.ts +0 -16
  245. package/dist/react/export/preProcessSvgForPdf.d.ts +0 -20
  246. package/dist/react/export/svgToPdf.d.ts +0 -17
  247. package/dist/react/export/svgToPng.d.ts +0 -38
  248. package/dist/react/exportFonts-DSRUaduf.js +0 -20
  249. package/dist/react/exportStyles-yVX7Dykt.js +0 -6
  250. package/dist/react/fontStack.d.ts +0 -14
  251. package/dist/react/hooks/index.d.ts +0 -18
  252. package/dist/react/hooks/useAssessmentSelection.d.ts +0 -13
  253. package/dist/react/hooks/useConnect.d.ts +0 -7
  254. package/dist/react/hooks/useDiagramModifiable.d.ts +0 -1
  255. package/dist/react/hooks/useDragOver.d.ts +0 -2
  256. package/dist/react/hooks/useDropFeedback.d.ts +0 -7
  257. package/dist/react/hooks/useEdgeConfig.d.ts +0 -83
  258. package/dist/react/hooks/useEdgeLineJumps.d.ts +0 -27
  259. package/dist/react/hooks/useEdgeToolbar.d.ts +0 -6
  260. package/dist/react/hooks/useEdges.d.ts +0 -9
  261. package/dist/react/hooks/useElementInteractions.d.ts +0 -6
  262. package/dist/react/hooks/useGoToNextAssessment.d.ts +0 -1
  263. package/dist/react/hooks/useHandleDelete.d.ts +0 -1
  264. package/dist/react/hooks/useHandleFinder.d.ts +0 -11
  265. package/dist/react/hooks/useHandleOnResize.d.ts +0 -4
  266. package/dist/react/hooks/useIsOnlyThisElementSelected.d.ts +0 -1
  267. package/dist/react/hooks/useKeyboardShortcuts.d.ts +0 -1
  268. package/dist/react/hooks/useNodeDrag.d.ts +0 -2
  269. package/dist/react/hooks/useNodeDragStop.d.ts +0 -2
  270. package/dist/react/hooks/usePaneClicked.d.ts +0 -3
  271. package/dist/react/hooks/usePopoverAnchor.d.ts +0 -26
  272. package/dist/react/hooks/useReactiveElement.d.ts +0 -10
  273. package/dist/react/hooks/useReconnect.d.ts +0 -2
  274. package/dist/react/hooks/useRemoteDraggingNodes.d.ts +0 -20
  275. package/dist/react/hooks/useSelectionForCopyPaste.d.ts +0 -10
  276. package/dist/react/hooks/useStepPathEdge.d.ts +0 -62
  277. package/dist/react/hooks/useStraightPathEdge.d.ts +0 -23
  278. package/dist/react/hooks/useViewPointCenter.d.ts +0 -2
  279. package/dist/react/index.d.ts +0 -9
  280. package/dist/react/internals.d.ts +0 -5
  281. package/dist/react/logger.d.ts +0 -10
  282. package/dist/react/nodes/TitleAndDescriptionNode.d.ts +0 -7
  283. package/dist/react/nodes/activityDiagram/Activity.d.ts +0 -3
  284. package/dist/react/nodes/activityDiagram/ActivityActionNode.d.ts +0 -3
  285. package/dist/react/nodes/activityDiagram/ActivityFinalNode.d.ts +0 -3
  286. package/dist/react/nodes/activityDiagram/ActivityForkNode.d.ts +0 -3
  287. package/dist/react/nodes/activityDiagram/ActivityForkNodeHorizontal.d.ts +0 -3
  288. package/dist/react/nodes/activityDiagram/ActivityInitialNode.d.ts +0 -3
  289. package/dist/react/nodes/activityDiagram/ActivityMergeNode.d.ts +0 -3
  290. package/dist/react/nodes/activityDiagram/ActivityObjectNode.d.ts +0 -3
  291. package/dist/react/nodes/activityDiagram/ActivitySwimlane.d.ts +0 -3
  292. package/dist/react/nodes/activityDiagram/index.d.ts +0 -9
  293. package/dist/react/nodes/bpmn/BPMNAnnotation.d.ts +0 -3
  294. package/dist/react/nodes/bpmn/BPMNCallActivity.d.ts +0 -3
  295. package/dist/react/nodes/bpmn/BPMNDataObject.d.ts +0 -3
  296. package/dist/react/nodes/bpmn/BPMNDataStore.d.ts +0 -3
  297. package/dist/react/nodes/bpmn/BPMNEndEvent.d.ts +0 -3
  298. package/dist/react/nodes/bpmn/BPMNGateway.d.ts +0 -3
  299. package/dist/react/nodes/bpmn/BPMNGroup.d.ts +0 -3
  300. package/dist/react/nodes/bpmn/BPMNIntermediateEvent.d.ts +0 -3
  301. package/dist/react/nodes/bpmn/BPMNPool.d.ts +0 -3
  302. package/dist/react/nodes/bpmn/BPMNStartEvent.d.ts +0 -3
  303. package/dist/react/nodes/bpmn/BPMNSubprocess.d.ts +0 -3
  304. package/dist/react/nodes/bpmn/BPMNTask.d.ts +0 -3
  305. package/dist/react/nodes/bpmn/BPMNTransaction.d.ts +0 -3
  306. package/dist/react/nodes/bpmn/index.d.ts +0 -13
  307. package/dist/react/nodes/classDiagram/Class.d.ts +0 -3
  308. package/dist/react/nodes/classDiagram/ColorDescription.d.ts +0 -3
  309. package/dist/react/nodes/classDiagram/Package.d.ts +0 -3
  310. package/dist/react/nodes/classDiagram/index.d.ts +0 -3
  311. package/dist/react/nodes/communicationDiagram/CommunicationObjectName.d.ts +0 -3
  312. package/dist/react/nodes/communicationDiagram/index.d.ts +0 -1
  313. package/dist/react/nodes/componentDiagram/Component.d.ts +0 -3
  314. package/dist/react/nodes/componentDiagram/ComponentInterface.d.ts +0 -3
  315. package/dist/react/nodes/componentDiagram/ComponentSubsystem.d.ts +0 -3
  316. package/dist/react/nodes/componentDiagram/index.d.ts +0 -3
  317. package/dist/react/nodes/deploymentDiagram/DeploymentArtifact.d.ts +0 -3
  318. package/dist/react/nodes/deploymentDiagram/DeploymentComponent.d.ts +0 -3
  319. package/dist/react/nodes/deploymentDiagram/DeploymentInterface.d.ts +0 -3
  320. package/dist/react/nodes/deploymentDiagram/DeploymentNode.d.ts +0 -3
  321. package/dist/react/nodes/deploymentDiagram/index.d.ts +0 -4
  322. package/dist/react/nodes/flowchart/FlowchartDecision.d.ts +0 -3
  323. package/dist/react/nodes/flowchart/FlowchartFunctionCall.d.ts +0 -3
  324. package/dist/react/nodes/flowchart/FlowchartInputOutput.d.ts +0 -3
  325. package/dist/react/nodes/flowchart/FlowchartProcess.d.ts +0 -3
  326. package/dist/react/nodes/flowchart/FlowchartTerminal.d.ts +0 -3
  327. package/dist/react/nodes/flowchart/index.d.ts +0 -5
  328. package/dist/react/nodes/index.d.ts +0 -8
  329. package/dist/react/nodes/objectDiagram/ObjectName.d.ts +0 -3
  330. package/dist/react/nodes/objectDiagram/index.d.ts +0 -1
  331. package/dist/react/nodes/petriNetDiagram/PetriNetPlace.d.ts +0 -3
  332. package/dist/react/nodes/petriNetDiagram/PetriNetTransition.d.ts +0 -3
  333. package/dist/react/nodes/petriNetDiagram/index.d.ts +0 -2
  334. package/dist/react/nodes/reachabilityGraphDiagram/ReachabilityGraphMarking.d.ts +0 -3
  335. package/dist/react/nodes/reachabilityGraphDiagram/index.d.ts +0 -1
  336. package/dist/react/nodes/sfcDiagram/SfcActionTable.d.ts +0 -3
  337. package/dist/react/nodes/sfcDiagram/SfcJump.d.ts +0 -3
  338. package/dist/react/nodes/sfcDiagram/SfcStart.d.ts +0 -3
  339. package/dist/react/nodes/sfcDiagram/SfcStep.d.ts +0 -3
  340. package/dist/react/nodes/sfcDiagram/SfcTransitionBranch.d.ts +0 -3
  341. package/dist/react/nodes/sfcDiagram/index.d.ts +0 -5
  342. package/dist/react/nodes/syntaxTreeDiagram/SyntaxTreeNonterminal.d.ts +0 -3
  343. package/dist/react/nodes/syntaxTreeDiagram/SyntaxTreeTerminal.d.ts +0 -3
  344. package/dist/react/nodes/types.d.ts +0 -73
  345. package/dist/react/nodes/useCaseDiagram/UseCase.d.ts +0 -3
  346. package/dist/react/nodes/useCaseDiagram/UseCaseActor.d.ts +0 -3
  347. package/dist/react/nodes/useCaseDiagram/UseCaseSystem.d.ts +0 -3
  348. package/dist/react/nodes/useCaseDiagram/index.d.ts +0 -3
  349. package/dist/react/nodes/wrappers/DefaultNodeWrapper.d.ts +0 -49
  350. package/dist/react/nodes/wrappers/index.d.ts +0 -1
  351. package/dist/react/overlay/OverlayLayer.d.ts +0 -8
  352. package/dist/react/overlay/RegionMount.d.ts +0 -10
  353. package/dist/react/overlay/overlayStore.d.ts +0 -20
  354. package/dist/react/overlay/types.d.ts +0 -48
  355. package/dist/react/react.d.ts +0 -5
  356. package/dist/react/react.js +0 -28177
  357. package/dist/react/services/migration/EdgeTransformer.d.ts +0 -11
  358. package/dist/react/store/alignmentGuidesStore.d.ts +0 -13
  359. package/dist/react/store/assessmentSelectionStore.d.ts +0 -17
  360. package/dist/react/store/context.d.ts +0 -22
  361. package/dist/react/store/diagramStore.d.ts +0 -70
  362. package/dist/react/store/edgeGeometryStore.d.ts +0 -18
  363. package/dist/react/store/index.d.ts +0 -7
  364. package/dist/react/store/metadataStore.d.ts +0 -39
  365. package/dist/react/store/popoverStore.d.ts +0 -9
  366. package/dist/react/styles/theme.d.ts +0 -51
  367. package/dist/react/sync/headless.d.ts +0 -16
  368. package/dist/react/sync/perfCounters.d.ts +0 -6
  369. package/dist/react/sync/ydoc.d.ts +0 -9
  370. package/dist/react/sync/yjsSync.d.ts +0 -63
  371. package/dist/react/types/DiagramType.d.ts +0 -16
  372. package/dist/react/types/SVG.d.ts +0 -8
  373. package/dist/react/types/index.d.ts +0 -3
  374. package/dist/react/types/locationPopover.d.ts +0 -5
  375. package/dist/react/types/nodes/DropNodeDate.d.ts +0 -7
  376. package/dist/react/types/nodes/NodeProps.d.ts +0 -101
  377. package/dist/react/types/nodes/enums/ClassType.d.ts +0 -5
  378. package/dist/react/types/nodes/enums/index.d.ts +0 -1
  379. package/dist/react/types/nodes/index.d.ts +0 -3
  380. package/dist/react/typings.d.ts +0 -186
  381. package/dist/react/utils/alignmentUtils.d.ts +0 -32
  382. package/dist/react/utils/bpmnConstraints.d.ts +0 -5
  383. package/dist/react/utils/collaboration.d.ts +0 -19
  384. package/dist/react/utils/copyPasteUtils.d.ts +0 -32
  385. package/dist/react/utils/deepPartial.d.ts +0 -3
  386. package/dist/react/utils/diagramTypeUtils.d.ts +0 -6
  387. package/dist/react/utils/edgeUtils.d.ts +0 -167
  388. package/dist/react/utils/exportFonts.d.ts +0 -11
  389. package/dist/react/utils/exportStyles.d.ts +0 -30
  390. package/dist/react/utils/exportUtils.d.ts +0 -11
  391. package/dist/react/utils/geometry/bendHandles.d.ts +0 -42
  392. package/dist/react/utils/geometry/edgeLabelLayout.d.ts +0 -123
  393. package/dist/react/utils/geometry/interfaceLabelLayout.d.ts +0 -44
  394. package/dist/react/utils/helpers.d.ts +0 -14
  395. package/dist/react/utils/index.d.ts +0 -19
  396. package/dist/react/utils/interactiveUtils.d.ts +0 -6
  397. package/dist/react/utils/layoutUtils.d.ts +0 -30
  398. package/dist/react/utils/nodeUtils.d.ts +0 -15
  399. package/dist/react/utils/paletteLayout.d.ts +0 -70
  400. package/dist/react/utils/pathParsing.d.ts +0 -54
  401. package/dist/react/utils/popoverUtils.d.ts +0 -3
  402. package/dist/react/utils/quadrantUtils.d.ts +0 -3
  403. package/dist/react/utils/requiredInterfaceUtils.d.ts +0 -18
  404. package/dist/react/utils/storeUtils.d.ts +0 -1
  405. package/dist/react/utils/svgTextLayout.d.ts +0 -86
  406. package/dist/react/utils/swimlaneUtils.d.ts +0 -58
  407. package/dist/react/utils/textUtils.d.ts +0 -1
  408. package/dist/react/utils/v3Typings.d.ts +0 -135
  409. package/dist/react/utils/versionConverter.d.ts +0 -60
  410. package/dist/yjsSync-BCNFF_EI.js +0 -45418
@@ -1,5 +0,0 @@
1
- const s = "Inter, system-ui, Avenir, Helvetica, Arial, sans-serif", e = 16;
2
- export {
3
- e as D,
4
- s as F
5
- };
@@ -1,9 +0,0 @@
1
- import { ReactFlowInstance } from '@xyflow/react';
2
- import { CollaborationAwarenessApi, CollaborationLayerOptions } from './components/collaboration/CollaborationLayer';
3
- interface AppProps {
4
- onReactFlowInit: (instance: ReactFlowInstance) => void;
5
- collaboration: CollaborationLayerOptions;
6
- awareness: CollaborationAwarenessApi;
7
- }
8
- export declare function AppWithProvider(props: AppProps): import("react").JSX.Element;
9
- export {};
@@ -1,92 +0,0 @@
1
- Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
2
-
3
- This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
- This license is copied below, and is also available with a FAQ at:
5
- http://scripts.sil.org/OFL
6
-
7
- -----------------------------------------------------------
8
- SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
9
- -----------------------------------------------------------
10
-
11
- PREAMBLE
12
- The goals of the Open Font License (OFL) are to stimulate worldwide
13
- development of collaborative font projects, to support the font creation
14
- efforts of academic and linguistic communities, and to provide a free and
15
- open framework in which fonts may be shared and improved in partnership
16
- with others.
17
-
18
- The OFL allows the licensed fonts to be used, studied, modified and
19
- redistributed freely as long as they are not sold by themselves. The
20
- fonts, including any derivative works, can be bundled, embedded,
21
- redistributed and/or sold with any software provided that any reserved
22
- names are not used by derivative works. The fonts and derivatives,
23
- however, cannot be released under any other type of license. The
24
- requirement for fonts to remain under this license does not apply
25
- to any document created using the fonts or their derivatives.
26
-
27
- DEFINITIONS
28
- "Font Software" refers to the set of files released by the Copyright
29
- Holder(s) under this license and clearly marked as such. This may
30
- include source files, build scripts and documentation.
31
-
32
- "Reserved Font Name" refers to any names specified as such after the
33
- copyright statement(s).
34
-
35
- "Original Version" refers to the collection of Font Software components as
36
- distributed by the Copyright Holder(s).
37
-
38
- "Modified Version" refers to any derivative made by adding to, deleting,
39
- or substituting -- in part or in whole -- any of the components of the
40
- Original Version, by changing formats or by porting the Font Software to a
41
- new environment.
42
-
43
- "Author" refers to any designer, engineer, programmer, technical
44
- writer or other person who contributed to the Font Software.
45
-
46
- PERMISSION AND CONDITIONS
47
- Permission is hereby granted, free of charge, to any person obtaining
48
- a copy of the Font Software, to use, study, copy, merge, embed, modify,
49
- redistribute, and sell modified and unmodified copies of the Font
50
- Software, subject to the following conditions:
51
-
52
- 1) Neither the Font Software nor any of its individual components,
53
- in Original or Modified Versions, may be sold by itself.
54
-
55
- 2) Original or Modified Versions of the Font Software may be bundled,
56
- redistributed and/or sold with any software, provided that each copy
57
- contains the above copyright notice and this license. These can be
58
- included either as stand-alone text files, human-readable headers or
59
- in the appropriate machine-readable metadata fields within text or
60
- binary files as long as those fields can be easily viewed by the user.
61
-
62
- 3) No Modified Version of the Font Software may use the Reserved Font
63
- Name(s) unless explicit written permission is granted by the corresponding
64
- Copyright Holder. This restriction only applies to the primary font name as
65
- presented to the users.
66
-
67
- 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
68
- Software shall not be used to promote, endorse or advertise any
69
- Modified Version, except to acknowledge the contribution(s) of the
70
- Copyright Holder(s) and the Author(s) or with their explicit written
71
- permission.
72
-
73
- 5) The Font Software, modified or unmodified, in part or in whole,
74
- must be distributed entirely under this license, and must not be
75
- distributed under any other license. The requirement for fonts to
76
- remain under this license does not apply to any document created
77
- using the Font Software.
78
-
79
- TERMINATION
80
- This license becomes null and void if any of the above conditions are
81
- not met.
82
-
83
- DISCLAIMER
84
- THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
85
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
86
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
87
- OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
88
- COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
89
- INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
90
- DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91
- FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
92
- OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -1,184 +0,0 @@
1
- import { Node, Edge } from '@xyflow/react';
2
- import { UMLDiagramType } from './types';
3
- import { OverlayControlInput, OverlayRegion, OverlaySide } from './overlay/types';
4
- import { SendBroadcastMessage } from './sync/yjsSync';
5
- import * as Apollon from "./typings";
6
- export declare class ApollonEditor {
7
- private root;
8
- private reactFlowInstance;
9
- private readonly syncManager;
10
- private readonly ydoc;
11
- private readonly diagramStore;
12
- private readonly metadataStore;
13
- private readonly popoverStore;
14
- private readonly assessmentSelectionStore;
15
- private readonly overlayStore;
16
- private readonly hostRegionEls;
17
- private subscribers;
18
- constructor(element: HTMLElement, options?: Apollon.ApollonOptions);
19
- private setReactFlowInstance;
20
- getNodes(): Node[];
21
- getEdges(): Edge[];
22
- getViewport(): {
23
- x: number;
24
- y: number;
25
- zoom: number;
26
- } | null;
27
- screenToFlowPosition(position: {
28
- x: number;
29
- y: number;
30
- }): import('@xyflow/react').XYPosition | null;
31
- flowToScreenPosition(position: {
32
- x: number;
33
- y: number;
34
- }): import('@xyflow/react').XYPosition | null;
35
- /**
36
- * Zoom/pan so the whole diagram fits, capped at `maxZoom: 1.0`. Retries up to
37
- * 10 animation frames until every node is measured.
38
- * @param options.padding - Scalar fraction (default `0.15`), or per-side px
39
- * that adds to a 16px gutter. A per-side object forces the inset-aware path.
40
- * @param options.duration - Animation duration in ms (default `200`).
41
- * @param options.respectInsets - Pad the fit by reserved overlay insets
42
- * (header, rails, …). Default `true`.
43
- */
44
- fitView(options?: {
45
- padding?: number | Partial<Record<OverlaySide, number>>;
46
- duration?: number;
47
- /** Pad the fit by the reserved overlay insets (header, rails, …). */
48
- respectInsets?: boolean;
49
- }): void;
50
- /**
51
- * Register a floating control, returning a disposer. Re-using an id replaces
52
- * (idempotent / StrictMode-safe). Pick a façade: a React host →
53
- * `<ApollonControl>`; a non-React host (or one that needs its own React
54
- * root/context) → `getRegionElement` + `createPortal`; a one-off imperative
55
- * widget → `addControl`.
56
- * @param control - id, target region, a `render` thunk, and optional layout
57
- * options ({@link OverlayControlInput}).
58
- * @returns A disposer that unregisters this control; safe to call twice.
59
- * @throws If `id` is empty or `region` is not a known region — mistakes fail
60
- * loudly at the edge, not silently in the renderer.
61
- */
62
- addControl(control: OverlayControlInput): () => void;
63
- /**
64
- * Patch a registered control's options/renderer (a no-op if absent).
65
- * @param id - The control's immutable id (an `id` in `patch` is ignored).
66
- * @param patch - Partial options/renderer merged over the existing control.
67
- */
68
- updateControl(id: string, patch: Partial<OverlayControlInput>): void;
69
- /**
70
- * @param id - A control id.
71
- * @returns `true` if a control with this id is currently registered.
72
- */
73
- hasControl(id: string): boolean;
74
- /**
75
- * A stable DOM node anchored in `region`, for hosts that render their own
76
- * React into it (via `createPortal`) to keep host context. Auto-measured, so
77
- * the diagram makes room for whatever the host mounts. Lifetime = the editor;
78
- * `releaseRegionElement` unregisters it. Reserved id: `apollon:host:<region>`.
79
- * @param region - The region to anchor the node in.
80
- * @returns The same node for the lifetime of one acquire; `releaseRegionElement`
81
- * drops it and the next call returns a fresh node.
82
- * @throws If `region` is not a known region.
83
- */
84
- getRegionElement(region: OverlayRegion): HTMLElement;
85
- /**
86
- * Release a region acquired via {@link getRegionElement} (unregister + drop
87
- * the cached node); a later `getRegionElement(region)` creates a fresh node.
88
- * @param region - The region whose host node to release.
89
- */
90
- releaseRegionElement(region: OverlayRegion): void;
91
- set diagramType(type: UMLDiagramType);
92
- destroy(): void;
93
- /** Renders a model to SVG via a hidden, off-screen mount. */
94
- static exportModelAsSvg(model: Apollon.UMLModel, options?: Apollon.ExportOptions): Promise<Apollon.SVG>;
95
- /**
96
- * exports current model as svg
97
- * @param options options to change the export behavior (add margin, exclude element ...)
98
- */
99
- exportAsSVG(options?: Apollon.ExportOptions): Promise<Apollon.SVG>;
100
- private getNewSubscriptionId;
101
- subscribeToModelChange(callback: (state: Apollon.UMLModel) => void): number;
102
- subscribeToDiagramNameChange(callback: (diagramTitle: string) => void): number;
103
- subscribeToAssessmentSelection(callback: (selectedElementIds: string[]) => void): number;
104
- subscribeToSelectionChange(callback: (selectedElementIds: string[]) => void): number;
105
- subscribeToAwarenessChanges(callback: (states: Map<number, Apollon.CollaborationState>) => void): number;
106
- subscribeToCollaboratorChanges(callback: (collaborators: Apollon.CollaboratorInfo[]) => void): number;
107
- unsubscribe(subscriberId: number): void;
108
- sendBroadcastMessage(sendFn: SendBroadcastMessage): void;
109
- receiveBroadcastedMessage(base64Data: string): void;
110
- /**
111
- * Push the entire local Yjs document to peers. Hosts should call this on
112
- * every (re)connect so any edits made while the transport was closed are
113
- * absorbed by the room. See `YjsSync.broadcastFullState`.
114
- */
115
- broadcastFullState(): void;
116
- setLocalAwarenessUser(user: Apollon.CollaborationUser): void;
117
- setLocalAwarenessCursor(cursor: Apollon.CollaborationCursor | null): void;
118
- setLocalAwarenessSelectedElement(selectedElementId: string | null): void;
119
- setLocalAwarenessState(state: Partial<Apollon.CollaborationState>): void;
120
- getLocalAwarenessClientId(): number;
121
- getCollaborators(): Apollon.CollaboratorInfo[];
122
- updateDiagramTitle(name: string): void;
123
- /**
124
- * Toggles the editor's read-only state at runtime. Used by hosting apps
125
- * to lock the canvas while previewing an immutable snapshot (e.g. the
126
- * version-history preview), without tearing down and re-mounting the
127
- * editor instance.
128
- */
129
- setReadonly(readonly: boolean): void;
130
- /** Live-toggle modeling vs assessment vs exporting mode. */
131
- setMode(mode: Apollon.ApollonMode): void;
132
- /** Live-toggle whether the canvas captures page scroll. */
133
- setScrollLock(scrollLock: boolean): void;
134
- /**
135
- * Toggle preview-overlay mode. When `true`, subsequent `model = …`
136
- * assignments and other store mutators update the local Zustand caches
137
- * (so the canvas displays the overlay) WITHOUT writing to the Yjs
138
- * doc — leaving the collaborative document untouched. Yjs observers
139
- * also stop propagating peer-driven updates to Zustand, so the overlay
140
- * doesn't flicker as collaborators edit the live diagram.
141
- *
142
- * On flip-off the local Zustand state is rebuilt from the (now
143
- * peer-augmented) Yjs maps so the canvas catches up to everything
144
- * collaborators committed during the preview.
145
- *
146
- * Hosts should call `setPreviewMode(true)` before applying a preview
147
- * model and `setPreviewMode(false)` on exit. The Yjs doc never needs
148
- * to be "restored" from a snapshot because it was never disturbed.
149
- */
150
- setPreviewMode(active: boolean): void;
151
- toggleInteractiveElementsMode(forceEnabled?: boolean): void;
152
- getInteractiveForSerialization(): Apollon.InteractiveElements | undefined;
153
- getDiagramMetadata(): {
154
- diagramTitle: string;
155
- diagramType: "ClassDiagram" | "ObjectDiagram" | "ActivityDiagram" | "UseCaseDiagram" | "CommunicationDiagram" | "ComponentDiagram" | "DeploymentDiagram" | "PetriNet" | "ReachabilityGraph" | "SyntaxTree" | "Flowchart" | "BPMN" | "Sfc";
156
- };
157
- get model(): Apollon.UMLModel;
158
- set model(model: Apollon.UMLModel);
159
- /**
160
- * Host-driven element highlighting. Paints a translucent overlay over each
161
- * given node / edge / class-member id in the supplied CSS color — the v4
162
- * replacement for v3's `UMLModelElement.highlight` field and
163
- * `ApollonEditor.select()`. Typical hosts: an assessment editor marking
164
- * elements that are missing feedback, or Athena marking elements that have
165
- * automatic-feedback suggestions.
166
- *
167
- * The highlight is an ephemeral view overlay: it is NOT written into the
168
- * model, NOT serialized by `get model`, and NOT shared with collaborators.
169
- * Each call replaces the previous highlight set; pass `null` (or an empty
170
- * map) to clear all highlights. Passing `undefined` is a no-op.
171
- *
172
- * @param highlights map / record of element id -> CSS color (any valid CSS
173
- * color string, e.g. `"rgba(23,162,184,0.3)"`), or `null` to clear.
174
- */
175
- setElementHighlights(highlights: Map<string, string> | Record<string, string> | null | undefined): void;
176
- /** Returns a copy of the current highlight record (id -> CSS color). */
177
- getElementHighlights(): Record<string, string>;
178
- getSelectedElements(): string[];
179
- get view(): Apollon.ApollonView;
180
- set view(view: Apollon.ApollonView);
181
- addOrUpdateAssessment(assessment: Apollon.Assessment): void;
182
- static generateInitialSyncMessage(): string;
183
- static generateInitialAwarenessSyncMessage(): string;
184
- }
@@ -1 +0,0 @@
1
- export declare const AlignmentGuides: () => import("react").JSX.Element;
@@ -1,10 +0,0 @@
1
- import { FC } from 'react';
2
- interface AssessmentSelectableElementProps {
3
- elementId: string;
4
- width: number;
5
- itemHeight: number;
6
- yOffset?: number;
7
- children: React.ReactNode;
8
- }
9
- export declare const AssessmentSelectableElement: FC<AssessmentSelectableElementProps>;
10
- export {};
@@ -1 +0,0 @@
1
- export declare function AssessmentSelectionDebug(): import("react").JSX.Element | null;
@@ -1 +0,0 @@
1
- export declare const CustomBackground: () => import("react").JSX.Element;
@@ -1,8 +0,0 @@
1
- /**
2
- * Bottom-left control cluster. Every button shares one idiom
3
- * (`apollon-chrome-iconbtn`): borderless on the glass pane, state shown as a
4
- * surface-layer fill. Reads left→right as view (zoom-out/in, fit, a clickable
5
- * %-reset) then, past a hairline, history (undo/redo). React Flow renders its
6
- * built-in zoom/fit buttons first; our children follow.
7
- */
8
- export declare const CustomControls: () => import("react").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const CustomMiniMap: () => import("react").JSX.Element;
@@ -1,13 +0,0 @@
1
- import { default as React } from 'react';
2
- import { DropElementConfig } from '../constants';
3
- interface DraggableGhostProps {
4
- children: React.ReactNode;
5
- dropElementConfig: DropElementConfig;
6
- /**
7
- * Visual scale of the palette preview.
8
- * Used to convert pointer offsets into node-placement offsets.
9
- */
10
- previewScale?: number;
11
- }
12
- export declare const DraggableGhost: React.FC<DraggableGhostProps>;
13
- export {};
@@ -1,4 +0,0 @@
1
- import { SVGAttributes } from 'react';
2
- type Props = SVGAttributes<SVGSVGElement>;
3
- export declare const ArrowBackIcon: ({ width, height, ...props }: Props) => import("react").JSX.Element;
4
- export {};
@@ -1,4 +0,0 @@
1
- import { SVGAttributes } from 'react';
2
- type Props = SVGAttributes<SVGSVGElement>;
3
- export declare const ArrowForwardIcon: ({ width, height, ...props }: Props) => import("react").JSX.Element;
4
- export {};
@@ -1,4 +0,0 @@
1
- import { SVGAttributes } from 'react';
2
- type Props = SVGAttributes<SVGSVGElement>;
3
- export declare const CheckIcon: ({ width, height, ...props }: Props) => import("react").JSX.Element;
4
- export {};
@@ -1,4 +0,0 @@
1
- import { SVGAttributes } from 'react';
2
- type Props = SVGAttributes<SVGSVGElement>;
3
- export declare const CrossIcon: ({ width, height, ...props }: Props) => import("react").JSX.Element;
4
- export {};
@@ -1,4 +0,0 @@
1
- import { SVGAttributes } from 'react';
2
- type Props = SVGAttributes<SVGSVGElement>;
3
- export declare const DeleteIcon: ({ width, height, fill, ...props }: Props) => import("react").JSX.Element;
4
- export {};
@@ -1,4 +0,0 @@
1
- import { SVGAttributes } from 'react';
2
- type Props = SVGAttributes<SVGSVGElement>;
3
- export declare const DragHandleIcon: ({ width, height, fill, ...props }: Props) => import("react").JSX.Element;
4
- export {};
@@ -1,4 +0,0 @@
1
- import { SVGAttributes } from 'react';
2
- type Props = SVGAttributes<SVGSVGElement>;
3
- export declare const EditIcon: ({ width, height, fill, ...props }: Props) => import("react").JSX.Element;
4
- export {};
@@ -1,4 +0,0 @@
1
- import { SVGAttributes } from 'react';
2
- type Props = SVGAttributes<SVGSVGElement>;
3
- export declare const ExclamationIcon: ({ width, height, ...props }: Props) => import("react").JSX.Element;
4
- export {};
@@ -1,4 +0,0 @@
1
- import { SVGAttributes } from 'react';
2
- type Props = SVGAttributes<SVGSVGElement>;
3
- export declare const InfiniteIcon: ({ width, height, ...props }: Props) => import("react").JSX.Element;
4
- export {};
@@ -1,4 +0,0 @@
1
- import { SVGAttributes } from 'react';
2
- type Props = SVGAttributes<SVGSVGElement>;
3
- export declare const MapIcon: ({ width, height, fill, ...props }: Props) => import("react").JSX.Element;
4
- export {};
@@ -1,2 +0,0 @@
1
- import { SVGAttributes } from 'react';
2
- export declare const PaintRollerIcon: ({ width, height, fill, ...props }: SVGAttributes<SVGSVGElement>) => import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { SVGAttributes } from 'react';
2
- export declare const RedoIcon: ({ width, height, fill, ...props }: SVGAttributes<SVGSVGElement>) => import("react").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { SVGAttributes } from 'react';
2
- type Props = SVGAttributes<SVGSVGElement>;
3
- export declare const SouthEastArrowIcon: ({ width, height, fill, ...props }: Props) => import("react").JSX.Element;
4
- export {};
@@ -1,4 +0,0 @@
1
- import { SVGAttributes } from 'react';
2
- type Props = SVGAttributes<SVGSVGElement>;
3
- export declare const SwapHorizIcon: ({ width, height, fill, ...props }: Props) => import("react").JSX.Element;
4
- export {};
@@ -1,2 +0,0 @@
1
- import { SVGAttributes } from 'react';
2
- export declare const UndoIcon: ({ width, height, fill, ...props }: SVGAttributes<SVGSVGElement>) => import("react").JSX.Element;
@@ -1,14 +0,0 @@
1
- export * from './CheckIcon';
2
- export * from './CrossIcon';
3
- export * from './DeleteIcon';
4
- export * from './EditIcon';
5
- export * from './ExclamationIcon';
6
- export * from './InfiniteIcon';
7
- export * from './MapIcon';
8
- export * from './RedoIcon';
9
- export * from './SouthEastArrowIcon';
10
- export * from './SwapHorizIcon';
11
- export * from './UndoIcon';
12
- export * from './ArrowBackIcon';
13
- export * from './ArrowForwardIcon';
14
- export * from './DragHandleIcon';
@@ -1,2 +0,0 @@
1
- import { ConnectionLineComponentProps } from '@xyflow/react';
2
- export declare const ReconnectConnectionLine: ({ connectionLineStyle, connectionLineType, fromX, fromY, toX, toY, fromPosition, toPosition, }: ConnectionLineComponentProps) => import("react").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { default as React } from 'react';
2
- /**
3
- * ScrollOverlay Component
4
- * Displays an overlay when user tries to scroll but scrollLock is enabled.
5
- * Press Ctrl or Cmd to temporarily unlock scrolling.
6
- */
7
- export declare const ScrollOverlay: React.FC;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const Sidebar: () => React.JSX.Element | null;
@@ -1,25 +0,0 @@
1
- import { CollaborationCursor, CollaborationState, CollaborationUser, CollaborationViewport, CollaboratorInfo } from '../../typings';
2
- export type CollaborationAwarenessApi = {
3
- setLocalAwarenessCursor: (cursor: CollaborationCursor | null) => void;
4
- setLocalAwarenessSelectedElement: (selectedElementId: string | null) => void;
5
- setLocalAwarenessViewport: (viewport: CollaborationViewport | null) => void;
6
- setLocalAwarenessFollowing: (followingClientId: number | null) => void;
7
- getAwarenessStates: () => Map<number, CollaborationState>;
8
- subscribeToAwarenessChanges: (callback: (states: Map<number, CollaborationState>) => void) => () => void;
9
- subscribeToCollaboratorChanges: (callback: (collaborators: CollaboratorInfo[]) => void) => () => void;
10
- getLocalAwarenessClientId: () => number;
11
- };
12
- export type CollaborationLayerOptions = {
13
- enabled: boolean;
14
- user?: CollaborationUser;
15
- showPresence: boolean;
16
- showCursors: boolean;
17
- showSelectionHighlights: boolean;
18
- showFollow: boolean;
19
- };
20
- type CollaborationLayerProps = {
21
- options: CollaborationLayerOptions;
22
- awareness: CollaborationAwarenessApi;
23
- };
24
- export declare function CollaborationLayer({ options, awareness, }: CollaborationLayerProps): import("react").JSX.Element;
25
- export {};
@@ -1,7 +0,0 @@
1
- import { CollaborationViewport } from '../../typings';
2
- type Point = {
3
- x: number;
4
- y: number;
5
- };
6
- export declare const flowToCanvasPosition: (point: Point, viewport: CollaborationViewport) => Point;
7
- export {};
@@ -1,18 +0,0 @@
1
- export * from './svgs/nodes/CustomText';
2
- export * from './svgs/nodes/MultilineText';
3
- export * from './svgs/nodes/StereotypeAndName';
4
- export * from './Sidebar';
5
- export * from './ui/DividerLine';
6
- export * from './popovers';
7
- export * from './toolbars';
8
- export * from './svgs';
9
- export * from './ui';
10
- export * from './CustomMiniMap';
11
- export * from './CustomControls';
12
- export * from './CustomBackground';
13
- export * from './ReconnectConnectionLine';
14
- export * from './wrapper/AssessmentSelectableWrapper';
15
- export * from './AssessmentSelectionDebug';
16
- export * from './ScrollOverlay';
17
- export * from './AlignmentGuides';
18
- export * from './collaboration/CollaborationLayer';
@@ -1,2 +0,0 @@
1
- import { PopoverProps } from './types';
2
- export declare const DefaultNodeEditPopover: React.FC<PopoverProps>;
@@ -1,2 +0,0 @@
1
- import { PopoverProps } from './types';
2
- export declare const DefaultNodeGiveFeedbackPopover: ({ elementId }: PopoverProps) => import("react").JSX.Element | null;
@@ -1,2 +0,0 @@
1
- import { PopoverProps } from './types';
2
- export declare const DefaultNodeSeeFeedbackPopover: ({ elementId }: PopoverProps) => import("react").JSX.Element | null;
@@ -1,17 +0,0 @@
1
- import { default as React, ReactNode } from 'react';
2
- import { PopoverOrigin } from '@mui/material';
3
- interface GenericPopoverProps {
4
- id: string;
5
- anchorEl: HTMLElement | SVGElement | null;
6
- open: boolean;
7
- onClose: () => void;
8
- children: ReactNode;
9
- anchorOrigin?: PopoverOrigin;
10
- transformOrigin?: PopoverOrigin;
11
- maxHeight?: number;
12
- maxWidth?: number;
13
- minWidth?: number;
14
- style?: React.CSSProperties;
15
- }
16
- export declare const GenericPopover: React.FC<GenericPopoverProps>;
17
- export {};
@@ -1,7 +0,0 @@
1
- interface Props {
2
- elementId: string;
3
- name: string;
4
- type: string;
5
- }
6
- export declare const GiveFeedbackAssessmentBox: ({ elementId, name, type }: Props) => import("react").JSX.Element;
7
- export {};
@@ -1,10 +0,0 @@
1
- type NodePopoverType = "class" | "objectName" | "communicationObjectName" | "default" | "Component" | "ComponentSubsystem" | "FlowchartTerminal" | "FlowchartProcess" | "FlowchartDecision" | "FlowchartInputOutput" | "FlowchartFunctionCall" | "DeploymentComponent" | "DeploymentNode" | "SyntaxTreeNonterminal" | "SyntaxTreeTerminal" | "PetriNetPlace" | "BPMNTask" | "BPMNStartEvent" | "BPMNIntermediateEvent" | "BPMNEndEvent" | "BPMNGateway" | "BPMNSubprocess" | "BPMNTransaction" | "BPMNCallActivity" | "BPMNAnnotation" | "BPMNDataObject" | "BPMNDataStore" | "BPMNPool" | "BPMNGroup" | "ReachabilityGraphMarking" | "Sfc" | "SfcActionTable" | "ActivitySwimlane";
2
- type EdgePopoverType = "ClassAggregation" | "ClassInheritance" | "ClassRealization" | "ClassComposition" | "ClassBidirectional" | "ClassUnidirectional" | "ClassDependency" | "ActivityControlFlow" | "ObjectLink" | "CommunicationLink" | "UseCaseAssociation" | "UseCaseInclude" | "UseCaseExtend" | "UseCaseGeneralization" | "ComponentDependency" | "ComponentProvidedInterface" | "ComponentRequiredInterface" | "ComponentRequiredThreeQuarterInterface" | "ComponentRequiredQuarterInterface" | "BPMNSequenceFlow" | "BPMNMessageFlow" | "BPMNAssociationFlow" | "BPMNDataAssociationFlow" | "DeploymentAssociation" | "DeploymentDependency" | "DeploymentProvidedInterface" | "DeploymentRequiredInterface" | "DeploymentRequiredThreeQuarterInterface" | "DeploymentRequiredQuarterInterface" | "FlowChartFlowline" | "SyntaxTreeLink" | "SfcDiagramEdge" | "ReachabilityGraphArc" | "PetriNetArc";
3
- type PopoverType = NodePopoverType | EdgePopoverType;
4
- interface PopoverManagerProps {
5
- elementId: string;
6
- anchorEl: HTMLElement | SVGElement | null;
7
- type: PopoverType;
8
- }
9
- export declare const PopoverManager: ({ elementId, anchorEl, type, }: PopoverManagerProps) => import("react").JSX.Element | null;
10
- export {};
@@ -1,5 +0,0 @@
1
- export declare const SeeFeedbackAssessmentBox: ({ type, name, elementId, }: {
2
- type: string;
3
- name: string;
4
- elementId: string;
5
- }) => import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { PopoverProps } from '../types';
2
- export declare const ActivitySwimlaneEditPopover: React.FC<PopoverProps>;
@@ -1 +0,0 @@
1
- export { ActivitySwimlaneEditPopover } from './ActivitySwimlaneEditPopover';
@@ -1,2 +0,0 @@
1
- import { PopoverProps } from '../types';
2
- export declare const BPMNEndEventEditPopover: React.FC<PopoverProps>;
@@ -1,2 +0,0 @@
1
- import { PopoverProps } from '../types';
2
- export declare const BPMNGatewayEditPopover: React.FC<PopoverProps>;
@@ -1,2 +0,0 @@
1
- import { PopoverProps } from '../types';
2
- export declare const BPMNIntermediateEventEditPopover: React.FC<PopoverProps>;
@@ -1,2 +0,0 @@
1
- import { PopoverProps } from '../types';
2
- export declare const BPMNPoolEditPopover: ({ elementId }: PopoverProps) => import("react").JSX.Element | null;
@@ -1,2 +0,0 @@
1
- import { PopoverProps } from '../types';
2
- export declare const BPMNStartEventEditPopover: React.FC<PopoverProps>;
@@ -1,2 +0,0 @@
1
- import { PopoverProps } from '../types';
2
- export declare const BPMNTaskEditPopover: React.FC<PopoverProps>;
@@ -1,6 +0,0 @@
1
- export * from './BPMNTaskEditPopover';
2
- export * from './BPMNStartEventEditPopover';
3
- export * from './BPMNIntermediateEventEditPopover';
4
- export * from './BPMNEndEventEditPopover';
5
- export * from './BPMNGatewayEditPopover';
6
- export * from './BPMNPoolEditPopover';
@@ -1,2 +0,0 @@
1
- import { PopoverProps } from '../types';
2
- export declare const ClassEditPopover: React.FC<PopoverProps>;
@@ -1,2 +0,0 @@
1
- import { PopoverProps } from '../types';
2
- export declare const ClassGiveFeedbackPopover: ({ elementId }: PopoverProps) => import("react").JSX.Element | null;