@flowdrop/flowdrop 2.11.0 → 2.13.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/CHANGELOG.md +233 -0
- package/dist/adapters/agentspec/autoLayout.d.ts +18 -36
- package/dist/adapters/agentspec/autoLayout.js +75 -93
- package/dist/chat/activity.d.ts +49 -0
- package/dist/chat/activity.js +65 -0
- package/dist/chat/commandClassifier.js +2 -1
- package/dist/commands/executor.js +186 -27
- package/dist/commands/index.d.ts +2 -1
- package/dist/commands/index.js +2 -0
- package/dist/commands/parser.js +43 -3
- package/dist/commands/session.d.ts +60 -0
- package/dist/commands/session.js +332 -0
- package/dist/commands/storeIntegration.svelte.js +18 -1
- package/dist/commands/types.d.ts +77 -4
- package/dist/components/App.svelte +976 -226
- package/dist/components/App.svelte.d.ts +34 -2
- package/dist/components/BindablePortListbox.svelte +68 -369
- package/dist/components/Button.svelte +17 -14
- package/dist/components/Button.svelte.d.ts +2 -2
- package/dist/components/CanvasContextMenu.svelte +31 -10
- package/dist/components/CanvasController.svelte +146 -3
- package/dist/components/CanvasController.svelte.d.ts +25 -33
- package/dist/components/CanvasIconButton.svelte +6 -6
- package/dist/components/CanvasToolbar.svelte +103 -0
- package/dist/components/CanvasToolbar.svelte.d.ts +23 -0
- package/dist/components/CanvasZoomControls.svelte +122 -0
- package/dist/components/CanvasZoomControls.svelte.d.ts +15 -0
- package/dist/components/ConfigForm.svelte +159 -121
- package/dist/components/ConfigModal.svelte +11 -54
- package/dist/components/ConfigPanel.svelte +98 -228
- package/dist/components/ConfigPanel.svelte.d.ts +2 -2
- package/dist/components/ConnectPortPicker.svelte +153 -0
- package/dist/components/ConnectPortPicker.svelte.d.ts +22 -0
- package/dist/components/DoctorMenu.svelte +422 -0
- package/dist/components/DoctorMenu.svelte.d.ts +7 -0
- package/dist/components/ExternalLinkRow.svelte +82 -0
- package/dist/components/ExternalLinkRow.svelte.d.ts +14 -0
- package/dist/components/FlowDropEdge.svelte +52 -2
- package/dist/components/FlowDropEdge.svelte.d.ts +5 -1
- package/dist/components/InterfaceNameInput.svelte +103 -0
- package/dist/components/InterfaceNameInput.svelte.d.ts +13 -0
- package/dist/components/InterfaceTag.svelte +215 -0
- package/dist/components/InterfaceTag.svelte.d.ts +20 -0
- package/dist/components/InterfaceTagAnchor.svelte +103 -0
- package/dist/components/InterfaceTagAnchor.svelte.d.ts +12 -0
- package/dist/components/InterfaceTagLayer.svelte +314 -0
- package/dist/components/InterfaceTagLayer.svelte.d.ts +28 -0
- package/dist/components/LogsSidebar.svelte +43 -43
- package/dist/components/LoopbackLanes.svelte +54 -0
- package/dist/components/LoopbackLanes.svelte.d.ts +8 -0
- package/dist/components/Navbar.svelte +539 -169
- package/dist/components/Navbar.svelte.d.ts +20 -1
- package/dist/components/NodeInspector.svelte +153 -0
- package/dist/components/NodeInspector.svelte.d.ts +19 -0
- package/dist/components/NodeLastRun.svelte +212 -0
- package/dist/components/NodeLastRun.svelte.d.ts +13 -0
- package/dist/components/NodeSidebar.svelte +279 -23
- package/dist/components/NodeSidebar.svelte.d.ts +11 -0
- package/dist/components/NodeStatusOverlay.svelte +144 -353
- package/dist/components/NodeStatusOverlay.svelte.d.ts +4 -1
- package/dist/components/PortMappingRow.svelte +28 -44
- package/dist/components/PortPickerListbox.svelte +475 -0
- package/dist/components/PortPickerListbox.svelte.d.ts +73 -0
- package/dist/components/ReadOnlyDetails.svelte +52 -89
- package/dist/components/RunBar.svelte +222 -0
- package/dist/components/RunBar.svelte.d.ts +20 -0
- package/dist/components/RunsMenu.svelte +649 -0
- package/dist/components/RunsMenu.svelte.d.ts +14 -0
- package/dist/components/SettingsModal.svelte +27 -59
- package/dist/components/SettingsPanel.svelte +515 -241
- package/dist/components/StraightGuides.svelte +46 -0
- package/dist/components/StraightGuides.svelte.d.ts +7 -0
- package/dist/components/ThemeToggle.svelte +14 -4
- package/dist/components/UniversalNode.svelte +152 -51
- package/dist/components/WebMCPBridgeMenu.svelte +336 -0
- package/dist/components/WebMCPBridgeMenu.svelte.d.ts +3 -0
- package/dist/components/WorkflowEditor.svelte +789 -136
- package/dist/components/WorkflowEditor.svelte.d.ts +43 -1
- package/dist/components/WorkflowInterfaceEditor.svelte +63 -92
- package/dist/components/WorkflowInterfaceEntryCard.svelte +478 -549
- package/dist/components/WorkflowInterfaceEntryComposer.svelte +23 -67
- package/dist/components/WorkflowPlaygroundSettings.svelte +48 -85
- package/dist/components/WorkflowSettingsPanel.svelte +311 -0
- package/dist/components/WorkflowSettingsPanel.svelte.d.ts +20 -0
- package/dist/components/ZoomTier.svelte +56 -0
- package/dist/components/ZoomTier.svelte.d.ts +4 -0
- package/dist/components/chat/AIChatPanel.svelte +463 -312
- package/dist/components/chat/ActivityList.svelte +130 -0
- package/dist/components/chat/ActivityList.svelte.d.ts +11 -0
- package/dist/components/chat/ActivityRow.svelte +179 -0
- package/dist/components/chat/ActivityRow.svelte.d.ts +16 -0
- package/dist/components/chat/CommandPreview.svelte +42 -64
- package/dist/components/console/CommandConsole.svelte +106 -41
- package/dist/components/console/CommandConsole.svelte.d.ts +2 -0
- package/dist/components/console/ConsoleAutocomplete.svelte +14 -13
- package/dist/components/console/ConsoleInput.svelte +60 -27
- package/dist/components/console/ConsoleOutput.svelte +86 -24
- package/dist/components/console/ConsoleStrip.svelte +80 -0
- package/dist/components/console/ConsoleStrip.svelte.d.ts +13 -0
- package/dist/components/form/FieldFactory.svelte +30 -4
- package/dist/components/form/FormArray.svelte +306 -339
- package/dist/components/form/FormArray.svelte.d.ts +10 -0
- package/dist/components/form/FormArrayRows.svelte +443 -0
- package/dist/components/form/FormArrayRows.svelte.d.ts +18 -0
- package/dist/components/form/FormAutocomplete.svelte +2 -2
- package/dist/components/form/FormCheckboxGroup.svelte +10 -85
- package/dist/components/form/FormCodeEditor.svelte +3 -3
- package/dist/components/form/FormFieldWrapper.svelte +98 -18
- package/dist/components/form/FormFieldWrapper.svelte.d.ts +10 -0
- package/dist/components/form/FormFieldset.svelte +44 -28
- package/dist/components/form/FormMarkdownEditor.svelte +6 -6
- package/dist/components/form/FormPorts.svelte +437 -141
- package/dist/components/form/FormSelect.svelte +1 -1
- package/dist/components/form/FormTemplateEditor.svelte +22 -26
- package/dist/components/form/FormToggle.svelte +15 -106
- package/dist/components/form/FormToggle.svelte.d.ts +3 -2
- package/dist/components/form/FormUISchemaRenderer.svelte +38 -3
- package/dist/components/form/humanizeKey.d.ts +7 -0
- package/dist/components/form/humanizeKey.js +21 -0
- package/dist/components/form/types.d.ts +6 -0
- package/dist/components/icons/MenuOpenIcon.svelte +8 -1
- package/dist/components/interrupt/ChoicePrompt.svelte +51 -152
- package/dist/components/interrupt/ChoicePrompt.svelte.d.ts +0 -2
- package/dist/components/interrupt/ConfirmationPrompt.svelte +18 -201
- package/dist/components/interrupt/ConfirmationPrompt.svelte.d.ts +0 -4
- package/dist/components/interrupt/FormPrompt.svelte +22 -147
- package/dist/components/interrupt/FormPrompt.svelte.d.ts +0 -4
- package/dist/components/interrupt/InterruptBubble.svelte +198 -355
- package/dist/components/interrupt/InterruptBubble.svelte.d.ts +0 -2
- package/dist/components/interrupt/ReviewPrompt.svelte +0 -10
- package/dist/components/interrupt/TextInputPrompt.svelte +23 -120
- package/dist/components/interrupt/TextInputPrompt.svelte.d.ts +0 -2
- package/dist/components/layouts/MainLayout.svelte +110 -75
- package/dist/components/layouts/MainLayout.svelte.d.ts +17 -0
- package/dist/components/nodes/CaptionNode.svelte +7 -0
- package/dist/components/nodes/GatewayNode.svelte +66 -431
- package/dist/components/nodes/IdeaNode.svelte +6 -5
- package/dist/components/nodes/NodeCard.svelte +1051 -0
- package/dist/components/nodes/NodeCard.svelte.d.ts +30 -0
- package/dist/components/nodes/NodeConfigButton.svelte +28 -9
- package/dist/components/nodes/NodeProblemMark.svelte +113 -0
- package/dist/components/nodes/NodeProblemMark.svelte.d.ts +8 -0
- package/dist/components/nodes/NodeTip.svelte +104 -0
- package/dist/components/nodes/NodeTip.svelte.d.ts +15 -0
- package/dist/components/nodes/NotesNode.svelte +183 -150
- package/dist/components/nodes/SimpleNode.svelte +176 -44
- package/dist/components/nodes/SquareNode.svelte +127 -34
- package/dist/components/nodes/TerminalNode.svelte +232 -88
- package/dist/components/nodes/ToolNode.svelte +49 -381
- package/dist/components/nodes/WorkflowNode.svelte +40 -399
- package/dist/components/playground/ChatBubble.svelte +248 -62
- package/dist/components/playground/ChatInput.svelte +134 -297
- package/dist/components/playground/ChatInput.svelte.d.ts +17 -0
- package/dist/components/playground/ControlPanel.svelte +290 -190
- package/dist/components/playground/ControlPanel.svelte.d.ts +10 -2
- package/dist/components/playground/DockedPlayground.svelte +82 -0
- package/dist/components/playground/DockedPlayground.svelte.d.ts +30 -0
- package/dist/components/playground/ExecutionConsole.svelte +54 -36
- package/dist/components/playground/ExecutionConsole.svelte.d.ts +12 -0
- package/dist/components/playground/ExecutionLogs.svelte +4 -0
- package/dist/components/playground/HeaderMenu.svelte +170 -0
- package/dist/components/playground/HeaderMenu.svelte.d.ts +22 -0
- package/dist/components/playground/InputCollector.svelte +8 -32
- package/dist/components/playground/InputFields.svelte +246 -0
- package/dist/components/playground/InputFields.svelte.d.ts +16 -0
- package/dist/components/playground/InterfaceInputForm.svelte +285 -30
- package/dist/components/playground/InterfaceInputForm.svelte.d.ts +20 -0
- package/dist/components/playground/InterfaceJsonInput.svelte +92 -0
- package/dist/components/playground/InterfaceJsonInput.svelte.d.ts +10 -0
- package/dist/components/playground/LogRow.svelte +12 -12
- package/dist/components/playground/MessageMarkdown.svelte +11 -11
- package/dist/components/playground/MessageStream.svelte +154 -182
- package/dist/components/playground/Playground.svelte +17 -1139
- package/dist/components/playground/PlaygroundApp.svelte +12 -2
- package/dist/components/playground/PlaygroundApp.svelte.d.ts +2 -1
- package/dist/components/playground/PlaygroundHeader.svelte +309 -0
- package/dist/components/playground/PlaygroundHeader.svelte.d.ts +22 -0
- package/dist/components/playground/PlaygroundModal.svelte +6 -0
- package/dist/components/playground/PlaygroundStudio.svelte +30 -32
- package/dist/components/playground/PlaygroundSurface.svelte +648 -0
- package/dist/components/playground/PlaygroundSurface.svelte.d.ts +79 -0
- package/dist/components/playground/StepsSummary.svelte +312 -0
- package/dist/components/playground/StepsSummary.svelte.d.ts +11 -0
- package/dist/components/playground/messageDisplay.d.ts +9 -0
- package/dist/components/playground/messageDisplay.js +24 -2
- package/dist/components/playground/stepSummary.d.ts +71 -0
- package/dist/components/playground/stepSummary.js +152 -0
- package/dist/components/ports/PortTypeBadge.svelte +13 -1
- package/dist/components/primitives/Button.svelte +226 -0
- package/dist/components/primitives/Button.svelte.d.ts +31 -0
- package/dist/components/primitives/Card.svelte +110 -0
- package/dist/components/primitives/Card.svelte.d.ts +20 -0
- package/dist/components/primitives/Checkbox.svelte +126 -0
- package/dist/components/primitives/Checkbox.svelte.d.ts +15 -0
- package/dist/components/primitives/Chip.svelte +143 -0
- package/dist/components/primitives/Chip.svelte.d.ts +22 -0
- package/dist/components/primitives/Combobox.svelte +444 -0
- package/dist/components/primitives/Combobox.svelte.d.ts +22 -0
- package/dist/components/primitives/Composer.svelte +293 -0
- package/dist/components/primitives/Composer.svelte.d.ts +47 -0
- package/dist/components/primitives/EmptyState.svelte +113 -0
- package/dist/components/primitives/EmptyState.svelte.d.ts +18 -0
- package/dist/components/primitives/Field.svelte +178 -0
- package/dist/components/primitives/Field.svelte.d.ts +30 -0
- package/dist/components/primitives/IconButton.svelte +156 -0
- package/dist/components/primitives/IconButton.svelte.d.ts +27 -0
- package/dist/components/primitives/Menu.svelte +435 -0
- package/dist/components/primitives/Menu.svelte.d.ts +61 -0
- package/dist/components/primitives/Notice.svelte +161 -0
- package/dist/components/primitives/Notice.svelte.d.ts +22 -0
- package/dist/components/primitives/PanelHeader.svelte +134 -0
- package/dist/components/primitives/PanelHeader.svelte.d.ts +23 -0
- package/dist/components/primitives/Segmented.svelte +198 -0
- package/dist/components/primitives/Segmented.svelte.d.ts +32 -0
- package/dist/components/primitives/Select.svelte +130 -0
- package/dist/components/primitives/Select.svelte.d.ts +26 -0
- package/dist/components/primitives/StatusPill.svelte +218 -0
- package/dist/components/primitives/StatusPill.svelte.d.ts +24 -0
- package/dist/components/primitives/Switch.svelte +113 -0
- package/dist/components/primitives/Switch.svelte.d.ts +14 -0
- package/dist/components/primitives/Tabs.svelte +209 -0
- package/dist/components/primitives/Tabs.svelte.d.ts +32 -0
- package/dist/components/primitives/Toolbar.svelte +94 -0
- package/dist/components/primitives/Toolbar.svelte.d.ts +14 -0
- package/dist/components/primitives/ToolbarSeparator.svelte +40 -0
- package/dist/components/primitives/ToolbarSeparator.svelte.d.ts +7 -0
- package/dist/components/surfaces/SurfaceOverlay.svelte +10 -40
- package/dist/components/surfaces/TabbedSurface.svelte +49 -39
- package/dist/components/surfaces/TabbedSurface.svelte.d.ts +8 -0
- package/dist/components/toast/DismissibleToast.svelte +94 -32
- package/dist/components/toast/DismissibleToast.svelte.d.ts +17 -7
- package/dist/config/endpoints.d.ts +43 -1
- package/dist/config/endpoints.js +21 -3
- package/dist/core/index.d.ts +8 -5
- package/dist/core/index.js +1 -1
- package/dist/editor/connectCandidates.d.ts +56 -0
- package/dist/editor/connectCandidates.js +131 -0
- package/dist/editor/contextMenu.d.ts +31 -2
- package/dist/editor/contextMenu.js +96 -9
- package/dist/editor/index.d.ts +4 -1
- package/dist/editor/index.js +1 -0
- package/dist/editor/interfaceMenu.d.ts +35 -0
- package/dist/editor/interfaceMenu.js +47 -0
- package/dist/editor/portMenu.d.ts +23 -0
- package/dist/editor/portMenu.js +34 -0
- package/dist/editor/tidy.d.ts +30 -0
- package/dist/editor/tidy.js +66 -0
- package/dist/helpers/workflowEditorHelper.d.ts +3 -0
- package/dist/helpers/workflowEditorHelper.js +8 -3
- package/dist/layout/fromWorkflow.d.ts +42 -0
- package/dist/layout/fromWorkflow.js +135 -0
- package/dist/layout/geometry.d.ts +102 -0
- package/dist/layout/geometry.js +317 -0
- package/dist/layout/index.d.ts +21 -0
- package/dist/layout/index.js +14 -0
- package/dist/layout/inspect.d.ts +18 -0
- package/dist/layout/inspect.js +81 -0
- package/dist/layout/lanePath.d.ts +23 -0
- package/dist/layout/lanePath.js +47 -0
- package/dist/layout/measure.d.ts +141 -0
- package/dist/layout/measure.js +477 -0
- package/dist/layout/primitives.d.ts +124 -0
- package/dist/layout/primitives.js +461 -0
- package/dist/layout/sweep.d.ts +59 -0
- package/dist/layout/sweep.js +257 -0
- package/dist/layout/toWorkflow.d.ts +43 -0
- package/dist/layout/toWorkflow.js +131 -0
- package/dist/layout/types.d.ts +93 -0
- package/dist/layout/types.js +35 -0
- package/dist/messages/defaults.d.ts +641 -26
- package/dist/messages/defaults.js +578 -25
- package/dist/messages/types.d.ts +21 -1
- package/dist/openapi/v1/openapi.yaml +109 -0
- package/dist/playground/index.d.ts +28 -1
- package/dist/playground/index.js +29 -0
- package/dist/playground/mount.d.ts +28 -2
- package/dist/playground/mount.js +41 -15
- package/dist/playground/runAction.d.ts +29 -0
- package/dist/playground/runAction.js +38 -0
- package/dist/services/doctorService.d.ts +52 -0
- package/dist/services/doctorService.js +113 -0
- package/dist/services/globalSave.js +12 -29
- package/dist/services/nodeExecutionService.d.ts +12 -1
- package/dist/services/nodeExecutionService.js +58 -58
- package/dist/services/playgroundService.d.ts +17 -2
- package/dist/services/playgroundService.js +48 -5
- package/dist/services/runsService.d.ts +42 -0
- package/dist/services/runsService.js +87 -0
- package/dist/services/toastQueue.d.ts +33 -0
- package/dist/services/toastQueue.js +38 -0
- package/dist/services/toastService.d.ts +30 -9
- package/dist/services/toastService.js +81 -46
- package/dist/settings/index.d.ts +1 -0
- package/dist/skins/graphite.d.ts +26 -0
- package/dist/skins/graphite.js +473 -0
- package/dist/skins/index.d.ts +2 -1
- package/dist/skins/index.js +4 -2
- package/dist/skins/slate.js +4 -4
- package/dist/stores/attachedRunStore.svelte.d.ts +35 -0
- package/dist/stores/attachedRunStore.svelte.js +47 -0
- package/dist/stores/connectDragStore.svelte.d.ts +39 -0
- package/dist/stores/connectDragStore.svelte.js +42 -0
- package/dist/stores/doctorStore.svelte.d.ts +79 -0
- package/dist/stores/doctorStore.svelte.js +244 -0
- package/dist/stores/editedNodesStore.svelte.d.ts +42 -0
- package/dist/stores/editedNodesStore.svelte.js +84 -0
- package/dist/stores/editorModeStore.svelte.d.ts +34 -0
- package/dist/stores/editorModeStore.svelte.js +55 -0
- package/dist/stores/instanceContainer.svelte.d.ts +53 -0
- package/dist/stores/instanceContainer.svelte.js +38 -1
- package/dist/stores/loopbackLanesStore.svelte.d.ts +18 -0
- package/dist/stores/loopbackLanesStore.svelte.js +25 -0
- package/dist/stores/nodeHighlightStore.svelte.d.ts +34 -0
- package/dist/stores/nodeHighlightStore.svelte.js +56 -0
- package/dist/stores/playgroundStore.svelte.d.ts +66 -2
- package/dist/stores/playgroundStore.svelte.js +164 -2
- package/dist/stores/runController.svelte.d.ts +382 -0
- package/dist/stores/runController.svelte.js +1217 -0
- package/dist/stores/settingsStore.svelte.d.ts +80 -18
- package/dist/stores/settingsStore.svelte.js +180 -62
- package/dist/stores/workflowStore.svelte.d.ts +14 -0
- package/dist/stores/workflowStore.svelte.js +22 -1
- package/dist/styles/base.css +286 -25
- package/dist/styles/fonts/Inter-LICENSE.txt +93 -0
- package/dist/styles/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/dist/styles/fonts/inter.css +19 -0
- package/dist/styles/toast.css +100 -20
- package/dist/styles/tokenAliases.js +118 -1
- package/dist/styles/tokens.css +586 -14
- package/dist/svelte-app.d.ts +47 -5
- package/dist/svelte-app.js +15 -3
- package/dist/themes/graphite.d.ts +2 -0
- package/dist/themes/graphite.js +15 -0
- package/dist/themes/index.d.ts +2 -1
- package/dist/themes/index.js +22 -3
- package/dist/themes/minimal.js +10 -0
- package/dist/themes/scopedSkinCss.d.ts +22 -5
- package/dist/themes/scopedSkinCss.js +136 -11
- package/dist/types/chat.d.ts +6 -0
- package/dist/types/doctor.d.ts +82 -0
- package/dist/types/doctor.js +11 -0
- package/dist/types/events.d.ts +35 -0
- package/dist/types/events.js +4 -1
- package/dist/types/index.d.ts +17 -2
- package/dist/types/navbar.d.ts +36 -0
- package/dist/types/playground.d.ts +75 -0
- package/dist/types/settings.d.ts +120 -7
- package/dist/types/settings.js +35 -3
- package/dist/types/skin.d.ts +21 -8
- package/dist/types/theme.d.ts +40 -2
- package/dist/utils/appearance.d.ts +19 -0
- package/dist/utils/appearance.js +13 -0
- package/dist/utils/canvasFit.d.ts +41 -0
- package/dist/utils/canvasFit.js +44 -0
- package/dist/utils/chipTitles.d.ts +9 -0
- package/dist/utils/chipTitles.js +19 -0
- package/dist/utils/connections.js +8 -0
- package/dist/utils/consoleHighlight.d.ts +28 -0
- package/dist/utils/consoleHighlight.js +269 -0
- package/dist/utils/deprecation.d.ts +17 -0
- package/dist/utils/deprecation.js +29 -0
- package/dist/utils/doctorOperations.d.ts +40 -0
- package/dist/utils/doctorOperations.js +237 -0
- package/dist/utils/duration.d.ts +13 -0
- package/dist/utils/duration.js +40 -0
- package/dist/utils/inspectorContext.d.ts +19 -0
- package/dist/utils/inspectorContext.js +12 -0
- package/dist/utils/inspectorSections.d.ts +20 -0
- package/dist/utils/inspectorSections.js +44 -0
- package/dist/utils/inspectorSurface.d.ts +46 -0
- package/dist/utils/inspectorSurface.js +51 -0
- package/dist/utils/interfaceTags.d.ts +102 -0
- package/dist/utils/interfaceTags.js +211 -0
- package/dist/utils/itemRef.d.ts +86 -0
- package/dist/utils/itemRef.js +106 -0
- package/dist/utils/lastRun.d.ts +35 -0
- package/dist/utils/lastRun.js +73 -0
- package/dist/utils/messageNodeLink.d.ts +17 -0
- package/dist/utils/messageNodeLink.js +16 -0
- package/dist/utils/minimapVisibility.d.ts +28 -0
- package/dist/utils/minimapVisibility.js +34 -0
- package/dist/utils/nodeAriaLabel.d.ts +12 -0
- package/dist/utils/nodeAriaLabel.js +17 -0
- package/dist/utils/nodeFingerprint.d.ts +27 -0
- package/dist/utils/nodeFingerprint.js +66 -0
- package/dist/utils/nodeFormSchema.d.ts +10 -0
- package/dist/utils/nodeFormSchema.js +2 -2
- package/dist/utils/nodeGeometry.d.ts +168 -0
- package/dist/utils/nodeGeometry.js +204 -0
- package/dist/utils/nodeProblem.d.ts +19 -0
- package/dist/utils/nodeProblem.js +9 -0
- package/dist/utils/nodeStatus.d.ts +38 -3
- package/dist/utils/nodeStatus.js +67 -39
- package/dist/utils/nodeSwap.js +9 -1
- package/dist/utils/nodeWrapper.d.ts +1 -0
- package/dist/utils/playgroundHistory.d.ts +48 -0
- package/dist/utils/playgroundHistory.js +38 -0
- package/dist/utils/playgroundInputRuns.d.ts +26 -0
- package/dist/utils/playgroundInputRuns.js +50 -0
- package/dist/utils/portExposure.d.ts +49 -0
- package/dist/utils/portExposure.js +122 -0
- package/dist/utils/portUtils.d.ts +16 -0
- package/dist/utils/portUtils.js +37 -0
- package/dist/utils/portal.d.ts +0 -19
- package/dist/utils/portal.js +8 -1
- package/dist/utils/reservedPorts.d.ts +59 -0
- package/dist/utils/reservedPorts.js +60 -0
- package/dist/utils/runEdges.d.ts +24 -0
- package/dist/utils/runEdges.js +35 -0
- package/dist/utils/runsList.d.ts +69 -0
- package/dist/utils/runsList.js +134 -0
- package/dist/utils/selectOptions.d.ts +62 -0
- package/dist/utils/selectOptions.js +137 -0
- package/dist/utils/sessionRuns.d.ts +62 -0
- package/dist/utils/sessionRuns.js +123 -0
- package/dist/utils/sheetWidths.d.ts +29 -0
- package/dist/utils/sheetWidths.js +41 -0
- package/dist/utils/sidebarWidths.d.ts +34 -0
- package/dist/utils/sidebarWidths.js +47 -0
- package/dist/utils/straightWires.d.ts +73 -0
- package/dist/utils/straightWires.js +99 -0
- package/dist/utils/themeScope.svelte.d.ts +10 -0
- package/dist/utils/themeScope.svelte.js +80 -0
- package/dist/utils/wiredHandles.d.ts +10 -0
- package/dist/utils/wiredHandles.js +14 -0
- package/dist/utils/workflowDraft.d.ts +9 -0
- package/dist/utils/workflowDraft.js +39 -0
- package/dist/utils/workflowInterface.d.ts +40 -7
- package/dist/utils/workflowInterface.js +66 -16
- package/dist/utils/zoomTier.d.ts +43 -0
- package/dist/utils/zoomTier.js +107 -0
- package/dist/utils/zoomTierRows.d.ts +41 -0
- package/dist/utils/zoomTierRows.js +103 -0
- package/dist/webmcp/WebMCPConfirm.svelte +1 -1
- package/dist/webmcp/bridge.d.ts +5 -0
- package/dist/webmcp/bridge.js +8 -0
- package/dist/webmcp/bridgeController.svelte.d.ts +84 -0
- package/dist/webmcp/bridgeController.svelte.js +224 -0
- package/dist/webmcp/descriptors.d.ts +1 -1
- package/dist/webmcp/descriptors.js +66 -5
- package/dist/webmcp/fakeWidget.d.ts +34 -0
- package/dist/webmcp/fakeWidget.js +75 -0
- package/dist/webmcp/gate.js +4 -0
- package/dist/webmcp/index.d.ts +2 -0
- package/dist/webmcp/index.js +1 -0
- package/dist/webmcp/runtime.js +4 -1
- package/dist/webmcp/types.d.ts +2 -0
- package/dist/webmcp/validate.js +5 -1
- package/package.json +8 -2
- package/dist/components/Select.svelte +0 -53
- package/dist/components/Select.svelte.d.ts +0 -15
- package/dist/components/icons/CommandLineIcon.svelte +0 -15
- package/dist/components/icons/CommandLineIcon.svelte.d.ts +0 -26
- package/dist/components/toast/WarningIcon.svelte +0 -28
- package/dist/components/toast/WarningIcon.svelte.d.ts +0 -26
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
Gateway Node Component
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Branching control flow on the card v2 geometry (see NodeCard): the same
|
|
4
|
+
header, the completion trigger as a header pin, input ports as rows on the
|
|
5
|
+
left, and the branches as output rows on the right (their triggers stay rows).
|
|
6
|
+
Shows active branches and execution paths.
|
|
6
7
|
|
|
7
8
|
Port rendering:
|
|
8
9
|
- Input-port exposure (data.config.ports, falling back to each port's
|
|
9
10
|
exposedByDefault) decides which input ports render, in effective order.
|
|
10
11
|
Branches are authored output paths and always render.
|
|
12
|
+
- Branches are not NodePorts: each becomes a trigger-lane output row whose
|
|
13
|
+
port id is the branch name. Rows are keyed by index, so two branches with
|
|
14
|
+
the same (or an empty) name draw two rows instead of crashing.
|
|
11
15
|
-->
|
|
12
16
|
|
|
13
17
|
<script lang="ts">
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import Icon from '@iconify/svelte';
|
|
17
|
-
import NodeConfigButton from './NodeConfigButton.svelte';
|
|
18
|
+
import type { WorkflowNode, Branch, NodePort, PortsConfig } from '../../types/index.js';
|
|
19
|
+
import NodeCard from './NodeCard.svelte';
|
|
18
20
|
import { getNodeIcon } from '../../utils/icons.js';
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
+
import { getCategoryColorToken } from '../../utils/colors.js';
|
|
22
|
+
import { getEditorSettings } from '../../stores/settingsStore.svelte.js';
|
|
23
|
+
import { computeNodeGeometry } from '../../utils/nodeGeometry.js';
|
|
21
24
|
import { getInstance } from '../../stores/getInstance.svelte.js';
|
|
22
25
|
import { orderPortsFor, isPortVisible } from '../../utils/portUtils.js';
|
|
23
|
-
import { buildHandleId } from '../../utils/handleIds.js';
|
|
24
|
-
import { interfaceBoundTooltip } from '../../utils/workflowInterface.js';
|
|
25
|
-
import { m } from '../../messages/index.js';
|
|
26
26
|
|
|
27
27
|
interface Props {
|
|
28
28
|
id: string;
|
|
@@ -35,42 +35,16 @@
|
|
|
35
35
|
let props: Props = $props();
|
|
36
36
|
|
|
37
37
|
const fd = getInstance();
|
|
38
|
-
const checker = fd.portCompatibility;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Handle ids bound to a `workflow.interface` entry — see workflowStore.
|
|
42
|
-
* Only input ports can be bound here: a gateway's outputs are branches
|
|
43
|
-
* (authored control-flow paths), not `NodePort`s, so they can never be an
|
|
44
|
-
* interface binding's target.
|
|
45
|
-
*/
|
|
46
|
-
const boundHandles = $derived(fd.workflow.interfaceBoundHandles);
|
|
47
|
-
|
|
48
|
-
// Hoist the graph branch — three reads in the template, two inside
|
|
49
|
-
// {#each port} / {#each branch} loops. One getter walk per render.
|
|
50
|
-
const graph = $derived(m().nodes.graph);
|
|
51
38
|
|
|
52
39
|
/**
|
|
53
40
|
* Instance-specific title override from config.
|
|
54
41
|
* Falls back to the original label if not set.
|
|
55
|
-
* This allows users to customize the node title per-instance via config.
|
|
56
|
-
*/
|
|
57
|
-
/**
|
|
58
|
-
* What the shape/lane chips need to draw a branch row.
|
|
59
|
-
*
|
|
60
|
-
* A branch is an authored control-flow path, not a `NodePort`: it has no port
|
|
61
|
-
* id, and it always carries the trigger lane. So this is one frozen literal
|
|
62
|
-
* for every branch on every gateway, rather than a fabricated port per row —
|
|
63
|
-
* and with no id, a branch named `error` cannot trip the reserved-error
|
|
64
|
-
* colour exception the way a real `error` output does.
|
|
65
42
|
*/
|
|
66
|
-
const BRANCH_LANE = { type: 'output', dataType: 'trigger' } as const;
|
|
67
|
-
|
|
68
43
|
const displayTitle = $derived((props.data.config?.instanceTitle as string) || props.data.label);
|
|
69
44
|
|
|
70
45
|
/**
|
|
71
46
|
* Instance-specific description override from config.
|
|
72
47
|
* Falls back to the metadata description if not set.
|
|
73
|
-
* This allows users to customize the node description per-instance via config.
|
|
74
48
|
*/
|
|
75
49
|
const displayDescription = $derived(
|
|
76
50
|
(props.data.config?.instanceDescription as string) || props.data.metadata.description
|
|
@@ -93,407 +67,68 @@
|
|
|
93
67
|
);
|
|
94
68
|
|
|
95
69
|
// Gateway-specific data - branches are calculated at runtime from config
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
(props.data.executionInfo?.output
|
|
70
|
+
const branches = $derived((props.data.config?.branches as Branch[]) || []);
|
|
71
|
+
const activeBranches = $derived(
|
|
72
|
+
((fd.playground.nodeStatusFor(props.id) ?? props.data.executionInfo)?.output
|
|
73
|
+
?.active_branches as string[]) || []
|
|
99
74
|
);
|
|
100
75
|
|
|
101
76
|
/**
|
|
102
|
-
*
|
|
77
|
+
* What a branch row draws: an authored control-flow path, not a `NodePort`. It
|
|
78
|
+
* has no port id of its own (the branch name is its id) and it always carries
|
|
79
|
+
* the trigger lane, so a branch named `error` cannot trip the reserved-error
|
|
80
|
+
* colour exception the way a real `error` output does. An unnamed branch is
|
|
81
|
+
* labelled by its position.
|
|
103
82
|
*/
|
|
104
|
-
const
|
|
83
|
+
const branchPorts = $derived<NodePort[]>(
|
|
84
|
+
branches.map((branch, index) => ({
|
|
85
|
+
id: branch.name,
|
|
86
|
+
name: branch.label || branch.name || String(index + 1),
|
|
87
|
+
type: 'output',
|
|
88
|
+
dataType: 'trigger'
|
|
89
|
+
}))
|
|
90
|
+
);
|
|
105
91
|
|
|
106
|
-
/**
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
92
|
+
/** The node's geometry. Only the input trigger is a pin: a branch named `trigger` stays a row. */
|
|
93
|
+
const geometry = $derived(
|
|
94
|
+
computeNodeGeometry({
|
|
95
|
+
inputs: visibleInputPorts,
|
|
96
|
+
outputs: branchPorts,
|
|
97
|
+
showDescriptions: getEditorSettings().showNodeDescriptions,
|
|
98
|
+
execPins: 'input'
|
|
99
|
+
})
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
const categoryColor = $derived(
|
|
103
|
+
getCategoryColorToken(fd.categories, props.data.metadata.category)
|
|
104
|
+
);
|
|
105
|
+
const kindLine = $derived(
|
|
106
|
+
props.data.metadata.category
|
|
107
|
+
? `${fd.categories.getLabel(props.data.metadata.category)} · ${props.id}`
|
|
108
|
+
: props.id
|
|
109
|
+
);
|
|
118
110
|
|
|
119
111
|
/**
|
|
120
|
-
*
|
|
112
|
+
* Handle configuration sidebar - now using global ConfigSidebar
|
|
121
113
|
*/
|
|
122
|
-
function
|
|
123
|
-
|
|
114
|
+
function openConfigSidebar(): void {
|
|
115
|
+
props.data.onConfigOpen?.({ id: props.id, type: 'gateway', data: props.data });
|
|
124
116
|
}
|
|
125
117
|
</script>
|
|
126
118
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
class="flowdrop-workflow-node__icon-wrapper"
|
|
144
|
-
style="--_icon-color: {getCategoryColorToken(fd.categories, props.data.metadata.category)}"
|
|
145
|
-
>
|
|
146
|
-
<Icon
|
|
147
|
-
icon={getNodeIcon(fd.categories, props.data.metadata.icon, props.data.metadata.category)}
|
|
148
|
-
class="flowdrop-workflow-node__icon"
|
|
149
|
-
/>
|
|
150
|
-
</div>
|
|
151
|
-
|
|
152
|
-
<!-- Node Title - uses instanceTitle override if set -->
|
|
153
|
-
<h3 class="flowdrop-text--sm flowdrop-font--medium flowdrop-flex--1">
|
|
154
|
-
{displayTitle}
|
|
155
|
-
</h3>
|
|
156
|
-
</div>
|
|
157
|
-
<!-- Node Description - line-height 20px so header grows in steps of 10 -->
|
|
158
|
-
<p class="flowdrop-workflow-node__header-desc" id="node-description-{props.id}">
|
|
159
|
-
{displayDescription}
|
|
160
|
-
</p>
|
|
161
|
-
</div>
|
|
162
|
-
|
|
163
|
-
<!-- Input Ports Container (exposed input ports) -->
|
|
164
|
-
{#if visibleInputPorts.length > 0}
|
|
165
|
-
<div class="flowdrop-workflow-node__ports">
|
|
166
|
-
<div class="flowdrop-workflow-node__ports-list">
|
|
167
|
-
{#each visibleInputPorts as port (port.id)}
|
|
168
|
-
{@const boundEntry = boundHandles.get(buildHandleId(props.id, 'input', port.id))}
|
|
169
|
-
<div class="flowdrop-workflow-node__port">
|
|
170
|
-
<!-- Input Handle: one grid row (20px) from the top so it aligns with the label, at node edge -->
|
|
171
|
-
<Handle
|
|
172
|
-
type="target"
|
|
173
|
-
position={Position.Left}
|
|
174
|
-
id={`${props.id}-input-${port.id}`}
|
|
175
|
-
class="flowdrop-workflow-node__handle {boundEntry ? 'flowdrop-handle--bound' : ''}"
|
|
176
|
-
title={interfaceBoundTooltip(boundEntry)}
|
|
177
|
-
style="top: var(--fd-node-port-row-height); transform: translateY(-50%); --fd-handle-fill: {getDataTypeColorToken(
|
|
178
|
-
checker,
|
|
179
|
-
port.dataType
|
|
180
|
-
)}; --fd-handle-border-color: var(--fd-handle-border);"
|
|
181
|
-
tabindex={-1}
|
|
182
|
-
/>
|
|
183
|
-
|
|
184
|
-
<!-- Port Info: padding lives here so handle position is simple -->
|
|
185
|
-
<div class="flowdrop-workflow-node__port-content flowdrop-flex--1 flowdrop-min-w--0">
|
|
186
|
-
<PortTypeBadge {checker} {port} showRequired />
|
|
187
|
-
{#if port.description}
|
|
188
|
-
<p class="flowdrop-text--xs flowdrop-text--gray flowdrop-truncate">
|
|
189
|
-
{port.description}
|
|
190
|
-
</p>
|
|
191
|
-
{/if}
|
|
192
|
-
</div>
|
|
193
|
-
</div>
|
|
194
|
-
{/each}
|
|
195
|
-
</div>
|
|
196
|
-
</div>
|
|
197
|
-
{/if}
|
|
198
|
-
|
|
199
|
-
<!-- Branches Section (Output Ports) -->
|
|
200
|
-
{#if visibleBranches.length > 0}
|
|
201
|
-
<div class="flowdrop-workflow-node__ports">
|
|
202
|
-
<div class="flowdrop-workflow-node__ports-list">
|
|
203
|
-
{#each visibleBranches as branch (branch.name)}
|
|
204
|
-
{@const isActive = isBranchActive(branch.name)}
|
|
205
|
-
<div class="flowdrop-workflow-node__port">
|
|
206
|
-
<!-- Port Info: padding lives here so handle position is simple -->
|
|
207
|
-
<div
|
|
208
|
-
class="flowdrop-workflow-node__port-content flowdrop-flex--1 flowdrop-min-w--0 flowdrop-text--right"
|
|
209
|
-
>
|
|
210
|
-
<PortTypeBadge
|
|
211
|
-
{checker}
|
|
212
|
-
port={BRANCH_LANE}
|
|
213
|
-
align="right"
|
|
214
|
-
label={branch.label || branch.name}
|
|
215
|
-
active={isActive}
|
|
216
|
-
>
|
|
217
|
-
{#snippet leading()}
|
|
218
|
-
{#if isActive}
|
|
219
|
-
<span style="color: {getDataTypeColorToken(checker, 'trigger')};">
|
|
220
|
-
<Icon icon="mdi:check-circle" />
|
|
221
|
-
</span>
|
|
222
|
-
{/if}
|
|
223
|
-
{/snippet}
|
|
224
|
-
</PortTypeBadge>
|
|
225
|
-
</div>
|
|
226
|
-
|
|
227
|
-
<!-- Output Handle: one grid row (20px) from the top so it aligns with the label, at node edge -->
|
|
228
|
-
<Handle
|
|
229
|
-
type="source"
|
|
230
|
-
position={Position.Right}
|
|
231
|
-
id={`${props.id}-output-${branch.name}`}
|
|
232
|
-
class={`flowdrop-workflow-node__handle ${isActive ? 'flowdrop-workflow-node__handle--active' : ''}`}
|
|
233
|
-
style="top: var(--fd-node-port-row-height); transform: translateY(-50%); --fd-handle-fill: {isActive
|
|
234
|
-
? getDataTypeColorToken(checker, 'trigger')
|
|
235
|
-
: getDataTypeColorToken(
|
|
236
|
-
checker,
|
|
237
|
-
'trigger'
|
|
238
|
-
)}; --fd-handle-border-color: var(--fd-handle-border);"
|
|
239
|
-
tabindex={-1}
|
|
240
|
-
/>
|
|
241
|
-
</div>
|
|
242
|
-
{/each}
|
|
243
|
-
</div>
|
|
244
|
-
</div>
|
|
245
|
-
{:else if branches.length === 0}
|
|
246
|
-
<!-- No branches configured at all -->
|
|
247
|
-
<div class="flowdrop-workflow-node__ports">
|
|
248
|
-
<div class="workflow-node__no-branches">
|
|
249
|
-
<Icon icon="mdi:alert-circle-outline" />
|
|
250
|
-
<span>No branches configured</span>
|
|
251
|
-
</div>
|
|
252
|
-
</div>
|
|
253
|
-
{/if}
|
|
254
|
-
<!-- Note: When there are no branches, we don't show anything -->
|
|
255
|
-
|
|
256
|
-
<!-- Config button -->
|
|
257
|
-
<NodeConfigButton onclick={handleNodeDoubleClick} title="Configure node" />
|
|
258
|
-
</div>
|
|
259
|
-
|
|
260
|
-
<style>
|
|
261
|
-
.flowdrop-workflow-node {
|
|
262
|
-
position: relative;
|
|
263
|
-
background-color: var(--fd-node-bg);
|
|
264
|
-
backdrop-filter: var(--fd-node-backdrop-filter);
|
|
265
|
-
border: var(--fd-node-border-width) solid var(--fd-node-border);
|
|
266
|
-
border-radius: var(--fd-node-radius);
|
|
267
|
-
box-shadow: var(--fd-node-shadow);
|
|
268
|
-
width: var(--fd-node-default-width);
|
|
269
|
-
z-index: 10;
|
|
270
|
-
color: var(--fd-foreground);
|
|
271
|
-
transition: all var(--fd-transition-fast);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.flowdrop-workflow-node--gateway {
|
|
275
|
-
min-width: var(--fd-node-default-width);
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.flowdrop-workflow-node:hover {
|
|
279
|
-
box-shadow: var(--fd-node-shadow-hover);
|
|
280
|
-
border-color: var(--fd-node-border-hover);
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.flowdrop-workflow-node--selected {
|
|
284
|
-
box-shadow:
|
|
285
|
-
0 0 0 2px var(--fd-primary-muted),
|
|
286
|
-
var(--fd-node-shadow-hover);
|
|
287
|
-
border-color: var(--fd-primary);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.flowdrop-workflow-node--selected:hover {
|
|
291
|
-
box-shadow:
|
|
292
|
-
0 0 0 2px var(--fd-primary-muted),
|
|
293
|
-
var(--fd-node-shadow-hover);
|
|
294
|
-
border-color: var(--fd-primary);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
/* Focus ring is centralized in base.css (drawn on the .svelte-flow__node
|
|
298
|
-
wrapper, which is the focusable element). */
|
|
299
|
-
|
|
300
|
-
.flowdrop-workflow-node__header {
|
|
301
|
-
box-sizing: border-box;
|
|
302
|
-
/* Bottom padding absorbs BOTH the node's own top border and the header
|
|
303
|
-
divider, so the body below the header lands on the 20px grid measured
|
|
304
|
-
from the node's outer top edge: node-border + header = 100/120/140. */
|
|
305
|
-
padding: var(--fd-node-header-gap) var(--fd-space-xl)
|
|
306
|
-
calc(
|
|
307
|
-
var(--fd-node-header-gap) - var(--fd-node-border-width) -
|
|
308
|
-
var(--fd-node-header-divider-width)
|
|
309
|
-
);
|
|
310
|
-
border-bottom: var(--fd-node-header-divider-width) solid var(--fd-node-header-divider-color);
|
|
311
|
-
background: var(--fd-node-header-bg);
|
|
312
|
-
border-top-left-radius: var(--fd-node-radius);
|
|
313
|
-
border-top-right-radius: var(--fd-node-radius);
|
|
314
|
-
display: flex;
|
|
315
|
-
flex-direction: column;
|
|
316
|
-
gap: calc(var(--fd-node-header-gap) * 2);
|
|
317
|
-
/* node-border (1.5) + header = 100/120/140. Header itself is
|
|
318
|
-
4*gap + title + desc-line - node-border; each extra desc line adds 20. */
|
|
319
|
-
min-height: calc(
|
|
320
|
-
var(--fd-node-header-gap) * 4 + var(--fd-node-header-title-height) +
|
|
321
|
-
var(--fd-node-header-desc-line) - var(--fd-node-border-width)
|
|
322
|
-
);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
.flowdrop-workflow-node__header-title {
|
|
326
|
-
display: flex;
|
|
327
|
-
align-items: center;
|
|
328
|
-
gap: var(--fd-space-md);
|
|
329
|
-
min-height: var(--fd-node-header-title-height);
|
|
330
|
-
flex-shrink: 0;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.flowdrop-workflow-node__header-desc {
|
|
334
|
-
margin: 0;
|
|
335
|
-
font-size: var(--fd-text-xs);
|
|
336
|
-
color: var(--fd-muted-foreground);
|
|
337
|
-
line-height: var(--fd-node-header-desc-line);
|
|
338
|
-
min-height: var(--fd-node-header-desc-line);
|
|
339
|
-
overflow: hidden;
|
|
340
|
-
text-overflow: ellipsis;
|
|
341
|
-
display: -webkit-box;
|
|
342
|
-
-webkit-line-clamp: 3;
|
|
343
|
-
line-clamp: 3;
|
|
344
|
-
-webkit-box-orient: vertical;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
/* Squircle icon wrapper - Apple-style rounded square background */
|
|
348
|
-
.flowdrop-workflow-node__icon-wrapper {
|
|
349
|
-
display: flex;
|
|
350
|
-
align-items: center;
|
|
351
|
-
justify-content: center;
|
|
352
|
-
/* px (not rem) so the icon stays grid-locked regardless of root font-size */
|
|
353
|
-
width: 36px;
|
|
354
|
-
height: 36px;
|
|
355
|
-
border-radius: 8px;
|
|
356
|
-
background: color-mix(in srgb, var(--_icon-color) var(--fd-node-icon-bg-opacity), transparent);
|
|
357
|
-
flex-shrink: 0;
|
|
358
|
-
transition: all var(--fd-transition-normal);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
.flowdrop-workflow-node:hover .flowdrop-workflow-node__icon-wrapper {
|
|
362
|
-
background: color-mix(
|
|
363
|
-
in srgb,
|
|
364
|
-
var(--_icon-color) var(--fd-node-icon-bg-opacity-hover),
|
|
365
|
-
transparent
|
|
366
|
-
);
|
|
367
|
-
transform: scale(1.05);
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
.flowdrop-workflow-node__icon-wrapper :global(.flowdrop-workflow-node__icon) {
|
|
371
|
-
width: 20px;
|
|
372
|
-
height: 20px;
|
|
373
|
-
color: var(--fd-node-icon);
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
.flowdrop-workflow-node__header-title h3 {
|
|
377
|
-
margin: 0;
|
|
378
|
-
/* half the title block so two lines fill it exactly on the 20px grid */
|
|
379
|
-
line-height: calc(var(--fd-node-header-title-height) / 2);
|
|
380
|
-
color: var(--fd-foreground);
|
|
381
|
-
display: -webkit-box;
|
|
382
|
-
-webkit-line-clamp: 2;
|
|
383
|
-
line-clamp: 2;
|
|
384
|
-
-webkit-box-orient: vertical;
|
|
385
|
-
overflow: hidden;
|
|
386
|
-
min-width: 0;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
.flowdrop-workflow-node__ports {
|
|
390
|
-
padding: 0;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
.flowdrop-workflow-node__ports-list {
|
|
394
|
-
display: flex;
|
|
395
|
-
flex-direction: column;
|
|
396
|
-
gap: 0;
|
|
397
|
-
/* No vertical padding: sections stack flush and node height stays a
|
|
398
|
-
multiple of 20. The one exception is the clearance below the header
|
|
399
|
-
divider, applied to the first section only (below). */
|
|
400
|
-
padding: 0;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
/* The first port section sits directly below the header divider; give it a
|
|
404
|
-
full 20px grid row of clearance so the first port lands on the grid. */
|
|
405
|
-
.flowdrop-workflow-node__header
|
|
406
|
-
+ .flowdrop-workflow-node__ports
|
|
407
|
-
.flowdrop-workflow-node__ports-list {
|
|
408
|
-
padding-top: calc(var(--fd-node-header-gap) * 2);
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
.flowdrop-workflow-node__port {
|
|
412
|
-
display: flex;
|
|
413
|
-
align-items: flex-start;
|
|
414
|
-
gap: 0;
|
|
415
|
-
/* Fixed three-row (60px) height for every port — node height stays
|
|
416
|
-
predictable whether or not a port carries a description. */
|
|
417
|
-
height: calc(var(--fd-node-port-row-height) * 3);
|
|
418
|
-
padding: 0;
|
|
419
|
-
position: relative;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
.flowdrop-workflow-node__port-content {
|
|
423
|
-
padding: var(--fd-node-header-gap) var(--fd-space-xl) 0;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
/* Each line in a port occupies one 20px grid row: a label-only port
|
|
427
|
-
centers its single row, a label + description fills both. The label row
|
|
428
|
-
is <PortTypeBadge>, which owns that row height itself — scoped CSS does
|
|
429
|
-
not reach into a child component. */
|
|
430
|
-
|
|
431
|
-
.flowdrop-workflow-node__port-content > p {
|
|
432
|
-
min-height: var(--fd-node-port-row-height);
|
|
433
|
-
line-height: var(--fd-node-port-row-height);
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
.workflow-node__no-branches {
|
|
437
|
-
display: flex;
|
|
438
|
-
align-items: center;
|
|
439
|
-
gap: var(--fd-space-xs);
|
|
440
|
-
padding: var(--fd-space-md);
|
|
441
|
-
background: var(--fd-warning-muted);
|
|
442
|
-
border: 1px solid var(--fd-warning);
|
|
443
|
-
border-radius: var(--fd-radius-lg);
|
|
444
|
-
color: var(--fd-warning-foreground);
|
|
445
|
-
font-size: var(--fd-text-sm);
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
/* Handle overrides: hover scale, active state (base 20px/12px from base.css) */
|
|
449
|
-
:global(.flowdrop-workflow-node__handle:hover) {
|
|
450
|
-
transform: translateY(-50%) scale(1.2);
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
:global(.flowdrop-workflow-node__handle--active::before) {
|
|
454
|
-
transform: scale(1.15);
|
|
455
|
-
box-shadow: 0 0 0 3px color-mix(in srgb, var(--fd-success) 20%, transparent);
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
/* Utility classes */
|
|
459
|
-
.flowdrop-flex--1 {
|
|
460
|
-
flex: 1;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
.flowdrop-min-w--0 {
|
|
464
|
-
min-width: 0;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
.flowdrop-text--xs {
|
|
468
|
-
font-size: var(--fd-text-xs);
|
|
469
|
-
line-height: 16px;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
.flowdrop-text--sm {
|
|
473
|
-
font-size: var(--fd-text-sm);
|
|
474
|
-
line-height: 20px;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
.flowdrop-text--gray {
|
|
478
|
-
color: var(--fd-muted-foreground);
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
.flowdrop-font--medium {
|
|
482
|
-
font-weight: 500;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
.flowdrop-truncate {
|
|
486
|
-
overflow: hidden;
|
|
487
|
-
text-overflow: ellipsis;
|
|
488
|
-
white-space: nowrap;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
.flowdrop-text--right {
|
|
492
|
-
text-align: right;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
/* Reveal the NodeConfigButton (gear) when the node is hovered. */
|
|
496
|
-
.flowdrop-workflow-node:hover {
|
|
497
|
-
--fd-config-btn-opacity: 1;
|
|
498
|
-
}
|
|
499
|
-
</style>
|
|
119
|
+
<NodeCard
|
|
120
|
+
id={props.id}
|
|
121
|
+
selected={props.selected}
|
|
122
|
+
variant="gateway"
|
|
123
|
+
{geometry}
|
|
124
|
+
title={displayTitle}
|
|
125
|
+
{kindLine}
|
|
126
|
+
description={displayDescription}
|
|
127
|
+
icon={getNodeIcon(fd.categories, props.data.metadata.icon, props.data.metadata.category)}
|
|
128
|
+
color={categoryColor}
|
|
129
|
+
activeOutputs={activeBranches}
|
|
130
|
+
emptyNote={branches.length === 0 && visibleInputPorts.every((p) => p.id === 'trigger')
|
|
131
|
+
? 'No branches configured'
|
|
132
|
+
: undefined}
|
|
133
|
+
onconfig={openConfigSidebar}
|
|
134
|
+
/>
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
<script lang="ts">
|
|
10
|
+
import { m } from '../../messages/index.js';
|
|
10
11
|
import { Position, Handle } from '@xyflow/svelte';
|
|
11
12
|
import type { ConfigValues, NodeMetadata } from '../../types/index.js';
|
|
12
13
|
import Icon from '@iconify/svelte';
|
|
13
14
|
import NodeConfigButton from './NodeConfigButton.svelte';
|
|
14
15
|
import { getDataTypeColor } from '../../utils/colors.js';
|
|
15
16
|
import { getInstance } from '../../stores/getInstance.svelte.js';
|
|
16
|
-
import { m } from '../../messages/index.js';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* IdeaNode component props
|
|
@@ -80,7 +80,9 @@
|
|
|
80
80
|
* Get accent color from config or metadata, with fallback
|
|
81
81
|
*/
|
|
82
82
|
const ideaColor = $derived(
|
|
83
|
-
(props.data.config?.color as string) ||
|
|
83
|
+
(props.data.config?.color as string) ||
|
|
84
|
+
(props.data.metadata?.color as string) ||
|
|
85
|
+
'var(--fd-accent)'
|
|
84
86
|
);
|
|
85
87
|
|
|
86
88
|
/**
|
|
@@ -130,7 +132,6 @@
|
|
|
130
132
|
class:flowdrop-idea-node--error={props.isError}
|
|
131
133
|
style="--idea-accent-color: {ideaColor};"
|
|
132
134
|
ondblclick={handleDoubleClick}
|
|
133
|
-
aria-label={m().nodes.graph.ideaNode({ title: displayTitle })}
|
|
134
135
|
>
|
|
135
136
|
<!-- Left Port (Target/Input): center at top 40px (multiple of 10), 20px connection area -->
|
|
136
137
|
{#if enableLeftPort}
|
|
@@ -194,7 +195,7 @@
|
|
|
194
195
|
</div>
|
|
195
196
|
|
|
196
197
|
<!-- Config button -->
|
|
197
|
-
<NodeConfigButton onclick={openConfigSidebar} title=
|
|
198
|
+
<NodeConfigButton onclick={openConfigSidebar} title={m().nodes.configureIdea} />
|
|
198
199
|
|
|
199
200
|
<!-- Right Port (Source/Output): center at top 40px (multiple of 10), 20px connection area -->
|
|
200
201
|
{#if enableRightPort}
|
|
@@ -341,7 +342,7 @@
|
|
|
341
342
|
margin: 0;
|
|
342
343
|
/* px line-height so the 3-line clamp lands on the 20px grid (3 × 20px) */
|
|
343
344
|
line-height: 20px;
|
|
344
|
-
display: -
|
|
345
|
+
display: var(--fd-node-desc-display);
|
|
345
346
|
-webkit-line-clamp: 3;
|
|
346
347
|
line-clamp: 3;
|
|
347
348
|
-webkit-box-orient: vertical;
|