@mcp-b/react-components 0.63.0 → 0.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AgentActivity-DptCj8XQ.d.ts → AgentActivity-Cngwkalq.d.ts} +2 -9
- package/dist/{AgentChatQueue-DG2rGyCI.d.ts → AgentChatQueue-C1TDnVAn.d.ts} +1 -1
- package/dist/{AppTopBar-DwzydmXu.d.ts → AppTopBar-CM57rJID.d.ts} +7 -3
- package/dist/ChatGptSignInScreen-CmbBe09G.js +298 -0
- package/dist/{CodeBlock-BTkag9ms.d.ts → CodeBlock-BDupVceI.d.ts} +1 -1
- package/dist/CodeBlock-dt0L8md0.js +892 -0
- package/dist/{EmployeeChrome--PWdtg4B.d.ts → EmployeeChrome-kegSASjC.d.ts} +6 -5
- package/dist/{ExecutionBoard-DvPGdn4F.d.ts → ExecutionBoard-DBj1Aiva.d.ts} +8 -1
- package/dist/ExecutionResult-CXnGcmM4.js +671 -0
- package/dist/FileTree-CjfzpN6X.js +968 -0
- package/dist/{IconButton-FWsa9562.d.ts → IconButton-DXtGMkMI.d.ts} +7 -5
- package/dist/ManagerOffice-T79utm-P.js +2469 -0
- package/dist/{Menu-FA4P6KrA.d.ts → Menu-DajfQr3T.d.ts} +4 -2
- package/dist/{Message-BUedRDN1.d.ts → Message-BLyl6kWe.d.ts} +2 -2
- package/dist/{PromptInput-Dbe6WgWA.d.ts → PromptInput-DEwFMj6f.d.ts} +5 -8
- package/dist/{ResponsiveSidebarShell-DSAMNDdg.d.ts → ResponsiveSidebarShell-RwvmlMHS.d.ts} +23 -13
- package/dist/SetupChecklist-DwscX3Bw.js +230 -0
- package/dist/{Tabs-BYs-RgJ7.d.ts → Tabs-tyvVX3nc.d.ts} +29 -10
- package/dist/{ThinkChatActivity-zZaSsbC-.d.ts → ThinkChatActivity-C7xnO0Fx.d.ts} +1 -1
- package/dist/{ThinkChatActivitySummary-8MO1VjAJ.d.ts → ThinkChatActivitySummary-Dh4Av7x_.d.ts} +1 -1
- package/dist/{ThinkExecutionRun-DJ2TFDmZ.d.ts → ThinkExecutionRun-QzZVWX75.d.ts} +11 -3
- package/dist/ThinkSchedule-D4Ulsa0-.d.ts +53 -0
- package/dist/{ThinkThreadPicker-BmIZmpae.d.ts → ThinkThreadPicker-O-i2KloZ.d.ts} +1 -1
- package/dist/{Workspace-42LA9Zrb.d.ts → Workspace-B9nuTfIi.d.ts} +1 -1
- package/dist/{WorkspaceAutomation-yDZorXla.d.ts → WorkspaceAutomation-C0fghGLi.d.ts} +3 -3
- package/dist/WorkspaceBrowser-oBJv-Dac.js +985 -0
- package/dist/{WorkspaceConcept-BjrgGE1w.d.ts → WorkspaceConcept-D46cYerS.d.ts} +1 -1
- package/dist/{WorkspaceFile-nK2n0i4S.d.ts → WorkspaceFile-BJC6vlp_.d.ts} +15 -4
- package/dist/WorkspaceFileCommands-SNIjRgtU.d.ts +145 -0
- package/dist/WorkspaceFileTransfer-BRD22nW-.d.ts +159 -0
- package/dist/WorkspaceLink-DDkj-Tq5.js +407 -0
- package/dist/{WorkspaceMessageResponse-BZ-_I18b.js → WorkspaceMessageResponse-CXGOQgpo.js} +111 -24
- package/dist/{agent-tool-runs-DsOp_X2y.js → agent-tool-runs-BXKdcxl8.js} +55 -28
- package/dist/app-bar-outlet-BEIGl9iF.js +35 -0
- package/{LICENSE → dist/assets/desktop/LICENSE.fluent.txt} +1 -1
- package/dist/assets/desktop/LICENSE.mac-icons.txt +7 -0
- package/dist/assets/desktop/README.md +43 -0
- package/dist/assets/desktop/automations.svg +19 -0
- package/dist/assets/desktop/document.svg +24 -0
- package/dist/assets/desktop/folder.png +0 -0
- package/dist/assets/desktop/mail.svg +31 -0
- package/dist/assets/desktop/settings.svg +9 -0
- package/dist/assets/desktop/trash-full.svg +23 -0
- package/dist/assets/desktop/trash.svg +19 -0
- package/dist/attachment-preview-DeRqFjdz.js +68 -0
- package/dist/attempt-CySQHJsF.js +21 -0
- package/dist/command-search-1fjmCBBo.js +34 -0
- package/dist/components/agents-sdk/AIProviderDialog.js +757 -224
- package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
- package/dist/components/agents-sdk/AgentActivity.js +78 -31
- package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
- package/dist/components/agents-sdk/AgentChat.js +1113 -386
- package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
- package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
- package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
- package/dist/components/agents-sdk/AgentComputer.js +8045 -0
- package/dist/components/agents-sdk/AgentEvent.js +164 -21
- package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
- package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
- package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
- package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
- package/dist/components/agents-sdk/BrowserReplay.js +298 -133
- package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
- package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
- package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeApp.js +108 -46
- package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +500 -99
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChrome.js +1375 -557
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +281 -64
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
- package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
- package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
- package/dist/components/agents-sdk/ManagerAccountActions.js +142 -35
- package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
- package/dist/components/agents-sdk/McpConnectionRequest.js +332 -117
- package/dist/components/agents-sdk/McpConnectorForm.js +320 -100
- package/dist/components/agents-sdk/McpPluginCatalog.js +697 -249
- package/dist/components/agents-sdk/McpServerIcon.js +57 -14
- package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
- package/dist/components/agents-sdk/McpServerPicker.js +542 -158
- package/dist/components/agents-sdk/ModelSelector.js +1151 -253
- package/dist/components/agents-sdk/PromptInputApproval.js +115 -27
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
- package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
- package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
- package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
- package/dist/components/agents-sdk/SubagentRunPanel.js +357 -129
- package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
- package/dist/components/agents-sdk/ThinkChat.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkChat.js +321 -132
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +306 -100
- package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +1386 -404
- package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +219 -45
- package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
- package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +505 -124
- package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
- package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +71 -26
- package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
- package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
- package/dist/components/agents-sdk/ThinkScheduleActions.js +363 -132
- package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
- package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +311 -90
- package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
- package/dist/components/agents-sdk/ThinkScheduleForm.js +1318 -475
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +434 -214
- package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
- package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
- package/dist/components/agents-sdk/Workspace.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.js +491 -166
- package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomation.js +1492 -415
- package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1316 -525
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
- package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
- package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +267 -85
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
- package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
- package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
- package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
- package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
- package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +118 -58
- package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
- package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
- package/dist/components/ai-sdk/Activity.js +768 -192
- package/dist/components/ai-sdk/AgentAttention.js +286 -58
- package/dist/components/ai-sdk/AgentChatMessageEditor.js +193 -68
- package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
- package/dist/components/ai-sdk/AgentChatTurnError.js +75 -25
- package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
- package/dist/components/ai-sdk/Approval.js +574 -172
- package/dist/components/ai-sdk/Artifact.d.ts +1 -1
- package/dist/components/ai-sdk/Artifact.js +535 -128
- package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +404 -80
- package/dist/components/ai-sdk/Checkpoint.js +229 -45
- package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/ComposerLink.js +216 -48
- package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
- package/dist/components/ai-sdk/Context.js +737 -178
- package/dist/components/ai-sdk/Conversation.d.ts +1 -1
- package/dist/components/ai-sdk/Conversation.js +305 -68
- package/dist/components/ai-sdk/ExpansionState.js +74 -15
- package/dist/components/ai-sdk/Goal.js +435 -116
- package/dist/components/ai-sdk/InlineCitation.js +313 -76
- package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
- package/dist/components/ai-sdk/Message.d.ts +1 -1
- package/dist/components/ai-sdk/Message.js +1010 -195
- package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
- package/dist/components/ai-sdk/MessageScroller.js +264 -46
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
- package/dist/components/ai-sdk/Plan.js +639 -128
- package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
- package/dist/components/ai-sdk/PromptInput.js +2735 -794
- package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
- package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
- package/dist/components/ai-sdk/Queue.js +792 -154
- package/dist/components/ai-sdk/Reasoning.js +268 -69
- package/dist/components/ai-sdk/Sources.js +226 -63
- package/dist/components/ai-sdk/Task.js +294 -71
- package/dist/components/ai-sdk/ToolApproval.js +126 -26
- package/dist/components/ai-sdk/ToolInvocation.js +112 -22
- package/dist/components/extension/ChatGptSignInScreen.js +1 -82
- package/dist/components/extension/CodexModelSelector.d.ts +1 -1
- package/dist/components/extension/CodexModelSelector.js +467 -146
- package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
- package/dist/components/extension/ConversationTabPicker.js +254 -76
- package/dist/components/extension/FirstRunSetup.d.ts +61 -35
- package/dist/components/extension/FirstRunSetup.js +3834 -1012
- package/dist/components/foundations/Accordion.js +186 -41
- package/dist/components/foundations/AlertDialog.js +425 -97
- package/dist/components/foundations/AppIcon.d.ts +13 -13
- package/dist/components/foundations/AppIcon.js +183 -34
- package/dist/components/foundations/Autocomplete.js +408 -89
- package/dist/components/foundations/Avatar.d.ts +100 -2
- package/dist/components/foundations/Avatar.js +204 -44
- package/dist/components/foundations/Button.js +64 -13
- package/dist/components/foundations/Card.js +357 -63
- package/dist/components/foundations/Checkbox.js +82 -17
- package/dist/components/foundations/CheckboxGroup.js +266 -58
- package/dist/components/foundations/Collapsible.d.ts +2 -1
- package/dist/components/foundations/Collapsible.js +129 -26
- package/dist/components/foundations/Combobox.js +408 -89
- package/dist/components/foundations/ContextMenu.d.ts +2 -2
- package/dist/components/foundations/ContextMenu.js +591 -117
- package/dist/components/foundations/DescriptionList.js +159 -28
- package/dist/components/foundations/Dialog.js +373 -89
- package/dist/components/foundations/EmptyState.js +86 -23
- package/dist/components/foundations/Favicon.d.ts +17 -0
- package/dist/components/foundations/Favicon.js +62 -0
- package/dist/components/foundations/Field.js +525 -108
- package/dist/components/foundations/Fieldset.js +115 -23
- package/dist/components/foundations/Form.js +38 -9
- package/dist/components/foundations/FormattedDate.d.ts +19 -5
- package/dist/components/foundations/FormattedDate.js +82 -12
- package/dist/components/foundations/IconButton.d.ts +1 -1
- package/dist/components/foundations/IconButton.js +114 -17
- package/dist/components/foundations/Input.js +38 -9
- package/dist/components/foundations/Kbd.js +55 -10
- package/dist/components/foundations/Label.js +56 -12
- package/dist/components/foundations/LinkButton.js +67 -15
- package/dist/components/foundations/Marker.js +138 -29
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menu.js +634 -136
- package/dist/components/foundations/Menubar.d.ts +2 -2
- package/dist/components/foundations/Menubar.js +685 -130
- package/dist/components/foundations/Meter.js +186 -41
- package/dist/components/foundations/NavigationMenu.js +426 -95
- package/dist/components/foundations/NumberField.js +223 -49
- package/dist/components/foundations/Popover.js +398 -88
- package/dist/components/foundations/PreviewCard.js +234 -53
- package/dist/components/foundations/Progress.js +117 -25
- package/dist/components/foundations/RadioGroup.d.ts +13 -5
- package/dist/components/foundations/RadioGroup.js +132 -25
- package/dist/components/foundations/ScrollArea.js +230 -51
- package/dist/components/foundations/SearchField.d.ts +8 -3
- package/dist/components/foundations/SearchField.js +129 -28
- package/dist/components/foundations/Select.js +648 -145
- package/dist/components/foundations/Separator.js +61 -12
- package/dist/components/foundations/Slider.js +260 -57
- package/dist/components/foundations/Stepper.d.ts +1 -1
- package/dist/components/foundations/Stepper.js +561 -127
- package/dist/components/foundations/Switch.js +82 -18
- package/dist/components/foundations/Tabs.d.ts +2 -2
- package/dist/components/foundations/Tabs.js +282 -53
- package/dist/components/foundations/Textarea.js +43 -9
- package/dist/components/foundations/ThemeProvider.js +138 -52
- package/dist/components/foundations/Toast.d.ts +10 -2
- package/dist/components/foundations/Toast.js +322 -75
- package/dist/components/foundations/Toggle.d.ts +5 -2
- package/dist/components/foundations/Toggle.js +51 -10
- package/dist/components/foundations/ToggleGroup.d.ts +3 -3
- package/dist/components/foundations/ToggleGroup.js +215 -59
- package/dist/components/foundations/Toolbar.js +249 -61
- package/dist/components/foundations/Tooltip.d.ts +3 -3
- package/dist/components/foundations/Tooltip.js +311 -55
- package/dist/components/foundations/TransitionSurface.js +43 -9
- package/dist/components/foundations/icons.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
- package/dist/components/general-purpose/ActionGuide.js +290 -64
- package/dist/components/general-purpose/AppFrame.js +72 -14
- package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
- package/dist/components/general-purpose/AppTopBar.js +349 -60
- package/dist/components/general-purpose/BrandLoading.js +37 -9
- package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
- package/dist/components/general-purpose/CommandPalette.js +271 -0
- package/dist/components/general-purpose/Commit.d.ts +1 -1
- package/dist/components/general-purpose/Commit.js +937 -167
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
- package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
- package/dist/components/general-purpose/FileTree.d.ts +20 -7
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/ListDetail.d.ts +84 -0
- package/dist/components/general-purpose/ListDetail.js +423 -0
- package/dist/components/general-purpose/NotificationPrompt.js +20 -11
- package/dist/components/general-purpose/PricingBillingToggle.js +33 -6
- package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
- package/dist/components/general-purpose/PricingFAQ.js +53 -12
- package/dist/components/general-purpose/PricingPage.js +376 -139
- package/dist/components/general-purpose/PricingPlanCard.js +209 -84
- package/dist/components/general-purpose/PricingUsageCalculator.js +231 -81
- package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
- package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
- package/dist/components/general-purpose/ScreenStack.js +427 -0
- package/dist/components/general-purpose/SettingsFormDialog.js +235 -77
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/StatusScreen.js +82 -24
- package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
- package/dist/components/general-purpose/SwipeActions.js +357 -0
- package/dist/components/general-purpose/Terminal.d.ts +22 -48
- package/dist/components/general-purpose/Terminal.js +320 -174
- package/dist/components/general-purpose/TestResults.js +975 -196
- package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
- package/dist/components/general-purpose/ThemeModeControl.js +66 -23
- package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
- package/dist/components/general-purpose/WallpaperPicker.js +180 -0
- package/dist/components/general-purpose/WebPreview.d.ts +5 -7
- package/dist/components/general-purpose/WebPreview.js +770 -203
- package/dist/components/nanites/AgentConnection.js +323 -84
- package/dist/components/nanites/AgentToolDetail.js +233 -53
- package/dist/components/nanites/GithubMotionMark.js +37 -9
- package/dist/components/nanites/NaniteScene.js +535 -323
- package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
- package/dist/container-width-C43ccJ84.js +17 -0
- package/dist/context-Ddsp8HgD.js +43 -0
- package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
- package/dist/copy-button-DWBVJR6D.js +118 -0
- package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
- package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
- package/dist/icons-nLTnB9kd.js +470 -0
- package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
- package/dist/motion-CGM3i6lX.js +319 -0
- package/dist/motion-preferences-6qsDIDvH.js +13 -0
- package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
- package/dist/progress-ring-BO649JA9.js +79 -0
- package/dist/provider-logos-Ceu7iYFx.js +362 -0
- package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
- package/dist/styles/accessibility.css +26 -0
- package/dist/styles/accordion.css +0 -2
- package/dist/styles/activity.css +20 -12
- package/dist/styles/agent-attention.css +31 -10
- package/dist/styles/agent-chat.css +7 -6
- package/dist/styles/agent-computer-motion-reduction.css +118 -0
- package/dist/styles/agent-computer-motion.css +127 -0
- package/dist/styles/agent-computer-phone.css +942 -0
- package/dist/styles/agent-computer.css +1764 -0
- package/dist/styles/agent-connection.css +5 -5
- package/dist/styles/agent-screen-switcher.css +313 -0
- package/dist/styles/app-icon.css +34 -30
- package/dist/styles/app-top-bar.css +33 -18
- package/dist/styles/approval.css +3 -3
- package/dist/styles/artifact.css +1 -1
- package/dist/styles/attachment-preview.css +2 -4
- package/dist/styles/avatar.css +12 -14
- package/dist/styles/base-ui-motion.css +84 -18
- package/dist/styles/base-ui-motion.test.tsx +305 -0
- package/dist/styles/base.css +16 -12
- package/dist/styles/brand.test.ts +7 -20
- package/dist/styles/browser-control-overlay.css +1 -1
- package/dist/styles/browser-live-screen.css +2 -2
- package/dist/styles/browser-live-view.css +1 -1
- package/dist/styles/browser-replay.css +0 -8
- package/dist/styles/browser-run-panel.css +275 -37
- package/dist/styles/button.css +52 -9
- package/dist/styles/card.css +6 -5
- package/dist/styles/chain-of-thought.css +0 -10
- package/dist/styles/checkpoint.css +2 -2
- package/dist/styles/codex-model-selector.css +2 -2
- package/dist/styles/color-contrast.test.ts +18 -1
- package/dist/styles/command-palette.css +110 -0
- package/dist/styles/composer-link.css +11 -7
- package/dist/styles/composition-motion.css +3 -14
- package/dist/styles/context.css +2 -2
- package/dist/styles/conversation-tab-picker.css +7 -0
- package/dist/styles/conversation.css +8 -2
- package/dist/styles/dialog.css +2 -2
- package/dist/styles/employee-app.css +8 -2
- package/dist/styles/employee-chrome.css +4 -4
- package/dist/styles/execution-board.css +206 -114
- package/dist/styles/execution-result.css +2 -2
- package/dist/styles/field.css +187 -4
- package/dist/styles/file-tree.css +218 -40
- package/dist/styles/first-run-setup.css +914 -187
- package/dist/styles/github-motion-mark.css +0 -8
- package/dist/styles/index.css +145 -133
- package/dist/styles/inline-citation.css +5 -4
- package/dist/styles/list-detail.css +57 -0
- package/dist/styles/manager-office.css +6 -8
- package/dist/styles/manager-work.css +4 -2
- package/dist/styles/mcp-plugin-catalog.css +2 -2
- package/dist/styles/mcp-server-picker.css +3 -6
- package/dist/styles/media-preview-card.css +2 -2
- package/dist/styles/menu.css +0 -9
- package/dist/styles/menubar.css +18 -6
- package/dist/styles/message-scroller.css +47 -9
- package/dist/styles/message.css +3 -3
- package/dist/styles/model-selector.css +1 -1
- package/dist/styles/motion-reduction.css +39 -6
- package/dist/styles/pricing-page.css +1 -1
- package/dist/styles/prompt-input.css +29 -29
- package/dist/styles/queue.css +1 -1
- package/dist/styles/recipes.css +212 -28
- package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
- package/dist/styles/responsive-sidebar-shell.css +40 -43
- package/dist/styles/screen-stack.css +123 -0
- package/dist/styles/search-field.css +80 -3
- package/dist/styles/stepper.css +0 -10
- package/dist/styles/streamdown.css +2 -2
- package/dist/styles/subagent-run.css +9 -5
- package/dist/styles/swipe-actions.css +158 -0
- package/dist/styles/tabs.css +80 -23
- package/dist/styles/task.css +7 -1
- package/dist/styles/terminal.css +66 -78
- package/dist/styles/test-results.css +1 -19
- package/dist/styles/textarea.css +2 -1
- package/dist/styles/theme-mode-control.css +154 -26
- package/dist/styles/think-chat-tool-panels.css +1 -1
- package/dist/styles/think-execution-workbench.css +0 -9
- package/dist/styles/think-full-app.css +7 -1
- package/dist/styles/think-schedule.css +81 -54
- package/dist/styles/think-thread-picker.css +28 -37
- package/dist/styles/toast.css +11 -0
- package/dist/styles/toggle-group.css +0 -10
- package/dist/styles/toggle.css +13 -0
- package/dist/styles/tooltip.css +12 -0
- package/dist/styles/transition-surface.css +1 -0
- package/dist/styles/wallpaper-picker.css +224 -0
- package/dist/styles/web-preview.css +47 -18
- package/dist/styles/workspace-automation.css +116 -17
- package/dist/styles/workspace-concepts.css +1 -1
- package/dist/styles/workspace-desktop.css +124 -0
- package/dist/styles/workspace-entity-card.css +3 -1
- package/dist/styles/workspace-explorer.css +499 -5
- package/dist/utils/brand-marks.d.ts +13 -0
- package/dist/utils/brand-marks.js +14 -0
- package/dist/utils/desktop-artwork.d.ts +17 -0
- package/dist/utils/desktop-artwork.js +18 -0
- package/dist/utils/favicon.d.ts +6 -2
- package/dist/utils/favicon.js +16 -4
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-assets-DdtnBDU3.js +213 -0
- package/dist/{workspace-concept-panel-C_oYhPSx.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
- package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
- package/dist/workspace-delete-BOY6CMBf.js +183 -0
- package/dist/workspace-drag-B6hMXUNt.js +304 -0
- package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
- package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
- package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
- package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
- package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
- package/package.json +9 -3
- package/dist/Avatar-t1YRzdwB.d.ts +0 -101
- package/dist/CodeBlock-DYQdZUH6.js +0 -318
- package/dist/ExecutionResult-2fBkpIGN.js +0 -279
- package/dist/FileTree-CDLOD643.js +0 -323
- package/dist/ManagerOffice-CvVSHnOM.js +0 -1129
- package/dist/SetupChecklist-B-iEta9v.js +0 -78
- package/dist/ThinkSchedule-DPoOYWTQ.d.ts +0 -34
- package/dist/WorkspaceFileView-DwIkehSM.js +0 -783
- package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
- package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
- package/dist/attachment-preview-1CXJvrmb.js +0 -25
- package/dist/chatgpt-sign-in-button-D8AT6x4c.js +0 -32
- package/dist/connected-app-drafts-DtA2fBK5.js +0 -283
- package/dist/copy-button-DbR932tF.js +0 -45
- package/dist/icons-GoybMAB2.js +0 -141
- package/dist/progress-ring-L2bbF0ji.js +0 -40
- package/dist/provider-logos-DWYY8wNz.js +0 -99
- package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
- package/dist/workspace-assets-F3r6XltC.js +0 -107
- package/dist/workspace-concept-panel-D8oEvR0n.js +0 -66
- package/dist/workspace-delete-CQvv1eDE.js +0 -81
- package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as QueueIcon, D as EyeOffIcon, F as LinkIcon, M as InfoIcon, O as FileIcon, U as MinusIcon, X as PlayIcon, Z as PlusIcon, at as SplitIcon, et as RefreshIcon, gt as XIcon, ht as WrenchIcon, it as SpinnerIcon, mt as WarningIcon, p as CheckIcon, q as PauseIcon, s as ArrowUpRightIcon, u as BoxIcon, z as MaximizeIcon } from "../../icons-nLTnB9kd.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { IconButton } from "../foundations/IconButton.js";
|
|
5
|
-
import {
|
|
5
|
+
import { t as motionIsReduced } from "../../motion-preferences-6qsDIDvH.js";
|
|
6
|
+
import { Favicon } from "../foundations/Favicon.js";
|
|
6
7
|
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
7
8
|
import { a as executionResultSummary, n as executionErrorSummary, s as stepState, t as boardNotice } from "../../execution-result-DAuW4VWv.js";
|
|
8
|
-
import {
|
|
9
|
-
import { t as ExecutionResult } from "../../ExecutionResult-
|
|
9
|
+
import { i as httpUrl, t as Hint } from "../../workspace-assets-DdtnBDU3.js";
|
|
10
|
+
import { t as ExecutionResult } from "../../ExecutionResult-CXnGcmM4.js";
|
|
11
|
+
import { c } from "react/compiler-runtime";
|
|
10
12
|
import * as React from "react";
|
|
11
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
import { Handle,
|
|
14
|
+
import { Handle, Position, ReactFlow, ReactFlowProvider, SmoothStepEdge, getSmoothStepPath, useNodesInitialized, useReactFlow, useUpdateNodeInternals } from "@xyflow/react";
|
|
13
15
|
//#region src/components/agents-sdk/ExecutionBoard.tsx
|
|
14
16
|
const kindIcons = {
|
|
15
17
|
step: BoxIcon,
|
|
@@ -22,27 +24,200 @@ const kindIcons = {
|
|
|
22
24
|
function durationLabel(durationMs) {
|
|
23
25
|
return durationMs < 1e3 ? `${Math.round(durationMs)} ms` : `${(durationMs / 1e3).toLocaleString(void 0, { maximumFractionDigits: 1 })} s`;
|
|
24
26
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
if (
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
/** A step's or run's state as its glyph. */
|
|
28
|
+
function StateIcon(t0) {
|
|
29
|
+
const $ = c(8);
|
|
30
|
+
const { state } = t0;
|
|
31
|
+
let t1;
|
|
32
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
33
|
+
t1 = {
|
|
34
|
+
className: "execution-board__state-icon",
|
|
35
|
+
"aria-hidden": true
|
|
36
|
+
};
|
|
37
|
+
$[0] = t1;
|
|
38
|
+
} else t1 = $[0];
|
|
39
|
+
const props = t1;
|
|
40
|
+
if (state === "Running") {
|
|
41
|
+
let t2;
|
|
42
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43
|
+
t2 = /* @__PURE__ */ jsx(SpinnerIcon, { ...props });
|
|
44
|
+
$[1] = t2;
|
|
45
|
+
} else t2 = $[1];
|
|
46
|
+
return t2;
|
|
47
|
+
}
|
|
48
|
+
if (state === "Failed") {
|
|
49
|
+
let t2;
|
|
50
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
51
|
+
t2 = /* @__PURE__ */ jsx(WarningIcon, { ...props });
|
|
52
|
+
$[2] = t2;
|
|
53
|
+
} else t2 = $[2];
|
|
54
|
+
return t2;
|
|
55
|
+
}
|
|
56
|
+
if (state === "Completed") {
|
|
57
|
+
let t2;
|
|
58
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
59
|
+
t2 = /* @__PURE__ */ jsx(CheckIcon, { ...props });
|
|
60
|
+
$[3] = t2;
|
|
61
|
+
} else t2 = $[3];
|
|
62
|
+
return t2;
|
|
63
|
+
}
|
|
64
|
+
if (state === "Not observed") {
|
|
65
|
+
let t2;
|
|
66
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
67
|
+
t2 = /* @__PURE__ */ jsx(EyeOffIcon, { ...props });
|
|
68
|
+
$[4] = t2;
|
|
69
|
+
} else t2 = $[4];
|
|
70
|
+
return t2;
|
|
71
|
+
}
|
|
72
|
+
if (state === "Not reached") {
|
|
73
|
+
let t2;
|
|
74
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
75
|
+
t2 = /* @__PURE__ */ jsx(MinusIcon, { ...props });
|
|
76
|
+
$[5] = t2;
|
|
77
|
+
} else t2 = $[5];
|
|
78
|
+
return t2;
|
|
79
|
+
}
|
|
80
|
+
if (state === "Unfinished" || state === "Stopped" || state === "Interrupted") {
|
|
81
|
+
let t2;
|
|
82
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
83
|
+
t2 = /* @__PURE__ */ jsx(PauseIcon, { ...props });
|
|
84
|
+
$[6] = t2;
|
|
85
|
+
} else t2 = $[6];
|
|
86
|
+
return t2;
|
|
87
|
+
}
|
|
88
|
+
let t2;
|
|
89
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
90
|
+
t2 = /* @__PURE__ */ jsx(PlayIcon, { ...props });
|
|
91
|
+
$[7] = t2;
|
|
92
|
+
} else t2 = $[7];
|
|
93
|
+
return t2;
|
|
94
|
+
}
|
|
95
|
+
function stepLinks(links) {
|
|
96
|
+
return (links ?? []).flatMap((link) => {
|
|
97
|
+
const href = httpUrl(link.href);
|
|
98
|
+
if (!href) return [];
|
|
99
|
+
const url = new URL(href);
|
|
100
|
+
return url.username || url.password ? [] : [{
|
|
101
|
+
...link,
|
|
102
|
+
href,
|
|
103
|
+
domain: url.hostname
|
|
104
|
+
}];
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function AppDestination(t0) {
|
|
108
|
+
const $ = c(18);
|
|
109
|
+
const { link, primary: t1 } = t0;
|
|
110
|
+
const primary = t1 === void 0 ? false : t1;
|
|
111
|
+
const t2 = `${link.label} · ${link.domain}`;
|
|
112
|
+
const t3 = primary && "execution-board__primary-app";
|
|
113
|
+
let t4;
|
|
114
|
+
if ($[0] !== t3) {
|
|
115
|
+
t4 = cx("execution-board__app nodrag nopan", t3);
|
|
116
|
+
$[0] = t3;
|
|
117
|
+
$[1] = t4;
|
|
118
|
+
} else t4 = $[1];
|
|
119
|
+
const t5 = `Open ${link.label}: ${link.domain}`;
|
|
120
|
+
let t6;
|
|
121
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
122
|
+
t6 = /* @__PURE__ */ jsx(LinkIcon, {});
|
|
123
|
+
$[2] = t6;
|
|
124
|
+
} else t6 = $[2];
|
|
125
|
+
let t7;
|
|
126
|
+
if ($[3] !== link.href) {
|
|
127
|
+
t7 = /* @__PURE__ */ jsx(Favicon, {
|
|
128
|
+
href: link.href,
|
|
129
|
+
fallback: t6
|
|
130
|
+
});
|
|
131
|
+
$[3] = link.href;
|
|
132
|
+
$[4] = t7;
|
|
133
|
+
} else t7 = $[4];
|
|
134
|
+
const t8 = primary ? "sigvelo-visually-hidden" : void 0;
|
|
135
|
+
let t9;
|
|
136
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
137
|
+
t9 = /* @__PURE__ */ jsx(ArrowUpRightIcon, { "aria-hidden": "true" });
|
|
138
|
+
$[5] = t9;
|
|
139
|
+
} else t9 = $[5];
|
|
140
|
+
let t10;
|
|
141
|
+
if ($[6] !== link.label || $[7] !== t8) {
|
|
142
|
+
t10 = /* @__PURE__ */ jsxs("span", {
|
|
143
|
+
className: t8,
|
|
144
|
+
children: [link.label, t9]
|
|
145
|
+
});
|
|
146
|
+
$[6] = link.label;
|
|
147
|
+
$[7] = t8;
|
|
148
|
+
$[8] = t10;
|
|
149
|
+
} else t10 = $[8];
|
|
150
|
+
let t11;
|
|
151
|
+
if ($[9] !== link.href || $[10] !== t10 || $[11] !== t4 || $[12] !== t5 || $[13] !== t7) {
|
|
152
|
+
t11 = /* @__PURE__ */ jsxs("a", {
|
|
153
|
+
className: t4,
|
|
154
|
+
href: link.href,
|
|
155
|
+
target: "_blank",
|
|
156
|
+
rel: "noopener noreferrer",
|
|
157
|
+
"aria-label": t5,
|
|
158
|
+
onClick: _temp,
|
|
159
|
+
children: [t7, t10]
|
|
160
|
+
});
|
|
161
|
+
$[9] = link.href;
|
|
162
|
+
$[10] = t10;
|
|
163
|
+
$[11] = t4;
|
|
164
|
+
$[12] = t5;
|
|
165
|
+
$[13] = t7;
|
|
166
|
+
$[14] = t11;
|
|
167
|
+
} else t11 = $[14];
|
|
168
|
+
let t12;
|
|
169
|
+
if ($[15] !== t11 || $[16] !== t2) {
|
|
170
|
+
t12 = /* @__PURE__ */ jsx(Hint, {
|
|
171
|
+
content: t2,
|
|
172
|
+
children: t11
|
|
173
|
+
});
|
|
174
|
+
$[15] = t11;
|
|
175
|
+
$[16] = t2;
|
|
176
|
+
$[17] = t12;
|
|
177
|
+
} else t12 = $[17];
|
|
178
|
+
return t12;
|
|
33
179
|
}
|
|
34
|
-
function
|
|
180
|
+
function _temp(event) {
|
|
181
|
+
return event.stopPropagation();
|
|
182
|
+
}
|
|
183
|
+
function Step(t0) {
|
|
184
|
+
const $ = c(63);
|
|
185
|
+
const { id, data, selected, positionAbsoluteX, positionAbsoluteY } = t0;
|
|
35
186
|
const { getViewport, setViewport } = useReactFlow();
|
|
187
|
+
const updateNodeInternals = useUpdateNodeInternals();
|
|
188
|
+
let t1;
|
|
189
|
+
if ($[0] !== id || $[1] !== updateNodeInternals) {
|
|
190
|
+
t1 = () => {
|
|
191
|
+
updateNodeInternals(id);
|
|
192
|
+
};
|
|
193
|
+
$[0] = id;
|
|
194
|
+
$[1] = updateNodeInternals;
|
|
195
|
+
$[2] = t1;
|
|
196
|
+
} else t1 = $[2];
|
|
197
|
+
let t2;
|
|
198
|
+
if ($[3] !== data.horizontal || $[4] !== id || $[5] !== updateNodeInternals) {
|
|
199
|
+
t2 = [
|
|
200
|
+
data.horizontal,
|
|
201
|
+
id,
|
|
202
|
+
updateNodeInternals
|
|
203
|
+
];
|
|
204
|
+
$[3] = data.horizontal;
|
|
205
|
+
$[4] = id;
|
|
206
|
+
$[5] = updateNodeInternals;
|
|
207
|
+
$[6] = t2;
|
|
208
|
+
} else t2 = $[6];
|
|
209
|
+
React.useEffect(t1, t2);
|
|
36
210
|
const Glyph = kindIcons[data.kind];
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
211
|
+
const primaryLink = data.links[0];
|
|
212
|
+
const inputPosition = data.horizontal ? Position.Left : Position.Top;
|
|
213
|
+
const outputPosition = data.horizontal ? Position.Right : Position.Bottom;
|
|
214
|
+
const bypassPosition = data.horizontal ? Position.Bottom : Position.Right;
|
|
215
|
+
const t3 = data.branches || void 0;
|
|
216
|
+
const t4 = selected || void 0;
|
|
217
|
+
const t5 = Boolean(primaryLink) || void 0;
|
|
218
|
+
let t6;
|
|
219
|
+
if ($[7] !== getViewport || $[8] !== positionAbsoluteX || $[9] !== positionAbsoluteY || $[10] !== setViewport) {
|
|
220
|
+
t6 = (event) => {
|
|
46
221
|
const card = event.currentTarget;
|
|
47
222
|
const canvas = card.closest(".react-flow");
|
|
48
223
|
if (!canvas) return;
|
|
@@ -58,143 +233,441 @@ function Step({ data, selected, positionAbsoluteX, positionAbsoluteY }) {
|
|
|
58
233
|
x: viewport.x + dx,
|
|
59
234
|
y: viewport.y + dy
|
|
60
235
|
});
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
236
|
+
};
|
|
237
|
+
$[7] = getViewport;
|
|
238
|
+
$[8] = positionAbsoluteX;
|
|
239
|
+
$[9] = positionAbsoluteY;
|
|
240
|
+
$[10] = setViewport;
|
|
241
|
+
$[11] = t6;
|
|
242
|
+
} else t6 = $[11];
|
|
243
|
+
let t7;
|
|
244
|
+
if ($[12] !== inputPosition) {
|
|
245
|
+
t7 = /* @__PURE__ */ jsx(Handle, {
|
|
246
|
+
type: "target",
|
|
247
|
+
position: inputPosition
|
|
248
|
+
});
|
|
249
|
+
$[12] = inputPosition;
|
|
250
|
+
$[13] = t7;
|
|
251
|
+
} else t7 = $[13];
|
|
252
|
+
let t8;
|
|
253
|
+
if ($[14] !== bypassPosition || $[15] !== data.bypassInput) {
|
|
254
|
+
t8 = data.bypassInput ? /* @__PURE__ */ jsx(Handle, {
|
|
255
|
+
type: "target",
|
|
256
|
+
position: bypassPosition,
|
|
257
|
+
id: "bypass"
|
|
258
|
+
}) : null;
|
|
259
|
+
$[14] = bypassPosition;
|
|
260
|
+
$[15] = data.bypassInput;
|
|
261
|
+
$[16] = t8;
|
|
262
|
+
} else t8 = $[16];
|
|
263
|
+
const t9 = `${data.label}: ${data.state}`;
|
|
264
|
+
let t10;
|
|
265
|
+
if ($[17] !== data.label) {
|
|
266
|
+
t10 = /* @__PURE__ */ jsx("strong", {
|
|
267
|
+
className: "sigvelo-truncate",
|
|
268
|
+
children: data.label
|
|
269
|
+
});
|
|
270
|
+
$[17] = data.label;
|
|
271
|
+
$[18] = t10;
|
|
272
|
+
} else t10 = $[18];
|
|
273
|
+
let t11;
|
|
274
|
+
if ($[19] !== Glyph) {
|
|
275
|
+
t11 = /* @__PURE__ */ jsx(Glyph, { className: "execution-board__kind-icon" });
|
|
276
|
+
$[19] = Glyph;
|
|
277
|
+
$[20] = t11;
|
|
278
|
+
} else t11 = $[20];
|
|
279
|
+
let t12;
|
|
280
|
+
if ($[21] !== data.state) {
|
|
281
|
+
t12 = /* @__PURE__ */ jsx(StateIcon, { state: data.state });
|
|
282
|
+
$[21] = data.state;
|
|
283
|
+
$[22] = t12;
|
|
284
|
+
} else t12 = $[22];
|
|
285
|
+
let t13;
|
|
286
|
+
if ($[23] !== t10 || $[24] !== t11 || $[25] !== t12) {
|
|
287
|
+
t13 = /* @__PURE__ */ jsxs("span", {
|
|
288
|
+
className: "execution-board__step-header",
|
|
289
|
+
children: [
|
|
290
|
+
t10,
|
|
291
|
+
t11,
|
|
292
|
+
t12
|
|
293
|
+
]
|
|
294
|
+
});
|
|
295
|
+
$[23] = t10;
|
|
296
|
+
$[24] = t11;
|
|
297
|
+
$[25] = t12;
|
|
298
|
+
$[26] = t13;
|
|
299
|
+
} else t13 = $[26];
|
|
300
|
+
let t14;
|
|
301
|
+
if ($[27] !== data.detail) {
|
|
302
|
+
t14 = data.detail ? /* @__PURE__ */ jsx("span", {
|
|
303
|
+
className: "execution-board__step-detail",
|
|
304
|
+
children: data.detail
|
|
305
|
+
}) : null;
|
|
306
|
+
$[27] = data.detail;
|
|
307
|
+
$[28] = t14;
|
|
308
|
+
} else t14 = $[28];
|
|
309
|
+
let t15;
|
|
310
|
+
if ($[29] !== selected || $[30] !== t13 || $[31] !== t14 || $[32] !== t9) {
|
|
311
|
+
t15 = /* @__PURE__ */ jsxs("button", {
|
|
312
|
+
type: "button",
|
|
313
|
+
className: "execution-board__step-select",
|
|
314
|
+
"aria-label": t9,
|
|
315
|
+
"aria-pressed": selected,
|
|
316
|
+
children: [t13, t14]
|
|
317
|
+
});
|
|
318
|
+
$[29] = selected;
|
|
319
|
+
$[30] = t13;
|
|
320
|
+
$[31] = t14;
|
|
321
|
+
$[32] = t9;
|
|
322
|
+
$[33] = t15;
|
|
323
|
+
} else t15 = $[33];
|
|
324
|
+
let t16;
|
|
325
|
+
if ($[34] !== primaryLink) {
|
|
326
|
+
t16 = primaryLink ? /* @__PURE__ */ jsx(AppDestination, {
|
|
327
|
+
link: primaryLink,
|
|
328
|
+
primary: true
|
|
329
|
+
}) : null;
|
|
330
|
+
$[34] = primaryLink;
|
|
331
|
+
$[35] = t16;
|
|
332
|
+
} else t16 = $[35];
|
|
333
|
+
let t17;
|
|
334
|
+
if ($[36] !== data.links) {
|
|
335
|
+
t17 = data.links.length > 1 ? /* @__PURE__ */ jsx("div", {
|
|
336
|
+
className: "execution-board__apps",
|
|
337
|
+
children: data.links.slice(1).map(_temp2)
|
|
338
|
+
}) : null;
|
|
339
|
+
$[36] = data.links;
|
|
340
|
+
$[37] = t17;
|
|
341
|
+
} else t17 = $[37];
|
|
342
|
+
let t18;
|
|
343
|
+
if ($[38] !== data.branches || $[39] !== outputPosition) {
|
|
344
|
+
t18 = data.branches ? ["yes", "no"].map((branch) => /* @__PURE__ */ jsx(Handle, {
|
|
345
|
+
type: "source",
|
|
346
|
+
position: outputPosition,
|
|
347
|
+
id: branch
|
|
348
|
+
}, branch)) : null;
|
|
349
|
+
$[38] = data.branches;
|
|
350
|
+
$[39] = outputPosition;
|
|
351
|
+
$[40] = t18;
|
|
352
|
+
} else t18 = $[40];
|
|
353
|
+
let t19;
|
|
354
|
+
if ($[41] !== data.branches || $[42] !== data.defaultOutput || $[43] !== outputPosition) {
|
|
355
|
+
t19 = !data.branches || data.defaultOutput ? /* @__PURE__ */ jsx(Handle, {
|
|
356
|
+
type: "source",
|
|
357
|
+
position: outputPosition
|
|
358
|
+
}) : null;
|
|
359
|
+
$[41] = data.branches;
|
|
360
|
+
$[42] = data.defaultOutput;
|
|
361
|
+
$[43] = outputPosition;
|
|
362
|
+
$[44] = t19;
|
|
363
|
+
} else t19 = $[44];
|
|
364
|
+
let t20;
|
|
365
|
+
if ($[45] !== bypassPosition || $[46] !== data.bypassOutput) {
|
|
366
|
+
t20 = data.bypassOutput ? /* @__PURE__ */ jsx(Handle, {
|
|
367
|
+
type: "source",
|
|
368
|
+
position: bypassPosition,
|
|
369
|
+
id: "bypass"
|
|
370
|
+
}) : null;
|
|
371
|
+
$[45] = bypassPosition;
|
|
372
|
+
$[46] = data.bypassOutput;
|
|
373
|
+
$[47] = t20;
|
|
374
|
+
} else t20 = $[47];
|
|
375
|
+
let t21;
|
|
376
|
+
if ($[48] !== data.kind || $[49] !== data.state || $[50] !== t15 || $[51] !== t16 || $[52] !== t17 || $[53] !== t18 || $[54] !== t19 || $[55] !== t20 || $[56] !== t3 || $[57] !== t4 || $[58] !== t5 || $[59] !== t6 || $[60] !== t7 || $[61] !== t8) {
|
|
377
|
+
t21 = /* @__PURE__ */ jsxs("div", {
|
|
378
|
+
className: "execution-board__step",
|
|
379
|
+
"data-kind": data.kind,
|
|
380
|
+
"data-branches": t3,
|
|
381
|
+
"data-state": data.state,
|
|
382
|
+
"data-selected": t4,
|
|
383
|
+
"data-app": t5,
|
|
384
|
+
onFocus: t6,
|
|
385
|
+
children: [
|
|
386
|
+
t7,
|
|
387
|
+
t8,
|
|
388
|
+
t15,
|
|
389
|
+
t16,
|
|
390
|
+
t17,
|
|
391
|
+
t18,
|
|
392
|
+
t19,
|
|
393
|
+
t20
|
|
394
|
+
]
|
|
395
|
+
});
|
|
396
|
+
$[48] = data.kind;
|
|
397
|
+
$[49] = data.state;
|
|
398
|
+
$[50] = t15;
|
|
399
|
+
$[51] = t16;
|
|
400
|
+
$[52] = t17;
|
|
401
|
+
$[53] = t18;
|
|
402
|
+
$[54] = t19;
|
|
403
|
+
$[55] = t20;
|
|
404
|
+
$[56] = t3;
|
|
405
|
+
$[57] = t4;
|
|
406
|
+
$[58] = t5;
|
|
407
|
+
$[59] = t6;
|
|
408
|
+
$[60] = t7;
|
|
409
|
+
$[61] = t8;
|
|
410
|
+
$[62] = t21;
|
|
411
|
+
} else t21 = $[62];
|
|
412
|
+
return t21;
|
|
413
|
+
}
|
|
414
|
+
function _temp2(link) {
|
|
415
|
+
return /* @__PURE__ */ jsx(AppDestination, { link }, link.href);
|
|
135
416
|
}
|
|
136
417
|
const nodeTypes = { step: Step };
|
|
418
|
+
function FlowEdge(t0) {
|
|
419
|
+
const $ = c(16);
|
|
420
|
+
let data;
|
|
421
|
+
let props;
|
|
422
|
+
let t1;
|
|
423
|
+
if ($[0] !== t0) {
|
|
424
|
+
({data, ...props} = t0);
|
|
425
|
+
t1 = getSmoothStepPath({
|
|
426
|
+
...props,
|
|
427
|
+
offset: data?.offset
|
|
428
|
+
});
|
|
429
|
+
$[0] = t0;
|
|
430
|
+
$[1] = data;
|
|
431
|
+
$[2] = props;
|
|
432
|
+
$[3] = t1;
|
|
433
|
+
} else {
|
|
434
|
+
data = $[1];
|
|
435
|
+
props = $[2];
|
|
436
|
+
t1 = $[3];
|
|
437
|
+
}
|
|
438
|
+
const [path] = t1;
|
|
439
|
+
const t2 = data?.traversing || void 0;
|
|
440
|
+
const t3 = data?.offset;
|
|
441
|
+
let t4;
|
|
442
|
+
if ($[4] !== t3) {
|
|
443
|
+
t4 = { offset: t3 };
|
|
444
|
+
$[4] = t3;
|
|
445
|
+
$[5] = t4;
|
|
446
|
+
} else t4 = $[5];
|
|
447
|
+
let t5;
|
|
448
|
+
if ($[6] !== props || $[7] !== t4) {
|
|
449
|
+
t5 = /* @__PURE__ */ jsx(SmoothStepEdge, {
|
|
450
|
+
...props,
|
|
451
|
+
pathOptions: t4
|
|
452
|
+
});
|
|
453
|
+
$[6] = props;
|
|
454
|
+
$[7] = t4;
|
|
455
|
+
$[8] = t5;
|
|
456
|
+
} else t5 = $[8];
|
|
457
|
+
let t6;
|
|
458
|
+
if ($[9] !== data?.traversing || $[10] !== path) {
|
|
459
|
+
t6 = data?.traversing ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", {
|
|
460
|
+
className: "execution-board__pulse execution-board__pulse--halo",
|
|
461
|
+
d: path,
|
|
462
|
+
pathLength: 1,
|
|
463
|
+
"aria-hidden": "true"
|
|
464
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
465
|
+
className: "execution-board__pulse",
|
|
466
|
+
d: path,
|
|
467
|
+
pathLength: 1,
|
|
468
|
+
"aria-hidden": "true"
|
|
469
|
+
})] }) : null;
|
|
470
|
+
$[9] = data?.traversing;
|
|
471
|
+
$[10] = path;
|
|
472
|
+
$[11] = t6;
|
|
473
|
+
} else t6 = $[11];
|
|
474
|
+
let t7;
|
|
475
|
+
if ($[12] !== t2 || $[13] !== t5 || $[14] !== t6) {
|
|
476
|
+
t7 = /* @__PURE__ */ jsxs("g", {
|
|
477
|
+
"data-execution-flow": t2,
|
|
478
|
+
children: [t5, t6]
|
|
479
|
+
});
|
|
480
|
+
$[12] = t2;
|
|
481
|
+
$[13] = t5;
|
|
482
|
+
$[14] = t6;
|
|
483
|
+
$[15] = t7;
|
|
484
|
+
} else t7 = $[15];
|
|
485
|
+
return t7;
|
|
486
|
+
}
|
|
487
|
+
const edgeTypes = { execution: FlowEdge };
|
|
137
488
|
const fitOptions = {
|
|
138
|
-
padding: .2,
|
|
139
489
|
minZoom: .01,
|
|
140
490
|
maxZoom: 1
|
|
141
491
|
};
|
|
492
|
+
/** A wide overlay occupies canvas space; the workbench's separate track does not. */
|
|
493
|
+
function boardFrame(canvas) {
|
|
494
|
+
const bounds = canvas.getBoundingClientRect();
|
|
495
|
+
const board = canvas.closest(".execution-board");
|
|
496
|
+
const panel = canvas.clientWidth >= 900 ? board?.querySelector(".execution-board__inspector:not([hidden])") : null;
|
|
497
|
+
const panelLeft = panel?.offsetParent ? panel.offsetParent.getBoundingClientRect().left + panel.offsetLeft : bounds.right;
|
|
498
|
+
const panelRight = panelLeft + (panel?.offsetWidth ?? 0);
|
|
499
|
+
const overlap = Math.max(0, Math.min(bounds.right, panelRight) - Math.max(bounds.left, panelLeft));
|
|
500
|
+
const left = panelLeft <= bounds.left ? overlap : 0;
|
|
501
|
+
const controls = board?.hasAttribute("data-embedded") ? board.querySelector(".execution-board__toolbar")?.getBoundingClientRect() : null;
|
|
502
|
+
return {
|
|
503
|
+
width: canvas.clientWidth - overlap,
|
|
504
|
+
left,
|
|
505
|
+
right: overlap - left,
|
|
506
|
+
bottom: controls ? Math.max(16, bounds.bottom - controls.top + 12) : 16
|
|
507
|
+
};
|
|
508
|
+
}
|
|
142
509
|
/** Keep one step readable; fitting a long automation is an explicit canvas action. */
|
|
143
|
-
function ReadableViewport(
|
|
510
|
+
function ReadableViewport(t0) {
|
|
511
|
+
const $ = c(19);
|
|
512
|
+
const { layoutKey, canvasRef, canvasWidth, layoutWidth, layoutHeight, horizontal, leftInset } = t0;
|
|
144
513
|
const { setViewport } = useReactFlow();
|
|
145
514
|
const initialized = useNodesInitialized();
|
|
146
|
-
React.
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
515
|
+
const framed = React.useRef(false);
|
|
516
|
+
let t1;
|
|
517
|
+
if ($[0] !== canvasRef || $[1] !== canvasWidth || $[2] !== horizontal || $[3] !== initialized || $[4] !== layoutHeight || $[5] !== layoutWidth || $[6] !== leftInset || $[7] !== setViewport) {
|
|
518
|
+
t1 = () => {
|
|
519
|
+
const canvas = canvasRef.current;
|
|
520
|
+
if (!canvas || !initialized) return;
|
|
521
|
+
const frame = requestAnimationFrame(() => {
|
|
522
|
+
if (canvas.offsetWidth <= 0 || canvas.offsetHeight <= 0) return;
|
|
523
|
+
const zoom = Math.min(1, Math.max(.9, (canvasWidth - 32) / layoutWidth));
|
|
524
|
+
setViewport({
|
|
525
|
+
x: leftInset + (horizontal ? Math.max(16, (canvasWidth - layoutWidth * zoom) / 2) : canvasWidth * (1 - zoom) / 2),
|
|
526
|
+
y: horizontal ? Math.max(16, (canvas.clientHeight - layoutHeight * zoom) / 2) : 16,
|
|
527
|
+
zoom
|
|
528
|
+
}, { duration: framed.current && !motionIsReduced() ? 150 : 0 });
|
|
529
|
+
framed.current = true;
|
|
156
530
|
});
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
initialized
|
|
163
|
-
|
|
164
|
-
layoutWidth
|
|
165
|
-
|
|
166
|
-
|
|
531
|
+
return () => cancelAnimationFrame(frame);
|
|
532
|
+
};
|
|
533
|
+
$[0] = canvasRef;
|
|
534
|
+
$[1] = canvasWidth;
|
|
535
|
+
$[2] = horizontal;
|
|
536
|
+
$[3] = initialized;
|
|
537
|
+
$[4] = layoutHeight;
|
|
538
|
+
$[5] = layoutWidth;
|
|
539
|
+
$[6] = leftInset;
|
|
540
|
+
$[7] = setViewport;
|
|
541
|
+
$[8] = t1;
|
|
542
|
+
} else t1 = $[8];
|
|
543
|
+
let t2;
|
|
544
|
+
if ($[9] !== canvasRef || $[10] !== canvasWidth || $[11] !== horizontal || $[12] !== initialized || $[13] !== layoutHeight || $[14] !== layoutKey || $[15] !== layoutWidth || $[16] !== leftInset || $[17] !== setViewport) {
|
|
545
|
+
t2 = [
|
|
546
|
+
canvasRef,
|
|
547
|
+
canvasWidth,
|
|
548
|
+
leftInset,
|
|
549
|
+
initialized,
|
|
550
|
+
layoutKey,
|
|
551
|
+
layoutWidth,
|
|
552
|
+
layoutHeight,
|
|
553
|
+
horizontal,
|
|
554
|
+
setViewport
|
|
555
|
+
];
|
|
556
|
+
$[9] = canvasRef;
|
|
557
|
+
$[10] = canvasWidth;
|
|
558
|
+
$[11] = horizontal;
|
|
559
|
+
$[12] = initialized;
|
|
560
|
+
$[13] = layoutHeight;
|
|
561
|
+
$[14] = layoutKey;
|
|
562
|
+
$[15] = layoutWidth;
|
|
563
|
+
$[16] = leftInset;
|
|
564
|
+
$[17] = setViewport;
|
|
565
|
+
$[18] = t2;
|
|
566
|
+
} else t2 = $[18];
|
|
567
|
+
React.useEffect(t1, t2);
|
|
167
568
|
return null;
|
|
168
569
|
}
|
|
169
|
-
function
|
|
570
|
+
function BoardViewControls() {
|
|
571
|
+
const $ = c(19);
|
|
170
572
|
const { fitView, zoomIn, zoomOut } = useReactFlow();
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
573
|
+
let t0;
|
|
574
|
+
if ($[0] !== zoomOut) {
|
|
575
|
+
t0 = () => void zoomOut();
|
|
576
|
+
$[0] = zoomOut;
|
|
577
|
+
$[1] = t0;
|
|
578
|
+
} else t0 = $[1];
|
|
579
|
+
let t1;
|
|
580
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
581
|
+
t1 = /* @__PURE__ */ jsx(MinusIcon, {});
|
|
582
|
+
$[2] = t1;
|
|
583
|
+
} else t1 = $[2];
|
|
584
|
+
let t2;
|
|
585
|
+
if ($[3] !== t0) {
|
|
586
|
+
t2 = /* @__PURE__ */ jsx(IconButton, {
|
|
587
|
+
label: "Zoom out",
|
|
588
|
+
size: "xs",
|
|
176
589
|
variant: "ghost",
|
|
177
590
|
color: "neutral",
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
591
|
+
onClick: t0,
|
|
592
|
+
children: t1
|
|
593
|
+
});
|
|
594
|
+
$[3] = t0;
|
|
595
|
+
$[4] = t2;
|
|
596
|
+
} else t2 = $[4];
|
|
597
|
+
let t3;
|
|
598
|
+
if ($[5] !== fitView) {
|
|
599
|
+
t3 = (event) => {
|
|
600
|
+
const canvas = event.currentTarget.closest(".execution-board")?.querySelector(".react-flow");
|
|
601
|
+
if (!canvas) return;
|
|
602
|
+
const frame = boardFrame(canvas);
|
|
603
|
+
fitView({
|
|
604
|
+
...fitOptions,
|
|
605
|
+
padding: {
|
|
606
|
+
top: "16px",
|
|
607
|
+
bottom: `${frame.bottom}px`,
|
|
608
|
+
left: `${frame.left + 16}px`,
|
|
609
|
+
right: `${frame.right + 16}px`
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
};
|
|
613
|
+
$[5] = fitView;
|
|
614
|
+
$[6] = t3;
|
|
615
|
+
} else t3 = $[6];
|
|
616
|
+
let t4;
|
|
617
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
618
|
+
t4 = /* @__PURE__ */ jsx(MaximizeIcon, {});
|
|
619
|
+
$[7] = t4;
|
|
620
|
+
} else t4 = $[7];
|
|
621
|
+
let t5;
|
|
622
|
+
if ($[8] !== t3) {
|
|
623
|
+
t5 = /* @__PURE__ */ jsx(IconButton, {
|
|
624
|
+
label: "Fit view",
|
|
625
|
+
size: "xs",
|
|
626
|
+
variant: "ghost",
|
|
627
|
+
color: "neutral",
|
|
628
|
+
onClick: t3,
|
|
629
|
+
children: t4
|
|
630
|
+
});
|
|
631
|
+
$[8] = t3;
|
|
632
|
+
$[9] = t5;
|
|
633
|
+
} else t5 = $[9];
|
|
634
|
+
let t6;
|
|
635
|
+
if ($[10] !== zoomIn) {
|
|
636
|
+
t6 = () => void zoomIn();
|
|
637
|
+
$[10] = zoomIn;
|
|
638
|
+
$[11] = t6;
|
|
639
|
+
} else t6 = $[11];
|
|
640
|
+
let t7;
|
|
641
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
642
|
+
t7 = /* @__PURE__ */ jsx(PlusIcon, {});
|
|
643
|
+
$[12] = t7;
|
|
644
|
+
} else t7 = $[12];
|
|
645
|
+
let t8;
|
|
646
|
+
if ($[13] !== t6) {
|
|
647
|
+
t8 = /* @__PURE__ */ jsx(IconButton, {
|
|
648
|
+
label: "Zoom in",
|
|
649
|
+
size: "xs",
|
|
650
|
+
variant: "ghost",
|
|
651
|
+
color: "neutral",
|
|
652
|
+
onClick: t6,
|
|
653
|
+
children: t7
|
|
654
|
+
});
|
|
655
|
+
$[13] = t6;
|
|
656
|
+
$[14] = t8;
|
|
657
|
+
} else t8 = $[14];
|
|
658
|
+
let t9;
|
|
659
|
+
if ($[15] !== t2 || $[16] !== t5 || $[17] !== t8) {
|
|
660
|
+
t9 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
661
|
+
t2,
|
|
662
|
+
t5,
|
|
663
|
+
t8
|
|
664
|
+
] });
|
|
665
|
+
$[15] = t2;
|
|
666
|
+
$[16] = t5;
|
|
667
|
+
$[17] = t8;
|
|
668
|
+
$[18] = t9;
|
|
669
|
+
} else t9 = $[18];
|
|
670
|
+
return t9;
|
|
198
671
|
}
|
|
199
672
|
function boardLayout(graph, canvasWidth, measurements) {
|
|
200
673
|
const columns = [...new Set(graph.nodes.map((node) => node.position.x))].sort((a, b) => a - b);
|
|
@@ -207,8 +680,11 @@ function boardLayout(graph, canvasWidth, measurements) {
|
|
|
207
680
|
return from && to && from.position.y === to.position.y && graph.nodes.some((node) => node.position.x > from.position.x && node.position.x < to.position.x && node.position.y === from.position.y);
|
|
208
681
|
}).map((edge) => edge.id));
|
|
209
682
|
const positions = /* @__PURE__ */ new Map();
|
|
683
|
+
const centeredNodes = [];
|
|
684
|
+
const horizontal = canvasWidth >= 900;
|
|
210
685
|
let top = 0;
|
|
211
|
-
let layoutWidth = 0;
|
|
686
|
+
let layoutWidth = horizontal ? columns.length * 200 + Math.max(0, columns.length - 1) * 56 : 0;
|
|
687
|
+
let layoutHeight = 0;
|
|
212
688
|
for (const column of columns) {
|
|
213
689
|
const row = graph.nodes.filter((node) => node.position.x === column);
|
|
214
690
|
const crossingLanes = graph.edges.flatMap((edge) => {
|
|
@@ -218,127 +694,202 @@ function boardLayout(graph, canvasWidth, measurements) {
|
|
|
218
694
|
return [(incomingCounts.get(to.id) ?? 0) > 1 ? from.position.y : to.position.y];
|
|
219
695
|
});
|
|
220
696
|
const lanes = [.../* @__PURE__ */ new Set([...row.map((node) => node.position.y), ...crossingLanes])].sort((a, b) => a - b);
|
|
221
|
-
const width = Math.min(
|
|
697
|
+
const width = Math.min(200, horizontal ? 200 : Math.max(128, (canvasWidth - 48 - (lanes.length - 1) * 16) / lanes.length));
|
|
222
698
|
const rowWidth = lanes.length * width + (lanes.length - 1) * 16;
|
|
223
|
-
|
|
699
|
+
const rowHeight = Math.max(72, ...row.map((node) => measurements[node.id]?.height ?? 72));
|
|
700
|
+
if (horizontal && lanes.length === 1) centeredNodes.push(row[0].id);
|
|
701
|
+
if (!horizontal) layoutWidth = Math.max(layoutWidth, rowWidth);
|
|
702
|
+
layoutHeight = Math.max(layoutHeight, horizontal ? lanes.length * rowHeight + (lanes.length - 1) * 80 : top + rowHeight);
|
|
224
703
|
for (const node of row) positions.set(node.id, {
|
|
225
|
-
x: (canvasWidth - rowWidth) / 2 + lanes.indexOf(node.position.y) * (width + 16),
|
|
226
|
-
y: top,
|
|
704
|
+
x: horizontal ? columns.indexOf(column) * (width + 56) : (canvasWidth - rowWidth) / 2 + lanes.indexOf(node.position.y) * (width + 16),
|
|
705
|
+
y: horizontal ? lanes.indexOf(node.position.y) * (rowHeight + 80) : top,
|
|
227
706
|
width
|
|
228
707
|
});
|
|
229
|
-
top +=
|
|
708
|
+
top += rowHeight + (canvasWidth < 480 ? 24 : 32);
|
|
709
|
+
}
|
|
710
|
+
for (const id of centeredNodes) {
|
|
711
|
+
const position = positions.get(id);
|
|
712
|
+
if (position) position.y = (layoutHeight - (measurements[id]?.height ?? 72)) / 2;
|
|
230
713
|
}
|
|
231
714
|
return {
|
|
232
715
|
positions,
|
|
233
716
|
layoutWidth,
|
|
717
|
+
layoutHeight,
|
|
718
|
+
horizontal,
|
|
234
719
|
bypassEdges
|
|
235
720
|
};
|
|
236
721
|
}
|
|
237
|
-
|
|
722
|
+
const FlowCanvas = React.memo(function FlowCanvas(t0) {
|
|
723
|
+
const $ = c(43);
|
|
724
|
+
const { graph, trace, selectedId, inspectorOpen, onSelect, onDeselect, onClear } = t0;
|
|
238
725
|
const canvasRef = React.useRef(null);
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
cancelAnimationFrame(frame);
|
|
246
|
-
frame = requestAnimationFrame(() => setCanvasWidth(canvas.clientWidth));
|
|
247
|
-
});
|
|
248
|
-
observer.observe(canvas);
|
|
249
|
-
return () => {
|
|
250
|
-
observer.disconnect();
|
|
251
|
-
cancelAnimationFrame(frame);
|
|
252
|
-
};
|
|
253
|
-
}, []);
|
|
254
|
-
const [measurements, setMeasurements] = React.useState({});
|
|
255
|
-
const pendingMeasurements = React.useRef({});
|
|
256
|
-
const measurementFrame = React.useRef(0);
|
|
257
|
-
React.useEffect(() => () => cancelAnimationFrame(measurementFrame.current), []);
|
|
258
|
-
const layoutKey = JSON.stringify(graph.nodes.map((node) => [
|
|
259
|
-
node.id,
|
|
260
|
-
node.label,
|
|
261
|
-
node.kind,
|
|
262
|
-
node.position.x,
|
|
263
|
-
node.position.y
|
|
264
|
-
]));
|
|
265
|
-
const { positions, layoutWidth, bypassEdges } = boardLayout(graph, canvasWidth, measurements);
|
|
266
|
-
const nodes = graph.nodes.map((node) => {
|
|
267
|
-
const state = stepState(node, trace);
|
|
268
|
-
return {
|
|
269
|
-
id: node.id,
|
|
270
|
-
position: positions.get(node.id),
|
|
271
|
-
style: { width: positions.get(node.id).width },
|
|
272
|
-
measured: measurements[node.id],
|
|
273
|
-
type: "step",
|
|
274
|
-
selected: selectedId === node.id,
|
|
275
|
-
data: {
|
|
276
|
-
label: node.label,
|
|
277
|
-
kind: node.kind,
|
|
278
|
-
state,
|
|
279
|
-
links: (node.links ?? []).flatMap((link) => {
|
|
280
|
-
const href = httpUrl(link.href);
|
|
281
|
-
if (!href) return [];
|
|
282
|
-
const url = new URL(href);
|
|
283
|
-
return url.username || url.password ? [] : [{
|
|
284
|
-
...link,
|
|
285
|
-
href,
|
|
286
|
-
domain: url.hostname
|
|
287
|
-
}];
|
|
288
|
-
}),
|
|
289
|
-
compact: positions.get(node.id).width < 240,
|
|
290
|
-
branches: graph.edges.some((edge) => edge.source === node.id && /^(yes|no)$/i.test(edge.label ?? "")),
|
|
291
|
-
defaultOutput: graph.edges.some((edge) => edge.source === node.id && !/^(yes|no)$/i.test(edge.label ?? "")),
|
|
292
|
-
bypassInput: graph.edges.some((edge) => edge.target === node.id && bypassEdges.has(edge.id)),
|
|
293
|
-
bypassOutput: graph.edges.some((edge) => edge.source === node.id && bypassEdges.has(edge.id))
|
|
294
|
-
},
|
|
295
|
-
ariaLabel: `${node.label}: ${state}`,
|
|
296
|
-
ariaRole: "group"
|
|
726
|
+
let t1;
|
|
727
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
728
|
+
t1 = {
|
|
729
|
+
width: 360,
|
|
730
|
+
height: 0,
|
|
731
|
+
left: 0
|
|
297
732
|
};
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
733
|
+
$[0] = t1;
|
|
734
|
+
} else t1 = $[0];
|
|
735
|
+
const [canvasSize, setCanvasSize] = React.useState(t1);
|
|
736
|
+
const canvasWidth = canvasSize.width;
|
|
737
|
+
let t2;
|
|
738
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
739
|
+
t2 = () => {
|
|
740
|
+
const canvas = canvasRef.current;
|
|
741
|
+
if (!canvas) return;
|
|
742
|
+
const measure = () => {
|
|
743
|
+
if (canvas.clientWidth <= 0 || canvas.clientHeight <= 0) return;
|
|
744
|
+
const frame = boardFrame(canvas);
|
|
745
|
+
setCanvasSize((current) => current.width === frame.width && current.height === canvas.clientHeight && current.left === frame.left ? current : {
|
|
746
|
+
width: frame.width,
|
|
747
|
+
height: canvas.clientHeight,
|
|
748
|
+
left: frame.left
|
|
749
|
+
});
|
|
750
|
+
};
|
|
751
|
+
measure();
|
|
752
|
+
let frame_0 = 0;
|
|
753
|
+
const observer = new ResizeObserver(() => {
|
|
754
|
+
cancelAnimationFrame(frame_0);
|
|
755
|
+
frame_0 = requestAnimationFrame(() => {
|
|
756
|
+
measure();
|
|
757
|
+
});
|
|
758
|
+
});
|
|
759
|
+
observer.observe(canvas);
|
|
760
|
+
return () => {
|
|
761
|
+
observer.disconnect();
|
|
762
|
+
cancelAnimationFrame(frame_0);
|
|
763
|
+
};
|
|
318
764
|
};
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
765
|
+
$[1] = t2;
|
|
766
|
+
} else t2 = $[1];
|
|
767
|
+
let t3;
|
|
768
|
+
if ($[2] !== inspectorOpen) {
|
|
769
|
+
t3 = [inspectorOpen];
|
|
770
|
+
$[2] = inspectorOpen;
|
|
771
|
+
$[3] = t3;
|
|
772
|
+
} else t3 = $[3];
|
|
773
|
+
React.useLayoutEffect(t2, t3);
|
|
774
|
+
let t4;
|
|
775
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
776
|
+
t4 = {};
|
|
777
|
+
$[4] = t4;
|
|
778
|
+
} else t4 = $[4];
|
|
779
|
+
const [measurements, setMeasurements] = React.useState(t4);
|
|
780
|
+
let t5;
|
|
781
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
782
|
+
t5 = {};
|
|
783
|
+
$[5] = t5;
|
|
784
|
+
} else t5 = $[5];
|
|
785
|
+
const pendingMeasurements = React.useRef(t5);
|
|
786
|
+
const measurementFrame = React.useRef(0);
|
|
787
|
+
let t6;
|
|
788
|
+
let t7;
|
|
789
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
790
|
+
t6 = () => () => cancelAnimationFrame(measurementFrame.current);
|
|
791
|
+
t7 = [];
|
|
792
|
+
$[6] = t6;
|
|
793
|
+
$[7] = t7;
|
|
794
|
+
} else {
|
|
795
|
+
t6 = $[6];
|
|
796
|
+
t7 = $[7];
|
|
797
|
+
}
|
|
798
|
+
React.useEffect(t6, t7);
|
|
799
|
+
let t8;
|
|
800
|
+
if ($[8] !== graph.nodes) {
|
|
801
|
+
t8 = JSON.stringify(graph.nodes.map(_temp3));
|
|
802
|
+
$[8] = graph.nodes;
|
|
803
|
+
$[9] = t8;
|
|
804
|
+
} else t8 = $[9];
|
|
805
|
+
const layoutKey = t8;
|
|
806
|
+
let horizontal;
|
|
807
|
+
let layoutHeight;
|
|
808
|
+
let layoutWidth;
|
|
809
|
+
let nodes;
|
|
810
|
+
let t9;
|
|
811
|
+
if ($[10] !== canvasWidth || $[11] !== graph || $[12] !== measurements || $[13] !== selectedId || $[14] !== trace) {
|
|
812
|
+
const { positions, layoutWidth: t10, layoutHeight: t11, horizontal: t12, bypassEdges } = boardLayout(graph, canvasWidth, measurements);
|
|
813
|
+
layoutWidth = t10;
|
|
814
|
+
layoutHeight = t11;
|
|
815
|
+
horizontal = t12;
|
|
816
|
+
nodes = graph.nodes.map((node_0) => {
|
|
817
|
+
const state = stepState(node_0, trace);
|
|
818
|
+
return {
|
|
819
|
+
id: node_0.id,
|
|
820
|
+
position: positions.get(node_0.id),
|
|
821
|
+
style: { width: positions.get(node_0.id).width },
|
|
822
|
+
measured: measurements[node_0.id],
|
|
823
|
+
type: "step",
|
|
824
|
+
selected: selectedId === node_0.id,
|
|
825
|
+
data: {
|
|
826
|
+
label: node_0.label,
|
|
827
|
+
detail: node_0.kind === "step" || node_0.kind === "branch" ? node_0.detail : "",
|
|
828
|
+
kind: node_0.kind,
|
|
829
|
+
state,
|
|
830
|
+
links: stepLinks(node_0.links),
|
|
831
|
+
horizontal,
|
|
832
|
+
branches: graph.edges.some((edge) => edge.source === node_0.id && /^(yes|no)$/i.test(edge.label ?? "")),
|
|
833
|
+
defaultOutput: graph.edges.some((edge_0) => edge_0.source === node_0.id && !/^(yes|no)$/i.test(edge_0.label ?? "")),
|
|
834
|
+
bypassInput: graph.edges.some((edge_1) => edge_1.target === node_0.id && bypassEdges.has(edge_1.id)),
|
|
835
|
+
bypassOutput: graph.edges.some((edge_2) => edge_2.source === node_0.id && bypassEdges.has(edge_2.id))
|
|
836
|
+
},
|
|
837
|
+
ariaLabel: `${node_0.label}: ${state}`,
|
|
838
|
+
ariaRole: "group"
|
|
839
|
+
};
|
|
840
|
+
});
|
|
841
|
+
t9 = graph.edges.map((edge_3) => {
|
|
842
|
+
const branch = edge_3.label?.toLowerCase();
|
|
843
|
+
const source = graph.nodes.find((node_1) => node_1.id === edge_3.source);
|
|
844
|
+
const sourceStats = source ? trace?.steps[source.stepId] : void 0;
|
|
845
|
+
const target = graph.nodes.find((node_2) => node_2.id === edge_3.target);
|
|
846
|
+
const count = branch === "yes" ? sourceStats?.yes : branch === "no" ? sourceStats?.no : void 0;
|
|
847
|
+
return {
|
|
848
|
+
...edge_3,
|
|
849
|
+
sourceHandle: bypassEdges.has(edge_3.id) ? "bypass" : branch === "yes" || branch === "no" ? branch : void 0,
|
|
850
|
+
targetHandle: bypassEdges.has(edge_3.id) ? "bypass" : void 0,
|
|
851
|
+
label: edge_3.label,
|
|
852
|
+
ariaLabel: count === void 0 ? edge_3.label : `${edge_3.label}: taken ${count.toLocaleString()} times`,
|
|
853
|
+
className: edge_3.source === selectedId || edge_3.target === selectedId ? "execution-board__edge--selected" : count === 0 ? "execution-board__edge--empty" : count ? "execution-board__edge--taken" : void 0,
|
|
854
|
+
type: "execution",
|
|
855
|
+
data: {
|
|
856
|
+
traversing: Boolean(trace?.status === "running" && source?.observed && target?.observed && sourceStats?.completed && trace.steps[target.stepId]?.active && (branch === "yes" || branch === "no" ? count && count > 0 : true)),
|
|
857
|
+
offset: bypassEdges.has(edge_3.id) ? 8 : 20
|
|
858
|
+
}
|
|
859
|
+
};
|
|
860
|
+
});
|
|
861
|
+
$[10] = canvasWidth;
|
|
862
|
+
$[11] = graph;
|
|
863
|
+
$[12] = measurements;
|
|
864
|
+
$[13] = selectedId;
|
|
865
|
+
$[14] = trace;
|
|
866
|
+
$[15] = horizontal;
|
|
867
|
+
$[16] = layoutHeight;
|
|
868
|
+
$[17] = layoutWidth;
|
|
869
|
+
$[18] = nodes;
|
|
870
|
+
$[19] = t9;
|
|
871
|
+
} else {
|
|
872
|
+
horizontal = $[15];
|
|
873
|
+
layoutHeight = $[16];
|
|
874
|
+
layoutWidth = $[17];
|
|
875
|
+
nodes = $[18];
|
|
876
|
+
t9 = $[19];
|
|
877
|
+
}
|
|
878
|
+
const edges = t9;
|
|
879
|
+
const t10 = horizontal || void 0;
|
|
880
|
+
let t11;
|
|
881
|
+
if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
|
|
882
|
+
t11 = {
|
|
335
883
|
"node.a11yDescription.default": "Press Enter or Space to inspect a step. Press Escape to clear selection.",
|
|
336
884
|
"edge.a11yDescription.default": "A possible path between job steps."
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
|
|
885
|
+
};
|
|
886
|
+
$[20] = t11;
|
|
887
|
+
} else t11 = $[20];
|
|
888
|
+
let t12;
|
|
889
|
+
if ($[21] !== measurements || $[22] !== onDeselect || $[23] !== onSelect || $[24] !== selectedId) {
|
|
890
|
+
t12 = (changes) => {
|
|
340
891
|
for (const change of changes) {
|
|
341
|
-
if (change.type === "dimensions" && change.dimensions) {
|
|
892
|
+
if (change.type === "dimensions" && change.dimensions && change.dimensions.width > 0 && change.dimensions.height > 0) {
|
|
342
893
|
const previous = measurements[change.id];
|
|
343
894
|
if (previous?.width !== change.dimensions.width || previous.height !== change.dimensions.height) pendingMeasurements.current[change.id] = change.dimensions;
|
|
344
895
|
}
|
|
@@ -350,31 +901,110 @@ function FlowCanvas({ graph, trace, selectedId, onSelect, onDeselect, onClear })
|
|
|
350
901
|
measurementFrame.current = 0;
|
|
351
902
|
const updated = pendingMeasurements.current;
|
|
352
903
|
pendingMeasurements.current = {};
|
|
353
|
-
setMeasurements((
|
|
354
|
-
...
|
|
904
|
+
setMeasurements((current_0) => ({
|
|
905
|
+
...current_0,
|
|
355
906
|
...updated
|
|
356
907
|
}));
|
|
357
908
|
});
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
909
|
+
};
|
|
910
|
+
$[21] = measurements;
|
|
911
|
+
$[22] = onDeselect;
|
|
912
|
+
$[23] = onSelect;
|
|
913
|
+
$[24] = selectedId;
|
|
914
|
+
$[25] = t12;
|
|
915
|
+
} else t12 = $[25];
|
|
916
|
+
let t13;
|
|
917
|
+
if ($[26] !== onSelect) {
|
|
918
|
+
t13 = (_event, node_3) => onSelect(node_3.id);
|
|
919
|
+
$[26] = onSelect;
|
|
920
|
+
$[27] = t13;
|
|
921
|
+
} else t13 = $[27];
|
|
922
|
+
const t14 = `${layoutKey}:${canvasSize.height}`;
|
|
923
|
+
let t15;
|
|
924
|
+
if ($[28] !== canvasSize.left || $[29] !== canvasWidth || $[30] !== horizontal || $[31] !== layoutHeight || $[32] !== layoutWidth || $[33] !== t14) {
|
|
925
|
+
t15 = /* @__PURE__ */ jsx(ReadableViewport, {
|
|
926
|
+
layoutKey: t14,
|
|
363
927
|
canvasRef,
|
|
364
928
|
canvasWidth,
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
929
|
+
leftInset: canvasSize.left,
|
|
930
|
+
layoutWidth,
|
|
931
|
+
layoutHeight,
|
|
932
|
+
horizontal
|
|
933
|
+
});
|
|
934
|
+
$[28] = canvasSize.left;
|
|
935
|
+
$[29] = canvasWidth;
|
|
936
|
+
$[30] = horizontal;
|
|
937
|
+
$[31] = layoutHeight;
|
|
938
|
+
$[32] = layoutWidth;
|
|
939
|
+
$[33] = t14;
|
|
940
|
+
$[34] = t15;
|
|
941
|
+
} else t15 = $[34];
|
|
942
|
+
let t16;
|
|
943
|
+
if ($[35] !== edges || $[36] !== nodes || $[37] !== onClear || $[38] !== t10 || $[39] !== t12 || $[40] !== t13 || $[41] !== t15) {
|
|
944
|
+
t16 = /* @__PURE__ */ jsx(ReactFlow, {
|
|
945
|
+
ref: canvasRef,
|
|
946
|
+
nodes,
|
|
947
|
+
"data-horizontal": t10,
|
|
948
|
+
edges,
|
|
949
|
+
nodeTypes,
|
|
950
|
+
edgeTypes,
|
|
951
|
+
minZoom: .01,
|
|
952
|
+
maxZoom: 1.5,
|
|
953
|
+
panOnScroll: true,
|
|
954
|
+
zoomOnScroll: false,
|
|
955
|
+
zoomOnDoubleClick: false,
|
|
956
|
+
nodesFocusable: false,
|
|
957
|
+
nodesConnectable: false,
|
|
958
|
+
nodesDraggable: false,
|
|
959
|
+
deleteKeyCode: null,
|
|
960
|
+
ariaLabelConfig: t11,
|
|
961
|
+
edgesFocusable: false,
|
|
962
|
+
onNodesChange: t12,
|
|
963
|
+
onNodeClick: t13,
|
|
964
|
+
onPaneClick: onClear,
|
|
965
|
+
children: t15
|
|
966
|
+
});
|
|
967
|
+
$[35] = edges;
|
|
968
|
+
$[36] = nodes;
|
|
969
|
+
$[37] = onClear;
|
|
970
|
+
$[38] = t10;
|
|
971
|
+
$[39] = t12;
|
|
972
|
+
$[40] = t13;
|
|
973
|
+
$[41] = t15;
|
|
974
|
+
$[42] = t16;
|
|
975
|
+
} else t16 = $[42];
|
|
976
|
+
return t16;
|
|
977
|
+
});
|
|
978
|
+
function StepInspector(t0) {
|
|
979
|
+
const $ = c(19);
|
|
980
|
+
const { selected, trace } = t0;
|
|
370
981
|
const stats = trace?.steps[selected.stepId];
|
|
371
|
-
|
|
372
|
-
|
|
982
|
+
let t1;
|
|
983
|
+
if ($[0] !== selected || $[1] !== trace) {
|
|
984
|
+
t1 = stepState(selected, trace);
|
|
985
|
+
$[0] = selected;
|
|
986
|
+
$[1] = trace;
|
|
987
|
+
$[2] = t1;
|
|
988
|
+
} else t1 = $[2];
|
|
989
|
+
let t2;
|
|
990
|
+
if ($[3] !== t1) {
|
|
991
|
+
t2 = /* @__PURE__ */ jsx("p", {
|
|
373
992
|
className: "execution-board__inspector-status",
|
|
374
|
-
children:
|
|
375
|
-
})
|
|
376
|
-
|
|
377
|
-
|
|
993
|
+
children: t1
|
|
994
|
+
});
|
|
995
|
+
$[3] = t1;
|
|
996
|
+
$[4] = t2;
|
|
997
|
+
} else t2 = $[4];
|
|
998
|
+
let t3;
|
|
999
|
+
if ($[5] !== selected.detail || $[6] !== selected.kind) {
|
|
1000
|
+
t3 = (selected.kind === "step" || selected.kind === "branch") && selected.detail ? /* @__PURE__ */ jsx("p", { children: selected.detail }) : null;
|
|
1001
|
+
$[5] = selected.detail;
|
|
1002
|
+
$[6] = selected.kind;
|
|
1003
|
+
$[7] = t3;
|
|
1004
|
+
} else t3 = $[7];
|
|
1005
|
+
let t4;
|
|
1006
|
+
if ($[8] !== selected.kind || $[9] !== stats || $[10] !== trace?.status) {
|
|
1007
|
+
t4 = stats ? /* @__PURE__ */ jsxs(DescriptionList.Root, {
|
|
378
1008
|
variant: "divided",
|
|
379
1009
|
"aria-label": "Step activity",
|
|
380
1010
|
children: [
|
|
@@ -384,66 +1014,187 @@ function StepInspector({ selected, trace }) {
|
|
|
384
1014
|
/* @__PURE__ */ jsxs(DescriptionList.Item, { children: [/* @__PURE__ */ jsx(DescriptionList.Term, { children: "Recorded time" }), /* @__PURE__ */ jsx(DescriptionList.Details, { children: durationLabel(stats.durationMs) })] }),
|
|
385
1015
|
selected.kind === "branch" || stats.yes + stats.no > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(DescriptionList.Item, { children: [/* @__PURE__ */ jsx(DescriptionList.Term, { children: "Yes" }), /* @__PURE__ */ jsx(DescriptionList.Details, { children: stats.yes.toLocaleString() })] }), /* @__PURE__ */ jsxs(DescriptionList.Item, { children: [/* @__PURE__ */ jsx(DescriptionList.Term, { children: "No" }), /* @__PURE__ */ jsx(DescriptionList.Details, { children: stats.no.toLocaleString() })] })] }) : null
|
|
386
1016
|
]
|
|
387
|
-
}) : null
|
|
388
|
-
|
|
389
|
-
|
|
1017
|
+
}) : null;
|
|
1018
|
+
$[8] = selected.kind;
|
|
1019
|
+
$[9] = stats;
|
|
1020
|
+
$[10] = trace?.status;
|
|
1021
|
+
$[11] = t4;
|
|
1022
|
+
} else t4 = $[11];
|
|
1023
|
+
let t5;
|
|
1024
|
+
if ($[12] !== stats) {
|
|
1025
|
+
t5 = stats?.error ? /* @__PURE__ */ jsx("p", { children: executionErrorSummary(stats.error) }) : null;
|
|
1026
|
+
$[12] = stats;
|
|
1027
|
+
$[13] = t5;
|
|
1028
|
+
} else t5 = $[13];
|
|
1029
|
+
let t6;
|
|
1030
|
+
if ($[14] !== t2 || $[15] !== t3 || $[16] !== t4 || $[17] !== t5) {
|
|
1031
|
+
t6 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1032
|
+
t2,
|
|
1033
|
+
t3,
|
|
1034
|
+
t4,
|
|
1035
|
+
t5
|
|
1036
|
+
] });
|
|
1037
|
+
$[14] = t2;
|
|
1038
|
+
$[15] = t3;
|
|
1039
|
+
$[16] = t4;
|
|
1040
|
+
$[17] = t5;
|
|
1041
|
+
$[18] = t6;
|
|
1042
|
+
} else t6 = $[18];
|
|
1043
|
+
return t6;
|
|
1044
|
+
}
|
|
1045
|
+
function StepOutline(t0) {
|
|
1046
|
+
const $ = c(12);
|
|
1047
|
+
const { graph, trace, selectedId, outlineId, onSelect } = t0;
|
|
1048
|
+
let t1;
|
|
1049
|
+
if ($[0] !== graph.nodes || $[1] !== onSelect || $[2] !== selectedId || $[3] !== trace) {
|
|
1050
|
+
let t2;
|
|
1051
|
+
if ($[5] !== onSelect || $[6] !== selectedId || $[7] !== trace) {
|
|
1052
|
+
t2 = (node) => {
|
|
1053
|
+
const state = stepState(node, trace);
|
|
1054
|
+
const Glyph = kindIcons[node.kind];
|
|
1055
|
+
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Button, {
|
|
1056
|
+
type: "button",
|
|
1057
|
+
size: "sm",
|
|
1058
|
+
variant: "ghost",
|
|
1059
|
+
color: "neutral",
|
|
1060
|
+
"aria-pressed": selectedId === node.id,
|
|
1061
|
+
onClick: () => onSelect(node.id),
|
|
1062
|
+
children: [
|
|
1063
|
+
/* @__PURE__ */ jsx(Glyph, { "aria-hidden": "true" }),
|
|
1064
|
+
/* @__PURE__ */ jsx("span", { children: node.label }),
|
|
1065
|
+
/* @__PURE__ */ jsx("span", {
|
|
1066
|
+
className: "execution-board__list-state",
|
|
1067
|
+
children: state
|
|
1068
|
+
})
|
|
1069
|
+
]
|
|
1070
|
+
}) }, node.id);
|
|
1071
|
+
};
|
|
1072
|
+
$[5] = onSelect;
|
|
1073
|
+
$[6] = selectedId;
|
|
1074
|
+
$[7] = trace;
|
|
1075
|
+
$[8] = t2;
|
|
1076
|
+
} else t2 = $[8];
|
|
1077
|
+
t1 = graph.nodes.map(t2);
|
|
1078
|
+
$[0] = graph.nodes;
|
|
1079
|
+
$[1] = onSelect;
|
|
1080
|
+
$[2] = selectedId;
|
|
1081
|
+
$[3] = trace;
|
|
1082
|
+
$[4] = t1;
|
|
1083
|
+
} else t1 = $[4];
|
|
1084
|
+
let t2;
|
|
1085
|
+
if ($[9] !== outlineId || $[10] !== t1) {
|
|
1086
|
+
t2 = /* @__PURE__ */ jsx("ol", {
|
|
1087
|
+
id: outlineId,
|
|
1088
|
+
className: "execution-board__outline sigvelo-stack-list",
|
|
1089
|
+
"aria-label": "All steps",
|
|
1090
|
+
children: t1
|
|
1091
|
+
});
|
|
1092
|
+
$[9] = outlineId;
|
|
1093
|
+
$[10] = t1;
|
|
1094
|
+
$[11] = t2;
|
|
1095
|
+
} else t2 = $[11];
|
|
1096
|
+
return t2;
|
|
390
1097
|
}
|
|
391
|
-
function
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
1098
|
+
function BoardInspector(t0) {
|
|
1099
|
+
const $ = c(59);
|
|
1100
|
+
const { open, graph, trace, selected, selectedId, showOutline, outlineId, inspectorHeading, onClose, onSelect } = t0;
|
|
1101
|
+
let t1;
|
|
1102
|
+
if ($[0] !== selected || $[1] !== showOutline) {
|
|
1103
|
+
t1 = selected ? {
|
|
1104
|
+
title: selected.label,
|
|
1105
|
+
Icon: kindIcons[selected.kind],
|
|
1106
|
+
region: "Selected step",
|
|
1107
|
+
close: "Close step details"
|
|
1108
|
+
} : showOutline ? {
|
|
1109
|
+
title: "Steps",
|
|
1110
|
+
Icon: QueueIcon,
|
|
1111
|
+
region: "Step list",
|
|
1112
|
+
close: "Close step list"
|
|
1113
|
+
} : {
|
|
1114
|
+
title: "Results",
|
|
1115
|
+
Icon: FileIcon,
|
|
1116
|
+
region: "Results",
|
|
1117
|
+
close: "Close results"
|
|
1118
|
+
};
|
|
1119
|
+
$[0] = selected;
|
|
1120
|
+
$[1] = showOutline;
|
|
1121
|
+
$[2] = t1;
|
|
1122
|
+
} else t1 = $[2];
|
|
1123
|
+
const panel = t1;
|
|
1124
|
+
const SelectedIcon = panel.Icon;
|
|
1125
|
+
let t10;
|
|
1126
|
+
let t11;
|
|
1127
|
+
let t2;
|
|
1128
|
+
let t3;
|
|
1129
|
+
let t4;
|
|
1130
|
+
let t5;
|
|
1131
|
+
let t6;
|
|
1132
|
+
let t7;
|
|
1133
|
+
let t8;
|
|
1134
|
+
let t9;
|
|
1135
|
+
if ($[3] !== SelectedIcon || $[4] !== graph || $[5] !== inspectorHeading || $[6] !== onClose || $[7] !== onSelect || $[8] !== open || $[9] !== outlineId || $[10] !== panel.close || $[11] !== panel.region || $[12] !== panel.title || $[13] !== selected || $[14] !== selectedId || $[15] !== showOutline || $[16] !== trace) {
|
|
1136
|
+
const links = stepLinks(selected?.links);
|
|
1137
|
+
const app = links[0];
|
|
1138
|
+
t5 = "execution-board__inspector transition-surface";
|
|
1139
|
+
t6 = "slide-inline";
|
|
1140
|
+
t7 = !open;
|
|
1141
|
+
t8 = !open;
|
|
1142
|
+
t9 = "region";
|
|
1143
|
+
t10 = panel.region;
|
|
1144
|
+
const t12 = app ? /* @__PURE__ */ jsx(Favicon, {
|
|
1145
|
+
href: app.href,
|
|
1146
|
+
fallback: /* @__PURE__ */ jsx(SelectedIcon, {})
|
|
1147
|
+
}) : /* @__PURE__ */ jsx(SelectedIcon, {
|
|
1148
|
+
className: "execution-board__state-icon",
|
|
1149
|
+
"aria-hidden": "true"
|
|
1150
|
+
});
|
|
1151
|
+
let t13;
|
|
1152
|
+
if ($[27] !== inspectorHeading || $[28] !== panel.title) {
|
|
1153
|
+
t13 = /* @__PURE__ */ jsx("h3", {
|
|
1154
|
+
ref: inspectorHeading,
|
|
1155
|
+
tabIndex: -1,
|
|
1156
|
+
children: panel.title
|
|
1157
|
+
});
|
|
1158
|
+
$[27] = inspectorHeading;
|
|
1159
|
+
$[28] = panel.title;
|
|
1160
|
+
$[29] = t13;
|
|
1161
|
+
} else t13 = $[29];
|
|
1162
|
+
let t14;
|
|
1163
|
+
if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1164
|
+
t14 = /* @__PURE__ */ jsx(XIcon, {});
|
|
1165
|
+
$[30] = t14;
|
|
1166
|
+
} else t14 = $[30];
|
|
1167
|
+
let t15;
|
|
1168
|
+
if ($[31] !== onClose || $[32] !== panel.close) {
|
|
1169
|
+
t15 = /* @__PURE__ */ jsx(IconButton, {
|
|
1170
|
+
label: panel.close,
|
|
402
1171
|
variant: "ghost",
|
|
403
1172
|
color: "neutral",
|
|
404
|
-
"
|
|
405
|
-
onClick:
|
|
1173
|
+
size: "xs",
|
|
1174
|
+
onClick: onClose,
|
|
1175
|
+
children: t14
|
|
1176
|
+
});
|
|
1177
|
+
$[31] = onClose;
|
|
1178
|
+
$[32] = panel.close;
|
|
1179
|
+
$[33] = t15;
|
|
1180
|
+
} else t15 = $[33];
|
|
1181
|
+
if ($[34] !== t12 || $[35] !== t13 || $[36] !== t15) {
|
|
1182
|
+
t11 = /* @__PURE__ */ jsxs("div", {
|
|
1183
|
+
className: "execution-board__inspector-heading",
|
|
406
1184
|
children: [
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
className: "execution-board__list-state",
|
|
411
|
-
children: state
|
|
412
|
-
})
|
|
1185
|
+
t12,
|
|
1186
|
+
t13,
|
|
1187
|
+
t15
|
|
413
1188
|
]
|
|
414
|
-
})
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
"aria-label": selected ? "Selected step" : showOutline ? "Step list" : "Results",
|
|
424
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
425
|
-
className: "execution-board__inspector-heading",
|
|
426
|
-
children: [
|
|
427
|
-
/* @__PURE__ */ jsx(SelectedIcon, {
|
|
428
|
-
className: "execution-board__state-icon",
|
|
429
|
-
"aria-hidden": "true"
|
|
430
|
-
}),
|
|
431
|
-
/* @__PURE__ */ jsx("h3", {
|
|
432
|
-
ref: inspectorHeading,
|
|
433
|
-
tabIndex: -1,
|
|
434
|
-
children: selected?.label ?? (showOutline ? "Steps" : "Results")
|
|
435
|
-
}),
|
|
436
|
-
/* @__PURE__ */ jsx(IconButton, {
|
|
437
|
-
label: selected ? "Close step details" : showOutline ? "Close step list" : "Close results",
|
|
438
|
-
variant: "ghost",
|
|
439
|
-
color: "neutral",
|
|
440
|
-
onClick: onClose,
|
|
441
|
-
children: /* @__PURE__ */ jsx(XIcon, {})
|
|
442
|
-
})
|
|
443
|
-
]
|
|
444
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
445
|
-
className: "execution-board__inspector-body",
|
|
446
|
-
children: selected ? /* @__PURE__ */ jsx(StepInspector, {
|
|
1189
|
+
});
|
|
1190
|
+
$[34] = t12;
|
|
1191
|
+
$[35] = t13;
|
|
1192
|
+
$[36] = t15;
|
|
1193
|
+
$[37] = t11;
|
|
1194
|
+
} else t11 = $[37];
|
|
1195
|
+
t2 = "execution-board__inspector-body";
|
|
1196
|
+
if ($[38] !== graph || $[39] !== onSelect || $[40] !== outlineId || $[41] !== selected || $[42] !== selectedId || $[43] !== showOutline || $[44] !== trace) {
|
|
1197
|
+
t3 = selected ? /* @__PURE__ */ jsx(StepInspector, {
|
|
447
1198
|
selected,
|
|
448
1199
|
trace
|
|
449
1200
|
}) : showOutline ? /* @__PURE__ */ jsx(StepOutline, {
|
|
@@ -452,171 +1203,619 @@ function BoardInspector({ graph, trace, selected, selectedId, showOutline, outli
|
|
|
452
1203
|
selectedId,
|
|
453
1204
|
outlineId,
|
|
454
1205
|
onSelect
|
|
455
|
-
}) : /* @__PURE__ */ jsx(ExecutionResult, { result: trace?.result })
|
|
456
|
-
|
|
457
|
-
|
|
1206
|
+
}) : /* @__PURE__ */ jsx(ExecutionResult, { result: trace?.result });
|
|
1207
|
+
$[38] = graph;
|
|
1208
|
+
$[39] = onSelect;
|
|
1209
|
+
$[40] = outlineId;
|
|
1210
|
+
$[41] = selected;
|
|
1211
|
+
$[42] = selectedId;
|
|
1212
|
+
$[43] = showOutline;
|
|
1213
|
+
$[44] = trace;
|
|
1214
|
+
$[45] = t3;
|
|
1215
|
+
} else t3 = $[45];
|
|
1216
|
+
t4 = links.length ? /* @__PURE__ */ jsx("nav", {
|
|
1217
|
+
className: "execution-board__destinations",
|
|
1218
|
+
"aria-label": "Step destinations",
|
|
1219
|
+
children: links.map(_temp4)
|
|
1220
|
+
}) : null;
|
|
1221
|
+
$[3] = SelectedIcon;
|
|
1222
|
+
$[4] = graph;
|
|
1223
|
+
$[5] = inspectorHeading;
|
|
1224
|
+
$[6] = onClose;
|
|
1225
|
+
$[7] = onSelect;
|
|
1226
|
+
$[8] = open;
|
|
1227
|
+
$[9] = outlineId;
|
|
1228
|
+
$[10] = panel.close;
|
|
1229
|
+
$[11] = panel.region;
|
|
1230
|
+
$[12] = panel.title;
|
|
1231
|
+
$[13] = selected;
|
|
1232
|
+
$[14] = selectedId;
|
|
1233
|
+
$[15] = showOutline;
|
|
1234
|
+
$[16] = trace;
|
|
1235
|
+
$[17] = t10;
|
|
1236
|
+
$[18] = t11;
|
|
1237
|
+
$[19] = t2;
|
|
1238
|
+
$[20] = t3;
|
|
1239
|
+
$[21] = t4;
|
|
1240
|
+
$[22] = t5;
|
|
1241
|
+
$[23] = t6;
|
|
1242
|
+
$[24] = t7;
|
|
1243
|
+
$[25] = t8;
|
|
1244
|
+
$[26] = t9;
|
|
1245
|
+
} else {
|
|
1246
|
+
t10 = $[17];
|
|
1247
|
+
t11 = $[18];
|
|
1248
|
+
t2 = $[19];
|
|
1249
|
+
t3 = $[20];
|
|
1250
|
+
t4 = $[21];
|
|
1251
|
+
t5 = $[22];
|
|
1252
|
+
t6 = $[23];
|
|
1253
|
+
t7 = $[24];
|
|
1254
|
+
t8 = $[25];
|
|
1255
|
+
t9 = $[26];
|
|
1256
|
+
}
|
|
1257
|
+
let t12;
|
|
1258
|
+
if ($[46] !== t2 || $[47] !== t3 || $[48] !== t4) {
|
|
1259
|
+
t12 = /* @__PURE__ */ jsxs("div", {
|
|
1260
|
+
className: t2,
|
|
1261
|
+
children: [t3, t4]
|
|
1262
|
+
});
|
|
1263
|
+
$[46] = t2;
|
|
1264
|
+
$[47] = t3;
|
|
1265
|
+
$[48] = t4;
|
|
1266
|
+
$[49] = t12;
|
|
1267
|
+
} else t12 = $[49];
|
|
1268
|
+
let t13;
|
|
1269
|
+
if ($[50] !== t10 || $[51] !== t11 || $[52] !== t12 || $[53] !== t5 || $[54] !== t6 || $[55] !== t7 || $[56] !== t8 || $[57] !== t9) {
|
|
1270
|
+
t13 = /* @__PURE__ */ jsxs("aside", {
|
|
1271
|
+
className: t5,
|
|
1272
|
+
"data-variant": t6,
|
|
1273
|
+
hidden: t7,
|
|
1274
|
+
inert: t8,
|
|
1275
|
+
role: t9,
|
|
1276
|
+
"aria-label": t10,
|
|
1277
|
+
children: [t11, t12]
|
|
1278
|
+
});
|
|
1279
|
+
$[50] = t10;
|
|
1280
|
+
$[51] = t11;
|
|
1281
|
+
$[52] = t12;
|
|
1282
|
+
$[53] = t5;
|
|
1283
|
+
$[54] = t6;
|
|
1284
|
+
$[55] = t7;
|
|
1285
|
+
$[56] = t8;
|
|
1286
|
+
$[57] = t9;
|
|
1287
|
+
$[58] = t13;
|
|
1288
|
+
} else t13 = $[58];
|
|
1289
|
+
return t13;
|
|
1290
|
+
}
|
|
1291
|
+
function _temp4(link) {
|
|
1292
|
+
return /* @__PURE__ */ jsx(AppDestination, { link }, link.href);
|
|
458
1293
|
}
|
|
459
|
-
function BoardNotices(
|
|
1294
|
+
function BoardNotices(t0) {
|
|
1295
|
+
const $ = c(11);
|
|
1296
|
+
const { graph, trace, showResults } = t0;
|
|
460
1297
|
const hasResult = showResults && trace && (trace.result !== void 0 || trace.status === "completed");
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
1298
|
+
let t1;
|
|
1299
|
+
if ($[0] !== graph || $[1] !== trace) {
|
|
1300
|
+
t1 = boardNotice(graph, trace);
|
|
1301
|
+
$[0] = graph;
|
|
1302
|
+
$[1] = trace;
|
|
1303
|
+
$[2] = t1;
|
|
1304
|
+
} else t1 = $[2];
|
|
1305
|
+
const notice = t1;
|
|
1306
|
+
let t2;
|
|
1307
|
+
if ($[3] !== hasResult || $[4] !== trace) {
|
|
1308
|
+
t2 = hasResult && trace.status === "completed" ? /* @__PURE__ */ jsx("div", {
|
|
1309
|
+
className: "execution-board__outcome",
|
|
1310
|
+
children: /* @__PURE__ */ jsx("p", { children: executionResultSummary(trace.result) })
|
|
1311
|
+
}) : null;
|
|
1312
|
+
$[3] = hasResult;
|
|
1313
|
+
$[4] = trace;
|
|
1314
|
+
$[5] = t2;
|
|
1315
|
+
} else t2 = $[5];
|
|
1316
|
+
let t3;
|
|
1317
|
+
if ($[6] !== notice) {
|
|
1318
|
+
t3 = notice ? /* @__PURE__ */ jsx("p", {
|
|
1319
|
+
className: "execution-board__notice",
|
|
1320
|
+
role: notice.alert ? "alert" : void 0,
|
|
1321
|
+
children: notice.text
|
|
1322
|
+
}) : null;
|
|
1323
|
+
$[6] = notice;
|
|
1324
|
+
$[7] = t3;
|
|
1325
|
+
} else t3 = $[7];
|
|
1326
|
+
let t4;
|
|
1327
|
+
if ($[8] !== t2 || $[9] !== t3) {
|
|
1328
|
+
t4 = /* @__PURE__ */ jsxs(Fragment, { children: [t2, t3] });
|
|
1329
|
+
$[8] = t2;
|
|
1330
|
+
$[9] = t3;
|
|
1331
|
+
$[10] = t4;
|
|
1332
|
+
} else t4 = $[10];
|
|
1333
|
+
return t4;
|
|
470
1334
|
}
|
|
471
|
-
function
|
|
472
|
-
const
|
|
473
|
-
const
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
const
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
1335
|
+
function BoardRunSummary(t0) {
|
|
1336
|
+
const $ = c(17);
|
|
1337
|
+
const { graph, trace } = t0;
|
|
1338
|
+
let t1;
|
|
1339
|
+
if ($[0] !== graph || $[1] !== trace) {
|
|
1340
|
+
t1 = trace?.status === "running" ? graph.nodes.find((node) => trace.steps[node.stepId]?.active) : void 0;
|
|
1341
|
+
$[0] = graph;
|
|
1342
|
+
$[1] = trace;
|
|
1343
|
+
$[2] = t1;
|
|
1344
|
+
} else t1 = $[2];
|
|
1345
|
+
const activeStep = t1;
|
|
1346
|
+
let t2;
|
|
1347
|
+
if ($[3] !== trace) {
|
|
1348
|
+
t2 = trace ? {
|
|
1349
|
+
running: "Running",
|
|
1350
|
+
completed: "Completed",
|
|
1351
|
+
aborted: "Stopped",
|
|
1352
|
+
interrupted: "Interrupted",
|
|
1353
|
+
error: "Failed"
|
|
1354
|
+
}[trace.status] : "Workflow outline";
|
|
1355
|
+
$[3] = trace;
|
|
1356
|
+
$[4] = t2;
|
|
1357
|
+
} else t2 = $[4];
|
|
1358
|
+
const runStatus = t2;
|
|
1359
|
+
let t3;
|
|
1360
|
+
let t4;
|
|
1361
|
+
if ($[5] !== runStatus) {
|
|
1362
|
+
t3 = /* @__PURE__ */ jsx(StateIcon, { state: runStatus });
|
|
1363
|
+
t4 = /* @__PURE__ */ jsx("span", { children: runStatus });
|
|
1364
|
+
$[5] = runStatus;
|
|
1365
|
+
$[6] = t3;
|
|
1366
|
+
$[7] = t4;
|
|
1367
|
+
} else {
|
|
1368
|
+
t3 = $[6];
|
|
1369
|
+
t4 = $[7];
|
|
1370
|
+
}
|
|
1371
|
+
let t5;
|
|
1372
|
+
if ($[8] !== trace) {
|
|
1373
|
+
t5 = trace?.completedAt !== void 0 ? /* @__PURE__ */ jsx("span", {
|
|
1374
|
+
className: "execution-board__duration",
|
|
1375
|
+
children: durationLabel(trace.completedAt - trace.startedAt)
|
|
1376
|
+
}) : null;
|
|
1377
|
+
$[8] = trace;
|
|
1378
|
+
$[9] = t5;
|
|
1379
|
+
} else t5 = $[9];
|
|
1380
|
+
let t6;
|
|
1381
|
+
if ($[10] !== activeStep) {
|
|
1382
|
+
t6 = activeStep ? /* @__PURE__ */ jsx("span", {
|
|
1383
|
+
className: "execution-board__active-step",
|
|
1384
|
+
children: activeStep.label
|
|
1385
|
+
}) : null;
|
|
1386
|
+
$[10] = activeStep;
|
|
1387
|
+
$[11] = t6;
|
|
1388
|
+
} else t6 = $[11];
|
|
1389
|
+
let t7;
|
|
1390
|
+
if ($[12] !== t3 || $[13] !== t4 || $[14] !== t5 || $[15] !== t6) {
|
|
1391
|
+
t7 = /* @__PURE__ */ jsxs("div", {
|
|
485
1392
|
className: "execution-board__status",
|
|
486
1393
|
role: "status",
|
|
487
1394
|
"aria-atomic": "true",
|
|
488
1395
|
children: [
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
/* @__PURE__ */ jsx("span", { children: runStatus }),
|
|
494
|
-
trace?.completedAt !== void 0 ? /* @__PURE__ */ jsx("span", {
|
|
495
|
-
className: "execution-board__duration",
|
|
496
|
-
children: durationLabel(trace.completedAt - trace.startedAt)
|
|
497
|
-
}) : null,
|
|
498
|
-
activeStep ? /* @__PURE__ */ jsx("span", {
|
|
499
|
-
className: "execution-board__active-step",
|
|
500
|
-
children: activeStep.label
|
|
501
|
-
}) : null
|
|
1396
|
+
t3,
|
|
1397
|
+
t4,
|
|
1398
|
+
t5,
|
|
1399
|
+
t6
|
|
502
1400
|
]
|
|
503
|
-
})
|
|
1401
|
+
});
|
|
1402
|
+
$[12] = t3;
|
|
1403
|
+
$[13] = t4;
|
|
1404
|
+
$[14] = t5;
|
|
1405
|
+
$[15] = t6;
|
|
1406
|
+
$[16] = t7;
|
|
1407
|
+
} else t7 = $[16];
|
|
1408
|
+
return t7;
|
|
1409
|
+
}
|
|
1410
|
+
function BoardToolbar(t0) {
|
|
1411
|
+
const $ = c(27);
|
|
1412
|
+
const { graph, trace, hasResult, showSummary, panel, outlineId, resultsButton, stepsButton, onToggleResults, onToggleSteps } = t0;
|
|
1413
|
+
const showOutline = panel === "steps";
|
|
1414
|
+
let t1;
|
|
1415
|
+
if ($[0] !== graph || $[1] !== showSummary || $[2] !== trace) {
|
|
1416
|
+
t1 = showSummary ? /* @__PURE__ */ jsx(BoardRunSummary, {
|
|
1417
|
+
graph,
|
|
1418
|
+
trace
|
|
1419
|
+
}) : null;
|
|
1420
|
+
$[0] = graph;
|
|
1421
|
+
$[1] = showSummary;
|
|
1422
|
+
$[2] = trace;
|
|
1423
|
+
$[3] = t1;
|
|
1424
|
+
} else t1 = $[3];
|
|
1425
|
+
let t2;
|
|
1426
|
+
if ($[4] !== graph.nodes.length) {
|
|
1427
|
+
t2 = graph.nodes.length ? /* @__PURE__ */ jsx(BoardViewControls, {}) : null;
|
|
1428
|
+
$[4] = graph.nodes.length;
|
|
1429
|
+
$[5] = t2;
|
|
1430
|
+
} else t2 = $[5];
|
|
1431
|
+
let t3;
|
|
1432
|
+
if ($[6] !== hasResult || $[7] !== onToggleResults || $[8] !== panel || $[9] !== resultsButton) {
|
|
1433
|
+
t3 = hasResult ? /* @__PURE__ */ jsx(IconButton, {
|
|
1434
|
+
ref: resultsButton,
|
|
1435
|
+
label: panel === "result" ? "Hide results" : "Show results",
|
|
1436
|
+
"aria-expanded": panel === "result",
|
|
1437
|
+
variant: "ghost",
|
|
1438
|
+
color: "neutral",
|
|
1439
|
+
onClick: onToggleResults,
|
|
1440
|
+
children: /* @__PURE__ */ jsx(FileIcon, {})
|
|
1441
|
+
}) : null;
|
|
1442
|
+
$[6] = hasResult;
|
|
1443
|
+
$[7] = onToggleResults;
|
|
1444
|
+
$[8] = panel;
|
|
1445
|
+
$[9] = resultsButton;
|
|
1446
|
+
$[10] = t3;
|
|
1447
|
+
} else t3 = $[10];
|
|
1448
|
+
let t4;
|
|
1449
|
+
if ($[11] !== graph.gaps.length) {
|
|
1450
|
+
t4 = graph.gaps.length ? /* @__PURE__ */ jsx(IconButton, {
|
|
1451
|
+
label: "Some activity may not appear on this board",
|
|
1452
|
+
variant: "ghost",
|
|
1453
|
+
color: "neutral",
|
|
1454
|
+
children: /* @__PURE__ */ jsx(InfoIcon, {})
|
|
1455
|
+
}) : null;
|
|
1456
|
+
$[11] = graph.gaps.length;
|
|
1457
|
+
$[12] = t4;
|
|
1458
|
+
} else t4 = $[12];
|
|
1459
|
+
let t5;
|
|
1460
|
+
if ($[13] !== graph.nodes.length || $[14] !== onToggleSteps || $[15] !== outlineId || $[16] !== showOutline || $[17] !== stepsButton) {
|
|
1461
|
+
t5 = graph.nodes.length ? /* @__PURE__ */ jsx(IconButton, {
|
|
1462
|
+
ref: stepsButton,
|
|
1463
|
+
size: "xs",
|
|
1464
|
+
label: showOutline ? "Hide step list" : "Show step list",
|
|
1465
|
+
"aria-expanded": showOutline,
|
|
1466
|
+
"aria-controls": outlineId,
|
|
1467
|
+
variant: "ghost",
|
|
1468
|
+
color: "neutral",
|
|
1469
|
+
onClick: onToggleSteps,
|
|
1470
|
+
children: /* @__PURE__ */ jsx(QueueIcon, {})
|
|
1471
|
+
}) : null;
|
|
1472
|
+
$[13] = graph.nodes.length;
|
|
1473
|
+
$[14] = onToggleSteps;
|
|
1474
|
+
$[15] = outlineId;
|
|
1475
|
+
$[16] = showOutline;
|
|
1476
|
+
$[17] = stepsButton;
|
|
1477
|
+
$[18] = t5;
|
|
1478
|
+
} else t5 = $[18];
|
|
1479
|
+
let t6;
|
|
1480
|
+
if ($[19] !== t2 || $[20] !== t3 || $[21] !== t4 || $[22] !== t5) {
|
|
1481
|
+
t6 = /* @__PURE__ */ jsxs("div", {
|
|
504
1482
|
className: "execution-board__actions",
|
|
505
1483
|
children: [
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
variant: "ghost",
|
|
511
|
-
color: "neutral",
|
|
512
|
-
onClick: onToggleResults,
|
|
513
|
-
children: /* @__PURE__ */ jsx(FileIcon, {})
|
|
514
|
-
}) : null,
|
|
515
|
-
graph.gaps.length ? /* @__PURE__ */ jsx(IconButton, {
|
|
516
|
-
label: "Some activity may not appear on this board",
|
|
517
|
-
variant: "ghost",
|
|
518
|
-
color: "neutral",
|
|
519
|
-
children: /* @__PURE__ */ jsx(InfoIcon, {})
|
|
520
|
-
}) : null,
|
|
521
|
-
graph.nodes.length ? /* @__PURE__ */ jsx(IconButton, {
|
|
522
|
-
ref: stepsButton,
|
|
523
|
-
label: showOutline ? "Hide step list" : "Show step list",
|
|
524
|
-
"aria-expanded": showOutline,
|
|
525
|
-
"aria-controls": outlineId,
|
|
526
|
-
variant: "ghost",
|
|
527
|
-
color: "neutral",
|
|
528
|
-
onClick: onToggleSteps,
|
|
529
|
-
children: /* @__PURE__ */ jsx(QueueIcon, {})
|
|
530
|
-
}) : null
|
|
1484
|
+
t2,
|
|
1485
|
+
t3,
|
|
1486
|
+
t4,
|
|
1487
|
+
t5
|
|
531
1488
|
]
|
|
532
|
-
})
|
|
533
|
-
|
|
1489
|
+
});
|
|
1490
|
+
$[19] = t2;
|
|
1491
|
+
$[20] = t3;
|
|
1492
|
+
$[21] = t4;
|
|
1493
|
+
$[22] = t5;
|
|
1494
|
+
$[23] = t6;
|
|
1495
|
+
} else t6 = $[23];
|
|
1496
|
+
let t7;
|
|
1497
|
+
if ($[24] !== t1 || $[25] !== t6) {
|
|
1498
|
+
t7 = /* @__PURE__ */ jsxs("div", {
|
|
1499
|
+
className: "execution-board__toolbar",
|
|
1500
|
+
role: "toolbar",
|
|
1501
|
+
"aria-label": "Canvas controls",
|
|
1502
|
+
children: [t1, t6]
|
|
1503
|
+
});
|
|
1504
|
+
$[24] = t1;
|
|
1505
|
+
$[25] = t6;
|
|
1506
|
+
$[26] = t7;
|
|
1507
|
+
} else t7 = $[26];
|
|
1508
|
+
return t7;
|
|
534
1509
|
}
|
|
535
|
-
/**
|
|
536
|
-
|
|
1510
|
+
/**
|
|
1511
|
+
* A read-only view of executable source, using the automation prototype's React Flow canvas.
|
|
1512
|
+
* The root exposes `data-inspector` while a drawer is open so a host can coordinate its
|
|
1513
|
+
* adjacent content without querying the board's internal anatomy. A positioned host may
|
|
1514
|
+
* set `--execution-board-position: static` to anchor the inspector to its own detail space.
|
|
1515
|
+
* A bounded workbench passes `data-recipe="fill-host"` to give up the standalone canvas's
|
|
1516
|
+
* minimum height and fill its host instead.
|
|
1517
|
+
*/
|
|
1518
|
+
function ExecutionBoard(t0) {
|
|
1519
|
+
const $ = c(76);
|
|
1520
|
+
let className;
|
|
1521
|
+
let graph;
|
|
1522
|
+
let props;
|
|
1523
|
+
let t1;
|
|
1524
|
+
let trace;
|
|
1525
|
+
if ($[0] !== t0) {
|
|
1526
|
+
({graph, trace, showResults: t1, className, ...props} = t0);
|
|
1527
|
+
$[0] = t0;
|
|
1528
|
+
$[1] = className;
|
|
1529
|
+
$[2] = graph;
|
|
1530
|
+
$[3] = props;
|
|
1531
|
+
$[4] = t1;
|
|
1532
|
+
$[5] = trace;
|
|
1533
|
+
} else {
|
|
1534
|
+
className = $[1];
|
|
1535
|
+
graph = $[2];
|
|
1536
|
+
props = $[3];
|
|
1537
|
+
t1 = $[4];
|
|
1538
|
+
trace = $[5];
|
|
1539
|
+
}
|
|
1540
|
+
const showResults = t1 === void 0 ? true : t1;
|
|
537
1541
|
const hasNodes = graph.nodes.length > 0;
|
|
538
|
-
const [
|
|
539
|
-
|
|
540
|
-
|
|
1542
|
+
const [inspector, setInspector] = React.useState();
|
|
1543
|
+
let t2;
|
|
1544
|
+
if ($[6] !== graph.nodes || $[7] !== inspector) {
|
|
1545
|
+
t2 = inspector?.view === "step" ? graph.nodes.find((node) => node.id === inspector.id) : void 0;
|
|
1546
|
+
$[6] = graph.nodes;
|
|
1547
|
+
$[7] = inspector;
|
|
1548
|
+
$[8] = t2;
|
|
1549
|
+
} else t2 = $[8];
|
|
1550
|
+
const selected = t2;
|
|
1551
|
+
const inspectorOpen = Boolean(inspector?.open && (inspector.view !== "step" || selected));
|
|
1552
|
+
const selectedId = inspectorOpen ? selected?.id : void 0;
|
|
1553
|
+
const panel = inspectorOpen ? inspector?.view : void 0;
|
|
1554
|
+
const boardRef = React.useRef(null);
|
|
541
1555
|
const inspectorHeading = React.useRef(null);
|
|
542
1556
|
const stepsButton = React.useRef(null);
|
|
543
1557
|
const resultsButton = React.useRef(null);
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
1558
|
+
let t3;
|
|
1559
|
+
if ($[9] !== inspectorOpen) {
|
|
1560
|
+
t3 = () => {
|
|
1561
|
+
if (inspectorOpen) inspectorHeading.current?.focus();
|
|
1562
|
+
};
|
|
1563
|
+
$[9] = inspectorOpen;
|
|
1564
|
+
$[10] = t3;
|
|
1565
|
+
} else t3 = $[10];
|
|
1566
|
+
let t4;
|
|
1567
|
+
if ($[11] !== inspectorOpen || $[12] !== panel || $[13] !== selectedId) {
|
|
1568
|
+
t4 = [
|
|
1569
|
+
inspectorOpen,
|
|
1570
|
+
selectedId,
|
|
1571
|
+
panel
|
|
1572
|
+
];
|
|
1573
|
+
$[11] = inspectorOpen;
|
|
1574
|
+
$[12] = panel;
|
|
1575
|
+
$[13] = selectedId;
|
|
1576
|
+
$[14] = t4;
|
|
1577
|
+
} else t4 = $[14];
|
|
1578
|
+
React.useEffect(t3, t4);
|
|
1579
|
+
const showOutline = inspector?.view === "steps";
|
|
548
1580
|
const hasResult = showResults && trace && (trace.result !== void 0 || trace.status === "completed");
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
1581
|
+
let t5;
|
|
1582
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1583
|
+
t5 = () => {
|
|
1584
|
+
setInspector(_temp5);
|
|
1585
|
+
};
|
|
1586
|
+
$[15] = t5;
|
|
1587
|
+
} else t5 = $[15];
|
|
1588
|
+
const hideInspector = t5;
|
|
1589
|
+
let t6;
|
|
1590
|
+
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1591
|
+
t6 = () => {
|
|
1592
|
+
boardRef.current?.focus({ preventScroll: true });
|
|
1593
|
+
hideInspector();
|
|
1594
|
+
};
|
|
1595
|
+
$[16] = t6;
|
|
1596
|
+
} else t6 = $[16];
|
|
1597
|
+
const clearCanvas = t6;
|
|
1598
|
+
let t7;
|
|
1599
|
+
if ($[17] !== panel || $[18] !== selected) {
|
|
1600
|
+
t7 = () => {
|
|
1601
|
+
(selected ? boardRef.current?.querySelector(".execution-board__step[data-selected] .execution-board__step-select") : (panel === "result" ? resultsButton : stepsButton).current)?.focus({ preventScroll: true });
|
|
1602
|
+
hideInspector();
|
|
1603
|
+
};
|
|
1604
|
+
$[17] = panel;
|
|
1605
|
+
$[18] = selected;
|
|
1606
|
+
$[19] = t7;
|
|
1607
|
+
} else t7 = $[19];
|
|
1608
|
+
const closeInspector = t7;
|
|
1609
|
+
let t8;
|
|
1610
|
+
if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1611
|
+
t8 = (id) => {
|
|
1612
|
+
setInspector({
|
|
1613
|
+
view: "step",
|
|
1614
|
+
id,
|
|
1615
|
+
open: true
|
|
1616
|
+
});
|
|
1617
|
+
};
|
|
1618
|
+
$[20] = t8;
|
|
1619
|
+
} else t8 = $[20];
|
|
1620
|
+
const selectStep = t8;
|
|
558
1621
|
const outlineId = React.useId();
|
|
559
|
-
const
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
1622
|
+
const t9 = Boolean(hasResult);
|
|
1623
|
+
let t10;
|
|
1624
|
+
let t11;
|
|
1625
|
+
if ($[21] !== panel) {
|
|
1626
|
+
t10 = () => {
|
|
1627
|
+
setInspector({
|
|
1628
|
+
view: "result",
|
|
1629
|
+
open: panel !== "result"
|
|
1630
|
+
});
|
|
1631
|
+
};
|
|
1632
|
+
t11 = () => {
|
|
1633
|
+
setInspector({
|
|
1634
|
+
view: "steps",
|
|
1635
|
+
open: panel !== "steps"
|
|
1636
|
+
});
|
|
1637
|
+
};
|
|
1638
|
+
$[21] = panel;
|
|
1639
|
+
$[22] = t10;
|
|
1640
|
+
$[23] = t11;
|
|
1641
|
+
} else {
|
|
1642
|
+
t10 = $[22];
|
|
1643
|
+
t11 = $[23];
|
|
1644
|
+
}
|
|
1645
|
+
let t12;
|
|
1646
|
+
if ($[24] !== graph || $[25] !== outlineId || $[26] !== panel || $[27] !== showResults || $[28] !== t10 || $[29] !== t11 || $[30] !== t9 || $[31] !== trace) {
|
|
1647
|
+
t12 = /* @__PURE__ */ jsx(BoardToolbar, {
|
|
569
1648
|
graph,
|
|
570
1649
|
trace,
|
|
571
|
-
hasResult:
|
|
1650
|
+
hasResult: t9,
|
|
1651
|
+
showSummary: showResults,
|
|
572
1652
|
panel,
|
|
573
1653
|
outlineId,
|
|
574
1654
|
resultsButton,
|
|
575
1655
|
stepsButton,
|
|
576
|
-
onToggleResults:
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
1656
|
+
onToggleResults: t10,
|
|
1657
|
+
onToggleSteps: t11
|
|
1658
|
+
});
|
|
1659
|
+
$[24] = graph;
|
|
1660
|
+
$[25] = outlineId;
|
|
1661
|
+
$[26] = panel;
|
|
1662
|
+
$[27] = showResults;
|
|
1663
|
+
$[28] = t10;
|
|
1664
|
+
$[29] = t11;
|
|
1665
|
+
$[30] = t9;
|
|
1666
|
+
$[31] = trace;
|
|
1667
|
+
$[32] = t12;
|
|
1668
|
+
} else t12 = $[32];
|
|
1669
|
+
const toolbar = t12;
|
|
1670
|
+
let t13;
|
|
1671
|
+
if ($[33] !== className) {
|
|
1672
|
+
t13 = cx("execution-board", className);
|
|
1673
|
+
$[33] = className;
|
|
1674
|
+
$[34] = t13;
|
|
1675
|
+
} else t13 = $[34];
|
|
1676
|
+
const t14 = !showResults || void 0;
|
|
1677
|
+
const t15 = inspectorOpen || void 0;
|
|
1678
|
+
const t16 = props["aria-label"] ?? "Steps";
|
|
1679
|
+
const t17 = props.tabIndex ?? -1;
|
|
1680
|
+
let t18;
|
|
1681
|
+
if ($[35] !== closeInspector || $[36] !== inspectorOpen || $[37] !== props) {
|
|
1682
|
+
t18 = (event) => {
|
|
1683
|
+
props.onKeyDown?.(event);
|
|
1684
|
+
if (!event.defaultPrevented && event.key === "Escape" && inspectorOpen) {
|
|
1685
|
+
event.preventDefault();
|
|
1686
|
+
closeInspector();
|
|
583
1687
|
}
|
|
584
|
-
}
|
|
1688
|
+
};
|
|
1689
|
+
$[35] = closeInspector;
|
|
1690
|
+
$[36] = inspectorOpen;
|
|
1691
|
+
$[37] = props;
|
|
1692
|
+
$[38] = t18;
|
|
1693
|
+
} else t18 = $[38];
|
|
1694
|
+
const t19 = showResults ? toolbar : null;
|
|
1695
|
+
const t20 = !showResults ? toolbar : null;
|
|
1696
|
+
let t21;
|
|
1697
|
+
if ($[39] !== graph || $[40] !== showResults || $[41] !== trace) {
|
|
1698
|
+
t21 = /* @__PURE__ */ jsx(BoardNotices, {
|
|
1699
|
+
graph,
|
|
1700
|
+
trace,
|
|
1701
|
+
showResults
|
|
1702
|
+
});
|
|
1703
|
+
$[39] = graph;
|
|
1704
|
+
$[40] = showResults;
|
|
1705
|
+
$[41] = trace;
|
|
1706
|
+
$[42] = t21;
|
|
1707
|
+
} else t21 = $[42];
|
|
1708
|
+
let t22;
|
|
1709
|
+
if ($[43] !== graph || $[44] !== hasNodes || $[45] !== inspectorOpen || $[46] !== selectedId || $[47] !== trace) {
|
|
1710
|
+
t22 = hasNodes ? /* @__PURE__ */ jsx(FlowCanvas, {
|
|
1711
|
+
graph,
|
|
1712
|
+
trace,
|
|
1713
|
+
selectedId,
|
|
1714
|
+
inspectorOpen,
|
|
1715
|
+
onSelect: selectStep,
|
|
1716
|
+
onDeselect: hideInspector,
|
|
1717
|
+
onClear: clearCanvas
|
|
1718
|
+
}) : /* @__PURE__ */ jsx("p", {
|
|
1719
|
+
className: "execution-board__empty",
|
|
1720
|
+
children: "No steps are available to display for this job."
|
|
1721
|
+
});
|
|
1722
|
+
$[43] = graph;
|
|
1723
|
+
$[44] = hasNodes;
|
|
1724
|
+
$[45] = inspectorOpen;
|
|
1725
|
+
$[46] = selectedId;
|
|
1726
|
+
$[47] = trace;
|
|
1727
|
+
$[48] = t22;
|
|
1728
|
+
} else t22 = $[48];
|
|
1729
|
+
let t23;
|
|
1730
|
+
if ($[49] !== t20 || $[50] !== t21 || $[51] !== t22) {
|
|
1731
|
+
t23 = /* @__PURE__ */ jsxs("div", {
|
|
1732
|
+
className: "execution-board__canvas",
|
|
1733
|
+
children: [
|
|
1734
|
+
t20,
|
|
1735
|
+
t21,
|
|
1736
|
+
t22
|
|
1737
|
+
]
|
|
1738
|
+
});
|
|
1739
|
+
$[49] = t20;
|
|
1740
|
+
$[50] = t21;
|
|
1741
|
+
$[51] = t22;
|
|
1742
|
+
$[52] = t23;
|
|
1743
|
+
} else t23 = $[52];
|
|
1744
|
+
let t24;
|
|
1745
|
+
if ($[53] !== closeInspector || $[54] !== graph || $[55] !== inspector || $[56] !== inspectorOpen || $[57] !== outlineId || $[58] !== selected || $[59] !== selectedId || $[60] !== showOutline || $[61] !== trace) {
|
|
1746
|
+
t24 = inspector ? /* @__PURE__ */ jsx(BoardInspector, {
|
|
1747
|
+
open: inspectorOpen,
|
|
1748
|
+
graph,
|
|
1749
|
+
trace,
|
|
1750
|
+
selected,
|
|
1751
|
+
selectedId,
|
|
1752
|
+
showOutline,
|
|
1753
|
+
outlineId,
|
|
1754
|
+
inspectorHeading,
|
|
1755
|
+
onClose: closeInspector,
|
|
1756
|
+
onSelect: selectStep
|
|
1757
|
+
}) : null;
|
|
1758
|
+
$[53] = closeInspector;
|
|
1759
|
+
$[54] = graph;
|
|
1760
|
+
$[55] = inspector;
|
|
1761
|
+
$[56] = inspectorOpen;
|
|
1762
|
+
$[57] = outlineId;
|
|
1763
|
+
$[58] = selected;
|
|
1764
|
+
$[59] = selectedId;
|
|
1765
|
+
$[60] = showOutline;
|
|
1766
|
+
$[61] = trace;
|
|
1767
|
+
$[62] = t24;
|
|
1768
|
+
} else t24 = $[62];
|
|
1769
|
+
let t25;
|
|
1770
|
+
if ($[63] !== t23 || $[64] !== t24) {
|
|
1771
|
+
t25 = /* @__PURE__ */ jsxs("div", {
|
|
585
1772
|
className: "execution-board__stage",
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
1773
|
+
children: [t23, t24]
|
|
1774
|
+
});
|
|
1775
|
+
$[63] = t23;
|
|
1776
|
+
$[64] = t24;
|
|
1777
|
+
$[65] = t25;
|
|
1778
|
+
} else t25 = $[65];
|
|
1779
|
+
let t26;
|
|
1780
|
+
if ($[66] !== props || $[67] !== t13 || $[68] !== t14 || $[69] !== t15 || $[70] !== t16 || $[71] !== t17 || $[72] !== t18 || $[73] !== t19 || $[74] !== t25) {
|
|
1781
|
+
t26 = /* @__PURE__ */ jsx(ReactFlowProvider, { children: /* @__PURE__ */ jsxs("section", {
|
|
1782
|
+
...props,
|
|
1783
|
+
ref: boardRef,
|
|
1784
|
+
className: t13,
|
|
1785
|
+
"data-embedded": t14,
|
|
1786
|
+
"data-inspector": t15,
|
|
1787
|
+
"aria-label": t16,
|
|
1788
|
+
tabIndex: t17,
|
|
1789
|
+
onKeyDown: t18,
|
|
1790
|
+
children: [t19, t25]
|
|
1791
|
+
}) });
|
|
1792
|
+
$[66] = props;
|
|
1793
|
+
$[67] = t13;
|
|
1794
|
+
$[68] = t14;
|
|
1795
|
+
$[69] = t15;
|
|
1796
|
+
$[70] = t16;
|
|
1797
|
+
$[71] = t17;
|
|
1798
|
+
$[72] = t18;
|
|
1799
|
+
$[73] = t19;
|
|
1800
|
+
$[74] = t25;
|
|
1801
|
+
$[75] = t26;
|
|
1802
|
+
} else t26 = $[75];
|
|
1803
|
+
return t26;
|
|
1804
|
+
}
|
|
1805
|
+
function _temp5(current) {
|
|
1806
|
+
return current?.open ? {
|
|
1807
|
+
...current,
|
|
1808
|
+
open: false
|
|
1809
|
+
} : current;
|
|
1810
|
+
}
|
|
1811
|
+
function _temp3(node) {
|
|
1812
|
+
return [
|
|
1813
|
+
node.id,
|
|
1814
|
+
node.label,
|
|
1815
|
+
node.kind,
|
|
1816
|
+
node.position.x,
|
|
1817
|
+
node.position.y
|
|
1818
|
+
];
|
|
620
1819
|
}
|
|
621
1820
|
//#endregion
|
|
622
1821
|
export { ExecutionBoard };
|