@loopstack/loopstack-studio 0.24.0 → 0.25.1
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/dist/_virtual/_rolldown/runtime.js +20 -0
- package/dist/api/auth.js +4 -2
- package/dist/api/client.js +9 -7
- package/dist/api/config.js +7 -5
- package/dist/api/dashboard.js +4 -2
- package/dist/api/documents.js +4 -2
- package/dist/api/index.js +21 -23
- package/dist/api/processor.js +5 -3
- package/dist/api/secrets.js +4 -2
- package/dist/api/workflows.js +11 -3
- package/dist/api/workspaces.js +4 -2
- package/dist/app/EnvironmentEmbedRoot.js +24 -31
- package/dist/components/ai-elements/code-block.js +53 -71
- package/dist/components/ai-elements/message.js +41 -82
- package/dist/components/ai-elements/prompt-input.js +162 -253
- package/dist/components/ai-elements/reasoning.js +78 -116
- package/dist/components/ai-elements/shimmer.js +23 -35
- package/dist/components/ai-elements/sources.js +29 -58
- package/dist/components/data-table/ConfirmDialog.js +14 -30
- package/dist/components/data-table/DataList.js +138 -198
- package/dist/components/data-table/DataTable.js +168 -234
- package/dist/components/data-table/DataTableBatchAction.js +18 -27
- package/dist/components/data-table/DataTableFilters.js +53 -78
- package/dist/components/data-table/DataTablePagination.js +72 -104
- package/dist/components/data-table/DataTableToolbar.js +53 -65
- package/dist/components/dynamic-form/ArrayController.js +85 -103
- package/dist/components/dynamic-form/CodeContent.js +28 -36
- package/dist/components/dynamic-form/Form.js +43 -56
- package/dist/components/dynamic-form/FormBody.js +12 -10
- package/dist/components/dynamic-form/FormElement.js +31 -41
- package/dist/components/dynamic-form/FormElementHeader.js +12 -20
- package/dist/components/dynamic-form/InputController.js +36 -38
- package/dist/components/dynamic-form/MarkdownContent.js +53 -74
- package/dist/components/dynamic-form/MermaidDiagram.js +22 -24
- package/dist/components/dynamic-form/ObjectController.js +24 -32
- package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +35 -47
- package/dist/components/dynamic-form/fields/CheckboxField.js +39 -48
- package/dist/components/dynamic-form/fields/CodeViewField.js +42 -50
- package/dist/components/dynamic-form/fields/InputField.js +62 -90
- package/dist/components/dynamic-form/fields/MarkdownViewField.js +16 -19
- package/dist/components/dynamic-form/fields/RadioField.js +46 -62
- package/dist/components/dynamic-form/fields/SelectField.js +40 -58
- package/dist/components/dynamic-form/fields/SliderField.js +94 -100
- package/dist/components/dynamic-form/fields/SwitchField.js +42 -61
- package/dist/components/dynamic-form/fields/TextareaField.js +53 -72
- package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +4 -2
- package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +6 -5
- package/dist/components/dynamic-form/hooks/useFieldConfig.js +19 -20
- package/dist/components/dynamic-form/hooks/useMergeParentKey.js +4 -2
- package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +4 -2
- package/dist/components/feedback/ErrorAlert.js +11 -17
- package/dist/components/feedback/ErrorBoundary.js +16 -14
- package/dist/components/feedback/ErrorSnackbar.js +13 -30
- package/dist/components/feedback/LoadingCentered.js +15 -28
- package/dist/components/feedback/Snackbar.js +43 -44
- package/dist/components/feedback/index.js +5 -5
- package/dist/components/index.js +47 -47
- package/dist/components/layout/MainLayout.js +17 -25
- package/dist/components/layout/StudioSidebar.js +132 -202
- package/dist/components/lists/CustomListView.js +49 -74
- package/dist/components/lists/ListView.js +66 -102
- package/dist/components/loopstack-elements/link.js +71 -109
- package/dist/components/loopstack-elements/tool.js +99 -0
- package/dist/components/messages/CompletionMessagePaper.js +53 -85
- package/dist/components/page/PageBreadcrumbs.js +64 -83
- package/dist/components/ui/DiscordLogo.js +16 -22
- package/dist/components/ui/GoogleLogo.js +40 -44
- package/dist/components/ui/accordion.js +31 -52
- package/dist/components/ui/alert-dialog.js +59 -109
- package/dist/components/ui/alert.js +22 -36
- package/dist/components/ui/avatar.js +21 -35
- package/dist/components/ui/badge.js +13 -17
- package/dist/components/ui/breadcrumb.js +46 -82
- package/dist/components/ui/button-group.js +5 -5
- package/dist/components/ui/button.js +17 -21
- package/dist/components/ui/card.js +40 -74
- package/dist/components/ui/checkbox.js +17 -23
- package/dist/components/ui/collapsible.js +17 -25
- package/dist/components/ui/command.js +1 -2
- package/dist/components/ui/context-menu.js +32 -52
- package/dist/components/ui/dialog.js +62 -107
- package/dist/components/ui/drawer.js +54 -99
- package/dist/components/ui/dropdown-menu.js +91 -159
- package/dist/components/ui/hover-card.js +1 -2
- package/dist/components/ui/input-group.js +36 -56
- package/dist/components/ui/input.js +11 -15
- package/dist/components/ui/label.js +11 -15
- package/dist/components/ui/popover.js +25 -38
- package/dist/components/ui/radio-group.js +22 -33
- package/dist/components/ui/scroll-area.js +28 -43
- package/dist/components/ui/select.js +73 -134
- package/dist/components/ui/separator.js +13 -17
- package/dist/components/ui/sheet.js +60 -105
- package/dist/components/ui/sidebar.js +269 -451
- package/dist/components/ui/skeleton.js +10 -14
- package/dist/components/ui/slider.js +17 -15
- package/dist/components/ui/switch.js +15 -21
- package/dist/components/ui/table.js +46 -85
- package/dist/components/ui/tabs.js +26 -45
- package/dist/components/ui/textarea.js +10 -14
- package/dist/components/ui/tooltip.js +26 -41
- package/dist/components/ui-widgets/UiActions.js +30 -31
- package/dist/components/ui-widgets/UiWidget.js +34 -55
- package/dist/components/ui-widgets/widgets/AiPromptInput.js +28 -42
- package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +16 -19
- package/dist/components/ui-widgets/widgets/SandboxRun.js +19 -26
- package/dist/components/ui-widgets/widgets/SubmitButton.js +15 -18
- package/dist/events/api-client-events.js +4 -2
- package/dist/events/sse-client-events.js +4 -2
- package/dist/features/code-explorer/CodeExplorer.js +1 -2
- package/dist/features/code-explorer/components/CodeExplorerTree.js +2 -2
- package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +31 -29
- package/dist/features/code-explorer/components/FileContentViewer.js +120 -185
- package/dist/features/code-explorer/components/FileTabsBar.js +1 -2
- package/dist/features/code-explorer/components/FileTabsBarBase.js +134 -169
- package/dist/features/code-explorer/index.js +1 -1
- package/dist/features/code-explorer/providers/CodeExplorerProvider.js +4 -4
- package/dist/features/code-explorer/utils/fileIcons.js +41 -39
- package/dist/features/dashboard/Dashboard.js +79 -121
- package/dist/features/dashboard/RunItem.js +50 -68
- package/dist/features/dashboard/RunList.js +17 -28
- package/dist/features/debug/components/ConfigFlowViewer.js +49 -67
- package/dist/features/debug/components/WorkflowDebugHeader.js +32 -0
- package/dist/features/debug/components/WorkflowDebugLegend.js +56 -0
- package/dist/features/debug/components/WorkflowFlowViewer.js +90 -0
- package/dist/features/debug/components/workflow-flow/StateNode.js +82 -0
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +41 -0
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +64 -0
- package/dist/features/debug/index.js +3 -3
- package/dist/features/debug/lib/edge-paths.js +33 -31
- package/dist/features/debug/lib/flow-utils.js +156 -162
- package/dist/features/documents/DocumentRenderer.js +77 -45
- package/dist/features/documents/components/DocumentItem.js +21 -24
- package/dist/features/documents/components/DocumentList.js +39 -42
- package/dist/features/documents/components/DocumentMetadataPills.js +44 -59
- package/dist/features/documents/document-details/DocumentDetails.js +298 -413
- package/dist/features/documents/document-details/PromptDetails.js +105 -142
- package/dist/features/documents/index.js +4 -4
- package/dist/features/documents/renderers/AiMessage.js +39 -48
- package/dist/features/documents/renderers/AiMessageContent.js +108 -164
- package/dist/features/documents/renderers/ChoicesRenderer.js +80 -0
- package/dist/features/documents/renderers/ClaudeMessage.js +74 -91
- package/dist/features/documents/renderers/ConfirmPromptRenderer.js +47 -0
- package/dist/features/documents/renderers/DocumentDebugRenderer.js +26 -30
- package/dist/features/documents/renderers/DocumentFormRenderer.js +80 -72
- package/dist/features/documents/renderers/DocumentMessageRenderer.js +10 -9
- package/dist/features/documents/renderers/ErrorMessageRenderer.js +11 -13
- package/dist/features/documents/renderers/LinkMessageRenderer.js +15 -16
- package/dist/features/documents/renderers/MarkdownMessageRenderer.js +8 -10
- package/dist/features/documents/renderers/PlainMessageRenderer.js +7 -9
- package/dist/features/documents/renderers/SecretInputRenderer.js +89 -0
- package/dist/features/documents/renderers/TextPromptRenderer.js +48 -0
- package/dist/features/documents/renderers/useDocumentTransition.js +32 -0
- package/dist/features/health/LocalHealthCheck.js +54 -53
- package/dist/features/health/index.js +1 -1
- package/dist/features/oauth/OAuthCallbackPage.js +2 -2
- package/dist/features/oauth/OAuthPromptRenderer.js +135 -184
- package/dist/features/oauth/index.js +2 -2
- package/dist/features/oauth/useOAuthPopup.js +52 -71
- package/dist/features/runs/Runs.js +145 -187
- package/dist/features/workbench/Workbench.js +72 -98
- package/dist/features/workbench/WorkflowItem.js +49 -67
- package/dist/features/workbench/WorkflowList.js +50 -82
- package/dist/features/workbench/components/NewRunDialog.js +214 -311
- package/dist/features/workbench/components/RemoteFileTabsBar.js +18 -17
- package/dist/features/workbench/components/RemoteFileTree.js +54 -85
- package/dist/features/workbench/components/WorkbenchFilesPanel.js +52 -63
- package/dist/features/workbench/components/WorkbenchFloatingPanel.js +34 -90
- package/dist/features/workbench/components/WorkbenchFlowPanel.js +35 -46
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +50 -80
- package/dist/features/workbench/components/WorkbenchPreviewPanel.js +52 -50
- package/dist/features/workbench/components/WorkbenchSecretsPanel.js +143 -172
- package/dist/features/workbench/components/WorkbenchSettingsModal.js +50 -86
- package/dist/features/workbench/components/WorkflowForms.js +17 -22
- package/dist/features/workbench/components/WorkflowHistoryItem.js +96 -143
- package/dist/features/workbench/components/WorkflowHistoryList.js +33 -0
- package/dist/features/workbench/components/buttons/WorkflowButtons.js +70 -97
- package/dist/features/workbench/hooks/useAutoScrollBottom.js +21 -25
- package/dist/features/workbench/hooks/useScrollToListItem.js +20 -21
- package/dist/features/workbench/hooks/useWorkflowData.js +32 -45
- package/dist/features/workbench/hooks/useWorkflowListState.js +13 -49
- package/dist/features/workbench/index.js +7 -8
- package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +123 -138
- package/dist/features/workbench/providers/ScrollProvider.js +16 -20
- package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +76 -75
- package/dist/features/workspaces/Workspaces.js +161 -226
- package/dist/features/workspaces/components/CreateWorkspace.js +137 -194
- package/dist/features/workspaces/components/EnvironmentSlotSelector.js +27 -25
- package/dist/features/workspaces/components/ExecutionTimeline.js +144 -185
- package/dist/features/workspaces/components/NewWorkflowRunDialog.js +23 -0
- package/dist/features/workspaces/components/WorkflowRunForm.js +104 -0
- package/dist/features/workspaces/components/WorkspaceHomePage.js +60 -81
- package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +58 -0
- package/dist/features/workspaces/components/workflow-form/HeaderSection.js +29 -0
- package/dist/features/workspaces/components/workflow-form/SelectionView.js +66 -0
- package/dist/features/workspaces/index.js +3 -3
- package/dist/frontend/studio/node_modules/lodash/_Symbol.js +9 -0
- package/dist/frontend/studio/node_modules/lodash/_baseGetTag.js +15 -0
- package/dist/frontend/studio/node_modules/lodash/_baseTrim.js +13 -0
- package/dist/frontend/studio/node_modules/lodash/_freeGlobal.js +8 -0
- package/dist/frontend/studio/node_modules/lodash/_getRawTag.js +19 -0
- package/dist/frontend/studio/node_modules/lodash/_objectToString.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/_root.js +10 -0
- package/dist/frontend/studio/node_modules/lodash/_trimmedEndIndex.js +13 -0
- package/dist/{node_modules → frontend/studio/node_modules}/lodash/debounce.js +10 -8
- package/dist/frontend/studio/node_modules/lodash/isObject.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/isObjectLike.js +11 -0
- package/dist/frontend/studio/node_modules/lodash/isSymbol.js +14 -0
- package/dist/frontend/studio/node_modules/lodash/now.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/toNumber.js +24 -0
- package/dist/hooks/index.js +6 -6
- package/dist/hooks/query-keys.js +39 -78
- package/dist/hooks/use-mobile.js +12 -11
- package/dist/hooks/useApi.js +16 -14
- package/dist/hooks/useAuth.js +38 -53
- package/dist/hooks/useConfig.js +26 -37
- package/dist/hooks/useDashboard.js +12 -15
- package/dist/hooks/useDebounce.js +12 -11
- package/dist/hooks/useDocuments.js +23 -35
- package/dist/hooks/useFiles.js +1 -2
- package/dist/hooks/useProcessor.js +14 -17
- package/dist/hooks/useSecrets.js +45 -64
- package/dist/hooks/useWorkflows.js +113 -78
- package/dist/hooks/useWorkspaces.js +83 -123
- package/dist/index.d.ts +0 -1305
- package/dist/index.js +80 -80
- package/dist/lib/requireParam.js +4 -2
- package/dist/lib/utils.js +7 -5
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +6 -4
- package/dist/node_modules/@braintree/sanitize-url/dist/index.js +8 -6
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +19 -20
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +87 -88
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +16 -13
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +2 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +4 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +36 -34
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +138 -110
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +13 -11
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +5 -3
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +4 -2
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +4 -2
- package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1812 -1913
- package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +10 -8
- package/dist/node_modules/@iconify/utils/lib/icon/merge.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/name.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +12 -10
- package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/svg/build.js +20 -18
- package/dist/node_modules/@iconify/utils/lib/svg/defs.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/svg/html.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/svg/id.js +10 -8
- package/dist/node_modules/@iconify/utils/lib/svg/size.js +7 -5
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +38 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +33 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +1208 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +67 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +34 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +59 -45
- package/dist/node_modules/@shikijs/core/dist/index.js +583 -1119
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +163 -148
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +4 -2
- package/dist/node_modules/@shikijs/langs/dist/abap.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ada.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/angular-html.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/angular-template.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/apache.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/apex.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/apl.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/applescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ara.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/asm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/astro.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/awk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ballerina.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bat.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/beancount.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/berry.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bibtex.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bicep.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bird2.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/blade.js +19 -17
- package/dist/node_modules/@shikijs/langs/dist/bsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/c.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/c3.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cadence.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cairo.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/clarity.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/clojure.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cmake.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cobol.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/codeowners.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/codeql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/coffee.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/coq.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/cpp.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/crystal.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/csharp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/css.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/csv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cue.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cypher.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/d.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dart.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dax.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/desktop.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/diff.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/docker.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dotenv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/edge.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/elixir.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/elm.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/erb.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fennel.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fish.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fluent.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fsharp.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gdresource.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/gdscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gdshader.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/genie.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gherkin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/git-commit.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gleam.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/glsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gn.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/go.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/graphql.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/groovy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hack.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/haml.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/handlebars.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/haskell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/haxe.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hcl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hjson.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hlsl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/html.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/http.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/hurl.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/hxml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/hy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/imba.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ini.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/java.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/javascript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/jinja.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/jison.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/json.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/json5.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonc.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jssm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/julia.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/just.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/kdl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/kotlin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/kusto.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/latex.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/lean.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/less.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/liquid.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/llvm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/log.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/logo.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/lua.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/luau.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/make.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/marko.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/matlab.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mdc.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/mdx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mermaid.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mojo.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/moonbit.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/move.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/narrat.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/nextflow.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nginx.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nim.js +19 -17
- package/dist/node_modules/@shikijs/langs/dist/nix.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nushell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/objective-c.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ocaml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/odin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/openscad.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/pascal.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/perl.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/php.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/pkl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/plsql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/po.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/polar.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/postcss.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/powerquery.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/powershell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/prisma.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/prolog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/proto.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/pug.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/puppet.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/purescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/python.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/qml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/qmldir.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/qss.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/r.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/racket.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/raku.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/razor.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/reg.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/regexp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rel.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/riscv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ron.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rst.js +21 -19
- package/dist/node_modules/@shikijs/langs/dist/ruby.js +29 -27
- package/dist/node_modules/@shikijs/langs/dist/rust.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/sas.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sass.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scala.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scheme.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scss.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sdbl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/shellscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/shellsession.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/solidity.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/soy.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sparql.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/splunk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/sql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/stata.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/stylus.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/surrealql.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/svelte.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/swift.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/systemd.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/talonscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tasl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tcl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/templ.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/terraform.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tex.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/toml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/tsv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tsx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/turtle.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/twig.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/typescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/typespec.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/typst.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/v.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vala.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vb.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/verilog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vhdl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/viml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-html.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/vue.js +25 -23
- package/dist/node_modules/@shikijs/langs/dist/vyper.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wasm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wenyan.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wgsl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wikitext.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wit.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wolfram.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/xml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/xsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/yaml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/zenscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/zig.js +3 -2
- package/dist/node_modules/@shikijs/primitive/dist/index.js +540 -0
- package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dracula.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/horizon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/houston.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/laserwave.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/light-plus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/min-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/min-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/monokai.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/night-owl.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/nord.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/one-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/plastic.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/poimandres.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/red.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vesper.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +4 -2
- package/dist/node_modules/@shikijs/types/dist/index.js +4 -2
- package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +949 -947
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +30 -30
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +6 -4
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +64 -64
- package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +905 -0
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +904 -901
- package/dist/node_modules/@xyflow/system/dist/esm/index.js +1226 -1222
- package/dist/node_modules/bail/index.js +4 -2
- package/dist/node_modules/ccount/index.js +4 -2
- package/dist/node_modules/character-entities-html4/index.js +4 -2
- package/dist/node_modules/character-entities-legacy/index.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/api.js +10 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +6 -4
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +11 -9
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +38 -45
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +35 -36
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +26 -25
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +204 -226
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +18 -18
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +20 -19
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +14 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +195 -200
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +5 -4
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +28 -28
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +165 -170
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +17 -17
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +50 -50
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +76 -83
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +21 -21
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +117 -121
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +12 -6
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +51 -51
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +15 -14
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +81 -80
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +229 -217
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +87 -86
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +36 -44
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +287 -309
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +115 -126
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +73 -70
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +12 -10
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +45 -54
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +29 -30
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +242 -240
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +134 -133
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +11 -10
- package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -1
- package/dist/node_modules/classcat/index.js +5 -3
- package/dist/node_modules/comma-separated-tokens/index.js +5 -3
- package/dist/node_modules/cose-base/cose-base.js +21 -21
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +7935 -7935
- package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +8 -6
- package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +8 -6
- package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +20 -20
- package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +6 -4
- package/dist/node_modules/d3/src/index.js +95 -95
- package/dist/node_modules/d3-array/src/ascending.js +4 -2
- package/dist/node_modules/d3-array/src/bisect.js +8 -8
- package/dist/node_modules/d3-array/src/bisector.js +8 -6
- package/dist/node_modules/d3-array/src/descending.js +4 -2
- package/dist/node_modules/d3-array/src/max.js +4 -2
- package/dist/node_modules/d3-array/src/min.js +4 -2
- package/dist/node_modules/d3-array/src/number.js +4 -2
- package/dist/node_modules/d3-array/src/range.js +4 -2
- package/dist/node_modules/d3-array/src/ticks.js +13 -11
- package/dist/node_modules/d3-axis/src/axis.js +48 -46
- package/dist/node_modules/d3-axis/src/identity.js +4 -2
- package/dist/node_modules/d3-brush/src/brush.js +6 -4
- package/dist/node_modules/d3-color/src/color.js +86 -84
- package/dist/node_modules/d3-color/src/define.js +5 -3
- package/dist/node_modules/d3-color/src/lab.js +45 -43
- package/dist/node_modules/d3-color/src/math.js +4 -2
- package/dist/node_modules/d3-dispatch/src/dispatch.js +18 -17
- package/dist/node_modules/d3-drag/src/constant.js +4 -2
- package/dist/node_modules/d3-drag/src/drag.js +77 -75
- package/dist/node_modules/d3-drag/src/event.js +5 -3
- package/dist/node_modules/d3-drag/src/nodrag.js +11 -9
- package/dist/node_modules/d3-drag/src/noevent.js +6 -4
- package/dist/node_modules/d3-ease/src/cubic.js +4 -2
- package/dist/node_modules/d3-format/src/defaultLocale.js +8 -6
- package/dist/node_modules/d3-format/src/exponent.js +6 -4
- package/dist/node_modules/d3-format/src/formatDecimal.js +5 -3
- package/dist/node_modules/d3-format/src/formatGroup.js +4 -2
- package/dist/node_modules/d3-format/src/formatNumerals.js +4 -2
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +10 -8
- package/dist/node_modules/d3-format/src/formatRounded.js +6 -4
- package/dist/node_modules/d3-format/src/formatSpecifier.js +10 -8
- package/dist/node_modules/d3-format/src/formatTrim.js +4 -2
- package/dist/node_modules/d3-format/src/formatTypes.js +15 -13
- package/dist/node_modules/d3-format/src/identity.js +4 -2
- package/dist/node_modules/d3-format/src/locale.js +33 -31
- package/dist/node_modules/d3-format/src/precisionFixed.js +6 -4
- package/dist/node_modules/d3-format/src/precisionPrefix.js +6 -4
- package/dist/node_modules/d3-format/src/precisionRound.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/accessors.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/constant.js +5 -3
- package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +46 -44
- package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/index.js +16 -14
- package/dist/node_modules/d3-hierarchy/src/treemap/round.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +11 -9
- package/dist/node_modules/d3-interpolate/src/array.js +6 -4
- package/dist/node_modules/d3-interpolate/src/basis.js +6 -4
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +6 -4
- package/dist/node_modules/d3-interpolate/src/color.js +19 -17
- package/dist/node_modules/d3-interpolate/src/constant.js +4 -2
- package/dist/node_modules/d3-interpolate/src/date.js +4 -2
- package/dist/node_modules/d3-interpolate/src/hcl.js +8 -6
- package/dist/node_modules/d3-interpolate/src/number.js +4 -2
- package/dist/node_modules/d3-interpolate/src/numberArray.js +5 -3
- package/dist/node_modules/d3-interpolate/src/object.js +6 -4
- package/dist/node_modules/d3-interpolate/src/rgb.js +11 -9
- package/dist/node_modules/d3-interpolate/src/round.js +4 -2
- package/dist/node_modules/d3-interpolate/src/string.js +16 -14
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +7 -5
- package/dist/node_modules/d3-interpolate/src/transform/index.js +13 -11
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +10 -8
- package/dist/node_modules/d3-interpolate/src/value.js +14 -12
- package/dist/node_modules/d3-interpolate/src/zoom.js +13 -11
- package/dist/node_modules/d3-path/src/path.js +16 -14
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +13 -12
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +19 -17
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +5 -3
- package/dist/node_modules/d3-sankey/src/align.js +12 -10
- package/dist/node_modules/d3-sankey/src/constant.js +4 -2
- package/dist/node_modules/d3-sankey/src/sankey.js +170 -168
- package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +8 -6
- package/dist/node_modules/d3-scale/src/band.js +11 -9
- package/dist/node_modules/d3-scale/src/constant.js +4 -2
- package/dist/node_modules/d3-scale/src/continuous.js +49 -47
- package/dist/node_modules/d3-scale/src/init.js +4 -2
- package/dist/node_modules/d3-scale/src/linear.js +15 -13
- package/dist/node_modules/d3-scale/src/nice.js +4 -2
- package/dist/node_modules/d3-scale/src/number.js +4 -2
- package/dist/node_modules/d3-scale/src/ordinal.js +18 -16
- package/dist/node_modules/d3-scale/src/tickFormat.js +16 -14
- package/dist/node_modules/d3-scale/src/time.js +36 -34
- package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +5 -3
- package/dist/node_modules/d3-scale-chromatic/src/colors.js +4 -2
- package/dist/node_modules/d3-selection/src/array.js +4 -2
- package/dist/node_modules/d3-selection/src/constant.js +4 -2
- package/dist/node_modules/d3-selection/src/creator.js +12 -10
- package/dist/node_modules/d3-selection/src/matcher.js +5 -3
- package/dist/node_modules/d3-selection/src/namespace.js +7 -5
- package/dist/node_modules/d3-selection/src/namespaces.js +5 -3
- package/dist/node_modules/d3-selection/src/pointer.js +6 -4
- package/dist/node_modules/d3-selection/src/select.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/append.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/attr.js +19 -17
- package/dist/node_modules/d3-selection/src/selection/call.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/classed.js +25 -23
- package/dist/node_modules/d3-selection/src/selection/clone.js +7 -5
- package/dist/node_modules/d3-selection/src/selection/data.js +18 -16
- package/dist/node_modules/d3-selection/src/selection/datum.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +12 -10
- package/dist/node_modules/d3-selection/src/selection/each.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/empty.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/enter.js +13 -11
- package/dist/node_modules/d3-selection/src/selection/exit.js +7 -5
- package/dist/node_modules/d3-selection/src/selection/filter.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/html.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/index.js +80 -79
- package/dist/node_modules/d3-selection/src/selection/insert.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/iterator.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/join.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/lower.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/merge.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/node.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/nodes.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/on.js +11 -9
- package/dist/node_modules/d3-selection/src/selection/order.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/property.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/raise.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/remove.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/select.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +11 -9
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +10 -8
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +10 -8
- package/dist/node_modules/d3-selection/src/selection/size.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/sort.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/sparse.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/style.js +14 -12
- package/dist/node_modules/d3-selection/src/selection/text.js +8 -6
- package/dist/node_modules/d3-selection/src/selector.js +6 -4
- package/dist/node_modules/d3-selection/src/selectorAll.js +6 -4
- package/dist/node_modules/d3-selection/src/sourceEvent.js +4 -2
- package/dist/node_modules/d3-selection/src/window.js +4 -2
- package/dist/node_modules/d3-shape/src/arc.js +38 -36
- package/dist/node_modules/d3-shape/src/array.js +3 -2
- package/dist/node_modules/d3-shape/src/constant.js +4 -2
- package/dist/node_modules/d3-shape/src/curve/basis.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +18 -16
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/bump.js +15 -13
- package/dist/node_modules/d3-shape/src/curve/bundle.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +12 -10
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +19 -17
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +13 -11
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/linear.js +7 -5
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +12 -10
- package/dist/node_modules/d3-shape/src/curve/monotone.js +23 -21
- package/dist/node_modules/d3-shape/src/curve/natural.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/step.js +19 -17
- package/dist/node_modules/d3-shape/src/descending.js +4 -2
- package/dist/node_modules/d3-shape/src/identity.js +4 -2
- package/dist/node_modules/d3-shape/src/line.js +19 -17
- package/dist/node_modules/d3-shape/src/math.js +8 -6
- package/dist/node_modules/d3-shape/src/noop.js +4 -2
- package/dist/node_modules/d3-shape/src/path.js +6 -4
- package/dist/node_modules/d3-shape/src/pie.js +15 -13
- package/dist/node_modules/d3-shape/src/point.js +5 -3
- package/dist/node_modules/d3-time/src/day.js +17 -15
- package/dist/node_modules/d3-time/src/duration.js +4 -2
- package/dist/node_modules/d3-time/src/hour.js +16 -14
- package/dist/node_modules/d3-time/src/interval.js +7 -5
- package/dist/node_modules/d3-time/src/millisecond.js +7 -5
- package/dist/node_modules/d3-time/src/minute.js +16 -14
- package/dist/node_modules/d3-time/src/month.js +14 -12
- package/dist/node_modules/d3-time/src/second.js +9 -7
- package/dist/node_modules/d3-time/src/ticks.js +66 -64
- package/dist/node_modules/d3-time/src/week.js +21 -19
- package/dist/node_modules/d3-time/src/year.js +10 -8
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +8 -6
- package/dist/node_modules/d3-time-format/src/locale.js +346 -344
- package/dist/node_modules/d3-timer/src/timeout.js +6 -4
- package/dist/node_modules/d3-timer/src/timer.js +33 -31
- package/dist/node_modules/d3-transition/src/index.js +2 -2
- package/dist/node_modules/d3-transition/src/interrupt.js +4 -3
- package/dist/node_modules/d3-transition/src/selection/index.js +5 -4
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +6 -4
- package/dist/node_modules/d3-transition/src/selection/transition.js +16 -14
- package/dist/node_modules/d3-transition/src/transition/attr.js +28 -26
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +13 -11
- package/dist/node_modules/d3-transition/src/transition/delay.js +11 -9
- package/dist/node_modules/d3-transition/src/transition/duration.js +11 -9
- package/dist/node_modules/d3-transition/src/transition/ease.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/end.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/filter.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/index.js +63 -61
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +9 -7
- package/dist/node_modules/d3-transition/src/transition/merge.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/on.js +9 -7
- package/dist/node_modules/d3-transition/src/transition/remove.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/schedule.js +20 -18
- package/dist/node_modules/d3-transition/src/transition/select.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/selection.js +7 -5
- package/dist/node_modules/d3-transition/src/transition/style.js +21 -19
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/text.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/textTween.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/transition.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/tween.js +14 -12
- package/dist/node_modules/d3-zoom/src/constant.js +4 -2
- package/dist/node_modules/d3-zoom/src/event.js +4 -2
- package/dist/node_modules/d3-zoom/src/index.js +2 -2
- package/dist/node_modules/d3-zoom/src/noevent.js +5 -3
- package/dist/node_modules/d3-zoom/src/transform.js +12 -10
- package/dist/node_modules/d3-zoom/src/zoom.js +116 -114
- package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +14 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +11 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +36 -34
- package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +9 -7
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +51 -49
- package/dist/node_modules/dagre-d3-es/src/dagre/index.js +2 -2
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +165 -163
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +45 -43
- package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +12 -10
- package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +6 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +8 -6
- package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +14 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +22 -20
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +36 -34
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +16 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +32 -30
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +30 -28
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +20 -18
- package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +12 -10
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +150 -148
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +20 -18
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +19 -17
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +16 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +64 -63
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +15 -13
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +84 -82
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +15 -13
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +3 -2
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +3 -2
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/index.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +6 -4
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +6 -4
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +13 -11
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +131 -129
- package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +23 -21
- package/dist/node_modules/dayjs/dayjs.min.js +6 -4
- package/dist/node_modules/dayjs/plugin/advancedFormat.js +6 -4
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +6 -4
- package/dist/node_modules/dayjs/plugin/duration.js +6 -4
- package/dist/node_modules/dayjs/plugin/isoWeek.js +6 -4
- package/dist/node_modules/decode-named-character-reference/index.dom.js +7 -5
- package/dist/node_modules/devlop/lib/default.js +4 -2
- package/dist/node_modules/dompurify/dist/purify.es.js +203 -201
- package/dist/node_modules/entities/dist/esm/decode-codepoint.js +6 -4
- package/dist/node_modules/entities/dist/esm/decode.js +87 -85
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -2
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +6 -4
- package/dist/node_modules/extend/index.js +9 -6
- package/dist/node_modules/hast-util-from-dom/lib/index.js +32 -30
- package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +10 -8
- package/dist/node_modules/hast-util-from-parse5/lib/index.js +82 -80
- package/dist/node_modules/hast-util-is-element/lib/index.js +17 -15
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +7 -5
- package/dist/node_modules/hast-util-raw/lib/index.js +136 -134
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +23 -21
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +5 -3
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js +89 -89
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js +250 -249
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +6 -4
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js +14 -14
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/index.js +4 -4
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js +17 -15
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1497 -1495
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +148 -146
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +20 -19
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +800 -798
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +33 -31
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +10 -8
- package/dist/node_modules/hast-util-sanitize/lib/index.js +106 -104
- package/dist/node_modules/hast-util-sanitize/lib/schema.js +12 -11
- package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +9 -7
- package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +4 -2
- package/dist/node_modules/hast-util-to-html/lib/handle/element.js +25 -23
- package/dist/node_modules/hast-util-to-html/lib/handle/index.js +22 -21
- package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +6 -4
- package/dist/node_modules/hast-util-to-html/lib/handle/root.js +4 -2
- package/dist/node_modules/hast-util-to-html/lib/handle/text.js +7 -5
- package/dist/node_modules/hast-util-to-html/lib/index.js +38 -36
- package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +70 -68
- package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +6 -4
- package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +32 -30
- package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +10 -9
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +192 -190
- package/dist/node_modules/hast-util-to-parse5/lib/index.js +71 -69
- package/dist/node_modules/hast-util-to-text/lib/index.js +61 -59
- package/dist/node_modules/hast-util-whitespace/lib/index.js +8 -6
- package/dist/node_modules/hastscript/lib/create-h.js +26 -24
- package/dist/node_modules/hastscript/lib/index.js +7 -5
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +4 -2
- package/dist/node_modules/html-url-attributes/lib/index.js +4 -2
- package/dist/node_modules/html-void-elements/index.js +4 -2
- package/dist/node_modules/inline-style-parser/cjs/index.js +6 -4
- package/dist/node_modules/internmap/src/index.js +22 -20
- package/dist/node_modules/katex/dist/katex.js +2914 -2873
- package/dist/node_modules/khroma/dist/channels/index.js +23 -21
- package/dist/node_modules/khroma/dist/channels/reusable.js +5 -3
- package/dist/node_modules/khroma/dist/channels/type.js +7 -5
- package/dist/node_modules/khroma/dist/color/hex.js +10 -8
- package/dist/node_modules/khroma/dist/color/hsl.js +19 -17
- package/dist/node_modules/khroma/dist/color/index.js +17 -15
- package/dist/node_modules/khroma/dist/color/keyword.js +10 -8
- package/dist/node_modules/khroma/dist/color/rgb.js +14 -12
- package/dist/node_modules/khroma/dist/constants.js +7 -5
- package/dist/node_modules/khroma/dist/methods/adjust.js +8 -6
- package/dist/node_modules/khroma/dist/methods/adjust_channel.js +8 -6
- package/dist/node_modules/khroma/dist/methods/change.js +9 -7
- package/dist/node_modules/khroma/dist/methods/channel.js +6 -4
- package/dist/node_modules/khroma/dist/methods/darken.js +5 -3
- package/dist/node_modules/khroma/dist/methods/invert.js +8 -6
- package/dist/node_modules/khroma/dist/methods/is_dark.js +5 -3
- package/dist/node_modules/khroma/dist/methods/is_light.js +5 -3
- package/dist/node_modules/khroma/dist/methods/lighten.js +5 -3
- package/dist/node_modules/khroma/dist/methods/luminance.js +8 -6
- package/dist/node_modules/khroma/dist/methods/mix.js +8 -6
- package/dist/node_modules/khroma/dist/methods/rgba.js +15 -13
- package/dist/node_modules/khroma/dist/methods/transparentize.js +5 -0
- package/dist/node_modules/khroma/dist/utils/channel.js +8 -6
- package/dist/node_modules/khroma/dist/utils/index.js +10 -8
- package/dist/node_modules/khroma/dist/utils/lang.js +4 -2
- package/dist/node_modules/khroma/dist/utils/unit.js +4 -2
- package/dist/node_modules/langium/lib/default-module.js +66 -64
- package/dist/node_modules/langium/lib/dependency-injection.js +37 -39
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +7 -5
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +8 -6
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +204 -202
- package/dist/node_modules/langium/lib/languages/generated/ast.js +343 -534
- package/dist/node_modules/langium/lib/languages/grammar-config.js +10 -8
- package/dist/node_modules/langium/lib/parser/async-parser.js +4 -76
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +8 -6
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +56 -54
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +9 -7
- package/dist/node_modules/langium/lib/parser/langium-parser.js +190 -188
- package/dist/node_modules/langium/lib/parser/lexer.js +25 -25
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +204 -203
- package/dist/node_modules/langium/lib/parser/token-builder.js +32 -30
- package/dist/node_modules/langium/lib/parser/value-converter.js +17 -15
- package/dist/node_modules/langium/lib/references/linker.js +104 -103
- package/dist/node_modules/langium/lib/references/name-provider.js +9 -7
- package/dist/node_modules/langium/lib/references/references.js +53 -51
- package/dist/node_modules/langium/lib/references/scope-computation.js +14 -12
- package/dist/node_modules/langium/lib/references/scope-provider.js +13 -11
- package/dist/node_modules/langium/lib/references/scope.js +27 -56
- package/dist/node_modules/langium/lib/serializer/hydrator.js +71 -69
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +23 -21
- package/dist/node_modules/langium/lib/service-registry.js +7 -5
- package/dist/node_modules/langium/lib/syntax-tree.js +33 -31
- package/dist/node_modules/langium/lib/utils/ast-utils.js +77 -112
- package/dist/node_modules/langium/lib/utils/caching.js +33 -42
- package/dist/node_modules/langium/lib/utils/cancellation.js +7 -5
- package/dist/node_modules/langium/lib/utils/collections.js +35 -33
- package/dist/node_modules/langium/lib/utils/cst-utils.js +46 -161
- package/dist/node_modules/langium/lib/utils/disposable.js +5 -3
- package/dist/node_modules/langium/lib/utils/errors.js +8 -9
- package/dist/node_modules/langium/lib/utils/event.js +7 -5
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +16 -14
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +172 -249
- package/dist/node_modules/langium/lib/utils/promise-utils.js +18 -19
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +53 -76
- package/dist/node_modules/langium/lib/utils/stream.js +155 -153
- package/dist/node_modules/langium/lib/utils/uri-utils.js +14 -12
- package/dist/node_modules/langium/lib/validation/document-validator.js +104 -103
- package/dist/node_modules/langium/lib/validation/validation-registry.js +15 -14
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +19 -17
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +4 -2
- package/dist/node_modules/langium/lib/workspace/configuration.js +7 -5
- package/dist/node_modules/langium/lib/workspace/document-builder.js +131 -134
- package/dist/node_modules/langium/lib/workspace/documents.js +85 -83
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +5 -4
- package/dist/node_modules/langium/lib/workspace/index-manager.js +16 -14
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +11 -9
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +35 -33
- package/dist/node_modules/layout-base/layout-base.js +6 -4
- package/dist/node_modules/lodash-es/_DataView.js +6 -4
- package/dist/node_modules/lodash-es/_Hash.js +14 -13
- package/dist/node_modules/lodash-es/_ListCache.js +14 -13
- package/dist/node_modules/lodash-es/_Map.js +6 -4
- package/dist/node_modules/lodash-es/_MapCache.js +14 -13
- package/dist/node_modules/lodash-es/_Promise.js +6 -4
- package/dist/node_modules/lodash-es/_Set.js +6 -4
- package/dist/node_modules/lodash-es/_SetCache.js +10 -9
- package/dist/node_modules/lodash-es/_Stack.js +12 -11
- package/dist/node_modules/lodash-es/_Symbol.js +5 -3
- package/dist/node_modules/lodash-es/_Uint8Array.js +5 -3
- package/dist/node_modules/lodash-es/_WeakMap.js +6 -4
- package/dist/node_modules/lodash-es/_apply.js +4 -3
- package/dist/node_modules/lodash-es/_arrayEach.js +4 -3
- package/dist/node_modules/lodash-es/_arrayFilter.js +4 -3
- package/dist/node_modules/lodash-es/_arrayIncludes.js +6 -5
- package/dist/node_modules/lodash-es/_arrayIncludesWith.js +4 -3
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +13 -12
- package/dist/node_modules/lodash-es/_arrayMap.js +4 -3
- package/dist/node_modules/lodash-es/_arrayPush.js +4 -3
- package/dist/node_modules/lodash-es/_arrayReduce.js +4 -3
- package/dist/node_modules/lodash-es/_arraySome.js +4 -3
- package/dist/node_modules/lodash-es/_asciiSize.js +5 -3
- package/dist/node_modules/lodash-es/_assignMergeValue.js +7 -6
- package/dist/node_modules/lodash-es/_assignValue.js +8 -7
- package/dist/node_modules/lodash-es/_assocIndexOf.js +6 -5
- package/dist/node_modules/lodash-es/_baseAssign.js +7 -6
- package/dist/node_modules/lodash-es/_baseAssignIn.js +7 -6
- package/dist/node_modules/lodash-es/_baseAssignValue.js +6 -5
- package/dist/node_modules/lodash-es/_baseClone.js +51 -50
- package/dist/node_modules/lodash-es/_baseCreate.js +7 -5
- package/dist/node_modules/lodash-es/_baseEach.js +6 -4
- package/dist/node_modules/lodash-es/_baseExtremum.js +6 -5
- package/dist/node_modules/lodash-es/_baseFilter.js +6 -5
- package/dist/node_modules/lodash-es/_baseFindIndex.js +4 -3
- package/dist/node_modules/lodash-es/_baseFlatten.js +8 -7
- package/dist/node_modules/lodash-es/_baseFor.js +5 -3
- package/dist/node_modules/lodash-es/_baseForOwn.js +7 -6
- package/dist/node_modules/lodash-es/_baseGet.js +8 -7
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +7 -6
- package/dist/node_modules/lodash-es/_baseGetTag.js +9 -8
- package/dist/node_modules/lodash-es/_baseGt.js +4 -3
- package/dist/node_modules/lodash-es/_baseHas.js +6 -5
- package/dist/node_modules/lodash-es/_baseHasIn.js +4 -3
- package/dist/node_modules/lodash-es/_baseIndexOf.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsArguments.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsEqual.js +7 -6
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +23 -22
- package/dist/node_modules/lodash-es/_baseIsMap.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsMatch.js +9 -8
- package/dist/node_modules/lodash-es/_baseIsNaN.js +4 -3
- package/dist/node_modules/lodash-es/_baseIsNative.js +10 -9
- package/dist/node_modules/lodash-es/_baseIsSet.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +10 -9
- package/dist/node_modules/lodash-es/_baseIteratee.js +10 -9
- package/dist/node_modules/lodash-es/_baseKeys.js +9 -8
- package/dist/node_modules/lodash-es/_baseKeysIn.js +11 -10
- package/dist/node_modules/lodash-es/_baseLt.js +4 -3
- package/dist/node_modules/lodash-es/_baseMap.js +8 -7
- package/dist/node_modules/lodash-es/_baseMatches.js +10 -9
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +15 -14
- package/dist/node_modules/lodash-es/_baseMerge.js +16 -15
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +24 -23
- package/dist/node_modules/lodash-es/_baseOrderBy.js +23 -22
- package/dist/node_modules/lodash-es/_basePick.js +8 -7
- package/dist/node_modules/lodash-es/_basePickBy.js +9 -8
- package/dist/node_modules/lodash-es/_baseProperty.js +4 -3
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +6 -5
- package/dist/node_modules/lodash-es/_baseRange.js +6 -5
- package/dist/node_modules/lodash-es/_baseReduce.js +4 -3
- package/dist/node_modules/lodash-es/_baseRest.js +8 -7
- package/dist/node_modules/lodash-es/_baseSet.js +14 -13
- package/dist/node_modules/lodash-es/_baseSetToString.js +10 -8
- package/dist/node_modules/lodash-es/_baseSortBy.js +4 -3
- package/dist/node_modules/lodash-es/_baseTimes.js +4 -3
- package/dist/node_modules/lodash-es/_baseToString.js +13 -12
- package/dist/node_modules/lodash-es/_baseTrim.js +7 -6
- package/dist/node_modules/lodash-es/_baseUnary.js +4 -3
- package/dist/node_modules/lodash-es/_baseUniq.js +17 -16
- package/dist/node_modules/lodash-es/_baseValues.js +6 -5
- package/dist/node_modules/lodash-es/_baseZipObject.js +4 -3
- package/dist/node_modules/lodash-es/_cacheHas.js +4 -3
- package/dist/node_modules/lodash-es/_castFunction.js +6 -5
- package/dist/node_modules/lodash-es/_castPath.js +9 -8
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +6 -5
- package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -8
- package/dist/node_modules/lodash-es/_cloneDataView.js +6 -5
- package/dist/node_modules/lodash-es/_cloneRegExp.js +6 -5
- package/dist/node_modules/lodash-es/_cloneSymbol.js +7 -6
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +6 -5
- package/dist/node_modules/lodash-es/_compareAscending.js +6 -5
- package/dist/node_modules/lodash-es/_compareMultiple.js +6 -5
- package/dist/node_modules/lodash-es/_copyArray.js +4 -3
- package/dist/node_modules/lodash-es/_copyObject.js +7 -6
- package/dist/node_modules/lodash-es/_copySymbols.js +7 -6
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +7 -6
- package/dist/node_modules/lodash-es/_coreJsData.js +5 -3
- package/dist/node_modules/lodash-es/_createAssigner.js +8 -7
- package/dist/node_modules/lodash-es/_createBaseEach.js +6 -5
- package/dist/node_modules/lodash-es/_createBaseFor.js +4 -3
- package/dist/node_modules/lodash-es/_createFind.js +10 -9
- package/dist/node_modules/lodash-es/_createRange.js +8 -7
- package/dist/node_modules/lodash-es/_createSet.js +9 -7
- package/dist/node_modules/lodash-es/_defineProperty.js +6 -4
- package/dist/node_modules/lodash-es/_equalArrays.js +12 -11
- package/dist/node_modules/lodash-es/_equalByTag.js +29 -28
- package/dist/node_modules/lodash-es/_equalObjects.js +9 -8
- package/dist/node_modules/lodash-es/_flatRest.js +8 -7
- package/dist/node_modules/lodash-es/_freeGlobal.js +4 -2
- package/dist/node_modules/lodash-es/_getAllKeys.js +8 -7
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +8 -7
- package/dist/node_modules/lodash-es/_getMapData.js +6 -5
- package/dist/node_modules/lodash-es/_getMatchData.js +8 -7
- package/dist/node_modules/lodash-es/_getNative.js +8 -7
- package/dist/node_modules/lodash-es/_getPrototype.js +5 -3
- package/dist/node_modules/lodash-es/_getRawTag.js +10 -9
- package/dist/node_modules/lodash-es/_getSymbols.js +9 -7
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +10 -8
- package/dist/node_modules/lodash-es/_getTag.js +21 -19
- package/dist/node_modules/lodash-es/_getValue.js +4 -3
- package/dist/node_modules/lodash-es/_hasPath.js +13 -12
- package/dist/node_modules/lodash-es/_hasUnicode.js +6 -5
- package/dist/node_modules/lodash-es/_hashClear.js +6 -5
- package/dist/node_modules/lodash-es/_hashDelete.js +5 -4
- package/dist/node_modules/lodash-es/_hashGet.js +9 -8
- package/dist/node_modules/lodash-es/_hashHas.js +7 -6
- package/dist/node_modules/lodash-es/_hashSet.js +7 -6
- package/dist/node_modules/lodash-es/_initCloneArray.js +6 -5
- package/dist/node_modules/lodash-es/_initCloneByTag.js +29 -28
- package/dist/node_modules/lodash-es/_initCloneObject.js +8 -7
- package/dist/node_modules/lodash-es/_isFlattenable.js +9 -8
- package/dist/node_modules/lodash-es/_isIndex.js +6 -5
- package/dist/node_modules/lodash-es/_isIterateeCall.js +10 -9
- package/dist/node_modules/lodash-es/_isKey.js +9 -8
- package/dist/node_modules/lodash-es/_isKeyable.js +4 -3
- package/dist/node_modules/lodash-es/_isMasked.js +9 -8
- package/dist/node_modules/lodash-es/_isPrototype.js +6 -5
- package/dist/node_modules/lodash-es/_isStrictComparable.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheClear.js +4 -3
- package/dist/node_modules/lodash-es/_listCacheDelete.js +8 -7
- package/dist/node_modules/lodash-es/_listCacheGet.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheHas.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheSet.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheClear.js +10 -9
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +7 -6
- package/dist/node_modules/lodash-es/_mapCacheGet.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheHas.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheSet.js +6 -5
- package/dist/node_modules/lodash-es/_mapToArray.js +4 -3
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +4 -3
- package/dist/node_modules/lodash-es/_memoizeCapped.js +8 -7
- package/dist/node_modules/lodash-es/_nativeCreate.js +5 -3
- package/dist/node_modules/lodash-es/_nativeKeys.js +5 -3
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +4 -3
- package/dist/node_modules/lodash-es/_nodeUtil.js +6 -4
- package/dist/node_modules/lodash-es/_objectToString.js +6 -5
- package/dist/node_modules/lodash-es/_overArg.js +4 -3
- package/dist/node_modules/lodash-es/_overRest.js +9 -8
- package/dist/node_modules/lodash-es/_root.js +5 -3
- package/dist/node_modules/lodash-es/_safeGet.js +4 -3
- package/dist/node_modules/lodash-es/_setCacheAdd.js +6 -5
- package/dist/node_modules/lodash-es/_setCacheHas.js +4 -3
- package/dist/node_modules/lodash-es/_setToArray.js +4 -3
- package/dist/node_modules/lodash-es/_setToString.js +6 -4
- package/dist/node_modules/lodash-es/_shortOut.js +7 -6
- package/dist/node_modules/lodash-es/_stackClear.js +6 -5
- package/dist/node_modules/lodash-es/_stackDelete.js +4 -3
- package/dist/node_modules/lodash-es/_stackGet.js +4 -3
- package/dist/node_modules/lodash-es/_stackHas.js +4 -3
- package/dist/node_modules/lodash-es/_stackSet.js +11 -10
- package/dist/node_modules/lodash-es/_strictIndexOf.js +4 -3
- package/dist/node_modules/lodash-es/_stringSize.js +8 -7
- package/dist/node_modules/lodash-es/_stringToPath.js +7 -5
- package/dist/node_modules/lodash-es/_toKey.js +8 -7
- package/dist/node_modules/lodash-es/_toSource.js +8 -7
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +6 -5
- package/dist/node_modules/lodash-es/_unicodeSize.js +17 -16
- package/dist/node_modules/lodash-es/clone.js +7 -6
- package/dist/node_modules/lodash-es/cloneDeep.js +7 -6
- package/dist/node_modules/lodash-es/constant.js +4 -3
- package/dist/node_modules/lodash-es/defaults.js +13 -11
- package/dist/node_modules/lodash-es/eq.js +4 -3
- package/dist/node_modules/lodash-es/filter.js +9 -8
- package/dist/node_modules/lodash-es/find.js +6 -4
- package/dist/node_modules/lodash-es/findIndex.js +10 -9
- package/dist/node_modules/lodash-es/flatMap.js +7 -6
- package/dist/node_modules/lodash-es/flatten.js +6 -5
- package/dist/node_modules/lodash-es/forEach.js +9 -8
- package/dist/node_modules/lodash-es/forIn.js +8 -7
- package/dist/node_modules/lodash-es/forOwn.js +7 -6
- package/dist/node_modules/lodash-es/get.js +6 -5
- package/dist/node_modules/lodash-es/has.js +7 -6
- package/dist/node_modules/lodash-es/hasIn.js +7 -6
- package/dist/node_modules/lodash-es/identity.js +4 -3
- package/dist/node_modules/lodash-es/isArguments.js +8 -6
- package/dist/node_modules/lodash-es/isArray.js +4 -2
- package/dist/node_modules/lodash-es/isArrayLike.js +7 -6
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +7 -6
- package/dist/node_modules/lodash-es/isBuffer.js +6 -4
- package/dist/node_modules/lodash-es/isEmpty.js +18 -17
- package/dist/node_modules/lodash-es/isFunction.js +10 -9
- package/dist/node_modules/lodash-es/isLength.js +6 -5
- package/dist/node_modules/lodash-es/isMap.js +7 -5
- package/dist/node_modules/lodash-es/isObject.js +4 -3
- package/dist/node_modules/lodash-es/isObjectLike.js +4 -3
- package/dist/node_modules/lodash-es/isPlainObject.js +13 -12
- package/dist/node_modules/lodash-es/isSet.js +7 -5
- package/dist/node_modules/lodash-es/isString.js +9 -8
- package/dist/node_modules/lodash-es/isSymbol.js +8 -7
- package/dist/node_modules/lodash-es/isTypedArray.js +7 -5
- package/dist/node_modules/lodash-es/isUndefined.js +4 -3
- package/dist/node_modules/lodash-es/keys.js +8 -7
- package/dist/node_modules/lodash-es/keysIn.js +8 -7
- package/dist/node_modules/lodash-es/last.js +4 -3
- package/dist/node_modules/lodash-es/map.js +9 -8
- package/dist/node_modules/lodash-es/mapValues.js +9 -8
- package/dist/node_modules/lodash-es/max.js +8 -7
- package/dist/node_modules/lodash-es/memoize.js +9 -8
- package/dist/node_modules/lodash-es/merge.js +7 -5
- package/dist/node_modules/lodash-es/min.js +8 -7
- package/dist/node_modules/lodash-es/minBy.js +8 -7
- package/dist/node_modules/lodash-es/noop.js +4 -3
- package/dist/node_modules/lodash-es/now.js +6 -4
- package/dist/node_modules/lodash-es/pick.js +7 -5
- package/dist/node_modules/lodash-es/property.js +9 -8
- package/dist/node_modules/lodash-es/range.js +5 -3
- package/dist/node_modules/lodash-es/reduce.js +11 -10
- package/dist/node_modules/lodash-es/size.js +13 -12
- package/dist/node_modules/lodash-es/sortBy.js +9 -7
- package/dist/node_modules/lodash-es/stubArray.js +4 -3
- package/dist/node_modules/lodash-es/stubFalse.js +4 -3
- package/dist/node_modules/lodash-es/toFinite.js +7 -6
- package/dist/node_modules/lodash-es/toInteger.js +6 -5
- package/dist/node_modules/lodash-es/toNumber.js +14 -13
- package/dist/node_modules/lodash-es/toPlainObject.js +7 -6
- package/dist/node_modules/lodash-es/toString.js +6 -5
- package/dist/node_modules/lodash-es/union.js +9 -7
- package/dist/node_modules/lodash-es/uniqBy.js +7 -6
- package/dist/node_modules/lodash-es/uniqueId.js +8 -7
- package/dist/node_modules/lodash-es/values.js +7 -6
- package/dist/node_modules/lodash-es/zipObject.js +7 -6
- package/dist/node_modules/longest-streak/index.js +4 -2
- package/dist/node_modules/markdown-table/index.js +11 -9
- package/dist/node_modules/marked/lib/marked.esm.js +687 -685
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +14 -12
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +4 -2
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +182 -180
- package/dist/node_modules/mdast-util-gfm/lib/index.js +20 -18
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +69 -67
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +47 -45
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +15 -13
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +30 -28
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +16 -14
- package/dist/node_modules/mdast-util-math/lib/index.js +15 -13
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +5 -3
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +11 -9
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +55 -53
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +15 -13
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +61 -59
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +18 -16
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +14 -12
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +8 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +8 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +43 -41
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +11 -9
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +12 -10
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +14 -12
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +8 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +6 -4
- package/dist/node_modules/mdast-util-to-string/lib/index.js +14 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +695 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js +3038 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-YG6GDRKO.js → c4Diagram-AHTNJAMY.js} +581 -573
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +49 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.js +11 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +6 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-B4BG7PRW.js → chunk-4TB4RGXK.js} +590 -444
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +7 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +3640 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +342 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +22 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.js +82 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.js +25 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +570 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +5 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +2348 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js +2014 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +8 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +274 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X2U36JSP.js +67 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.js +1146 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +62 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +32 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.js +29 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.js +29 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +116 -114
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.js +265 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +101 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.js +284 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +213 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.js +133 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-Q2GNP2WA.js → erDiagram-SMLLAGMA.js} +549 -445
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-NV44I4VS.js → flowDiagram-DWJPFMVM.js} +1366 -1345
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js +1720 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +730 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +19 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +718 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.js +885 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-3W4ZIXB7.js → kanban-definition-6JOO6SKY.js} +124 -118
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-VGOIOE7T.js → mindmap-definition-QFDTVHPH.js} +172 -122
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +119 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-AYHSOK5B.js → quadrantDiagram-34T5L4WZ.js} +279 -273
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-UZGBJVZJ.js → requirementDiagram-MS252O5E.js} +100 -66
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.js +529 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +4159 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.js +222 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.js +27 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +1073 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +961 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +578 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.js +2000 -0
- package/dist/node_modules/mermaid/dist/mermaid.core.js +492 -445
- package/dist/node_modules/micromark/lib/constructs.js +80 -79
- package/dist/node_modules/micromark/lib/create-tokenizer.js +14 -12
- package/dist/node_modules/micromark/lib/initialize/content.js +9 -7
- package/dist/node_modules/micromark/lib/initialize/document.js +15 -14
- package/dist/node_modules/micromark/lib/initialize/flow.js +9 -7
- package/dist/node_modules/micromark/lib/initialize/text.js +8 -6
- package/dist/node_modules/micromark/lib/parse.js +20 -18
- package/dist/node_modules/micromark/lib/postprocess.js +6 -4
- package/dist/node_modules/micromark/lib/preprocess.js +6 -4
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +20 -18
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +17 -15
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +11 -9
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +15 -13
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +16 -14
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +22 -21
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +16 -15
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +13 -11
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +18 -17
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +30 -29
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +15 -13
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +68 -67
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +66 -64
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +112 -111
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +32 -31
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +12 -10
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +11 -9
- package/dist/node_modules/micromark-extension-gfm/index.js +16 -14
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +122 -120
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +33 -31
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +11 -9
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +6 -4
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +4 -2
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +36 -34
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +20 -18
- package/dist/node_modules/micromark-extension-math/lib/math-flow.js +21 -20
- package/dist/node_modules/micromark-extension-math/lib/math-text.js +11 -9
- package/dist/node_modules/micromark-extension-math/lib/syntax.js +8 -6
- package/dist/node_modules/micromark-factory-destination/index.js +10 -8
- package/dist/node_modules/micromark-factory-label/index.js +7 -5
- package/dist/node_modules/micromark-factory-space/index.js +7 -5
- package/dist/node_modules/micromark-factory-title/index.js +8 -6
- package/dist/node_modules/micromark-factory-whitespace/index.js +7 -5
- package/dist/node_modules/micromark-util-character/index.js +14 -12
- package/dist/node_modules/micromark-util-chunked/index.js +6 -4
- package/dist/node_modules/micromark-util-classify-character/index.js +7 -5
- package/dist/node_modules/micromark-util-combine-extensions/index.js +13 -11
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +4 -2
- package/dist/node_modules/micromark-util-decode-string/index.js +11 -9
- package/dist/node_modules/micromark-util-html-tag-name/index.js +4 -2
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +4 -2
- package/dist/node_modules/micromark-util-resolve-all/index.js +4 -2
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +6 -4
- package/dist/node_modules/micromark-util-subtokenize/index.js +10 -8
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +10 -8
- package/dist/node_modules/motion/dist/es/react.js +2 -2
- package/dist/node_modules/nanoid/index.browser.js +6 -4
- package/dist/node_modules/nanoid/url-alphabet/index.js +4 -2
- package/dist/node_modules/property-information/index.js +25 -23
- package/dist/node_modules/property-information/lib/aria.js +41 -39
- package/dist/node_modules/property-information/lib/find.js +18 -16
- package/dist/node_modules/property-information/lib/hast-to-react.js +4 -2
- package/dist/node_modules/property-information/lib/html.js +96 -94
- package/dist/node_modules/property-information/lib/normalize.js +4 -2
- package/dist/node_modules/property-information/lib/svg.js +79 -77
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +6 -4
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +4 -2
- package/dist/node_modules/property-information/lib/util/create.js +10 -8
- package/dist/node_modules/property-information/lib/util/defined-info.js +13 -11
- package/dist/node_modules/property-information/lib/util/info.js +5 -3
- package/dist/node_modules/property-information/lib/util/merge.js +6 -4
- package/dist/node_modules/property-information/lib/util/schema.js +5 -3
- package/dist/node_modules/property-information/lib/util/types.js +15 -14
- package/dist/node_modules/property-information/lib/xlink.js +5 -3
- package/dist/node_modules/property-information/lib/xml.js +5 -3
- package/dist/node_modules/property-information/lib/xmlns.js +7 -5
- package/dist/node_modules/rehype-harden/dist/index.js +47 -45
- package/dist/node_modules/rehype-katex/lib/index.js +25 -23
- package/dist/node_modules/rehype-raw/lib/index.js +6 -4
- package/dist/node_modules/rehype-sanitize/lib/index.js +6 -4
- package/dist/node_modules/remark-gfm/lib/index.js +9 -7
- package/dist/node_modules/remark-math/lib/index.js +9 -7
- package/dist/node_modules/remark-parse/lib/index.js +6 -4
- package/dist/node_modules/remark-rehype/lib/index.js +7 -5
- package/dist/node_modules/remend/dist/index.js +368 -297
- package/dist/node_modules/roughjs/bundled/rough.esm.js +877 -875
- package/dist/node_modules/shiki/dist/bundle-full.js +13 -11
- package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +17 -0
- package/dist/node_modules/shiki/dist/engine-oniguruma.js +7 -0
- package/dist/node_modules/shiki/dist/{langs.js → langs-bundle-full-DfKZStlK.js} +8 -6
- package/dist/node_modules/shiki/dist/themes.js +6 -4
- package/dist/node_modules/shiki/dist/wasm.js +2 -2
- package/dist/node_modules/space-separated-tokens/index.js +5 -3
- package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +2500 -0
- package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +37 -0
- package/dist/node_modules/streamdown/dist/index.js +1 -1
- package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +3 -0
- package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +701 -699
- package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +4 -2
- package/dist/node_modules/stringify-entities/lib/core.js +18 -16
- package/dist/node_modules/stringify-entities/lib/index.js +7 -5
- package/dist/node_modules/stringify-entities/lib/util/format-smart.js +10 -8
- package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +6 -4
- package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +6 -4
- package/dist/node_modules/stringify-entities/lib/util/to-named.js +14 -12
- package/dist/node_modules/style-to-js/cjs/index.js +9 -7
- package/dist/node_modules/style-to-js/cjs/utilities.js +6 -4
- package/dist/node_modules/style-to-object/cjs/index.js +8 -6
- package/dist/node_modules/stylis/src/Enum.js +4 -2
- package/dist/node_modules/stylis/src/Parser.js +38 -36
- package/dist/node_modules/stylis/src/Serializer.js +17 -15
- package/dist/node_modules/stylis/src/Tokenizer.js +53 -51
- package/dist/node_modules/stylis/src/Utility.js +17 -15
- package/dist/node_modules/trim-lines/index.js +10 -8
- package/dist/node_modules/trough/lib/index.js +6 -4
- package/dist/node_modules/ts-dedent/esm/index.js +4 -2
- package/dist/node_modules/unified/lib/callable-instance.js +4 -2
- package/dist/node_modules/unified/lib/index.js +102 -101
- package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +4 -2
- package/dist/node_modules/unist-util-find-after/lib/index.js +6 -4
- package/dist/node_modules/unist-util-is/lib/index.js +31 -29
- package/dist/node_modules/unist-util-position/lib/index.js +7 -5
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +10 -8
- package/dist/node_modules/unist-util-visit/lib/index.js +6 -4
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +4 -2
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +21 -20
- package/dist/node_modules/uuid/dist/esm-browser/native.js +3 -2
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +8 -6
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +7 -5
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +10 -9
- package/dist/node_modules/vaul/dist/index.js +276 -274
- package/dist/node_modules/vfile/lib/index.js +44 -42
- package/dist/node_modules/vfile/lib/minpath.browser.js +22 -20
- package/dist/node_modules/vfile/lib/minproc.browser.js +5 -3
- package/dist/node_modules/vfile/lib/minurl.browser.js +8 -6
- package/dist/node_modules/vfile/lib/minurl.shared.js +4 -2
- package/dist/node_modules/vfile-location/lib/index.js +7 -5
- package/dist/node_modules/vfile-message/lib/index.js +7 -5
- package/dist/node_modules/vscode-jsonrpc/browser.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +11 -9
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +28 -26
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +17 -15
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +13 -11
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +11 -9
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +31 -29
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +10 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +23 -21
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +14 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +55 -53
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +10 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +12 -10
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +6 -4
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +21 -19
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +849 -847
- package/dist/node_modules/vscode-uri/lib/esm/index.js +6 -4
- package/dist/node_modules/web-namespaces/index.js +4 -2
- package/dist/node_modules/zwitch/index.js +7 -5
- package/dist/packages/contracts/dist/enums/index.js +21 -20
- package/dist/packages/contracts/dist/enums/registry.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/user-type.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +7 -5
- package/dist/pages/DashboardPage.js +55 -99
- package/dist/pages/DebugPage.js +12 -17
- package/dist/pages/DebugWorkflowDetailsPage.js +91 -119
- package/dist/pages/DebugWorkflowsPage.js +44 -42
- package/dist/pages/EmbedWorkbenchPage.js +49 -73
- package/dist/pages/PreviewWorkbenchPage.js +242 -448
- package/dist/pages/RunsListPage.js +44 -61
- package/dist/pages/RunsPage.js +31 -48
- package/dist/pages/StudioLandingPage.js +97 -132
- package/dist/pages/WorkbenchPage.js +56 -86
- package/dist/pages/WorkflowDebugPage.js +78 -0
- package/dist/pages/WorkspacePage.js +72 -113
- package/dist/pages/WorkspaceRunsPage.js +43 -70
- package/dist/pages/WorkspacesPage.js +24 -35
- package/dist/providers/ComponentOverridesProvider.js +9 -12
- package/dist/providers/InvalidationEventsProvider.js +33 -35
- package/dist/providers/QueryProvider.js +14 -18
- package/dist/providers/SseProvider.js +28 -30
- package/dist/providers/StudioProvider.js +14 -19
- package/dist/routing/LocalRouter.js +20 -26
- package/dist/services/createApiClient.js +7 -5
- package/dist/services/eventEmitter.js +3 -2
- package/dist/services/index.js +2 -2
- package/dist/types/ai.types.js +7 -5
- package/package.json +33 -33
- package/dist/_virtual/rolldown_runtime.js +0 -20
- package/dist/api/namespaces.js +0 -7
- package/dist/api/pipelines.js +0 -13
- package/dist/components/ai-elements/tool.js +0 -158
- package/dist/components/ui-widgets/widgets/SecretInput.js +0 -42
- package/dist/features/debug/components/PipelineDebugHeader.js +0 -48
- package/dist/features/debug/components/PipelineDebugLegend.js +0 -68
- package/dist/features/debug/components/PipelineFlowViewer.js +0 -110
- package/dist/features/debug/components/pipeline-flow/StateNode.js +0 -111
- package/dist/features/debug/components/pipeline-flow/WorkflowGraph.js +0 -41
- package/dist/features/debug/components/pipeline-flow/WorkflowTransitionEdge.js +0 -97
- package/dist/features/workbench/NavigationItems.js +0 -52
- package/dist/features/workbench/WorkbenchNavigation.js +0 -38
- package/dist/features/workbench/components/NavigationItem.js +0 -68
- package/dist/features/workbench/components/PipelineHistoryList.js +0 -56
- package/dist/features/workbench/hooks/useIntersectionObserver.js +0 -44
- package/dist/features/workspaces/components/NewPipelineRunDialog.js +0 -31
- package/dist/features/workspaces/components/PipelineForm.js +0 -152
- package/dist/features/workspaces/components/pipeline-form/ArgumentsView.js +0 -75
- package/dist/features/workspaces/components/pipeline-form/HeaderSection.js +0 -43
- package/dist/features/workspaces/components/pipeline-form/SelectionView.js +0 -105
- package/dist/hooks/useNamespaceTree.js +0 -27
- package/dist/hooks/useNamespaces.js +0 -25
- package/dist/hooks/usePipelines.js +0 -161
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7HQA4BMR.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4F5CHEZ2.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-B2363JML.js +0 -60
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FRFDVMJY.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PL6DKKU2.js +0 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-SJTYNZTY.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +0 -787
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TQ3KTPDO.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UMXZTB3W.js +0 -30
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-G5XIXVHT.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +0 -3
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -2
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -16
- package/dist/node_modules/langium/lib/index.js +0 -182
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
- package/dist/node_modules/langium/lib/utils/index.js +0 -53
- package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
- package/dist/node_modules/lodash/_Symbol.js +0 -7
- package/dist/node_modules/lodash/_baseGetTag.js +0 -13
- package/dist/node_modules/lodash/_baseTrim.js +0 -11
- package/dist/node_modules/lodash/_freeGlobal.js +0 -6
- package/dist/node_modules/lodash/_getRawTag.js +0 -17
- package/dist/node_modules/lodash/_objectToString.js +0 -10
- package/dist/node_modules/lodash/_root.js +0 -8
- package/dist/node_modules/lodash/_trimmedEndIndex.js +0 -11
- package/dist/node_modules/lodash/isObject.js +0 -10
- package/dist/node_modules/lodash/isObjectLike.js +0 -9
- package/dist/node_modules/lodash/isSymbol.js +0 -12
- package/dist/node_modules/lodash/now.js +0 -10
- package/dist/node_modules/lodash/toNumber.js +0 -22
- package/dist/node_modules/lodash-es/_arrayAggregator.js +0 -9
- package/dist/node_modules/lodash-es/_arrayEvery.js +0 -6
- package/dist/node_modules/lodash-es/_baseAggregator.js +0 -8
- package/dist/node_modules/lodash-es/_baseDifference.js +0 -22
- package/dist/node_modules/lodash-es/_baseEvery.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsRegExp.js +0 -8
- package/dist/node_modules/lodash-es/_baseSlice.js +0 -8
- package/dist/node_modules/lodash-es/_baseSome.js +0 -9
- package/dist/node_modules/lodash-es/_createAggregator.js +0 -12
- package/dist/node_modules/lodash-es/assign.js +0 -14
- package/dist/node_modules/lodash-es/compact.js +0 -9
- package/dist/node_modules/lodash-es/difference.js +0 -8
- package/dist/node_modules/lodash-es/drop.js +0 -8
- package/dist/node_modules/lodash-es/dropRight.js +0 -8
- package/dist/node_modules/lodash-es/every.js +0 -11
- package/dist/node_modules/lodash-es/groupBy.js +0 -6
- package/dist/node_modules/lodash-es/head.js +0 -5
- package/dist/node_modules/lodash-es/includes.js +0 -13
- package/dist/node_modules/lodash-es/indexOf.js +0 -11
- package/dist/node_modules/lodash-es/isRegExp.js +0 -5
- package/dist/node_modules/lodash-es/negate.js +0 -16
- package/dist/node_modules/lodash-es/pickBy.js +0 -15
- package/dist/node_modules/lodash-es/reject.js +0 -10
- package/dist/node_modules/lodash-es/some.js +0 -11
- package/dist/node_modules/lodash-es/uniq.js +0 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +0 -673
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.js +0 -3010
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +0 -1547
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.js +0 -65
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +0 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.js +0 -1994
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +0 -135
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.js +0 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.js +0 -74
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +0 -247
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +0 -3516
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.js +0 -1140
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +0 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.js +0 -23
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +0 -497
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js +0 -338
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +0 -55
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.js +0 -26
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.js +0 -26
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.js +0 -263
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.js +0 -283
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +0 -211
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.js +0 -129
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-JELNMOA3.js +0 -1688
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +0 -621
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +0 -18
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.js +0 -883
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +0 -117
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.js +0 -519
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +0 -3560
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.js +0 -220
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.js +0 -25
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +0 -833
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.js +0 -1975
- package/dist/node_modules/streamdown/dist/chunk-RLXIAIE6.js +0 -2189
- package/dist/node_modules/streamdown/dist/highlighted-body-B3W2YXNL.js +0 -33
- package/dist/node_modules/streamdown/dist/mermaid-3ZIDBTTL.js +0 -3
- package/dist/packages/contracts/dist/enums/pipeline-state.js +0 -10
- package/dist/pages/PipelineDebugPage.js +0 -115
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import { ConnectionLineType, ConnectionMode, MarkerType, PanOnScrollMode, Position, ResizeControlVariant, SelectionMode, XYDrag, XYHandle, XYMinimap, XYPanZoom, XYResizer, addEdge, adoptUserNodes, areSetsEqual, calculateNodePosition, createMarkerIds, defaultAriaLabelConfig, devWarn, elementSelectionKeys, errorMessages, evaluateAbsolutePosition, fitViewport, getBezierEdgeCenter, getBezierPath, getBoundsOfRects
|
|
4
|
-
import { createContext, forwardRef, memo, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { createPortal } from "react-dom";
|
|
7
|
-
import { createWithEqualityFn, useStoreWithEqualityFn } from "zustand/traditional";
|
|
8
|
-
import { shallow } from "zustand/shallow";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
import e from "../../../../classcat/index.js";
|
|
3
|
+
import { ConnectionLineType as t, ConnectionMode as n, MarkerType as r, PanOnScrollMode as i, Position as a, ResizeControlVariant as o, SelectionMode as s, XYDrag as c, XYHandle as l, XYMinimap as u, XYPanZoom as d, XYResizer as f, addEdge as p, adoptUserNodes as m, areSetsEqual as h, calculateNodePosition as g, createMarkerIds as _, defaultAriaLabelConfig as v, devWarn as y, elementSelectionKeys as b, errorMessages as x, evaluateAbsolutePosition as S, fitViewport as C, getBezierEdgeCenter as w, getBezierPath as T, getBoundsOfRects as E, getConnectionStatus as D, getDimensions as O, getEdgePosition as k, getElementsToRemove as A, getElevatedEdgeZIndex as j, getEventPosition as M, getHandlePosition as N, getHostForElement as P, getInternalNodesBounds as F, getMarkerId as ee, getNodeDimensions as I, getNodesBounds as L, getNodesInside as R, getOverlappingArea as z, getSmoothStepPath as B, getStraightPath as V, getViewportForBounds as H, handleExpandParent as te, infiniteExtent as ne, initialConnection as re, isEdgeBase as ie, isEdgeVisible as ae, isInputDOMNode as oe, isMacOs as se, isMouseEvent as ce, isNodeBase as le, isNumeric as ue, isRectObject as de, mergeAriaLabelConfig as fe, nodeHasDimensions as pe, nodeToRect as me, panBy as he, pointToRendererPoint as ge, rendererPointToPoint as _e, snapPosition as ve, updateAbsolutePositions as ye, updateConnectionLookup as be, updateNodeInternals as xe, withResolvers as Se } from "../../../system/dist/esm/index.js";
|
|
4
|
+
import { createContext as Ce, forwardRef as we, memo as U, useCallback as W, useContext as Te, useEffect as G, useLayoutEffect as Ee, useMemo as K, useRef as q, useState as J } from "react";
|
|
5
|
+
import { Fragment as De, jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
6
|
+
import { createPortal as Oe } from "react-dom";
|
|
7
|
+
import { createWithEqualityFn as ke, useStoreWithEqualityFn as Ae } from "zustand/traditional";
|
|
8
|
+
import { shallow as Z } from "zustand/shallow";
|
|
9
|
+
//#region ../../node_modules/@xyflow/react/dist/esm/index.js
|
|
10
|
+
var je = Ce(null), Me = je.Provider, Ne = x.error001();
|
|
11
|
+
function Q(e, t) {
|
|
12
|
+
let n = Te(je);
|
|
13
|
+
if (n === null) throw Error(Ne);
|
|
14
|
+
return Ae(n, e, t);
|
|
15
|
+
}
|
|
16
|
+
function $() {
|
|
17
|
+
let e = Te(je);
|
|
18
|
+
if (e === null) throw Error(Ne);
|
|
19
|
+
return K(() => ({
|
|
19
20
|
getState: e.getState,
|
|
20
21
|
setState: e.setState,
|
|
21
22
|
subscribe: e.subscribe
|
|
22
23
|
}), [e]);
|
|
23
24
|
}
|
|
24
|
-
var
|
|
25
|
+
var Pe = { display: "none" }, Fe = {
|
|
25
26
|
position: "absolute",
|
|
26
27
|
width: 1,
|
|
27
28
|
height: 1,
|
|
@@ -31,35 +32,35 @@ var style = { display: "none" }, ariaLiveStyle = {
|
|
|
31
32
|
overflow: "hidden",
|
|
32
33
|
clip: "rect(0px, 0px, 0px, 0px)",
|
|
33
34
|
clipPath: "inset(100%)"
|
|
34
|
-
},
|
|
35
|
-
function
|
|
36
|
-
let t =
|
|
37
|
-
return
|
|
38
|
-
id: `${
|
|
35
|
+
}, Ie = "react-flow__node-desc", Le = "react-flow__edge-desc", Re = "react-flow__aria-live", ze = (e) => e.ariaLiveMessage, Be = (e) => e.ariaLabelConfig;
|
|
36
|
+
function Ve({ rfId: e }) {
|
|
37
|
+
let t = Q(ze);
|
|
38
|
+
return Y("div", {
|
|
39
|
+
id: `${Re}-${e}`,
|
|
39
40
|
"aria-live": "assertive",
|
|
40
41
|
"aria-atomic": "true",
|
|
41
|
-
style:
|
|
42
|
+
style: Fe,
|
|
42
43
|
children: t
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
-
let n =
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
id: `${
|
|
50
|
-
style,
|
|
46
|
+
function He({ rfId: e, disableKeyboardA11y: t }) {
|
|
47
|
+
let n = Q(Be);
|
|
48
|
+
return X(De, { children: [
|
|
49
|
+
Y("div", {
|
|
50
|
+
id: `${Ie}-${e}`,
|
|
51
|
+
style: Pe,
|
|
51
52
|
children: t ? n["node.a11yDescription.default"] : n["node.a11yDescription.keyboardDisabled"]
|
|
52
53
|
}),
|
|
53
|
-
|
|
54
|
-
id: `${
|
|
55
|
-
style,
|
|
54
|
+
Y("div", {
|
|
55
|
+
id: `${Le}-${e}`,
|
|
56
|
+
style: Pe,
|
|
56
57
|
children: n["edge.a11yDescription.default"]
|
|
57
58
|
}),
|
|
58
|
-
!t &&
|
|
59
|
+
!t && Y(Ve, { rfId: e })
|
|
59
60
|
] });
|
|
60
61
|
}
|
|
61
|
-
var
|
|
62
|
-
className:
|
|
62
|
+
var Ue = we(({ position: t = "top-left", children: n, className: r, style: i, ...a }, o) => Y("div", {
|
|
63
|
+
className: e([
|
|
63
64
|
"react-flow__panel",
|
|
64
65
|
r,
|
|
65
66
|
...`${t}`.split("-")
|
|
@@ -69,13 +70,13 @@ var Panel = forwardRef(({ position: t = "top-left", children: n, className: r, s
|
|
|
69
70
|
...a,
|
|
70
71
|
children: n
|
|
71
72
|
}));
|
|
72
|
-
|
|
73
|
-
function
|
|
74
|
-
return e?.hideAttribution ? null :
|
|
73
|
+
Ue.displayName = "Panel";
|
|
74
|
+
function We({ proOptions: e, position: t = "bottom-right" }) {
|
|
75
|
+
return e?.hideAttribution ? null : Y(Ue, {
|
|
75
76
|
position: t,
|
|
76
77
|
className: "react-flow__attribution",
|
|
77
78
|
"data-message": "Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",
|
|
78
|
-
children:
|
|
79
|
+
children: Y("a", {
|
|
79
80
|
href: "https://reactflow.dev",
|
|
80
81
|
target: "_blank",
|
|
81
82
|
rel: "noopener noreferrer",
|
|
@@ -84,7 +85,7 @@ function Attribution({ proOptions: e, position: t = "bottom-right" }) {
|
|
|
84
85
|
})
|
|
85
86
|
});
|
|
86
87
|
}
|
|
87
|
-
var
|
|
88
|
+
var Ge = (e) => {
|
|
88
89
|
let t = [], n = [];
|
|
89
90
|
for (let [, n] of e.nodeLookup) n.selected && t.push(n.internals.userNode);
|
|
90
91
|
for (let [, t] of e.edgeLookup) t.selected && n.push(t);
|
|
@@ -92,13 +93,13 @@ var selector$m = (e) => {
|
|
|
92
93
|
selectedNodes: t,
|
|
93
94
|
selectedEdges: n
|
|
94
95
|
};
|
|
95
|
-
},
|
|
96
|
-
function
|
|
97
|
-
return
|
|
96
|
+
}, Ke = (e) => e.id;
|
|
97
|
+
function qe(e, t) {
|
|
98
|
+
return Z(e.selectedNodes.map(Ke), t.selectedNodes.map(Ke)) && Z(e.selectedEdges.map(Ke), t.selectedEdges.map(Ke));
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
-
let t =
|
|
101
|
-
return
|
|
100
|
+
function Je({ onSelectionChange: e }) {
|
|
101
|
+
let t = $(), { selectedNodes: n, selectedEdges: r } = Q(Ge, qe);
|
|
102
|
+
return G(() => {
|
|
102
103
|
let i = {
|
|
103
104
|
nodes: n,
|
|
104
105
|
edges: r
|
|
@@ -110,16 +111,16 @@ function SelectionListenerInner({ onSelectionChange: e }) {
|
|
|
110
111
|
e
|
|
111
112
|
]), null;
|
|
112
113
|
}
|
|
113
|
-
var
|
|
114
|
-
function
|
|
115
|
-
let t =
|
|
116
|
-
return e || t ?
|
|
114
|
+
var Ye = (e) => !!e.onSelectionChangeHandlers;
|
|
115
|
+
function Xe({ onSelectionChange: e }) {
|
|
116
|
+
let t = Q(Ye);
|
|
117
|
+
return e || t ? Y(Je, { onSelectionChange: e }) : null;
|
|
117
118
|
}
|
|
118
|
-
var
|
|
119
|
+
var Ze = typeof window < "u" ? Ee : G, Qe = [0, 0], $e = {
|
|
119
120
|
x: 0,
|
|
120
121
|
y: 0,
|
|
121
122
|
zoom: 1
|
|
122
|
-
},
|
|
123
|
+
}, et = [.../* @__PURE__ */ "nodes.edges.defaultNodes.defaultEdges.onConnect.onConnectStart.onConnectEnd.onClickConnectStart.onClickConnectEnd.nodesDraggable.autoPanOnNodeFocus.nodesConnectable.nodesFocusable.edgesFocusable.edgesReconnectable.elevateNodesOnSelect.elevateEdgesOnSelect.minZoom.maxZoom.nodeExtent.onNodesChange.onEdgesChange.elementsSelectable.connectionMode.snapGrid.snapToGrid.translateExtent.connectOnClick.defaultEdgeOptions.fitView.fitViewOptions.onNodesDelete.onEdgesDelete.onDelete.onNodeDrag.onNodeDragStart.onNodeDragStop.onSelectionDrag.onSelectionDragStart.onSelectionDragStop.onMoveStart.onMove.onMoveEnd.noPanClassName.nodeOrigin.autoPanOnConnect.autoPanOnNodeDrag.onError.connectionRadius.isValidConnection.selectNodesOnDrag.nodeDragThreshold.connectionDragThreshold.onBeforeDelete.debug.autoPanSpeed.ariaLabelConfig.zIndexMode".split("."), "rfId"], tt = (e) => ({
|
|
123
124
|
setNodes: e.setNodes,
|
|
124
125
|
setEdges: e.setEdges,
|
|
125
126
|
setMinZoom: e.setMinZoom,
|
|
@@ -128,70 +129,70 @@ var defaultNodeOrigin = [0, 0], defaultViewport = {
|
|
|
128
129
|
setNodeExtent: e.setNodeExtent,
|
|
129
130
|
reset: e.reset,
|
|
130
131
|
setDefaultNodesAndEdges: e.setDefaultNodesAndEdges
|
|
131
|
-
}),
|
|
132
|
-
translateExtent:
|
|
133
|
-
nodeOrigin:
|
|
132
|
+
}), nt = {
|
|
133
|
+
translateExtent: ne,
|
|
134
|
+
nodeOrigin: Qe,
|
|
134
135
|
minZoom: .5,
|
|
135
136
|
maxZoom: 2,
|
|
136
137
|
elementsSelectable: !0,
|
|
137
138
|
noPanClassName: "nopan",
|
|
138
139
|
rfId: "1"
|
|
139
140
|
};
|
|
140
|
-
function
|
|
141
|
-
let { setNodes: t, setEdges: n, setMinZoom: r, setMaxZoom: i, setTranslateExtent: a, setNodeExtent: o, reset: s, setDefaultNodesAndEdges: c } =
|
|
142
|
-
|
|
143
|
-
u.current =
|
|
141
|
+
function rt(e) {
|
|
142
|
+
let { setNodes: t, setEdges: n, setMinZoom: r, setMaxZoom: i, setTranslateExtent: a, setNodeExtent: o, reset: s, setDefaultNodesAndEdges: c } = Q(tt, Z), l = $();
|
|
143
|
+
Ze(() => (c(e.defaultNodes, e.defaultEdges), () => {
|
|
144
|
+
u.current = nt, s();
|
|
144
145
|
}), []);
|
|
145
|
-
let u =
|
|
146
|
-
return
|
|
147
|
-
for (let s of
|
|
146
|
+
let u = q(nt);
|
|
147
|
+
return Ze(() => {
|
|
148
|
+
for (let s of et) {
|
|
148
149
|
let c = e[s];
|
|
149
|
-
c !== u.current[s] && e[s] !== void 0 && (s === "nodes" ? t(c) : s === "edges" ? n(c) : s === "minZoom" ? r(c) : s === "maxZoom" ? i(c) : s === "translateExtent" ? a(c) : s === "nodeExtent" ? o(c) : s === "ariaLabelConfig" ? l.setState({ ariaLabelConfig:
|
|
150
|
+
c !== u.current[s] && e[s] !== void 0 && (s === "nodes" ? t(c) : s === "edges" ? n(c) : s === "minZoom" ? r(c) : s === "maxZoom" ? i(c) : s === "translateExtent" ? a(c) : s === "nodeExtent" ? o(c) : s === "ariaLabelConfig" ? l.setState({ ariaLabelConfig: fe(c) }) : s === "fitView" ? l.setState({ fitViewQueued: c }) : s === "fitViewOptions" ? l.setState({ fitViewOptions: c }) : l.setState({ [s]: c }));
|
|
150
151
|
}
|
|
151
152
|
u.current = e;
|
|
152
|
-
},
|
|
153
|
+
}, et.map((t) => e[t])), null;
|
|
153
154
|
}
|
|
154
|
-
function
|
|
155
|
+
function it() {
|
|
155
156
|
return typeof window > "u" || !window.matchMedia ? null : window.matchMedia("(prefers-color-scheme: dark)");
|
|
156
157
|
}
|
|
157
|
-
function
|
|
158
|
-
let [t, n] =
|
|
159
|
-
return
|
|
158
|
+
function at(e) {
|
|
159
|
+
let [t, n] = J(e === "system" ? null : e);
|
|
160
|
+
return G(() => {
|
|
160
161
|
if (e !== "system") {
|
|
161
162
|
n(e);
|
|
162
163
|
return;
|
|
163
164
|
}
|
|
164
|
-
let t =
|
|
165
|
+
let t = it(), r = () => n(t?.matches ? "dark" : "light");
|
|
165
166
|
return r(), t?.addEventListener("change", r), () => {
|
|
166
167
|
t?.removeEventListener("change", r);
|
|
167
168
|
};
|
|
168
|
-
}, [e]), t === null ?
|
|
169
|
+
}, [e]), t === null ? it()?.matches ? "dark" : "light" : t;
|
|
169
170
|
}
|
|
170
|
-
var
|
|
171
|
-
function
|
|
172
|
-
target:
|
|
171
|
+
var ot = typeof document < "u" ? document : null;
|
|
172
|
+
function st(e = null, t = {
|
|
173
|
+
target: ot,
|
|
173
174
|
actInsideInputWithModifier: !0
|
|
174
175
|
}) {
|
|
175
|
-
let [n, r] =
|
|
176
|
+
let [n, r] = J(!1), i = q(!1), a = q(/* @__PURE__ */ new Set([])), [o, s] = K(() => {
|
|
176
177
|
if (e !== null) {
|
|
177
178
|
let t = (Array.isArray(e) ? e : [e]).filter((e) => typeof e == "string").map((e) => e.replace("+", "\n").replace("\n\n", "\n+").split("\n"));
|
|
178
179
|
return [t, t.reduce((e, t) => e.concat(...t), [])];
|
|
179
180
|
}
|
|
180
181
|
return [[], []];
|
|
181
182
|
}, [e]);
|
|
182
|
-
return
|
|
183
|
-
let n = t?.target ??
|
|
183
|
+
return G(() => {
|
|
184
|
+
let n = t?.target ?? ot, c = t?.actInsideInputWithModifier ?? !0;
|
|
184
185
|
if (e !== null) {
|
|
185
186
|
let e = (e) => {
|
|
186
|
-
if (i.current = e.ctrlKey || e.metaKey || e.shiftKey || e.altKey, (!i.current || i.current && !c) &&
|
|
187
|
-
let n =
|
|
188
|
-
if (a.current.add(e[n]),
|
|
187
|
+
if (i.current = e.ctrlKey || e.metaKey || e.shiftKey || e.altKey, (!i.current || i.current && !c) && oe(e)) return !1;
|
|
188
|
+
let n = lt(e.code, s);
|
|
189
|
+
if (a.current.add(e[n]), ct(o, a.current, !1)) {
|
|
189
190
|
let n = e.composedPath?.()?.[0] || e.target, a = n?.nodeName === "BUTTON" || n?.nodeName === "A";
|
|
190
191
|
t.preventDefault !== !1 && (i.current || !a) && e.preventDefault(), r(!0);
|
|
191
192
|
}
|
|
192
193
|
}, l = (e) => {
|
|
193
|
-
let t =
|
|
194
|
-
|
|
194
|
+
let t = lt(e.code, s);
|
|
195
|
+
ct(o, a.current, !0) ? (r(!1), a.current.clear()) : a.current.delete(e[t]), e.key === "Meta" && a.current.clear(), i.current = !1;
|
|
195
196
|
}, u = () => {
|
|
196
197
|
a.current.clear(), r(!1);
|
|
197
198
|
};
|
|
@@ -201,26 +202,26 @@ function useKeyPress(e = null, t = {
|
|
|
201
202
|
}
|
|
202
203
|
}, [e, r]), n;
|
|
203
204
|
}
|
|
204
|
-
function
|
|
205
|
+
function ct(e, t, n) {
|
|
205
206
|
return e.filter((e) => n || e.length === t.size).some((e) => e.every((e) => t.has(e)));
|
|
206
207
|
}
|
|
207
|
-
function
|
|
208
|
+
function lt(e, t) {
|
|
208
209
|
return t.includes(e) ? "code" : "key";
|
|
209
210
|
}
|
|
210
|
-
var
|
|
211
|
-
let e =
|
|
212
|
-
return
|
|
211
|
+
var ut = () => {
|
|
212
|
+
let e = $();
|
|
213
|
+
return K(() => ({
|
|
213
214
|
zoomIn: (t) => {
|
|
214
215
|
let { panZoom: n } = e.getState();
|
|
215
|
-
return n ? n.scaleBy(1.2,
|
|
216
|
+
return n ? n.scaleBy(1.2, t) : Promise.resolve(!1);
|
|
216
217
|
},
|
|
217
218
|
zoomOut: (t) => {
|
|
218
219
|
let { panZoom: n } = e.getState();
|
|
219
|
-
return n ? n.scaleBy(1 / 1.2,
|
|
220
|
+
return n ? n.scaleBy(1 / 1.2, t) : Promise.resolve(!1);
|
|
220
221
|
},
|
|
221
222
|
zoomTo: (t, n) => {
|
|
222
223
|
let { panZoom: r } = e.getState();
|
|
223
|
-
return r ? r.scaleTo(t,
|
|
224
|
+
return r ? r.scaleTo(t, n) : Promise.resolve(!1);
|
|
224
225
|
},
|
|
225
226
|
getZoom: () => e.getState().transform[2],
|
|
226
227
|
setViewport: async (t, n) => {
|
|
@@ -241,7 +242,7 @@ var useViewportHelper = () => {
|
|
|
241
242
|
},
|
|
242
243
|
setCenter: async (t, n, r) => e.getState().setCenter(t, n, r),
|
|
243
244
|
fitBounds: async (t, n) => {
|
|
244
|
-
let { width: r, height: i, minZoom: a, maxZoom: o, panZoom: s } = e.getState(), c =
|
|
245
|
+
let { width: r, height: i, minZoom: a, maxZoom: o, panZoom: s } = e.getState(), c = H(t, r, i, a, o, n?.padding ?? .1);
|
|
245
246
|
return s ? (await s.setViewport(c, {
|
|
246
247
|
duration: n?.duration,
|
|
247
248
|
ease: n?.ease,
|
|
@@ -255,12 +256,12 @@ var useViewportHelper = () => {
|
|
|
255
256
|
x: t.x - s,
|
|
256
257
|
y: t.y - c
|
|
257
258
|
}, u = n.snapGrid ?? i;
|
|
258
|
-
return
|
|
259
|
+
return ge(l, r, n.snapToGrid ?? a, u);
|
|
259
260
|
},
|
|
260
261
|
flowToScreenPosition: (t) => {
|
|
261
262
|
let { transform: n, domNode: r } = e.getState();
|
|
262
263
|
if (!r) return t;
|
|
263
|
-
let { x: i, y: a } = r.getBoundingClientRect(), o =
|
|
264
|
+
let { x: i, y: a } = r.getBoundingClientRect(), o = _e(t, n);
|
|
264
265
|
return {
|
|
265
266
|
x: o.x + i,
|
|
266
267
|
y: o.y + a
|
|
@@ -268,7 +269,7 @@ var useViewportHelper = () => {
|
|
|
268
269
|
}
|
|
269
270
|
}), []);
|
|
270
271
|
};
|
|
271
|
-
function
|
|
272
|
+
function dt(e, t) {
|
|
272
273
|
let n = [], r = /* @__PURE__ */ new Map(), i = [];
|
|
273
274
|
for (let t of e) if (t.type === "add") {
|
|
274
275
|
i.push(t);
|
|
@@ -290,14 +291,14 @@ function applyChanges(e, t) {
|
|
|
290
291
|
continue;
|
|
291
292
|
}
|
|
292
293
|
let i = { ...e };
|
|
293
|
-
for (let e of t)
|
|
294
|
+
for (let e of t) ft(e, i);
|
|
294
295
|
n.push(i);
|
|
295
296
|
}
|
|
296
297
|
return i.length && i.forEach((e) => {
|
|
297
298
|
e.index === void 0 ? n.push({ ...e.item }) : n.splice(e.index, 0, { ...e.item });
|
|
298
299
|
}), n;
|
|
299
300
|
}
|
|
300
|
-
function
|
|
301
|
+
function ft(e, t) {
|
|
301
302
|
switch (e.type) {
|
|
302
303
|
case "select":
|
|
303
304
|
t.selected = e.selected;
|
|
@@ -310,28 +311,28 @@ function applyChange(e, t) {
|
|
|
310
311
|
break;
|
|
311
312
|
}
|
|
312
313
|
}
|
|
313
|
-
function
|
|
314
|
-
return
|
|
314
|
+
function pt(e, t) {
|
|
315
|
+
return dt(e, t);
|
|
315
316
|
}
|
|
316
|
-
function
|
|
317
|
-
return
|
|
317
|
+
function mt(e, t) {
|
|
318
|
+
return dt(e, t);
|
|
318
319
|
}
|
|
319
|
-
function
|
|
320
|
+
function ht(e, t) {
|
|
320
321
|
return {
|
|
321
322
|
id: e,
|
|
322
323
|
type: "select",
|
|
323
324
|
selected: t
|
|
324
325
|
};
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
+
function gt(e, t = /* @__PURE__ */ new Set(), n = !1) {
|
|
327
328
|
let r = [];
|
|
328
329
|
for (let [i, a] of e) {
|
|
329
330
|
let e = t.has(i);
|
|
330
|
-
!(a.selected === void 0 && !e) && a.selected !== e && (n && (a.selected = e), r.push(
|
|
331
|
+
!(a.selected === void 0 && !e) && a.selected !== e && (n && (a.selected = e), r.push(ht(a.id, e)));
|
|
331
332
|
}
|
|
332
333
|
return r;
|
|
333
334
|
}
|
|
334
|
-
function
|
|
335
|
+
function _t({ items: e = [], lookup: t }) {
|
|
335
336
|
let n = [], r = new Map(e.map((e) => [e.id, e]));
|
|
336
337
|
for (let [r, i] of e.entries()) {
|
|
337
338
|
let e = t.get(i.id), a = e?.internals?.userNode ?? e;
|
|
@@ -351,25 +352,24 @@ function getElementsDiffChanges({ items: e = [], lookup: t }) {
|
|
|
351
352
|
});
|
|
352
353
|
return n;
|
|
353
354
|
}
|
|
354
|
-
function
|
|
355
|
+
function vt(e) {
|
|
355
356
|
return {
|
|
356
357
|
id: e.id,
|
|
357
358
|
type: "remove"
|
|
358
359
|
};
|
|
359
360
|
}
|
|
360
|
-
var
|
|
361
|
-
function
|
|
362
|
-
return
|
|
361
|
+
var yt = (e) => le(e), bt = (e) => ie(e);
|
|
362
|
+
function xt(e) {
|
|
363
|
+
return we(e);
|
|
363
364
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
return useIsomorphicLayoutEffect(() => {
|
|
365
|
+
function St(e) {
|
|
366
|
+
let [t, n] = J(BigInt(0)), [r] = J(() => Ct(() => n((e) => e + BigInt(1))));
|
|
367
|
+
return Ze(() => {
|
|
368
368
|
let t = r.get();
|
|
369
369
|
t.length && (e(t), r.reset());
|
|
370
370
|
}, [t]), r;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function Ct(e) {
|
|
373
373
|
let t = [];
|
|
374
374
|
return {
|
|
375
375
|
get: () => t,
|
|
@@ -381,12 +381,12 @@ function createQueue(e) {
|
|
|
381
381
|
}
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
|
-
var
|
|
385
|
-
function
|
|
386
|
-
let t =
|
|
384
|
+
var wt = Ce(null);
|
|
385
|
+
function Tt({ children: e }) {
|
|
386
|
+
let t = $(), n = St(W((e) => {
|
|
387
387
|
let { nodes: n = [], setNodes: r, hasDefaultNodes: i, onNodesChange: a, nodeLookup: o, fitViewQueued: s, onNodesChangeMiddlewareMap: c } = t.getState(), l = n;
|
|
388
388
|
for (let t of e) l = typeof t == "function" ? t(l) : t;
|
|
389
|
-
let u =
|
|
389
|
+
let u = _t({
|
|
390
390
|
items: l,
|
|
391
391
|
lookup: o
|
|
392
392
|
});
|
|
@@ -395,37 +395,37 @@ function BatchProvider({ children: e }) {
|
|
|
395
395
|
let { fitViewQueued: e, nodes: n, setNodes: r } = t.getState();
|
|
396
396
|
e && r(n);
|
|
397
397
|
});
|
|
398
|
-
}, [])), r =
|
|
398
|
+
}, [])), r = St(W((e) => {
|
|
399
399
|
let { edges: n = [], setEdges: r, hasDefaultEdges: i, onEdgesChange: a, edgeLookup: o } = t.getState(), s = n;
|
|
400
400
|
for (let t of e) s = typeof t == "function" ? t(s) : t;
|
|
401
|
-
i ? r(s) : a && a(
|
|
401
|
+
i ? r(s) : a && a(_t({
|
|
402
402
|
items: s,
|
|
403
403
|
lookup: o
|
|
404
404
|
}));
|
|
405
|
-
}, [])), i =
|
|
405
|
+
}, [])), i = K(() => ({
|
|
406
406
|
nodeQueue: n,
|
|
407
407
|
edgeQueue: r
|
|
408
408
|
}), []);
|
|
409
|
-
return
|
|
409
|
+
return Y(wt.Provider, {
|
|
410
410
|
value: i,
|
|
411
411
|
children: e
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
let e =
|
|
414
|
+
function Et() {
|
|
415
|
+
let e = Te(wt);
|
|
416
416
|
if (!e) throw Error("useBatchContext must be used within a BatchProvider");
|
|
417
417
|
return e;
|
|
418
418
|
}
|
|
419
|
-
var
|
|
420
|
-
function
|
|
421
|
-
let e =
|
|
419
|
+
var Dt = (e) => !!e.panZoom;
|
|
420
|
+
function Ot() {
|
|
421
|
+
let e = ut(), t = $(), n = Et(), r = Q(Dt), i = K(() => {
|
|
422
422
|
let e = (e) => t.getState().nodeLookup.get(e), r = (e) => {
|
|
423
423
|
n.nodeQueue.push(e);
|
|
424
424
|
}, i = (e) => {
|
|
425
425
|
n.edgeQueue.push(e);
|
|
426
426
|
}, a = (e) => {
|
|
427
|
-
let { nodeLookup: n, nodeOrigin: r } = t.getState(), i =
|
|
428
|
-
return
|
|
427
|
+
let { nodeLookup: n, nodeOrigin: r } = t.getState(), i = yt(e) ? e : n.get(e.id), a = i.parentId ? S(i.position, i.measured, i.parentId, n, r) : i.position;
|
|
428
|
+
return me({
|
|
429
429
|
...i,
|
|
430
430
|
position: a,
|
|
431
431
|
width: i.measured?.width ?? i.width,
|
|
@@ -435,7 +435,7 @@ function useReactFlow() {
|
|
|
435
435
|
r((r) => r.map((r) => {
|
|
436
436
|
if (r.id === e) {
|
|
437
437
|
let e = typeof t == "function" ? t(r) : t;
|
|
438
|
-
return n.replace &&
|
|
438
|
+
return n.replace && yt(e) ? e : {
|
|
439
439
|
...r,
|
|
440
440
|
...e
|
|
441
441
|
};
|
|
@@ -446,7 +446,7 @@ function useReactFlow() {
|
|
|
446
446
|
i((r) => r.map((r) => {
|
|
447
447
|
if (r.id === e) {
|
|
448
448
|
let e = typeof t == "function" ? t(r) : t;
|
|
449
|
-
return n.replace &&
|
|
449
|
+
return n.replace && bt(e) ? e : {
|
|
450
450
|
...r,
|
|
451
451
|
...e
|
|
452
452
|
};
|
|
@@ -486,7 +486,7 @@ function useReactFlow() {
|
|
|
486
486
|
};
|
|
487
487
|
},
|
|
488
488
|
deleteElements: async ({ nodes: e = [], edges: n = [] }) => {
|
|
489
|
-
let { nodes: r, edges: i, onNodesDelete: a, onEdgesDelete: o, triggerNodeChanges: s, triggerEdgeChanges: c, onDelete: l, onBeforeDelete: u } = t.getState(), { nodes: d, edges: f } = await
|
|
489
|
+
let { nodes: r, edges: i, onNodesDelete: a, onEdgesDelete: o, triggerNodeChanges: s, triggerEdgeChanges: c, onDelete: l, onBeforeDelete: u } = t.getState(), { nodes: d, edges: f } = await A({
|
|
490
490
|
nodesToRemove: e,
|
|
491
491
|
edgesToRemove: n,
|
|
492
492
|
nodes: r,
|
|
@@ -494,11 +494,11 @@ function useReactFlow() {
|
|
|
494
494
|
onBeforeDelete: u
|
|
495
495
|
}), p = f.length > 0, m = d.length > 0;
|
|
496
496
|
if (p) {
|
|
497
|
-
let e = f.map(
|
|
497
|
+
let e = f.map(vt);
|
|
498
498
|
o?.(f), c(e);
|
|
499
499
|
}
|
|
500
500
|
if (m) {
|
|
501
|
-
let e = d.map(
|
|
501
|
+
let e = d.map(vt);
|
|
502
502
|
a?.(d), s(e);
|
|
503
503
|
}
|
|
504
504
|
return (m || p) && l?.({
|
|
@@ -510,18 +510,18 @@ function useReactFlow() {
|
|
|
510
510
|
};
|
|
511
511
|
},
|
|
512
512
|
getIntersectingNodes: (e, n = !0, r) => {
|
|
513
|
-
let i =
|
|
513
|
+
let i = de(e), o = i ? e : a(e), s = r !== void 0;
|
|
514
514
|
return o ? (r || t.getState().nodes).filter((r) => {
|
|
515
515
|
let a = t.getState().nodeLookup.get(r.id);
|
|
516
516
|
if (a && !i && (r.id === e.id || !a.internals.positionAbsolute)) return !1;
|
|
517
|
-
let c =
|
|
517
|
+
let c = me(s ? r : a), l = z(c, o);
|
|
518
518
|
return n && l > 0 || l >= c.width * c.height || l >= o.width * o.height;
|
|
519
519
|
}) : [];
|
|
520
520
|
},
|
|
521
521
|
isNodeIntersecting: (e, t, n = !0) => {
|
|
522
|
-
let r =
|
|
522
|
+
let r = de(e) ? e : a(e);
|
|
523
523
|
if (!r) return !1;
|
|
524
|
-
let i =
|
|
524
|
+
let i = z(r, t);
|
|
525
525
|
return n && i > 0 || i >= t.width * t.height || i >= r.width * r.height;
|
|
526
526
|
},
|
|
527
527
|
updateNode: o,
|
|
@@ -558,7 +558,7 @@ function useReactFlow() {
|
|
|
558
558
|
},
|
|
559
559
|
getNodesBounds: (e) => {
|
|
560
560
|
let { nodeLookup: n, nodeOrigin: r } = t.getState();
|
|
561
|
-
return
|
|
561
|
+
return L(e, {
|
|
562
562
|
nodeLookup: n,
|
|
563
563
|
nodeOrigin: r
|
|
564
564
|
});
|
|
@@ -566,7 +566,7 @@ function useReactFlow() {
|
|
|
566
566
|
getHandleConnections: ({ type: e, id: n, nodeId: r }) => Array.from(t.getState().connectionLookup.get(`${r}-${e}${n ? `-${n}` : ""}`)?.values() ?? []),
|
|
567
567
|
getNodeConnections: ({ type: e, handleId: n, nodeId: r }) => Array.from(t.getState().connectionLookup.get(`${r}${e ? n ? `-${e}-${n}` : `-${e}` : ""}`)?.values() ?? []),
|
|
568
568
|
fitView: async (e) => {
|
|
569
|
-
let r = t.getState().fitViewResolver ??
|
|
569
|
+
let r = t.getState().fitViewResolver ?? Se();
|
|
570
570
|
return t.setState({
|
|
571
571
|
fitViewQueued: !0,
|
|
572
572
|
fitViewOptions: e,
|
|
@@ -575,34 +575,34 @@ function useReactFlow() {
|
|
|
575
575
|
}
|
|
576
576
|
};
|
|
577
577
|
}, []);
|
|
578
|
-
return
|
|
578
|
+
return K(() => ({
|
|
579
579
|
...i,
|
|
580
580
|
...e,
|
|
581
581
|
viewportInitialized: r
|
|
582
582
|
}), [r]);
|
|
583
583
|
}
|
|
584
|
-
var
|
|
585
|
-
function
|
|
586
|
-
let n =
|
|
587
|
-
|
|
584
|
+
var kt = (e) => e.selected, At = typeof window < "u" ? window : void 0;
|
|
585
|
+
function jt({ deleteKeyCode: e, multiSelectionKeyCode: t }) {
|
|
586
|
+
let n = $(), { deleteElements: r } = Ot(), i = st(e, { actInsideInputWithModifier: !1 }), a = st(t, { target: At });
|
|
587
|
+
G(() => {
|
|
588
588
|
if (i) {
|
|
589
589
|
let { edges: e, nodes: t } = n.getState();
|
|
590
590
|
r({
|
|
591
|
-
nodes: t.filter(
|
|
592
|
-
edges: e.filter(
|
|
591
|
+
nodes: t.filter(kt),
|
|
592
|
+
edges: e.filter(kt)
|
|
593
593
|
}), n.setState({ nodesSelectionActive: !1 });
|
|
594
594
|
}
|
|
595
|
-
}, [i]),
|
|
595
|
+
}, [i]), G(() => {
|
|
596
596
|
n.setState({ multiSelectionActive: a });
|
|
597
597
|
}, [a]);
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
let t =
|
|
601
|
-
|
|
599
|
+
function Mt(e) {
|
|
600
|
+
let t = $();
|
|
601
|
+
G(() => {
|
|
602
602
|
let n = () => {
|
|
603
603
|
if (!e.current || !(e.current.checkVisibility?.() ?? !0)) return !1;
|
|
604
|
-
let n =
|
|
605
|
-
(n.height === 0 || n.width === 0) && t.getState().onError?.("004",
|
|
604
|
+
let n = O(e.current);
|
|
605
|
+
(n.height === 0 || n.width === 0) && t.getState().onError?.("004", x.error004()), t.setState({
|
|
606
606
|
width: n.width || 500,
|
|
607
607
|
height: n.height || 500
|
|
608
608
|
});
|
|
@@ -616,30 +616,30 @@ function useResizeHandler(e) {
|
|
|
616
616
|
}
|
|
617
617
|
}, []);
|
|
618
618
|
}
|
|
619
|
-
var
|
|
619
|
+
var Nt = {
|
|
620
620
|
position: "absolute",
|
|
621
621
|
width: "100%",
|
|
622
622
|
height: "100%",
|
|
623
623
|
top: 0,
|
|
624
624
|
left: 0
|
|
625
|
-
},
|
|
625
|
+
}, Pt = (e) => ({
|
|
626
626
|
userSelectionActive: e.userSelectionActive,
|
|
627
627
|
lib: e.lib,
|
|
628
628
|
connectionInProgress: e.connection.inProgress
|
|
629
629
|
});
|
|
630
|
-
function
|
|
631
|
-
let C =
|
|
632
|
-
|
|
633
|
-
let A =
|
|
630
|
+
function Ft({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, panOnScroll: r = !1, panOnScrollSpeed: a = .5, panOnScrollMode: o = i.Free, zoomOnDoubleClick: s = !0, panOnDrag: c = !0, defaultViewport: l, translateExtent: u, minZoom: f, maxZoom: p, zoomActivationKeyCode: m, preventScrolling: h = !0, children: g, noWheelClassName: _, noPanClassName: v, onViewportChange: y, isControlledViewport: b, paneClickDistance: x, selectionOnDrag: S }) {
|
|
631
|
+
let C = $(), w = q(null), { userSelectionActive: T, lib: E, connectionInProgress: D } = Q(Pt, Z), O = st(m), k = q();
|
|
632
|
+
Mt(w);
|
|
633
|
+
let A = W((e) => {
|
|
634
634
|
y?.({
|
|
635
635
|
x: e[0],
|
|
636
636
|
y: e[1],
|
|
637
637
|
zoom: e[2]
|
|
638
638
|
}), b || C.setState({ transform: e });
|
|
639
639
|
}, [y, b]);
|
|
640
|
-
return
|
|
640
|
+
return G(() => {
|
|
641
641
|
if (w.current) {
|
|
642
|
-
k.current =
|
|
642
|
+
k.current = d({
|
|
643
643
|
domNode: w.current,
|
|
644
644
|
minZoom: f,
|
|
645
645
|
maxZoom: p,
|
|
@@ -672,7 +672,7 @@ function ZoomPane({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n =
|
|
|
672
672
|
k.current?.destroy();
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
|
-
}, []),
|
|
675
|
+
}, []), G(() => {
|
|
676
676
|
k.current?.update({
|
|
677
677
|
onPaneContextMenu: e,
|
|
678
678
|
zoomOnScroll: t,
|
|
@@ -712,20 +712,20 @@ function ZoomPane({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n =
|
|
|
712
712
|
D,
|
|
713
713
|
S,
|
|
714
714
|
x
|
|
715
|
-
]),
|
|
715
|
+
]), Y("div", {
|
|
716
716
|
className: "react-flow__renderer",
|
|
717
717
|
ref: w,
|
|
718
|
-
style:
|
|
718
|
+
style: Nt,
|
|
719
719
|
children: g
|
|
720
720
|
});
|
|
721
721
|
}
|
|
722
|
-
var
|
|
722
|
+
var It = (e) => ({
|
|
723
723
|
userSelectionActive: e.userSelectionActive,
|
|
724
724
|
userSelectionRect: e.userSelectionRect
|
|
725
725
|
});
|
|
726
|
-
function
|
|
727
|
-
let { userSelectionActive: e, userSelectionRect: t } =
|
|
728
|
-
return e && t ?
|
|
726
|
+
function Lt() {
|
|
727
|
+
let { userSelectionActive: e, userSelectionRect: t } = Q(It, Z);
|
|
728
|
+
return e && t ? Y("div", {
|
|
729
729
|
className: "react-flow__selection react-flow__container",
|
|
730
730
|
style: {
|
|
731
731
|
width: t.width,
|
|
@@ -734,16 +734,16 @@ function UserSelection() {
|
|
|
734
734
|
}
|
|
735
735
|
}) : null;
|
|
736
736
|
}
|
|
737
|
-
var
|
|
737
|
+
var Rt = (e, t) => (n) => {
|
|
738
738
|
n.target === t.current && e?.(n);
|
|
739
|
-
},
|
|
739
|
+
}, zt = (e) => ({
|
|
740
740
|
userSelectionActive: e.userSelectionActive,
|
|
741
741
|
elementsSelectable: e.elementsSelectable,
|
|
742
742
|
connectionInProgress: e.connection.inProgress,
|
|
743
743
|
dragging: e.paneDragging
|
|
744
744
|
});
|
|
745
|
-
function
|
|
746
|
-
let v =
|
|
745
|
+
function Bt({ isSelecting: t, selectionKeyPressed: n, selectionMode: r = s.Full, panOnDrag: i, paneClickDistance: a, selectionOnDrag: o, onSelectionStart: c, onSelectionEnd: l, onPaneClick: u, onPaneContextMenu: d, onPaneScroll: f, onPaneMouseEnter: p, onPaneMouseMove: m, onPaneMouseLeave: g, children: _ }) {
|
|
746
|
+
let v = $(), { userSelectionActive: y, elementsSelectable: b, dragging: x, connectionInProgress: S } = Q(zt, Z), C = b && (t || y), w = q(null), T = q(), E = q(/* @__PURE__ */ new Set()), D = q(/* @__PURE__ */ new Set()), O = q(!1), k = (e) => {
|
|
747
747
|
if (O.current || S) {
|
|
748
748
|
O.current = !1;
|
|
749
749
|
return;
|
|
@@ -756,20 +756,20 @@ function Pane({ isSelecting: t, selectionKeyPressed: n, selectionMode: r = Selec
|
|
|
756
756
|
}
|
|
757
757
|
d?.(e);
|
|
758
758
|
}, j = f ? (e) => f(e) : void 0;
|
|
759
|
-
return
|
|
760
|
-
className:
|
|
759
|
+
return X("div", {
|
|
760
|
+
className: e(["react-flow__pane", {
|
|
761
761
|
draggable: i === !0 || Array.isArray(i) && i.includes(0),
|
|
762
762
|
dragging: x,
|
|
763
763
|
selection: t
|
|
764
764
|
}]),
|
|
765
|
-
onClick: C ? void 0 :
|
|
766
|
-
onContextMenu:
|
|
767
|
-
onWheel:
|
|
765
|
+
onClick: C ? void 0 : Rt(k, w),
|
|
766
|
+
onContextMenu: Rt(A, w),
|
|
767
|
+
onWheel: Rt(j, w),
|
|
768
768
|
onPointerEnter: C ? void 0 : p,
|
|
769
769
|
onPointerMove: C ? (e) => {
|
|
770
770
|
let { userSelectionRect: t, transform: i, nodeLookup: o, edgeLookup: l, connectionLookup: u, triggerNodeChanges: d, triggerEdgeChanges: f, defaultEdgeOptions: p, resetSelectedElements: m } = v.getState();
|
|
771
771
|
if (!T.current || !t) return;
|
|
772
|
-
let { x: g, y: _ } =
|
|
772
|
+
let { x: g, y: _ } = M(e.nativeEvent, T.current), { startX: y, startY: b } = t;
|
|
773
773
|
if (!O.current) {
|
|
774
774
|
let t = n ? 0 : a;
|
|
775
775
|
if (Math.hypot(g - y, _ - b) <= t) return;
|
|
@@ -784,7 +784,7 @@ function Pane({ isSelecting: t, selectionKeyPressed: n, selectionMode: r = Selec
|
|
|
784
784
|
width: Math.abs(g - y),
|
|
785
785
|
height: Math.abs(_ - b)
|
|
786
786
|
}, S = E.current, C = D.current;
|
|
787
|
-
E.current = new Set(
|
|
787
|
+
E.current = new Set(R(o, x, i, r === s.Partial, !0).map((e) => e.id)), D.current = /* @__PURE__ */ new Set();
|
|
788
788
|
let w = p?.selectable ?? !0;
|
|
789
789
|
for (let e of E.current) {
|
|
790
790
|
let t = u.get(e);
|
|
@@ -793,7 +793,7 @@ function Pane({ isSelecting: t, selectionKeyPressed: n, selectionMode: r = Selec
|
|
|
793
793
|
t && (t.selectable ?? w) && D.current.add(e);
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
|
-
|
|
796
|
+
h(S, E.current) || d(gt(o, E.current, !0)), h(C, D.current) || f(gt(l, D.current)), v.setState({
|
|
797
797
|
userSelectionRect: x,
|
|
798
798
|
userSelectionActive: !0,
|
|
799
799
|
nodesSelectionActive: !1
|
|
@@ -811,7 +811,7 @@ function Pane({ isSelecting: t, selectionKeyPressed: n, selectionMode: r = Selec
|
|
|
811
811
|
let i = e.target === w.current;
|
|
812
812
|
if (!i && e.target.closest(".nokey") || !t || !(o && i || n) || e.button !== 0 || !e.isPrimary) return;
|
|
813
813
|
e.target?.setPointerCapture?.(e.pointerId), O.current = !1;
|
|
814
|
-
let { x: a, y: s } =
|
|
814
|
+
let { x: a, y: s } = M(e.nativeEvent, T.current);
|
|
815
815
|
v.setState({ userSelectionRect: {
|
|
816
816
|
width: 0,
|
|
817
817
|
height: 0,
|
|
@@ -826,14 +826,14 @@ function Pane({ isSelecting: t, selectionKeyPressed: n, selectionMode: r = Selec
|
|
|
826
826
|
} : void 0,
|
|
827
827
|
onPointerLeave: g,
|
|
828
828
|
ref: w,
|
|
829
|
-
style:
|
|
830
|
-
children: [_,
|
|
829
|
+
style: Nt,
|
|
830
|
+
children: [_, Y(Lt, {})]
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function Vt({ id: e, store: t, unselect: n = !1, nodeRef: r }) {
|
|
834
834
|
let { addSelectedNodes: i, unselectNodesAndEdges: a, multiSelectionActive: o, nodeLookup: s, onError: c } = t.getState(), l = s.get(e);
|
|
835
835
|
if (!l) {
|
|
836
|
-
c?.("012",
|
|
836
|
+
c?.("012", x.error012(e));
|
|
837
837
|
return;
|
|
838
838
|
}
|
|
839
839
|
t.setState({ nodesSelectionActive: !1 }), l.selected ? (n || l.selected && o) && (a({
|
|
@@ -841,13 +841,13 @@ function handleNodeClick({ id: e, store: t, unselect: n = !1, nodeRef: r }) {
|
|
|
841
841
|
edges: []
|
|
842
842
|
}), requestAnimationFrame(() => r?.current?.blur())) : i([e]);
|
|
843
843
|
}
|
|
844
|
-
function
|
|
845
|
-
let s =
|
|
846
|
-
return
|
|
847
|
-
d.current =
|
|
844
|
+
function Ht({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector: r, nodeId: i, isSelectable: a, nodeClickDistance: o }) {
|
|
845
|
+
let s = $(), [l, u] = J(!1), d = q();
|
|
846
|
+
return G(() => {
|
|
847
|
+
d.current = c({
|
|
848
848
|
getStoreItems: () => s.getState(),
|
|
849
849
|
onNodeMouseDown: (t) => {
|
|
850
|
-
|
|
850
|
+
Vt({
|
|
851
851
|
id: t,
|
|
852
852
|
store: s,
|
|
853
853
|
nodeRef: e
|
|
@@ -860,7 +860,7 @@ function useDrag({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelec
|
|
|
860
860
|
u(!1);
|
|
861
861
|
}
|
|
862
862
|
});
|
|
863
|
-
}, []),
|
|
863
|
+
}, []), G(() => {
|
|
864
864
|
if (!(t || !e.current || !d.current)) return d.current.update({
|
|
865
865
|
noDragClassName: n,
|
|
866
866
|
handleSelector: r,
|
|
@@ -881,19 +881,19 @@ function useDrag({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelec
|
|
|
881
881
|
o
|
|
882
882
|
]), l;
|
|
883
883
|
}
|
|
884
|
-
var
|
|
885
|
-
function
|
|
886
|
-
let e =
|
|
887
|
-
return
|
|
888
|
-
let { nodeExtent: n, snapToGrid: r, snapGrid: i, nodesDraggable: a, onError: o, updateNodePositions: s, nodeLookup: c, nodeOrigin: l } = e.getState(), u = /* @__PURE__ */ new Map(), d =
|
|
884
|
+
var Ut = (e) => (t) => t.selected && (t.draggable || e && t.draggable === void 0);
|
|
885
|
+
function Wt() {
|
|
886
|
+
let e = $();
|
|
887
|
+
return W((t) => {
|
|
888
|
+
let { nodeExtent: n, snapToGrid: r, snapGrid: i, nodesDraggable: a, onError: o, updateNodePositions: s, nodeLookup: c, nodeOrigin: l } = e.getState(), u = /* @__PURE__ */ new Map(), d = Ut(a), f = r ? i[0] : 5, p = r ? i[1] : 5, m = t.direction.x * f * t.factor, h = t.direction.y * p * t.factor;
|
|
889
889
|
for (let [, e] of c) {
|
|
890
890
|
if (!d(e)) continue;
|
|
891
891
|
let t = {
|
|
892
892
|
x: e.internals.positionAbsolute.x + m,
|
|
893
893
|
y: e.internals.positionAbsolute.y + h
|
|
894
894
|
};
|
|
895
|
-
r && (t =
|
|
896
|
-
let { position: a, positionAbsolute: s } =
|
|
895
|
+
r && (t = ve(t, i));
|
|
896
|
+
let { position: a, positionAbsolute: s } = g({
|
|
897
897
|
nodeId: e.id,
|
|
898
898
|
nextPosition: t,
|
|
899
899
|
nodeLookup: c,
|
|
@@ -906,27 +906,27 @@ function useMoveSelectedNodes() {
|
|
|
906
906
|
s(u);
|
|
907
907
|
}, []);
|
|
908
908
|
}
|
|
909
|
-
var
|
|
910
|
-
|
|
911
|
-
var
|
|
909
|
+
var Gt = Ce(null), Kt = Gt.Provider;
|
|
910
|
+
Gt.Consumer;
|
|
911
|
+
var qt = () => Te(Gt), Jt = (e) => ({
|
|
912
912
|
connectOnClick: e.connectOnClick,
|
|
913
913
|
noPanClassName: e.noPanClassName,
|
|
914
914
|
rfId: e.rfId
|
|
915
|
-
}),
|
|
915
|
+
}), Yt = (e, t, r) => (i) => {
|
|
916
916
|
let { connectionClickStartHandle: a, connectionMode: o, connection: s } = i, { fromHandle: c, toHandle: l, isValid: u } = s, d = l?.nodeId === e && l?.id === t && l?.type === r;
|
|
917
917
|
return {
|
|
918
918
|
connectingFrom: c?.nodeId === e && c?.id === t && c?.type === r,
|
|
919
919
|
connectingTo: d,
|
|
920
920
|
clickConnecting: a?.nodeId === e && a?.id === t && a?.type === r,
|
|
921
|
-
isPossibleEndHandle: o ===
|
|
921
|
+
isPossibleEndHandle: o === n.Strict ? c?.type !== r : e !== c?.nodeId || t !== c?.id,
|
|
922
922
|
connectionInProcess: !!c,
|
|
923
923
|
clickConnectionInProcess: !!a,
|
|
924
924
|
valid: d && u
|
|
925
925
|
};
|
|
926
926
|
};
|
|
927
|
-
function
|
|
928
|
-
let v = c || null, y = t === "target", b =
|
|
929
|
-
S || b.getState().onError?.("010",
|
|
927
|
+
function Xt({ type: t = "source", position: n = a.Top, isValidConnection: r, isConnectable: i = !0, isConnectableStart: o = !0, isConnectableEnd: s = !0, id: c, onConnect: u, children: d, className: f, onMouseDown: m, onTouchStart: h, ...g }, _) {
|
|
928
|
+
let v = c || null, y = t === "target", b = $(), S = qt(), { connectOnClick: C, noPanClassName: w, rfId: T } = Q(Jt, Z), { connectingFrom: E, connectingTo: D, clickConnecting: O, isPossibleEndHandle: k, connectionInProcess: A, clickConnectionInProcess: j, valid: M } = Q(Yt(S, v, t), Z);
|
|
929
|
+
S || b.getState().onError?.("010", x.error010());
|
|
930
930
|
let N = (e) => {
|
|
931
931
|
let { defaultEdgeOptions: t, onConnect: n, hasDefaultEdges: r } = b.getState(), i = {
|
|
932
932
|
...t,
|
|
@@ -934,15 +934,15 @@ function HandleComponent({ type: t = "source", position: n = Position.Top, isVal
|
|
|
934
934
|
};
|
|
935
935
|
if (r) {
|
|
936
936
|
let { edges: e, setEdges: t } = b.getState();
|
|
937
|
-
t(
|
|
937
|
+
t(p(i, e));
|
|
938
938
|
}
|
|
939
939
|
n?.(i), u?.(i);
|
|
940
|
-
},
|
|
940
|
+
}, F = (e) => {
|
|
941
941
|
if (!S) return;
|
|
942
|
-
let t =
|
|
942
|
+
let t = ce(e.nativeEvent);
|
|
943
943
|
if (o && (t && e.button === 0 || !t)) {
|
|
944
944
|
let t = b.getState();
|
|
945
|
-
|
|
945
|
+
l.onPointerDown(e.nativeEvent, {
|
|
946
946
|
handleDomNode: e.currentTarget,
|
|
947
947
|
autoPanOnConnect: t.autoPanOnConnect,
|
|
948
948
|
connectionMode: t.connectionMode,
|
|
@@ -968,47 +968,13 @@ function HandleComponent({ type: t = "source", position: n = Position.Top, isVal
|
|
|
968
968
|
});
|
|
969
969
|
}
|
|
970
970
|
t ? m?.(e) : h?.(e);
|
|
971
|
-
}, F = (e) => {
|
|
972
|
-
let { onClickConnectStart: n, onClickConnectEnd: i, connectionClickStartHandle: a, connectionMode: s, isValidConnection: c, lib: u, rfId: d, nodeLookup: f, connection: p } = b.getState();
|
|
973
|
-
if (!S || !a && !o) return;
|
|
974
|
-
if (!a) {
|
|
975
|
-
n?.(e.nativeEvent, {
|
|
976
|
-
nodeId: S,
|
|
977
|
-
handleId: v,
|
|
978
|
-
handleType: t
|
|
979
|
-
}), b.setState({ connectionClickStartHandle: {
|
|
980
|
-
nodeId: S,
|
|
981
|
-
type: t,
|
|
982
|
-
id: v
|
|
983
|
-
} });
|
|
984
|
-
return;
|
|
985
|
-
}
|
|
986
|
-
let m = getHostForElement(e.target), h = r || c, { connection: g, isValid: _ } = XYHandle.isValid(e.nativeEvent, {
|
|
987
|
-
handle: {
|
|
988
|
-
nodeId: S,
|
|
989
|
-
id: v,
|
|
990
|
-
type: t
|
|
991
|
-
},
|
|
992
|
-
connectionMode: s,
|
|
993
|
-
fromNodeId: a.nodeId,
|
|
994
|
-
fromHandleId: a.id || null,
|
|
995
|
-
fromType: a.type,
|
|
996
|
-
isValidConnection: h,
|
|
997
|
-
flowId: d,
|
|
998
|
-
doc: m,
|
|
999
|
-
lib: u,
|
|
1000
|
-
nodeLookup: f
|
|
1001
|
-
});
|
|
1002
|
-
_ && g && N(g);
|
|
1003
|
-
let y = structuredClone(p);
|
|
1004
|
-
delete y.inProgress, y.toPosition = y.toHandle ? y.toHandle.position : null, i?.(e, y), b.setState({ connectionClickStartHandle: null });
|
|
1005
971
|
};
|
|
1006
|
-
return
|
|
972
|
+
return Y("div", {
|
|
1007
973
|
"data-handleid": v,
|
|
1008
974
|
"data-nodeid": S,
|
|
1009
975
|
"data-handlepos": n,
|
|
1010
976
|
"data-id": `${T}-${S}-${v}-${t}`,
|
|
1011
|
-
className:
|
|
977
|
+
className: e([
|
|
1012
978
|
"react-flow__handle",
|
|
1013
979
|
`react-flow__handle-${n}`,
|
|
1014
980
|
"nodrag",
|
|
@@ -1027,48 +993,82 @@ function HandleComponent({ type: t = "source", position: n = Position.Top, isVal
|
|
|
1027
993
|
connectionindicator: i && (!A || k) && (A || j ? s : o)
|
|
1028
994
|
}
|
|
1029
995
|
]),
|
|
1030
|
-
onMouseDown:
|
|
1031
|
-
onTouchStart:
|
|
1032
|
-
onClick: C ?
|
|
996
|
+
onMouseDown: F,
|
|
997
|
+
onTouchStart: F,
|
|
998
|
+
onClick: C ? (e) => {
|
|
999
|
+
let { onClickConnectStart: n, onClickConnectEnd: i, connectionClickStartHandle: a, connectionMode: s, isValidConnection: c, lib: u, rfId: d, nodeLookup: f, connection: p } = b.getState();
|
|
1000
|
+
if (!S || !a && !o) return;
|
|
1001
|
+
if (!a) {
|
|
1002
|
+
n?.(e.nativeEvent, {
|
|
1003
|
+
nodeId: S,
|
|
1004
|
+
handleId: v,
|
|
1005
|
+
handleType: t
|
|
1006
|
+
}), b.setState({ connectionClickStartHandle: {
|
|
1007
|
+
nodeId: S,
|
|
1008
|
+
type: t,
|
|
1009
|
+
id: v
|
|
1010
|
+
} });
|
|
1011
|
+
return;
|
|
1012
|
+
}
|
|
1013
|
+
let m = P(e.target), h = r || c, { connection: g, isValid: _ } = l.isValid(e.nativeEvent, {
|
|
1014
|
+
handle: {
|
|
1015
|
+
nodeId: S,
|
|
1016
|
+
id: v,
|
|
1017
|
+
type: t
|
|
1018
|
+
},
|
|
1019
|
+
connectionMode: s,
|
|
1020
|
+
fromNodeId: a.nodeId,
|
|
1021
|
+
fromHandleId: a.id || null,
|
|
1022
|
+
fromType: a.type,
|
|
1023
|
+
isValidConnection: h,
|
|
1024
|
+
flowId: d,
|
|
1025
|
+
doc: m,
|
|
1026
|
+
lib: u,
|
|
1027
|
+
nodeLookup: f
|
|
1028
|
+
});
|
|
1029
|
+
_ && g && N(g);
|
|
1030
|
+
let y = structuredClone(p);
|
|
1031
|
+
delete y.inProgress, y.toPosition = y.toHandle ? y.toHandle.position : null, i?.(e, y), b.setState({ connectionClickStartHandle: null });
|
|
1032
|
+
} : void 0,
|
|
1033
1033
|
ref: _,
|
|
1034
1034
|
...g,
|
|
1035
1035
|
children: d
|
|
1036
1036
|
});
|
|
1037
1037
|
}
|
|
1038
|
-
var
|
|
1039
|
-
function
|
|
1040
|
-
return
|
|
1038
|
+
var Zt = U(xt(Xt));
|
|
1039
|
+
function Qt({ data: e, isConnectable: t, sourcePosition: n = a.Bottom }) {
|
|
1040
|
+
return X(De, { children: [e?.label, Y(Zt, {
|
|
1041
1041
|
type: "source",
|
|
1042
1042
|
position: n,
|
|
1043
1043
|
isConnectable: t
|
|
1044
1044
|
})] });
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1047
|
-
return
|
|
1048
|
-
|
|
1046
|
+
function $t({ data: e, isConnectable: t, targetPosition: n = a.Top, sourcePosition: r = a.Bottom }) {
|
|
1047
|
+
return X(De, { children: [
|
|
1048
|
+
Y(Zt, {
|
|
1049
1049
|
type: "target",
|
|
1050
1050
|
position: n,
|
|
1051
1051
|
isConnectable: t
|
|
1052
1052
|
}),
|
|
1053
1053
|
e?.label,
|
|
1054
|
-
|
|
1054
|
+
Y(Zt, {
|
|
1055
1055
|
type: "source",
|
|
1056
1056
|
position: r,
|
|
1057
1057
|
isConnectable: t
|
|
1058
1058
|
})
|
|
1059
1059
|
] });
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function en() {
|
|
1062
1062
|
return null;
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1065
|
-
return
|
|
1064
|
+
function tn({ data: e, isConnectable: t, targetPosition: n = a.Top }) {
|
|
1065
|
+
return X(De, { children: [Y(Zt, {
|
|
1066
1066
|
type: "target",
|
|
1067
1067
|
position: n,
|
|
1068
1068
|
isConnectable: t
|
|
1069
1069
|
}), e?.label] });
|
|
1070
1070
|
}
|
|
1071
|
-
var
|
|
1071
|
+
var nn = {
|
|
1072
1072
|
ArrowUp: {
|
|
1073
1073
|
x: 0,
|
|
1074
1074
|
y: -1
|
|
@@ -1085,13 +1085,13 @@ var arrowKeyDiffs = {
|
|
|
1085
1085
|
x: 1,
|
|
1086
1086
|
y: 0
|
|
1087
1087
|
}
|
|
1088
|
-
},
|
|
1089
|
-
input:
|
|
1090
|
-
default:
|
|
1091
|
-
output:
|
|
1092
|
-
group:
|
|
1088
|
+
}, rn = {
|
|
1089
|
+
input: Qt,
|
|
1090
|
+
default: $t,
|
|
1091
|
+
output: tn,
|
|
1092
|
+
group: en
|
|
1093
1093
|
};
|
|
1094
|
-
function
|
|
1094
|
+
function an(e) {
|
|
1095
1095
|
return e.internals.handleBounds === void 0 ? {
|
|
1096
1096
|
width: e.width ?? e.initialWidth ?? e.style?.width,
|
|
1097
1097
|
height: e.height ?? e.initialHeight ?? e.style?.height
|
|
@@ -1100,43 +1100,43 @@ function getNodeInlineStyleDimensions(e) {
|
|
|
1100
1100
|
height: e.height ?? e.style?.height
|
|
1101
1101
|
};
|
|
1102
1102
|
}
|
|
1103
|
-
var
|
|
1104
|
-
let { width: t, height: n, x: r, y: i } =
|
|
1103
|
+
var on = (e) => {
|
|
1104
|
+
let { width: t, height: n, x: r, y: i } = F(e.nodeLookup, { filter: (e) => !!e.selected });
|
|
1105
1105
|
return {
|
|
1106
|
-
width:
|
|
1107
|
-
height:
|
|
1106
|
+
width: ue(t) ? t : null,
|
|
1107
|
+
height: ue(n) ? n : null,
|
|
1108
1108
|
userSelectionActive: e.userSelectionActive,
|
|
1109
1109
|
transformString: `translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${r}px,${i}px)`
|
|
1110
1110
|
};
|
|
1111
1111
|
};
|
|
1112
|
-
function
|
|
1113
|
-
let i =
|
|
1114
|
-
|
|
1112
|
+
function sn({ onSelectionContextMenu: t, noPanClassName: n, disableKeyboardA11y: r }) {
|
|
1113
|
+
let i = $(), { width: a, height: o, transformString: s, userSelectionActive: c } = Q(on, Z), l = Wt(), u = q(null);
|
|
1114
|
+
G(() => {
|
|
1115
1115
|
r || u.current?.focus({ preventScroll: !0 });
|
|
1116
1116
|
}, [r]);
|
|
1117
1117
|
let d = !c && a !== null && o !== null;
|
|
1118
|
-
if (
|
|
1118
|
+
if (Ht({
|
|
1119
1119
|
nodeRef: u,
|
|
1120
1120
|
disabled: !d
|
|
1121
1121
|
}), !d) return null;
|
|
1122
1122
|
let f = t ? (e) => {
|
|
1123
1123
|
t(e, i.getState().nodes.filter((e) => e.selected));
|
|
1124
1124
|
} : void 0;
|
|
1125
|
-
return
|
|
1126
|
-
className:
|
|
1125
|
+
return Y("div", {
|
|
1126
|
+
className: e([
|
|
1127
1127
|
"react-flow__nodesselection",
|
|
1128
1128
|
"react-flow__container",
|
|
1129
1129
|
n
|
|
1130
1130
|
]),
|
|
1131
1131
|
style: { transform: s },
|
|
1132
|
-
children:
|
|
1132
|
+
children: Y("div", {
|
|
1133
1133
|
ref: u,
|
|
1134
1134
|
className: "react-flow__nodesselection-rect",
|
|
1135
1135
|
onContextMenu: f,
|
|
1136
1136
|
tabIndex: r ? void 0 : -1,
|
|
1137
1137
|
onKeyDown: r ? void 0 : (e) => {
|
|
1138
|
-
Object.prototype.hasOwnProperty.call(
|
|
1139
|
-
direction:
|
|
1138
|
+
Object.prototype.hasOwnProperty.call(nn, e.key) && (e.preventDefault(), l({
|
|
1139
|
+
direction: nn[e.key],
|
|
1140
1140
|
factor: e.shiftKey ? 4 : 1
|
|
1141
1141
|
}));
|
|
1142
1142
|
},
|
|
@@ -1147,25 +1147,25 @@ function NodesSelection({ onSelectionContextMenu: t, noPanClassName: n, disableK
|
|
|
1147
1147
|
})
|
|
1148
1148
|
});
|
|
1149
1149
|
}
|
|
1150
|
-
var
|
|
1150
|
+
var cn = typeof window < "u" ? window : void 0, ln = (e) => ({
|
|
1151
1151
|
nodesSelectionActive: e.nodesSelectionActive,
|
|
1152
1152
|
userSelectionActive: e.userSelectionActive
|
|
1153
1153
|
});
|
|
1154
|
-
function
|
|
1155
|
-
let { nodesSelectionActive:
|
|
1156
|
-
return
|
|
1154
|
+
function un({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: i, onPaneContextMenu: a, onPaneScroll: o, paneClickDistance: s, deleteKeyCode: c, selectionKeyCode: l, selectionOnDrag: u, selectionMode: d, onSelectionStart: f, onSelectionEnd: p, multiSelectionKeyCode: m, panActivationKeyCode: h, zoomActivationKeyCode: g, elementsSelectable: _, zoomOnScroll: v, zoomOnPinch: y, panOnScroll: b, panOnScrollSpeed: x, panOnScrollMode: S, zoomOnDoubleClick: C, panOnDrag: w, defaultViewport: T, translateExtent: E, minZoom: D, maxZoom: O, preventScrolling: k, onSelectionContextMenu: A, noWheelClassName: j, noPanClassName: M, disableKeyboardA11y: N, onViewportChange: P, isControlledViewport: F }) {
|
|
1155
|
+
let { nodesSelectionActive: ee, userSelectionActive: I } = Q(ln, Z), L = st(l, { target: cn }), R = st(h, { target: cn }), z = R || w, B = R || b, V = u && z !== !0, H = L || I || V;
|
|
1156
|
+
return jt({
|
|
1157
1157
|
deleteKeyCode: c,
|
|
1158
1158
|
multiSelectionKeyCode: m
|
|
1159
|
-
}),
|
|
1159
|
+
}), Y(Ft, {
|
|
1160
1160
|
onPaneContextMenu: a,
|
|
1161
1161
|
elementsSelectable: _,
|
|
1162
1162
|
zoomOnScroll: v,
|
|
1163
1163
|
zoomOnPinch: y,
|
|
1164
|
-
panOnScroll:
|
|
1164
|
+
panOnScroll: B,
|
|
1165
1165
|
panOnScrollSpeed: x,
|
|
1166
1166
|
panOnScrollMode: S,
|
|
1167
1167
|
zoomOnDoubleClick: C,
|
|
1168
|
-
panOnDrag: !
|
|
1168
|
+
panOnDrag: !L && z,
|
|
1169
1169
|
defaultViewport: T,
|
|
1170
1170
|
translateExtent: E,
|
|
1171
1171
|
minZoom: D,
|
|
@@ -1177,8 +1177,8 @@ function FlowRendererComponent({ children: e, onPaneClick: t, onPaneMouseEnter:
|
|
|
1177
1177
|
onViewportChange: P,
|
|
1178
1178
|
isControlledViewport: F,
|
|
1179
1179
|
paneClickDistance: s,
|
|
1180
|
-
selectionOnDrag:
|
|
1181
|
-
children:
|
|
1180
|
+
selectionOnDrag: V,
|
|
1181
|
+
children: X(Bt, {
|
|
1182
1182
|
onSelectionStart: f,
|
|
1183
1183
|
onSelectionEnd: p,
|
|
1184
1184
|
onPaneClick: t,
|
|
@@ -1187,13 +1187,13 @@ function FlowRendererComponent({ children: e, onPaneClick: t, onPaneMouseEnter:
|
|
|
1187
1187
|
onPaneMouseLeave: i,
|
|
1188
1188
|
onPaneContextMenu: a,
|
|
1189
1189
|
onPaneScroll: o,
|
|
1190
|
-
panOnDrag:
|
|
1191
|
-
isSelecting: !!
|
|
1190
|
+
panOnDrag: z,
|
|
1191
|
+
isSelecting: !!H,
|
|
1192
1192
|
selectionMode: d,
|
|
1193
|
-
selectionKeyPressed:
|
|
1193
|
+
selectionKeyPressed: L,
|
|
1194
1194
|
paneClickDistance: s,
|
|
1195
|
-
selectionOnDrag:
|
|
1196
|
-
children: [e,
|
|
1195
|
+
selectionOnDrag: V,
|
|
1196
|
+
children: [e, ee && Y(sn, {
|
|
1197
1197
|
onSelectionContextMenu: A,
|
|
1198
1198
|
noPanClassName: M,
|
|
1199
1199
|
disableKeyboardA11y: N
|
|
@@ -1201,19 +1201,19 @@ function FlowRendererComponent({ children: e, onPaneClick: t, onPaneMouseEnter:
|
|
|
1201
1201
|
})
|
|
1202
1202
|
});
|
|
1203
1203
|
}
|
|
1204
|
-
|
|
1205
|
-
var
|
|
1204
|
+
un.displayName = "FlowRenderer";
|
|
1205
|
+
var dn = U(un), fn = (e) => (t) => e ? R(t.nodeLookup, {
|
|
1206
1206
|
x: 0,
|
|
1207
1207
|
y: 0,
|
|
1208
1208
|
width: t.width,
|
|
1209
1209
|
height: t.height
|
|
1210
1210
|
}, t.transform, !0).map((e) => e.id) : Array.from(t.nodeLookup.keys());
|
|
1211
|
-
function
|
|
1212
|
-
return
|
|
1211
|
+
function pn(e) {
|
|
1212
|
+
return Q(W(fn(e), [e]), Z);
|
|
1213
1213
|
}
|
|
1214
|
-
var
|
|
1215
|
-
function
|
|
1216
|
-
let e =
|
|
1214
|
+
var mn = (e) => e.updateNodeInternals;
|
|
1215
|
+
function hn() {
|
|
1216
|
+
let e = Q(mn), [t] = J(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((t) => {
|
|
1217
1217
|
let n = /* @__PURE__ */ new Map();
|
|
1218
1218
|
t.forEach((e) => {
|
|
1219
1219
|
let t = e.target.getAttribute("data-id");
|
|
@@ -1224,17 +1224,17 @@ function useResizeObserver() {
|
|
|
1224
1224
|
});
|
|
1225
1225
|
}), e(n);
|
|
1226
1226
|
}));
|
|
1227
|
-
return
|
|
1227
|
+
return G(() => () => {
|
|
1228
1228
|
t?.disconnect();
|
|
1229
1229
|
}, [t]), t;
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1232
|
-
let i =
|
|
1233
|
-
return
|
|
1231
|
+
function gn({ node: e, nodeType: t, hasDimensions: n, resizeObserver: r }) {
|
|
1232
|
+
let i = $(), a = q(null), o = q(null), s = q(e.sourcePosition), c = q(e.targetPosition), l = q(t), u = n && !!e.internals.handleBounds;
|
|
1233
|
+
return G(() => {
|
|
1234
1234
|
a.current && !e.hidden && (!u || o.current !== a.current) && (o.current && r?.unobserve(o.current), r?.observe(a.current), o.current = a.current);
|
|
1235
|
-
}, [u, e.hidden]),
|
|
1235
|
+
}, [u, e.hidden]), G(() => () => {
|
|
1236
1236
|
o.current &&= (r?.unobserve(o.current), null);
|
|
1237
|
-
}, []),
|
|
1237
|
+
}, []), G(() => {
|
|
1238
1238
|
if (a.current) {
|
|
1239
1239
|
let n = l.current !== t, r = s.current !== e.sourcePosition, o = c.current !== e.targetPosition;
|
|
1240
1240
|
(n || r || o) && (l.current = t, s.current = e.sourcePosition, c.current = e.targetPosition, i.getState().updateNodeInternals(new Map([[e.id, {
|
|
@@ -1250,22 +1250,22 @@ function useNodeObserver({ node: e, nodeType: t, hasDimensions: n, resizeObserve
|
|
|
1250
1250
|
e.targetPosition
|
|
1251
1251
|
]), a;
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1254
|
-
let { node: S, internals: C, isParent: w } =
|
|
1253
|
+
function _n({ id: t, onClick: n, onMouseEnter: r, onMouseMove: i, onMouseLeave: a, onContextMenu: o, onDoubleClick: s, nodesDraggable: c, elementsSelectable: l, nodesConnectable: u, nodesFocusable: d, resizeObserver: f, noDragClassName: p, noPanClassName: m, disableKeyboardA11y: h, rfId: g, nodeTypes: _, nodeClickDistance: v, onError: y }) {
|
|
1254
|
+
let { node: S, internals: C, isParent: w } = Q((e) => {
|
|
1255
1255
|
let n = e.nodeLookup.get(t), r = e.parentLookup.has(t);
|
|
1256
1256
|
return {
|
|
1257
1257
|
node: n,
|
|
1258
1258
|
internals: n.internals,
|
|
1259
1259
|
isParent: r
|
|
1260
1260
|
};
|
|
1261
|
-
},
|
|
1262
|
-
E === void 0 && (y?.("003",
|
|
1263
|
-
let D = !!(S.draggable || c && S.draggable === void 0), O = !!(S.selectable || l && S.selectable === void 0), k = !!(S.connectable || u && S.connectable === void 0), A = !!(S.focusable || d && S.focusable === void 0), j =
|
|
1261
|
+
}, Z), T = S.type || "default", E = _?.[T] || rn[T];
|
|
1262
|
+
E === void 0 && (y?.("003", x.error003(T)), T = "default", E = _?.default || rn.default);
|
|
1263
|
+
let D = !!(S.draggable || c && S.draggable === void 0), O = !!(S.selectable || l && S.selectable === void 0), k = !!(S.connectable || u && S.connectable === void 0), A = !!(S.focusable || d && S.focusable === void 0), j = $(), M = pe(S), N = gn({
|
|
1264
1264
|
node: S,
|
|
1265
1265
|
nodeType: T,
|
|
1266
1266
|
hasDimensions: M,
|
|
1267
1267
|
resizeObserver: f
|
|
1268
|
-
}), P =
|
|
1268
|
+
}), P = Ht({
|
|
1269
1269
|
nodeRef: N,
|
|
1270
1270
|
disabled: S.hidden || !D,
|
|
1271
1271
|
noDragClassName: p,
|
|
@@ -1273,24 +1273,24 @@ function NodeWrapper({ id: t, onClick: n, onMouseEnter: r, onMouseMove: i, onMou
|
|
|
1273
1273
|
nodeId: t,
|
|
1274
1274
|
isSelectable: O,
|
|
1275
1275
|
nodeClickDistance: v
|
|
1276
|
-
}), F =
|
|
1276
|
+
}), F = Wt();
|
|
1277
1277
|
if (S.hidden) return null;
|
|
1278
|
-
let
|
|
1278
|
+
let ee = I(S), L = an(S), z = O || D || n || r || i || a, B = r ? (e) => r(e, { ...C.userNode }) : void 0, V = i ? (e) => i(e, { ...C.userNode }) : void 0, H = a ? (e) => a(e, { ...C.userNode }) : void 0, te = o ? (e) => o(e, { ...C.userNode }) : void 0, ne = s ? (e) => s(e, { ...C.userNode }) : void 0, re = (e) => {
|
|
1279
1279
|
let { selectNodesOnDrag: r, nodeDragThreshold: i } = j.getState();
|
|
1280
|
-
O && (!r || !D || i > 0) &&
|
|
1280
|
+
O && (!r || !D || i > 0) && Vt({
|
|
1281
1281
|
id: t,
|
|
1282
1282
|
store: j,
|
|
1283
1283
|
nodeRef: N
|
|
1284
1284
|
}), n && n(e, { ...C.userNode });
|
|
1285
|
-
},
|
|
1286
|
-
if (!(
|
|
1287
|
-
if (
|
|
1285
|
+
}, ie = (e) => {
|
|
1286
|
+
if (!(oe(e.nativeEvent) || h)) {
|
|
1287
|
+
if (b.includes(e.key) && O) Vt({
|
|
1288
1288
|
id: t,
|
|
1289
1289
|
store: j,
|
|
1290
1290
|
unselect: e.key === "Escape",
|
|
1291
1291
|
nodeRef: N
|
|
1292
1292
|
});
|
|
1293
|
-
else if (D && S.selected && Object.prototype.hasOwnProperty.call(
|
|
1293
|
+
else if (D && S.selected && Object.prototype.hasOwnProperty.call(nn, e.key)) {
|
|
1294
1294
|
e.preventDefault();
|
|
1295
1295
|
let { ariaLabelConfig: t } = j.getState();
|
|
1296
1296
|
j.setState({ ariaLiveMessage: t["node.a11yDescription.ariaLiveMessage"]({
|
|
@@ -1298,23 +1298,23 @@ function NodeWrapper({ id: t, onClick: n, onMouseEnter: r, onMouseMove: i, onMou
|
|
|
1298
1298
|
x: ~~C.positionAbsolute.x,
|
|
1299
1299
|
y: ~~C.positionAbsolute.y
|
|
1300
1300
|
}) }), F({
|
|
1301
|
-
direction:
|
|
1301
|
+
direction: nn[e.key],
|
|
1302
1302
|
factor: e.shiftKey ? 4 : 1
|
|
1303
1303
|
});
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
|
-
},
|
|
1306
|
+
}, ae = () => {
|
|
1307
1307
|
if (h || !N.current?.matches(":focus-visible")) return;
|
|
1308
1308
|
let { transform: e, width: n, height: r, autoPanOnNodeFocus: i, setCenter: a } = j.getState();
|
|
1309
|
-
i && (
|
|
1309
|
+
i && (R(new Map([[t, S]]), {
|
|
1310
1310
|
x: 0,
|
|
1311
1311
|
y: 0,
|
|
1312
1312
|
width: n,
|
|
1313
1313
|
height: r
|
|
1314
|
-
}, e, !0).length > 0 || a(S.position.x +
|
|
1314
|
+
}, e, !0).length > 0 || a(S.position.x + ee.width / 2, S.position.y + ee.height / 2, { zoom: e[2] }));
|
|
1315
1315
|
};
|
|
1316
|
-
return
|
|
1317
|
-
className:
|
|
1316
|
+
return Y("div", {
|
|
1317
|
+
className: e([
|
|
1318
1318
|
"react-flow__node",
|
|
1319
1319
|
`react-flow__node-${T}`,
|
|
1320
1320
|
{ [m]: D },
|
|
@@ -1331,7 +1331,7 @@ function NodeWrapper({ id: t, onClick: n, onMouseEnter: r, onMouseMove: i, onMou
|
|
|
1331
1331
|
style: {
|
|
1332
1332
|
zIndex: C.z,
|
|
1333
1333
|
transform: `translate(${C.positionAbsolute.x}px,${C.positionAbsolute.y}px)`,
|
|
1334
|
-
pointerEvents:
|
|
1334
|
+
pointerEvents: z ? "all" : "none",
|
|
1335
1335
|
visibility: M ? "visible" : "hidden",
|
|
1336
1336
|
...S.style,
|
|
1337
1337
|
...L
|
|
@@ -1339,22 +1339,22 @@ function NodeWrapper({ id: t, onClick: n, onMouseEnter: r, onMouseMove: i, onMou
|
|
|
1339
1339
|
"data-id": t,
|
|
1340
1340
|
"data-testid": `rf__node-${t}`,
|
|
1341
1341
|
onMouseEnter: B,
|
|
1342
|
-
onMouseMove:
|
|
1343
|
-
onMouseLeave:
|
|
1344
|
-
onContextMenu:
|
|
1345
|
-
onClick:
|
|
1346
|
-
onDoubleClick:
|
|
1347
|
-
onKeyDown: A ?
|
|
1342
|
+
onMouseMove: V,
|
|
1343
|
+
onMouseLeave: H,
|
|
1344
|
+
onContextMenu: te,
|
|
1345
|
+
onClick: re,
|
|
1346
|
+
onDoubleClick: ne,
|
|
1347
|
+
onKeyDown: A ? ie : void 0,
|
|
1348
1348
|
tabIndex: A ? 0 : void 0,
|
|
1349
|
-
onFocus: A ?
|
|
1349
|
+
onFocus: A ? ae : void 0,
|
|
1350
1350
|
role: S.ariaRole ?? (A ? "group" : void 0),
|
|
1351
1351
|
"aria-roledescription": "node",
|
|
1352
|
-
"aria-describedby": h ? void 0 : `${
|
|
1352
|
+
"aria-describedby": h ? void 0 : `${Ie}-${g}`,
|
|
1353
1353
|
"aria-label": S.ariaLabel,
|
|
1354
1354
|
...S.domAttributes,
|
|
1355
|
-
children:
|
|
1355
|
+
children: Y(Kt, {
|
|
1356
1356
|
value: t,
|
|
1357
|
-
children:
|
|
1357
|
+
children: Y(E, {
|
|
1358
1358
|
id: t,
|
|
1359
1359
|
data: S.data,
|
|
1360
1360
|
type: T,
|
|
@@ -1371,24 +1371,24 @@ function NodeWrapper({ id: t, onClick: n, onMouseEnter: r, onMouseMove: i, onMou
|
|
|
1371
1371
|
dragHandle: S.dragHandle,
|
|
1372
1372
|
zIndex: C.z,
|
|
1373
1373
|
parentId: S.parentId,
|
|
1374
|
-
...
|
|
1374
|
+
...ee
|
|
1375
1375
|
})
|
|
1376
1376
|
})
|
|
1377
1377
|
});
|
|
1378
1378
|
}
|
|
1379
|
-
var
|
|
1379
|
+
var vn = U(_n), yn = (e) => ({
|
|
1380
1380
|
nodesDraggable: e.nodesDraggable,
|
|
1381
1381
|
nodesConnectable: e.nodesConnectable,
|
|
1382
1382
|
nodesFocusable: e.nodesFocusable,
|
|
1383
1383
|
elementsSelectable: e.elementsSelectable,
|
|
1384
1384
|
onError: e.onError
|
|
1385
1385
|
});
|
|
1386
|
-
function
|
|
1387
|
-
let { nodesDraggable: t, nodesConnectable: n, nodesFocusable: r, elementsSelectable: i, onError: a } =
|
|
1388
|
-
return
|
|
1386
|
+
function bn(e) {
|
|
1387
|
+
let { nodesDraggable: t, nodesConnectable: n, nodesFocusable: r, elementsSelectable: i, onError: a } = Q(yn, Z), o = pn(e.onlyRenderVisibleElements), s = hn();
|
|
1388
|
+
return Y("div", {
|
|
1389
1389
|
className: "react-flow__nodes",
|
|
1390
|
-
style:
|
|
1391
|
-
children: o.map((o) =>
|
|
1390
|
+
style: Nt,
|
|
1391
|
+
children: o.map((o) => Y(vn, {
|
|
1392
1392
|
id: o,
|
|
1393
1393
|
nodeTypes: e.nodeTypes,
|
|
1394
1394
|
nodeExtent: e.nodeExtent,
|
|
@@ -1412,15 +1412,15 @@ function NodeRendererComponent(e) {
|
|
|
1412
1412
|
}, o))
|
|
1413
1413
|
});
|
|
1414
1414
|
}
|
|
1415
|
-
|
|
1416
|
-
var
|
|
1417
|
-
function
|
|
1418
|
-
return
|
|
1415
|
+
bn.displayName = "NodeRenderer";
|
|
1416
|
+
var xn = U(bn);
|
|
1417
|
+
function Sn(e) {
|
|
1418
|
+
return Q(W((t) => {
|
|
1419
1419
|
if (!e) return t.edges.map((e) => e.id);
|
|
1420
1420
|
let n = [];
|
|
1421
1421
|
if (t.width && t.height) for (let e of t.edges) {
|
|
1422
1422
|
let r = t.nodeLookup.get(e.source), i = t.nodeLookup.get(e.target);
|
|
1423
|
-
r && i &&
|
|
1423
|
+
r && i && ae({
|
|
1424
1424
|
sourceNode: r,
|
|
1425
1425
|
targetNode: i,
|
|
1426
1426
|
width: t.width,
|
|
@@ -1429,9 +1429,9 @@ function useVisibleEdgeIds(e) {
|
|
|
1429
1429
|
}) && n.push(e.id);
|
|
1430
1430
|
}
|
|
1431
1431
|
return n;
|
|
1432
|
-
}, [e]),
|
|
1432
|
+
}, [e]), Z);
|
|
1433
1433
|
}
|
|
1434
|
-
var
|
|
1434
|
+
var Cn = ({ color: e = "none", strokeWidth: t = 1 }) => Y("polyline", {
|
|
1435
1435
|
className: "arrow",
|
|
1436
1436
|
style: {
|
|
1437
1437
|
strokeWidth: t,
|
|
@@ -1441,7 +1441,7 @@ var ArrowSymbol = ({ color: e = "none", strokeWidth: t = 1 }) => jsx("polyline",
|
|
|
1441
1441
|
fill: "none",
|
|
1442
1442
|
strokeLinejoin: "round",
|
|
1443
1443
|
points: "-5,-4 0,0 -5,4"
|
|
1444
|
-
}),
|
|
1444
|
+
}), wn = ({ color: e = "none", strokeWidth: t = 1 }) => Y("polyline", {
|
|
1445
1445
|
className: "arrowclosed",
|
|
1446
1446
|
style: {
|
|
1447
1447
|
strokeWidth: t,
|
|
@@ -1453,17 +1453,17 @@ var ArrowSymbol = ({ color: e = "none", strokeWidth: t = 1 }) => jsx("polyline",
|
|
|
1453
1453
|
strokeLinecap: "round",
|
|
1454
1454
|
strokeLinejoin: "round",
|
|
1455
1455
|
points: "-5,-4 0,0 -5,4 -5,-4"
|
|
1456
|
-
}),
|
|
1457
|
-
[
|
|
1458
|
-
[
|
|
1456
|
+
}), Tn = {
|
|
1457
|
+
[r.Arrow]: Cn,
|
|
1458
|
+
[r.ArrowClosed]: wn
|
|
1459
1459
|
};
|
|
1460
|
-
function
|
|
1461
|
-
let t =
|
|
1462
|
-
return
|
|
1460
|
+
function En(e) {
|
|
1461
|
+
let t = $();
|
|
1462
|
+
return K(() => Object.prototype.hasOwnProperty.call(Tn, e) ? Tn[e] : (t.getState().onError?.("009", x.error009(e)), null), [e]);
|
|
1463
1463
|
}
|
|
1464
|
-
var
|
|
1465
|
-
let c =
|
|
1466
|
-
return c ?
|
|
1464
|
+
var Dn = ({ id: e, type: t, color: n, width: r = 12.5, height: i = 12.5, markerUnits: a = "strokeWidth", strokeWidth: o, orient: s = "auto-start-reverse" }) => {
|
|
1465
|
+
let c = En(t);
|
|
1466
|
+
return c ? Y("marker", {
|
|
1467
1467
|
className: "react-flow__arrowhead",
|
|
1468
1468
|
id: e,
|
|
1469
1469
|
markerWidth: `${r}`,
|
|
@@ -1473,13 +1473,13 @@ var Marker = ({ id: e, type: t, color: n, width: r = 12.5, height: i = 12.5, mar
|
|
|
1473
1473
|
orient: s,
|
|
1474
1474
|
refX: "0",
|
|
1475
1475
|
refY: "0",
|
|
1476
|
-
children:
|
|
1476
|
+
children: Y(c, {
|
|
1477
1477
|
color: n,
|
|
1478
1478
|
strokeWidth: o
|
|
1479
1479
|
})
|
|
1480
1480
|
}) : null;
|
|
1481
|
-
},
|
|
1482
|
-
let n =
|
|
1481
|
+
}, On = ({ defaultColor: e, rfId: t }) => {
|
|
1482
|
+
let n = Q((e) => e.edges), r = Q((e) => e.defaultEdgeOptions), i = K(() => _(n, {
|
|
1483
1483
|
id: t,
|
|
1484
1484
|
defaultColor: e,
|
|
1485
1485
|
defaultMarkerStart: r?.markerStart,
|
|
@@ -1490,10 +1490,10 @@ var Marker = ({ id: e, type: t, color: n, width: r = 12.5, height: i = 12.5, mar
|
|
|
1490
1490
|
t,
|
|
1491
1491
|
e
|
|
1492
1492
|
]);
|
|
1493
|
-
return i.length ?
|
|
1493
|
+
return i.length ? Y("svg", {
|
|
1494
1494
|
className: "react-flow__marker",
|
|
1495
1495
|
"aria-hidden": "true",
|
|
1496
|
-
children:
|
|
1496
|
+
children: Y("defs", { children: i.map((e) => Y(Dn, {
|
|
1497
1497
|
id: e.id,
|
|
1498
1498
|
type: e.type,
|
|
1499
1499
|
color: e.color,
|
|
@@ -1505,16 +1505,16 @@ var Marker = ({ id: e, type: t, color: n, width: r = 12.5, height: i = 12.5, mar
|
|
|
1505
1505
|
}, e.id)) })
|
|
1506
1506
|
}) : null;
|
|
1507
1507
|
};
|
|
1508
|
-
|
|
1509
|
-
var
|
|
1510
|
-
function
|
|
1511
|
-
let [f, p] =
|
|
1508
|
+
On.displayName = "MarkerDefinitions";
|
|
1509
|
+
var kn = U(On);
|
|
1510
|
+
function An({ x: t, y: n, label: r, labelStyle: i, labelShowBg: a = !0, labelBgStyle: o, labelBgPadding: s = [2, 4], labelBgBorderRadius: c = 2, children: l, className: u, ...d }) {
|
|
1511
|
+
let [f, p] = J({
|
|
1512
1512
|
x: 1,
|
|
1513
1513
|
y: 0,
|
|
1514
1514
|
width: 0,
|
|
1515
1515
|
height: 0
|
|
1516
|
-
}), m =
|
|
1517
|
-
return
|
|
1516
|
+
}), m = e(["react-flow__edge-textwrapper", u]), h = q(null);
|
|
1517
|
+
return G(() => {
|
|
1518
1518
|
if (h.current) {
|
|
1519
1519
|
let e = h.current.getBBox();
|
|
1520
1520
|
p({
|
|
@@ -1524,13 +1524,13 @@ function EdgeTextComponent({ x: t, y: n, label: r, labelStyle: i, labelShowBg: a
|
|
|
1524
1524
|
height: e.height
|
|
1525
1525
|
});
|
|
1526
1526
|
}
|
|
1527
|
-
}, [r]), r ?
|
|
1527
|
+
}, [r]), r ? X("g", {
|
|
1528
1528
|
transform: `translate(${t - f.width / 2} ${n - f.height / 2})`,
|
|
1529
1529
|
className: m,
|
|
1530
1530
|
visibility: f.width ? "visible" : "hidden",
|
|
1531
1531
|
...d,
|
|
1532
1532
|
children: [
|
|
1533
|
-
a &&
|
|
1533
|
+
a && Y("rect", {
|
|
1534
1534
|
width: f.width + 2 * s[0],
|
|
1535
1535
|
x: -s[0],
|
|
1536
1536
|
y: -s[1],
|
|
@@ -1540,7 +1540,7 @@ function EdgeTextComponent({ x: t, y: n, label: r, labelStyle: i, labelShowBg: a
|
|
|
1540
1540
|
rx: c,
|
|
1541
1541
|
ry: c
|
|
1542
1542
|
}),
|
|
1543
|
-
|
|
1543
|
+
Y("text", {
|
|
1544
1544
|
className: "react-flow__edge-text",
|
|
1545
1545
|
y: f.height / 2,
|
|
1546
1546
|
dy: "0.3em",
|
|
@@ -1552,24 +1552,24 @@ function EdgeTextComponent({ x: t, y: n, label: r, labelStyle: i, labelShowBg: a
|
|
|
1552
1552
|
]
|
|
1553
1553
|
}) : null;
|
|
1554
1554
|
}
|
|
1555
|
-
|
|
1556
|
-
var
|
|
1557
|
-
function
|
|
1558
|
-
return
|
|
1559
|
-
|
|
1555
|
+
An.displayName = "EdgeText";
|
|
1556
|
+
var jn = U(An);
|
|
1557
|
+
function Mn({ path: t, labelX: n, labelY: r, label: i, labelStyle: a, labelShowBg: o, labelBgStyle: s, labelBgPadding: c, labelBgBorderRadius: l, interactionWidth: u = 20, ...d }) {
|
|
1558
|
+
return X(De, { children: [
|
|
1559
|
+
Y("path", {
|
|
1560
1560
|
...d,
|
|
1561
1561
|
d: t,
|
|
1562
1562
|
fill: "none",
|
|
1563
|
-
className:
|
|
1563
|
+
className: e(["react-flow__edge-path", d.className])
|
|
1564
1564
|
}),
|
|
1565
|
-
u ?
|
|
1565
|
+
u ? Y("path", {
|
|
1566
1566
|
d: t,
|
|
1567
1567
|
fill: "none",
|
|
1568
1568
|
strokeOpacity: 0,
|
|
1569
1569
|
strokeWidth: u,
|
|
1570
1570
|
className: "react-flow__edge-interaction"
|
|
1571
1571
|
}) : null,
|
|
1572
|
-
i &&
|
|
1572
|
+
i && ue(n) && ue(r) ? Y(jn, {
|
|
1573
1573
|
x: n,
|
|
1574
1574
|
y: r,
|
|
1575
1575
|
label: i,
|
|
@@ -1581,23 +1581,23 @@ function BaseEdge({ path: t, labelX: n, labelY: r, label: i, labelStyle: a, labe
|
|
|
1581
1581
|
}) : null
|
|
1582
1582
|
] });
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1585
|
-
return e ===
|
|
1584
|
+
function Nn({ pos: e, x1: t, y1: n, x2: r, y2: i }) {
|
|
1585
|
+
return e === a.Left || e === a.Right ? [.5 * (t + r), n] : [t, .5 * (n + i)];
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1588
|
-
let [s, c] =
|
|
1587
|
+
function Pn({ sourceX: e, sourceY: t, sourcePosition: n = a.Bottom, targetX: r, targetY: i, targetPosition: o = a.Top }) {
|
|
1588
|
+
let [s, c] = Nn({
|
|
1589
1589
|
pos: n,
|
|
1590
1590
|
x1: e,
|
|
1591
1591
|
y1: t,
|
|
1592
1592
|
x2: r,
|
|
1593
1593
|
y2: i
|
|
1594
|
-
}), [l, u] =
|
|
1594
|
+
}), [l, u] = Nn({
|
|
1595
1595
|
pos: o,
|
|
1596
1596
|
x1: r,
|
|
1597
1597
|
y1: i,
|
|
1598
1598
|
x2: e,
|
|
1599
1599
|
y2: t
|
|
1600
|
-
}), [d, f, p, m] =
|
|
1600
|
+
}), [d, f, p, m] = w({
|
|
1601
1601
|
sourceX: e,
|
|
1602
1602
|
sourceY: t,
|
|
1603
1603
|
targetX: r,
|
|
@@ -1615,9 +1615,9 @@ function getSimpleBezierPath({ sourceX: e, sourceY: t, sourcePosition: n = Posit
|
|
|
1615
1615
|
m
|
|
1616
1616
|
];
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1619
|
-
return
|
|
1620
|
-
let [v, y, b] =
|
|
1618
|
+
function Fn(e) {
|
|
1619
|
+
return U(({ id: t, sourceX: n, sourceY: r, targetX: i, targetY: a, sourcePosition: o, targetPosition: s, label: c, labelStyle: l, labelShowBg: u, labelBgStyle: d, labelBgPadding: f, labelBgBorderRadius: p, style: m, markerEnd: h, markerStart: g, interactionWidth: _ }) => {
|
|
1620
|
+
let [v, y, b] = Pn({
|
|
1621
1621
|
sourceX: n,
|
|
1622
1622
|
sourceY: r,
|
|
1623
1623
|
sourcePosition: o,
|
|
@@ -1625,7 +1625,7 @@ function createSimpleBezierEdge(e) {
|
|
|
1625
1625
|
targetY: a,
|
|
1626
1626
|
targetPosition: s
|
|
1627
1627
|
});
|
|
1628
|
-
return
|
|
1628
|
+
return Y(Mn, {
|
|
1629
1629
|
id: e.isInternal ? void 0 : t,
|
|
1630
1630
|
path: v,
|
|
1631
1631
|
labelX: y,
|
|
@@ -1643,11 +1643,11 @@ function createSimpleBezierEdge(e) {
|
|
|
1643
1643
|
});
|
|
1644
1644
|
});
|
|
1645
1645
|
}
|
|
1646
|
-
var
|
|
1647
|
-
|
|
1648
|
-
function
|
|
1649
|
-
return
|
|
1650
|
-
let [b, x, S] =
|
|
1646
|
+
var In = Fn({ isInternal: !1 }), Ln = Fn({ isInternal: !0 });
|
|
1647
|
+
In.displayName = "SimpleBezierEdge", Ln.displayName = "SimpleBezierEdgeInternal";
|
|
1648
|
+
function Rn(e) {
|
|
1649
|
+
return U(({ id: t, sourceX: n, sourceY: r, targetX: i, targetY: o, label: s, labelStyle: c, labelShowBg: l, labelBgStyle: u, labelBgPadding: d, labelBgBorderRadius: f, style: p, sourcePosition: m = a.Bottom, targetPosition: h = a.Top, markerEnd: g, markerStart: _, pathOptions: v, interactionWidth: y }) => {
|
|
1650
|
+
let [b, x, S] = B({
|
|
1651
1651
|
sourceX: n,
|
|
1652
1652
|
sourceY: r,
|
|
1653
1653
|
sourcePosition: m,
|
|
@@ -1658,7 +1658,7 @@ function createSmoothStepEdge(e) {
|
|
|
1658
1658
|
offset: v?.offset,
|
|
1659
1659
|
stepPosition: v?.stepPosition
|
|
1660
1660
|
});
|
|
1661
|
-
return
|
|
1661
|
+
return Y(Mn, {
|
|
1662
1662
|
id: e.isInternal ? void 0 : t,
|
|
1663
1663
|
path: b,
|
|
1664
1664
|
labelX: x,
|
|
@@ -1676,32 +1676,32 @@ function createSmoothStepEdge(e) {
|
|
|
1676
1676
|
});
|
|
1677
1677
|
});
|
|
1678
1678
|
}
|
|
1679
|
-
var
|
|
1680
|
-
|
|
1681
|
-
function
|
|
1682
|
-
return
|
|
1679
|
+
var zn = Rn({ isInternal: !1 }), Bn = Rn({ isInternal: !0 });
|
|
1680
|
+
zn.displayName = "SmoothStepEdge", Bn.displayName = "SmoothStepEdgeInternal";
|
|
1681
|
+
function Vn(e) {
|
|
1682
|
+
return U(({ id: t, ...n }) => {
|
|
1683
1683
|
let r = e.isInternal ? void 0 : t;
|
|
1684
|
-
return
|
|
1684
|
+
return Y(zn, {
|
|
1685
1685
|
...n,
|
|
1686
1686
|
id: r,
|
|
1687
|
-
pathOptions:
|
|
1687
|
+
pathOptions: K(() => ({
|
|
1688
1688
|
borderRadius: 0,
|
|
1689
1689
|
offset: n.pathOptions?.offset
|
|
1690
1690
|
}), [n.pathOptions?.offset])
|
|
1691
1691
|
});
|
|
1692
1692
|
});
|
|
1693
1693
|
}
|
|
1694
|
-
var
|
|
1695
|
-
|
|
1696
|
-
function
|
|
1697
|
-
return
|
|
1698
|
-
let [g, _, v] =
|
|
1694
|
+
var Hn = Vn({ isInternal: !1 }), Un = Vn({ isInternal: !0 });
|
|
1695
|
+
Hn.displayName = "StepEdge", Un.displayName = "StepEdgeInternal";
|
|
1696
|
+
function Wn(e) {
|
|
1697
|
+
return U(({ id: t, sourceX: n, sourceY: r, targetX: i, targetY: a, label: o, labelStyle: s, labelShowBg: c, labelBgStyle: l, labelBgPadding: u, labelBgBorderRadius: d, style: f, markerEnd: p, markerStart: m, interactionWidth: h }) => {
|
|
1698
|
+
let [g, _, v] = V({
|
|
1699
1699
|
sourceX: n,
|
|
1700
1700
|
sourceY: r,
|
|
1701
1701
|
targetX: i,
|
|
1702
1702
|
targetY: a
|
|
1703
1703
|
});
|
|
1704
|
-
return
|
|
1704
|
+
return Y(Mn, {
|
|
1705
1705
|
id: e.isInternal ? void 0 : t,
|
|
1706
1706
|
path: g,
|
|
1707
1707
|
labelX: _,
|
|
@@ -1719,11 +1719,11 @@ function createStraightEdge(e) {
|
|
|
1719
1719
|
});
|
|
1720
1720
|
});
|
|
1721
1721
|
}
|
|
1722
|
-
var
|
|
1723
|
-
|
|
1724
|
-
function
|
|
1725
|
-
return
|
|
1726
|
-
let [b, x, S] =
|
|
1722
|
+
var Gn = Wn({ isInternal: !1 }), Kn = Wn({ isInternal: !0 });
|
|
1723
|
+
Gn.displayName = "StraightEdge", Kn.displayName = "StraightEdgeInternal";
|
|
1724
|
+
function qn(e) {
|
|
1725
|
+
return U(({ id: t, sourceX: n, sourceY: r, targetX: i, targetY: o, sourcePosition: s = a.Bottom, targetPosition: c = a.Top, label: l, labelStyle: u, labelShowBg: d, labelBgStyle: f, labelBgPadding: p, labelBgBorderRadius: m, style: h, markerEnd: g, markerStart: _, pathOptions: v, interactionWidth: y }) => {
|
|
1726
|
+
let [b, x, S] = T({
|
|
1727
1727
|
sourceX: n,
|
|
1728
1728
|
sourceY: r,
|
|
1729
1729
|
sourcePosition: s,
|
|
@@ -1732,7 +1732,7 @@ function createBezierEdge(e) {
|
|
|
1732
1732
|
targetPosition: c,
|
|
1733
1733
|
curvature: v?.curvature
|
|
1734
1734
|
});
|
|
1735
|
-
return
|
|
1735
|
+
return Y(Mn, {
|
|
1736
1736
|
id: e.isInternal ? void 0 : t,
|
|
1737
1737
|
path: b,
|
|
1738
1738
|
labelX: x,
|
|
@@ -1750,40 +1750,40 @@ function createBezierEdge(e) {
|
|
|
1750
1750
|
});
|
|
1751
1751
|
});
|
|
1752
1752
|
}
|
|
1753
|
-
var
|
|
1754
|
-
|
|
1755
|
-
var
|
|
1756
|
-
default:
|
|
1757
|
-
straight:
|
|
1758
|
-
step:
|
|
1759
|
-
smoothstep:
|
|
1760
|
-
simplebezier:
|
|
1761
|
-
},
|
|
1753
|
+
var Jn = qn({ isInternal: !1 }), Yn = qn({ isInternal: !0 });
|
|
1754
|
+
Jn.displayName = "BezierEdge", Yn.displayName = "BezierEdgeInternal";
|
|
1755
|
+
var Xn = {
|
|
1756
|
+
default: Yn,
|
|
1757
|
+
straight: Kn,
|
|
1758
|
+
step: Un,
|
|
1759
|
+
smoothstep: Bn,
|
|
1760
|
+
simplebezier: Ln
|
|
1761
|
+
}, Zn = {
|
|
1762
1762
|
sourceX: null,
|
|
1763
1763
|
sourceY: null,
|
|
1764
1764
|
targetX: null,
|
|
1765
1765
|
targetY: null,
|
|
1766
1766
|
sourcePosition: null,
|
|
1767
1767
|
targetPosition: null
|
|
1768
|
-
},
|
|
1769
|
-
function
|
|
1770
|
-
return
|
|
1768
|
+
}, Qn = (e, t, n) => n === a.Left ? e - t : n === a.Right ? e + t : e, $n = (e, t, n) => n === a.Top ? e - t : n === a.Bottom ? e + t : e, er = "react-flow__edgeupdater";
|
|
1769
|
+
function tr({ position: t, centerX: n, centerY: r, radius: i = 10, onMouseDown: a, onMouseEnter: o, onMouseOut: s, type: c }) {
|
|
1770
|
+
return Y("circle", {
|
|
1771
1771
|
onMouseDown: a,
|
|
1772
1772
|
onMouseEnter: o,
|
|
1773
1773
|
onMouseOut: s,
|
|
1774
|
-
className:
|
|
1775
|
-
cx:
|
|
1776
|
-
cy:
|
|
1774
|
+
className: e([er, `${er}-${c}`]),
|
|
1775
|
+
cx: Qn(n, i, t),
|
|
1776
|
+
cy: $n(r, i, t),
|
|
1777
1777
|
r: i,
|
|
1778
1778
|
stroke: "transparent",
|
|
1779
1779
|
fill: "transparent"
|
|
1780
1780
|
});
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1783
|
-
let h =
|
|
1782
|
+
function nr({ isReconnectable: e, reconnectRadius: t, edge: n, sourceX: r, sourceY: i, targetX: a, targetY: o, sourcePosition: s, targetPosition: c, onReconnect: u, onReconnectStart: d, onReconnectEnd: f, setReconnecting: p, setUpdateHover: m }) {
|
|
1783
|
+
let h = $(), g = (e, t) => {
|
|
1784
1784
|
if (e.button !== 0) return;
|
|
1785
1785
|
let { autoPanOnConnect: r, domNode: i, connectionMode: a, connectionRadius: o, lib: s, onConnectStart: c, cancelConnection: m, nodeLookup: g, rfId: _, panBy: v, updateConnection: y } = h.getState(), b = t.type === "target";
|
|
1786
|
-
|
|
1786
|
+
l.onPointerDown(e.nativeEvent, {
|
|
1787
1787
|
autoPanOnConnect: r,
|
|
1788
1788
|
connectionMode: a,
|
|
1789
1789
|
connectionRadius: o,
|
|
@@ -1821,7 +1821,7 @@ function EdgeUpdateAnchors({ isReconnectable: e, reconnectRadius: t, edge: n, so
|
|
|
1821
1821
|
id: n.sourceHandle ?? null,
|
|
1822
1822
|
type: "source"
|
|
1823
1823
|
}), y = () => m(!0), b = () => m(!1);
|
|
1824
|
-
return
|
|
1824
|
+
return X(De, { children: [(e === !0 || e === "source") && Y(tr, {
|
|
1825
1825
|
position: s,
|
|
1826
1826
|
centerX: r,
|
|
1827
1827
|
centerY: i,
|
|
@@ -1830,7 +1830,7 @@ function EdgeUpdateAnchors({ isReconnectable: e, reconnectRadius: t, edge: n, so
|
|
|
1830
1830
|
onMouseEnter: y,
|
|
1831
1831
|
onMouseOut: b,
|
|
1832
1832
|
type: "source"
|
|
1833
|
-
}), (e === !0 || e === "target") &&
|
|
1833
|
+
}), (e === !0 || e === "target") && Y(tr, {
|
|
1834
1834
|
position: c,
|
|
1835
1835
|
centerX: a,
|
|
1836
1836
|
centerY: o,
|
|
@@ -1841,21 +1841,21 @@ function EdgeUpdateAnchors({ isReconnectable: e, reconnectRadius: t, edge: n, so
|
|
|
1841
1841
|
type: "target"
|
|
1842
1842
|
})] });
|
|
1843
1843
|
}
|
|
1844
|
-
function
|
|
1845
|
-
let S =
|
|
1844
|
+
function rr({ id: t, edgesFocusable: n, edgesReconnectable: r, elementsSelectable: i, onClick: a, onDoubleClick: o, onContextMenu: s, onMouseEnter: c, onMouseMove: l, onMouseLeave: u, reconnectRadius: d, onReconnect: f, onReconnectStart: p, onReconnectEnd: m, rfId: h, edgeTypes: g, noPanClassName: _, onError: v, disableKeyboardA11y: y }) {
|
|
1845
|
+
let S = Q((e) => e.edgeLookup.get(t)), C = Q((e) => e.defaultEdgeOptions);
|
|
1846
1846
|
S = C ? {
|
|
1847
1847
|
...C,
|
|
1848
1848
|
...S
|
|
1849
1849
|
} : S;
|
|
1850
|
-
let w = S.type || "default", T = g?.[w] ||
|
|
1851
|
-
T === void 0 && (v?.("011",
|
|
1852
|
-
let E = !!(S.focusable || n && S.focusable === void 0), D = f !== void 0 && (S.reconnectable || r && S.reconnectable === void 0), O = !!(S.selectable || i && S.selectable === void 0),
|
|
1850
|
+
let w = S.type || "default", T = g?.[w] || Xn[w];
|
|
1851
|
+
T === void 0 && (v?.("011", x.error011(w)), w = "default", T = g?.default || Xn.default);
|
|
1852
|
+
let E = !!(S.focusable || n && S.focusable === void 0), D = f !== void 0 && (S.reconnectable || r && S.reconnectable === void 0), O = !!(S.selectable || i && S.selectable === void 0), A = q(null), [M, N] = J(!1), [P, F] = J(!1), I = $(), { zIndex: L, sourceX: R, sourceY: z, targetX: B, targetY: V, sourcePosition: H, targetPosition: te } = Q(W((e) => {
|
|
1853
1853
|
let n = e.nodeLookup.get(S.source), r = e.nodeLookup.get(S.target);
|
|
1854
1854
|
if (!n || !r) return {
|
|
1855
1855
|
zIndex: S.zIndex,
|
|
1856
|
-
...
|
|
1856
|
+
...Zn
|
|
1857
1857
|
};
|
|
1858
|
-
let i =
|
|
1858
|
+
let i = k({
|
|
1859
1859
|
id: t,
|
|
1860
1860
|
sourceNode: n,
|
|
1861
1861
|
targetNode: r,
|
|
@@ -1865,7 +1865,7 @@ function EdgeWrapper({ id: t, edgesFocusable: n, edgesReconnectable: r, elements
|
|
|
1865
1865
|
onError: v
|
|
1866
1866
|
});
|
|
1867
1867
|
return {
|
|
1868
|
-
zIndex:
|
|
1868
|
+
zIndex: j({
|
|
1869
1869
|
selected: S.selected,
|
|
1870
1870
|
zIndex: S.zIndex,
|
|
1871
1871
|
sourceNode: n,
|
|
@@ -1873,7 +1873,7 @@ function EdgeWrapper({ id: t, edgesFocusable: n, edgesReconnectable: r, elements
|
|
|
1873
1873
|
elevateOnSelect: e.elevateEdgesOnSelect,
|
|
1874
1874
|
zIndexMode: e.zIndexMode
|
|
1875
1875
|
}),
|
|
1876
|
-
...i ||
|
|
1876
|
+
...i || Zn
|
|
1877
1877
|
};
|
|
1878
1878
|
}, [
|
|
1879
1879
|
S.source,
|
|
@@ -1882,29 +1882,29 @@ function EdgeWrapper({ id: t, edgesFocusable: n, edgesReconnectable: r, elements
|
|
|
1882
1882
|
S.targetHandle,
|
|
1883
1883
|
S.selected,
|
|
1884
1884
|
S.zIndex
|
|
1885
|
-
]),
|
|
1886
|
-
if (S.hidden ||
|
|
1887
|
-
let
|
|
1885
|
+
]), Z), ne = K(() => S.markerStart ? `url('#${ee(S.markerStart, h)}')` : void 0, [S.markerStart, h]), re = K(() => S.markerEnd ? `url('#${ee(S.markerEnd, h)}')` : void 0, [S.markerEnd, h]);
|
|
1886
|
+
if (S.hidden || R === null || z === null || B === null || V === null) return null;
|
|
1887
|
+
let ie = (e) => {
|
|
1888
1888
|
let { addSelectedEdges: n, unselectNodesAndEdges: r, multiSelectionActive: i } = I.getState();
|
|
1889
1889
|
O && (I.setState({ nodesSelectionActive: !1 }), S.selected && i ? (r({
|
|
1890
1890
|
nodes: [],
|
|
1891
1891
|
edges: [S]
|
|
1892
|
-
}),
|
|
1893
|
-
},
|
|
1892
|
+
}), A.current?.blur()) : n([t])), a && a(e, S);
|
|
1893
|
+
}, ae = o ? (e) => {
|
|
1894
1894
|
o(e, { ...S });
|
|
1895
|
-
} : void 0,
|
|
1895
|
+
} : void 0, oe = s ? (e) => {
|
|
1896
1896
|
s(e, { ...S });
|
|
1897
|
-
} : void 0,
|
|
1897
|
+
} : void 0, se = c ? (e) => {
|
|
1898
1898
|
c(e, { ...S });
|
|
1899
|
-
} : void 0,
|
|
1899
|
+
} : void 0, ce = l ? (e) => {
|
|
1900
1900
|
l(e, { ...S });
|
|
1901
|
-
} : void 0,
|
|
1901
|
+
} : void 0, le = u ? (e) => {
|
|
1902
1902
|
u(e, { ...S });
|
|
1903
1903
|
} : void 0;
|
|
1904
|
-
return
|
|
1904
|
+
return Y("svg", {
|
|
1905
1905
|
style: { zIndex: L },
|
|
1906
|
-
children:
|
|
1907
|
-
className:
|
|
1906
|
+
children: X("g", {
|
|
1907
|
+
className: e([
|
|
1908
1908
|
"react-flow__edge",
|
|
1909
1909
|
`react-flow__edge-${w}`,
|
|
1910
1910
|
S.className,
|
|
@@ -1913,20 +1913,20 @@ function EdgeWrapper({ id: t, edgesFocusable: n, edgesReconnectable: r, elements
|
|
|
1913
1913
|
selected: S.selected,
|
|
1914
1914
|
animated: S.animated,
|
|
1915
1915
|
inactive: !O && !a,
|
|
1916
|
-
updating:
|
|
1916
|
+
updating: M,
|
|
1917
1917
|
selectable: O
|
|
1918
1918
|
}
|
|
1919
1919
|
]),
|
|
1920
|
-
onClick:
|
|
1921
|
-
onDoubleClick:
|
|
1922
|
-
onContextMenu:
|
|
1923
|
-
onMouseEnter:
|
|
1924
|
-
onMouseMove:
|
|
1925
|
-
onMouseLeave:
|
|
1920
|
+
onClick: ie,
|
|
1921
|
+
onDoubleClick: ae,
|
|
1922
|
+
onContextMenu: oe,
|
|
1923
|
+
onMouseEnter: se,
|
|
1924
|
+
onMouseMove: ce,
|
|
1925
|
+
onMouseLeave: le,
|
|
1926
1926
|
onKeyDown: E ? (e) => {
|
|
1927
|
-
if (!y &&
|
|
1927
|
+
if (!y && b.includes(e.key) && O) {
|
|
1928
1928
|
let { unselectNodesAndEdges: n, addSelectedEdges: r } = I.getState();
|
|
1929
|
-
e.key === "Escape" ? (
|
|
1929
|
+
e.key === "Escape" ? (A.current?.blur(), n({ edges: [S] })) : r([t]);
|
|
1930
1930
|
}
|
|
1931
1931
|
} : void 0,
|
|
1932
1932
|
tabIndex: E ? 0 : void 0,
|
|
@@ -1935,10 +1935,10 @@ function EdgeWrapper({ id: t, edgesFocusable: n, edgesReconnectable: r, elements
|
|
|
1935
1935
|
"data-id": t,
|
|
1936
1936
|
"data-testid": `rf__edge-${t}`,
|
|
1937
1937
|
"aria-label": S.ariaLabel === null ? void 0 : S.ariaLabel || `Edge from ${S.source} to ${S.target}`,
|
|
1938
|
-
"aria-describedby": E ? `${
|
|
1939
|
-
ref:
|
|
1938
|
+
"aria-describedby": E ? `${Le}-${h}` : void 0,
|
|
1939
|
+
ref: A,
|
|
1940
1940
|
...S.domAttributes,
|
|
1941
|
-
children: [!P &&
|
|
1941
|
+
children: [!P && Y(T, {
|
|
1942
1942
|
id: t,
|
|
1943
1943
|
source: S.source,
|
|
1944
1944
|
target: S.target,
|
|
@@ -1953,54 +1953,54 @@ function EdgeWrapper({ id: t, edgesFocusable: n, edgesReconnectable: r, elements
|
|
|
1953
1953
|
labelBgStyle: S.labelBgStyle,
|
|
1954
1954
|
labelBgPadding: S.labelBgPadding,
|
|
1955
1955
|
labelBgBorderRadius: S.labelBgBorderRadius,
|
|
1956
|
-
sourceX:
|
|
1957
|
-
sourceY:
|
|
1958
|
-
targetX:
|
|
1959
|
-
targetY:
|
|
1960
|
-
sourcePosition:
|
|
1961
|
-
targetPosition:
|
|
1956
|
+
sourceX: R,
|
|
1957
|
+
sourceY: z,
|
|
1958
|
+
targetX: B,
|
|
1959
|
+
targetY: V,
|
|
1960
|
+
sourcePosition: H,
|
|
1961
|
+
targetPosition: te,
|
|
1962
1962
|
data: S.data,
|
|
1963
1963
|
style: S.style,
|
|
1964
1964
|
sourceHandleId: S.sourceHandle,
|
|
1965
1965
|
targetHandleId: S.targetHandle,
|
|
1966
|
-
markerStart:
|
|
1967
|
-
markerEnd:
|
|
1966
|
+
markerStart: ne,
|
|
1967
|
+
markerEnd: re,
|
|
1968
1968
|
pathOptions: "pathOptions" in S ? S.pathOptions : void 0,
|
|
1969
1969
|
interactionWidth: S.interactionWidth
|
|
1970
|
-
}), D &&
|
|
1970
|
+
}), D && Y(nr, {
|
|
1971
1971
|
edge: S,
|
|
1972
1972
|
isReconnectable: D,
|
|
1973
1973
|
reconnectRadius: d,
|
|
1974
1974
|
onReconnect: f,
|
|
1975
1975
|
onReconnectStart: p,
|
|
1976
1976
|
onReconnectEnd: m,
|
|
1977
|
-
sourceX:
|
|
1978
|
-
sourceY:
|
|
1979
|
-
targetX:
|
|
1980
|
-
targetY:
|
|
1981
|
-
sourcePosition:
|
|
1982
|
-
targetPosition:
|
|
1983
|
-
setUpdateHover:
|
|
1977
|
+
sourceX: R,
|
|
1978
|
+
sourceY: z,
|
|
1979
|
+
targetX: B,
|
|
1980
|
+
targetY: V,
|
|
1981
|
+
sourcePosition: H,
|
|
1982
|
+
targetPosition: te,
|
|
1983
|
+
setUpdateHover: N,
|
|
1984
1984
|
setReconnecting: F
|
|
1985
1985
|
})]
|
|
1986
1986
|
})
|
|
1987
1987
|
});
|
|
1988
1988
|
}
|
|
1989
|
-
var
|
|
1989
|
+
var ir = U(rr), ar = (e) => ({
|
|
1990
1990
|
edgesFocusable: e.edgesFocusable,
|
|
1991
1991
|
edgesReconnectable: e.edgesReconnectable,
|
|
1992
1992
|
elementsSelectable: e.elementsSelectable,
|
|
1993
1993
|
connectionMode: e.connectionMode,
|
|
1994
1994
|
onError: e.onError
|
|
1995
1995
|
});
|
|
1996
|
-
function
|
|
1997
|
-
let { edgesFocusable: g, edgesReconnectable: _, elementsSelectable: v, onError: y } =
|
|
1998
|
-
return
|
|
1996
|
+
function or({ defaultMarkerColor: e, onlyRenderVisibleElements: t, rfId: n, edgeTypes: r, noPanClassName: i, onReconnect: a, onEdgeContextMenu: o, onEdgeMouseEnter: s, onEdgeMouseMove: c, onEdgeMouseLeave: l, onEdgeClick: u, reconnectRadius: d, onEdgeDoubleClick: f, onReconnectStart: p, onReconnectEnd: m, disableKeyboardA11y: h }) {
|
|
1997
|
+
let { edgesFocusable: g, edgesReconnectable: _, elementsSelectable: v, onError: y } = Q(ar, Z), b = Sn(t);
|
|
1998
|
+
return X("div", {
|
|
1999
1999
|
className: "react-flow__edges",
|
|
2000
|
-
children: [
|
|
2000
|
+
children: [Y(kn, {
|
|
2001
2001
|
defaultColor: e,
|
|
2002
2002
|
rfId: n
|
|
2003
|
-
}), b.map((e) =>
|
|
2003
|
+
}), b.map((e) => Y(ir, {
|
|
2004
2004
|
id: e,
|
|
2005
2005
|
edgesFocusable: g,
|
|
2006
2006
|
edgesReconnectable: _,
|
|
@@ -2023,25 +2023,25 @@ function EdgeRendererComponent({ defaultMarkerColor: e, onlyRenderVisibleElement
|
|
|
2023
2023
|
}, e))]
|
|
2024
2024
|
});
|
|
2025
2025
|
}
|
|
2026
|
-
|
|
2027
|
-
var
|
|
2028
|
-
function
|
|
2029
|
-
return
|
|
2026
|
+
or.displayName = "EdgeRenderer";
|
|
2027
|
+
var sr = U(or), cr = (e) => `translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;
|
|
2028
|
+
function lr({ children: e }) {
|
|
2029
|
+
return Y("div", {
|
|
2030
2030
|
className: "react-flow__viewport xyflow__viewport react-flow__container",
|
|
2031
|
-
style: { transform:
|
|
2031
|
+
style: { transform: Q(cr) },
|
|
2032
2032
|
children: e
|
|
2033
2033
|
});
|
|
2034
2034
|
}
|
|
2035
|
-
function
|
|
2036
|
-
let t =
|
|
2037
|
-
|
|
2035
|
+
function ur(e) {
|
|
2036
|
+
let t = Ot(), n = q(!1);
|
|
2037
|
+
G(() => {
|
|
2038
2038
|
!n.current && t.viewportInitialized && e && (setTimeout(() => e(t), 1), n.current = !0);
|
|
2039
2039
|
}, [e, t.viewportInitialized]);
|
|
2040
2040
|
}
|
|
2041
|
-
var
|
|
2042
|
-
function
|
|
2043
|
-
let t =
|
|
2044
|
-
return
|
|
2041
|
+
var dr = (e) => e.panZoom?.syncViewport;
|
|
2042
|
+
function fr(e) {
|
|
2043
|
+
let t = Q(dr), n = $();
|
|
2044
|
+
return G(() => {
|
|
2045
2045
|
e && (t?.(e), n.setState({ transform: [
|
|
2046
2046
|
e.x,
|
|
2047
2047
|
e.y,
|
|
@@ -2049,35 +2049,35 @@ function useViewportSync(e) {
|
|
|
2049
2049
|
] }));
|
|
2050
2050
|
}, [e, t]), null;
|
|
2051
2051
|
}
|
|
2052
|
-
function
|
|
2052
|
+
function pr(e) {
|
|
2053
2053
|
return e.connection.inProgress ? {
|
|
2054
2054
|
...e.connection,
|
|
2055
|
-
to:
|
|
2055
|
+
to: ge(e.connection.to, e.transform)
|
|
2056
2056
|
} : { ...e.connection };
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2059
|
-
return e ? (t) => e(
|
|
2058
|
+
function mr(e) {
|
|
2059
|
+
return e ? (t) => e(pr(t)) : pr;
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2062
|
-
return
|
|
2061
|
+
function hr(e) {
|
|
2062
|
+
return Q(mr(e), Z);
|
|
2063
2063
|
}
|
|
2064
|
-
var
|
|
2064
|
+
var gr = (e) => ({
|
|
2065
2065
|
nodesConnectable: e.nodesConnectable,
|
|
2066
2066
|
isValid: e.connection.isValid,
|
|
2067
2067
|
inProgress: e.connection.inProgress,
|
|
2068
2068
|
width: e.width,
|
|
2069
2069
|
height: e.height
|
|
2070
2070
|
});
|
|
2071
|
-
function
|
|
2072
|
-
let { nodesConnectable: a, width: o, height: s, isValid: c, inProgress: l } =
|
|
2073
|
-
return o && a && l ?
|
|
2071
|
+
function _r({ containerStyle: t, style: n, type: r, component: i }) {
|
|
2072
|
+
let { nodesConnectable: a, width: o, height: s, isValid: c, inProgress: l } = Q(gr, Z);
|
|
2073
|
+
return o && a && l ? Y("svg", {
|
|
2074
2074
|
style: t,
|
|
2075
2075
|
width: o,
|
|
2076
2076
|
height: s,
|
|
2077
2077
|
className: "react-flow__connectionline react-flow__container",
|
|
2078
|
-
children:
|
|
2079
|
-
className:
|
|
2080
|
-
children:
|
|
2078
|
+
children: Y("g", {
|
|
2079
|
+
className: e(["react-flow__connection", D(c)]),
|
|
2080
|
+
children: Y(vr, {
|
|
2081
2081
|
style: n,
|
|
2082
2082
|
type: r,
|
|
2083
2083
|
CustomComponent: i,
|
|
@@ -2086,10 +2086,10 @@ function ConnectionLineWrapper({ containerStyle: t, style: n, type: r, component
|
|
|
2086
2086
|
})
|
|
2087
2087
|
}) : null;
|
|
2088
2088
|
}
|
|
2089
|
-
var
|
|
2090
|
-
let { inProgress: a, from: o, fromNode: s, fromHandle: c, fromPosition: l, to: u, toNode: d, toHandle: f, toPosition: p, pointer: m } =
|
|
2089
|
+
var vr = ({ style: e, type: n = t.Bezier, CustomComponent: r, isValid: i }) => {
|
|
2090
|
+
let { inProgress: a, from: o, fromNode: s, fromHandle: c, fromPosition: l, to: u, toNode: d, toHandle: f, toPosition: p, pointer: m } = hr();
|
|
2091
2091
|
if (!a) return;
|
|
2092
|
-
if (r) return
|
|
2092
|
+
if (r) return Y(r, {
|
|
2093
2093
|
connectionLineType: n,
|
|
2094
2094
|
connectionLineStyle: e,
|
|
2095
2095
|
fromNode: s,
|
|
@@ -2100,7 +2100,7 @@ var ConnectionLine = ({ style: e, type: n = ConnectionLineType.Bezier, CustomCom
|
|
|
2100
2100
|
toY: u.y,
|
|
2101
2101
|
fromPosition: l,
|
|
2102
2102
|
toPosition: p,
|
|
2103
|
-
connectionStatus:
|
|
2103
|
+
connectionStatus: D(i),
|
|
2104
2104
|
toNode: d,
|
|
2105
2105
|
toHandle: f,
|
|
2106
2106
|
pointer: m
|
|
@@ -2114,63 +2114,63 @@ var ConnectionLine = ({ style: e, type: n = ConnectionLineType.Bezier, CustomCom
|
|
|
2114
2114
|
targetPosition: p
|
|
2115
2115
|
};
|
|
2116
2116
|
switch (n) {
|
|
2117
|
-
case
|
|
2118
|
-
[h] =
|
|
2117
|
+
case t.Bezier:
|
|
2118
|
+
[h] = T(g);
|
|
2119
2119
|
break;
|
|
2120
|
-
case
|
|
2121
|
-
[h] =
|
|
2120
|
+
case t.SimpleBezier:
|
|
2121
|
+
[h] = Pn(g);
|
|
2122
2122
|
break;
|
|
2123
|
-
case
|
|
2124
|
-
[h] =
|
|
2123
|
+
case t.Step:
|
|
2124
|
+
[h] = B({
|
|
2125
2125
|
...g,
|
|
2126
2126
|
borderRadius: 0
|
|
2127
2127
|
});
|
|
2128
2128
|
break;
|
|
2129
|
-
case
|
|
2130
|
-
[h] =
|
|
2129
|
+
case t.SmoothStep:
|
|
2130
|
+
[h] = B(g);
|
|
2131
2131
|
break;
|
|
2132
|
-
default: [h] =
|
|
2132
|
+
default: [h] = V(g);
|
|
2133
2133
|
}
|
|
2134
|
-
return
|
|
2134
|
+
return Y("path", {
|
|
2135
2135
|
d: h,
|
|
2136
2136
|
fill: "none",
|
|
2137
2137
|
className: "react-flow__connection-path",
|
|
2138
2138
|
style: e
|
|
2139
2139
|
});
|
|
2140
2140
|
};
|
|
2141
|
-
|
|
2142
|
-
var
|
|
2143
|
-
function
|
|
2144
|
-
let t =
|
|
2145
|
-
|
|
2141
|
+
vr.displayName = "ConnectionLine";
|
|
2142
|
+
var yr = {};
|
|
2143
|
+
function br(e = yr) {
|
|
2144
|
+
let t = q(e), n = $();
|
|
2145
|
+
G(() => {
|
|
2146
2146
|
if (process.env.NODE_ENV === "development") {
|
|
2147
2147
|
let r = new Set([...Object.keys(t.current), ...Object.keys(e)]);
|
|
2148
2148
|
for (let i of r) if (t.current[i] !== e[i]) {
|
|
2149
|
-
n.getState().onError?.("002",
|
|
2149
|
+
n.getState().onError?.("002", x.error002());
|
|
2150
2150
|
break;
|
|
2151
2151
|
}
|
|
2152
2152
|
t.current = e;
|
|
2153
2153
|
}
|
|
2154
2154
|
}, [e]);
|
|
2155
2155
|
}
|
|
2156
|
-
function
|
|
2157
|
-
let e =
|
|
2158
|
-
|
|
2156
|
+
function xr() {
|
|
2157
|
+
let e = $(), t = q(!1);
|
|
2158
|
+
G(() => {
|
|
2159
2159
|
if (process.env.NODE_ENV === "development" && !t.current) {
|
|
2160
2160
|
let n = document.querySelector(".react-flow__pane");
|
|
2161
|
-
n && window.getComputedStyle(n).zIndex !== "1" && e.getState().onError?.("013",
|
|
2161
|
+
n && window.getComputedStyle(n).zIndex !== "1" && e.getState().onError?.("013", x.error013("react")), t.current = !0;
|
|
2162
2162
|
}
|
|
2163
2163
|
}, []);
|
|
2164
2164
|
}
|
|
2165
|
-
function
|
|
2166
|
-
return
|
|
2167
|
-
onPaneClick:
|
|
2168
|
-
onPaneMouseEnter:
|
|
2169
|
-
onPaneMouseMove:
|
|
2170
|
-
onPaneMouseLeave:
|
|
2171
|
-
onPaneContextMenu:
|
|
2172
|
-
onPaneScroll:
|
|
2173
|
-
paneClickDistance:
|
|
2165
|
+
function Sr({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick: i, onNodeDoubleClick: a, onEdgeDoubleClick: o, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: l, onNodeContextMenu: u, onSelectionContextMenu: d, onSelectionStart: f, onSelectionEnd: p, connectionLineType: m, connectionLineStyle: h, connectionLineComponent: g, connectionLineContainerStyle: _, selectionKeyCode: v, selectionOnDrag: y, selectionMode: b, multiSelectionKeyCode: x, panActivationKeyCode: S, zoomActivationKeyCode: C, deleteKeyCode: w, onlyRenderVisibleElements: T, elementsSelectable: E, defaultViewport: D, translateExtent: O, minZoom: k, maxZoom: A, preventScrolling: j, defaultMarkerColor: M, zoomOnScroll: N, zoomOnPinch: P, panOnScroll: F, panOnScrollSpeed: ee, panOnScrollMode: I, zoomOnDoubleClick: L, panOnDrag: R, onPaneClick: z, onPaneMouseEnter: B, onPaneMouseMove: V, onPaneMouseLeave: H, onPaneScroll: te, onPaneContextMenu: ne, paneClickDistance: re, nodeClickDistance: ie, onEdgeContextMenu: ae, onEdgeMouseEnter: oe, onEdgeMouseMove: se, onEdgeMouseLeave: ce, reconnectRadius: le, onReconnect: ue, onReconnectStart: de, onReconnectEnd: fe, noDragClassName: pe, noWheelClassName: me, noPanClassName: he, disableKeyboardA11y: ge, nodeExtent: _e, rfId: ve, viewport: ye, onViewportChange: be }) {
|
|
2166
|
+
return br(e), br(t), xr(), ur(n), fr(ye), Y(dn, {
|
|
2167
|
+
onPaneClick: z,
|
|
2168
|
+
onPaneMouseEnter: B,
|
|
2169
|
+
onPaneMouseMove: V,
|
|
2170
|
+
onPaneMouseLeave: H,
|
|
2171
|
+
onPaneContextMenu: ne,
|
|
2172
|
+
onPaneScroll: te,
|
|
2173
|
+
paneClickDistance: re,
|
|
2174
2174
|
deleteKeyCode: w,
|
|
2175
2175
|
selectionKeyCode: v,
|
|
2176
2176
|
selectionOnDrag: y,
|
|
@@ -2183,50 +2183,50 @@ function GraphViewComponent({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick
|
|
|
2183
2183
|
elementsSelectable: E,
|
|
2184
2184
|
zoomOnScroll: N,
|
|
2185
2185
|
zoomOnPinch: P,
|
|
2186
|
-
zoomOnDoubleClick:
|
|
2186
|
+
zoomOnDoubleClick: L,
|
|
2187
2187
|
panOnScroll: F,
|
|
2188
|
-
panOnScrollSpeed:
|
|
2189
|
-
panOnScrollMode:
|
|
2190
|
-
panOnDrag:
|
|
2188
|
+
panOnScrollSpeed: ee,
|
|
2189
|
+
panOnScrollMode: I,
|
|
2190
|
+
panOnDrag: R,
|
|
2191
2191
|
defaultViewport: D,
|
|
2192
2192
|
translateExtent: O,
|
|
2193
2193
|
minZoom: k,
|
|
2194
2194
|
maxZoom: A,
|
|
2195
2195
|
onSelectionContextMenu: d,
|
|
2196
2196
|
preventScrolling: j,
|
|
2197
|
-
noDragClassName:
|
|
2198
|
-
noWheelClassName:
|
|
2199
|
-
noPanClassName:
|
|
2200
|
-
disableKeyboardA11y:
|
|
2201
|
-
onViewportChange:
|
|
2202
|
-
isControlledViewport: !!
|
|
2203
|
-
children:
|
|
2204
|
-
|
|
2197
|
+
noDragClassName: pe,
|
|
2198
|
+
noWheelClassName: me,
|
|
2199
|
+
noPanClassName: he,
|
|
2200
|
+
disableKeyboardA11y: ge,
|
|
2201
|
+
onViewportChange: be,
|
|
2202
|
+
isControlledViewport: !!ye,
|
|
2203
|
+
children: X(lr, { children: [
|
|
2204
|
+
Y(sr, {
|
|
2205
2205
|
edgeTypes: t,
|
|
2206
2206
|
onEdgeClick: i,
|
|
2207
2207
|
onEdgeDoubleClick: o,
|
|
2208
|
-
onReconnect:
|
|
2209
|
-
onReconnectStart:
|
|
2210
|
-
onReconnectEnd:
|
|
2208
|
+
onReconnect: ue,
|
|
2209
|
+
onReconnectStart: de,
|
|
2210
|
+
onReconnectEnd: fe,
|
|
2211
2211
|
onlyRenderVisibleElements: T,
|
|
2212
|
-
onEdgeContextMenu:
|
|
2213
|
-
onEdgeMouseEnter:
|
|
2214
|
-
onEdgeMouseMove:
|
|
2215
|
-
onEdgeMouseLeave:
|
|
2216
|
-
reconnectRadius:
|
|
2212
|
+
onEdgeContextMenu: ae,
|
|
2213
|
+
onEdgeMouseEnter: oe,
|
|
2214
|
+
onEdgeMouseMove: se,
|
|
2215
|
+
onEdgeMouseLeave: ce,
|
|
2216
|
+
reconnectRadius: le,
|
|
2217
2217
|
defaultMarkerColor: M,
|
|
2218
|
-
noPanClassName:
|
|
2219
|
-
disableKeyboardA11y:
|
|
2220
|
-
rfId:
|
|
2218
|
+
noPanClassName: he,
|
|
2219
|
+
disableKeyboardA11y: ge,
|
|
2220
|
+
rfId: ve
|
|
2221
2221
|
}),
|
|
2222
|
-
|
|
2222
|
+
Y(_r, {
|
|
2223
2223
|
style: h,
|
|
2224
2224
|
type: m,
|
|
2225
2225
|
component: g,
|
|
2226
2226
|
containerStyle: _
|
|
2227
2227
|
}),
|
|
2228
|
-
|
|
2229
|
-
|
|
2228
|
+
Y("div", { className: "react-flow__edgelabel-renderer" }),
|
|
2229
|
+
Y(xn, {
|
|
2230
2230
|
nodeTypes: e,
|
|
2231
2231
|
onNodeClick: r,
|
|
2232
2232
|
onNodeDoubleClick: a,
|
|
@@ -2234,23 +2234,23 @@ function GraphViewComponent({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick
|
|
|
2234
2234
|
onNodeMouseMove: c,
|
|
2235
2235
|
onNodeMouseLeave: l,
|
|
2236
2236
|
onNodeContextMenu: u,
|
|
2237
|
-
nodeClickDistance:
|
|
2237
|
+
nodeClickDistance: ie,
|
|
2238
2238
|
onlyRenderVisibleElements: T,
|
|
2239
|
-
noPanClassName:
|
|
2240
|
-
noDragClassName:
|
|
2241
|
-
disableKeyboardA11y:
|
|
2242
|
-
nodeExtent:
|
|
2243
|
-
rfId:
|
|
2239
|
+
noPanClassName: he,
|
|
2240
|
+
noDragClassName: pe,
|
|
2241
|
+
disableKeyboardA11y: ge,
|
|
2242
|
+
nodeExtent: _e,
|
|
2243
|
+
rfId: ve
|
|
2244
2244
|
}),
|
|
2245
|
-
|
|
2245
|
+
Y("div", { className: "react-flow__viewport-portal" })
|
|
2246
2246
|
] })
|
|
2247
2247
|
});
|
|
2248
2248
|
}
|
|
2249
|
-
|
|
2250
|
-
var
|
|
2251
|
-
let h = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), x = i ?? t ?? [], S = r ?? e ?? [], C = d ?? [0, 0], w = f ??
|
|
2252
|
-
|
|
2253
|
-
let T =
|
|
2249
|
+
Sr.displayName = "GraphView";
|
|
2250
|
+
var Cr = U(Sr), wr = ({ nodes: e, edges: t, defaultNodes: r, defaultEdges: i, width: a, height: o, fitView: s, fitViewOptions: c, minZoom: l = .5, maxZoom: u = 2, nodeOrigin: d, nodeExtent: f, zIndexMode: p = "basic" } = {}) => {
|
|
2251
|
+
let h = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), x = i ?? t ?? [], S = r ?? e ?? [], C = d ?? [0, 0], w = f ?? ne;
|
|
2252
|
+
be(_, b, x);
|
|
2253
|
+
let { nodesInitialized: T } = m(S, h, g, {
|
|
2254
2254
|
nodeOrigin: C,
|
|
2255
2255
|
nodeExtent: w,
|
|
2256
2256
|
zIndexMode: p
|
|
@@ -2260,7 +2260,7 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
|
|
|
2260
2260
|
1
|
|
2261
2261
|
];
|
|
2262
2262
|
if (s && a && o) {
|
|
2263
|
-
let { x: e, y: t, zoom: n } =
|
|
2263
|
+
let { x: e, y: t, zoom: n } = H(F(h, { filter: (e) => !!((e.width || e.initialWidth) && (e.height || e.initialHeight)) }), a, o, l, u, c?.padding ?? .1);
|
|
2264
2264
|
E = [
|
|
2265
2265
|
e,
|
|
2266
2266
|
t,
|
|
@@ -2286,12 +2286,12 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
|
|
|
2286
2286
|
panZoom: null,
|
|
2287
2287
|
minZoom: l,
|
|
2288
2288
|
maxZoom: u,
|
|
2289
|
-
translateExtent:
|
|
2289
|
+
translateExtent: ne,
|
|
2290
2290
|
nodeExtent: w,
|
|
2291
2291
|
nodesSelectionActive: !1,
|
|
2292
2292
|
userSelectionActive: !1,
|
|
2293
2293
|
userSelectionRect: null,
|
|
2294
|
-
connectionMode:
|
|
2294
|
+
connectionMode: n.Strict,
|
|
2295
2295
|
domNode: null,
|
|
2296
2296
|
paneDragging: !1,
|
|
2297
2297
|
noPanClassName: "nopan",
|
|
@@ -2313,7 +2313,7 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
|
|
|
2313
2313
|
fitViewQueued: s ?? !1,
|
|
2314
2314
|
fitViewOptions: c,
|
|
2315
2315
|
fitViewResolver: null,
|
|
2316
|
-
connection: { ...
|
|
2316
|
+
connection: { ...re },
|
|
2317
2317
|
connectionClickStartHandle: null,
|
|
2318
2318
|
connectOnClick: !0,
|
|
2319
2319
|
ariaLiveMessage: "",
|
|
@@ -2322,20 +2322,20 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
|
|
|
2322
2322
|
autoPanOnNodeFocus: !0,
|
|
2323
2323
|
autoPanSpeed: 15,
|
|
2324
2324
|
connectionRadius: 20,
|
|
2325
|
-
onError:
|
|
2325
|
+
onError: y,
|
|
2326
2326
|
isValidConnection: void 0,
|
|
2327
2327
|
onSelectionChangeHandlers: [],
|
|
2328
2328
|
lib: "react",
|
|
2329
2329
|
debug: !1,
|
|
2330
|
-
ariaLabelConfig:
|
|
2330
|
+
ariaLabelConfig: v,
|
|
2331
2331
|
zIndexMode: p,
|
|
2332
2332
|
onNodesChangeMiddlewareMap: /* @__PURE__ */ new Map(),
|
|
2333
2333
|
onEdgesChangeMiddlewareMap: /* @__PURE__ */ new Map()
|
|
2334
2334
|
};
|
|
2335
|
-
},
|
|
2335
|
+
}, Tr = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, width: i, height: o, fitView: s, fitViewOptions: c, minZoom: l, maxZoom: u, nodeOrigin: d, nodeExtent: f, zIndexMode: p }) => ke((h, g) => {
|
|
2336
2336
|
async function _() {
|
|
2337
2337
|
let { nodeLookup: e, panZoom: t, fitViewOptions: n, fitViewResolver: r, width: i, height: a, minZoom: o, maxZoom: s } = g();
|
|
2338
|
-
t && (await
|
|
2338
|
+
t && (await C({
|
|
2339
2339
|
nodes: e,
|
|
2340
2340
|
width: i,
|
|
2341
2341
|
height: a,
|
|
@@ -2345,7 +2345,7 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
|
|
|
2345
2345
|
}, n), r?.resolve(!0), h({ fitViewResolver: null }));
|
|
2346
2346
|
}
|
|
2347
2347
|
return {
|
|
2348
|
-
...
|
|
2348
|
+
...wr({
|
|
2349
2349
|
nodes: e,
|
|
2350
2350
|
edges: t,
|
|
2351
2351
|
width: i,
|
|
@@ -2361,26 +2361,28 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
|
|
|
2361
2361
|
zIndexMode: p
|
|
2362
2362
|
}),
|
|
2363
2363
|
setNodes: (e) => {
|
|
2364
|
-
let { nodeLookup: t, parentLookup: n, nodeOrigin: r, elevateNodesOnSelect: i, fitViewQueued: a, zIndexMode: o } = g(),
|
|
2364
|
+
let { nodeLookup: t, parentLookup: n, nodeOrigin: r, elevateNodesOnSelect: i, fitViewQueued: a, zIndexMode: o, nodesSelectionActive: s } = g(), { nodesInitialized: c, hasSelectedNodes: l } = m(e, t, n, {
|
|
2365
2365
|
nodeOrigin: r,
|
|
2366
2366
|
nodeExtent: f,
|
|
2367
2367
|
elevateNodesOnSelect: i,
|
|
2368
2368
|
checkEquality: !0,
|
|
2369
2369
|
zIndexMode: o
|
|
2370
|
-
});
|
|
2371
|
-
a &&
|
|
2370
|
+
}), u = s && l;
|
|
2371
|
+
a && c ? (_(), h({
|
|
2372
2372
|
nodes: e,
|
|
2373
|
-
nodesInitialized:
|
|
2373
|
+
nodesInitialized: c,
|
|
2374
2374
|
fitViewQueued: !1,
|
|
2375
|
-
fitViewOptions: void 0
|
|
2375
|
+
fitViewOptions: void 0,
|
|
2376
|
+
nodesSelectionActive: u
|
|
2376
2377
|
})) : h({
|
|
2377
2378
|
nodes: e,
|
|
2378
|
-
nodesInitialized:
|
|
2379
|
+
nodesInitialized: c,
|
|
2380
|
+
nodesSelectionActive: u
|
|
2379
2381
|
});
|
|
2380
2382
|
},
|
|
2381
2383
|
setEdges: (e) => {
|
|
2382
2384
|
let { connectionLookup: t, edgeLookup: n } = g();
|
|
2383
|
-
|
|
2385
|
+
be(t, n, e), h({ edges: e });
|
|
2384
2386
|
},
|
|
2385
2387
|
setDefaultNodesAndEdges: (e, t) => {
|
|
2386
2388
|
if (e) {
|
|
@@ -2393,8 +2395,8 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
|
|
|
2393
2395
|
}
|
|
2394
2396
|
},
|
|
2395
2397
|
updateNodeInternals: (e) => {
|
|
2396
|
-
let { triggerNodeChanges: t, nodeLookup: n, parentLookup: r, domNode: i, nodeOrigin: a, nodeExtent: o, debug: s, fitViewQueued: c, zIndexMode: l } = g(), { changes: u, updatedInternals: d } =
|
|
2397
|
-
d && (
|
|
2398
|
+
let { triggerNodeChanges: t, nodeLookup: n, parentLookup: r, domNode: i, nodeOrigin: a, nodeExtent: o, debug: s, fitViewQueued: c, zIndexMode: l } = g(), { changes: u, updatedInternals: d } = xe(e, n, r, i, a, o, l);
|
|
2399
|
+
d && (ye(n, r, {
|
|
2398
2400
|
nodeOrigin: a,
|
|
2399
2401
|
nodeExtent: o,
|
|
2400
2402
|
zIndexMode: l
|
|
@@ -2416,7 +2418,7 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
|
|
|
2416
2418
|
dragging: t
|
|
2417
2419
|
};
|
|
2418
2420
|
if (e && s.inProgress && s.fromNode.id === e.id) {
|
|
2419
|
-
let t =
|
|
2421
|
+
let t = N(e, s.fromHandle, a.Left, !0);
|
|
2420
2422
|
c({
|
|
2421
2423
|
...s,
|
|
2422
2424
|
from: t
|
|
@@ -2433,7 +2435,7 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
|
|
|
2433
2435
|
}), r.push(d);
|
|
2434
2436
|
}
|
|
2435
2437
|
if (n.length > 0) {
|
|
2436
|
-
let { parentLookup: e, nodeOrigin: t } = g(), a =
|
|
2438
|
+
let { parentLookup: e, nodeOrigin: t } = g(), a = te(n, i, e, t);
|
|
2437
2439
|
r.push(...a);
|
|
2438
2440
|
}
|
|
2439
2441
|
for (let e of l.values()) r = e(r);
|
|
@@ -2441,37 +2443,37 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
|
|
|
2441
2443
|
},
|
|
2442
2444
|
triggerNodeChanges: (e) => {
|
|
2443
2445
|
let { onNodesChange: t, setNodes: n, nodes: r, hasDefaultNodes: i, debug: a } = g();
|
|
2444
|
-
e?.length && (i && n(
|
|
2446
|
+
e?.length && (i && n(pt(e, r)), a && console.log("React Flow: trigger node changes", e), t?.(e));
|
|
2445
2447
|
},
|
|
2446
2448
|
triggerEdgeChanges: (e) => {
|
|
2447
2449
|
let { onEdgesChange: t, setEdges: n, edges: r, hasDefaultEdges: i, debug: a } = g();
|
|
2448
|
-
e?.length && (i && n(
|
|
2450
|
+
e?.length && (i && n(mt(e, r)), a && console.log("React Flow: trigger edge changes", e), t?.(e));
|
|
2449
2451
|
},
|
|
2450
2452
|
addSelectedNodes: (e) => {
|
|
2451
2453
|
let { multiSelectionActive: t, edgeLookup: n, nodeLookup: r, triggerNodeChanges: i, triggerEdgeChanges: a } = g();
|
|
2452
2454
|
if (t) {
|
|
2453
|
-
i(e.map((e) =>
|
|
2455
|
+
i(e.map((e) => ht(e, !0)));
|
|
2454
2456
|
return;
|
|
2455
2457
|
}
|
|
2456
|
-
i(
|
|
2458
|
+
i(gt(r, new Set([...e]), !0)), a(gt(n));
|
|
2457
2459
|
},
|
|
2458
2460
|
addSelectedEdges: (e) => {
|
|
2459
2461
|
let { multiSelectionActive: t, edgeLookup: n, nodeLookup: r, triggerNodeChanges: i, triggerEdgeChanges: a } = g();
|
|
2460
2462
|
if (t) {
|
|
2461
|
-
a(e.map((e) =>
|
|
2463
|
+
a(e.map((e) => ht(e, !0)));
|
|
2462
2464
|
return;
|
|
2463
2465
|
}
|
|
2464
|
-
a(
|
|
2466
|
+
a(gt(n, new Set([...e]))), i(gt(r, /* @__PURE__ */ new Set(), !0));
|
|
2465
2467
|
},
|
|
2466
2468
|
unselectNodesAndEdges: ({ nodes: e, edges: t } = {}) => {
|
|
2467
2469
|
let { edges: n, nodes: r, nodeLookup: i, triggerNodeChanges: a, triggerEdgeChanges: o } = g(), s = e || r, c = t || n, l = [];
|
|
2468
2470
|
for (let e of s) {
|
|
2469
2471
|
if (!e.selected) continue;
|
|
2470
2472
|
let t = i.get(e.id);
|
|
2471
|
-
t && (t.selected = !1), l.push(
|
|
2473
|
+
t && (t.selected = !1), l.push(ht(e.id, !1));
|
|
2472
2474
|
}
|
|
2473
2475
|
let u = [];
|
|
2474
|
-
for (let e of c) e.selected && u.push(
|
|
2476
|
+
for (let e of c) e.selected && u.push(ht(e.id, !1));
|
|
2475
2477
|
a(l), o(u);
|
|
2476
2478
|
},
|
|
2477
2479
|
setMinZoom: (e) => {
|
|
@@ -2488,12 +2490,12 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
|
|
|
2488
2490
|
resetSelectedElements: () => {
|
|
2489
2491
|
let { edges: e, nodes: t, triggerNodeChanges: n, triggerEdgeChanges: r, elementsSelectable: i } = g();
|
|
2490
2492
|
if (!i) return;
|
|
2491
|
-
let a = t.reduce((e, t) => t.selected ? [...e,
|
|
2493
|
+
let a = t.reduce((e, t) => t.selected ? [...e, ht(t.id, !1)] : e, []), o = e.reduce((e, t) => t.selected ? [...e, ht(t.id, !1)] : e, []);
|
|
2492
2494
|
n(a), r(o);
|
|
2493
2495
|
},
|
|
2494
2496
|
setNodeExtent: (e) => {
|
|
2495
2497
|
let { nodes: t, nodeLookup: n, parentLookup: r, nodeOrigin: i, elevateNodesOnSelect: a, nodeExtent: o, zIndexMode: s } = g();
|
|
2496
|
-
e[0][0] === o[0][0] && e[0][1] === o[0][1] && e[1][0] === o[1][0] && e[1][1] === o[1][1] || (
|
|
2498
|
+
e[0][0] === o[0][0] && e[0][1] === o[0][1] && e[1][0] === o[1][0] && e[1][1] === o[1][1] || (m(t, n, r, {
|
|
2497
2499
|
nodeOrigin: i,
|
|
2498
2500
|
nodeExtent: e,
|
|
2499
2501
|
elevateNodesOnSelect: a,
|
|
@@ -2503,7 +2505,7 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
|
|
|
2503
2505
|
},
|
|
2504
2506
|
panBy: (e) => {
|
|
2505
2507
|
let { transform: t, width: n, height: r, panZoom: i, translateExtent: a } = g();
|
|
2506
|
-
return
|
|
2508
|
+
return he({
|
|
2507
2509
|
delta: e,
|
|
2508
2510
|
panZoom: i,
|
|
2509
2511
|
transform: t,
|
|
@@ -2527,16 +2529,16 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
|
|
|
2527
2529
|
}), Promise.resolve(!0);
|
|
2528
2530
|
},
|
|
2529
2531
|
cancelConnection: () => {
|
|
2530
|
-
h({ connection: { ...
|
|
2532
|
+
h({ connection: { ...re } });
|
|
2531
2533
|
},
|
|
2532
2534
|
updateConnection: (e) => {
|
|
2533
2535
|
h({ connection: e });
|
|
2534
2536
|
},
|
|
2535
|
-
reset: () => h({ ...
|
|
2537
|
+
reset: () => h({ ...wr() })
|
|
2536
2538
|
};
|
|
2537
2539
|
}, Object.is);
|
|
2538
|
-
function
|
|
2539
|
-
let [m] =
|
|
2540
|
+
function Er({ initialNodes: e, initialEdges: t, defaultNodes: n, defaultEdges: r, initialWidth: i, initialHeight: a, initialMinZoom: o, initialMaxZoom: s, initialFitViewOptions: c, fitView: l, nodeOrigin: u, nodeExtent: d, zIndexMode: f, children: p }) {
|
|
2541
|
+
let [m] = J(() => Tr({
|
|
2540
2542
|
nodes: e,
|
|
2541
2543
|
edges: t,
|
|
2542
2544
|
defaultNodes: n,
|
|
@@ -2551,13 +2553,13 @@ function ReactFlowProvider({ initialNodes: e, initialEdges: t, defaultNodes: n,
|
|
|
2551
2553
|
nodeExtent: d,
|
|
2552
2554
|
zIndexMode: f
|
|
2553
2555
|
}));
|
|
2554
|
-
return
|
|
2556
|
+
return Y(Me, {
|
|
2555
2557
|
value: m,
|
|
2556
|
-
children:
|
|
2558
|
+
children: Y(Tt, { children: p })
|
|
2557
2559
|
});
|
|
2558
2560
|
}
|
|
2559
|
-
function
|
|
2560
|
-
return
|
|
2561
|
+
function Dr({ children: e, nodes: t, edges: n, defaultNodes: r, defaultEdges: i, width: a, height: o, fitView: s, fitViewOptions: c, minZoom: l, maxZoom: u, nodeOrigin: d, nodeExtent: f, zIndexMode: p }) {
|
|
2562
|
+
return Te(je) ? Y(De, { children: e }) : Y(Er, {
|
|
2561
2563
|
initialNodes: t,
|
|
2562
2564
|
initialEdges: n,
|
|
2563
2565
|
defaultNodes: r,
|
|
@@ -2574,116 +2576,51 @@ function Wrapper({ children: e, nodes: t, edges: n, defaultNodes: r, defaultEdge
|
|
|
2574
2576
|
children: e
|
|
2575
2577
|
});
|
|
2576
2578
|
}
|
|
2577
|
-
var
|
|
2579
|
+
var Or = {
|
|
2578
2580
|
width: "100%",
|
|
2579
2581
|
height: "100%",
|
|
2580
2582
|
overflow: "hidden",
|
|
2581
2583
|
position: "relative",
|
|
2582
2584
|
zIndex: 0
|
|
2583
2585
|
};
|
|
2584
|
-
function
|
|
2585
|
-
let
|
|
2586
|
+
function kr({ nodes: n, edges: r, defaultNodes: a, defaultEdges: o, className: c, nodeTypes: l, edgeTypes: u, onNodeClick: d, onEdgeClick: f, onInit: p, onMove: m, onMoveStart: h, onMoveEnd: g, onConnect: _, onConnectStart: v, onConnectEnd: y, onClickConnectStart: b, onClickConnectEnd: x, onNodeMouseEnter: S, onNodeMouseMove: C, onNodeMouseLeave: w, onNodeContextMenu: T, onNodeDoubleClick: E, onNodeDragStart: D, onNodeDrag: O, onNodeDragStop: k, onNodesDelete: A, onEdgesDelete: j, onDelete: M, onSelectionChange: N, onSelectionDragStart: P, onSelectionDrag: F, onSelectionDragStop: ee, onSelectionContextMenu: I, onSelectionStart: L, onSelectionEnd: R, onBeforeDelete: z, connectionMode: B, connectionLineType: V = t.Bezier, connectionLineStyle: H, connectionLineComponent: te, connectionLineContainerStyle: re, deleteKeyCode: ie = "Backspace", selectionKeyCode: ae = "Shift", selectionOnDrag: oe = !1, selectionMode: ce = s.Full, panActivationKeyCode: le = "Space", multiSelectionKeyCode: ue = se() ? "Meta" : "Control", zoomActivationKeyCode: de = se() ? "Meta" : "Control", snapToGrid: fe, snapGrid: pe, onlyRenderVisibleElements: me = !1, selectNodesOnDrag: he, nodesDraggable: ge, autoPanOnNodeFocus: _e, nodesConnectable: ve, nodesFocusable: ye, nodeOrigin: be = Qe, edgesFocusable: xe, edgesReconnectable: Se, elementsSelectable: Ce = !0, defaultViewport: we = $e, minZoom: U = .5, maxZoom: Te = 2, translateExtent: G = ne, preventScrolling: Ee = !0, nodeExtent: K, defaultMarkerColor: q = "#b1b1b7", zoomOnScroll: J = !0, zoomOnPinch: De = !0, panOnScroll: Oe = !1, panOnScrollSpeed: ke = .5, panOnScrollMode: Ae = i.Free, zoomOnDoubleClick: Z = !0, panOnDrag: je = !0, onPaneClick: Me, onPaneMouseEnter: Ne, onPaneMouseMove: Q, onPaneMouseLeave: $, onPaneScroll: Pe, onPaneContextMenu: Fe, paneClickDistance: Ie = 1, nodeClickDistance: Le = 0, children: Re, onReconnect: ze, onReconnectStart: Be, onReconnectEnd: Ve, onEdgeContextMenu: Ue, onEdgeDoubleClick: Ge, onEdgeMouseEnter: Ke, onEdgeMouseMove: qe, onEdgeMouseLeave: Je, reconnectRadius: Ye = 10, onNodesChange: Ze, onEdgesChange: et, noDragClassName: tt = "nodrag", noWheelClassName: nt = "nowheel", noPanClassName: it = "nopan", fitView: ot, fitViewOptions: st, connectOnClick: ct, attributionPosition: lt, proOptions: ut, defaultEdgeOptions: dt, elevateNodesOnSelect: ft = !0, elevateEdgesOnSelect: pt = !1, disableKeyboardA11y: mt = !1, autoPanOnConnect: ht, autoPanOnNodeDrag: gt, autoPanSpeed: _t, connectionRadius: vt, isValidConnection: yt, onError: bt, style: xt, id: St, nodeDragThreshold: Ct, connectionDragThreshold: wt, viewport: Tt, onViewportChange: Et, width: Dt, height: Ot, colorMode: kt = "light", debug: At, onScroll: jt, ariaLabelConfig: Mt, zIndexMode: Nt = "basic", ...Pt }, Ft) {
|
|
2587
|
+
let It = St || "1", Lt = at(kt), Rt = W((e) => {
|
|
2586
2588
|
e.currentTarget.scrollTo({
|
|
2587
2589
|
top: 0,
|
|
2588
2590
|
left: 0,
|
|
2589
2591
|
behavior: "instant"
|
|
2590
|
-
}),
|
|
2591
|
-
}, [
|
|
2592
|
-
return
|
|
2592
|
+
}), jt?.(e);
|
|
2593
|
+
}, [jt]);
|
|
2594
|
+
return Y("div", {
|
|
2593
2595
|
"data-testid": "rf__wrapper",
|
|
2594
|
-
...
|
|
2595
|
-
onScroll:
|
|
2596
|
+
...Pt,
|
|
2597
|
+
onScroll: Rt,
|
|
2596
2598
|
style: {
|
|
2597
|
-
...
|
|
2598
|
-
...
|
|
2599
|
+
...xt,
|
|
2600
|
+
...Or
|
|
2599
2601
|
},
|
|
2600
|
-
ref:
|
|
2601
|
-
className:
|
|
2602
|
+
ref: Ft,
|
|
2603
|
+
className: e([
|
|
2602
2604
|
"react-flow",
|
|
2603
2605
|
c,
|
|
2604
|
-
|
|
2606
|
+
Lt
|
|
2605
2607
|
]),
|
|
2606
|
-
id:
|
|
2608
|
+
id: St,
|
|
2607
2609
|
role: "application",
|
|
2608
|
-
children:
|
|
2610
|
+
children: X(Dr, {
|
|
2609
2611
|
nodes: n,
|
|
2610
2612
|
edges: r,
|
|
2611
|
-
width:
|
|
2612
|
-
height:
|
|
2613
|
-
fitView:
|
|
2614
|
-
fitViewOptions:
|
|
2615
|
-
minZoom:
|
|
2616
|
-
maxZoom:
|
|
2617
|
-
nodeOrigin:
|
|
2618
|
-
nodeExtent:
|
|
2619
|
-
zIndexMode:
|
|
2613
|
+
width: Dt,
|
|
2614
|
+
height: Ot,
|
|
2615
|
+
fitView: ot,
|
|
2616
|
+
fitViewOptions: st,
|
|
2617
|
+
minZoom: U,
|
|
2618
|
+
maxZoom: Te,
|
|
2619
|
+
nodeOrigin: be,
|
|
2620
|
+
nodeExtent: K,
|
|
2621
|
+
zIndexMode: Nt,
|
|
2620
2622
|
children: [
|
|
2621
|
-
|
|
2622
|
-
onInit: p,
|
|
2623
|
-
onNodeClick: d,
|
|
2624
|
-
onEdgeClick: f,
|
|
2625
|
-
onNodeMouseEnter: S,
|
|
2626
|
-
onNodeMouseMove: C,
|
|
2627
|
-
onNodeMouseLeave: w,
|
|
2628
|
-
onNodeContextMenu: T,
|
|
2629
|
-
onNodeDoubleClick: E,
|
|
2630
|
-
nodeTypes: l,
|
|
2631
|
-
edgeTypes: u,
|
|
2632
|
-
connectionLineType: H,
|
|
2633
|
-
connectionLineStyle: U,
|
|
2634
|
-
connectionLineComponent: W,
|
|
2635
|
-
connectionLineContainerStyle: G,
|
|
2636
|
-
selectionKeyCode: J,
|
|
2637
|
-
selectionOnDrag: Y,
|
|
2638
|
-
selectionMode: X,
|
|
2639
|
-
deleteKeyCode: K,
|
|
2640
|
-
multiSelectionKeyCode: Hn,
|
|
2641
|
-
panActivationKeyCode: Z,
|
|
2642
|
-
zoomActivationKeyCode: Un,
|
|
2643
|
-
onlyRenderVisibleElements: Kn,
|
|
2644
|
-
defaultViewport: er,
|
|
2645
|
-
translateExtent: rr,
|
|
2646
|
-
minZoom: tr,
|
|
2647
|
-
maxZoom: nr,
|
|
2648
|
-
preventScrolling: ir,
|
|
2649
|
-
zoomOnScroll: sr,
|
|
2650
|
-
zoomOnPinch: cr,
|
|
2651
|
-
zoomOnDoubleClick: fr,
|
|
2652
|
-
panOnScroll: lr,
|
|
2653
|
-
panOnScrollSpeed: ur,
|
|
2654
|
-
panOnScrollMode: dr,
|
|
2655
|
-
panOnDrag: pr,
|
|
2656
|
-
onPaneClick: mr,
|
|
2657
|
-
onPaneMouseEnter: hr,
|
|
2658
|
-
onPaneMouseMove: gr,
|
|
2659
|
-
onPaneMouseLeave: _r,
|
|
2660
|
-
onPaneScroll: vr,
|
|
2661
|
-
onPaneContextMenu: yr,
|
|
2662
|
-
paneClickDistance: br,
|
|
2663
|
-
nodeClickDistance: xr,
|
|
2664
|
-
onSelectionContextMenu: L,
|
|
2665
|
-
onSelectionStart: R,
|
|
2666
|
-
onSelectionEnd: z,
|
|
2667
|
-
onReconnect: Cr,
|
|
2668
|
-
onReconnectStart: wr,
|
|
2669
|
-
onReconnectEnd: Tr,
|
|
2670
|
-
onEdgeContextMenu: Er,
|
|
2671
|
-
onEdgeDoubleClick: Dr,
|
|
2672
|
-
onEdgeMouseEnter: Or,
|
|
2673
|
-
onEdgeMouseMove: kr,
|
|
2674
|
-
onEdgeMouseLeave: Ar,
|
|
2675
|
-
reconnectRadius: jr,
|
|
2676
|
-
defaultMarkerColor: or,
|
|
2677
|
-
noDragClassName: Pr,
|
|
2678
|
-
noWheelClassName: Fr,
|
|
2679
|
-
noPanClassName: Ir,
|
|
2680
|
-
rfId: pi,
|
|
2681
|
-
disableKeyboardA11y: Gr,
|
|
2682
|
-
nodeExtent: ar,
|
|
2683
|
-
viewport: ni,
|
|
2684
|
-
onViewportChange: ri
|
|
2685
|
-
}),
|
|
2686
|
-
jsx(StoreUpdater, {
|
|
2623
|
+
Y(rt, {
|
|
2687
2624
|
nodes: n,
|
|
2688
2625
|
edges: r,
|
|
2689
2626
|
defaultNodes: a,
|
|
@@ -2693,28 +2630,28 @@ function ReactFlow({ nodes: n, edges: r, defaultNodes: a, defaultEdges: o, class
|
|
|
2693
2630
|
onConnectEnd: y,
|
|
2694
2631
|
onClickConnectStart: b,
|
|
2695
2632
|
onClickConnectEnd: x,
|
|
2696
|
-
nodesDraggable:
|
|
2697
|
-
autoPanOnNodeFocus:
|
|
2698
|
-
nodesConnectable:
|
|
2699
|
-
nodesFocusable:
|
|
2700
|
-
edgesFocusable:
|
|
2701
|
-
edgesReconnectable:
|
|
2702
|
-
elementsSelectable:
|
|
2703
|
-
elevateNodesOnSelect:
|
|
2704
|
-
elevateEdgesOnSelect:
|
|
2705
|
-
minZoom:
|
|
2706
|
-
maxZoom:
|
|
2707
|
-
nodeExtent:
|
|
2708
|
-
onNodesChange:
|
|
2709
|
-
onEdgesChange:
|
|
2710
|
-
snapToGrid:
|
|
2711
|
-
snapGrid:
|
|
2712
|
-
connectionMode:
|
|
2713
|
-
translateExtent:
|
|
2714
|
-
connectOnClick:
|
|
2715
|
-
defaultEdgeOptions:
|
|
2716
|
-
fitView:
|
|
2717
|
-
fitViewOptions:
|
|
2633
|
+
nodesDraggable: ge,
|
|
2634
|
+
autoPanOnNodeFocus: _e,
|
|
2635
|
+
nodesConnectable: ve,
|
|
2636
|
+
nodesFocusable: ye,
|
|
2637
|
+
edgesFocusable: xe,
|
|
2638
|
+
edgesReconnectable: Se,
|
|
2639
|
+
elementsSelectable: Ce,
|
|
2640
|
+
elevateNodesOnSelect: ft,
|
|
2641
|
+
elevateEdgesOnSelect: pt,
|
|
2642
|
+
minZoom: U,
|
|
2643
|
+
maxZoom: Te,
|
|
2644
|
+
nodeExtent: K,
|
|
2645
|
+
onNodesChange: Ze,
|
|
2646
|
+
onEdgesChange: et,
|
|
2647
|
+
snapToGrid: fe,
|
|
2648
|
+
snapGrid: pe,
|
|
2649
|
+
connectionMode: B,
|
|
2650
|
+
translateExtent: G,
|
|
2651
|
+
connectOnClick: ct,
|
|
2652
|
+
defaultEdgeOptions: dt,
|
|
2653
|
+
fitView: ot,
|
|
2654
|
+
fitViewOptions: st,
|
|
2718
2655
|
onNodesDelete: A,
|
|
2719
2656
|
onEdgesDelete: j,
|
|
2720
2657
|
onDelete: M,
|
|
@@ -2723,111 +2660,176 @@ function ReactFlow({ nodes: n, edges: r, defaultNodes: a, defaultEdges: o, class
|
|
|
2723
2660
|
onNodeDragStop: k,
|
|
2724
2661
|
onSelectionDrag: F,
|
|
2725
2662
|
onSelectionDragStart: P,
|
|
2726
|
-
onSelectionDragStop:
|
|
2663
|
+
onSelectionDragStop: ee,
|
|
2727
2664
|
onMove: m,
|
|
2728
2665
|
onMoveStart: h,
|
|
2729
2666
|
onMoveEnd: g,
|
|
2730
|
-
noPanClassName:
|
|
2731
|
-
nodeOrigin:
|
|
2732
|
-
rfId:
|
|
2733
|
-
autoPanOnConnect:
|
|
2734
|
-
autoPanOnNodeDrag:
|
|
2735
|
-
autoPanSpeed:
|
|
2736
|
-
onError:
|
|
2737
|
-
connectionRadius:
|
|
2738
|
-
isValidConnection:
|
|
2739
|
-
selectNodesOnDrag:
|
|
2740
|
-
nodeDragThreshold:
|
|
2741
|
-
connectionDragThreshold:
|
|
2742
|
-
onBeforeDelete:
|
|
2743
|
-
debug:
|
|
2744
|
-
ariaLabelConfig:
|
|
2745
|
-
zIndexMode:
|
|
2667
|
+
noPanClassName: it,
|
|
2668
|
+
nodeOrigin: be,
|
|
2669
|
+
rfId: It,
|
|
2670
|
+
autoPanOnConnect: ht,
|
|
2671
|
+
autoPanOnNodeDrag: gt,
|
|
2672
|
+
autoPanSpeed: _t,
|
|
2673
|
+
onError: bt,
|
|
2674
|
+
connectionRadius: vt,
|
|
2675
|
+
isValidConnection: yt,
|
|
2676
|
+
selectNodesOnDrag: he,
|
|
2677
|
+
nodeDragThreshold: Ct,
|
|
2678
|
+
connectionDragThreshold: wt,
|
|
2679
|
+
onBeforeDelete: z,
|
|
2680
|
+
debug: At,
|
|
2681
|
+
ariaLabelConfig: Mt,
|
|
2682
|
+
zIndexMode: Nt
|
|
2683
|
+
}),
|
|
2684
|
+
Y(Cr, {
|
|
2685
|
+
onInit: p,
|
|
2686
|
+
onNodeClick: d,
|
|
2687
|
+
onEdgeClick: f,
|
|
2688
|
+
onNodeMouseEnter: S,
|
|
2689
|
+
onNodeMouseMove: C,
|
|
2690
|
+
onNodeMouseLeave: w,
|
|
2691
|
+
onNodeContextMenu: T,
|
|
2692
|
+
onNodeDoubleClick: E,
|
|
2693
|
+
nodeTypes: l,
|
|
2694
|
+
edgeTypes: u,
|
|
2695
|
+
connectionLineType: V,
|
|
2696
|
+
connectionLineStyle: H,
|
|
2697
|
+
connectionLineComponent: te,
|
|
2698
|
+
connectionLineContainerStyle: re,
|
|
2699
|
+
selectionKeyCode: ae,
|
|
2700
|
+
selectionOnDrag: oe,
|
|
2701
|
+
selectionMode: ce,
|
|
2702
|
+
deleteKeyCode: ie,
|
|
2703
|
+
multiSelectionKeyCode: ue,
|
|
2704
|
+
panActivationKeyCode: le,
|
|
2705
|
+
zoomActivationKeyCode: de,
|
|
2706
|
+
onlyRenderVisibleElements: me,
|
|
2707
|
+
defaultViewport: we,
|
|
2708
|
+
translateExtent: G,
|
|
2709
|
+
minZoom: U,
|
|
2710
|
+
maxZoom: Te,
|
|
2711
|
+
preventScrolling: Ee,
|
|
2712
|
+
zoomOnScroll: J,
|
|
2713
|
+
zoomOnPinch: De,
|
|
2714
|
+
zoomOnDoubleClick: Z,
|
|
2715
|
+
panOnScroll: Oe,
|
|
2716
|
+
panOnScrollSpeed: ke,
|
|
2717
|
+
panOnScrollMode: Ae,
|
|
2718
|
+
panOnDrag: je,
|
|
2719
|
+
onPaneClick: Me,
|
|
2720
|
+
onPaneMouseEnter: Ne,
|
|
2721
|
+
onPaneMouseMove: Q,
|
|
2722
|
+
onPaneMouseLeave: $,
|
|
2723
|
+
onPaneScroll: Pe,
|
|
2724
|
+
onPaneContextMenu: Fe,
|
|
2725
|
+
paneClickDistance: Ie,
|
|
2726
|
+
nodeClickDistance: Le,
|
|
2727
|
+
onSelectionContextMenu: I,
|
|
2728
|
+
onSelectionStart: L,
|
|
2729
|
+
onSelectionEnd: R,
|
|
2730
|
+
onReconnect: ze,
|
|
2731
|
+
onReconnectStart: Be,
|
|
2732
|
+
onReconnectEnd: Ve,
|
|
2733
|
+
onEdgeContextMenu: Ue,
|
|
2734
|
+
onEdgeDoubleClick: Ge,
|
|
2735
|
+
onEdgeMouseEnter: Ke,
|
|
2736
|
+
onEdgeMouseMove: qe,
|
|
2737
|
+
onEdgeMouseLeave: Je,
|
|
2738
|
+
reconnectRadius: Ye,
|
|
2739
|
+
defaultMarkerColor: q,
|
|
2740
|
+
noDragClassName: tt,
|
|
2741
|
+
noWheelClassName: nt,
|
|
2742
|
+
noPanClassName: it,
|
|
2743
|
+
rfId: It,
|
|
2744
|
+
disableKeyboardA11y: mt,
|
|
2745
|
+
nodeExtent: K,
|
|
2746
|
+
viewport: Tt,
|
|
2747
|
+
onViewportChange: Et
|
|
2746
2748
|
}),
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
proOptions:
|
|
2751
|
-
position:
|
|
2749
|
+
Y(Xe, { onSelectionChange: N }),
|
|
2750
|
+
Re,
|
|
2751
|
+
Y(We, {
|
|
2752
|
+
proOptions: ut,
|
|
2753
|
+
position: lt
|
|
2752
2754
|
}),
|
|
2753
|
-
|
|
2754
|
-
rfId:
|
|
2755
|
-
disableKeyboardA11y:
|
|
2755
|
+
Y(He, {
|
|
2756
|
+
rfId: It,
|
|
2757
|
+
disableKeyboardA11y: mt
|
|
2756
2758
|
})
|
|
2757
2759
|
]
|
|
2758
2760
|
})
|
|
2759
2761
|
});
|
|
2760
2762
|
}
|
|
2761
|
-
var
|
|
2762
|
-
function
|
|
2763
|
-
let t =
|
|
2764
|
-
return t ?
|
|
2763
|
+
var Ar = xt(kr), jr = (e) => e.domNode?.querySelector(".react-flow__edgelabel-renderer");
|
|
2764
|
+
function Mr({ children: e }) {
|
|
2765
|
+
let t = Q(jr);
|
|
2766
|
+
return t ? Oe(e, t) : null;
|
|
2765
2767
|
}
|
|
2766
|
-
function
|
|
2767
|
-
let [t, n] =
|
|
2768
|
+
function Nr(e) {
|
|
2769
|
+
let [t, n] = J(e);
|
|
2768
2770
|
return [
|
|
2769
2771
|
t,
|
|
2770
2772
|
n,
|
|
2771
|
-
|
|
2773
|
+
W((e) => n((t) => pt(e, t)), [])
|
|
2772
2774
|
];
|
|
2773
2775
|
}
|
|
2774
|
-
function
|
|
2775
|
-
let [t, n] =
|
|
2776
|
+
function Pr(e) {
|
|
2777
|
+
let [t, n] = J(e);
|
|
2776
2778
|
return [
|
|
2777
2779
|
t,
|
|
2778
2780
|
n,
|
|
2779
|
-
|
|
2781
|
+
W((e) => n((t) => mt(e, t)), [])
|
|
2780
2782
|
];
|
|
2781
2783
|
}
|
|
2782
|
-
|
|
2783
|
-
function
|
|
2784
|
-
return
|
|
2784
|
+
x.error014();
|
|
2785
|
+
function Fr({ dimensions: t, lineWidth: n, variant: r, className: i }) {
|
|
2786
|
+
return Y("path", {
|
|
2785
2787
|
strokeWidth: n,
|
|
2786
2788
|
d: `M${t[0] / 2} 0 V${t[1]} M0 ${t[1] / 2} H${t[0]}`,
|
|
2787
|
-
className:
|
|
2789
|
+
className: e([
|
|
2788
2790
|
"react-flow__background-pattern",
|
|
2789
2791
|
r,
|
|
2790
2792
|
i
|
|
2791
2793
|
])
|
|
2792
2794
|
});
|
|
2793
2795
|
}
|
|
2794
|
-
function
|
|
2795
|
-
return
|
|
2796
|
+
function Ir({ radius: t, className: n }) {
|
|
2797
|
+
return Y("circle", {
|
|
2796
2798
|
cx: t,
|
|
2797
2799
|
cy: t,
|
|
2798
2800
|
r: t,
|
|
2799
|
-
className:
|
|
2801
|
+
className: e([
|
|
2800
2802
|
"react-flow__background-pattern",
|
|
2801
2803
|
"dots",
|
|
2802
2804
|
n
|
|
2803
2805
|
])
|
|
2804
2806
|
});
|
|
2805
2807
|
}
|
|
2806
|
-
var
|
|
2808
|
+
var Lr;
|
|
2807
2809
|
(function(e) {
|
|
2808
2810
|
e.Lines = "lines", e.Dots = "dots", e.Cross = "cross";
|
|
2809
|
-
})(
|
|
2810
|
-
var
|
|
2811
|
-
[
|
|
2812
|
-
[
|
|
2813
|
-
[
|
|
2814
|
-
},
|
|
2811
|
+
})(Lr ||= {});
|
|
2812
|
+
var Rr = {
|
|
2813
|
+
[Lr.Dots]: 1,
|
|
2814
|
+
[Lr.Lines]: 1,
|
|
2815
|
+
[Lr.Cross]: 6
|
|
2816
|
+
}, zr = (e) => ({
|
|
2815
2817
|
transform: e.transform,
|
|
2816
2818
|
patternId: `pattern-${e.rfId}`
|
|
2817
2819
|
});
|
|
2818
|
-
function
|
|
2819
|
-
let f =
|
|
2820
|
-
return
|
|
2821
|
-
className:
|
|
2820
|
+
function Br({ id: t, variant: n = Lr.Dots, gap: r = 20, size: i, lineWidth: a = 1, offset: o = 0, color: s, bgColor: c, style: l, className: u, patternClassName: d }) {
|
|
2821
|
+
let f = q(null), { transform: p, patternId: m } = Q(zr, Z), h = i || Rr[n], g = n === Lr.Dots, _ = n === Lr.Cross, v = Array.isArray(r) ? r : [r, r], y = [v[0] * p[2] || 1, v[1] * p[2] || 1], b = h * p[2], x = Array.isArray(o) ? o : [o, o], S = _ ? [b, b] : y, C = [x[0] * p[2] || 1 + S[0] / 2, x[1] * p[2] || 1 + S[1] / 2], w = `${m}${t || ""}`;
|
|
2822
|
+
return X("svg", {
|
|
2823
|
+
className: e(["react-flow__background", u]),
|
|
2822
2824
|
style: {
|
|
2823
2825
|
...l,
|
|
2824
|
-
...
|
|
2826
|
+
...Nt,
|
|
2825
2827
|
"--xy-background-color-props": c,
|
|
2826
2828
|
"--xy-background-pattern-color-props": s
|
|
2827
2829
|
},
|
|
2828
2830
|
ref: f,
|
|
2829
2831
|
"data-testid": "rf__background",
|
|
2830
|
-
children: [
|
|
2832
|
+
children: [Y("pattern", {
|
|
2831
2833
|
id: w,
|
|
2832
2834
|
x: p[0] % y[0],
|
|
2833
2835
|
y: p[1] % y[1],
|
|
@@ -2835,16 +2837,16 @@ function BackgroundComponent({ id: t, variant: n = BackgroundVariant.Dots, gap:
|
|
|
2835
2837
|
height: y[1],
|
|
2836
2838
|
patternUnits: "userSpaceOnUse",
|
|
2837
2839
|
patternTransform: `translate(-${C[0]},-${C[1]})`,
|
|
2838
|
-
children: g ?
|
|
2840
|
+
children: g ? Y(Ir, {
|
|
2839
2841
|
radius: b / 2,
|
|
2840
2842
|
className: d
|
|
2841
|
-
}) :
|
|
2843
|
+
}) : Y(Fr, {
|
|
2842
2844
|
dimensions: S,
|
|
2843
2845
|
lineWidth: a,
|
|
2844
2846
|
variant: n,
|
|
2845
2847
|
className: d
|
|
2846
2848
|
})
|
|
2847
|
-
}),
|
|
2849
|
+
}), Y("rect", {
|
|
2848
2850
|
x: "0",
|
|
2849
2851
|
y: "0",
|
|
2850
2852
|
width: "100%",
|
|
@@ -2853,73 +2855,61 @@ function BackgroundComponent({ id: t, variant: n = BackgroundVariant.Dots, gap:
|
|
|
2853
2855
|
})]
|
|
2854
2856
|
});
|
|
2855
2857
|
}
|
|
2856
|
-
|
|
2857
|
-
var
|
|
2858
|
-
function
|
|
2859
|
-
return
|
|
2858
|
+
Br.displayName = "Background";
|
|
2859
|
+
var Vr = U(Br);
|
|
2860
|
+
function Hr() {
|
|
2861
|
+
return Y("svg", {
|
|
2860
2862
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2861
2863
|
viewBox: "0 0 32 32",
|
|
2862
|
-
children:
|
|
2864
|
+
children: Y("path", { d: "M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z" })
|
|
2863
2865
|
});
|
|
2864
2866
|
}
|
|
2865
|
-
function
|
|
2866
|
-
return
|
|
2867
|
+
function Ur() {
|
|
2868
|
+
return Y("svg", {
|
|
2867
2869
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2868
2870
|
viewBox: "0 0 32 5",
|
|
2869
|
-
children:
|
|
2871
|
+
children: Y("path", { d: "M0 0h32v4.2H0z" })
|
|
2870
2872
|
});
|
|
2871
2873
|
}
|
|
2872
|
-
function
|
|
2873
|
-
return
|
|
2874
|
+
function Wr() {
|
|
2875
|
+
return Y("svg", {
|
|
2874
2876
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2875
2877
|
viewBox: "0 0 32 30",
|
|
2876
|
-
children:
|
|
2878
|
+
children: Y("path", { d: "M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z" })
|
|
2877
2879
|
});
|
|
2878
2880
|
}
|
|
2879
|
-
function
|
|
2880
|
-
return
|
|
2881
|
+
function Gr() {
|
|
2882
|
+
return Y("svg", {
|
|
2881
2883
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2882
2884
|
viewBox: "0 0 25 32",
|
|
2883
|
-
children:
|
|
2885
|
+
children: Y("path", { d: "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z" })
|
|
2884
2886
|
});
|
|
2885
2887
|
}
|
|
2886
|
-
function
|
|
2887
|
-
return
|
|
2888
|
+
function Kr() {
|
|
2889
|
+
return Y("svg", {
|
|
2888
2890
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2889
2891
|
viewBox: "0 0 25 32",
|
|
2890
|
-
children:
|
|
2892
|
+
children: Y("path", { d: "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z" })
|
|
2891
2893
|
});
|
|
2892
2894
|
}
|
|
2893
|
-
function
|
|
2894
|
-
return
|
|
2895
|
+
function qr({ children: t, className: n, ...r }) {
|
|
2896
|
+
return Y("button", {
|
|
2895
2897
|
type: "button",
|
|
2896
|
-
className:
|
|
2898
|
+
className: e(["react-flow__controls-button", n]),
|
|
2897
2899
|
...r,
|
|
2898
2900
|
children: t
|
|
2899
2901
|
});
|
|
2900
2902
|
}
|
|
2901
|
-
var
|
|
2903
|
+
var Jr = (e) => ({
|
|
2902
2904
|
isInteractive: e.nodesDraggable || e.nodesConnectable || e.elementsSelectable,
|
|
2903
2905
|
minZoomReached: e.transform[2] <= e.minZoom,
|
|
2904
2906
|
maxZoomReached: e.transform[2] >= e.maxZoom,
|
|
2905
2907
|
ariaLabelConfig: e.ariaLabelConfig
|
|
2906
2908
|
});
|
|
2907
|
-
function
|
|
2908
|
-
let h =
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
x(), s?.();
|
|
2912
|
-
}, T = () => {
|
|
2913
|
-
S(a), c?.();
|
|
2914
|
-
}, E = () => {
|
|
2915
|
-
h.setState({
|
|
2916
|
-
nodesDraggable: !g,
|
|
2917
|
-
nodesConnectable: !g,
|
|
2918
|
-
elementsSelectable: !g
|
|
2919
|
-
}), l?.(!g);
|
|
2920
|
-
};
|
|
2921
|
-
return jsxs(Panel, {
|
|
2922
|
-
className: cc([
|
|
2909
|
+
function Yr({ style: t, showZoom: n = !0, showFitView: r = !0, showInteractive: i = !0, fitViewOptions: a, onZoomIn: o, onZoomOut: s, onFitView: c, onInteractiveChange: l, className: u, children: d, position: f = "bottom-left", orientation: p = "vertical", "aria-label": m }) {
|
|
2910
|
+
let h = $(), { isInteractive: g, minZoomReached: _, maxZoomReached: v, ariaLabelConfig: y } = Q(Jr, Z), { zoomIn: b, zoomOut: x, fitView: S } = Ot();
|
|
2911
|
+
return X(Ue, {
|
|
2912
|
+
className: e([
|
|
2923
2913
|
"react-flow__controls",
|
|
2924
2914
|
p === "horizontal" ? "horizontal" : "vertical",
|
|
2925
2915
|
u
|
|
@@ -2929,45 +2919,57 @@ function ControlsComponent({ style: t, showZoom: n = !0, showFitView: r = !0, sh
|
|
|
2929
2919
|
"data-testid": "rf__controls",
|
|
2930
2920
|
"aria-label": m ?? y["controls.ariaLabel"],
|
|
2931
2921
|
children: [
|
|
2932
|
-
n &&
|
|
2933
|
-
onClick:
|
|
2922
|
+
n && X(De, { children: [Y(qr, {
|
|
2923
|
+
onClick: () => {
|
|
2924
|
+
b(), o?.();
|
|
2925
|
+
},
|
|
2934
2926
|
className: "react-flow__controls-zoomin",
|
|
2935
2927
|
title: y["controls.zoomIn.ariaLabel"],
|
|
2936
2928
|
"aria-label": y["controls.zoomIn.ariaLabel"],
|
|
2937
2929
|
disabled: v,
|
|
2938
|
-
children:
|
|
2939
|
-
}),
|
|
2940
|
-
onClick:
|
|
2930
|
+
children: Y(Hr, {})
|
|
2931
|
+
}), Y(qr, {
|
|
2932
|
+
onClick: () => {
|
|
2933
|
+
x(), s?.();
|
|
2934
|
+
},
|
|
2941
2935
|
className: "react-flow__controls-zoomout",
|
|
2942
2936
|
title: y["controls.zoomOut.ariaLabel"],
|
|
2943
2937
|
"aria-label": y["controls.zoomOut.ariaLabel"],
|
|
2944
2938
|
disabled: _,
|
|
2945
|
-
children:
|
|
2939
|
+
children: Y(Ur, {})
|
|
2946
2940
|
})] }),
|
|
2947
|
-
r &&
|
|
2941
|
+
r && Y(qr, {
|
|
2948
2942
|
className: "react-flow__controls-fitview",
|
|
2949
|
-
onClick:
|
|
2943
|
+
onClick: () => {
|
|
2944
|
+
S(a), c?.();
|
|
2945
|
+
},
|
|
2950
2946
|
title: y["controls.fitView.ariaLabel"],
|
|
2951
2947
|
"aria-label": y["controls.fitView.ariaLabel"],
|
|
2952
|
-
children:
|
|
2948
|
+
children: Y(Wr, {})
|
|
2953
2949
|
}),
|
|
2954
|
-
i &&
|
|
2950
|
+
i && Y(qr, {
|
|
2955
2951
|
className: "react-flow__controls-interactive",
|
|
2956
|
-
onClick:
|
|
2952
|
+
onClick: () => {
|
|
2953
|
+
h.setState({
|
|
2954
|
+
nodesDraggable: !g,
|
|
2955
|
+
nodesConnectable: !g,
|
|
2956
|
+
elementsSelectable: !g
|
|
2957
|
+
}), l?.(!g);
|
|
2958
|
+
},
|
|
2957
2959
|
title: y["controls.interactive.ariaLabel"],
|
|
2958
2960
|
"aria-label": y["controls.interactive.ariaLabel"],
|
|
2959
|
-
children:
|
|
2961
|
+
children: Y(g ? Kr : Gr, {})
|
|
2960
2962
|
}),
|
|
2961
2963
|
d
|
|
2962
2964
|
]
|
|
2963
2965
|
});
|
|
2964
2966
|
}
|
|
2965
|
-
|
|
2966
|
-
var
|
|
2967
|
-
function
|
|
2967
|
+
Yr.displayName = "Controls";
|
|
2968
|
+
var Xr = U(Yr);
|
|
2969
|
+
function Zr({ id: t, x: n, y: r, width: i, height: a, style: o, color: s, strokeColor: c, strokeWidth: l, className: u, borderRadius: d, shapeRendering: f, selected: p, onClick: m }) {
|
|
2968
2970
|
let { background: h, backgroundColor: g } = o || {}, _ = s || h || g;
|
|
2969
|
-
return
|
|
2970
|
-
className:
|
|
2971
|
+
return Y("rect", {
|
|
2972
|
+
className: e([
|
|
2971
2973
|
"react-flow__minimap-node",
|
|
2972
2974
|
{ selected: p },
|
|
2973
2975
|
u
|
|
@@ -2987,10 +2989,10 @@ function MiniMapNodeComponent({ id: t, x: n, y: r, width: i, height: a, style: o
|
|
|
2987
2989
|
onClick: m ? (e) => m(e, t) : void 0
|
|
2988
2990
|
});
|
|
2989
2991
|
}
|
|
2990
|
-
var
|
|
2991
|
-
function
|
|
2992
|
-
let s =
|
|
2993
|
-
return
|
|
2992
|
+
var Qr = U(Zr), $r = (e) => e.nodes.map((e) => e.id), ei = (e) => e instanceof Function ? e : () => e;
|
|
2993
|
+
function ti({ nodeStrokeColor: e, nodeColor: t, nodeClassName: n = "", nodeBorderRadius: r = 5, nodeStrokeWidth: i, nodeComponent: a = Qr, onClick: o }) {
|
|
2994
|
+
let s = Q($r, Z), c = ei(t), l = ei(e), u = ei(n), d = typeof window > "u" || window.chrome ? "crispEdges" : "geometricPrecision";
|
|
2995
|
+
return Y(De, { children: s.map((e) => Y(ri, {
|
|
2994
2996
|
id: e,
|
|
2995
2997
|
nodeColorFunc: c,
|
|
2996
2998
|
nodeStrokeColorFunc: l,
|
|
@@ -3002,8 +3004,8 @@ function MiniMapNodes({ nodeStrokeColor: e, nodeColor: t, nodeClassName: n = "",
|
|
|
3002
3004
|
shapeRendering: d
|
|
3003
3005
|
}, e)) });
|
|
3004
3006
|
}
|
|
3005
|
-
function
|
|
3006
|
-
let { node: l, x: u, y: d, width: f, height: p } =
|
|
3007
|
+
function ni({ id: e, nodeColorFunc: t, nodeStrokeColorFunc: n, nodeClassNameFunc: r, nodeBorderRadius: i, nodeStrokeWidth: a, shapeRendering: o, NodeComponent: s, onClick: c }) {
|
|
3008
|
+
let { node: l, x: u, y: d, width: f, height: p } = Q((t) => {
|
|
3007
3009
|
let n = t.nodeLookup.get(e);
|
|
3008
3010
|
if (!n) return {
|
|
3009
3011
|
node: void 0,
|
|
@@ -3012,7 +3014,7 @@ function NodeComponentWrapperInner({ id: e, nodeColorFunc: t, nodeStrokeColorFun
|
|
|
3012
3014
|
width: 0,
|
|
3013
3015
|
height: 0
|
|
3014
3016
|
};
|
|
3015
|
-
let r = n.internals.userNode, { x: i, y: a } = n.internals.positionAbsolute, { width: o, height: s } =
|
|
3017
|
+
let r = n.internals.userNode, { x: i, y: a } = n.internals.positionAbsolute, { width: o, height: s } = I(r);
|
|
3016
3018
|
return {
|
|
3017
3019
|
node: r,
|
|
3018
3020
|
x: i,
|
|
@@ -3020,8 +3022,8 @@ function NodeComponentWrapperInner({ id: e, nodeColorFunc: t, nodeStrokeColorFun
|
|
|
3020
3022
|
width: o,
|
|
3021
3023
|
height: s
|
|
3022
3024
|
};
|
|
3023
|
-
},
|
|
3024
|
-
return !l || l.hidden || !
|
|
3025
|
+
}, Z);
|
|
3026
|
+
return !l || l.hidden || !pe(l) ? null : Y(s, {
|
|
3025
3027
|
x: u,
|
|
3026
3028
|
y: d,
|
|
3027
3029
|
width: f,
|
|
@@ -3038,7 +3040,7 @@ function NodeComponentWrapperInner({ id: e, nodeColorFunc: t, nodeStrokeColorFun
|
|
|
3038
3040
|
id: l.id
|
|
3039
3041
|
});
|
|
3040
3042
|
}
|
|
3041
|
-
var
|
|
3043
|
+
var ri = U(ni), ii = U(ti), ai = 200, oi = 150, si = (e) => !e.hidden, ci = (e) => {
|
|
3042
3044
|
let t = {
|
|
3043
3045
|
x: -e.transform[0] / e.transform[2],
|
|
3044
3046
|
y: -e.transform[1] / e.transform[2],
|
|
@@ -3047,7 +3049,7 @@ var NodeComponentWrapper = memo(NodeComponentWrapperInner), MiniMapNodes$1 = mem
|
|
|
3047
3049
|
};
|
|
3048
3050
|
return {
|
|
3049
3051
|
viewBB: t,
|
|
3050
|
-
boundingRect: e.nodeLookup.size > 0 ?
|
|
3052
|
+
boundingRect: e.nodeLookup.size > 0 ? E(F(e.nodeLookup, { filter: si }), t) : t,
|
|
3051
3053
|
rfId: e.rfId,
|
|
3052
3054
|
panZoom: e.panZoom,
|
|
3053
3055
|
translateExtent: e.translateExtent,
|
|
@@ -3055,20 +3057,20 @@ var NodeComponentWrapper = memo(NodeComponentWrapperInner), MiniMapNodes$1 = mem
|
|
|
3055
3057
|
flowHeight: e.height,
|
|
3056
3058
|
ariaLabelConfig: e.ariaLabelConfig
|
|
3057
3059
|
};
|
|
3058
|
-
},
|
|
3059
|
-
function
|
|
3060
|
-
let C =
|
|
3061
|
-
|
|
3062
|
-
if (w.current && O) return
|
|
3060
|
+
}, li = "react-flow__minimap-desc";
|
|
3061
|
+
function ui({ style: t, className: n, nodeStrokeColor: r, nodeColor: i, nodeClassName: a = "", nodeBorderRadius: o = 5, nodeStrokeWidth: s, nodeComponent: c, bgColor: l, maskColor: d, maskStrokeColor: f, maskStrokeWidth: p, position: m = "bottom-right", onClick: h, onNodeClick: g, pannable: _ = !1, zoomable: v = !1, ariaLabel: y, inversePan: b, zoomStep: x = 1, offsetScale: S = 5 }) {
|
|
3062
|
+
let C = $(), w = q(null), { boundingRect: T, viewBB: E, rfId: D, panZoom: O, translateExtent: k, flowWidth: A, flowHeight: j, ariaLabelConfig: M } = Q(ci, Z), N = t?.width ?? ai, P = t?.height ?? oi, F = T.width / N, ee = T.height / P, I = Math.max(F, ee), L = I * N, R = I * P, z = S * I, B = T.x - (L - T.width) / 2 - z, V = T.y - (R - T.height) / 2 - z, H = L + z * 2, te = R + z * 2, ne = `${li}-${D}`, re = q(0), ie = q();
|
|
3063
|
+
re.current = I, G(() => {
|
|
3064
|
+
if (w.current && O) return ie.current = u({
|
|
3063
3065
|
domNode: w.current,
|
|
3064
3066
|
panZoom: O,
|
|
3065
3067
|
getTransform: () => C.getState().transform,
|
|
3066
|
-
getViewScale: () =>
|
|
3068
|
+
getViewScale: () => re.current
|
|
3067
3069
|
}), () => {
|
|
3068
|
-
|
|
3070
|
+
ie.current?.destroy();
|
|
3069
3071
|
};
|
|
3070
|
-
}, [O]),
|
|
3071
|
-
|
|
3072
|
+
}, [O]), G(() => {
|
|
3073
|
+
ie.current?.update({
|
|
3072
3074
|
translateExtent: k,
|
|
3073
3075
|
width: A,
|
|
3074
3076
|
height: j,
|
|
@@ -3086,46 +3088,46 @@ function MiniMapComponent({ style: t, className: n, nodeStrokeColor: r, nodeColo
|
|
|
3086
3088
|
A,
|
|
3087
3089
|
j
|
|
3088
3090
|
]);
|
|
3089
|
-
let
|
|
3090
|
-
let [t, n] =
|
|
3091
|
+
let ae = h ? (e) => {
|
|
3092
|
+
let [t, n] = ie.current?.pointer(e) || [0, 0];
|
|
3091
3093
|
h(e, {
|
|
3092
3094
|
x: t,
|
|
3093
3095
|
y: n
|
|
3094
3096
|
});
|
|
3095
|
-
} : void 0,
|
|
3097
|
+
} : void 0, oe = g ? W((e, t) => {
|
|
3096
3098
|
let n = C.getState().nodeLookup.get(t).internals.userNode;
|
|
3097
3099
|
g(e, n);
|
|
3098
|
-
}, []) : void 0,
|
|
3099
|
-
return
|
|
3100
|
+
}, []) : void 0, se = y ?? M["minimap.ariaLabel"];
|
|
3101
|
+
return Y(Ue, {
|
|
3100
3102
|
position: m,
|
|
3101
3103
|
style: {
|
|
3102
3104
|
...t,
|
|
3103
3105
|
"--xy-minimap-background-color-props": typeof l == "string" ? l : void 0,
|
|
3104
3106
|
"--xy-minimap-mask-background-color-props": typeof d == "string" ? d : void 0,
|
|
3105
3107
|
"--xy-minimap-mask-stroke-color-props": typeof f == "string" ? f : void 0,
|
|
3106
|
-
"--xy-minimap-mask-stroke-width-props": typeof p == "number" ? p *
|
|
3108
|
+
"--xy-minimap-mask-stroke-width-props": typeof p == "number" ? p * I : void 0,
|
|
3107
3109
|
"--xy-minimap-node-background-color-props": typeof i == "string" ? i : void 0,
|
|
3108
3110
|
"--xy-minimap-node-stroke-color-props": typeof r == "string" ? r : void 0,
|
|
3109
3111
|
"--xy-minimap-node-stroke-width-props": typeof s == "number" ? s : void 0
|
|
3110
3112
|
},
|
|
3111
|
-
className:
|
|
3113
|
+
className: e(["react-flow__minimap", n]),
|
|
3112
3114
|
"data-testid": "rf__minimap",
|
|
3113
|
-
children:
|
|
3115
|
+
children: X("svg", {
|
|
3114
3116
|
width: N,
|
|
3115
3117
|
height: P,
|
|
3116
|
-
viewBox: `${
|
|
3118
|
+
viewBox: `${B} ${V} ${H} ${te}`,
|
|
3117
3119
|
className: "react-flow__minimap-svg",
|
|
3118
3120
|
role: "img",
|
|
3119
|
-
"aria-labelledby":
|
|
3121
|
+
"aria-labelledby": ne,
|
|
3120
3122
|
ref: w,
|
|
3121
|
-
onClick:
|
|
3123
|
+
onClick: ae,
|
|
3122
3124
|
children: [
|
|
3123
|
-
|
|
3124
|
-
id:
|
|
3125
|
-
children:
|
|
3125
|
+
se && Y("title", {
|
|
3126
|
+
id: ne,
|
|
3127
|
+
children: se
|
|
3126
3128
|
}),
|
|
3127
|
-
|
|
3128
|
-
onClick:
|
|
3129
|
+
Y(ii, {
|
|
3130
|
+
onClick: oe,
|
|
3129
3131
|
nodeColor: i,
|
|
3130
3132
|
nodeStrokeColor: r,
|
|
3131
3133
|
nodeBorderRadius: o,
|
|
@@ -3133,9 +3135,9 @@ function MiniMapComponent({ style: t, className: n, nodeStrokeColor: r, nodeColo
|
|
|
3133
3135
|
nodeStrokeWidth: s,
|
|
3134
3136
|
nodeComponent: c
|
|
3135
3137
|
}),
|
|
3136
|
-
|
|
3138
|
+
Y("path", {
|
|
3137
3139
|
className: "react-flow__minimap-mask",
|
|
3138
|
-
d: `M${
|
|
3140
|
+
d: `M${B - z},${V - z}h${H + z * 2}v${te + z * 2}h${-H - z * 2}z
|
|
3139
3141
|
M${E.x},${E.y}h${E.width}v${E.height}h${-E.width}z`,
|
|
3140
3142
|
fillRule: "evenodd",
|
|
3141
3143
|
pointerEvents: "none"
|
|
@@ -3144,15 +3146,15 @@ function MiniMapComponent({ style: t, className: n, nodeStrokeColor: r, nodeColo
|
|
|
3144
3146
|
})
|
|
3145
3147
|
});
|
|
3146
3148
|
}
|
|
3147
|
-
|
|
3148
|
-
var
|
|
3149
|
-
[
|
|
3150
|
-
[
|
|
3149
|
+
ui.displayName = "MiniMap", U(ui);
|
|
3150
|
+
var di = (e) => (t) => e ? `${Math.max(1 / t.transform[2], 1)}` : void 0, fi = {
|
|
3151
|
+
[o.Line]: "right",
|
|
3152
|
+
[o.Handle]: "bottom-right"
|
|
3151
3153
|
};
|
|
3152
|
-
function
|
|
3153
|
-
let x =
|
|
3154
|
-
return
|
|
3155
|
-
if (!(!T.current || !C)) return O.current ||=
|
|
3154
|
+
function pi({ nodeId: t, position: n, variant: r = o.Handle, className: i, style: a = void 0, children: s, color: c, minWidth: l = 10, minHeight: u = 10, maxWidth: d = Number.MAX_VALUE, maxHeight: p = Number.MAX_VALUE, keepAspectRatio: m = !1, resizeDirection: h, autoScale: g = !0, shouldResize: _, onResizeStart: v, onResize: y, onResizeEnd: b }) {
|
|
3155
|
+
let x = qt(), C = typeof t == "string" ? t : x, w = $(), T = q(null), E = r === o.Handle, D = Q(W(di(E && g), [E, g]), Z), O = q(null), k = n ?? fi[r];
|
|
3156
|
+
return G(() => {
|
|
3157
|
+
if (!(!T.current || !C)) return O.current ||= f({
|
|
3156
3158
|
domNode: T.current,
|
|
3157
3159
|
nodeId: C,
|
|
3158
3160
|
getStoreItems: () => {
|
|
@@ -3172,13 +3174,13 @@ function ResizeControl({ nodeId: t, position: n, variant: r = ResizeControlVaria
|
|
|
3172
3174
|
y: e.y
|
|
3173
3175
|
}, c = r.get(C);
|
|
3174
3176
|
if (c && c.expandParent && c.parentId) {
|
|
3175
|
-
let t = c.origin ?? a, n = e.width ?? c.measured.width ?? 0, l = e.height ?? c.measured.height ?? 0, u =
|
|
3177
|
+
let t = c.origin ?? a, n = e.width ?? c.measured.width ?? 0, l = e.height ?? c.measured.height ?? 0, u = te([{
|
|
3176
3178
|
id: c.id,
|
|
3177
3179
|
parentId: c.parentId,
|
|
3178
3180
|
rect: {
|
|
3179
3181
|
width: n,
|
|
3180
3182
|
height: l,
|
|
3181
|
-
...
|
|
3183
|
+
...S({
|
|
3182
3184
|
x: e.x ?? c.position.x,
|
|
3183
3185
|
y: e.y ?? c.position.y
|
|
3184
3186
|
}, {
|
|
@@ -3259,8 +3261,8 @@ function ResizeControl({ nodeId: t, position: n, variant: r = ResizeControlVaria
|
|
|
3259
3261
|
y,
|
|
3260
3262
|
b,
|
|
3261
3263
|
_
|
|
3262
|
-
]),
|
|
3263
|
-
className:
|
|
3264
|
+
]), Y("div", {
|
|
3265
|
+
className: e([
|
|
3264
3266
|
"react-flow__resize-control",
|
|
3265
3267
|
"nodrag",
|
|
3266
3268
|
...k.split("-"),
|
|
@@ -3276,5 +3278,6 @@ function ResizeControl({ nodeId: t, position: n, variant: r = ResizeControlVaria
|
|
|
3276
3278
|
children: s
|
|
3277
3279
|
});
|
|
3278
3280
|
}
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
+
U(pi);
|
|
3282
|
+
//#endregion
|
|
3283
|
+
export { Vr as Background, Lr as BackgroundVariant, Mn as BaseEdge, Xr as Controls, Mr as EdgeLabelRenderer, Zt as Handle, Er as ReactFlowProvider, Ar as index, Pr as useEdgesState, Nr as useNodesState, Ot as useReactFlow };
|