@burdenoff/microfe-vibecontrols 2026.511.1 → 2026.512.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 +2 -5
- package/dist/components/agent-manager/AgentManagerAdminBar.js +69 -61
- package/dist/components/agent-manager/AgentManagerAdminBar.js.map +1 -1
- package/dist/components/agent-manager/AgentManagerCenter.js +56 -50
- package/dist/components/agent-manager/AgentManagerCenter.js.map +1 -1
- package/dist/components/agent-manager/AgentManagerChatPane.js +87 -74
- package/dist/components/agent-manager/AgentManagerChatPane.js.map +1 -1
- package/dist/components/agent-manager/AgentManagerDetailPanel.js +5 -5
- package/dist/components/agent-manager/AgentManagerDetailPanel.js.map +1 -1
- package/dist/components/agent-manager/AgentManagerInputArea.js +159 -157
- package/dist/components/agent-manager/AgentManagerInputArea.js.map +1 -1
- package/dist/components/agent-manager/AgentManagerMessageItem.js +32 -28
- package/dist/components/agent-manager/AgentManagerMessageItem.js.map +1 -1
- package/dist/components/agent-manager/AgentManagerSessionItem.js +24 -24
- package/dist/components/agent-manager/AgentManagerSessionItem.js.map +1 -1
- package/dist/components/agent-manager/AgentManagerSessionList.js +32 -24
- package/dist/components/agent-manager/AgentManagerSessionList.js.map +1 -1
- package/dist/components/agent-manager/AgentManagerSidebar.js +3 -3
- package/dist/components/agent-manager/AgentManagerSidebar.js.map +1 -1
- package/dist/components/agent-manager/AgentManagerTabBar.js +2 -2
- package/dist/components/agent-manager/AgentManagerTabBar.js.map +1 -1
- package/dist/components/agent-manager/BridleConfigPanel.js +1 -1
- package/dist/components/agent-manager/BridleConfigPanel.js.map +1 -1
- package/dist/components/agent-manager/ProfilesPanel.js +260 -0
- package/dist/components/agent-manager/ProfilesPanel.js.map +1 -0
- package/dist/components/agent-manager/controls/ModelSelector.js +75 -58
- package/dist/components/agent-manager/controls/ModelSelector.js.map +1 -1
- package/dist/components/agent-manager/controls/SdkSelector.js +85 -61
- package/dist/components/agent-manager/controls/SdkSelector.js.map +1 -1
- package/dist/components/agent-manager/detail/SessionConfigPanel.js +2 -2
- package/dist/components/agent-manager/detail/SessionConfigPanel.js.map +1 -1
- package/dist/components/agent-manager/detail/SessionLogsPanel.js +1 -1
- package/dist/components/agent-manager/detail/SessionLogsPanel.js.map +1 -1
- package/dist/components/agent-manager/detail/SessionStatsPanel.js +1 -1
- package/dist/components/agent-manager/detail/SessionStatsPanel.js.map +1 -1
- package/dist/components/agent-manager/detail/SessionToolsPanel.js +1 -1
- package/dist/components/agent-manager/detail/SessionToolsPanel.js.map +1 -1
- package/dist/components/agent-manager/dialogs/ExportSessionDialog.js +1 -1
- package/dist/components/agent-manager/dialogs/ExportSessionDialog.js.map +1 -1
- package/dist/components/agent-manager/dialogs/NewSessionDialog.js +129 -108
- package/dist/components/agent-manager/dialogs/NewSessionDialog.js.map +1 -1
- package/dist/components/agent-manager/dialogs/SessionSearchDialog.js +1 -1
- package/dist/components/agent-manager/dialogs/SessionSearchDialog.js.map +1 -1
- package/dist/components/agent-manager/index.js +16 -0
- package/dist/components/agent-manager/modelDefaults.js +10 -0
- package/dist/components/agent-manager/modelDefaults.js.map +1 -0
- package/dist/components/agents/AgentCard.js +33 -30
- package/dist/components/agents/AgentCard.js.map +1 -1
- package/dist/components/agents/AgentForm.js +277 -239
- package/dist/components/agents/AgentForm.js.map +1 -1
- package/dist/components/agents/AgentStatusBadge.js +19 -8
- package/dist/components/agents/AgentStatusBadge.js.map +1 -1
- package/dist/components/agents/OpenInBrowserEditorButton.js +67 -65
- package/dist/components/agents/OpenInBrowserEditorButton.js.map +1 -1
- package/dist/components/agents/backup/AgentBackupTab.js +186 -185
- package/dist/components/agents/backup/AgentBackupTab.js.map +1 -1
- package/dist/components/ai/AIContextsTab.js +1 -1
- package/dist/components/ai/AIContextsTab.js.map +1 -1
- package/dist/components/ai/AIOverviewTab.js +2 -2
- package/dist/components/ai/AIOverviewTab.js.map +1 -1
- package/dist/components/ai/AIPlaygroundTab.js +97 -97
- package/dist/components/ai/AIPlaygroundTab.js.map +1 -1
- package/dist/components/ai/AIPromptsTab.js +4 -4
- package/dist/components/ai/AIPromptsTab.js.map +1 -1
- package/dist/components/ai/AIProviderCredentialsCard.js +234 -0
- package/dist/components/ai/AIProviderCredentialsCard.js.map +1 -0
- package/dist/components/ai/AISessionsTab.js +17 -1
- package/dist/components/ai/AISessionsTab.js.map +1 -1
- package/dist/components/ai/AIStatsTab.js +1 -1
- package/dist/components/ai/AIStatsTab.js.map +1 -1
- package/dist/components/ai/ClaudeCredentialsCard.js +1 -1
- package/dist/components/ai/ClaudeCredentialsCard.js.map +1 -1
- package/dist/components/ai/PluginHarnessPicker.js +84 -53
- package/dist/components/ai/PluginHarnessPicker.js.map +1 -1
- package/dist/components/aliases/AliasManager.js +386 -0
- package/dist/components/aliases/AliasManager.js.map +1 -0
- package/dist/components/aliases/aliasReservedNames.js +32 -0
- package/dist/components/aliases/aliasReservedNames.js.map +1 -0
- package/dist/components/gitops/CIDurationChart.js +11 -11
- package/dist/components/gitops/VibeGitOpsTab.js +128 -100
- package/dist/components/gitops/VibeGitOpsTab.js.map +1 -1
- package/dist/components/graph/AgentGraphView.js +61 -62
- package/dist/components/graph/AgentGraphView.js.map +1 -1
- package/dist/components/graph/AgentNode.js +17 -18
- package/dist/components/graph/AgentNode.js.map +1 -1
- package/dist/components/graph/TargetNode.js +31 -32
- package/dist/components/graph/TargetNode.js.map +1 -1
- package/dist/components/logs/LogViewer.js +121 -119
- package/dist/components/logs/LogViewer.js.map +1 -1
- package/dist/components/sessions/TerminalPanel.js +449 -458
- package/dist/components/sessions/TerminalPanel.js.map +1 -1
- package/dist/components/shared/AgentSelector.js +87 -67
- package/dist/components/shared/AgentSelector.js.map +1 -1
- package/dist/components/shared/AgentSetupBanner.js +64 -61
- package/dist/components/shared/AgentSetupBanner.js.map +1 -1
- package/dist/components/vibecalendar/expandOccurrences.js.map +1 -1
- package/dist/constants/pluginCatalog.js +29 -1
- package/dist/constants/pluginCatalog.js.map +1 -1
- package/dist/generated/wspace-operations.js +126 -103
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/hooks/useActiveAgentProfile.js +51 -0
- package/dist/hooks/useActiveAgentProfile.js.map +1 -0
- package/dist/hooks/useAgentEvents.js +1 -0
- package/dist/hooks/useAgentEvents.js.map +1 -1
- package/dist/hooks/useAgentManagerStreaming.js +1 -1
- package/dist/hooks/useAgentManagerStreaming.js.map +1 -1
- package/dist/hooks/useCachedInitialData.js +4 -2
- package/dist/hooks/useCachedInitialData.js.map +1 -1
- package/dist/hooks/usePluginAvailability.js +93 -61
- package/dist/hooks/usePluginAvailability.js.map +1 -1
- package/dist/index.js +10 -10
- package/dist/microfe-vibecontrols.css +1 -1
- package/dist/node_modules/d3-scale/src/continuous.js +20 -20
- package/dist/node_modules/d3-scale/src/diverging.js +30 -30
- package/dist/node_modules/d3-scale/src/sequential.js +25 -25
- package/dist/pages/AgentDetailsPage.js +801 -736
- package/dist/pages/AgentDetailsPage.js.map +1 -1
- package/dist/pages/AgentsLandingPage.js +4 -4
- package/dist/pages/AgentsLandingPage.js.map +1 -1
- package/dist/pages/AgentsPage.js +351 -295
- package/dist/pages/AgentsPage.js.map +1 -1
- package/dist/pages/SessionsPage.js +618 -615
- package/dist/pages/SessionsPage.js.map +1 -1
- package/dist/pages/TargetsPage.js +5 -2
- package/dist/pages/TargetsPage.js.map +1 -1
- package/dist/pages/VibeDetailsPage.js +582 -555
- package/dist/pages/VibeDetailsPage.js.map +1 -1
- package/dist/pages/ai/AIPage.js +107 -103
- package/dist/pages/ai/AIPage.js.map +1 -1
- package/dist/pages/ai/AISessionDetailPage.js +167 -163
- package/dist/pages/ai/AISessionDetailPage.js.map +1 -1
- package/dist/pages/ai/AgentManagerPage.js +94 -90
- package/dist/pages/ai/AgentManagerPage.js.map +1 -1
- package/dist/pages/tunnels/TunnelDetailsPage.js.map +1 -1
- package/dist/services/aiApi.js +119 -112
- package/dist/services/aiApi.js.map +1 -1
- package/dist/services/iframeToken.js +29 -0
- package/dist/services/iframeToken.js.map +1 -0
- package/dist/services/schedulerApi.js +14 -13
- package/dist/services/schedulerApi.js.map +1 -1
- package/dist/store/agentManagerStore.js +61 -14
- package/dist/store/agentManagerStore.js.map +1 -1
- package/dist/store/vibeControlsStore.js +21 -1
- package/dist/store/vibeControlsStore.js.map +1 -1
- package/dist/translations/en.js.map +1 -1
- package/dist/utils/agentApiPath.js +9 -0
- package/dist/utils/agentApiPath.js.map +1 -0
- package/package.json +3 -3
- package/dist/VibeControlsRoot.d.ts +0 -36
- package/dist/VibeControlsRoot.d.ts.map +0 -1
- package/dist/VibeControlsRoutes.d.ts +0 -2
- package/dist/VibeControlsRoutes.d.ts.map +0 -1
- package/dist/components/actions/ActionCard.d.ts +0 -32
- package/dist/components/actions/ActionCard.d.ts.map +0 -1
- package/dist/components/actions/ActionForm.d.ts +0 -39
- package/dist/components/actions/ActionForm.d.ts.map +0 -1
- package/dist/components/actions/ActionTypeBadge.d.ts +0 -9
- package/dist/components/actions/ActionTypeBadge.d.ts.map +0 -1
- package/dist/components/actions/ExecutionHistory.d.ts +0 -23
- package/dist/components/actions/ExecutionHistory.d.ts.map +0 -1
- package/dist/components/actions/index.d.ts +0 -6
- package/dist/components/actions/index.d.ts.map +0 -1
- package/dist/components/agent-manager/AgentManagerAdminBar.d.ts +0 -13
- package/dist/components/agent-manager/AgentManagerAdminBar.d.ts.map +0 -1
- package/dist/components/agent-manager/AgentManagerBulkActions.d.ts +0 -13
- package/dist/components/agent-manager/AgentManagerBulkActions.d.ts.map +0 -1
- package/dist/components/agent-manager/AgentManagerCenter.d.ts +0 -8
- package/dist/components/agent-manager/AgentManagerCenter.d.ts.map +0 -1
- package/dist/components/agent-manager/AgentManagerChatPane.d.ts +0 -9
- package/dist/components/agent-manager/AgentManagerChatPane.d.ts.map +0 -1
- package/dist/components/agent-manager/AgentManagerDetailPanel.d.ts +0 -13
- package/dist/components/agent-manager/AgentManagerDetailPanel.d.ts.map +0 -1
- package/dist/components/agent-manager/AgentManagerInputArea.d.ts +0 -14
- package/dist/components/agent-manager/AgentManagerInputArea.d.ts.map +0 -1
- package/dist/components/agent-manager/AgentManagerLayout.d.ts +0 -10
- package/dist/components/agent-manager/AgentManagerLayout.d.ts.map +0 -1
- package/dist/components/agent-manager/AgentManagerMessageItem.d.ts +0 -10
- package/dist/components/agent-manager/AgentManagerMessageItem.d.ts.map +0 -1
- package/dist/components/agent-manager/AgentManagerMessageList.d.ts +0 -12
- package/dist/components/agent-manager/AgentManagerMessageList.d.ts.map +0 -1
- package/dist/components/agent-manager/AgentManagerSessionItem.d.ts +0 -12
- package/dist/components/agent-manager/AgentManagerSessionItem.d.ts.map +0 -1
- package/dist/components/agent-manager/AgentManagerSessionList.d.ts +0 -16
- package/dist/components/agent-manager/AgentManagerSessionList.d.ts.map +0 -1
- package/dist/components/agent-manager/AgentManagerSidebar.d.ts +0 -14
- package/dist/components/agent-manager/AgentManagerSidebar.d.ts.map +0 -1
- package/dist/components/agent-manager/AgentManagerStreamingIndicator.d.ts +0 -8
- package/dist/components/agent-manager/AgentManagerStreamingIndicator.d.ts.map +0 -1
- package/dist/components/agent-manager/AgentManagerTab.d.ts +0 -15
- package/dist/components/agent-manager/AgentManagerTab.d.ts.map +0 -1
- package/dist/components/agent-manager/AgentManagerTabBar.d.ts +0 -10
- package/dist/components/agent-manager/AgentManagerTabBar.d.ts.map +0 -1
- package/dist/components/agent-manager/BridleConfigPanel.d.ts +0 -13
- package/dist/components/agent-manager/BridleConfigPanel.d.ts.map +0 -1
- package/dist/components/agent-manager/PluginInstallModal.d.ts +0 -9
- package/dist/components/agent-manager/PluginInstallModal.d.ts.map +0 -1
- package/dist/components/agent-manager/controls/ContextLevelToggle.d.ts +0 -23
- package/dist/components/agent-manager/controls/ContextLevelToggle.d.ts.map +0 -1
- package/dist/components/agent-manager/controls/FileAttachButton.d.ts +0 -13
- package/dist/components/agent-manager/controls/FileAttachButton.d.ts.map +0 -1
- package/dist/components/agent-manager/controls/McpServerSelector.d.ts +0 -10
- package/dist/components/agent-manager/controls/McpServerSelector.d.ts.map +0 -1
- package/dist/components/agent-manager/controls/ModelSelector.d.ts +0 -10
- package/dist/components/agent-manager/controls/ModelSelector.d.ts.map +0 -1
- package/dist/components/agent-manager/controls/SdkSelector.d.ts +0 -13
- package/dist/components/agent-manager/controls/SdkSelector.d.ts.map +0 -1
- package/dist/components/agent-manager/controls/VoiceToggle.d.ts +0 -13
- package/dist/components/agent-manager/controls/VoiceToggle.d.ts.map +0 -1
- package/dist/components/agent-manager/detail/SessionConfigPanel.d.ts +0 -14
- package/dist/components/agent-manager/detail/SessionConfigPanel.d.ts.map +0 -1
- package/dist/components/agent-manager/detail/SessionLogsPanel.d.ts +0 -13
- package/dist/components/agent-manager/detail/SessionLogsPanel.d.ts.map +0 -1
- package/dist/components/agent-manager/detail/SessionStatsPanel.d.ts +0 -12
- package/dist/components/agent-manager/detail/SessionStatsPanel.d.ts.map +0 -1
- package/dist/components/agent-manager/detail/SessionToolsPanel.d.ts +0 -12
- package/dist/components/agent-manager/detail/SessionToolsPanel.d.ts.map +0 -1
- package/dist/components/agent-manager/dialogs/ExportSessionDialog.d.ts +0 -15
- package/dist/components/agent-manager/dialogs/ExportSessionDialog.d.ts.map +0 -1
- package/dist/components/agent-manager/dialogs/NewSessionDialog.d.ts +0 -14
- package/dist/components/agent-manager/dialogs/NewSessionDialog.d.ts.map +0 -1
- package/dist/components/agent-manager/dialogs/RenameSessionDialog.d.ts +0 -15
- package/dist/components/agent-manager/dialogs/RenameSessionDialog.d.ts.map +0 -1
- package/dist/components/agent-manager/dialogs/SessionSearchDialog.d.ts +0 -15
- package/dist/components/agent-manager/dialogs/SessionSearchDialog.d.ts.map +0 -1
- package/dist/components/agent-manager/index.d.ts +0 -16
- package/dist/components/agent-manager/index.d.ts.map +0 -1
- package/dist/components/agents/AgentCard.d.ts +0 -30
- package/dist/components/agents/AgentCard.d.ts.map +0 -1
- package/dist/components/agents/AgentForm.d.ts +0 -29
- package/dist/components/agents/AgentForm.d.ts.map +0 -1
- package/dist/components/agents/AgentList.d.ts +0 -19
- package/dist/components/agents/AgentList.d.ts.map +0 -1
- package/dist/components/agents/AgentStatusBadge.d.ts +0 -12
- package/dist/components/agents/AgentStatusBadge.d.ts.map +0 -1
- package/dist/components/agents/OpenInBrowserEditorButton.d.ts +0 -16
- package/dist/components/agents/OpenInBrowserEditorButton.d.ts.map +0 -1
- package/dist/components/agents/PluginUIPanel.d.ts +0 -38
- package/dist/components/agents/PluginUIPanel.d.ts.map +0 -1
- package/dist/components/agents/backup/AgentBackupTab.d.ts +0 -11
- package/dist/components/agents/backup/AgentBackupTab.d.ts.map +0 -1
- package/dist/components/agents/index.d.ts +0 -8
- package/dist/components/agents/index.d.ts.map +0 -1
- package/dist/components/agents/types.d.ts +0 -72
- package/dist/components/agents/types.d.ts.map +0 -1
- package/dist/components/ai/AIAssistantPanel.d.ts +0 -8
- package/dist/components/ai/AIAssistantPanel.d.ts.map +0 -1
- package/dist/components/ai/AIContextsTab.d.ts +0 -6
- package/dist/components/ai/AIContextsTab.d.ts.map +0 -1
- package/dist/components/ai/AIOverviewTab.d.ts +0 -7
- package/dist/components/ai/AIOverviewTab.d.ts.map +0 -1
- package/dist/components/ai/AIPlaygroundTab.d.ts +0 -6
- package/dist/components/ai/AIPlaygroundTab.d.ts.map +0 -1
- package/dist/components/ai/AIPromptsTab.d.ts +0 -6
- package/dist/components/ai/AIPromptsTab.d.ts.map +0 -1
- package/dist/components/ai/AISessionsTab.d.ts +0 -7
- package/dist/components/ai/AISessionsTab.d.ts.map +0 -1
- package/dist/components/ai/AIStatsTab.d.ts +0 -6
- package/dist/components/ai/AIStatsTab.d.ts.map +0 -1
- package/dist/components/ai/AITasksTab.d.ts +0 -5
- package/dist/components/ai/AITasksTab.d.ts.map +0 -1
- package/dist/components/ai/AITemplatesTab.d.ts +0 -6
- package/dist/components/ai/AITemplatesTab.d.ts.map +0 -1
- package/dist/components/ai/ClaudeCredentialsCard.d.ts +0 -6
- package/dist/components/ai/ClaudeCredentialsCard.d.ts.map +0 -1
- package/dist/components/ai/PluginHarnessPicker.d.ts +0 -31
- package/dist/components/ai/PluginHarnessPicker.d.ts.map +0 -1
- package/dist/components/analytics/AnalyticsBreakdownChart.d.ts +0 -12
- package/dist/components/analytics/AnalyticsBreakdownChart.d.ts.map +0 -1
- package/dist/components/analytics/AnalyticsBreakdownTable.d.ts +0 -13
- package/dist/components/analytics/AnalyticsBreakdownTable.d.ts.map +0 -1
- package/dist/components/analytics/AnalyticsEntityTabs.d.ts +0 -9
- package/dist/components/analytics/AnalyticsEntityTabs.d.ts.map +0 -1
- package/dist/components/analytics/AnalyticsFilterBar.d.ts +0 -15
- package/dist/components/analytics/AnalyticsFilterBar.d.ts.map +0 -1
- package/dist/components/analytics/AnalyticsKpiGrid.d.ts +0 -10
- package/dist/components/analytics/AnalyticsKpiGrid.d.ts.map +0 -1
- package/dist/components/analytics/AnalyticsTimeSeriesChart.d.ts +0 -16
- package/dist/components/analytics/AnalyticsTimeSeriesChart.d.ts.map +0 -1
- package/dist/components/analytics/SandboxAnalyticsSection.d.ts +0 -9
- package/dist/components/analytics/SandboxAnalyticsSection.d.ts.map +0 -1
- package/dist/components/analytics/index.d.ts +0 -9
- package/dist/components/analytics/index.d.ts.map +0 -1
- package/dist/components/analytics/types.d.ts +0 -28
- package/dist/components/analytics/types.d.ts.map +0 -1
- package/dist/components/assistant/AIAssistantPanel.d.ts +0 -5
- package/dist/components/assistant/AIAssistantPanel.d.ts.map +0 -1
- package/dist/components/assistant/AssistantChatArea.d.ts +0 -4
- package/dist/components/assistant/AssistantChatArea.d.ts.map +0 -1
- package/dist/components/assistant/AssistantChatInput.d.ts +0 -10
- package/dist/components/assistant/AssistantChatInput.d.ts.map +0 -1
- package/dist/components/assistant/AssistantConversationList.d.ts +0 -4
- package/dist/components/assistant/AssistantConversationList.d.ts.map +0 -1
- package/dist/components/assistant/AssistantExportMenu.d.ts +0 -4
- package/dist/components/assistant/AssistantExportMenu.d.ts.map +0 -1
- package/dist/components/assistant/AssistantMarkdownRenderer.d.ts +0 -8
- package/dist/components/assistant/AssistantMarkdownRenderer.d.ts.map +0 -1
- package/dist/components/assistant/AssistantMessageItem.d.ts +0 -10
- package/dist/components/assistant/AssistantMessageItem.d.ts.map +0 -1
- package/dist/components/assistant/AssistantMessageList.d.ts +0 -10
- package/dist/components/assistant/AssistantMessageList.d.ts.map +0 -1
- package/dist/components/assistant/AssistantModeSelector.d.ts +0 -10
- package/dist/components/assistant/AssistantModeSelector.d.ts.map +0 -1
- package/dist/components/assistant/AssistantWelcome.d.ts +0 -10
- package/dist/components/assistant/AssistantWelcome.d.ts.map +0 -1
- package/dist/components/assistant/index.d.ts +0 -11
- package/dist/components/assistant/index.d.ts.map +0 -1
- package/dist/components/audit/AuditDeleteDialog.d.ts +0 -12
- package/dist/components/audit/AuditDeleteDialog.d.ts.map +0 -1
- package/dist/components/audit/AuditExportButton.d.ts +0 -8
- package/dist/components/audit/AuditExportButton.d.ts.map +0 -1
- package/dist/components/audit/AuditLogDetail.d.ts +0 -9
- package/dist/components/audit/AuditLogDetail.d.ts.map +0 -1
- package/dist/components/audit/AuditLogFilters.d.ts +0 -15
- package/dist/components/audit/AuditLogFilters.d.ts.map +0 -1
- package/dist/components/audit/AuditLogStats.d.ts +0 -9
- package/dist/components/audit/AuditLogStats.d.ts.map +0 -1
- package/dist/components/audit/AuditLogTable.d.ts +0 -21
- package/dist/components/audit/AuditLogTable.d.ts.map +0 -1
- package/dist/components/audit/index.d.ts +0 -7
- package/dist/components/audit/index.d.ts.map +0 -1
- package/dist/components/catalog/CatalogCard.d.ts +0 -22
- package/dist/components/catalog/CatalogCard.d.ts.map +0 -1
- package/dist/components/catalog/CatalogForm.d.ts +0 -18
- package/dist/components/catalog/CatalogForm.d.ts.map +0 -1
- package/dist/components/catalog/index.d.ts +0 -5
- package/dist/components/catalog/index.d.ts.map +0 -1
- package/dist/components/docs/DocsCompileStatus.d.ts +0 -9
- package/dist/components/docs/DocsCompileStatus.d.ts.map +0 -1
- package/dist/components/docs/DocsEditPanel.d.ts +0 -26
- package/dist/components/docs/DocsEditPanel.d.ts.map +0 -1
- package/dist/components/docs/DocsEmptyState.d.ts +0 -7
- package/dist/components/docs/DocsEmptyState.d.ts.map +0 -1
- package/dist/components/docs/DocsPageEditor.d.ts +0 -13
- package/dist/components/docs/DocsPageEditor.d.ts.map +0 -1
- package/dist/components/docs/DocsPageTree.d.ts +0 -12
- package/dist/components/docs/DocsPageTree.d.ts.map +0 -1
- package/dist/components/docs/DocsPreviewPanel.d.ts +0 -17
- package/dist/components/docs/DocsPreviewPanel.d.ts.map +0 -1
- package/dist/components/docs/DocsSettingsPanel.d.ts +0 -15
- package/dist/components/docs/DocsSettingsPanel.d.ts.map +0 -1
- package/dist/components/docs/DocsTabPanel.d.ts +0 -8
- package/dist/components/docs/DocsTabPanel.d.ts.map +0 -1
- package/dist/components/docs/index.d.ts +0 -10
- package/dist/components/docs/index.d.ts.map +0 -1
- package/dist/components/docs/previewHtml.d.ts +0 -2
- package/dist/components/docs/previewHtml.d.ts.map +0 -1
- package/dist/components/docs/types.d.ts +0 -59
- package/dist/components/docs/types.d.ts.map +0 -1
- package/dist/components/gitops/CIDurationChart.d.ts +0 -12
- package/dist/components/gitops/CIDurationChart.d.ts.map +0 -1
- package/dist/components/gitops/CIFailedRuns.d.ts +0 -13
- package/dist/components/gitops/CIFailedRuns.d.ts.map +0 -1
- package/dist/components/gitops/CIPipelineRunsTable.d.ts +0 -13
- package/dist/components/gitops/CIPipelineRunsTable.d.ts.map +0 -1
- package/dist/components/gitops/CISuccessRateChart.d.ts +0 -13
- package/dist/components/gitops/CISuccessRateChart.d.ts.map +0 -1
- package/dist/components/gitops/CITab.d.ts +0 -15
- package/dist/components/gitops/CITab.d.ts.map +0 -1
- package/dist/components/gitops/CIWorkflowList.d.ts +0 -13
- package/dist/components/gitops/CIWorkflowList.d.ts.map +0 -1
- package/dist/components/gitops/GitOpsProviderCard.d.ts +0 -14
- package/dist/components/gitops/GitOpsProviderCard.d.ts.map +0 -1
- package/dist/components/gitops/GitOpsSetup.d.ts +0 -16
- package/dist/components/gitops/GitOpsSetup.d.ts.map +0 -1
- package/dist/components/gitops/GitOpsSkeleton.d.ts +0 -12
- package/dist/components/gitops/GitOpsSkeleton.d.ts.map +0 -1
- package/dist/components/gitops/GitOpsStatusBadge.d.ts +0 -14
- package/dist/components/gitops/GitOpsStatusBadge.d.ts.map +0 -1
- package/dist/components/gitops/ProviderIcon.d.ts +0 -14
- package/dist/components/gitops/ProviderIcon.d.ts.map +0 -1
- package/dist/components/gitops/RepoActivityCard.d.ts +0 -12
- package/dist/components/gitops/RepoActivityCard.d.ts.map +0 -1
- package/dist/components/gitops/RepoIssuesCard.d.ts +0 -12
- package/dist/components/gitops/RepoIssuesCard.d.ts.map +0 -1
- package/dist/components/gitops/RepoLanguagesCard.d.ts +0 -13
- package/dist/components/gitops/RepoLanguagesCard.d.ts.map +0 -1
- package/dist/components/gitops/RepoOverviewCard.d.ts +0 -13
- package/dist/components/gitops/RepoOverviewCard.d.ts.map +0 -1
- package/dist/components/gitops/RepoPullRequestsCard.d.ts +0 -12
- package/dist/components/gitops/RepoPullRequestsCard.d.ts.map +0 -1
- package/dist/components/gitops/RepoSecurityCard.d.ts +0 -12
- package/dist/components/gitops/RepoSecurityCard.d.ts.map +0 -1
- package/dist/components/gitops/RepoStatsTab.d.ts +0 -15
- package/dist/components/gitops/RepoStatsTab.d.ts.map +0 -1
- package/dist/components/gitops/VibeGitOpsTab.d.ts +0 -12
- package/dist/components/gitops/VibeGitOpsTab.d.ts.map +0 -1
- package/dist/components/gitops/index.d.ts +0 -21
- package/dist/components/gitops/index.d.ts.map +0 -1
- package/dist/components/gitops/types.d.ts +0 -90
- package/dist/components/gitops/types.d.ts.map +0 -1
- package/dist/components/graph/AgentGraphView.d.ts +0 -44
- package/dist/components/graph/AgentGraphView.d.ts.map +0 -1
- package/dist/components/graph/AgentNode.d.ts +0 -6
- package/dist/components/graph/AgentNode.d.ts.map +0 -1
- package/dist/components/graph/ConnectionPermissionsDialog.d.ts +0 -26
- package/dist/components/graph/ConnectionPermissionsDialog.d.ts.map +0 -1
- package/dist/components/graph/TargetNode.d.ts +0 -6
- package/dist/components/graph/TargetNode.d.ts.map +0 -1
- package/dist/components/health/AgentHealthCard.d.ts +0 -9
- package/dist/components/health/AgentHealthCard.d.ts.map +0 -1
- package/dist/components/health/HealthDashboard.d.ts +0 -10
- package/dist/components/health/HealthDashboard.d.ts.map +0 -1
- package/dist/components/health/SystemStatus.d.ts +0 -11
- package/dist/components/health/SystemStatus.d.ts.map +0 -1
- package/dist/components/health/index.d.ts +0 -5
- package/dist/components/health/index.d.ts.map +0 -1
- package/dist/components/health/types.d.ts +0 -50
- package/dist/components/health/types.d.ts.map +0 -1
- package/dist/components/idp-components/ComponentCard.d.ts +0 -24
- package/dist/components/idp-components/ComponentCard.d.ts.map +0 -1
- package/dist/components/idp-components/ComponentForm.d.ts +0 -22
- package/dist/components/idp-components/ComponentForm.d.ts.map +0 -1
- package/dist/components/idp-components/index.d.ts +0 -5
- package/dist/components/idp-components/index.d.ts.map +0 -1
- package/dist/components/logs/LogViewer.d.ts +0 -13
- package/dist/components/logs/LogViewer.d.ts.map +0 -1
- package/dist/components/notes/NoteCard.d.ts +0 -13
- package/dist/components/notes/NoteCard.d.ts.map +0 -1
- package/dist/components/notes/NoteEditor.d.ts +0 -31
- package/dist/components/notes/NoteEditor.d.ts.map +0 -1
- package/dist/components/notes/NoteList.d.ts +0 -15
- package/dist/components/notes/NoteList.d.ts.map +0 -1
- package/dist/components/notes/NotesTabPanel.d.ts +0 -18
- package/dist/components/notes/NotesTabPanel.d.ts.map +0 -1
- package/dist/components/notes/index.d.ts +0 -7
- package/dist/components/notes/index.d.ts.map +0 -1
- package/dist/components/notes/types.d.ts +0 -58
- package/dist/components/notes/types.d.ts.map +0 -1
- package/dist/components/scorecard/ScorecardPanel.d.ts +0 -9
- package/dist/components/scorecard/ScorecardPanel.d.ts.map +0 -1
- package/dist/components/scorecard/index.d.ts +0 -3
- package/dist/components/scorecard/index.d.ts.map +0 -1
- package/dist/components/sessions/CollaboratorsList.d.ts +0 -18
- package/dist/components/sessions/CollaboratorsList.d.ts.map +0 -1
- package/dist/components/sessions/ControlStatusBar.d.ts +0 -31
- package/dist/components/sessions/ControlStatusBar.d.ts.map +0 -1
- package/dist/components/sessions/SessionCard.d.ts +0 -24
- package/dist/components/sessions/SessionCard.d.ts.map +0 -1
- package/dist/components/sessions/SessionForm.d.ts +0 -20
- package/dist/components/sessions/SessionForm.d.ts.map +0 -1
- package/dist/components/sessions/SessionList.d.ts +0 -25
- package/dist/components/sessions/SessionList.d.ts.map +0 -1
- package/dist/components/sessions/SessionShareDialog.d.ts +0 -15
- package/dist/components/sessions/SessionShareDialog.d.ts.map +0 -1
- package/dist/components/sessions/SessionStatusBadge.d.ts +0 -9
- package/dist/components/sessions/SessionStatusBadge.d.ts.map +0 -1
- package/dist/components/sessions/SharedTerminalPanel.d.ts +0 -72
- package/dist/components/sessions/SharedTerminalPanel.d.ts.map +0 -1
- package/dist/components/sessions/TerminalPanel.d.ts +0 -69
- package/dist/components/sessions/TerminalPanel.d.ts.map +0 -1
- package/dist/components/sessions/index.d.ts +0 -11
- package/dist/components/sessions/index.d.ts.map +0 -1
- package/dist/components/sessions/types.d.ts +0 -67
- package/dist/components/sessions/types.d.ts.map +0 -1
- package/dist/components/settings/AdvancedSection.d.ts +0 -22
- package/dist/components/settings/AdvancedSection.d.ts.map +0 -1
- package/dist/components/settings/ConfigEditor.d.ts +0 -14
- package/dist/components/settings/ConfigEditor.d.ts.map +0 -1
- package/dist/components/settings/ConfigSection.d.ts +0 -12
- package/dist/components/settings/ConfigSection.d.ts.map +0 -1
- package/dist/components/settings/NotificationsSection.d.ts +0 -14
- package/dist/components/settings/NotificationsSection.d.ts.map +0 -1
- package/dist/components/settings/PreferencesSection.d.ts +0 -14
- package/dist/components/settings/PreferencesSection.d.ts.map +0 -1
- package/dist/components/settings/ProfileSection.d.ts +0 -14
- package/dist/components/settings/ProfileSection.d.ts.map +0 -1
- package/dist/components/settings/SecuritySection.d.ts +0 -11
- package/dist/components/settings/SecuritySection.d.ts.map +0 -1
- package/dist/components/settings/SettingsForm.d.ts +0 -58
- package/dist/components/settings/SettingsForm.d.ts.map +0 -1
- package/dist/components/settings/WorkspaceDefaultsSection.d.ts +0 -27
- package/dist/components/settings/WorkspaceDefaultsSection.d.ts.map +0 -1
- package/dist/components/settings/index.d.ts +0 -4
- package/dist/components/settings/index.d.ts.map +0 -1
- package/dist/components/settings/types.d.ts +0 -55
- package/dist/components/settings/types.d.ts.map +0 -1
- package/dist/components/shared/AgentEventsConnector.d.ts +0 -6
- package/dist/components/shared/AgentEventsConnector.d.ts.map +0 -1
- package/dist/components/shared/AgentSelector.d.ts +0 -25
- package/dist/components/shared/AgentSelector.d.ts.map +0 -1
- package/dist/components/shared/AgentSetupBanner.d.ts +0 -21
- package/dist/components/shared/AgentSetupBanner.d.ts.map +0 -1
- package/dist/components/shared/Card.d.ts +0 -29
- package/dist/components/shared/Card.d.ts.map +0 -1
- package/dist/components/shared/ConfirmDialog.d.ts +0 -14
- package/dist/components/shared/ConfirmDialog.d.ts.map +0 -1
- package/dist/components/shared/EmptyState.d.ts +0 -11
- package/dist/components/shared/EmptyState.d.ts.map +0 -1
- package/dist/components/shared/EntityTagPicker.d.ts +0 -8
- package/dist/components/shared/EntityTagPicker.d.ts.map +0 -1
- package/dist/components/shared/ErrorState.d.ts +0 -11
- package/dist/components/shared/ErrorState.d.ts.map +0 -1
- package/dist/components/shared/FilterDropdown.d.ts +0 -20
- package/dist/components/shared/FilterDropdown.d.ts.map +0 -1
- package/dist/components/shared/GetHelpButton.d.ts +0 -27
- package/dist/components/shared/GetHelpButton.d.ts.map +0 -1
- package/dist/components/shared/InstallTabs.d.ts +0 -18
- package/dist/components/shared/InstallTabs.d.ts.map +0 -1
- package/dist/components/shared/LoadingState.d.ts +0 -7
- package/dist/components/shared/LoadingState.d.ts.map +0 -1
- package/dist/components/shared/NotificationToast.d.ts +0 -40
- package/dist/components/shared/NotificationToast.d.ts.map +0 -1
- package/dist/components/shared/PageHeader.d.ts +0 -14
- package/dist/components/shared/PageHeader.d.ts.map +0 -1
- package/dist/components/shared/PluginGate.d.ts +0 -35
- package/dist/components/shared/PluginGate.d.ts.map +0 -1
- package/dist/components/shared/QuotaExhaustedDialog.d.ts +0 -12
- package/dist/components/shared/QuotaExhaustedDialog.d.ts.map +0 -1
- package/dist/components/shared/RequireAgentReachable.d.ts +0 -14
- package/dist/components/shared/RequireAgentReachable.d.ts.map +0 -1
- package/dist/components/shared/SearchInput.d.ts +0 -9
- package/dist/components/shared/SearchInput.d.ts.map +0 -1
- package/dist/components/shared/SearchableSelect.d.ts +0 -48
- package/dist/components/shared/SearchableSelect.d.ts.map +0 -1
- package/dist/components/shared/SelectionCheckbox.d.ts +0 -11
- package/dist/components/shared/SelectionCheckbox.d.ts.map +0 -1
- package/dist/components/shared/SessionNotificationBanner.d.ts +0 -47
- package/dist/components/shared/SessionNotificationBanner.d.ts.map +0 -1
- package/dist/components/shared/StatCard.d.ts +0 -17
- package/dist/components/shared/StatCard.d.ts.map +0 -1
- package/dist/components/shared/StatusBadge.d.ts +0 -11
- package/dist/components/shared/StatusBadge.d.ts.map +0 -1
- package/dist/components/shared/TagFilter.d.ts +0 -11
- package/dist/components/shared/TagFilter.d.ts.map +0 -1
- package/dist/components/shared/index.d.ts +0 -32
- package/dist/components/shared/index.d.ts.map +0 -1
- package/dist/components/targets/TargetCard.d.ts +0 -45
- package/dist/components/targets/TargetCard.d.ts.map +0 -1
- package/dist/components/targets/index.d.ts +0 -3
- package/dist/components/targets/index.d.ts.map +0 -1
- package/dist/components/templates/TemplateCard.d.ts +0 -19
- package/dist/components/templates/TemplateCard.d.ts.map +0 -1
- package/dist/components/templates/index.d.ts +0 -3
- package/dist/components/templates/index.d.ts.map +0 -1
- package/dist/components/tunnels/DomainVerificationBadge.d.ts +0 -6
- package/dist/components/tunnels/DomainVerificationBadge.d.ts.map +0 -1
- package/dist/components/tunnels/ProviderBadge.d.ts +0 -6
- package/dist/components/tunnels/ProviderBadge.d.ts.map +0 -1
- package/dist/components/tunnels/TunnelCard.d.ts +0 -13
- package/dist/components/tunnels/TunnelCard.d.ts.map +0 -1
- package/dist/components/tunnels/TunnelCreateWizard.d.ts +0 -2
- package/dist/components/tunnels/TunnelCreateWizard.d.ts.map +0 -1
- package/dist/components/tunnels/TunnelStatusBadge.d.ts +0 -6
- package/dist/components/tunnels/TunnelStatusBadge.d.ts.map +0 -1
- package/dist/components/vibe/VibeAgentEmptyState.d.ts +0 -8
- package/dist/components/vibe/VibeAgentEmptyState.d.ts.map +0 -1
- package/dist/components/vibecalendar/LogsDrawer.d.ts +0 -12
- package/dist/components/vibecalendar/LogsDrawer.d.ts.map +0 -1
- package/dist/components/vibecalendar/ScheduleTaskModal.d.ts +0 -33
- package/dist/components/vibecalendar/ScheduleTaskModal.d.ts.map +0 -1
- package/dist/components/vibecalendar/VibeCalAgendaView.d.ts +0 -11
- package/dist/components/vibecalendar/VibeCalAgendaView.d.ts.map +0 -1
- package/dist/components/vibecalendar/VibeCalDayView.d.ts +0 -12
- package/dist/components/vibecalendar/VibeCalDayView.d.ts.map +0 -1
- package/dist/components/vibecalendar/VibeCalMonthView.d.ts +0 -12
- package/dist/components/vibecalendar/VibeCalMonthView.d.ts.map +0 -1
- package/dist/components/vibecalendar/VibeCalWeekView.d.ts +0 -12
- package/dist/components/vibecalendar/VibeCalWeekView.d.ts.map +0 -1
- package/dist/components/vibecalendar/VibeCalendarHeader.d.ts +0 -12
- package/dist/components/vibecalendar/VibeCalendarHeader.d.ts.map +0 -1
- package/dist/components/vibecalendar/VibeTaskBlock.d.ts +0 -12
- package/dist/components/vibecalendar/VibeTaskBlock.d.ts.map +0 -1
- package/dist/components/vibecalendar/expandOccurrences.d.ts +0 -37
- package/dist/components/vibecalendar/expandOccurrences.d.ts.map +0 -1
- package/dist/components/vibecalendar/index.d.ts +0 -11
- package/dist/components/vibecalendar/index.d.ts.map +0 -1
- package/dist/components/vibecalendar/types.d.ts +0 -53
- package/dist/components/vibecalendar/types.d.ts.map +0 -1
- package/dist/components/vibedeck/VibeDeckButtonForm.d.ts +0 -54
- package/dist/components/vibedeck/VibeDeckButtonForm.d.ts.map +0 -1
- package/dist/components/vibedeck/VibeDeckButtonTile.d.ts +0 -48
- package/dist/components/vibedeck/VibeDeckButtonTile.d.ts.map +0 -1
- package/dist/components/vibedeck/VibeDeckExecutionLog.d.ts +0 -25
- package/dist/components/vibedeck/VibeDeckExecutionLog.d.ts.map +0 -1
- package/dist/components/vibedeck/VibeDeckForm.d.ts +0 -21
- package/dist/components/vibedeck/VibeDeckForm.d.ts.map +0 -1
- package/dist/components/vibedeck/VibeDeckGrid.d.ts +0 -51
- package/dist/components/vibedeck/VibeDeckGrid.d.ts.map +0 -1
- package/dist/components/vibedeck/VibeDeckShareDialog.d.ts +0 -10
- package/dist/components/vibedeck/VibeDeckShareDialog.d.ts.map +0 -1
- package/dist/components/vibedeck/VibeDeckSwitcher.d.ts +0 -28
- package/dist/components/vibedeck/VibeDeckSwitcher.d.ts.map +0 -1
- package/dist/components/vibedeck/index.d.ts +0 -9
- package/dist/components/vibedeck/index.d.ts.map +0 -1
- package/dist/components/vibes/VibeCard.d.ts +0 -19
- package/dist/components/vibes/VibeCard.d.ts.map +0 -1
- package/dist/components/vibes/VibeForm.d.ts +0 -15
- package/dist/components/vibes/VibeForm.d.ts.map +0 -1
- package/dist/components/vibes/VibeList.d.ts +0 -20
- package/dist/components/vibes/VibeList.d.ts.map +0 -1
- package/dist/components/vibes/icons.d.ts +0 -6
- package/dist/components/vibes/icons.d.ts.map +0 -1
- package/dist/components/vibes/index.d.ts +0 -5
- package/dist/components/vibes/index.d.ts.map +0 -1
- package/dist/components/vibes/types.d.ts +0 -71
- package/dist/components/vibes/types.d.ts.map +0 -1
- package/dist/components/webhooks/WebhookCard.d.ts +0 -12
- package/dist/components/webhooks/WebhookCard.d.ts.map +0 -1
- package/dist/components/webhooks/WebhookForm.d.ts +0 -11
- package/dist/components/webhooks/WebhookForm.d.ts.map +0 -1
- package/dist/components/webhooks/WebhookList.d.ts +0 -14
- package/dist/components/webhooks/WebhookList.d.ts.map +0 -1
- package/dist/components/webhooks/index.d.ts +0 -5
- package/dist/components/webhooks/index.d.ts.map +0 -1
- package/dist/components/webhooks/types.d.ts +0 -58
- package/dist/components/webhooks/types.d.ts.map +0 -1
- package/dist/config/assistantUsecases.d.ts +0 -18
- package/dist/config/assistantUsecases.d.ts.map +0 -1
- package/dist/config/index.d.ts +0 -24
- package/dist/config/index.d.ts.map +0 -1
- package/dist/constants/permissions.d.ts +0 -112
- package/dist/constants/permissions.d.ts.map +0 -1
- package/dist/constants/pluginCatalog.d.ts +0 -36
- package/dist/constants/pluginCatalog.d.ts.map +0 -1
- package/dist/dev/main.d.ts +0 -2
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts +0 -2
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts +0 -21253
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts +0 -15218
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts +0 -55252
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/hooks/index.d.ts +0 -7
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/useAgentConnectivity.d.ts +0 -47
- package/dist/hooks/useAgentConnectivity.d.ts.map +0 -1
- package/dist/hooks/useAgentEvents.d.ts +0 -36
- package/dist/hooks/useAgentEvents.d.ts.map +0 -1
- package/dist/hooks/useAgentManagerKeyboard.d.ts +0 -17
- package/dist/hooks/useAgentManagerKeyboard.d.ts.map +0 -1
- package/dist/hooks/useAgentManagerStreaming.d.ts +0 -19
- package/dist/hooks/useAgentManagerStreaming.d.ts.map +0 -1
- package/dist/hooks/useAssistantHeartbeat.d.ts +0 -4
- package/dist/hooks/useAssistantHeartbeat.d.ts.map +0 -1
- package/dist/hooks/useAssistantKeyboardShortcuts.d.ts +0 -18
- package/dist/hooks/useAssistantKeyboardShortcuts.d.ts.map +0 -1
- package/dist/hooks/useCachedInitialData.d.ts +0 -120
- package/dist/hooks/useCachedInitialData.d.ts.map +0 -1
- package/dist/hooks/useEntityTags.d.ts +0 -24
- package/dist/hooks/useEntityTags.d.ts.map +0 -1
- package/dist/hooks/useFileUpload.d.ts +0 -15
- package/dist/hooks/useFileUpload.d.ts.map +0 -1
- package/dist/hooks/useInitialDataLoader.d.ts +0 -48
- package/dist/hooks/useInitialDataLoader.d.ts.map +0 -1
- package/dist/hooks/useMcpServers.d.ts +0 -14
- package/dist/hooks/useMcpServers.d.ts.map +0 -1
- package/dist/hooks/useOpenAssistantHelp.d.ts +0 -2
- package/dist/hooks/useOpenAssistantHelp.d.ts.map +0 -1
- package/dist/hooks/usePluginAvailability.d.ts +0 -35
- package/dist/hooks/usePluginAvailability.d.ts.map +0 -1
- package/dist/hooks/useQueryBackedTab.d.ts +0 -2
- package/dist/hooks/useQueryBackedTab.d.ts.map +0 -1
- package/dist/hooks/useSessionSearch.d.ts +0 -24
- package/dist/hooks/useSessionSearch.d.ts.map +0 -1
- package/dist/hooks/useVoiceMode.d.ts +0 -17
- package/dist/hooks/useVoiceMode.d.ts.map +0 -1
- package/dist/index.d.ts +0 -17
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/vibeFeatures.d.ts +0 -29
- package/dist/lib/vibeFeatures.d.ts.map +0 -1
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +0 -3281
- package/dist/node_modules/@xyflow/react/dist/esm/index.js.map +0 -1
- package/dist/node_modules/@xyflow/system/dist/esm/index.js +0 -1845
- package/dist/node_modules/@xyflow/system/dist/esm/index.js.map +0 -1
- package/dist/node_modules/classcat/index.js +0 -12
- package/dist/node_modules/classcat/index.js.map +0 -1
- package/dist/node_modules/d3-dispatch/src/dispatch.js +0 -67
- package/dist/node_modules/d3-dispatch/src/dispatch.js.map +0 -1
- package/dist/node_modules/d3-drag/src/constant.js +0 -6
- package/dist/node_modules/d3-drag/src/constant.js.map +0 -1
- package/dist/node_modules/d3-drag/src/drag.js +0 -116
- package/dist/node_modules/d3-drag/src/drag.js.map +0 -1
- package/dist/node_modules/d3-drag/src/event.js +0 -64
- package/dist/node_modules/d3-drag/src/event.js.map +0 -1
- package/dist/node_modules/d3-drag/src/nodrag.js +0 -17
- package/dist/node_modules/d3-drag/src/nodrag.js.map +0 -1
- package/dist/node_modules/d3-drag/src/noevent.js +0 -15
- package/dist/node_modules/d3-drag/src/noevent.js.map +0 -1
- package/dist/node_modules/d3-ease/src/cubic.js +0 -8
- package/dist/node_modules/d3-ease/src/cubic.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +0 -24
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/index.js +0 -56
- package/dist/node_modules/d3-interpolate/src/transform/index.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +0 -14
- package/dist/node_modules/d3-interpolate/src/transform/parse.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/zoom.js +0 -43
- package/dist/node_modules/d3-interpolate/src/zoom.js.map +0 -1
- package/dist/node_modules/d3-selection/src/array.js +0 -8
- package/dist/node_modules/d3-selection/src/array.js.map +0 -1
- package/dist/node_modules/d3-selection/src/constant.js +0 -10
- package/dist/node_modules/d3-selection/src/constant.js.map +0 -1
- package/dist/node_modules/d3-selection/src/creator.js +0 -22
- package/dist/node_modules/d3-selection/src/creator.js.map +0 -1
- package/dist/node_modules/d3-selection/src/matcher.js +0 -15
- package/dist/node_modules/d3-selection/src/matcher.js.map +0 -1
- package/dist/node_modules/d3-selection/src/namespace.js +0 -13
- package/dist/node_modules/d3-selection/src/namespace.js.map +0 -1
- package/dist/node_modules/d3-selection/src/namespaces.js +0 -12
- package/dist/node_modules/d3-selection/src/namespaces.js.map +0 -1
- package/dist/node_modules/d3-selection/src/pointer.js +0 -20
- package/dist/node_modules/d3-selection/src/pointer.js.map +0 -1
- package/dist/node_modules/d3-selection/src/select.js +0 -9
- package/dist/node_modules/d3-selection/src/select.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/append.js +0 -12
- package/dist/node_modules/d3-selection/src/selection/append.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/attr.js +0 -46
- package/dist/node_modules/d3-selection/src/selection/attr.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/call.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/call.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/classed.js +0 -55
- package/dist/node_modules/d3-selection/src/selection/classed.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/clone.js +0 -16
- package/dist/node_modules/d3-selection/src/selection/clone.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/data.js +0 -38
- package/dist/node_modules/d3-selection/src/selection/data.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/datum.js +0 -8
- package/dist/node_modules/d3-selection/src/selection/datum.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +0 -23
- package/dist/node_modules/d3-selection/src/selection/dispatch.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/each.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/each.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/empty.js +0 -8
- package/dist/node_modules/d3-selection/src/selection/empty.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/enter.js +0 -28
- package/dist/node_modules/d3-selection/src/selection/enter.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/exit.js +0 -10
- package/dist/node_modules/d3-selection/src/selection/exit.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/filter.js +0 -12
- package/dist/node_modules/d3-selection/src/selection/filter.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/html.js +0 -21
- package/dist/node_modules/d3-selection/src/selection/html.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/index.js +0 -87
- package/dist/node_modules/d3-selection/src/selection/index.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/insert.js +0 -16
- package/dist/node_modules/d3-selection/src/selection/insert.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/iterator.js +0 -8
- package/dist/node_modules/d3-selection/src/selection/iterator.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/join.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/join.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/lower.js +0 -11
- package/dist/node_modules/d3-selection/src/selection/lower.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/merge.js +0 -11
- package/dist/node_modules/d3-selection/src/selection/merge.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/node.js +0 -12
- package/dist/node_modules/d3-selection/src/selection/node.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/nodes.js +0 -8
- package/dist/node_modules/d3-selection/src/selection/nodes.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/on.js +0 -58
- package/dist/node_modules/d3-selection/src/selection/on.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/order.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/order.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/property.js +0 -24
- package/dist/node_modules/d3-selection/src/selection/property.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/raise.js +0 -11
- package/dist/node_modules/d3-selection/src/selection/raise.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/remove.js +0 -12
- package/dist/node_modules/d3-selection/src/selection/remove.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/select.js +0 -12
- package/dist/node_modules/d3-selection/src/selection/select.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +0 -18
- package/dist/node_modules/d3-selection/src/selection/selectAll.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +0 -18
- package/dist/node_modules/d3-selection/src/selection/selectChild.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +0 -18
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/size.js +0 -10
- package/dist/node_modules/d3-selection/src/selection/size.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/sort.js +0 -20
- package/dist/node_modules/d3-selection/src/selection/sort.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/sparse.js +0 -8
- package/dist/node_modules/d3-selection/src/selection/sparse.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/style.js +0 -28
- package/dist/node_modules/d3-selection/src/selection/style.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/text.js +0 -21
- package/dist/node_modules/d3-selection/src/selection/text.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selector.js +0 -11
- package/dist/node_modules/d3-selection/src/selector.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selectorAll.js +0 -13
- package/dist/node_modules/d3-selection/src/selectorAll.js.map +0 -1
- package/dist/node_modules/d3-selection/src/sourceEvent.js +0 -10
- package/dist/node_modules/d3-selection/src/sourceEvent.js.map +0 -1
- package/dist/node_modules/d3-selection/src/window.js +0 -8
- package/dist/node_modules/d3-selection/src/window.js.map +0 -1
- package/dist/node_modules/d3-timer/src/timeout.js +0 -12
- package/dist/node_modules/d3-timer/src/timeout.js.map +0 -1
- package/dist/node_modules/d3-timer/src/timer.js +0 -55
- package/dist/node_modules/d3-timer/src/timer.js.map +0 -1
- package/dist/node_modules/d3-transition/src/index.js +0 -3
- package/dist/node_modules/d3-transition/src/interrupt.js +0 -18
- package/dist/node_modules/d3-transition/src/interrupt.js.map +0 -1
- package/dist/node_modules/d3-transition/src/selection/index.js +0 -7
- package/dist/node_modules/d3-transition/src/selection/index.js.map +0 -1
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +0 -11
- package/dist/node_modules/d3-transition/src/selection/interrupt.js.map +0 -1
- package/dist/node_modules/d3-transition/src/selection/transition.js +0 -25
- package/dist/node_modules/d3-transition/src/selection/transition.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/attr.js +0 -51
- package/dist/node_modules/d3-transition/src/transition/attr.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +0 -40
- package/dist/node_modules/d3-transition/src/transition/attrTween.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/delay.js +0 -20
- package/dist/node_modules/d3-transition/src/transition/delay.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/duration.js +0 -20
- package/dist/node_modules/d3-transition/src/transition/duration.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/ease.js +0 -16
- package/dist/node_modules/d3-transition/src/transition/ease.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +0 -17
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/end.js +0 -18
- package/dist/node_modules/d3-transition/src/transition/end.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/filter.js +0 -12
- package/dist/node_modules/d3-transition/src/transition/filter.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/index.js +0 -69
- package/dist/node_modules/d3-transition/src/transition/index.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +0 -13
- package/dist/node_modules/d3-transition/src/transition/interpolate.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/merge.js +0 -12
- package/dist/node_modules/d3-transition/src/transition/merge.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/on.js +0 -23
- package/dist/node_modules/d3-transition/src/transition/on.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/remove.js +0 -15
- package/dist/node_modules/d3-transition/src/transition/remove.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/schedule.js +0 -71
- package/dist/node_modules/d3-transition/src/transition/schedule.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/select.js +0 -14
- package/dist/node_modules/d3-transition/src/transition/select.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +0 -17
- package/dist/node_modules/d3-transition/src/transition/selectAll.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/selection.js +0 -10
- package/dist/node_modules/d3-transition/src/transition/selection.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/style.js +0 -47
- package/dist/node_modules/d3-transition/src/transition/style.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +0 -25
- package/dist/node_modules/d3-transition/src/transition/styleTween.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/text.js +0 -19
- package/dist/node_modules/d3-transition/src/transition/text.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/textTween.js +0 -25
- package/dist/node_modules/d3-transition/src/transition/textTween.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/transition.js +0 -19
- package/dist/node_modules/d3-transition/src/transition/transition.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/tween.js +0 -56
- package/dist/node_modules/d3-transition/src/transition/tween.js.map +0 -1
- package/dist/node_modules/d3-zoom/src/constant.js +0 -6
- package/dist/node_modules/d3-zoom/src/constant.js.map +0 -1
- package/dist/node_modules/d3-zoom/src/event.js +0 -30
- package/dist/node_modules/d3-zoom/src/event.js.map +0 -1
- package/dist/node_modules/d3-zoom/src/index.js +0 -2
- package/dist/node_modules/d3-zoom/src/noevent.js +0 -11
- package/dist/node_modules/d3-zoom/src/noevent.js.map +0 -1
- package/dist/node_modules/d3-zoom/src/transform.js +0 -50
- package/dist/node_modules/d3-zoom/src/transform.js.map +0 -1
- package/dist/node_modules/d3-zoom/src/zoom.js +0 -219
- package/dist/node_modules/d3-zoom/src/zoom.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +0 -56
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +0 -54
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -54
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -46
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/index.js +0 -12
- package/dist/node_modules/use-sync-external-store/shim/index.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +0 -12
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js.map +0 -1
- package/dist/node_modules/zustand/esm/traditional.js +0 -17
- package/dist/node_modules/zustand/esm/traditional.js.map +0 -1
- package/dist/node_modules/zustand/esm/vanilla/shallow.js +0 -21
- package/dist/node_modules/zustand/esm/vanilla/shallow.js.map +0 -1
- package/dist/node_modules/zustand/esm/vanilla.js +0 -20
- package/dist/node_modules/zustand/esm/vanilla.js.map +0 -1
- package/dist/pages/ActionsPage.d.ts +0 -2
- package/dist/pages/ActionsPage.d.ts.map +0 -1
- package/dist/pages/AgentDetailsPage.d.ts +0 -5
- package/dist/pages/AgentDetailsPage.d.ts.map +0 -1
- package/dist/pages/AgentGraphPage.d.ts +0 -9
- package/dist/pages/AgentGraphPage.d.ts.map +0 -1
- package/dist/pages/AgentsLandingPage.d.ts +0 -12
- package/dist/pages/AgentsLandingPage.d.ts.map +0 -1
- package/dist/pages/AgentsPage.d.ts +0 -5
- package/dist/pages/AgentsPage.d.ts.map +0 -1
- package/dist/pages/AnalyticsPage.d.ts +0 -2
- package/dist/pages/AnalyticsPage.d.ts.map +0 -1
- package/dist/pages/CatalogDetailPage.d.ts +0 -2
- package/dist/pages/CatalogDetailPage.d.ts.map +0 -1
- package/dist/pages/CatalogDocsPage.d.ts +0 -2
- package/dist/pages/CatalogDocsPage.d.ts.map +0 -1
- package/dist/pages/CatalogPage.d.ts +0 -2
- package/dist/pages/CatalogPage.d.ts.map +0 -1
- package/dist/pages/ComponentDetailPage.d.ts +0 -2
- package/dist/pages/ComponentDetailPage.d.ts.map +0 -1
- package/dist/pages/ComponentDocsPage.d.ts +0 -2
- package/dist/pages/ComponentDocsPage.d.ts.map +0 -1
- package/dist/pages/ComponentsPage.d.ts +0 -2
- package/dist/pages/ComponentsPage.d.ts.map +0 -1
- package/dist/pages/GettingStartedPage.d.ts +0 -16
- package/dist/pages/GettingStartedPage.d.ts.map +0 -1
- package/dist/pages/HealthPage.d.ts +0 -2
- package/dist/pages/HealthPage.d.ts.map +0 -1
- package/dist/pages/LogsPage.d.ts +0 -2
- package/dist/pages/LogsPage.d.ts.map +0 -1
- package/dist/pages/NoteDetailsPage.d.ts +0 -2
- package/dist/pages/NoteDetailsPage.d.ts.map +0 -1
- package/dist/pages/OverviewPage.d.ts +0 -9
- package/dist/pages/OverviewPage.d.ts.map +0 -1
- package/dist/pages/SessionDetailsPage.d.ts +0 -6
- package/dist/pages/SessionDetailsPage.d.ts.map +0 -1
- package/dist/pages/SessionsPage.d.ts +0 -6
- package/dist/pages/SessionsPage.d.ts.map +0 -1
- package/dist/pages/SettingsPage.d.ts +0 -2
- package/dist/pages/SettingsPage.d.ts.map +0 -1
- package/dist/pages/SharedSessionPage.d.ts +0 -13
- package/dist/pages/SharedSessionPage.d.ts.map +0 -1
- package/dist/pages/SharedVibeDeckPage.d.ts +0 -8
- package/dist/pages/SharedVibeDeckPage.d.ts.map +0 -1
- package/dist/pages/TargetDetailsPage.d.ts +0 -13
- package/dist/pages/TargetDetailsPage.d.ts.map +0 -1
- package/dist/pages/TargetsPage.d.ts +0 -8
- package/dist/pages/TargetsPage.d.ts.map +0 -1
- package/dist/pages/TemplateDetailPage.d.ts +0 -2
- package/dist/pages/TemplateDetailPage.d.ts.map +0 -1
- package/dist/pages/TemplatesPage.d.ts +0 -2
- package/dist/pages/TemplatesPage.d.ts.map +0 -1
- package/dist/pages/TunnelsLandingPage.d.ts +0 -8
- package/dist/pages/TunnelsLandingPage.d.ts.map +0 -1
- package/dist/pages/VibeAuditPage.d.ts +0 -2
- package/dist/pages/VibeAuditPage.d.ts.map +0 -1
- package/dist/pages/VibeCalendarPage.d.ts +0 -9
- package/dist/pages/VibeCalendarPage.d.ts.map +0 -1
- package/dist/pages/VibeDeckPage.d.ts +0 -2
- package/dist/pages/VibeDeckPage.d.ts.map +0 -1
- package/dist/pages/VibeDetailsPage.d.ts +0 -5
- package/dist/pages/VibeDetailsPage.d.ts.map +0 -1
- package/dist/pages/VibeDocsPage.d.ts +0 -2
- package/dist/pages/VibeDocsPage.d.ts.map +0 -1
- package/dist/pages/VibeTaskDetailPage.d.ts +0 -9
- package/dist/pages/VibeTaskDetailPage.d.ts.map +0 -1
- package/dist/pages/VibesPage.d.ts +0 -5
- package/dist/pages/VibesPage.d.ts.map +0 -1
- package/dist/pages/WebhooksPage.d.ts +0 -5
- package/dist/pages/WebhooksPage.d.ts.map +0 -1
- package/dist/pages/ai/AIPage.d.ts +0 -6
- package/dist/pages/ai/AIPage.d.ts.map +0 -1
- package/dist/pages/ai/AISessionDetailPage.d.ts +0 -5
- package/dist/pages/ai/AISessionDetailPage.d.ts.map +0 -1
- package/dist/pages/ai/AgentManagerPage.d.ts +0 -9
- package/dist/pages/ai/AgentManagerPage.d.ts.map +0 -1
- package/dist/pages/index.d.ts +0 -17
- package/dist/pages/index.d.ts.map +0 -1
- package/dist/pages/tunnels/AuditTab.d.ts +0 -8
- package/dist/pages/tunnels/AuditTab.d.ts.map +0 -1
- package/dist/pages/tunnels/DomainsTab.d.ts +0 -2
- package/dist/pages/tunnels/DomainsTab.d.ts.map +0 -1
- package/dist/pages/tunnels/ProvidersTab.d.ts +0 -2
- package/dist/pages/tunnels/ProvidersTab.d.ts.map +0 -1
- package/dist/pages/tunnels/SessionsTab.d.ts +0 -8
- package/dist/pages/tunnels/SessionsTab.d.ts.map +0 -1
- package/dist/pages/tunnels/TunnelDetailsPage.d.ts +0 -2
- package/dist/pages/tunnels/TunnelDetailsPage.d.ts.map +0 -1
- package/dist/pages/tunnels/TunnelsTab.d.ts +0 -2
- package/dist/pages/tunnels/TunnelsTab.d.ts.map +0 -1
- package/dist/pages/tunnels/UsageTab.d.ts +0 -8
- package/dist/pages/tunnels/UsageTab.d.ts.map +0 -1
- package/dist/pages/tunnels/tabs/TunnelAuditTab.d.ts +0 -4
- package/dist/pages/tunnels/tabs/TunnelAuditTab.d.ts.map +0 -1
- package/dist/pages/tunnels/tabs/TunnelCliTab.d.ts +0 -8
- package/dist/pages/tunnels/tabs/TunnelCliTab.d.ts.map +0 -1
- package/dist/pages/tunnels/tabs/TunnelDomainsTab.d.ts +0 -8
- package/dist/pages/tunnels/tabs/TunnelDomainsTab.d.ts.map +0 -1
- package/dist/pages/tunnels/tabs/TunnelEndpointsTab.d.ts +0 -8
- package/dist/pages/tunnels/tabs/TunnelEndpointsTab.d.ts.map +0 -1
- package/dist/pages/tunnels/tabs/TunnelOverviewTab.d.ts +0 -8
- package/dist/pages/tunnels/tabs/TunnelOverviewTab.d.ts.map +0 -1
- package/dist/pages/tunnels/tabs/TunnelSessionsTab.d.ts +0 -4
- package/dist/pages/tunnels/tabs/TunnelSessionsTab.d.ts.map +0 -1
- package/dist/pages/tunnels/tabs/TunnelSettingsTab.d.ts +0 -9
- package/dist/pages/tunnels/tabs/TunnelSettingsTab.d.ts.map +0 -1
- package/dist/pages/tunnels/tabs/TunnelUsageTab.d.ts +0 -4
- package/dist/pages/tunnels/tabs/TunnelUsageTab.d.ts.map +0 -1
- package/dist/plugin.d.ts +0 -4
- package/dist/plugin.d.ts.map +0 -1
- package/dist/providers/AgentEventsProvider.d.ts +0 -79
- package/dist/providers/AgentEventsProvider.d.ts.map +0 -1
- package/dist/providers/VibeControlsProvider.d.ts +0 -29
- package/dist/providers/VibeControlsProvider.d.ts.map +0 -1
- package/dist/services/aiApi.d.ts +0 -310
- package/dist/services/aiApi.d.ts.map +0 -1
- package/dist/services/assistantApi.d.ts +0 -71
- package/dist/services/assistantApi.d.ts.map +0 -1
- package/dist/services/assistantExportService.d.ts +0 -9
- package/dist/services/assistantExportService.d.ts.map +0 -1
- package/dist/services/schedulerApi.d.ts +0 -18
- package/dist/services/schedulerApi.d.ts.map +0 -1
- package/dist/shared/hooks/useTr.d.ts +0 -17
- package/dist/shared/hooks/useTr.d.ts.map +0 -1
- package/dist/store/agentManagerStore.d.ts +0 -65
- package/dist/store/agentManagerStore.d.ts.map +0 -1
- package/dist/store/assistantStore.d.ts +0 -56
- package/dist/store/assistantStore.d.ts.map +0 -1
- package/dist/store/vibeControlsStore.d.ts +0 -68
- package/dist/store/vibeControlsStore.d.ts.map +0 -1
- package/dist/translations/en.d.ts +0 -2174
- package/dist/translations/en.d.ts.map +0 -1
- package/dist/types/agentManager.d.ts +0 -72
- package/dist/types/agentManager.d.ts.map +0 -1
- package/dist/types/assistant.d.ts +0 -58
- package/dist/types/assistant.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -134
- package/dist/types/index.d.ts.map +0 -1
- package/dist/utils/agentStatus.d.ts +0 -42
- package/dist/utils/agentStatus.d.ts.map +0 -1
- package/dist/utils/aiSessionNotFound.d.ts +0 -2
- package/dist/utils/aiSessionNotFound.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts +0 -3
- package/dist/utils/nativeBridge.d.ts.map +0 -1
- package/dist/utils/pageContext.d.ts +0 -23
- package/dist/utils/pageContext.d.ts.map +0 -1
- package/dist/utils/quotaUtils.d.ts +0 -8
- package/dist/utils/quotaUtils.d.ts.map +0 -1
- package/dist/utils/relativeTime.d.ts +0 -3
- package/dist/utils/relativeTime.d.ts.map +0 -1
|
@@ -1,3281 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
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 { createWithEqualityFn as Ce, useStoreWithEqualityFn as we } from "../../../../zustand/esm/traditional.js";
|
|
5
|
-
import { shallow as U } from "../../../../zustand/esm/vanilla/shallow.js";
|
|
6
|
-
import { createContext as Te, forwardRef as Ee, memo as W, useCallback as G, useContext as De, useEffect as K, useLayoutEffect as Oe, useMemo as q, useRef as J, useState as Y } from "react";
|
|
7
|
-
import { Fragment as ke, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
8
|
-
import "react-dom";
|
|
9
|
-
//#region node_modules/@xyflow/react/dist/esm/index.js
|
|
10
|
-
var Ae = Te(null), je = Ae.Provider, Me = x.error001();
|
|
11
|
-
function Q(e, t) {
|
|
12
|
-
let n = De(Ae);
|
|
13
|
-
if (n === null) throw Error(Me);
|
|
14
|
-
return we(n, e, t);
|
|
15
|
-
}
|
|
16
|
-
function $() {
|
|
17
|
-
let e = De(Ae);
|
|
18
|
-
if (e === null) throw Error(Me);
|
|
19
|
-
return q(() => ({
|
|
20
|
-
getState: e.getState,
|
|
21
|
-
setState: e.setState,
|
|
22
|
-
subscribe: e.subscribe
|
|
23
|
-
}), [e]);
|
|
24
|
-
}
|
|
25
|
-
var Ne = { display: "none" }, Pe = {
|
|
26
|
-
position: "absolute",
|
|
27
|
-
width: 1,
|
|
28
|
-
height: 1,
|
|
29
|
-
margin: -1,
|
|
30
|
-
border: 0,
|
|
31
|
-
padding: 0,
|
|
32
|
-
overflow: "hidden",
|
|
33
|
-
clip: "rect(0px, 0px, 0px, 0px)",
|
|
34
|
-
clipPath: "inset(100%)"
|
|
35
|
-
}, Fe = "react-flow__node-desc", Ie = "react-flow__edge-desc", Le = "react-flow__aria-live", Re = (e) => e.ariaLiveMessage, ze = (e) => e.ariaLabelConfig;
|
|
36
|
-
function Be({ rfId: e }) {
|
|
37
|
-
let t = Q(Re);
|
|
38
|
-
return X("div", {
|
|
39
|
-
id: `${Le}-${e}`,
|
|
40
|
-
"aria-live": "assertive",
|
|
41
|
-
"aria-atomic": "true",
|
|
42
|
-
style: Pe,
|
|
43
|
-
children: t
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
function Ve({ rfId: e, disableKeyboardA11y: t }) {
|
|
47
|
-
let n = Q(ze);
|
|
48
|
-
return Z(ke, { children: [
|
|
49
|
-
X("div", {
|
|
50
|
-
id: `${Fe}-${e}`,
|
|
51
|
-
style: Ne,
|
|
52
|
-
children: t ? n["node.a11yDescription.default"] : n["node.a11yDescription.keyboardDisabled"]
|
|
53
|
-
}),
|
|
54
|
-
X("div", {
|
|
55
|
-
id: `${Ie}-${e}`,
|
|
56
|
-
style: Ne,
|
|
57
|
-
children: n["edge.a11yDescription.default"]
|
|
58
|
-
}),
|
|
59
|
-
!t && X(Be, { rfId: e })
|
|
60
|
-
] });
|
|
61
|
-
}
|
|
62
|
-
var He = Ee(({ position: t = "top-left", children: n, className: r, style: i, ...a }, o) => X("div", {
|
|
63
|
-
className: e([
|
|
64
|
-
"react-flow__panel",
|
|
65
|
-
r,
|
|
66
|
-
...`${t}`.split("-")
|
|
67
|
-
]),
|
|
68
|
-
style: i,
|
|
69
|
-
ref: o,
|
|
70
|
-
...a,
|
|
71
|
-
children: n
|
|
72
|
-
}));
|
|
73
|
-
He.displayName = "Panel";
|
|
74
|
-
function Ue({ proOptions: e, position: t = "bottom-right" }) {
|
|
75
|
-
return e?.hideAttribution ? null : X(He, {
|
|
76
|
-
position: t,
|
|
77
|
-
className: "react-flow__attribution",
|
|
78
|
-
"data-message": "Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",
|
|
79
|
-
children: X("a", {
|
|
80
|
-
href: "https://reactflow.dev",
|
|
81
|
-
target: "_blank",
|
|
82
|
-
rel: "noopener noreferrer",
|
|
83
|
-
"aria-label": "React Flow attribution",
|
|
84
|
-
children: "React Flow"
|
|
85
|
-
})
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
var We = (e) => {
|
|
89
|
-
let t = [], n = [];
|
|
90
|
-
for (let [, n] of e.nodeLookup) n.selected && t.push(n.internals.userNode);
|
|
91
|
-
for (let [, t] of e.edgeLookup) t.selected && n.push(t);
|
|
92
|
-
return {
|
|
93
|
-
selectedNodes: t,
|
|
94
|
-
selectedEdges: n
|
|
95
|
-
};
|
|
96
|
-
}, Ge = (e) => e.id;
|
|
97
|
-
function Ke(e, t) {
|
|
98
|
-
return U(e.selectedNodes.map(Ge), t.selectedNodes.map(Ge)) && U(e.selectedEdges.map(Ge), t.selectedEdges.map(Ge));
|
|
99
|
-
}
|
|
100
|
-
function qe({ onSelectionChange: e }) {
|
|
101
|
-
let t = $(), { selectedNodes: n, selectedEdges: r } = Q(We, Ke);
|
|
102
|
-
return K(() => {
|
|
103
|
-
let i = {
|
|
104
|
-
nodes: n,
|
|
105
|
-
edges: r
|
|
106
|
-
};
|
|
107
|
-
e?.(i), t.getState().onSelectionChangeHandlers.forEach((e) => e(i));
|
|
108
|
-
}, [
|
|
109
|
-
n,
|
|
110
|
-
r,
|
|
111
|
-
e
|
|
112
|
-
]), null;
|
|
113
|
-
}
|
|
114
|
-
var Je = (e) => !!e.onSelectionChangeHandlers;
|
|
115
|
-
function Ye({ onSelectionChange: e }) {
|
|
116
|
-
let t = Q(Je);
|
|
117
|
-
return e || t ? X(qe, { onSelectionChange: e }) : null;
|
|
118
|
-
}
|
|
119
|
-
var Xe = typeof window < "u" ? Oe : K, Ze = [0, 0], Qe = {
|
|
120
|
-
x: 0,
|
|
121
|
-
y: 0,
|
|
122
|
-
zoom: 1
|
|
123
|
-
}, $e = [.../* @__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"], et = (e) => ({
|
|
124
|
-
setNodes: e.setNodes,
|
|
125
|
-
setEdges: e.setEdges,
|
|
126
|
-
setMinZoom: e.setMinZoom,
|
|
127
|
-
setMaxZoom: e.setMaxZoom,
|
|
128
|
-
setTranslateExtent: e.setTranslateExtent,
|
|
129
|
-
setNodeExtent: e.setNodeExtent,
|
|
130
|
-
reset: e.reset,
|
|
131
|
-
setDefaultNodesAndEdges: e.setDefaultNodesAndEdges
|
|
132
|
-
}), tt = {
|
|
133
|
-
translateExtent: ne,
|
|
134
|
-
nodeOrigin: Ze,
|
|
135
|
-
minZoom: .5,
|
|
136
|
-
maxZoom: 2,
|
|
137
|
-
elementsSelectable: !0,
|
|
138
|
-
noPanClassName: "nopan",
|
|
139
|
-
rfId: "1"
|
|
140
|
-
};
|
|
141
|
-
function nt(e) {
|
|
142
|
-
let { setNodes: t, setEdges: n, setMinZoom: r, setMaxZoom: i, setTranslateExtent: a, setNodeExtent: o, reset: s, setDefaultNodesAndEdges: c } = Q(et, U), l = $();
|
|
143
|
-
Xe(() => (c(e.defaultNodes, e.defaultEdges), () => {
|
|
144
|
-
u.current = tt, s();
|
|
145
|
-
}), []);
|
|
146
|
-
let u = J(tt);
|
|
147
|
-
return Xe(() => {
|
|
148
|
-
for (let s of $e) {
|
|
149
|
-
let c = e[s];
|
|
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 }));
|
|
151
|
-
}
|
|
152
|
-
u.current = e;
|
|
153
|
-
}, $e.map((t) => e[t])), null;
|
|
154
|
-
}
|
|
155
|
-
function rt() {
|
|
156
|
-
return typeof window > "u" || !window.matchMedia ? null : window.matchMedia("(prefers-color-scheme: dark)");
|
|
157
|
-
}
|
|
158
|
-
function it(e) {
|
|
159
|
-
let [t, n] = Y(e === "system" ? null : e);
|
|
160
|
-
return K(() => {
|
|
161
|
-
if (e !== "system") {
|
|
162
|
-
n(e);
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
let t = rt(), r = () => n(t?.matches ? "dark" : "light");
|
|
166
|
-
return r(), t?.addEventListener("change", r), () => {
|
|
167
|
-
t?.removeEventListener("change", r);
|
|
168
|
-
};
|
|
169
|
-
}, [e]), t === null ? rt()?.matches ? "dark" : "light" : t;
|
|
170
|
-
}
|
|
171
|
-
var at = typeof document < "u" ? document : null;
|
|
172
|
-
function ot(e = null, t = {
|
|
173
|
-
target: at,
|
|
174
|
-
actInsideInputWithModifier: !0
|
|
175
|
-
}) {
|
|
176
|
-
let [n, r] = Y(!1), i = J(!1), a = J(/* @__PURE__ */ new Set([])), [o, s] = q(() => {
|
|
177
|
-
if (e !== null) {
|
|
178
|
-
let t = (Array.isArray(e) ? e : [e]).filter((e) => typeof e == "string").map((e) => e.replace("+", "\n").replace("\n\n", "\n+").split("\n"));
|
|
179
|
-
return [t, t.reduce((e, t) => e.concat(...t), [])];
|
|
180
|
-
}
|
|
181
|
-
return [[], []];
|
|
182
|
-
}, [e]);
|
|
183
|
-
return K(() => {
|
|
184
|
-
let n = t?.target ?? at, c = t?.actInsideInputWithModifier ?? !0;
|
|
185
|
-
if (e !== null) {
|
|
186
|
-
let e = (e) => {
|
|
187
|
-
if (i.current = e.ctrlKey || e.metaKey || e.shiftKey || e.altKey, (!i.current || i.current && !c) && oe(e)) return !1;
|
|
188
|
-
let n = ct(e.code, s);
|
|
189
|
-
if (a.current.add(e[n]), st(o, a.current, !1)) {
|
|
190
|
-
let n = e.composedPath?.()?.[0] || e.target, a = n?.nodeName === "BUTTON" || n?.nodeName === "A";
|
|
191
|
-
t.preventDefault !== !1 && (i.current || !a) && e.preventDefault(), r(!0);
|
|
192
|
-
}
|
|
193
|
-
}, l = (e) => {
|
|
194
|
-
let t = ct(e.code, s);
|
|
195
|
-
st(o, a.current, !0) ? (r(!1), a.current.clear()) : a.current.delete(e[t]), e.key === "Meta" && a.current.clear(), i.current = !1;
|
|
196
|
-
}, u = () => {
|
|
197
|
-
a.current.clear(), r(!1);
|
|
198
|
-
};
|
|
199
|
-
return n?.addEventListener("keydown", e), n?.addEventListener("keyup", l), window.addEventListener("blur", u), window.addEventListener("contextmenu", u), () => {
|
|
200
|
-
n?.removeEventListener("keydown", e), n?.removeEventListener("keyup", l), window.removeEventListener("blur", u), window.removeEventListener("contextmenu", u);
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
}, [e, r]), n;
|
|
204
|
-
}
|
|
205
|
-
function st(e, t, n) {
|
|
206
|
-
return e.filter((e) => n || e.length === t.size).some((e) => e.every((e) => t.has(e)));
|
|
207
|
-
}
|
|
208
|
-
function ct(e, t) {
|
|
209
|
-
return t.includes(e) ? "code" : "key";
|
|
210
|
-
}
|
|
211
|
-
var lt = () => {
|
|
212
|
-
let e = $();
|
|
213
|
-
return q(() => ({
|
|
214
|
-
zoomIn: (t) => {
|
|
215
|
-
let { panZoom: n } = e.getState();
|
|
216
|
-
return n ? n.scaleBy(1.2, t) : Promise.resolve(!1);
|
|
217
|
-
},
|
|
218
|
-
zoomOut: (t) => {
|
|
219
|
-
let { panZoom: n } = e.getState();
|
|
220
|
-
return n ? n.scaleBy(1 / 1.2, t) : Promise.resolve(!1);
|
|
221
|
-
},
|
|
222
|
-
zoomTo: (t, n) => {
|
|
223
|
-
let { panZoom: r } = e.getState();
|
|
224
|
-
return r ? r.scaleTo(t, n) : Promise.resolve(!1);
|
|
225
|
-
},
|
|
226
|
-
getZoom: () => e.getState().transform[2],
|
|
227
|
-
setViewport: async (t, n) => {
|
|
228
|
-
let { transform: [r, i, a], panZoom: o } = e.getState();
|
|
229
|
-
return o ? (await o.setViewport({
|
|
230
|
-
x: t.x ?? r,
|
|
231
|
-
y: t.y ?? i,
|
|
232
|
-
zoom: t.zoom ?? a
|
|
233
|
-
}, n), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
234
|
-
},
|
|
235
|
-
getViewport: () => {
|
|
236
|
-
let [t, n, r] = e.getState().transform;
|
|
237
|
-
return {
|
|
238
|
-
x: t,
|
|
239
|
-
y: n,
|
|
240
|
-
zoom: r
|
|
241
|
-
};
|
|
242
|
-
},
|
|
243
|
-
setCenter: async (t, n, r) => e.getState().setCenter(t, n, r),
|
|
244
|
-
fitBounds: async (t, n) => {
|
|
245
|
-
let { width: r, height: i, minZoom: a, maxZoom: o, panZoom: s } = e.getState(), c = H(t, r, i, a, o, n?.padding ?? .1);
|
|
246
|
-
return s ? (await s.setViewport(c, {
|
|
247
|
-
duration: n?.duration,
|
|
248
|
-
ease: n?.ease,
|
|
249
|
-
interpolate: n?.interpolate
|
|
250
|
-
}), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
251
|
-
},
|
|
252
|
-
screenToFlowPosition: (t, n = {}) => {
|
|
253
|
-
let { transform: r, snapGrid: i, snapToGrid: a, domNode: o } = e.getState();
|
|
254
|
-
if (!o) return t;
|
|
255
|
-
let { x: s, y: c } = o.getBoundingClientRect(), l = {
|
|
256
|
-
x: t.x - s,
|
|
257
|
-
y: t.y - c
|
|
258
|
-
}, u = n.snapGrid ?? i;
|
|
259
|
-
return ge(l, r, n.snapToGrid ?? a, u);
|
|
260
|
-
},
|
|
261
|
-
flowToScreenPosition: (t) => {
|
|
262
|
-
let { transform: n, domNode: r } = e.getState();
|
|
263
|
-
if (!r) return t;
|
|
264
|
-
let { x: i, y: a } = r.getBoundingClientRect(), o = _e(t, n);
|
|
265
|
-
return {
|
|
266
|
-
x: o.x + i,
|
|
267
|
-
y: o.y + a
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
}), []);
|
|
271
|
-
};
|
|
272
|
-
function ut(e, t) {
|
|
273
|
-
let n = [], r = /* @__PURE__ */ new Map(), i = [];
|
|
274
|
-
for (let t of e) if (t.type === "add") {
|
|
275
|
-
i.push(t);
|
|
276
|
-
continue;
|
|
277
|
-
} else if (t.type === "remove" || t.type === "replace") r.set(t.id, [t]);
|
|
278
|
-
else {
|
|
279
|
-
let e = r.get(t.id);
|
|
280
|
-
e ? e.push(t) : r.set(t.id, [t]);
|
|
281
|
-
}
|
|
282
|
-
for (let e of t) {
|
|
283
|
-
let t = r.get(e.id);
|
|
284
|
-
if (!t) {
|
|
285
|
-
n.push(e);
|
|
286
|
-
continue;
|
|
287
|
-
}
|
|
288
|
-
if (t[0].type === "remove") continue;
|
|
289
|
-
if (t[0].type === "replace") {
|
|
290
|
-
n.push({ ...t[0].item });
|
|
291
|
-
continue;
|
|
292
|
-
}
|
|
293
|
-
let i = { ...e };
|
|
294
|
-
for (let e of t) dt(e, i);
|
|
295
|
-
n.push(i);
|
|
296
|
-
}
|
|
297
|
-
return i.length && i.forEach((e) => {
|
|
298
|
-
e.index === void 0 ? n.push({ ...e.item }) : n.splice(e.index, 0, { ...e.item });
|
|
299
|
-
}), n;
|
|
300
|
-
}
|
|
301
|
-
function dt(e, t) {
|
|
302
|
-
switch (e.type) {
|
|
303
|
-
case "select":
|
|
304
|
-
t.selected = e.selected;
|
|
305
|
-
break;
|
|
306
|
-
case "position":
|
|
307
|
-
e.position !== void 0 && (t.position = e.position), e.dragging !== void 0 && (t.dragging = e.dragging);
|
|
308
|
-
break;
|
|
309
|
-
case "dimensions":
|
|
310
|
-
e.dimensions !== void 0 && (t.measured = { ...e.dimensions }, e.setAttributes && ((e.setAttributes === !0 || e.setAttributes === "width") && (t.width = e.dimensions.width), (e.setAttributes === !0 || e.setAttributes === "height") && (t.height = e.dimensions.height))), typeof e.resizing == "boolean" && (t.resizing = e.resizing);
|
|
311
|
-
break;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
function ft(e, t) {
|
|
315
|
-
return ut(e, t);
|
|
316
|
-
}
|
|
317
|
-
function pt(e, t) {
|
|
318
|
-
return ut(e, t);
|
|
319
|
-
}
|
|
320
|
-
function mt(e, t) {
|
|
321
|
-
return {
|
|
322
|
-
id: e,
|
|
323
|
-
type: "select",
|
|
324
|
-
selected: t
|
|
325
|
-
};
|
|
326
|
-
}
|
|
327
|
-
function ht(e, t = /* @__PURE__ */ new Set(), n = !1) {
|
|
328
|
-
let r = [];
|
|
329
|
-
for (let [i, a] of e) {
|
|
330
|
-
let e = t.has(i);
|
|
331
|
-
!(a.selected === void 0 && !e) && a.selected !== e && (n && (a.selected = e), r.push(mt(a.id, e)));
|
|
332
|
-
}
|
|
333
|
-
return r;
|
|
334
|
-
}
|
|
335
|
-
function gt({ items: e = [], lookup: t }) {
|
|
336
|
-
let n = [], r = new Map(e.map((e) => [e.id, e]));
|
|
337
|
-
for (let [r, i] of e.entries()) {
|
|
338
|
-
let e = t.get(i.id), a = e?.internals?.userNode ?? e;
|
|
339
|
-
a !== void 0 && a !== i && n.push({
|
|
340
|
-
id: i.id,
|
|
341
|
-
item: i,
|
|
342
|
-
type: "replace"
|
|
343
|
-
}), a === void 0 && n.push({
|
|
344
|
-
item: i,
|
|
345
|
-
type: "add",
|
|
346
|
-
index: r
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
for (let [e] of t) r.get(e) === void 0 && n.push({
|
|
350
|
-
id: e,
|
|
351
|
-
type: "remove"
|
|
352
|
-
});
|
|
353
|
-
return n;
|
|
354
|
-
}
|
|
355
|
-
function _t(e) {
|
|
356
|
-
return {
|
|
357
|
-
id: e.id,
|
|
358
|
-
type: "remove"
|
|
359
|
-
};
|
|
360
|
-
}
|
|
361
|
-
var vt = (e) => le(e), yt = (e) => ie(e);
|
|
362
|
-
function bt(e) {
|
|
363
|
-
return Ee(e);
|
|
364
|
-
}
|
|
365
|
-
function xt(e) {
|
|
366
|
-
let [t, n] = Y(BigInt(0)), [r] = Y(() => St(() => n((e) => e + BigInt(1))));
|
|
367
|
-
return Xe(() => {
|
|
368
|
-
let t = r.get();
|
|
369
|
-
t.length && (e(t), r.reset());
|
|
370
|
-
}, [t]), r;
|
|
371
|
-
}
|
|
372
|
-
function St(e) {
|
|
373
|
-
let t = [];
|
|
374
|
-
return {
|
|
375
|
-
get: () => t,
|
|
376
|
-
reset: () => {
|
|
377
|
-
t = [];
|
|
378
|
-
},
|
|
379
|
-
push: (n) => {
|
|
380
|
-
t.push(n), e();
|
|
381
|
-
}
|
|
382
|
-
};
|
|
383
|
-
}
|
|
384
|
-
var Ct = Te(null);
|
|
385
|
-
function wt({ children: e }) {
|
|
386
|
-
let t = $(), n = xt(G((e) => {
|
|
387
|
-
let { nodes: n = [], setNodes: r, hasDefaultNodes: i, onNodesChange: a, nodeLookup: o, fitViewQueued: s, onNodesChangeMiddlewareMap: c } = t.getState(), l = n;
|
|
388
|
-
for (let t of e) l = typeof t == "function" ? t(l) : t;
|
|
389
|
-
let u = gt({
|
|
390
|
-
items: l,
|
|
391
|
-
lookup: o
|
|
392
|
-
});
|
|
393
|
-
for (let e of c.values()) u = e(u);
|
|
394
|
-
i && r(l), u.length > 0 ? a?.(u) : s && window.requestAnimationFrame(() => {
|
|
395
|
-
let { fitViewQueued: e, nodes: n, setNodes: r } = t.getState();
|
|
396
|
-
e && r(n);
|
|
397
|
-
});
|
|
398
|
-
}, [])), r = xt(G((e) => {
|
|
399
|
-
let { edges: n = [], setEdges: r, hasDefaultEdges: i, onEdgesChange: a, edgeLookup: o } = t.getState(), s = n;
|
|
400
|
-
for (let t of e) s = typeof t == "function" ? t(s) : t;
|
|
401
|
-
i ? r(s) : a && a(gt({
|
|
402
|
-
items: s,
|
|
403
|
-
lookup: o
|
|
404
|
-
}));
|
|
405
|
-
}, [])), i = q(() => ({
|
|
406
|
-
nodeQueue: n,
|
|
407
|
-
edgeQueue: r
|
|
408
|
-
}), []);
|
|
409
|
-
return X(Ct.Provider, {
|
|
410
|
-
value: i,
|
|
411
|
-
children: e
|
|
412
|
-
});
|
|
413
|
-
}
|
|
414
|
-
function Tt() {
|
|
415
|
-
let e = De(Ct);
|
|
416
|
-
if (!e) throw Error("useBatchContext must be used within a BatchProvider");
|
|
417
|
-
return e;
|
|
418
|
-
}
|
|
419
|
-
var Et = (e) => !!e.panZoom;
|
|
420
|
-
function Dt() {
|
|
421
|
-
let e = lt(), t = $(), n = Tt(), r = Q(Et), i = q(() => {
|
|
422
|
-
let e = (e) => t.getState().nodeLookup.get(e), r = (e) => {
|
|
423
|
-
n.nodeQueue.push(e);
|
|
424
|
-
}, i = (e) => {
|
|
425
|
-
n.edgeQueue.push(e);
|
|
426
|
-
}, a = (e) => {
|
|
427
|
-
let { nodeLookup: n, nodeOrigin: r } = t.getState(), i = vt(e) ? e : n.get(e.id), a = i.parentId ? S(i.position, i.measured, i.parentId, n, r) : i.position;
|
|
428
|
-
return me({
|
|
429
|
-
...i,
|
|
430
|
-
position: a,
|
|
431
|
-
width: i.measured?.width ?? i.width,
|
|
432
|
-
height: i.measured?.height ?? i.height
|
|
433
|
-
});
|
|
434
|
-
}, o = (e, t, n = { replace: !1 }) => {
|
|
435
|
-
r((r) => r.map((r) => {
|
|
436
|
-
if (r.id === e) {
|
|
437
|
-
let e = typeof t == "function" ? t(r) : t;
|
|
438
|
-
return n.replace && vt(e) ? e : {
|
|
439
|
-
...r,
|
|
440
|
-
...e
|
|
441
|
-
};
|
|
442
|
-
}
|
|
443
|
-
return r;
|
|
444
|
-
}));
|
|
445
|
-
}, s = (e, t, n = { replace: !1 }) => {
|
|
446
|
-
i((r) => r.map((r) => {
|
|
447
|
-
if (r.id === e) {
|
|
448
|
-
let e = typeof t == "function" ? t(r) : t;
|
|
449
|
-
return n.replace && yt(e) ? e : {
|
|
450
|
-
...r,
|
|
451
|
-
...e
|
|
452
|
-
};
|
|
453
|
-
}
|
|
454
|
-
return r;
|
|
455
|
-
}));
|
|
456
|
-
};
|
|
457
|
-
return {
|
|
458
|
-
getNodes: () => t.getState().nodes.map((e) => ({ ...e })),
|
|
459
|
-
getNode: (t) => e(t)?.internals.userNode,
|
|
460
|
-
getInternalNode: e,
|
|
461
|
-
getEdges: () => {
|
|
462
|
-
let { edges: e = [] } = t.getState();
|
|
463
|
-
return e.map((e) => ({ ...e }));
|
|
464
|
-
},
|
|
465
|
-
getEdge: (e) => t.getState().edgeLookup.get(e),
|
|
466
|
-
setNodes: r,
|
|
467
|
-
setEdges: i,
|
|
468
|
-
addNodes: (e) => {
|
|
469
|
-
let t = Array.isArray(e) ? e : [e];
|
|
470
|
-
n.nodeQueue.push((e) => [...e, ...t]);
|
|
471
|
-
},
|
|
472
|
-
addEdges: (e) => {
|
|
473
|
-
let t = Array.isArray(e) ? e : [e];
|
|
474
|
-
n.edgeQueue.push((e) => [...e, ...t]);
|
|
475
|
-
},
|
|
476
|
-
toObject: () => {
|
|
477
|
-
let { nodes: e = [], edges: n = [], transform: r } = t.getState(), [i, a, o] = r;
|
|
478
|
-
return {
|
|
479
|
-
nodes: e.map((e) => ({ ...e })),
|
|
480
|
-
edges: n.map((e) => ({ ...e })),
|
|
481
|
-
viewport: {
|
|
482
|
-
x: i,
|
|
483
|
-
y: a,
|
|
484
|
-
zoom: o
|
|
485
|
-
}
|
|
486
|
-
};
|
|
487
|
-
},
|
|
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 A({
|
|
490
|
-
nodesToRemove: e,
|
|
491
|
-
edgesToRemove: n,
|
|
492
|
-
nodes: r,
|
|
493
|
-
edges: i,
|
|
494
|
-
onBeforeDelete: u
|
|
495
|
-
}), p = f.length > 0, m = d.length > 0;
|
|
496
|
-
if (p) {
|
|
497
|
-
let e = f.map(_t);
|
|
498
|
-
o?.(f), c(e);
|
|
499
|
-
}
|
|
500
|
-
if (m) {
|
|
501
|
-
let e = d.map(_t);
|
|
502
|
-
a?.(d), s(e);
|
|
503
|
-
}
|
|
504
|
-
return (m || p) && l?.({
|
|
505
|
-
nodes: d,
|
|
506
|
-
edges: f
|
|
507
|
-
}), {
|
|
508
|
-
deletedNodes: d,
|
|
509
|
-
deletedEdges: f
|
|
510
|
-
};
|
|
511
|
-
},
|
|
512
|
-
getIntersectingNodes: (e, n = !0, r) => {
|
|
513
|
-
let i = de(e), o = i ? e : a(e), s = r !== void 0;
|
|
514
|
-
return o ? (r || t.getState().nodes).filter((r) => {
|
|
515
|
-
let a = t.getState().nodeLookup.get(r.id);
|
|
516
|
-
if (a && !i && (r.id === e.id || !a.internals.positionAbsolute)) return !1;
|
|
517
|
-
let c = me(s ? r : a), l = z(c, o);
|
|
518
|
-
return n && l > 0 || l >= c.width * c.height || l >= o.width * o.height;
|
|
519
|
-
}) : [];
|
|
520
|
-
},
|
|
521
|
-
isNodeIntersecting: (e, t, n = !0) => {
|
|
522
|
-
let r = de(e) ? e : a(e);
|
|
523
|
-
if (!r) return !1;
|
|
524
|
-
let i = z(r, t);
|
|
525
|
-
return n && i > 0 || i >= t.width * t.height || i >= r.width * r.height;
|
|
526
|
-
},
|
|
527
|
-
updateNode: o,
|
|
528
|
-
updateNodeData: (e, t, n = { replace: !1 }) => {
|
|
529
|
-
o(e, (e) => {
|
|
530
|
-
let r = typeof t == "function" ? t(e) : t;
|
|
531
|
-
return n.replace ? {
|
|
532
|
-
...e,
|
|
533
|
-
data: r
|
|
534
|
-
} : {
|
|
535
|
-
...e,
|
|
536
|
-
data: {
|
|
537
|
-
...e.data,
|
|
538
|
-
...r
|
|
539
|
-
}
|
|
540
|
-
};
|
|
541
|
-
}, n);
|
|
542
|
-
},
|
|
543
|
-
updateEdge: s,
|
|
544
|
-
updateEdgeData: (e, t, n = { replace: !1 }) => {
|
|
545
|
-
s(e, (e) => {
|
|
546
|
-
let r = typeof t == "function" ? t(e) : t;
|
|
547
|
-
return n.replace ? {
|
|
548
|
-
...e,
|
|
549
|
-
data: r
|
|
550
|
-
} : {
|
|
551
|
-
...e,
|
|
552
|
-
data: {
|
|
553
|
-
...e.data,
|
|
554
|
-
...r
|
|
555
|
-
}
|
|
556
|
-
};
|
|
557
|
-
}, n);
|
|
558
|
-
},
|
|
559
|
-
getNodesBounds: (e) => {
|
|
560
|
-
let { nodeLookup: n, nodeOrigin: r } = t.getState();
|
|
561
|
-
return L(e, {
|
|
562
|
-
nodeLookup: n,
|
|
563
|
-
nodeOrigin: r
|
|
564
|
-
});
|
|
565
|
-
},
|
|
566
|
-
getHandleConnections: ({ type: e, id: n, nodeId: r }) => Array.from(t.getState().connectionLookup.get(`${r}-${e}${n ? `-${n}` : ""}`)?.values() ?? []),
|
|
567
|
-
getNodeConnections: ({ type: e, handleId: n, nodeId: r }) => Array.from(t.getState().connectionLookup.get(`${r}${e ? n ? `-${e}-${n}` : `-${e}` : ""}`)?.values() ?? []),
|
|
568
|
-
fitView: async (e) => {
|
|
569
|
-
let r = t.getState().fitViewResolver ?? Se();
|
|
570
|
-
return t.setState({
|
|
571
|
-
fitViewQueued: !0,
|
|
572
|
-
fitViewOptions: e,
|
|
573
|
-
fitViewResolver: r
|
|
574
|
-
}), n.nodeQueue.push((e) => [...e]), r.promise;
|
|
575
|
-
}
|
|
576
|
-
};
|
|
577
|
-
}, []);
|
|
578
|
-
return q(() => ({
|
|
579
|
-
...i,
|
|
580
|
-
...e,
|
|
581
|
-
viewportInitialized: r
|
|
582
|
-
}), [r]);
|
|
583
|
-
}
|
|
584
|
-
var Ot = (e) => e.selected, kt = typeof window < "u" ? window : void 0;
|
|
585
|
-
function At({ deleteKeyCode: e, multiSelectionKeyCode: t }) {
|
|
586
|
-
let n = $(), { deleteElements: r } = Dt(), i = ot(e, { actInsideInputWithModifier: !1 }), a = ot(t, { target: kt });
|
|
587
|
-
K(() => {
|
|
588
|
-
if (i) {
|
|
589
|
-
let { edges: e, nodes: t } = n.getState();
|
|
590
|
-
r({
|
|
591
|
-
nodes: t.filter(Ot),
|
|
592
|
-
edges: e.filter(Ot)
|
|
593
|
-
}), n.setState({ nodesSelectionActive: !1 });
|
|
594
|
-
}
|
|
595
|
-
}, [i]), K(() => {
|
|
596
|
-
n.setState({ multiSelectionActive: a });
|
|
597
|
-
}, [a]);
|
|
598
|
-
}
|
|
599
|
-
function jt(e) {
|
|
600
|
-
let t = $();
|
|
601
|
-
K(() => {
|
|
602
|
-
let n = () => {
|
|
603
|
-
if (!e.current || !(e.current.checkVisibility?.() ?? !0)) return !1;
|
|
604
|
-
let n = O(e.current);
|
|
605
|
-
(n.height === 0 || n.width === 0) && t.getState().onError?.("004", x.error004()), t.setState({
|
|
606
|
-
width: n.width || 500,
|
|
607
|
-
height: n.height || 500
|
|
608
|
-
});
|
|
609
|
-
};
|
|
610
|
-
if (e.current) {
|
|
611
|
-
n(), window.addEventListener("resize", n);
|
|
612
|
-
let t = new ResizeObserver(() => n());
|
|
613
|
-
return t.observe(e.current), () => {
|
|
614
|
-
window.removeEventListener("resize", n), t && e.current && t.unobserve(e.current);
|
|
615
|
-
};
|
|
616
|
-
}
|
|
617
|
-
}, []);
|
|
618
|
-
}
|
|
619
|
-
var Mt = {
|
|
620
|
-
position: "absolute",
|
|
621
|
-
width: "100%",
|
|
622
|
-
height: "100%",
|
|
623
|
-
top: 0,
|
|
624
|
-
left: 0
|
|
625
|
-
}, Nt = (e) => ({
|
|
626
|
-
userSelectionActive: e.userSelectionActive,
|
|
627
|
-
lib: e.lib,
|
|
628
|
-
connectionInProgress: e.connection.inProgress
|
|
629
|
-
});
|
|
630
|
-
function Pt({ 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 = J(null), { userSelectionActive: T, lib: E, connectionInProgress: D } = Q(Nt, U), O = ot(m), k = J();
|
|
632
|
-
jt(w);
|
|
633
|
-
let A = G((e) => {
|
|
634
|
-
y?.({
|
|
635
|
-
x: e[0],
|
|
636
|
-
y: e[1],
|
|
637
|
-
zoom: e[2]
|
|
638
|
-
}), b || C.setState({ transform: e });
|
|
639
|
-
}, [y, b]);
|
|
640
|
-
return K(() => {
|
|
641
|
-
if (w.current) {
|
|
642
|
-
k.current = d({
|
|
643
|
-
domNode: w.current,
|
|
644
|
-
minZoom: f,
|
|
645
|
-
maxZoom: p,
|
|
646
|
-
translateExtent: u,
|
|
647
|
-
viewport: l,
|
|
648
|
-
onDraggingChange: (e) => C.setState((t) => t.paneDragging === e ? t : { paneDragging: e }),
|
|
649
|
-
onPanZoomStart: (e, t) => {
|
|
650
|
-
let { onViewportChangeStart: n, onMoveStart: r } = C.getState();
|
|
651
|
-
r?.(e, t), n?.(t);
|
|
652
|
-
},
|
|
653
|
-
onPanZoom: (e, t) => {
|
|
654
|
-
let { onViewportChange: n, onMove: r } = C.getState();
|
|
655
|
-
r?.(e, t), n?.(t);
|
|
656
|
-
},
|
|
657
|
-
onPanZoomEnd: (e, t) => {
|
|
658
|
-
let { onViewportChangeEnd: n, onMoveEnd: r } = C.getState();
|
|
659
|
-
r?.(e, t), n?.(t);
|
|
660
|
-
}
|
|
661
|
-
});
|
|
662
|
-
let { x: e, y: t, zoom: n } = k.current.getViewport();
|
|
663
|
-
return C.setState({
|
|
664
|
-
panZoom: k.current,
|
|
665
|
-
transform: [
|
|
666
|
-
e,
|
|
667
|
-
t,
|
|
668
|
-
n
|
|
669
|
-
],
|
|
670
|
-
domNode: w.current.closest(".react-flow")
|
|
671
|
-
}), () => {
|
|
672
|
-
k.current?.destroy();
|
|
673
|
-
};
|
|
674
|
-
}
|
|
675
|
-
}, []), K(() => {
|
|
676
|
-
k.current?.update({
|
|
677
|
-
onPaneContextMenu: e,
|
|
678
|
-
zoomOnScroll: t,
|
|
679
|
-
zoomOnPinch: n,
|
|
680
|
-
panOnScroll: r,
|
|
681
|
-
panOnScrollSpeed: a,
|
|
682
|
-
panOnScrollMode: o,
|
|
683
|
-
zoomOnDoubleClick: s,
|
|
684
|
-
panOnDrag: c,
|
|
685
|
-
zoomActivationKeyPressed: O,
|
|
686
|
-
preventScrolling: h,
|
|
687
|
-
noPanClassName: v,
|
|
688
|
-
userSelectionActive: T,
|
|
689
|
-
noWheelClassName: _,
|
|
690
|
-
lib: E,
|
|
691
|
-
onTransformChange: A,
|
|
692
|
-
connectionInProgress: D,
|
|
693
|
-
selectionOnDrag: S,
|
|
694
|
-
paneClickDistance: x
|
|
695
|
-
});
|
|
696
|
-
}, [
|
|
697
|
-
e,
|
|
698
|
-
t,
|
|
699
|
-
n,
|
|
700
|
-
r,
|
|
701
|
-
a,
|
|
702
|
-
o,
|
|
703
|
-
s,
|
|
704
|
-
c,
|
|
705
|
-
O,
|
|
706
|
-
h,
|
|
707
|
-
v,
|
|
708
|
-
T,
|
|
709
|
-
_,
|
|
710
|
-
E,
|
|
711
|
-
A,
|
|
712
|
-
D,
|
|
713
|
-
S,
|
|
714
|
-
x
|
|
715
|
-
]), X("div", {
|
|
716
|
-
className: "react-flow__renderer",
|
|
717
|
-
ref: w,
|
|
718
|
-
style: Mt,
|
|
719
|
-
children: g
|
|
720
|
-
});
|
|
721
|
-
}
|
|
722
|
-
var Ft = (e) => ({
|
|
723
|
-
userSelectionActive: e.userSelectionActive,
|
|
724
|
-
userSelectionRect: e.userSelectionRect
|
|
725
|
-
});
|
|
726
|
-
function It() {
|
|
727
|
-
let { userSelectionActive: e, userSelectionRect: t } = Q(Ft, U);
|
|
728
|
-
return e && t ? X("div", {
|
|
729
|
-
className: "react-flow__selection react-flow__container",
|
|
730
|
-
style: {
|
|
731
|
-
width: t.width,
|
|
732
|
-
height: t.height,
|
|
733
|
-
transform: `translate(${t.x}px, ${t.y}px)`
|
|
734
|
-
}
|
|
735
|
-
}) : null;
|
|
736
|
-
}
|
|
737
|
-
var Lt = (e, t) => (n) => {
|
|
738
|
-
n.target === t.current && e?.(n);
|
|
739
|
-
}, Rt = (e) => ({
|
|
740
|
-
userSelectionActive: e.userSelectionActive,
|
|
741
|
-
elementsSelectable: e.elementsSelectable,
|
|
742
|
-
connectionInProgress: e.connection.inProgress,
|
|
743
|
-
dragging: e.paneDragging
|
|
744
|
-
});
|
|
745
|
-
function zt({ 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(Rt, U), C = b && (t || y), w = J(null), T = J(), E = J(/* @__PURE__ */ new Set()), D = J(/* @__PURE__ */ new Set()), O = J(!1), k = (e) => {
|
|
747
|
-
if (O.current || S) {
|
|
748
|
-
O.current = !1;
|
|
749
|
-
return;
|
|
750
|
-
}
|
|
751
|
-
u?.(e), v.getState().resetSelectedElements(), v.setState({ nodesSelectionActive: !1 });
|
|
752
|
-
}, A = (e) => {
|
|
753
|
-
if (Array.isArray(i) && i?.includes(2)) {
|
|
754
|
-
e.preventDefault();
|
|
755
|
-
return;
|
|
756
|
-
}
|
|
757
|
-
d?.(e);
|
|
758
|
-
}, j = f ? (e) => f(e) : void 0;
|
|
759
|
-
return Z("div", {
|
|
760
|
-
className: e(["react-flow__pane", {
|
|
761
|
-
draggable: i === !0 || Array.isArray(i) && i.includes(0),
|
|
762
|
-
dragging: x,
|
|
763
|
-
selection: t
|
|
764
|
-
}]),
|
|
765
|
-
onClick: C ? void 0 : Lt(k, w),
|
|
766
|
-
onContextMenu: Lt(A, w),
|
|
767
|
-
onWheel: Lt(j, w),
|
|
768
|
-
onPointerEnter: C ? void 0 : p,
|
|
769
|
-
onPointerMove: C ? (e) => {
|
|
770
|
-
let { userSelectionRect: t, transform: i, nodeLookup: o, edgeLookup: l, connectionLookup: u, triggerNodeChanges: d, triggerEdgeChanges: f, defaultEdgeOptions: p, resetSelectedElements: m } = v.getState();
|
|
771
|
-
if (!T.current || !t) return;
|
|
772
|
-
let { x: g, y: _ } = M(e.nativeEvent, T.current), { startX: y, startY: b } = t;
|
|
773
|
-
if (!O.current) {
|
|
774
|
-
let t = n ? 0 : a;
|
|
775
|
-
if (Math.hypot(g - y, _ - b) <= t) return;
|
|
776
|
-
m(), c?.(e);
|
|
777
|
-
}
|
|
778
|
-
O.current = !0;
|
|
779
|
-
let x = {
|
|
780
|
-
startX: y,
|
|
781
|
-
startY: b,
|
|
782
|
-
x: g < y ? g : y,
|
|
783
|
-
y: _ < b ? _ : b,
|
|
784
|
-
width: Math.abs(g - y),
|
|
785
|
-
height: Math.abs(_ - b)
|
|
786
|
-
}, S = E.current, C = D.current;
|
|
787
|
-
E.current = new Set(R(o, x, i, r === s.Partial, !0).map((e) => e.id)), D.current = /* @__PURE__ */ new Set();
|
|
788
|
-
let w = p?.selectable ?? !0;
|
|
789
|
-
for (let e of E.current) {
|
|
790
|
-
let t = u.get(e);
|
|
791
|
-
if (t) for (let { edgeId: e } of t.values()) {
|
|
792
|
-
let t = l.get(e);
|
|
793
|
-
t && (t.selectable ?? w) && D.current.add(e);
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
h(S, E.current) || d(ht(o, E.current, !0)), h(C, D.current) || f(ht(l, D.current)), v.setState({
|
|
797
|
-
userSelectionRect: x,
|
|
798
|
-
userSelectionActive: !0,
|
|
799
|
-
nodesSelectionActive: !1
|
|
800
|
-
});
|
|
801
|
-
} : m,
|
|
802
|
-
onPointerUp: C ? (e) => {
|
|
803
|
-
e.button === 0 && (e.target?.releasePointerCapture?.(e.pointerId), !y && e.target === w.current && v.getState().userSelectionRect && k?.(e), v.setState({
|
|
804
|
-
userSelectionActive: !1,
|
|
805
|
-
userSelectionRect: null
|
|
806
|
-
}), O.current && (l?.(e), v.setState({ nodesSelectionActive: E.current.size > 0 })));
|
|
807
|
-
} : void 0,
|
|
808
|
-
onPointerDownCapture: C ? (e) => {
|
|
809
|
-
let { domNode: r } = v.getState();
|
|
810
|
-
if (T.current = r?.getBoundingClientRect(), !T.current) return;
|
|
811
|
-
let i = e.target === w.current;
|
|
812
|
-
if (!i && e.target.closest(".nokey") || !t || !(o && i || n) || e.button !== 0 || !e.isPrimary) return;
|
|
813
|
-
e.target?.setPointerCapture?.(e.pointerId), O.current = !1;
|
|
814
|
-
let { x: a, y: s } = M(e.nativeEvent, T.current);
|
|
815
|
-
v.setState({ userSelectionRect: {
|
|
816
|
-
width: 0,
|
|
817
|
-
height: 0,
|
|
818
|
-
startX: a,
|
|
819
|
-
startY: s,
|
|
820
|
-
x: a,
|
|
821
|
-
y: s
|
|
822
|
-
} }), i || (e.stopPropagation(), e.preventDefault());
|
|
823
|
-
} : void 0,
|
|
824
|
-
onClickCapture: C ? (e) => {
|
|
825
|
-
O.current &&= (e.stopPropagation(), !1);
|
|
826
|
-
} : void 0,
|
|
827
|
-
onPointerLeave: g,
|
|
828
|
-
ref: w,
|
|
829
|
-
style: Mt,
|
|
830
|
-
children: [_, X(It, {})]
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
function Bt({ id: e, store: t, unselect: n = !1, nodeRef: r }) {
|
|
834
|
-
let { addSelectedNodes: i, unselectNodesAndEdges: a, multiSelectionActive: o, nodeLookup: s, onError: c } = t.getState(), l = s.get(e);
|
|
835
|
-
if (!l) {
|
|
836
|
-
c?.("012", x.error012(e));
|
|
837
|
-
return;
|
|
838
|
-
}
|
|
839
|
-
t.setState({ nodesSelectionActive: !1 }), l.selected ? (n || l.selected && o) && (a({
|
|
840
|
-
nodes: [l],
|
|
841
|
-
edges: []
|
|
842
|
-
}), requestAnimationFrame(() => r?.current?.blur())) : i([e]);
|
|
843
|
-
}
|
|
844
|
-
function Vt({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector: r, nodeId: i, isSelectable: a, nodeClickDistance: o }) {
|
|
845
|
-
let s = $(), [l, u] = Y(!1), d = J();
|
|
846
|
-
return K(() => {
|
|
847
|
-
d.current = c({
|
|
848
|
-
getStoreItems: () => s.getState(),
|
|
849
|
-
onNodeMouseDown: (t) => {
|
|
850
|
-
Bt({
|
|
851
|
-
id: t,
|
|
852
|
-
store: s,
|
|
853
|
-
nodeRef: e
|
|
854
|
-
});
|
|
855
|
-
},
|
|
856
|
-
onDragStart: () => {
|
|
857
|
-
u(!0);
|
|
858
|
-
},
|
|
859
|
-
onDragStop: () => {
|
|
860
|
-
u(!1);
|
|
861
|
-
}
|
|
862
|
-
});
|
|
863
|
-
}, []), K(() => {
|
|
864
|
-
if (!(t || !e.current || !d.current)) return d.current.update({
|
|
865
|
-
noDragClassName: n,
|
|
866
|
-
handleSelector: r,
|
|
867
|
-
domNode: e.current,
|
|
868
|
-
isSelectable: a,
|
|
869
|
-
nodeId: i,
|
|
870
|
-
nodeClickDistance: o
|
|
871
|
-
}), () => {
|
|
872
|
-
d.current?.destroy();
|
|
873
|
-
};
|
|
874
|
-
}, [
|
|
875
|
-
n,
|
|
876
|
-
r,
|
|
877
|
-
t,
|
|
878
|
-
a,
|
|
879
|
-
e,
|
|
880
|
-
i,
|
|
881
|
-
o
|
|
882
|
-
]), l;
|
|
883
|
-
}
|
|
884
|
-
var Ht = (e) => (t) => t.selected && (t.draggable || e && t.draggable === void 0);
|
|
885
|
-
function Ut() {
|
|
886
|
-
let e = $();
|
|
887
|
-
return G((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 = Ht(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
|
-
for (let [, e] of c) {
|
|
890
|
-
if (!d(e)) continue;
|
|
891
|
-
let t = {
|
|
892
|
-
x: e.internals.positionAbsolute.x + m,
|
|
893
|
-
y: e.internals.positionAbsolute.y + h
|
|
894
|
-
};
|
|
895
|
-
r && (t = ve(t, i));
|
|
896
|
-
let { position: a, positionAbsolute: s } = g({
|
|
897
|
-
nodeId: e.id,
|
|
898
|
-
nextPosition: t,
|
|
899
|
-
nodeLookup: c,
|
|
900
|
-
nodeExtent: n,
|
|
901
|
-
nodeOrigin: l,
|
|
902
|
-
onError: o
|
|
903
|
-
});
|
|
904
|
-
e.position = a, e.internals.positionAbsolute = s, u.set(e.id, e);
|
|
905
|
-
}
|
|
906
|
-
s(u);
|
|
907
|
-
}, []);
|
|
908
|
-
}
|
|
909
|
-
var Wt = Te(null), Gt = Wt.Provider;
|
|
910
|
-
Wt.Consumer;
|
|
911
|
-
var Kt = () => De(Wt), qt = (e) => ({
|
|
912
|
-
connectOnClick: e.connectOnClick,
|
|
913
|
-
noPanClassName: e.noPanClassName,
|
|
914
|
-
rfId: e.rfId
|
|
915
|
-
}), Jt = (e, t, r) => (i) => {
|
|
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
|
-
return {
|
|
918
|
-
connectingFrom: c?.nodeId === e && c?.id === t && c?.type === r,
|
|
919
|
-
connectingTo: d,
|
|
920
|
-
clickConnecting: a?.nodeId === e && a?.id === t && a?.type === r,
|
|
921
|
-
isPossibleEndHandle: o === n.Strict ? c?.type !== r : e !== c?.nodeId || t !== c?.id,
|
|
922
|
-
connectionInProcess: !!c,
|
|
923
|
-
clickConnectionInProcess: !!a,
|
|
924
|
-
valid: d && u
|
|
925
|
-
};
|
|
926
|
-
};
|
|
927
|
-
function Yt({ 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 = Kt(), { connectOnClick: C, noPanClassName: w, rfId: T } = Q(qt, U), { connectingFrom: E, connectingTo: D, clickConnecting: O, isPossibleEndHandle: k, connectionInProcess: A, clickConnectionInProcess: j, valid: M } = Q(Jt(S, v, t), U);
|
|
929
|
-
S || b.getState().onError?.("010", x.error010());
|
|
930
|
-
let N = (e) => {
|
|
931
|
-
let { defaultEdgeOptions: t, onConnect: n, hasDefaultEdges: r } = b.getState(), i = {
|
|
932
|
-
...t,
|
|
933
|
-
...e
|
|
934
|
-
};
|
|
935
|
-
if (r) {
|
|
936
|
-
let { edges: e, setEdges: t } = b.getState();
|
|
937
|
-
t(p(i, e));
|
|
938
|
-
}
|
|
939
|
-
n?.(i), u?.(i);
|
|
940
|
-
}, F = (e) => {
|
|
941
|
-
if (!S) return;
|
|
942
|
-
let t = ce(e.nativeEvent);
|
|
943
|
-
if (o && (t && e.button === 0 || !t)) {
|
|
944
|
-
let t = b.getState();
|
|
945
|
-
l.onPointerDown(e.nativeEvent, {
|
|
946
|
-
handleDomNode: e.currentTarget,
|
|
947
|
-
autoPanOnConnect: t.autoPanOnConnect,
|
|
948
|
-
connectionMode: t.connectionMode,
|
|
949
|
-
connectionRadius: t.connectionRadius,
|
|
950
|
-
domNode: t.domNode,
|
|
951
|
-
nodeLookup: t.nodeLookup,
|
|
952
|
-
lib: t.lib,
|
|
953
|
-
isTarget: y,
|
|
954
|
-
handleId: v,
|
|
955
|
-
nodeId: S,
|
|
956
|
-
flowId: t.rfId,
|
|
957
|
-
panBy: t.panBy,
|
|
958
|
-
cancelConnection: t.cancelConnection,
|
|
959
|
-
onConnectStart: t.onConnectStart,
|
|
960
|
-
onConnectEnd: (...e) => b.getState().onConnectEnd?.(...e),
|
|
961
|
-
updateConnection: t.updateConnection,
|
|
962
|
-
onConnect: N,
|
|
963
|
-
isValidConnection: r || ((...e) => b.getState().isValidConnection?.(...e) ?? !0),
|
|
964
|
-
getTransform: () => b.getState().transform,
|
|
965
|
-
getFromHandle: () => b.getState().connection.fromHandle,
|
|
966
|
-
autoPanSpeed: t.autoPanSpeed,
|
|
967
|
-
dragThreshold: t.connectionDragThreshold
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
t ? m?.(e) : h?.(e);
|
|
971
|
-
};
|
|
972
|
-
return X("div", {
|
|
973
|
-
"data-handleid": v,
|
|
974
|
-
"data-nodeid": S,
|
|
975
|
-
"data-handlepos": n,
|
|
976
|
-
"data-id": `${T}-${S}-${v}-${t}`,
|
|
977
|
-
className: e([
|
|
978
|
-
"react-flow__handle",
|
|
979
|
-
`react-flow__handle-${n}`,
|
|
980
|
-
"nodrag",
|
|
981
|
-
w,
|
|
982
|
-
f,
|
|
983
|
-
{
|
|
984
|
-
source: !y,
|
|
985
|
-
target: y,
|
|
986
|
-
connectable: i,
|
|
987
|
-
connectablestart: o,
|
|
988
|
-
connectableend: s,
|
|
989
|
-
clickconnecting: O,
|
|
990
|
-
connectingfrom: E,
|
|
991
|
-
connectingto: D,
|
|
992
|
-
valid: M,
|
|
993
|
-
connectionindicator: i && (!A || k) && (A || j ? s : o)
|
|
994
|
-
}
|
|
995
|
-
]),
|
|
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
|
-
ref: _,
|
|
1034
|
-
...g,
|
|
1035
|
-
children: d
|
|
1036
|
-
});
|
|
1037
|
-
}
|
|
1038
|
-
var Xt = W(bt(Yt));
|
|
1039
|
-
function Zt({ data: e, isConnectable: t, sourcePosition: n = a.Bottom }) {
|
|
1040
|
-
return Z(ke, { children: [e?.label, X(Xt, {
|
|
1041
|
-
type: "source",
|
|
1042
|
-
position: n,
|
|
1043
|
-
isConnectable: t
|
|
1044
|
-
})] });
|
|
1045
|
-
}
|
|
1046
|
-
function Qt({ data: e, isConnectable: t, targetPosition: n = a.Top, sourcePosition: r = a.Bottom }) {
|
|
1047
|
-
return Z(ke, { children: [
|
|
1048
|
-
X(Xt, {
|
|
1049
|
-
type: "target",
|
|
1050
|
-
position: n,
|
|
1051
|
-
isConnectable: t
|
|
1052
|
-
}),
|
|
1053
|
-
e?.label,
|
|
1054
|
-
X(Xt, {
|
|
1055
|
-
type: "source",
|
|
1056
|
-
position: r,
|
|
1057
|
-
isConnectable: t
|
|
1058
|
-
})
|
|
1059
|
-
] });
|
|
1060
|
-
}
|
|
1061
|
-
function $t() {
|
|
1062
|
-
return null;
|
|
1063
|
-
}
|
|
1064
|
-
function en({ data: e, isConnectable: t, targetPosition: n = a.Top }) {
|
|
1065
|
-
return Z(ke, { children: [X(Xt, {
|
|
1066
|
-
type: "target",
|
|
1067
|
-
position: n,
|
|
1068
|
-
isConnectable: t
|
|
1069
|
-
}), e?.label] });
|
|
1070
|
-
}
|
|
1071
|
-
var tn = {
|
|
1072
|
-
ArrowUp: {
|
|
1073
|
-
x: 0,
|
|
1074
|
-
y: -1
|
|
1075
|
-
},
|
|
1076
|
-
ArrowDown: {
|
|
1077
|
-
x: 0,
|
|
1078
|
-
y: 1
|
|
1079
|
-
},
|
|
1080
|
-
ArrowLeft: {
|
|
1081
|
-
x: -1,
|
|
1082
|
-
y: 0
|
|
1083
|
-
},
|
|
1084
|
-
ArrowRight: {
|
|
1085
|
-
x: 1,
|
|
1086
|
-
y: 0
|
|
1087
|
-
}
|
|
1088
|
-
}, nn = {
|
|
1089
|
-
input: Zt,
|
|
1090
|
-
default: Qt,
|
|
1091
|
-
output: en,
|
|
1092
|
-
group: $t
|
|
1093
|
-
};
|
|
1094
|
-
function rn(e) {
|
|
1095
|
-
return e.internals.handleBounds === void 0 ? {
|
|
1096
|
-
width: e.width ?? e.initialWidth ?? e.style?.width,
|
|
1097
|
-
height: e.height ?? e.initialHeight ?? e.style?.height
|
|
1098
|
-
} : {
|
|
1099
|
-
width: e.width ?? e.style?.width,
|
|
1100
|
-
height: e.height ?? e.style?.height
|
|
1101
|
-
};
|
|
1102
|
-
}
|
|
1103
|
-
var an = (e) => {
|
|
1104
|
-
let { width: t, height: n, x: r, y: i } = F(e.nodeLookup, { filter: (e) => !!e.selected });
|
|
1105
|
-
return {
|
|
1106
|
-
width: ue(t) ? t : null,
|
|
1107
|
-
height: ue(n) ? n : null,
|
|
1108
|
-
userSelectionActive: e.userSelectionActive,
|
|
1109
|
-
transformString: `translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${r}px,${i}px)`
|
|
1110
|
-
};
|
|
1111
|
-
};
|
|
1112
|
-
function on({ onSelectionContextMenu: t, noPanClassName: n, disableKeyboardA11y: r }) {
|
|
1113
|
-
let i = $(), { width: a, height: o, transformString: s, userSelectionActive: c } = Q(an, U), l = Ut(), u = J(null);
|
|
1114
|
-
K(() => {
|
|
1115
|
-
r || u.current?.focus({ preventScroll: !0 });
|
|
1116
|
-
}, [r]);
|
|
1117
|
-
let d = !c && a !== null && o !== null;
|
|
1118
|
-
if (Vt({
|
|
1119
|
-
nodeRef: u,
|
|
1120
|
-
disabled: !d
|
|
1121
|
-
}), !d) return null;
|
|
1122
|
-
let f = t ? (e) => {
|
|
1123
|
-
t(e, i.getState().nodes.filter((e) => e.selected));
|
|
1124
|
-
} : void 0;
|
|
1125
|
-
return X("div", {
|
|
1126
|
-
className: e([
|
|
1127
|
-
"react-flow__nodesselection",
|
|
1128
|
-
"react-flow__container",
|
|
1129
|
-
n
|
|
1130
|
-
]),
|
|
1131
|
-
style: { transform: s },
|
|
1132
|
-
children: X("div", {
|
|
1133
|
-
ref: u,
|
|
1134
|
-
className: "react-flow__nodesselection-rect",
|
|
1135
|
-
onContextMenu: f,
|
|
1136
|
-
tabIndex: r ? void 0 : -1,
|
|
1137
|
-
onKeyDown: r ? void 0 : (e) => {
|
|
1138
|
-
Object.prototype.hasOwnProperty.call(tn, e.key) && (e.preventDefault(), l({
|
|
1139
|
-
direction: tn[e.key],
|
|
1140
|
-
factor: e.shiftKey ? 4 : 1
|
|
1141
|
-
}));
|
|
1142
|
-
},
|
|
1143
|
-
style: {
|
|
1144
|
-
width: a,
|
|
1145
|
-
height: o
|
|
1146
|
-
}
|
|
1147
|
-
})
|
|
1148
|
-
});
|
|
1149
|
-
}
|
|
1150
|
-
var sn = typeof window < "u" ? window : void 0, cn = (e) => ({
|
|
1151
|
-
nodesSelectionActive: e.nodesSelectionActive,
|
|
1152
|
-
userSelectionActive: e.userSelectionActive
|
|
1153
|
-
});
|
|
1154
|
-
function ln({ 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(cn, U), L = ot(l, { target: sn }), R = ot(h, { target: sn }), z = R || w, B = R || b, V = u && z !== !0, H = L || I || V;
|
|
1156
|
-
return At({
|
|
1157
|
-
deleteKeyCode: c,
|
|
1158
|
-
multiSelectionKeyCode: m
|
|
1159
|
-
}), X(Pt, {
|
|
1160
|
-
onPaneContextMenu: a,
|
|
1161
|
-
elementsSelectable: _,
|
|
1162
|
-
zoomOnScroll: v,
|
|
1163
|
-
zoomOnPinch: y,
|
|
1164
|
-
panOnScroll: B,
|
|
1165
|
-
panOnScrollSpeed: x,
|
|
1166
|
-
panOnScrollMode: S,
|
|
1167
|
-
zoomOnDoubleClick: C,
|
|
1168
|
-
panOnDrag: !L && z,
|
|
1169
|
-
defaultViewport: T,
|
|
1170
|
-
translateExtent: E,
|
|
1171
|
-
minZoom: D,
|
|
1172
|
-
maxZoom: O,
|
|
1173
|
-
zoomActivationKeyCode: g,
|
|
1174
|
-
preventScrolling: k,
|
|
1175
|
-
noWheelClassName: j,
|
|
1176
|
-
noPanClassName: M,
|
|
1177
|
-
onViewportChange: P,
|
|
1178
|
-
isControlledViewport: F,
|
|
1179
|
-
paneClickDistance: s,
|
|
1180
|
-
selectionOnDrag: V,
|
|
1181
|
-
children: Z(zt, {
|
|
1182
|
-
onSelectionStart: f,
|
|
1183
|
-
onSelectionEnd: p,
|
|
1184
|
-
onPaneClick: t,
|
|
1185
|
-
onPaneMouseEnter: n,
|
|
1186
|
-
onPaneMouseMove: r,
|
|
1187
|
-
onPaneMouseLeave: i,
|
|
1188
|
-
onPaneContextMenu: a,
|
|
1189
|
-
onPaneScroll: o,
|
|
1190
|
-
panOnDrag: z,
|
|
1191
|
-
isSelecting: !!H,
|
|
1192
|
-
selectionMode: d,
|
|
1193
|
-
selectionKeyPressed: L,
|
|
1194
|
-
paneClickDistance: s,
|
|
1195
|
-
selectionOnDrag: V,
|
|
1196
|
-
children: [e, ee && X(on, {
|
|
1197
|
-
onSelectionContextMenu: A,
|
|
1198
|
-
noPanClassName: M,
|
|
1199
|
-
disableKeyboardA11y: N
|
|
1200
|
-
})]
|
|
1201
|
-
})
|
|
1202
|
-
});
|
|
1203
|
-
}
|
|
1204
|
-
ln.displayName = "FlowRenderer";
|
|
1205
|
-
var un = W(ln), dn = (e) => (t) => e ? R(t.nodeLookup, {
|
|
1206
|
-
x: 0,
|
|
1207
|
-
y: 0,
|
|
1208
|
-
width: t.width,
|
|
1209
|
-
height: t.height
|
|
1210
|
-
}, t.transform, !0).map((e) => e.id) : Array.from(t.nodeLookup.keys());
|
|
1211
|
-
function fn(e) {
|
|
1212
|
-
return Q(G(dn(e), [e]), U);
|
|
1213
|
-
}
|
|
1214
|
-
var pn = (e) => e.updateNodeInternals;
|
|
1215
|
-
function mn() {
|
|
1216
|
-
let e = Q(pn), [t] = Y(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((t) => {
|
|
1217
|
-
let n = /* @__PURE__ */ new Map();
|
|
1218
|
-
t.forEach((e) => {
|
|
1219
|
-
let t = e.target.getAttribute("data-id");
|
|
1220
|
-
n.set(t, {
|
|
1221
|
-
id: t,
|
|
1222
|
-
nodeElement: e.target,
|
|
1223
|
-
force: !0
|
|
1224
|
-
});
|
|
1225
|
-
}), e(n);
|
|
1226
|
-
}));
|
|
1227
|
-
return K(() => () => {
|
|
1228
|
-
t?.disconnect();
|
|
1229
|
-
}, [t]), t;
|
|
1230
|
-
}
|
|
1231
|
-
function hn({ node: e, nodeType: t, hasDimensions: n, resizeObserver: r }) {
|
|
1232
|
-
let i = $(), a = J(null), o = J(null), s = J(e.sourcePosition), c = J(e.targetPosition), l = J(t), u = n && !!e.internals.handleBounds;
|
|
1233
|
-
return K(() => {
|
|
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]), K(() => () => {
|
|
1236
|
-
o.current &&= (r?.unobserve(o.current), null);
|
|
1237
|
-
}, []), K(() => {
|
|
1238
|
-
if (a.current) {
|
|
1239
|
-
let n = l.current !== t, r = s.current !== e.sourcePosition, o = c.current !== e.targetPosition;
|
|
1240
|
-
(n || r || o) && (l.current = t, s.current = e.sourcePosition, c.current = e.targetPosition, i.getState().updateNodeInternals(new Map([[e.id, {
|
|
1241
|
-
id: e.id,
|
|
1242
|
-
nodeElement: a.current,
|
|
1243
|
-
force: !0
|
|
1244
|
-
}]])));
|
|
1245
|
-
}
|
|
1246
|
-
}, [
|
|
1247
|
-
e.id,
|
|
1248
|
-
t,
|
|
1249
|
-
e.sourcePosition,
|
|
1250
|
-
e.targetPosition
|
|
1251
|
-
]), a;
|
|
1252
|
-
}
|
|
1253
|
-
function gn({ 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
|
-
let n = e.nodeLookup.get(t), r = e.parentLookup.has(t);
|
|
1256
|
-
return {
|
|
1257
|
-
node: n,
|
|
1258
|
-
internals: n.internals,
|
|
1259
|
-
isParent: r
|
|
1260
|
-
};
|
|
1261
|
-
}, U), T = S.type || "default", E = _?.[T] || nn[T];
|
|
1262
|
-
E === void 0 && (y?.("003", x.error003(T)), T = "default", E = _?.default || nn.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 = hn({
|
|
1264
|
-
node: S,
|
|
1265
|
-
nodeType: T,
|
|
1266
|
-
hasDimensions: M,
|
|
1267
|
-
resizeObserver: f
|
|
1268
|
-
}), P = Vt({
|
|
1269
|
-
nodeRef: N,
|
|
1270
|
-
disabled: S.hidden || !D,
|
|
1271
|
-
noDragClassName: p,
|
|
1272
|
-
handleSelector: S.dragHandle,
|
|
1273
|
-
nodeId: t,
|
|
1274
|
-
isSelectable: O,
|
|
1275
|
-
nodeClickDistance: v
|
|
1276
|
-
}), F = Ut();
|
|
1277
|
-
if (S.hidden) return null;
|
|
1278
|
-
let ee = I(S), L = rn(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
|
-
let { selectNodesOnDrag: r, nodeDragThreshold: i } = j.getState();
|
|
1280
|
-
O && (!r || !D || i > 0) && Bt({
|
|
1281
|
-
id: t,
|
|
1282
|
-
store: j,
|
|
1283
|
-
nodeRef: N
|
|
1284
|
-
}), n && n(e, { ...C.userNode });
|
|
1285
|
-
}, ie = (e) => {
|
|
1286
|
-
if (!(oe(e.nativeEvent) || h)) {
|
|
1287
|
-
if (b.includes(e.key) && O) Bt({
|
|
1288
|
-
id: t,
|
|
1289
|
-
store: j,
|
|
1290
|
-
unselect: e.key === "Escape",
|
|
1291
|
-
nodeRef: N
|
|
1292
|
-
});
|
|
1293
|
-
else if (D && S.selected && Object.prototype.hasOwnProperty.call(tn, e.key)) {
|
|
1294
|
-
e.preventDefault();
|
|
1295
|
-
let { ariaLabelConfig: t } = j.getState();
|
|
1296
|
-
j.setState({ ariaLiveMessage: t["node.a11yDescription.ariaLiveMessage"]({
|
|
1297
|
-
direction: e.key.replace("Arrow", "").toLowerCase(),
|
|
1298
|
-
x: ~~C.positionAbsolute.x,
|
|
1299
|
-
y: ~~C.positionAbsolute.y
|
|
1300
|
-
}) }), F({
|
|
1301
|
-
direction: tn[e.key],
|
|
1302
|
-
factor: e.shiftKey ? 4 : 1
|
|
1303
|
-
});
|
|
1304
|
-
}
|
|
1305
|
-
}
|
|
1306
|
-
}, ae = () => {
|
|
1307
|
-
if (h || !N.current?.matches(":focus-visible")) return;
|
|
1308
|
-
let { transform: e, width: n, height: r, autoPanOnNodeFocus: i, setCenter: a } = j.getState();
|
|
1309
|
-
i && (R(new Map([[t, S]]), {
|
|
1310
|
-
x: 0,
|
|
1311
|
-
y: 0,
|
|
1312
|
-
width: n,
|
|
1313
|
-
height: r
|
|
1314
|
-
}, e, !0).length > 0 || a(S.position.x + ee.width / 2, S.position.y + ee.height / 2, { zoom: e[2] }));
|
|
1315
|
-
};
|
|
1316
|
-
return X("div", {
|
|
1317
|
-
className: e([
|
|
1318
|
-
"react-flow__node",
|
|
1319
|
-
`react-flow__node-${T}`,
|
|
1320
|
-
{ [m]: D },
|
|
1321
|
-
S.className,
|
|
1322
|
-
{
|
|
1323
|
-
selected: S.selected,
|
|
1324
|
-
selectable: O,
|
|
1325
|
-
parent: w,
|
|
1326
|
-
draggable: D,
|
|
1327
|
-
dragging: P
|
|
1328
|
-
}
|
|
1329
|
-
]),
|
|
1330
|
-
ref: N,
|
|
1331
|
-
style: {
|
|
1332
|
-
zIndex: C.z,
|
|
1333
|
-
transform: `translate(${C.positionAbsolute.x}px,${C.positionAbsolute.y}px)`,
|
|
1334
|
-
pointerEvents: z ? "all" : "none",
|
|
1335
|
-
visibility: M ? "visible" : "hidden",
|
|
1336
|
-
...S.style,
|
|
1337
|
-
...L
|
|
1338
|
-
},
|
|
1339
|
-
"data-id": t,
|
|
1340
|
-
"data-testid": `rf__node-${t}`,
|
|
1341
|
-
onMouseEnter: B,
|
|
1342
|
-
onMouseMove: V,
|
|
1343
|
-
onMouseLeave: H,
|
|
1344
|
-
onContextMenu: te,
|
|
1345
|
-
onClick: re,
|
|
1346
|
-
onDoubleClick: ne,
|
|
1347
|
-
onKeyDown: A ? ie : void 0,
|
|
1348
|
-
tabIndex: A ? 0 : void 0,
|
|
1349
|
-
onFocus: A ? ae : void 0,
|
|
1350
|
-
role: S.ariaRole ?? (A ? "group" : void 0),
|
|
1351
|
-
"aria-roledescription": "node",
|
|
1352
|
-
"aria-describedby": h ? void 0 : `${Fe}-${g}`,
|
|
1353
|
-
"aria-label": S.ariaLabel,
|
|
1354
|
-
...S.domAttributes,
|
|
1355
|
-
children: X(Gt, {
|
|
1356
|
-
value: t,
|
|
1357
|
-
children: X(E, {
|
|
1358
|
-
id: t,
|
|
1359
|
-
data: S.data,
|
|
1360
|
-
type: T,
|
|
1361
|
-
positionAbsoluteX: C.positionAbsolute.x,
|
|
1362
|
-
positionAbsoluteY: C.positionAbsolute.y,
|
|
1363
|
-
selected: S.selected ?? !1,
|
|
1364
|
-
selectable: O,
|
|
1365
|
-
draggable: D,
|
|
1366
|
-
deletable: S.deletable ?? !0,
|
|
1367
|
-
isConnectable: k,
|
|
1368
|
-
sourcePosition: S.sourcePosition,
|
|
1369
|
-
targetPosition: S.targetPosition,
|
|
1370
|
-
dragging: P,
|
|
1371
|
-
dragHandle: S.dragHandle,
|
|
1372
|
-
zIndex: C.z,
|
|
1373
|
-
parentId: S.parentId,
|
|
1374
|
-
...ee
|
|
1375
|
-
})
|
|
1376
|
-
})
|
|
1377
|
-
});
|
|
1378
|
-
}
|
|
1379
|
-
var _n = W(gn), vn = (e) => ({
|
|
1380
|
-
nodesDraggable: e.nodesDraggable,
|
|
1381
|
-
nodesConnectable: e.nodesConnectable,
|
|
1382
|
-
nodesFocusable: e.nodesFocusable,
|
|
1383
|
-
elementsSelectable: e.elementsSelectable,
|
|
1384
|
-
onError: e.onError
|
|
1385
|
-
});
|
|
1386
|
-
function yn(e) {
|
|
1387
|
-
let { nodesDraggable: t, nodesConnectable: n, nodesFocusable: r, elementsSelectable: i, onError: a } = Q(vn, U), o = fn(e.onlyRenderVisibleElements), s = mn();
|
|
1388
|
-
return X("div", {
|
|
1389
|
-
className: "react-flow__nodes",
|
|
1390
|
-
style: Mt,
|
|
1391
|
-
children: o.map((o) => X(_n, {
|
|
1392
|
-
id: o,
|
|
1393
|
-
nodeTypes: e.nodeTypes,
|
|
1394
|
-
nodeExtent: e.nodeExtent,
|
|
1395
|
-
onClick: e.onNodeClick,
|
|
1396
|
-
onMouseEnter: e.onNodeMouseEnter,
|
|
1397
|
-
onMouseMove: e.onNodeMouseMove,
|
|
1398
|
-
onMouseLeave: e.onNodeMouseLeave,
|
|
1399
|
-
onContextMenu: e.onNodeContextMenu,
|
|
1400
|
-
onDoubleClick: e.onNodeDoubleClick,
|
|
1401
|
-
noDragClassName: e.noDragClassName,
|
|
1402
|
-
noPanClassName: e.noPanClassName,
|
|
1403
|
-
rfId: e.rfId,
|
|
1404
|
-
disableKeyboardA11y: e.disableKeyboardA11y,
|
|
1405
|
-
resizeObserver: s,
|
|
1406
|
-
nodesDraggable: t,
|
|
1407
|
-
nodesConnectable: n,
|
|
1408
|
-
nodesFocusable: r,
|
|
1409
|
-
elementsSelectable: i,
|
|
1410
|
-
nodeClickDistance: e.nodeClickDistance,
|
|
1411
|
-
onError: a
|
|
1412
|
-
}, o))
|
|
1413
|
-
});
|
|
1414
|
-
}
|
|
1415
|
-
yn.displayName = "NodeRenderer";
|
|
1416
|
-
var bn = W(yn);
|
|
1417
|
-
function xn(e) {
|
|
1418
|
-
return Q(G((t) => {
|
|
1419
|
-
if (!e) return t.edges.map((e) => e.id);
|
|
1420
|
-
let n = [];
|
|
1421
|
-
if (t.width && t.height) for (let e of t.edges) {
|
|
1422
|
-
let r = t.nodeLookup.get(e.source), i = t.nodeLookup.get(e.target);
|
|
1423
|
-
r && i && ae({
|
|
1424
|
-
sourceNode: r,
|
|
1425
|
-
targetNode: i,
|
|
1426
|
-
width: t.width,
|
|
1427
|
-
height: t.height,
|
|
1428
|
-
transform: t.transform
|
|
1429
|
-
}) && n.push(e.id);
|
|
1430
|
-
}
|
|
1431
|
-
return n;
|
|
1432
|
-
}, [e]), U);
|
|
1433
|
-
}
|
|
1434
|
-
var Sn = ({ color: e = "none", strokeWidth: t = 1 }) => X("polyline", {
|
|
1435
|
-
className: "arrow",
|
|
1436
|
-
style: {
|
|
1437
|
-
strokeWidth: t,
|
|
1438
|
-
...e && { stroke: e }
|
|
1439
|
-
},
|
|
1440
|
-
strokeLinecap: "round",
|
|
1441
|
-
fill: "none",
|
|
1442
|
-
strokeLinejoin: "round",
|
|
1443
|
-
points: "-5,-4 0,0 -5,4"
|
|
1444
|
-
}), Cn = ({ color: e = "none", strokeWidth: t = 1 }) => X("polyline", {
|
|
1445
|
-
className: "arrowclosed",
|
|
1446
|
-
style: {
|
|
1447
|
-
strokeWidth: t,
|
|
1448
|
-
...e && {
|
|
1449
|
-
stroke: e,
|
|
1450
|
-
fill: e
|
|
1451
|
-
}
|
|
1452
|
-
},
|
|
1453
|
-
strokeLinecap: "round",
|
|
1454
|
-
strokeLinejoin: "round",
|
|
1455
|
-
points: "-5,-4 0,0 -5,4 -5,-4"
|
|
1456
|
-
}), wn = {
|
|
1457
|
-
[r.Arrow]: Sn,
|
|
1458
|
-
[r.ArrowClosed]: Cn
|
|
1459
|
-
};
|
|
1460
|
-
function Tn(e) {
|
|
1461
|
-
let t = $();
|
|
1462
|
-
return q(() => Object.prototype.hasOwnProperty.call(wn, e) ? wn[e] : (t.getState().onError?.("009", x.error009(e)), null), [e]);
|
|
1463
|
-
}
|
|
1464
|
-
var En = ({ 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 = Tn(t);
|
|
1466
|
-
return c ? X("marker", {
|
|
1467
|
-
className: "react-flow__arrowhead",
|
|
1468
|
-
id: e,
|
|
1469
|
-
markerWidth: `${r}`,
|
|
1470
|
-
markerHeight: `${i}`,
|
|
1471
|
-
viewBox: "-10 -10 20 20",
|
|
1472
|
-
markerUnits: a,
|
|
1473
|
-
orient: s,
|
|
1474
|
-
refX: "0",
|
|
1475
|
-
refY: "0",
|
|
1476
|
-
children: X(c, {
|
|
1477
|
-
color: n,
|
|
1478
|
-
strokeWidth: o
|
|
1479
|
-
})
|
|
1480
|
-
}) : null;
|
|
1481
|
-
}, Dn = ({ defaultColor: e, rfId: t }) => {
|
|
1482
|
-
let n = Q((e) => e.edges), r = Q((e) => e.defaultEdgeOptions), i = q(() => _(n, {
|
|
1483
|
-
id: t,
|
|
1484
|
-
defaultColor: e,
|
|
1485
|
-
defaultMarkerStart: r?.markerStart,
|
|
1486
|
-
defaultMarkerEnd: r?.markerEnd
|
|
1487
|
-
}), [
|
|
1488
|
-
n,
|
|
1489
|
-
r,
|
|
1490
|
-
t,
|
|
1491
|
-
e
|
|
1492
|
-
]);
|
|
1493
|
-
return i.length ? X("svg", {
|
|
1494
|
-
className: "react-flow__marker",
|
|
1495
|
-
"aria-hidden": "true",
|
|
1496
|
-
children: X("defs", { children: i.map((e) => X(En, {
|
|
1497
|
-
id: e.id,
|
|
1498
|
-
type: e.type,
|
|
1499
|
-
color: e.color,
|
|
1500
|
-
width: e.width,
|
|
1501
|
-
height: e.height,
|
|
1502
|
-
markerUnits: e.markerUnits,
|
|
1503
|
-
strokeWidth: e.strokeWidth,
|
|
1504
|
-
orient: e.orient
|
|
1505
|
-
}, e.id)) })
|
|
1506
|
-
}) : null;
|
|
1507
|
-
};
|
|
1508
|
-
Dn.displayName = "MarkerDefinitions";
|
|
1509
|
-
var On = W(Dn);
|
|
1510
|
-
function kn({ 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] = Y({
|
|
1512
|
-
x: 1,
|
|
1513
|
-
y: 0,
|
|
1514
|
-
width: 0,
|
|
1515
|
-
height: 0
|
|
1516
|
-
}), m = e(["react-flow__edge-textwrapper", u]), h = J(null);
|
|
1517
|
-
return K(() => {
|
|
1518
|
-
if (h.current) {
|
|
1519
|
-
let e = h.current.getBBox();
|
|
1520
|
-
p({
|
|
1521
|
-
x: e.x,
|
|
1522
|
-
y: e.y,
|
|
1523
|
-
width: e.width,
|
|
1524
|
-
height: e.height
|
|
1525
|
-
});
|
|
1526
|
-
}
|
|
1527
|
-
}, [r]), r ? Z("g", {
|
|
1528
|
-
transform: `translate(${t - f.width / 2} ${n - f.height / 2})`,
|
|
1529
|
-
className: m,
|
|
1530
|
-
visibility: f.width ? "visible" : "hidden",
|
|
1531
|
-
...d,
|
|
1532
|
-
children: [
|
|
1533
|
-
a && X("rect", {
|
|
1534
|
-
width: f.width + 2 * s[0],
|
|
1535
|
-
x: -s[0],
|
|
1536
|
-
y: -s[1],
|
|
1537
|
-
height: f.height + 2 * s[1],
|
|
1538
|
-
className: "react-flow__edge-textbg",
|
|
1539
|
-
style: o,
|
|
1540
|
-
rx: c,
|
|
1541
|
-
ry: c
|
|
1542
|
-
}),
|
|
1543
|
-
X("text", {
|
|
1544
|
-
className: "react-flow__edge-text",
|
|
1545
|
-
y: f.height / 2,
|
|
1546
|
-
dy: "0.3em",
|
|
1547
|
-
ref: h,
|
|
1548
|
-
style: i,
|
|
1549
|
-
children: r
|
|
1550
|
-
}),
|
|
1551
|
-
l
|
|
1552
|
-
]
|
|
1553
|
-
}) : null;
|
|
1554
|
-
}
|
|
1555
|
-
kn.displayName = "EdgeText";
|
|
1556
|
-
var An = W(kn);
|
|
1557
|
-
function jn({ path: t, labelX: n, labelY: r, label: i, labelStyle: a, labelShowBg: o, labelBgStyle: s, labelBgPadding: c, labelBgBorderRadius: l, interactionWidth: u = 20, ...d }) {
|
|
1558
|
-
return Z(ke, { children: [
|
|
1559
|
-
X("path", {
|
|
1560
|
-
...d,
|
|
1561
|
-
d: t,
|
|
1562
|
-
fill: "none",
|
|
1563
|
-
className: e(["react-flow__edge-path", d.className])
|
|
1564
|
-
}),
|
|
1565
|
-
u ? X("path", {
|
|
1566
|
-
d: t,
|
|
1567
|
-
fill: "none",
|
|
1568
|
-
strokeOpacity: 0,
|
|
1569
|
-
strokeWidth: u,
|
|
1570
|
-
className: "react-flow__edge-interaction"
|
|
1571
|
-
}) : null,
|
|
1572
|
-
i && ue(n) && ue(r) ? X(An, {
|
|
1573
|
-
x: n,
|
|
1574
|
-
y: r,
|
|
1575
|
-
label: i,
|
|
1576
|
-
labelStyle: a,
|
|
1577
|
-
labelShowBg: o,
|
|
1578
|
-
labelBgStyle: s,
|
|
1579
|
-
labelBgPadding: c,
|
|
1580
|
-
labelBgBorderRadius: l
|
|
1581
|
-
}) : null
|
|
1582
|
-
] });
|
|
1583
|
-
}
|
|
1584
|
-
function Mn({ 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
|
-
}
|
|
1587
|
-
function Nn({ sourceX: e, sourceY: t, sourcePosition: n = a.Bottom, targetX: r, targetY: i, targetPosition: o = a.Top }) {
|
|
1588
|
-
let [s, c] = Mn({
|
|
1589
|
-
pos: n,
|
|
1590
|
-
x1: e,
|
|
1591
|
-
y1: t,
|
|
1592
|
-
x2: r,
|
|
1593
|
-
y2: i
|
|
1594
|
-
}), [l, u] = Mn({
|
|
1595
|
-
pos: o,
|
|
1596
|
-
x1: r,
|
|
1597
|
-
y1: i,
|
|
1598
|
-
x2: e,
|
|
1599
|
-
y2: t
|
|
1600
|
-
}), [d, f, p, m] = w({
|
|
1601
|
-
sourceX: e,
|
|
1602
|
-
sourceY: t,
|
|
1603
|
-
targetX: r,
|
|
1604
|
-
targetY: i,
|
|
1605
|
-
sourceControlX: s,
|
|
1606
|
-
sourceControlY: c,
|
|
1607
|
-
targetControlX: l,
|
|
1608
|
-
targetControlY: u
|
|
1609
|
-
});
|
|
1610
|
-
return [
|
|
1611
|
-
`M${e},${t} C${s},${c} ${l},${u} ${r},${i}`,
|
|
1612
|
-
d,
|
|
1613
|
-
f,
|
|
1614
|
-
p,
|
|
1615
|
-
m
|
|
1616
|
-
];
|
|
1617
|
-
}
|
|
1618
|
-
function Pn(e) {
|
|
1619
|
-
return W(({ 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] = Nn({
|
|
1621
|
-
sourceX: n,
|
|
1622
|
-
sourceY: r,
|
|
1623
|
-
sourcePosition: o,
|
|
1624
|
-
targetX: i,
|
|
1625
|
-
targetY: a,
|
|
1626
|
-
targetPosition: s
|
|
1627
|
-
});
|
|
1628
|
-
return X(jn, {
|
|
1629
|
-
id: e.isInternal ? void 0 : t,
|
|
1630
|
-
path: v,
|
|
1631
|
-
labelX: y,
|
|
1632
|
-
labelY: b,
|
|
1633
|
-
label: c,
|
|
1634
|
-
labelStyle: l,
|
|
1635
|
-
labelShowBg: u,
|
|
1636
|
-
labelBgStyle: d,
|
|
1637
|
-
labelBgPadding: f,
|
|
1638
|
-
labelBgBorderRadius: p,
|
|
1639
|
-
style: m,
|
|
1640
|
-
markerEnd: h,
|
|
1641
|
-
markerStart: g,
|
|
1642
|
-
interactionWidth: _
|
|
1643
|
-
});
|
|
1644
|
-
});
|
|
1645
|
-
}
|
|
1646
|
-
var Fn = Pn({ isInternal: !1 }), In = Pn({ isInternal: !0 });
|
|
1647
|
-
Fn.displayName = "SimpleBezierEdge", In.displayName = "SimpleBezierEdgeInternal";
|
|
1648
|
-
function Ln(e) {
|
|
1649
|
-
return W(({ 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
|
-
sourceX: n,
|
|
1652
|
-
sourceY: r,
|
|
1653
|
-
sourcePosition: m,
|
|
1654
|
-
targetX: i,
|
|
1655
|
-
targetY: o,
|
|
1656
|
-
targetPosition: h,
|
|
1657
|
-
borderRadius: v?.borderRadius,
|
|
1658
|
-
offset: v?.offset,
|
|
1659
|
-
stepPosition: v?.stepPosition
|
|
1660
|
-
});
|
|
1661
|
-
return X(jn, {
|
|
1662
|
-
id: e.isInternal ? void 0 : t,
|
|
1663
|
-
path: b,
|
|
1664
|
-
labelX: x,
|
|
1665
|
-
labelY: S,
|
|
1666
|
-
label: s,
|
|
1667
|
-
labelStyle: c,
|
|
1668
|
-
labelShowBg: l,
|
|
1669
|
-
labelBgStyle: u,
|
|
1670
|
-
labelBgPadding: d,
|
|
1671
|
-
labelBgBorderRadius: f,
|
|
1672
|
-
style: p,
|
|
1673
|
-
markerEnd: g,
|
|
1674
|
-
markerStart: _,
|
|
1675
|
-
interactionWidth: y
|
|
1676
|
-
});
|
|
1677
|
-
});
|
|
1678
|
-
}
|
|
1679
|
-
var Rn = Ln({ isInternal: !1 }), zn = Ln({ isInternal: !0 });
|
|
1680
|
-
Rn.displayName = "SmoothStepEdge", zn.displayName = "SmoothStepEdgeInternal";
|
|
1681
|
-
function Bn(e) {
|
|
1682
|
-
return W(({ id: t, ...n }) => {
|
|
1683
|
-
let r = e.isInternal ? void 0 : t;
|
|
1684
|
-
return X(Rn, {
|
|
1685
|
-
...n,
|
|
1686
|
-
id: r,
|
|
1687
|
-
pathOptions: q(() => ({
|
|
1688
|
-
borderRadius: 0,
|
|
1689
|
-
offset: n.pathOptions?.offset
|
|
1690
|
-
}), [n.pathOptions?.offset])
|
|
1691
|
-
});
|
|
1692
|
-
});
|
|
1693
|
-
}
|
|
1694
|
-
var Vn = Bn({ isInternal: !1 }), Hn = Bn({ isInternal: !0 });
|
|
1695
|
-
Vn.displayName = "StepEdge", Hn.displayName = "StepEdgeInternal";
|
|
1696
|
-
function Un(e) {
|
|
1697
|
-
return W(({ 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
|
-
sourceX: n,
|
|
1700
|
-
sourceY: r,
|
|
1701
|
-
targetX: i,
|
|
1702
|
-
targetY: a
|
|
1703
|
-
});
|
|
1704
|
-
return X(jn, {
|
|
1705
|
-
id: e.isInternal ? void 0 : t,
|
|
1706
|
-
path: g,
|
|
1707
|
-
labelX: _,
|
|
1708
|
-
labelY: v,
|
|
1709
|
-
label: o,
|
|
1710
|
-
labelStyle: s,
|
|
1711
|
-
labelShowBg: c,
|
|
1712
|
-
labelBgStyle: l,
|
|
1713
|
-
labelBgPadding: u,
|
|
1714
|
-
labelBgBorderRadius: d,
|
|
1715
|
-
style: f,
|
|
1716
|
-
markerEnd: p,
|
|
1717
|
-
markerStart: m,
|
|
1718
|
-
interactionWidth: h
|
|
1719
|
-
});
|
|
1720
|
-
});
|
|
1721
|
-
}
|
|
1722
|
-
var Wn = Un({ isInternal: !1 }), Gn = Un({ isInternal: !0 });
|
|
1723
|
-
Wn.displayName = "StraightEdge", Gn.displayName = "StraightEdgeInternal";
|
|
1724
|
-
function Kn(e) {
|
|
1725
|
-
return W(({ 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
|
-
sourceX: n,
|
|
1728
|
-
sourceY: r,
|
|
1729
|
-
sourcePosition: s,
|
|
1730
|
-
targetX: i,
|
|
1731
|
-
targetY: o,
|
|
1732
|
-
targetPosition: c,
|
|
1733
|
-
curvature: v?.curvature
|
|
1734
|
-
});
|
|
1735
|
-
return X(jn, {
|
|
1736
|
-
id: e.isInternal ? void 0 : t,
|
|
1737
|
-
path: b,
|
|
1738
|
-
labelX: x,
|
|
1739
|
-
labelY: S,
|
|
1740
|
-
label: l,
|
|
1741
|
-
labelStyle: u,
|
|
1742
|
-
labelShowBg: d,
|
|
1743
|
-
labelBgStyle: f,
|
|
1744
|
-
labelBgPadding: p,
|
|
1745
|
-
labelBgBorderRadius: m,
|
|
1746
|
-
style: h,
|
|
1747
|
-
markerEnd: g,
|
|
1748
|
-
markerStart: _,
|
|
1749
|
-
interactionWidth: y
|
|
1750
|
-
});
|
|
1751
|
-
});
|
|
1752
|
-
}
|
|
1753
|
-
var qn = Kn({ isInternal: !1 }), Jn = Kn({ isInternal: !0 });
|
|
1754
|
-
qn.displayName = "BezierEdge", Jn.displayName = "BezierEdgeInternal";
|
|
1755
|
-
var Yn = {
|
|
1756
|
-
default: Jn,
|
|
1757
|
-
straight: Gn,
|
|
1758
|
-
step: Hn,
|
|
1759
|
-
smoothstep: zn,
|
|
1760
|
-
simplebezier: In
|
|
1761
|
-
}, Xn = {
|
|
1762
|
-
sourceX: null,
|
|
1763
|
-
sourceY: null,
|
|
1764
|
-
targetX: null,
|
|
1765
|
-
targetY: null,
|
|
1766
|
-
sourcePosition: null,
|
|
1767
|
-
targetPosition: null
|
|
1768
|
-
}, Zn = (e, t, n) => n === a.Left ? e - t : n === a.Right ? e + t : e, Qn = (e, t, n) => n === a.Top ? e - t : n === a.Bottom ? e + t : e, $n = "react-flow__edgeupdater";
|
|
1769
|
-
function er({ position: t, centerX: n, centerY: r, radius: i = 10, onMouseDown: a, onMouseEnter: o, onMouseOut: s, type: c }) {
|
|
1770
|
-
return X("circle", {
|
|
1771
|
-
onMouseDown: a,
|
|
1772
|
-
onMouseEnter: o,
|
|
1773
|
-
onMouseOut: s,
|
|
1774
|
-
className: e([$n, `${$n}-${c}`]),
|
|
1775
|
-
cx: Zn(n, i, t),
|
|
1776
|
-
cy: Qn(r, i, t),
|
|
1777
|
-
r: i,
|
|
1778
|
-
stroke: "transparent",
|
|
1779
|
-
fill: "transparent"
|
|
1780
|
-
});
|
|
1781
|
-
}
|
|
1782
|
-
function tr({ 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
|
-
if (e.button !== 0) return;
|
|
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
|
-
l.onPointerDown(e.nativeEvent, {
|
|
1787
|
-
autoPanOnConnect: r,
|
|
1788
|
-
connectionMode: a,
|
|
1789
|
-
connectionRadius: o,
|
|
1790
|
-
domNode: i,
|
|
1791
|
-
handleId: t.id,
|
|
1792
|
-
nodeId: t.nodeId,
|
|
1793
|
-
nodeLookup: g,
|
|
1794
|
-
isTarget: b,
|
|
1795
|
-
edgeUpdaterType: t.type,
|
|
1796
|
-
lib: s,
|
|
1797
|
-
flowId: _,
|
|
1798
|
-
cancelConnection: m,
|
|
1799
|
-
panBy: v,
|
|
1800
|
-
isValidConnection: (...e) => h.getState().isValidConnection?.(...e) ?? !0,
|
|
1801
|
-
onConnect: (e) => u?.(n, e),
|
|
1802
|
-
onConnectStart: (r, i) => {
|
|
1803
|
-
p(!0), d?.(e, n, t.type), c?.(r, i);
|
|
1804
|
-
},
|
|
1805
|
-
onConnectEnd: (...e) => h.getState().onConnectEnd?.(...e),
|
|
1806
|
-
onReconnectEnd: (e, r) => {
|
|
1807
|
-
p(!1), f?.(e, n, t.type, r);
|
|
1808
|
-
},
|
|
1809
|
-
updateConnection: y,
|
|
1810
|
-
getTransform: () => h.getState().transform,
|
|
1811
|
-
getFromHandle: () => h.getState().connection.fromHandle,
|
|
1812
|
-
dragThreshold: h.getState().connectionDragThreshold,
|
|
1813
|
-
handleDomNode: e.currentTarget
|
|
1814
|
-
});
|
|
1815
|
-
}, _ = (e) => g(e, {
|
|
1816
|
-
nodeId: n.target,
|
|
1817
|
-
id: n.targetHandle ?? null,
|
|
1818
|
-
type: "target"
|
|
1819
|
-
}), v = (e) => g(e, {
|
|
1820
|
-
nodeId: n.source,
|
|
1821
|
-
id: n.sourceHandle ?? null,
|
|
1822
|
-
type: "source"
|
|
1823
|
-
}), y = () => m(!0), b = () => m(!1);
|
|
1824
|
-
return Z(ke, { children: [(e === !0 || e === "source") && X(er, {
|
|
1825
|
-
position: s,
|
|
1826
|
-
centerX: r,
|
|
1827
|
-
centerY: i,
|
|
1828
|
-
radius: t,
|
|
1829
|
-
onMouseDown: _,
|
|
1830
|
-
onMouseEnter: y,
|
|
1831
|
-
onMouseOut: b,
|
|
1832
|
-
type: "source"
|
|
1833
|
-
}), (e === !0 || e === "target") && X(er, {
|
|
1834
|
-
position: c,
|
|
1835
|
-
centerX: a,
|
|
1836
|
-
centerY: o,
|
|
1837
|
-
radius: t,
|
|
1838
|
-
onMouseDown: v,
|
|
1839
|
-
onMouseEnter: y,
|
|
1840
|
-
onMouseOut: b,
|
|
1841
|
-
type: "target"
|
|
1842
|
-
})] });
|
|
1843
|
-
}
|
|
1844
|
-
function nr({ 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
|
-
S = C ? {
|
|
1847
|
-
...C,
|
|
1848
|
-
...S
|
|
1849
|
-
} : S;
|
|
1850
|
-
let w = S.type || "default", T = g?.[w] || Yn[w];
|
|
1851
|
-
T === void 0 && (v?.("011", x.error011(w)), w = "default", T = g?.default || Yn.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 = J(null), [M, N] = Y(!1), [P, F] = Y(!1), I = $(), { zIndex: L, sourceX: R, sourceY: z, targetX: B, targetY: V, sourcePosition: H, targetPosition: te } = Q(G((e) => {
|
|
1853
|
-
let n = e.nodeLookup.get(S.source), r = e.nodeLookup.get(S.target);
|
|
1854
|
-
if (!n || !r) return {
|
|
1855
|
-
zIndex: S.zIndex,
|
|
1856
|
-
...Xn
|
|
1857
|
-
};
|
|
1858
|
-
let i = k({
|
|
1859
|
-
id: t,
|
|
1860
|
-
sourceNode: n,
|
|
1861
|
-
targetNode: r,
|
|
1862
|
-
sourceHandle: S.sourceHandle || null,
|
|
1863
|
-
targetHandle: S.targetHandle || null,
|
|
1864
|
-
connectionMode: e.connectionMode,
|
|
1865
|
-
onError: v
|
|
1866
|
-
});
|
|
1867
|
-
return {
|
|
1868
|
-
zIndex: j({
|
|
1869
|
-
selected: S.selected,
|
|
1870
|
-
zIndex: S.zIndex,
|
|
1871
|
-
sourceNode: n,
|
|
1872
|
-
targetNode: r,
|
|
1873
|
-
elevateOnSelect: e.elevateEdgesOnSelect,
|
|
1874
|
-
zIndexMode: e.zIndexMode
|
|
1875
|
-
}),
|
|
1876
|
-
...i || Xn
|
|
1877
|
-
};
|
|
1878
|
-
}, [
|
|
1879
|
-
S.source,
|
|
1880
|
-
S.target,
|
|
1881
|
-
S.sourceHandle,
|
|
1882
|
-
S.targetHandle,
|
|
1883
|
-
S.selected,
|
|
1884
|
-
S.zIndex
|
|
1885
|
-
]), U), ne = q(() => S.markerStart ? `url('#${ee(S.markerStart, h)}')` : void 0, [S.markerStart, h]), re = q(() => 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
|
-
let { addSelectedEdges: n, unselectNodesAndEdges: r, multiSelectionActive: i } = I.getState();
|
|
1889
|
-
O && (I.setState({ nodesSelectionActive: !1 }), S.selected && i ? (r({
|
|
1890
|
-
nodes: [],
|
|
1891
|
-
edges: [S]
|
|
1892
|
-
}), A.current?.blur()) : n([t])), a && a(e, S);
|
|
1893
|
-
}, ae = o ? (e) => {
|
|
1894
|
-
o(e, { ...S });
|
|
1895
|
-
} : void 0, oe = s ? (e) => {
|
|
1896
|
-
s(e, { ...S });
|
|
1897
|
-
} : void 0, se = c ? (e) => {
|
|
1898
|
-
c(e, { ...S });
|
|
1899
|
-
} : void 0, ce = l ? (e) => {
|
|
1900
|
-
l(e, { ...S });
|
|
1901
|
-
} : void 0, le = u ? (e) => {
|
|
1902
|
-
u(e, { ...S });
|
|
1903
|
-
} : void 0;
|
|
1904
|
-
return X("svg", {
|
|
1905
|
-
style: { zIndex: L },
|
|
1906
|
-
children: Z("g", {
|
|
1907
|
-
className: e([
|
|
1908
|
-
"react-flow__edge",
|
|
1909
|
-
`react-flow__edge-${w}`,
|
|
1910
|
-
S.className,
|
|
1911
|
-
_,
|
|
1912
|
-
{
|
|
1913
|
-
selected: S.selected,
|
|
1914
|
-
animated: S.animated,
|
|
1915
|
-
inactive: !O && !a,
|
|
1916
|
-
updating: M,
|
|
1917
|
-
selectable: O
|
|
1918
|
-
}
|
|
1919
|
-
]),
|
|
1920
|
-
onClick: ie,
|
|
1921
|
-
onDoubleClick: ae,
|
|
1922
|
-
onContextMenu: oe,
|
|
1923
|
-
onMouseEnter: se,
|
|
1924
|
-
onMouseMove: ce,
|
|
1925
|
-
onMouseLeave: le,
|
|
1926
|
-
onKeyDown: E ? (e) => {
|
|
1927
|
-
if (!y && b.includes(e.key) && O) {
|
|
1928
|
-
let { unselectNodesAndEdges: n, addSelectedEdges: r } = I.getState();
|
|
1929
|
-
e.key === "Escape" ? (A.current?.blur(), n({ edges: [S] })) : r([t]);
|
|
1930
|
-
}
|
|
1931
|
-
} : void 0,
|
|
1932
|
-
tabIndex: E ? 0 : void 0,
|
|
1933
|
-
role: S.ariaRole ?? (E ? "group" : "img"),
|
|
1934
|
-
"aria-roledescription": "edge",
|
|
1935
|
-
"data-id": t,
|
|
1936
|
-
"data-testid": `rf__edge-${t}`,
|
|
1937
|
-
"aria-label": S.ariaLabel === null ? void 0 : S.ariaLabel || `Edge from ${S.source} to ${S.target}`,
|
|
1938
|
-
"aria-describedby": E ? `${Ie}-${h}` : void 0,
|
|
1939
|
-
ref: A,
|
|
1940
|
-
...S.domAttributes,
|
|
1941
|
-
children: [!P && X(T, {
|
|
1942
|
-
id: t,
|
|
1943
|
-
source: S.source,
|
|
1944
|
-
target: S.target,
|
|
1945
|
-
type: S.type,
|
|
1946
|
-
selected: S.selected,
|
|
1947
|
-
animated: S.animated,
|
|
1948
|
-
selectable: O,
|
|
1949
|
-
deletable: S.deletable ?? !0,
|
|
1950
|
-
label: S.label,
|
|
1951
|
-
labelStyle: S.labelStyle,
|
|
1952
|
-
labelShowBg: S.labelShowBg,
|
|
1953
|
-
labelBgStyle: S.labelBgStyle,
|
|
1954
|
-
labelBgPadding: S.labelBgPadding,
|
|
1955
|
-
labelBgBorderRadius: S.labelBgBorderRadius,
|
|
1956
|
-
sourceX: R,
|
|
1957
|
-
sourceY: z,
|
|
1958
|
-
targetX: B,
|
|
1959
|
-
targetY: V,
|
|
1960
|
-
sourcePosition: H,
|
|
1961
|
-
targetPosition: te,
|
|
1962
|
-
data: S.data,
|
|
1963
|
-
style: S.style,
|
|
1964
|
-
sourceHandleId: S.sourceHandle,
|
|
1965
|
-
targetHandleId: S.targetHandle,
|
|
1966
|
-
markerStart: ne,
|
|
1967
|
-
markerEnd: re,
|
|
1968
|
-
pathOptions: "pathOptions" in S ? S.pathOptions : void 0,
|
|
1969
|
-
interactionWidth: S.interactionWidth
|
|
1970
|
-
}), D && X(tr, {
|
|
1971
|
-
edge: S,
|
|
1972
|
-
isReconnectable: D,
|
|
1973
|
-
reconnectRadius: d,
|
|
1974
|
-
onReconnect: f,
|
|
1975
|
-
onReconnectStart: p,
|
|
1976
|
-
onReconnectEnd: m,
|
|
1977
|
-
sourceX: R,
|
|
1978
|
-
sourceY: z,
|
|
1979
|
-
targetX: B,
|
|
1980
|
-
targetY: V,
|
|
1981
|
-
sourcePosition: H,
|
|
1982
|
-
targetPosition: te,
|
|
1983
|
-
setUpdateHover: N,
|
|
1984
|
-
setReconnecting: F
|
|
1985
|
-
})]
|
|
1986
|
-
})
|
|
1987
|
-
});
|
|
1988
|
-
}
|
|
1989
|
-
var rr = W(nr), ir = (e) => ({
|
|
1990
|
-
edgesFocusable: e.edgesFocusable,
|
|
1991
|
-
edgesReconnectable: e.edgesReconnectable,
|
|
1992
|
-
elementsSelectable: e.elementsSelectable,
|
|
1993
|
-
connectionMode: e.connectionMode,
|
|
1994
|
-
onError: e.onError
|
|
1995
|
-
});
|
|
1996
|
-
function ar({ 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(ir, U), b = xn(t);
|
|
1998
|
-
return Z("div", {
|
|
1999
|
-
className: "react-flow__edges",
|
|
2000
|
-
children: [X(On, {
|
|
2001
|
-
defaultColor: e,
|
|
2002
|
-
rfId: n
|
|
2003
|
-
}), b.map((e) => X(rr, {
|
|
2004
|
-
id: e,
|
|
2005
|
-
edgesFocusable: g,
|
|
2006
|
-
edgesReconnectable: _,
|
|
2007
|
-
elementsSelectable: v,
|
|
2008
|
-
noPanClassName: i,
|
|
2009
|
-
onReconnect: a,
|
|
2010
|
-
onContextMenu: o,
|
|
2011
|
-
onMouseEnter: s,
|
|
2012
|
-
onMouseMove: c,
|
|
2013
|
-
onMouseLeave: l,
|
|
2014
|
-
onClick: u,
|
|
2015
|
-
reconnectRadius: d,
|
|
2016
|
-
onDoubleClick: f,
|
|
2017
|
-
onReconnectStart: p,
|
|
2018
|
-
onReconnectEnd: m,
|
|
2019
|
-
rfId: n,
|
|
2020
|
-
onError: y,
|
|
2021
|
-
edgeTypes: r,
|
|
2022
|
-
disableKeyboardA11y: h
|
|
2023
|
-
}, e))]
|
|
2024
|
-
});
|
|
2025
|
-
}
|
|
2026
|
-
ar.displayName = "EdgeRenderer";
|
|
2027
|
-
var or = W(ar), sr = (e) => `translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;
|
|
2028
|
-
function cr({ children: e }) {
|
|
2029
|
-
return X("div", {
|
|
2030
|
-
className: "react-flow__viewport xyflow__viewport react-flow__container",
|
|
2031
|
-
style: { transform: Q(sr) },
|
|
2032
|
-
children: e
|
|
2033
|
-
});
|
|
2034
|
-
}
|
|
2035
|
-
function lr(e) {
|
|
2036
|
-
let t = Dt(), n = J(!1);
|
|
2037
|
-
K(() => {
|
|
2038
|
-
!n.current && t.viewportInitialized && e && (setTimeout(() => e(t), 1), n.current = !0);
|
|
2039
|
-
}, [e, t.viewportInitialized]);
|
|
2040
|
-
}
|
|
2041
|
-
var ur = (e) => e.panZoom?.syncViewport;
|
|
2042
|
-
function dr(e) {
|
|
2043
|
-
let t = Q(ur), n = $();
|
|
2044
|
-
return K(() => {
|
|
2045
|
-
e && (t?.(e), n.setState({ transform: [
|
|
2046
|
-
e.x,
|
|
2047
|
-
e.y,
|
|
2048
|
-
e.zoom
|
|
2049
|
-
] }));
|
|
2050
|
-
}, [e, t]), null;
|
|
2051
|
-
}
|
|
2052
|
-
function fr(e) {
|
|
2053
|
-
return e.connection.inProgress ? {
|
|
2054
|
-
...e.connection,
|
|
2055
|
-
to: ge(e.connection.to, e.transform)
|
|
2056
|
-
} : { ...e.connection };
|
|
2057
|
-
}
|
|
2058
|
-
function pr(e) {
|
|
2059
|
-
return e ? (t) => e(fr(t)) : fr;
|
|
2060
|
-
}
|
|
2061
|
-
function mr(e) {
|
|
2062
|
-
return Q(pr(e), U);
|
|
2063
|
-
}
|
|
2064
|
-
var hr = (e) => ({
|
|
2065
|
-
nodesConnectable: e.nodesConnectable,
|
|
2066
|
-
isValid: e.connection.isValid,
|
|
2067
|
-
inProgress: e.connection.inProgress,
|
|
2068
|
-
width: e.width,
|
|
2069
|
-
height: e.height
|
|
2070
|
-
});
|
|
2071
|
-
function gr({ containerStyle: t, style: n, type: r, component: i }) {
|
|
2072
|
-
let { nodesConnectable: a, width: o, height: s, isValid: c, inProgress: l } = Q(hr, U);
|
|
2073
|
-
return o && a && l ? X("svg", {
|
|
2074
|
-
style: t,
|
|
2075
|
-
width: o,
|
|
2076
|
-
height: s,
|
|
2077
|
-
className: "react-flow__connectionline react-flow__container",
|
|
2078
|
-
children: X("g", {
|
|
2079
|
-
className: e(["react-flow__connection", D(c)]),
|
|
2080
|
-
children: X(_r, {
|
|
2081
|
-
style: n,
|
|
2082
|
-
type: r,
|
|
2083
|
-
CustomComponent: i,
|
|
2084
|
-
isValid: c
|
|
2085
|
-
})
|
|
2086
|
-
})
|
|
2087
|
-
}) : null;
|
|
2088
|
-
}
|
|
2089
|
-
var _r = ({ 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 } = mr();
|
|
2091
|
-
if (!a) return;
|
|
2092
|
-
if (r) return X(r, {
|
|
2093
|
-
connectionLineType: n,
|
|
2094
|
-
connectionLineStyle: e,
|
|
2095
|
-
fromNode: s,
|
|
2096
|
-
fromHandle: c,
|
|
2097
|
-
fromX: o.x,
|
|
2098
|
-
fromY: o.y,
|
|
2099
|
-
toX: u.x,
|
|
2100
|
-
toY: u.y,
|
|
2101
|
-
fromPosition: l,
|
|
2102
|
-
toPosition: p,
|
|
2103
|
-
connectionStatus: D(i),
|
|
2104
|
-
toNode: d,
|
|
2105
|
-
toHandle: f,
|
|
2106
|
-
pointer: m
|
|
2107
|
-
});
|
|
2108
|
-
let h = "", g = {
|
|
2109
|
-
sourceX: o.x,
|
|
2110
|
-
sourceY: o.y,
|
|
2111
|
-
sourcePosition: l,
|
|
2112
|
-
targetX: u.x,
|
|
2113
|
-
targetY: u.y,
|
|
2114
|
-
targetPosition: p
|
|
2115
|
-
};
|
|
2116
|
-
switch (n) {
|
|
2117
|
-
case t.Bezier:
|
|
2118
|
-
[h] = T(g);
|
|
2119
|
-
break;
|
|
2120
|
-
case t.SimpleBezier:
|
|
2121
|
-
[h] = Nn(g);
|
|
2122
|
-
break;
|
|
2123
|
-
case t.Step:
|
|
2124
|
-
[h] = B({
|
|
2125
|
-
...g,
|
|
2126
|
-
borderRadius: 0
|
|
2127
|
-
});
|
|
2128
|
-
break;
|
|
2129
|
-
case t.SmoothStep:
|
|
2130
|
-
[h] = B(g);
|
|
2131
|
-
break;
|
|
2132
|
-
default: [h] = V(g);
|
|
2133
|
-
}
|
|
2134
|
-
return X("path", {
|
|
2135
|
-
d: h,
|
|
2136
|
-
fill: "none",
|
|
2137
|
-
className: "react-flow__connection-path",
|
|
2138
|
-
style: e
|
|
2139
|
-
});
|
|
2140
|
-
};
|
|
2141
|
-
_r.displayName = "ConnectionLine";
|
|
2142
|
-
var vr = {};
|
|
2143
|
-
function yr(e = vr) {
|
|
2144
|
-
let t = J(e), n = $();
|
|
2145
|
-
K(() => {
|
|
2146
|
-
if (process.env.NODE_ENV === "development") {
|
|
2147
|
-
let r = new Set([...Object.keys(t.current), ...Object.keys(e)]);
|
|
2148
|
-
for (let i of r) if (t.current[i] !== e[i]) {
|
|
2149
|
-
n.getState().onError?.("002", x.error002());
|
|
2150
|
-
break;
|
|
2151
|
-
}
|
|
2152
|
-
t.current = e;
|
|
2153
|
-
}
|
|
2154
|
-
}, [e]);
|
|
2155
|
-
}
|
|
2156
|
-
function br() {
|
|
2157
|
-
let e = $(), t = J(!1);
|
|
2158
|
-
K(() => {
|
|
2159
|
-
if (process.env.NODE_ENV === "development" && !t.current) {
|
|
2160
|
-
let n = document.querySelector(".react-flow__pane");
|
|
2161
|
-
n && window.getComputedStyle(n).zIndex !== "1" && e.getState().onError?.("013", x.error013("react")), t.current = !0;
|
|
2162
|
-
}
|
|
2163
|
-
}, []);
|
|
2164
|
-
}
|
|
2165
|
-
function xr({ 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 yr(e), yr(t), br(), lr(n), dr(ye), X(un, {
|
|
2167
|
-
onPaneClick: z,
|
|
2168
|
-
onPaneMouseEnter: B,
|
|
2169
|
-
onPaneMouseMove: V,
|
|
2170
|
-
onPaneMouseLeave: H,
|
|
2171
|
-
onPaneContextMenu: ne,
|
|
2172
|
-
onPaneScroll: te,
|
|
2173
|
-
paneClickDistance: re,
|
|
2174
|
-
deleteKeyCode: w,
|
|
2175
|
-
selectionKeyCode: v,
|
|
2176
|
-
selectionOnDrag: y,
|
|
2177
|
-
selectionMode: b,
|
|
2178
|
-
onSelectionStart: f,
|
|
2179
|
-
onSelectionEnd: p,
|
|
2180
|
-
multiSelectionKeyCode: x,
|
|
2181
|
-
panActivationKeyCode: S,
|
|
2182
|
-
zoomActivationKeyCode: C,
|
|
2183
|
-
elementsSelectable: E,
|
|
2184
|
-
zoomOnScroll: N,
|
|
2185
|
-
zoomOnPinch: P,
|
|
2186
|
-
zoomOnDoubleClick: L,
|
|
2187
|
-
panOnScroll: F,
|
|
2188
|
-
panOnScrollSpeed: ee,
|
|
2189
|
-
panOnScrollMode: I,
|
|
2190
|
-
panOnDrag: R,
|
|
2191
|
-
defaultViewport: D,
|
|
2192
|
-
translateExtent: O,
|
|
2193
|
-
minZoom: k,
|
|
2194
|
-
maxZoom: A,
|
|
2195
|
-
onSelectionContextMenu: d,
|
|
2196
|
-
preventScrolling: j,
|
|
2197
|
-
noDragClassName: pe,
|
|
2198
|
-
noWheelClassName: me,
|
|
2199
|
-
noPanClassName: he,
|
|
2200
|
-
disableKeyboardA11y: ge,
|
|
2201
|
-
onViewportChange: be,
|
|
2202
|
-
isControlledViewport: !!ye,
|
|
2203
|
-
children: Z(cr, { children: [
|
|
2204
|
-
X(or, {
|
|
2205
|
-
edgeTypes: t,
|
|
2206
|
-
onEdgeClick: i,
|
|
2207
|
-
onEdgeDoubleClick: o,
|
|
2208
|
-
onReconnect: ue,
|
|
2209
|
-
onReconnectStart: de,
|
|
2210
|
-
onReconnectEnd: fe,
|
|
2211
|
-
onlyRenderVisibleElements: T,
|
|
2212
|
-
onEdgeContextMenu: ae,
|
|
2213
|
-
onEdgeMouseEnter: oe,
|
|
2214
|
-
onEdgeMouseMove: se,
|
|
2215
|
-
onEdgeMouseLeave: ce,
|
|
2216
|
-
reconnectRadius: le,
|
|
2217
|
-
defaultMarkerColor: M,
|
|
2218
|
-
noPanClassName: he,
|
|
2219
|
-
disableKeyboardA11y: ge,
|
|
2220
|
-
rfId: ve
|
|
2221
|
-
}),
|
|
2222
|
-
X(gr, {
|
|
2223
|
-
style: h,
|
|
2224
|
-
type: m,
|
|
2225
|
-
component: g,
|
|
2226
|
-
containerStyle: _
|
|
2227
|
-
}),
|
|
2228
|
-
X("div", { className: "react-flow__edgelabel-renderer" }),
|
|
2229
|
-
X(bn, {
|
|
2230
|
-
nodeTypes: e,
|
|
2231
|
-
onNodeClick: r,
|
|
2232
|
-
onNodeDoubleClick: a,
|
|
2233
|
-
onNodeMouseEnter: s,
|
|
2234
|
-
onNodeMouseMove: c,
|
|
2235
|
-
onNodeMouseLeave: l,
|
|
2236
|
-
onNodeContextMenu: u,
|
|
2237
|
-
nodeClickDistance: ie,
|
|
2238
|
-
onlyRenderVisibleElements: T,
|
|
2239
|
-
noPanClassName: he,
|
|
2240
|
-
noDragClassName: pe,
|
|
2241
|
-
disableKeyboardA11y: ge,
|
|
2242
|
-
nodeExtent: _e,
|
|
2243
|
-
rfId: ve
|
|
2244
|
-
}),
|
|
2245
|
-
X("div", { className: "react-flow__viewport-portal" })
|
|
2246
|
-
] })
|
|
2247
|
-
});
|
|
2248
|
-
}
|
|
2249
|
-
xr.displayName = "GraphView";
|
|
2250
|
-
var Sr = W(xr), Cr = ({ 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
|
-
nodeOrigin: C,
|
|
2255
|
-
nodeExtent: w,
|
|
2256
|
-
zIndexMode: p
|
|
2257
|
-
}), E = [
|
|
2258
|
-
0,
|
|
2259
|
-
0,
|
|
2260
|
-
1
|
|
2261
|
-
];
|
|
2262
|
-
if (s && a && o) {
|
|
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
|
-
E = [
|
|
2265
|
-
e,
|
|
2266
|
-
t,
|
|
2267
|
-
n
|
|
2268
|
-
];
|
|
2269
|
-
}
|
|
2270
|
-
return {
|
|
2271
|
-
rfId: "1",
|
|
2272
|
-
width: a ?? 0,
|
|
2273
|
-
height: o ?? 0,
|
|
2274
|
-
transform: E,
|
|
2275
|
-
nodes: S,
|
|
2276
|
-
nodesInitialized: T,
|
|
2277
|
-
nodeLookup: h,
|
|
2278
|
-
parentLookup: g,
|
|
2279
|
-
edges: x,
|
|
2280
|
-
edgeLookup: b,
|
|
2281
|
-
connectionLookup: _,
|
|
2282
|
-
onNodesChange: null,
|
|
2283
|
-
onEdgesChange: null,
|
|
2284
|
-
hasDefaultNodes: r !== void 0,
|
|
2285
|
-
hasDefaultEdges: i !== void 0,
|
|
2286
|
-
panZoom: null,
|
|
2287
|
-
minZoom: l,
|
|
2288
|
-
maxZoom: u,
|
|
2289
|
-
translateExtent: ne,
|
|
2290
|
-
nodeExtent: w,
|
|
2291
|
-
nodesSelectionActive: !1,
|
|
2292
|
-
userSelectionActive: !1,
|
|
2293
|
-
userSelectionRect: null,
|
|
2294
|
-
connectionMode: n.Strict,
|
|
2295
|
-
domNode: null,
|
|
2296
|
-
paneDragging: !1,
|
|
2297
|
-
noPanClassName: "nopan",
|
|
2298
|
-
nodeOrigin: C,
|
|
2299
|
-
nodeDragThreshold: 1,
|
|
2300
|
-
connectionDragThreshold: 1,
|
|
2301
|
-
snapGrid: [15, 15],
|
|
2302
|
-
snapToGrid: !1,
|
|
2303
|
-
nodesDraggable: !0,
|
|
2304
|
-
nodesConnectable: !0,
|
|
2305
|
-
nodesFocusable: !0,
|
|
2306
|
-
edgesFocusable: !0,
|
|
2307
|
-
edgesReconnectable: !0,
|
|
2308
|
-
elementsSelectable: !0,
|
|
2309
|
-
elevateNodesOnSelect: !0,
|
|
2310
|
-
elevateEdgesOnSelect: !0,
|
|
2311
|
-
selectNodesOnDrag: !0,
|
|
2312
|
-
multiSelectionActive: !1,
|
|
2313
|
-
fitViewQueued: s ?? !1,
|
|
2314
|
-
fitViewOptions: c,
|
|
2315
|
-
fitViewResolver: null,
|
|
2316
|
-
connection: { ...re },
|
|
2317
|
-
connectionClickStartHandle: null,
|
|
2318
|
-
connectOnClick: !0,
|
|
2319
|
-
ariaLiveMessage: "",
|
|
2320
|
-
autoPanOnConnect: !0,
|
|
2321
|
-
autoPanOnNodeDrag: !0,
|
|
2322
|
-
autoPanOnNodeFocus: !0,
|
|
2323
|
-
autoPanSpeed: 15,
|
|
2324
|
-
connectionRadius: 20,
|
|
2325
|
-
onError: y,
|
|
2326
|
-
isValidConnection: void 0,
|
|
2327
|
-
onSelectionChangeHandlers: [],
|
|
2328
|
-
lib: "react",
|
|
2329
|
-
debug: !1,
|
|
2330
|
-
ariaLabelConfig: v,
|
|
2331
|
-
zIndexMode: p,
|
|
2332
|
-
onNodesChangeMiddlewareMap: /* @__PURE__ */ new Map(),
|
|
2333
|
-
onEdgesChangeMiddlewareMap: /* @__PURE__ */ new Map()
|
|
2334
|
-
};
|
|
2335
|
-
}, wr = ({ 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 }) => Ce((h, g) => {
|
|
2336
|
-
async function _() {
|
|
2337
|
-
let { nodeLookup: e, panZoom: t, fitViewOptions: n, fitViewResolver: r, width: i, height: a, minZoom: o, maxZoom: s } = g();
|
|
2338
|
-
t && (await C({
|
|
2339
|
-
nodes: e,
|
|
2340
|
-
width: i,
|
|
2341
|
-
height: a,
|
|
2342
|
-
panZoom: t,
|
|
2343
|
-
minZoom: o,
|
|
2344
|
-
maxZoom: s
|
|
2345
|
-
}, n), r?.resolve(!0), h({ fitViewResolver: null }));
|
|
2346
|
-
}
|
|
2347
|
-
return {
|
|
2348
|
-
...Cr({
|
|
2349
|
-
nodes: e,
|
|
2350
|
-
edges: t,
|
|
2351
|
-
width: i,
|
|
2352
|
-
height: o,
|
|
2353
|
-
fitView: s,
|
|
2354
|
-
fitViewOptions: c,
|
|
2355
|
-
minZoom: l,
|
|
2356
|
-
maxZoom: u,
|
|
2357
|
-
nodeOrigin: d,
|
|
2358
|
-
nodeExtent: f,
|
|
2359
|
-
defaultNodes: n,
|
|
2360
|
-
defaultEdges: r,
|
|
2361
|
-
zIndexMode: p
|
|
2362
|
-
}),
|
|
2363
|
-
setNodes: (e) => {
|
|
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
|
-
nodeOrigin: r,
|
|
2366
|
-
nodeExtent: f,
|
|
2367
|
-
elevateNodesOnSelect: i,
|
|
2368
|
-
checkEquality: !0,
|
|
2369
|
-
zIndexMode: o
|
|
2370
|
-
}), u = s && l;
|
|
2371
|
-
a && c ? (_(), h({
|
|
2372
|
-
nodes: e,
|
|
2373
|
-
nodesInitialized: c,
|
|
2374
|
-
fitViewQueued: !1,
|
|
2375
|
-
fitViewOptions: void 0,
|
|
2376
|
-
nodesSelectionActive: u
|
|
2377
|
-
})) : h({
|
|
2378
|
-
nodes: e,
|
|
2379
|
-
nodesInitialized: c,
|
|
2380
|
-
nodesSelectionActive: u
|
|
2381
|
-
});
|
|
2382
|
-
},
|
|
2383
|
-
setEdges: (e) => {
|
|
2384
|
-
let { connectionLookup: t, edgeLookup: n } = g();
|
|
2385
|
-
be(t, n, e), h({ edges: e });
|
|
2386
|
-
},
|
|
2387
|
-
setDefaultNodesAndEdges: (e, t) => {
|
|
2388
|
-
if (e) {
|
|
2389
|
-
let { setNodes: t } = g();
|
|
2390
|
-
t(e), h({ hasDefaultNodes: !0 });
|
|
2391
|
-
}
|
|
2392
|
-
if (t) {
|
|
2393
|
-
let { setEdges: e } = g();
|
|
2394
|
-
e(t), h({ hasDefaultEdges: !0 });
|
|
2395
|
-
}
|
|
2396
|
-
},
|
|
2397
|
-
updateNodeInternals: (e) => {
|
|
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, {
|
|
2400
|
-
nodeOrigin: a,
|
|
2401
|
-
nodeExtent: o,
|
|
2402
|
-
zIndexMode: l
|
|
2403
|
-
}), c ? (_(), h({
|
|
2404
|
-
fitViewQueued: !1,
|
|
2405
|
-
fitViewOptions: void 0
|
|
2406
|
-
})) : h({}), u?.length > 0 && (s && console.log("React Flow: trigger node changes", u), t?.(u)));
|
|
2407
|
-
},
|
|
2408
|
-
updateNodePositions: (e, t = !1) => {
|
|
2409
|
-
let n = [], r = [], { nodeLookup: i, triggerNodeChanges: o, connection: s, updateConnection: c, onNodesChangeMiddlewareMap: l } = g();
|
|
2410
|
-
for (let [o, l] of e) {
|
|
2411
|
-
let e = i.get(o), u = !!(e?.expandParent && e?.parentId && l?.position), d = {
|
|
2412
|
-
id: o,
|
|
2413
|
-
type: "position",
|
|
2414
|
-
position: u ? {
|
|
2415
|
-
x: Math.max(0, l.position.x),
|
|
2416
|
-
y: Math.max(0, l.position.y)
|
|
2417
|
-
} : l.position,
|
|
2418
|
-
dragging: t
|
|
2419
|
-
};
|
|
2420
|
-
if (e && s.inProgress && s.fromNode.id === e.id) {
|
|
2421
|
-
let t = N(e, s.fromHandle, a.Left, !0);
|
|
2422
|
-
c({
|
|
2423
|
-
...s,
|
|
2424
|
-
from: t
|
|
2425
|
-
});
|
|
2426
|
-
}
|
|
2427
|
-
u && e.parentId && n.push({
|
|
2428
|
-
id: o,
|
|
2429
|
-
parentId: e.parentId,
|
|
2430
|
-
rect: {
|
|
2431
|
-
...l.internals.positionAbsolute,
|
|
2432
|
-
width: l.measured.width ?? 0,
|
|
2433
|
-
height: l.measured.height ?? 0
|
|
2434
|
-
}
|
|
2435
|
-
}), r.push(d);
|
|
2436
|
-
}
|
|
2437
|
-
if (n.length > 0) {
|
|
2438
|
-
let { parentLookup: e, nodeOrigin: t } = g(), a = te(n, i, e, t);
|
|
2439
|
-
r.push(...a);
|
|
2440
|
-
}
|
|
2441
|
-
for (let e of l.values()) r = e(r);
|
|
2442
|
-
o(r);
|
|
2443
|
-
},
|
|
2444
|
-
triggerNodeChanges: (e) => {
|
|
2445
|
-
let { onNodesChange: t, setNodes: n, nodes: r, hasDefaultNodes: i, debug: a } = g();
|
|
2446
|
-
e?.length && (i && n(ft(e, r)), a && console.log("React Flow: trigger node changes", e), t?.(e));
|
|
2447
|
-
},
|
|
2448
|
-
triggerEdgeChanges: (e) => {
|
|
2449
|
-
let { onEdgesChange: t, setEdges: n, edges: r, hasDefaultEdges: i, debug: a } = g();
|
|
2450
|
-
e?.length && (i && n(pt(e, r)), a && console.log("React Flow: trigger edge changes", e), t?.(e));
|
|
2451
|
-
},
|
|
2452
|
-
addSelectedNodes: (e) => {
|
|
2453
|
-
let { multiSelectionActive: t, edgeLookup: n, nodeLookup: r, triggerNodeChanges: i, triggerEdgeChanges: a } = g();
|
|
2454
|
-
if (t) {
|
|
2455
|
-
i(e.map((e) => mt(e, !0)));
|
|
2456
|
-
return;
|
|
2457
|
-
}
|
|
2458
|
-
i(ht(r, new Set([...e]), !0)), a(ht(n));
|
|
2459
|
-
},
|
|
2460
|
-
addSelectedEdges: (e) => {
|
|
2461
|
-
let { multiSelectionActive: t, edgeLookup: n, nodeLookup: r, triggerNodeChanges: i, triggerEdgeChanges: a } = g();
|
|
2462
|
-
if (t) {
|
|
2463
|
-
a(e.map((e) => mt(e, !0)));
|
|
2464
|
-
return;
|
|
2465
|
-
}
|
|
2466
|
-
a(ht(n, new Set([...e]))), i(ht(r, /* @__PURE__ */ new Set(), !0));
|
|
2467
|
-
},
|
|
2468
|
-
unselectNodesAndEdges: ({ nodes: e, edges: t } = {}) => {
|
|
2469
|
-
let { edges: n, nodes: r, nodeLookup: i, triggerNodeChanges: a, triggerEdgeChanges: o } = g(), s = e || r, c = t || n, l = [];
|
|
2470
|
-
for (let e of s) {
|
|
2471
|
-
if (!e.selected) continue;
|
|
2472
|
-
let t = i.get(e.id);
|
|
2473
|
-
t && (t.selected = !1), l.push(mt(e.id, !1));
|
|
2474
|
-
}
|
|
2475
|
-
let u = [];
|
|
2476
|
-
for (let e of c) e.selected && u.push(mt(e.id, !1));
|
|
2477
|
-
a(l), o(u);
|
|
2478
|
-
},
|
|
2479
|
-
setMinZoom: (e) => {
|
|
2480
|
-
let { panZoom: t, maxZoom: n } = g();
|
|
2481
|
-
t?.setScaleExtent([e, n]), h({ minZoom: e });
|
|
2482
|
-
},
|
|
2483
|
-
setMaxZoom: (e) => {
|
|
2484
|
-
let { panZoom: t, minZoom: n } = g();
|
|
2485
|
-
t?.setScaleExtent([n, e]), h({ maxZoom: e });
|
|
2486
|
-
},
|
|
2487
|
-
setTranslateExtent: (e) => {
|
|
2488
|
-
g().panZoom?.setTranslateExtent(e), h({ translateExtent: e });
|
|
2489
|
-
},
|
|
2490
|
-
resetSelectedElements: () => {
|
|
2491
|
-
let { edges: e, nodes: t, triggerNodeChanges: n, triggerEdgeChanges: r, elementsSelectable: i } = g();
|
|
2492
|
-
if (!i) return;
|
|
2493
|
-
let a = t.reduce((e, t) => t.selected ? [...e, mt(t.id, !1)] : e, []), o = e.reduce((e, t) => t.selected ? [...e, mt(t.id, !1)] : e, []);
|
|
2494
|
-
n(a), r(o);
|
|
2495
|
-
},
|
|
2496
|
-
setNodeExtent: (e) => {
|
|
2497
|
-
let { nodes: t, nodeLookup: n, parentLookup: r, nodeOrigin: i, elevateNodesOnSelect: a, nodeExtent: o, zIndexMode: s } = g();
|
|
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, {
|
|
2499
|
-
nodeOrigin: i,
|
|
2500
|
-
nodeExtent: e,
|
|
2501
|
-
elevateNodesOnSelect: a,
|
|
2502
|
-
checkEquality: !1,
|
|
2503
|
-
zIndexMode: s
|
|
2504
|
-
}), h({ nodeExtent: e }));
|
|
2505
|
-
},
|
|
2506
|
-
panBy: (e) => {
|
|
2507
|
-
let { transform: t, width: n, height: r, panZoom: i, translateExtent: a } = g();
|
|
2508
|
-
return he({
|
|
2509
|
-
delta: e,
|
|
2510
|
-
panZoom: i,
|
|
2511
|
-
transform: t,
|
|
2512
|
-
translateExtent: a,
|
|
2513
|
-
width: n,
|
|
2514
|
-
height: r
|
|
2515
|
-
});
|
|
2516
|
-
},
|
|
2517
|
-
setCenter: async (e, t, n) => {
|
|
2518
|
-
let { width: r, height: i, maxZoom: a, panZoom: o } = g();
|
|
2519
|
-
if (!o) return Promise.resolve(!1);
|
|
2520
|
-
let s = n?.zoom === void 0 ? a : n.zoom;
|
|
2521
|
-
return await o.setViewport({
|
|
2522
|
-
x: r / 2 - e * s,
|
|
2523
|
-
y: i / 2 - t * s,
|
|
2524
|
-
zoom: s
|
|
2525
|
-
}, {
|
|
2526
|
-
duration: n?.duration,
|
|
2527
|
-
ease: n?.ease,
|
|
2528
|
-
interpolate: n?.interpolate
|
|
2529
|
-
}), Promise.resolve(!0);
|
|
2530
|
-
},
|
|
2531
|
-
cancelConnection: () => {
|
|
2532
|
-
h({ connection: { ...re } });
|
|
2533
|
-
},
|
|
2534
|
-
updateConnection: (e) => {
|
|
2535
|
-
h({ connection: e });
|
|
2536
|
-
},
|
|
2537
|
-
reset: () => h({ ...Cr() })
|
|
2538
|
-
};
|
|
2539
|
-
}, Object.is);
|
|
2540
|
-
function Tr({ 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] = Y(() => wr({
|
|
2542
|
-
nodes: e,
|
|
2543
|
-
edges: t,
|
|
2544
|
-
defaultNodes: n,
|
|
2545
|
-
defaultEdges: r,
|
|
2546
|
-
width: i,
|
|
2547
|
-
height: a,
|
|
2548
|
-
fitView: l,
|
|
2549
|
-
minZoom: o,
|
|
2550
|
-
maxZoom: s,
|
|
2551
|
-
fitViewOptions: c,
|
|
2552
|
-
nodeOrigin: u,
|
|
2553
|
-
nodeExtent: d,
|
|
2554
|
-
zIndexMode: f
|
|
2555
|
-
}));
|
|
2556
|
-
return X(je, {
|
|
2557
|
-
value: m,
|
|
2558
|
-
children: X(wt, { children: p })
|
|
2559
|
-
});
|
|
2560
|
-
}
|
|
2561
|
-
function Er({ 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 De(Ae) ? X(ke, { children: e }) : X(Tr, {
|
|
2563
|
-
initialNodes: t,
|
|
2564
|
-
initialEdges: n,
|
|
2565
|
-
defaultNodes: r,
|
|
2566
|
-
defaultEdges: i,
|
|
2567
|
-
initialWidth: a,
|
|
2568
|
-
initialHeight: o,
|
|
2569
|
-
fitView: s,
|
|
2570
|
-
initialFitViewOptions: c,
|
|
2571
|
-
initialMinZoom: l,
|
|
2572
|
-
initialMaxZoom: u,
|
|
2573
|
-
nodeOrigin: d,
|
|
2574
|
-
nodeExtent: f,
|
|
2575
|
-
zIndexMode: p,
|
|
2576
|
-
children: e
|
|
2577
|
-
});
|
|
2578
|
-
}
|
|
2579
|
-
var Dr = {
|
|
2580
|
-
width: "100%",
|
|
2581
|
-
height: "100%",
|
|
2582
|
-
overflow: "hidden",
|
|
2583
|
-
position: "relative",
|
|
2584
|
-
zIndex: 0
|
|
2585
|
-
};
|
|
2586
|
-
function Or({ 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 = Ze, edgesFocusable: xe, edgesReconnectable: Se, elementsSelectable: Ce = !0, defaultViewport: we = Qe, minZoom: U = .5, maxZoom: Te = 2, translateExtent: Ee = ne, preventScrolling: W = !0, nodeExtent: De, defaultMarkerColor: K = "#b1b1b7", zoomOnScroll: Oe = !0, zoomOnPinch: q = !0, panOnScroll: J = !1, panOnScrollSpeed: Y = .5, panOnScrollMode: ke = i.Free, zoomOnDoubleClick: Ae = !0, panOnDrag: je = !0, onPaneClick: Me, onPaneMouseEnter: Q, onPaneMouseMove: $, onPaneMouseLeave: Ne, onPaneScroll: Pe, onPaneContextMenu: Fe, paneClickDistance: Ie = 1, nodeClickDistance: Le = 0, children: Re, onReconnect: ze, onReconnectStart: Be, onReconnectEnd: He, onEdgeContextMenu: We, onEdgeDoubleClick: Ge, onEdgeMouseEnter: Ke, onEdgeMouseMove: qe, onEdgeMouseLeave: Je, reconnectRadius: Xe = 10, onNodesChange: $e, onEdgesChange: et, noDragClassName: tt = "nodrag", noWheelClassName: rt = "nowheel", noPanClassName: at = "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 = it(kt), Rt = G((e) => {
|
|
2588
|
-
e.currentTarget.scrollTo({
|
|
2589
|
-
top: 0,
|
|
2590
|
-
left: 0,
|
|
2591
|
-
behavior: "instant"
|
|
2592
|
-
}), jt?.(e);
|
|
2593
|
-
}, [jt]);
|
|
2594
|
-
return X("div", {
|
|
2595
|
-
"data-testid": "rf__wrapper",
|
|
2596
|
-
...Pt,
|
|
2597
|
-
onScroll: Rt,
|
|
2598
|
-
style: {
|
|
2599
|
-
...xt,
|
|
2600
|
-
...Dr
|
|
2601
|
-
},
|
|
2602
|
-
ref: Ft,
|
|
2603
|
-
className: e([
|
|
2604
|
-
"react-flow",
|
|
2605
|
-
c,
|
|
2606
|
-
Lt
|
|
2607
|
-
]),
|
|
2608
|
-
id: St,
|
|
2609
|
-
role: "application",
|
|
2610
|
-
children: Z(Er, {
|
|
2611
|
-
nodes: n,
|
|
2612
|
-
edges: r,
|
|
2613
|
-
width: Dt,
|
|
2614
|
-
height: Ot,
|
|
2615
|
-
fitView: ot,
|
|
2616
|
-
fitViewOptions: st,
|
|
2617
|
-
minZoom: U,
|
|
2618
|
-
maxZoom: Te,
|
|
2619
|
-
nodeOrigin: be,
|
|
2620
|
-
nodeExtent: De,
|
|
2621
|
-
zIndexMode: Nt,
|
|
2622
|
-
children: [
|
|
2623
|
-
X(nt, {
|
|
2624
|
-
nodes: n,
|
|
2625
|
-
edges: r,
|
|
2626
|
-
defaultNodes: a,
|
|
2627
|
-
defaultEdges: o,
|
|
2628
|
-
onConnect: _,
|
|
2629
|
-
onConnectStart: v,
|
|
2630
|
-
onConnectEnd: y,
|
|
2631
|
-
onClickConnectStart: b,
|
|
2632
|
-
onClickConnectEnd: x,
|
|
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: De,
|
|
2645
|
-
onNodesChange: $e,
|
|
2646
|
-
onEdgesChange: et,
|
|
2647
|
-
snapToGrid: fe,
|
|
2648
|
-
snapGrid: pe,
|
|
2649
|
-
connectionMode: B,
|
|
2650
|
-
translateExtent: Ee,
|
|
2651
|
-
connectOnClick: ct,
|
|
2652
|
-
defaultEdgeOptions: dt,
|
|
2653
|
-
fitView: ot,
|
|
2654
|
-
fitViewOptions: st,
|
|
2655
|
-
onNodesDelete: A,
|
|
2656
|
-
onEdgesDelete: j,
|
|
2657
|
-
onDelete: M,
|
|
2658
|
-
onNodeDragStart: D,
|
|
2659
|
-
onNodeDrag: O,
|
|
2660
|
-
onNodeDragStop: k,
|
|
2661
|
-
onSelectionDrag: F,
|
|
2662
|
-
onSelectionDragStart: P,
|
|
2663
|
-
onSelectionDragStop: ee,
|
|
2664
|
-
onMove: m,
|
|
2665
|
-
onMoveStart: h,
|
|
2666
|
-
onMoveEnd: g,
|
|
2667
|
-
noPanClassName: at,
|
|
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
|
-
X(Sr, {
|
|
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: Ee,
|
|
2709
|
-
minZoom: U,
|
|
2710
|
-
maxZoom: Te,
|
|
2711
|
-
preventScrolling: W,
|
|
2712
|
-
zoomOnScroll: Oe,
|
|
2713
|
-
zoomOnPinch: q,
|
|
2714
|
-
zoomOnDoubleClick: Ae,
|
|
2715
|
-
panOnScroll: J,
|
|
2716
|
-
panOnScrollSpeed: Y,
|
|
2717
|
-
panOnScrollMode: ke,
|
|
2718
|
-
panOnDrag: je,
|
|
2719
|
-
onPaneClick: Me,
|
|
2720
|
-
onPaneMouseEnter: Q,
|
|
2721
|
-
onPaneMouseMove: $,
|
|
2722
|
-
onPaneMouseLeave: Ne,
|
|
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: He,
|
|
2733
|
-
onEdgeContextMenu: We,
|
|
2734
|
-
onEdgeDoubleClick: Ge,
|
|
2735
|
-
onEdgeMouseEnter: Ke,
|
|
2736
|
-
onEdgeMouseMove: qe,
|
|
2737
|
-
onEdgeMouseLeave: Je,
|
|
2738
|
-
reconnectRadius: Xe,
|
|
2739
|
-
defaultMarkerColor: K,
|
|
2740
|
-
noDragClassName: tt,
|
|
2741
|
-
noWheelClassName: rt,
|
|
2742
|
-
noPanClassName: at,
|
|
2743
|
-
rfId: It,
|
|
2744
|
-
disableKeyboardA11y: mt,
|
|
2745
|
-
nodeExtent: De,
|
|
2746
|
-
viewport: Tt,
|
|
2747
|
-
onViewportChange: Et
|
|
2748
|
-
}),
|
|
2749
|
-
X(Ye, { onSelectionChange: N }),
|
|
2750
|
-
Re,
|
|
2751
|
-
X(Ue, {
|
|
2752
|
-
proOptions: ut,
|
|
2753
|
-
position: lt
|
|
2754
|
-
}),
|
|
2755
|
-
X(Ve, {
|
|
2756
|
-
rfId: It,
|
|
2757
|
-
disableKeyboardA11y: mt
|
|
2758
|
-
})
|
|
2759
|
-
]
|
|
2760
|
-
})
|
|
2761
|
-
});
|
|
2762
|
-
}
|
|
2763
|
-
var kr = bt(Or);
|
|
2764
|
-
function Ar(e) {
|
|
2765
|
-
let [t, n] = Y(e);
|
|
2766
|
-
return [
|
|
2767
|
-
t,
|
|
2768
|
-
n,
|
|
2769
|
-
G((e) => n((t) => ft(e, t)), [])
|
|
2770
|
-
];
|
|
2771
|
-
}
|
|
2772
|
-
function jr(e) {
|
|
2773
|
-
let [t, n] = Y(e);
|
|
2774
|
-
return [
|
|
2775
|
-
t,
|
|
2776
|
-
n,
|
|
2777
|
-
G((e) => n((t) => pt(e, t)), [])
|
|
2778
|
-
];
|
|
2779
|
-
}
|
|
2780
|
-
x.error014();
|
|
2781
|
-
function Mr({ dimensions: t, lineWidth: n, variant: r, className: i }) {
|
|
2782
|
-
return X("path", {
|
|
2783
|
-
strokeWidth: n,
|
|
2784
|
-
d: `M${t[0] / 2} 0 V${t[1]} M0 ${t[1] / 2} H${t[0]}`,
|
|
2785
|
-
className: e([
|
|
2786
|
-
"react-flow__background-pattern",
|
|
2787
|
-
r,
|
|
2788
|
-
i
|
|
2789
|
-
])
|
|
2790
|
-
});
|
|
2791
|
-
}
|
|
2792
|
-
function Nr({ radius: t, className: n }) {
|
|
2793
|
-
return X("circle", {
|
|
2794
|
-
cx: t,
|
|
2795
|
-
cy: t,
|
|
2796
|
-
r: t,
|
|
2797
|
-
className: e([
|
|
2798
|
-
"react-flow__background-pattern",
|
|
2799
|
-
"dots",
|
|
2800
|
-
n
|
|
2801
|
-
])
|
|
2802
|
-
});
|
|
2803
|
-
}
|
|
2804
|
-
var Pr;
|
|
2805
|
-
(function(e) {
|
|
2806
|
-
e.Lines = "lines", e.Dots = "dots", e.Cross = "cross";
|
|
2807
|
-
})(Pr ||= {});
|
|
2808
|
-
var Fr = {
|
|
2809
|
-
[Pr.Dots]: 1,
|
|
2810
|
-
[Pr.Lines]: 1,
|
|
2811
|
-
[Pr.Cross]: 6
|
|
2812
|
-
}, Ir = (e) => ({
|
|
2813
|
-
transform: e.transform,
|
|
2814
|
-
patternId: `pattern-${e.rfId}`
|
|
2815
|
-
});
|
|
2816
|
-
function Lr({ id: t, variant: n = Pr.Dots, gap: r = 20, size: i, lineWidth: a = 1, offset: o = 0, color: s, bgColor: c, style: l, className: u, patternClassName: d }) {
|
|
2817
|
-
let f = J(null), { transform: p, patternId: m } = Q(Ir, U), h = i || Fr[n], g = n === Pr.Dots, _ = n === Pr.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 || ""}`;
|
|
2818
|
-
return Z("svg", {
|
|
2819
|
-
className: e(["react-flow__background", u]),
|
|
2820
|
-
style: {
|
|
2821
|
-
...l,
|
|
2822
|
-
...Mt,
|
|
2823
|
-
"--xy-background-color-props": c,
|
|
2824
|
-
"--xy-background-pattern-color-props": s
|
|
2825
|
-
},
|
|
2826
|
-
ref: f,
|
|
2827
|
-
"data-testid": "rf__background",
|
|
2828
|
-
children: [X("pattern", {
|
|
2829
|
-
id: w,
|
|
2830
|
-
x: p[0] % y[0],
|
|
2831
|
-
y: p[1] % y[1],
|
|
2832
|
-
width: y[0],
|
|
2833
|
-
height: y[1],
|
|
2834
|
-
patternUnits: "userSpaceOnUse",
|
|
2835
|
-
patternTransform: `translate(-${C[0]},-${C[1]})`,
|
|
2836
|
-
children: g ? X(Nr, {
|
|
2837
|
-
radius: b / 2,
|
|
2838
|
-
className: d
|
|
2839
|
-
}) : X(Mr, {
|
|
2840
|
-
dimensions: S,
|
|
2841
|
-
lineWidth: a,
|
|
2842
|
-
variant: n,
|
|
2843
|
-
className: d
|
|
2844
|
-
})
|
|
2845
|
-
}), X("rect", {
|
|
2846
|
-
x: "0",
|
|
2847
|
-
y: "0",
|
|
2848
|
-
width: "100%",
|
|
2849
|
-
height: "100%",
|
|
2850
|
-
fill: `url(#${w})`
|
|
2851
|
-
})]
|
|
2852
|
-
});
|
|
2853
|
-
}
|
|
2854
|
-
Lr.displayName = "Background";
|
|
2855
|
-
var Rr = W(Lr);
|
|
2856
|
-
function zr() {
|
|
2857
|
-
return X("svg", {
|
|
2858
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2859
|
-
viewBox: "0 0 32 32",
|
|
2860
|
-
children: X("path", { d: "M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z" })
|
|
2861
|
-
});
|
|
2862
|
-
}
|
|
2863
|
-
function Br() {
|
|
2864
|
-
return X("svg", {
|
|
2865
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2866
|
-
viewBox: "0 0 32 5",
|
|
2867
|
-
children: X("path", { d: "M0 0h32v4.2H0z" })
|
|
2868
|
-
});
|
|
2869
|
-
}
|
|
2870
|
-
function Vr() {
|
|
2871
|
-
return X("svg", {
|
|
2872
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2873
|
-
viewBox: "0 0 32 30",
|
|
2874
|
-
children: X("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" })
|
|
2875
|
-
});
|
|
2876
|
-
}
|
|
2877
|
-
function Hr() {
|
|
2878
|
-
return X("svg", {
|
|
2879
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2880
|
-
viewBox: "0 0 25 32",
|
|
2881
|
-
children: X("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" })
|
|
2882
|
-
});
|
|
2883
|
-
}
|
|
2884
|
-
function Ur() {
|
|
2885
|
-
return X("svg", {
|
|
2886
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2887
|
-
viewBox: "0 0 25 32",
|
|
2888
|
-
children: X("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" })
|
|
2889
|
-
});
|
|
2890
|
-
}
|
|
2891
|
-
function Wr({ children: t, className: n, ...r }) {
|
|
2892
|
-
return X("button", {
|
|
2893
|
-
type: "button",
|
|
2894
|
-
className: e(["react-flow__controls-button", n]),
|
|
2895
|
-
...r,
|
|
2896
|
-
children: t
|
|
2897
|
-
});
|
|
2898
|
-
}
|
|
2899
|
-
var Gr = (e) => ({
|
|
2900
|
-
isInteractive: e.nodesDraggable || e.nodesConnectable || e.elementsSelectable,
|
|
2901
|
-
minZoomReached: e.transform[2] <= e.minZoom,
|
|
2902
|
-
maxZoomReached: e.transform[2] >= e.maxZoom,
|
|
2903
|
-
ariaLabelConfig: e.ariaLabelConfig
|
|
2904
|
-
});
|
|
2905
|
-
function Kr({ 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 }) {
|
|
2906
|
-
let h = $(), { isInteractive: g, minZoomReached: _, maxZoomReached: v, ariaLabelConfig: y } = Q(Gr, U), { zoomIn: b, zoomOut: x, fitView: S } = Dt();
|
|
2907
|
-
return Z(He, {
|
|
2908
|
-
className: e([
|
|
2909
|
-
"react-flow__controls",
|
|
2910
|
-
p === "horizontal" ? "horizontal" : "vertical",
|
|
2911
|
-
u
|
|
2912
|
-
]),
|
|
2913
|
-
position: f,
|
|
2914
|
-
style: t,
|
|
2915
|
-
"data-testid": "rf__controls",
|
|
2916
|
-
"aria-label": m ?? y["controls.ariaLabel"],
|
|
2917
|
-
children: [
|
|
2918
|
-
n && Z(ke, { children: [X(Wr, {
|
|
2919
|
-
onClick: () => {
|
|
2920
|
-
b(), o?.();
|
|
2921
|
-
},
|
|
2922
|
-
className: "react-flow__controls-zoomin",
|
|
2923
|
-
title: y["controls.zoomIn.ariaLabel"],
|
|
2924
|
-
"aria-label": y["controls.zoomIn.ariaLabel"],
|
|
2925
|
-
disabled: v,
|
|
2926
|
-
children: X(zr, {})
|
|
2927
|
-
}), X(Wr, {
|
|
2928
|
-
onClick: () => {
|
|
2929
|
-
x(), s?.();
|
|
2930
|
-
},
|
|
2931
|
-
className: "react-flow__controls-zoomout",
|
|
2932
|
-
title: y["controls.zoomOut.ariaLabel"],
|
|
2933
|
-
"aria-label": y["controls.zoomOut.ariaLabel"],
|
|
2934
|
-
disabled: _,
|
|
2935
|
-
children: X(Br, {})
|
|
2936
|
-
})] }),
|
|
2937
|
-
r && X(Wr, {
|
|
2938
|
-
className: "react-flow__controls-fitview",
|
|
2939
|
-
onClick: () => {
|
|
2940
|
-
S(a), c?.();
|
|
2941
|
-
},
|
|
2942
|
-
title: y["controls.fitView.ariaLabel"],
|
|
2943
|
-
"aria-label": y["controls.fitView.ariaLabel"],
|
|
2944
|
-
children: X(Vr, {})
|
|
2945
|
-
}),
|
|
2946
|
-
i && X(Wr, {
|
|
2947
|
-
className: "react-flow__controls-interactive",
|
|
2948
|
-
onClick: () => {
|
|
2949
|
-
h.setState({
|
|
2950
|
-
nodesDraggable: !g,
|
|
2951
|
-
nodesConnectable: !g,
|
|
2952
|
-
elementsSelectable: !g
|
|
2953
|
-
}), l?.(!g);
|
|
2954
|
-
},
|
|
2955
|
-
title: y["controls.interactive.ariaLabel"],
|
|
2956
|
-
"aria-label": y["controls.interactive.ariaLabel"],
|
|
2957
|
-
children: X(g ? Ur : Hr, {})
|
|
2958
|
-
}),
|
|
2959
|
-
d
|
|
2960
|
-
]
|
|
2961
|
-
});
|
|
2962
|
-
}
|
|
2963
|
-
Kr.displayName = "Controls";
|
|
2964
|
-
var qr = W(Kr);
|
|
2965
|
-
function Jr({ 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 }) {
|
|
2966
|
-
let { background: h, backgroundColor: g } = o || {}, _ = s || h || g;
|
|
2967
|
-
return X("rect", {
|
|
2968
|
-
className: e([
|
|
2969
|
-
"react-flow__minimap-node",
|
|
2970
|
-
{ selected: p },
|
|
2971
|
-
u
|
|
2972
|
-
]),
|
|
2973
|
-
x: n,
|
|
2974
|
-
y: r,
|
|
2975
|
-
rx: d,
|
|
2976
|
-
ry: d,
|
|
2977
|
-
width: i,
|
|
2978
|
-
height: a,
|
|
2979
|
-
style: {
|
|
2980
|
-
fill: _,
|
|
2981
|
-
stroke: c,
|
|
2982
|
-
strokeWidth: l
|
|
2983
|
-
},
|
|
2984
|
-
shapeRendering: f,
|
|
2985
|
-
onClick: m ? (e) => m(e, t) : void 0
|
|
2986
|
-
});
|
|
2987
|
-
}
|
|
2988
|
-
var Yr = W(Jr), Xr = (e) => e.nodes.map((e) => e.id), Zr = (e) => e instanceof Function ? e : () => e;
|
|
2989
|
-
function Qr({ nodeStrokeColor: e, nodeColor: t, nodeClassName: n = "", nodeBorderRadius: r = 5, nodeStrokeWidth: i, nodeComponent: a = Yr, onClick: o }) {
|
|
2990
|
-
let s = Q(Xr, U), c = Zr(t), l = Zr(e), u = Zr(n), d = typeof window > "u" || window.chrome ? "crispEdges" : "geometricPrecision";
|
|
2991
|
-
return X(ke, { children: s.map((e) => X(ei, {
|
|
2992
|
-
id: e,
|
|
2993
|
-
nodeColorFunc: c,
|
|
2994
|
-
nodeStrokeColorFunc: l,
|
|
2995
|
-
nodeClassNameFunc: u,
|
|
2996
|
-
nodeBorderRadius: r,
|
|
2997
|
-
nodeStrokeWidth: i,
|
|
2998
|
-
NodeComponent: a,
|
|
2999
|
-
onClick: o,
|
|
3000
|
-
shapeRendering: d
|
|
3001
|
-
}, e)) });
|
|
3002
|
-
}
|
|
3003
|
-
function $r({ id: e, nodeColorFunc: t, nodeStrokeColorFunc: n, nodeClassNameFunc: r, nodeBorderRadius: i, nodeStrokeWidth: a, shapeRendering: o, NodeComponent: s, onClick: c }) {
|
|
3004
|
-
let { node: l, x: u, y: d, width: f, height: p } = Q((t) => {
|
|
3005
|
-
let n = t.nodeLookup.get(e);
|
|
3006
|
-
if (!n) return {
|
|
3007
|
-
node: void 0,
|
|
3008
|
-
x: 0,
|
|
3009
|
-
y: 0,
|
|
3010
|
-
width: 0,
|
|
3011
|
-
height: 0
|
|
3012
|
-
};
|
|
3013
|
-
let r = n.internals.userNode, { x: i, y: a } = n.internals.positionAbsolute, { width: o, height: s } = I(r);
|
|
3014
|
-
return {
|
|
3015
|
-
node: r,
|
|
3016
|
-
x: i,
|
|
3017
|
-
y: a,
|
|
3018
|
-
width: o,
|
|
3019
|
-
height: s
|
|
3020
|
-
};
|
|
3021
|
-
}, U);
|
|
3022
|
-
return !l || l.hidden || !pe(l) ? null : X(s, {
|
|
3023
|
-
x: u,
|
|
3024
|
-
y: d,
|
|
3025
|
-
width: f,
|
|
3026
|
-
height: p,
|
|
3027
|
-
style: l.style,
|
|
3028
|
-
selected: !!l.selected,
|
|
3029
|
-
className: r(l),
|
|
3030
|
-
color: t(l),
|
|
3031
|
-
borderRadius: i,
|
|
3032
|
-
strokeColor: n(l),
|
|
3033
|
-
strokeWidth: a,
|
|
3034
|
-
shapeRendering: o,
|
|
3035
|
-
onClick: c,
|
|
3036
|
-
id: l.id
|
|
3037
|
-
});
|
|
3038
|
-
}
|
|
3039
|
-
var ei = W($r), ti = W(Qr), ni = 200, ri = 150, ii = (e) => !e.hidden, ai = (e) => {
|
|
3040
|
-
let t = {
|
|
3041
|
-
x: -e.transform[0] / e.transform[2],
|
|
3042
|
-
y: -e.transform[1] / e.transform[2],
|
|
3043
|
-
width: e.width / e.transform[2],
|
|
3044
|
-
height: e.height / e.transform[2]
|
|
3045
|
-
};
|
|
3046
|
-
return {
|
|
3047
|
-
viewBB: t,
|
|
3048
|
-
boundingRect: e.nodeLookup.size > 0 ? E(F(e.nodeLookup, { filter: ii }), t) : t,
|
|
3049
|
-
rfId: e.rfId,
|
|
3050
|
-
panZoom: e.panZoom,
|
|
3051
|
-
translateExtent: e.translateExtent,
|
|
3052
|
-
flowWidth: e.width,
|
|
3053
|
-
flowHeight: e.height,
|
|
3054
|
-
ariaLabelConfig: e.ariaLabelConfig
|
|
3055
|
-
};
|
|
3056
|
-
}, oi = "react-flow__minimap-desc";
|
|
3057
|
-
function si({ 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 }) {
|
|
3058
|
-
let C = $(), w = J(null), { boundingRect: T, viewBB: E, rfId: D, panZoom: O, translateExtent: k, flowWidth: A, flowHeight: j, ariaLabelConfig: M } = Q(ai, U), N = t?.width ?? ni, P = t?.height ?? ri, 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 = `${oi}-${D}`, re = J(0), ie = J();
|
|
3059
|
-
re.current = I, K(() => {
|
|
3060
|
-
if (w.current && O) return ie.current = u({
|
|
3061
|
-
domNode: w.current,
|
|
3062
|
-
panZoom: O,
|
|
3063
|
-
getTransform: () => C.getState().transform,
|
|
3064
|
-
getViewScale: () => re.current
|
|
3065
|
-
}), () => {
|
|
3066
|
-
ie.current?.destroy();
|
|
3067
|
-
};
|
|
3068
|
-
}, [O]), K(() => {
|
|
3069
|
-
ie.current?.update({
|
|
3070
|
-
translateExtent: k,
|
|
3071
|
-
width: A,
|
|
3072
|
-
height: j,
|
|
3073
|
-
inversePan: b,
|
|
3074
|
-
pannable: _,
|
|
3075
|
-
zoomStep: x,
|
|
3076
|
-
zoomable: v
|
|
3077
|
-
});
|
|
3078
|
-
}, [
|
|
3079
|
-
_,
|
|
3080
|
-
v,
|
|
3081
|
-
b,
|
|
3082
|
-
x,
|
|
3083
|
-
k,
|
|
3084
|
-
A,
|
|
3085
|
-
j
|
|
3086
|
-
]);
|
|
3087
|
-
let ae = h ? (e) => {
|
|
3088
|
-
let [t, n] = ie.current?.pointer(e) || [0, 0];
|
|
3089
|
-
h(e, {
|
|
3090
|
-
x: t,
|
|
3091
|
-
y: n
|
|
3092
|
-
});
|
|
3093
|
-
} : void 0, oe = g ? G((e, t) => {
|
|
3094
|
-
let n = C.getState().nodeLookup.get(t).internals.userNode;
|
|
3095
|
-
g(e, n);
|
|
3096
|
-
}, []) : void 0, se = y ?? M["minimap.ariaLabel"];
|
|
3097
|
-
return X(He, {
|
|
3098
|
-
position: m,
|
|
3099
|
-
style: {
|
|
3100
|
-
...t,
|
|
3101
|
-
"--xy-minimap-background-color-props": typeof l == "string" ? l : void 0,
|
|
3102
|
-
"--xy-minimap-mask-background-color-props": typeof d == "string" ? d : void 0,
|
|
3103
|
-
"--xy-minimap-mask-stroke-color-props": typeof f == "string" ? f : void 0,
|
|
3104
|
-
"--xy-minimap-mask-stroke-width-props": typeof p == "number" ? p * I : void 0,
|
|
3105
|
-
"--xy-minimap-node-background-color-props": typeof i == "string" ? i : void 0,
|
|
3106
|
-
"--xy-minimap-node-stroke-color-props": typeof r == "string" ? r : void 0,
|
|
3107
|
-
"--xy-minimap-node-stroke-width-props": typeof s == "number" ? s : void 0
|
|
3108
|
-
},
|
|
3109
|
-
className: e(["react-flow__minimap", n]),
|
|
3110
|
-
"data-testid": "rf__minimap",
|
|
3111
|
-
children: Z("svg", {
|
|
3112
|
-
width: N,
|
|
3113
|
-
height: P,
|
|
3114
|
-
viewBox: `${B} ${V} ${H} ${te}`,
|
|
3115
|
-
className: "react-flow__minimap-svg",
|
|
3116
|
-
role: "img",
|
|
3117
|
-
"aria-labelledby": ne,
|
|
3118
|
-
ref: w,
|
|
3119
|
-
onClick: ae,
|
|
3120
|
-
children: [
|
|
3121
|
-
se && X("title", {
|
|
3122
|
-
id: ne,
|
|
3123
|
-
children: se
|
|
3124
|
-
}),
|
|
3125
|
-
X(ti, {
|
|
3126
|
-
onClick: oe,
|
|
3127
|
-
nodeColor: i,
|
|
3128
|
-
nodeStrokeColor: r,
|
|
3129
|
-
nodeBorderRadius: o,
|
|
3130
|
-
nodeClassName: a,
|
|
3131
|
-
nodeStrokeWidth: s,
|
|
3132
|
-
nodeComponent: c
|
|
3133
|
-
}),
|
|
3134
|
-
X("path", {
|
|
3135
|
-
className: "react-flow__minimap-mask",
|
|
3136
|
-
d: `M${B - z},${V - z}h${H + z * 2}v${te + z * 2}h${-H - z * 2}z
|
|
3137
|
-
M${E.x},${E.y}h${E.width}v${E.height}h${-E.width}z`,
|
|
3138
|
-
fillRule: "evenodd",
|
|
3139
|
-
pointerEvents: "none"
|
|
3140
|
-
})
|
|
3141
|
-
]
|
|
3142
|
-
})
|
|
3143
|
-
});
|
|
3144
|
-
}
|
|
3145
|
-
si.displayName = "MiniMap";
|
|
3146
|
-
var ci = W(si), li = (e) => (t) => e ? `${Math.max(1 / t.transform[2], 1)}` : void 0, ui = {
|
|
3147
|
-
[o.Line]: "right",
|
|
3148
|
-
[o.Handle]: "bottom-right"
|
|
3149
|
-
};
|
|
3150
|
-
function di({ 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 }) {
|
|
3151
|
-
let x = Kt(), C = typeof t == "string" ? t : x, w = $(), T = J(null), E = r === o.Handle, D = Q(G(li(E && g), [E, g]), U), O = J(null), k = n ?? ui[r];
|
|
3152
|
-
return K(() => {
|
|
3153
|
-
if (!(!T.current || !C)) return O.current ||= f({
|
|
3154
|
-
domNode: T.current,
|
|
3155
|
-
nodeId: C,
|
|
3156
|
-
getStoreItems: () => {
|
|
3157
|
-
let { nodeLookup: e, transform: t, snapGrid: n, snapToGrid: r, nodeOrigin: i, domNode: a } = w.getState();
|
|
3158
|
-
return {
|
|
3159
|
-
nodeLookup: e,
|
|
3160
|
-
transform: t,
|
|
3161
|
-
snapGrid: n,
|
|
3162
|
-
snapToGrid: r,
|
|
3163
|
-
nodeOrigin: i,
|
|
3164
|
-
paneDomNode: a
|
|
3165
|
-
};
|
|
3166
|
-
},
|
|
3167
|
-
onChange: (e, t) => {
|
|
3168
|
-
let { triggerNodeChanges: n, nodeLookup: r, parentLookup: i, nodeOrigin: a } = w.getState(), o = [], s = {
|
|
3169
|
-
x: e.x,
|
|
3170
|
-
y: e.y
|
|
3171
|
-
}, c = r.get(C);
|
|
3172
|
-
if (c && c.expandParent && c.parentId) {
|
|
3173
|
-
let t = c.origin ?? a, n = e.width ?? c.measured.width ?? 0, l = e.height ?? c.measured.height ?? 0, u = te([{
|
|
3174
|
-
id: c.id,
|
|
3175
|
-
parentId: c.parentId,
|
|
3176
|
-
rect: {
|
|
3177
|
-
width: n,
|
|
3178
|
-
height: l,
|
|
3179
|
-
...S({
|
|
3180
|
-
x: e.x ?? c.position.x,
|
|
3181
|
-
y: e.y ?? c.position.y
|
|
3182
|
-
}, {
|
|
3183
|
-
width: n,
|
|
3184
|
-
height: l
|
|
3185
|
-
}, c.parentId, r, t)
|
|
3186
|
-
}
|
|
3187
|
-
}], r, i, a);
|
|
3188
|
-
o.push(...u), s.x = e.x ? Math.max(t[0] * n, e.x) : void 0, s.y = e.y ? Math.max(t[1] * l, e.y) : void 0;
|
|
3189
|
-
}
|
|
3190
|
-
if (s.x !== void 0 && s.y !== void 0) {
|
|
3191
|
-
let e = {
|
|
3192
|
-
id: C,
|
|
3193
|
-
type: "position",
|
|
3194
|
-
position: { ...s }
|
|
3195
|
-
};
|
|
3196
|
-
o.push(e);
|
|
3197
|
-
}
|
|
3198
|
-
if (e.width !== void 0 && e.height !== void 0) {
|
|
3199
|
-
let t = {
|
|
3200
|
-
id: C,
|
|
3201
|
-
type: "dimensions",
|
|
3202
|
-
resizing: !0,
|
|
3203
|
-
setAttributes: h ? h === "horizontal" ? "width" : "height" : !0,
|
|
3204
|
-
dimensions: {
|
|
3205
|
-
width: e.width,
|
|
3206
|
-
height: e.height
|
|
3207
|
-
}
|
|
3208
|
-
};
|
|
3209
|
-
o.push(t);
|
|
3210
|
-
}
|
|
3211
|
-
for (let e of t) {
|
|
3212
|
-
let t = {
|
|
3213
|
-
...e,
|
|
3214
|
-
type: "position"
|
|
3215
|
-
};
|
|
3216
|
-
o.push(t);
|
|
3217
|
-
}
|
|
3218
|
-
n(o);
|
|
3219
|
-
},
|
|
3220
|
-
onEnd: ({ width: e, height: t }) => {
|
|
3221
|
-
let n = {
|
|
3222
|
-
id: C,
|
|
3223
|
-
type: "dimensions",
|
|
3224
|
-
resizing: !1,
|
|
3225
|
-
dimensions: {
|
|
3226
|
-
width: e,
|
|
3227
|
-
height: t
|
|
3228
|
-
}
|
|
3229
|
-
};
|
|
3230
|
-
w.getState().triggerNodeChanges([n]);
|
|
3231
|
-
}
|
|
3232
|
-
}), O.current.update({
|
|
3233
|
-
controlPosition: k,
|
|
3234
|
-
boundaries: {
|
|
3235
|
-
minWidth: l,
|
|
3236
|
-
minHeight: u,
|
|
3237
|
-
maxWidth: d,
|
|
3238
|
-
maxHeight: p
|
|
3239
|
-
},
|
|
3240
|
-
keepAspectRatio: m,
|
|
3241
|
-
resizeDirection: h,
|
|
3242
|
-
onResizeStart: v,
|
|
3243
|
-
onResize: y,
|
|
3244
|
-
onResizeEnd: b,
|
|
3245
|
-
shouldResize: _
|
|
3246
|
-
}), () => {
|
|
3247
|
-
O.current?.destroy();
|
|
3248
|
-
};
|
|
3249
|
-
}, [
|
|
3250
|
-
k,
|
|
3251
|
-
l,
|
|
3252
|
-
u,
|
|
3253
|
-
d,
|
|
3254
|
-
p,
|
|
3255
|
-
m,
|
|
3256
|
-
v,
|
|
3257
|
-
y,
|
|
3258
|
-
b,
|
|
3259
|
-
_
|
|
3260
|
-
]), X("div", {
|
|
3261
|
-
className: e([
|
|
3262
|
-
"react-flow__resize-control",
|
|
3263
|
-
"nodrag",
|
|
3264
|
-
...k.split("-"),
|
|
3265
|
-
r,
|
|
3266
|
-
i
|
|
3267
|
-
]),
|
|
3268
|
-
ref: T,
|
|
3269
|
-
style: {
|
|
3270
|
-
...a,
|
|
3271
|
-
scale: D,
|
|
3272
|
-
...c && { [E ? "backgroundColor" : "borderColor"]: c }
|
|
3273
|
-
},
|
|
3274
|
-
children: s
|
|
3275
|
-
});
|
|
3276
|
-
}
|
|
3277
|
-
W(di);
|
|
3278
|
-
//#endregion
|
|
3279
|
-
export { Rr as Background, Pr as BackgroundVariant, qr as Controls, Xt as Handle, ci as MiniMap, kr as index, jr as useEdgesState, Ar as useNodesState };
|
|
3280
|
-
|
|
3281
|
-
//# sourceMappingURL=index.js.map
|