@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
|
@@ -23,10 +23,12 @@
|
|
|
23
23
|
import Button from './Button.svelte';
|
|
24
24
|
import IconButton from './IconButton.svelte';
|
|
25
25
|
import Input from './Input.svelte';
|
|
26
|
-
import Select from './Select.svelte';
|
|
26
|
+
import Select from './primitives/Select.svelte';
|
|
27
|
+
import Checkbox from './primitives/Checkbox.svelte';
|
|
28
|
+
import Menu, { type MenuEntry } from './primitives/Menu.svelte';
|
|
27
29
|
import BindablePortListbox from './BindablePortListbox.svelte';
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
+
import { getDataTypeColorToken, getPortColorToken } from '../utils/colors.js';
|
|
31
|
+
import InterfaceTag from './InterfaceTag.svelte';
|
|
30
32
|
import { m } from '../messages/index.js';
|
|
31
33
|
import {
|
|
32
34
|
DEFAULT_HISTORY_TURN_LIMIT,
|
|
@@ -107,8 +109,9 @@
|
|
|
107
109
|
}: Props = $props();
|
|
108
110
|
|
|
109
111
|
/**
|
|
110
|
-
* Whether the secondary fields are
|
|
111
|
-
* entry wants attention, then the author's
|
|
112
|
+
* Whether the secondary fields are shown under the row: seeded once from
|
|
113
|
+
* whether the entry wants attention, then the author's (the row's "More
|
|
114
|
+
* options" menu item). Deriving it from `status` would
|
|
112
115
|
* shut the fields on every edit and drop the focused input's keystrokes.
|
|
113
116
|
*/
|
|
114
117
|
// The seed is meant to be read once.
|
|
@@ -177,6 +180,42 @@
|
|
|
177
180
|
onPatch(turnPatch(entry, value));
|
|
178
181
|
}
|
|
179
182
|
|
|
183
|
+
/**
|
|
184
|
+
* The row's overflow menu: reorder, the secondary fields, remove. Reorder and
|
|
185
|
+
* remove are never on screen at rest; the menu is the one way in, and it is a
|
|
186
|
+
* real menu (arrow keys, type-ahead, Escape), so the keyboard reaches all of it.
|
|
187
|
+
*/
|
|
188
|
+
const rowMenu = $derived<MenuEntry[]>([
|
|
189
|
+
{
|
|
190
|
+
label: m().workflowInterface.menuMoveUp,
|
|
191
|
+
icon: 'heroicons:chevron-up',
|
|
192
|
+
disabled: isFirst,
|
|
193
|
+
testId: 'wf-entry-move-up',
|
|
194
|
+
onselect: () => onMove(-1)
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
label: m().workflowInterface.menuMoveDown,
|
|
198
|
+
icon: 'heroicons:chevron-down',
|
|
199
|
+
disabled: isLast,
|
|
200
|
+
testId: 'wf-entry-move-down',
|
|
201
|
+
onselect: () => onMove(1)
|
|
202
|
+
},
|
|
203
|
+
{ type: 'separator' },
|
|
204
|
+
{
|
|
205
|
+
label: m().workflowInterface.moreOptions,
|
|
206
|
+
checked: fieldsOpen,
|
|
207
|
+
testId: 'wf-entry-more-options',
|
|
208
|
+
onselect: () => (fieldsOpen = !fieldsOpen)
|
|
209
|
+
},
|
|
210
|
+
{ type: 'separator' },
|
|
211
|
+
{
|
|
212
|
+
label: m().workflowInterface.menuRemove,
|
|
213
|
+
icon: 'heroicons:trash',
|
|
214
|
+
testId: 'wf-entry-remove',
|
|
215
|
+
onselect: onRemove
|
|
216
|
+
}
|
|
217
|
+
]);
|
|
218
|
+
|
|
180
219
|
/** Whether the binding picker is unfolded under the "Bound port" control. */
|
|
181
220
|
let pickerOpen = $state(false);
|
|
182
221
|
|
|
@@ -258,524 +297,416 @@
|
|
|
258
297
|
status.status !== 'ok' &&
|
|
259
298
|
status.status !== 'unbound'}
|
|
260
299
|
>
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
aria-label={m().workflowInterface.
|
|
300
|
+
<!-- One compact line: id → bound port, then the overflow menu. The id is a
|
|
301
|
+
field you type into in place; the binding opens the shared port listbox. -->
|
|
302
|
+
<div class="wf-interface__line">
|
|
303
|
+
<!-- The entry as its canvas tag: swatch, the id typed in place, and the tip
|
|
304
|
+
that points the way the canvas flows. -->
|
|
305
|
+
<InterfaceTag
|
|
306
|
+
id={entry.id}
|
|
307
|
+
class="wf-interface__tag"
|
|
308
|
+
color={getDataTypeColorToken(checker, entry.dataType)}
|
|
309
|
+
mismatch={status?.status === 'type-mismatch'}
|
|
310
|
+
>
|
|
311
|
+
<input
|
|
312
|
+
type="text"
|
|
313
|
+
class="wf-interface__id"
|
|
314
|
+
aria-label={m().workflowInterface.idLabel}
|
|
315
|
+
title={m().workflowInterface.idLabel}
|
|
316
|
+
spellcheck="false"
|
|
317
|
+
value={entry.id}
|
|
318
|
+
onchange={(e) => {
|
|
319
|
+
// An input needs an id: an emptied field goes back to the old one
|
|
320
|
+
// (else the chat binding would lose the input for good).
|
|
321
|
+
if (e.currentTarget.value.trim() === '') e.currentTarget.value = entry.id;
|
|
322
|
+
else onPatch({ id: e.currentTarget.value });
|
|
323
|
+
}}
|
|
324
|
+
/>
|
|
325
|
+
</InterfaceTag>
|
|
326
|
+
<!-- The bound port, said back the way the canvas says it: node › port and
|
|
327
|
+
its type. -->
|
|
328
|
+
<button
|
|
329
|
+
type="button"
|
|
330
|
+
class="wf-interface__binding"
|
|
331
|
+
class:wf-interface__binding--open={pickerOpen}
|
|
332
|
+
class:wf-interface__binding--invalid={isInput && alreadyConnected}
|
|
333
|
+
class:wf-interface__binding--empty={!entry.bindings[0]}
|
|
334
|
+
aria-haspopup="listbox"
|
|
335
|
+
aria-expanded={pickerOpen}
|
|
336
|
+
title={m().workflowInterface.bindingChange}
|
|
337
|
+
onclick={() => (pickerOpen = !pickerOpen)}
|
|
338
|
+
>
|
|
339
|
+
<span class="wf-interface__sr">{m().workflowInterface.bindingLabel}:</span>
|
|
340
|
+
{#if boundTarget}
|
|
341
|
+
<span
|
|
342
|
+
class="wf-interface__binding-dot"
|
|
343
|
+
style="--wf-binding-dot: {getPortColorToken(checker, boundTarget.port)}"
|
|
344
|
+
aria-hidden="true"
|
|
345
|
+
></span>
|
|
346
|
+
<span class="wf-interface__binding-path">
|
|
347
|
+
<span class="wf-interface__binding-node">
|
|
348
|
+
{boundTarget.node.data?.label ?? boundTarget.node.id}
|
|
349
|
+
</span>
|
|
350
|
+
<Icon icon="heroicons:chevron-right" />
|
|
351
|
+
<span class="wf-interface__binding-port">{boundTarget.port.name}</span>
|
|
352
|
+
</span>
|
|
353
|
+
<span class="wf-interface__binding-type" title={boundTarget.port.dataType}>
|
|
354
|
+
{checker.getDataTypeConfig(boundTarget.port.dataType)?.name ?? boundTarget.port.dataType}
|
|
355
|
+
</span>
|
|
356
|
+
{:else if entry.bindings[0]}
|
|
357
|
+
<span class="wf-interface__binding-path wf-interface__binding-path--dangling">
|
|
358
|
+
{m().workflowInterface.bindingDangling({
|
|
359
|
+
nodeId: entry.bindings[0].nodeId,
|
|
360
|
+
portId: entry.bindings[0].portId
|
|
361
|
+
})}
|
|
362
|
+
</span>
|
|
363
|
+
{:else}
|
|
364
|
+
<span class="wf-interface__binding-placeholder">
|
|
365
|
+
{m().workflowInterface.bindingUnbound}
|
|
366
|
+
</span>
|
|
367
|
+
{/if}
|
|
368
|
+
</button>
|
|
369
|
+
{#if turnLabel !== undefined}
|
|
370
|
+
<span
|
|
371
|
+
class="wf-interface__turn-chip"
|
|
372
|
+
class:wf-interface__turn-chip--deprecated={!turnSelector}
|
|
276
373
|
>
|
|
277
|
-
|
|
278
|
-
</
|
|
279
|
-
|
|
374
|
+
{turnLabel}
|
|
375
|
+
</span>
|
|
376
|
+
{/if}
|
|
377
|
+
<Menu
|
|
378
|
+
size="sm"
|
|
379
|
+
align="end"
|
|
380
|
+
class="wf-interface__menu"
|
|
381
|
+
label={m().workflowInterface.entryActions({ id: entry.id })}
|
|
382
|
+
testId="wf-entry-menu"
|
|
383
|
+
items={rowMenu}
|
|
384
|
+
/>
|
|
280
385
|
</div>
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
type="button"
|
|
307
|
-
class="wf-interface__binding"
|
|
308
|
-
class:wf-interface__binding--open={pickerOpen}
|
|
309
|
-
class:wf-interface__binding--invalid={isInput && alreadyConnected}
|
|
310
|
-
class:wf-interface__binding--empty={!entry.bindings[0]}
|
|
311
|
-
aria-haspopup="listbox"
|
|
312
|
-
aria-expanded={pickerOpen}
|
|
313
|
-
aria-labelledby="wf-binding-label-{direction}-{entry.id}"
|
|
314
|
-
title={m().workflowInterface.bindingChange}
|
|
315
|
-
onclick={() => (pickerOpen = !pickerOpen)}
|
|
316
|
-
>
|
|
317
|
-
{#if boundTarget}
|
|
318
|
-
<PortShapeSymbol {checker} port={boundTarget.port} />
|
|
319
|
-
<span class="wf-interface__binding-path">
|
|
320
|
-
<span class="wf-interface__binding-node">
|
|
321
|
-
{boundTarget.node.data?.label ?? boundTarget.node.id}
|
|
322
|
-
</span>
|
|
323
|
-
<Icon icon="heroicons:chevron-right" />
|
|
324
|
-
<span class="wf-interface__binding-port">{boundTarget.port.name}</span>
|
|
325
|
-
<PortLaneChip {checker} port={boundTarget.port} />
|
|
326
|
-
</span>
|
|
327
|
-
{:else if entry.bindings[0]}
|
|
328
|
-
<span class="wf-interface__binding-path wf-interface__binding-path--dangling">
|
|
329
|
-
{m().workflowInterface.bindingDangling({
|
|
330
|
-
nodeId: entry.bindings[0].nodeId,
|
|
331
|
-
portId: entry.bindings[0].portId
|
|
332
|
-
})}
|
|
333
|
-
</span>
|
|
334
|
-
{:else}
|
|
335
|
-
<span class="wf-interface__binding-placeholder">
|
|
336
|
-
{m().workflowInterface.bindingUnbound}
|
|
337
|
-
</span>
|
|
338
|
-
{/if}
|
|
339
|
-
<Icon icon="heroicons:chevron-up-down" class="wf-interface__binding-caret" />
|
|
340
|
-
</button>
|
|
341
|
-
{#if isInput && alreadyConnected}
|
|
342
|
-
<span class="wf-interface__inline wf-interface__inline--error">
|
|
343
|
-
{m().workflowInterface.alreadyConnectedInline({ source: conflictingSource ?? '' })}
|
|
344
|
-
</span>
|
|
386
|
+
{#if isInput && alreadyConnected}
|
|
387
|
+
<span class="wf-interface__inline wf-interface__inline--error">
|
|
388
|
+
{m().workflowInterface.alreadyConnectedInline({ source: conflictingSource ?? '' })}
|
|
389
|
+
</span>
|
|
390
|
+
{/if}
|
|
391
|
+
|
|
392
|
+
{#if pickerOpen}
|
|
393
|
+
<div class="wf-interface__picker" role="group" aria-label={m().workflowInterface.bindingChoose}>
|
|
394
|
+
<BindablePortListbox
|
|
395
|
+
{direction}
|
|
396
|
+
candidates={ownCandidates}
|
|
397
|
+
{checker}
|
|
398
|
+
idPrefix="wf-binding-option-{direction}-{entry.id}"
|
|
399
|
+
{currentKey}
|
|
400
|
+
confirmOnClick
|
|
401
|
+
autofocus
|
|
402
|
+
onConfirm={bindTo}
|
|
403
|
+
onCancel={() => (pickerOpen = false)}
|
|
404
|
+
/>
|
|
405
|
+
<div class="wf-interface__picker-actions">
|
|
406
|
+
{#if entry.bindings[0]}
|
|
407
|
+
<Button variant="ghost" size="sm" onclick={unbind}>
|
|
408
|
+
<Icon icon="heroicons:link-slash" />
|
|
409
|
+
{m().workflowInterface.bindingUnbind}
|
|
410
|
+
</Button>
|
|
345
411
|
{/if}
|
|
412
|
+
<span class="wf-interface__picker-spacer"></span>
|
|
413
|
+
<Button variant="ghost" size="sm" onclick={() => (pickerOpen = false)}>
|
|
414
|
+
{m().workflowInterface.composerCancel}
|
|
415
|
+
</Button>
|
|
346
416
|
</div>
|
|
347
417
|
</div>
|
|
418
|
+
{/if}
|
|
348
419
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
aria-label={m().workflowInterface.bindingChoose}
|
|
354
|
-
>
|
|
355
|
-
<BindablePortListbox
|
|
356
|
-
{direction}
|
|
357
|
-
candidates={ownCandidates}
|
|
358
|
-
{checker}
|
|
359
|
-
idPrefix="wf-binding-option-{direction}-{entry.id}"
|
|
360
|
-
{currentKey}
|
|
361
|
-
confirmOnClick
|
|
362
|
-
autofocus
|
|
363
|
-
onConfirm={bindTo}
|
|
364
|
-
onCancel={() => (pickerOpen = false)}
|
|
365
|
-
/>
|
|
366
|
-
<div class="wf-interface__picker-actions">
|
|
367
|
-
{#if entry.bindings[0]}
|
|
368
|
-
<Button variant="ghost" size="sm" onclick={unbind}>
|
|
369
|
-
<Icon icon="heroicons:link-slash" />
|
|
370
|
-
{m().workflowInterface.bindingUnbind}
|
|
371
|
-
</Button>
|
|
372
|
-
{/if}
|
|
373
|
-
<span class="wf-interface__picker-spacer"></span>
|
|
374
|
-
<Button variant="ghost" size="sm" onclick={() => (pickerOpen = false)}>
|
|
375
|
-
{m().workflowInterface.composerCancel}
|
|
376
|
-
</Button>
|
|
377
|
-
</div>
|
|
378
|
-
</div>
|
|
379
|
-
{/if}
|
|
380
|
-
|
|
381
|
-
<!-- Two-way, and it settles: the setter writes what the DOM already
|
|
382
|
-
reports, and assigning `open` a value it already holds fires no
|
|
383
|
-
further `toggle`. Without that the pair would be an unbounded
|
|
384
|
-
DOM/state cascade rather than a binding — and one Svelte's
|
|
385
|
-
update-depth guard could not catch, since each turn is a fresh
|
|
386
|
-
event task. -->
|
|
387
|
-
<details class="wf-interface__more" bind:open={fieldsOpen}>
|
|
388
|
-
<summary>
|
|
389
|
-
<Icon icon="heroicons:chevron-right" />
|
|
390
|
-
{m().workflowInterface.moreOptions}
|
|
391
|
-
{#if turnLabel !== undefined}
|
|
392
|
-
<span
|
|
393
|
-
class="wf-interface__turn-chip"
|
|
394
|
-
class:wf-interface__turn-chip--deprecated={!turnSelector}
|
|
395
|
-
>
|
|
396
|
-
{turnLabel}
|
|
397
|
-
</span>
|
|
398
|
-
{/if}
|
|
399
|
-
</summary>
|
|
400
|
-
<div class="wf-interface__more-body">
|
|
401
|
-
{#if turnSelector}
|
|
402
|
-
<div class="wf-interface__row">
|
|
403
|
-
<label class="wf-interface__field">
|
|
404
|
-
<span class="wf-interface__label">{m().workflowInterface.turnLabel}</span>
|
|
405
|
-
<Select
|
|
406
|
-
size="sm"
|
|
407
|
-
invalid={turnTakenBy !== undefined}
|
|
408
|
-
value={entry.turn ?? ''}
|
|
409
|
-
onchange={(e) => setTurn(e.currentTarget.value)}
|
|
410
|
-
>
|
|
411
|
-
<option value="">{m().workflowInterface.turnNone}</option>
|
|
412
|
-
{#each turnOptions as option (option.value)}
|
|
413
|
-
<option value={option.value}>{option.label}</option>
|
|
414
|
-
{/each}
|
|
415
|
-
</Select>
|
|
416
|
-
{#if turnTakenBy !== undefined}
|
|
417
|
-
<span class="wf-interface__inline wf-interface__inline--warning">
|
|
418
|
-
{m().workflowInterface.turnTakenInline({ id: turnTakenBy })}
|
|
419
|
-
</span>
|
|
420
|
-
{:else if turnDescription}
|
|
421
|
-
<span class="wf-interface__hint">{turnDescription}</span>
|
|
422
|
-
{/if}
|
|
423
|
-
</label>
|
|
424
|
-
{#if entry.turn === 'history'}
|
|
425
|
-
<label class="wf-interface__field">
|
|
426
|
-
<span class="wf-interface__label">{m().workflowInterface.historyLimitLabel}</span>
|
|
427
|
-
<Input
|
|
428
|
-
size="sm"
|
|
429
|
-
type="number"
|
|
430
|
-
min="1"
|
|
431
|
-
step="1"
|
|
432
|
-
value={historyLimitOf(entry) ?? ''}
|
|
433
|
-
placeholder={m().workflowInterface.historyLimitPlaceholder({
|
|
434
|
-
limit: DEFAULT_HISTORY_TURN_LIMIT
|
|
435
|
-
})}
|
|
436
|
-
onchange={(e) => onPatch(historyLimitPatch(entry, e.currentTarget.value))}
|
|
437
|
-
/>
|
|
438
|
-
</label>
|
|
439
|
-
{/if}
|
|
440
|
-
</div>
|
|
441
|
-
{:else if turnLabel !== undefined}
|
|
442
|
-
<div class="wf-interface__turn-deprecated" role="note">
|
|
443
|
-
<span>
|
|
444
|
-
{m().workflowInterface.turnDeprecated({
|
|
445
|
-
turn: turnLabel,
|
|
446
|
-
limit: entry.turn === 'history' ? historyLimitOf(entry) : undefined
|
|
447
|
-
})}
|
|
448
|
-
{#if turnTakenBy !== undefined}
|
|
449
|
-
{m().workflowInterface.turnTakenInline({ id: turnTakenBy })}
|
|
450
|
-
{/if}
|
|
451
|
-
</span>
|
|
452
|
-
{#if onOpenPlaygroundSettings}
|
|
453
|
-
<button
|
|
454
|
-
type="button"
|
|
455
|
-
class="wf-interface__quickfix"
|
|
456
|
-
onclick={onOpenPlaygroundSettings}
|
|
457
|
-
>
|
|
458
|
-
{m().workflowInterface.turnOpenPlayground}
|
|
459
|
-
</button>
|
|
460
|
-
{/if}
|
|
461
|
-
</div>
|
|
462
|
-
{/if}
|
|
463
|
-
|
|
464
|
-
{#if boundTarget}
|
|
465
|
-
<div class="wf-interface__pull-row">
|
|
466
|
-
<Button
|
|
467
|
-
variant="ghost"
|
|
468
|
-
size="sm"
|
|
469
|
-
class="wf-interface__pull"
|
|
470
|
-
title={m().workflowInterface.pullFromPortTitle}
|
|
471
|
-
onclick={() => onPatch(pullEntryFieldsFromPort(boundTarget.port))}
|
|
472
|
-
>
|
|
473
|
-
<Icon icon="heroicons:arrow-down-tray" />
|
|
474
|
-
{m().workflowInterface.pullFromPort}
|
|
475
|
-
</Button>
|
|
476
|
-
</div>
|
|
477
|
-
{/if}
|
|
420
|
+
<!-- Always rendered, hidden while closed: what the author typed survives a close. -->
|
|
421
|
+
<div class="wf-interface__more" hidden={!fieldsOpen}>
|
|
422
|
+
<div class="wf-interface__more-body">
|
|
423
|
+
{#if turnSelector}
|
|
478
424
|
<div class="wf-interface__row">
|
|
479
425
|
<label class="wf-interface__field">
|
|
480
|
-
<span class="wf-interface__label">{m().workflowInterface.
|
|
481
|
-
<Input
|
|
482
|
-
size="sm"
|
|
483
|
-
type="text"
|
|
484
|
-
value={entry.name ?? ''}
|
|
485
|
-
placeholder={m().workflowInterface.namePlaceholder}
|
|
486
|
-
onchange={(e) => onPatch({ name: e.currentTarget.value || undefined })}
|
|
487
|
-
/>
|
|
488
|
-
</label>
|
|
489
|
-
<label class="wf-interface__field">
|
|
490
|
-
<span class="wf-interface__label">{m().workflowInterface.dataTypeLabel}</span>
|
|
426
|
+
<span class="wf-interface__label">{m().workflowInterface.turnLabel}</span>
|
|
491
427
|
<Select
|
|
492
428
|
size="sm"
|
|
493
|
-
invalid={
|
|
494
|
-
value={entry.
|
|
495
|
-
onchange={(e) =>
|
|
429
|
+
invalid={turnTakenBy !== undefined}
|
|
430
|
+
value={entry.turn ?? ''}
|
|
431
|
+
onchange={(e) => setTurn(e.currentTarget.value)}
|
|
496
432
|
>
|
|
497
|
-
{
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
</option>
|
|
501
|
-
{/if}
|
|
502
|
-
{#each dataTypeOptions(entry.dataType) as option (option.id)}
|
|
503
|
-
<option value={option.id}>{option.name}</option>
|
|
433
|
+
<option value="">{m().workflowInterface.turnNone}</option>
|
|
434
|
+
{#each turnOptions as option (option.value)}
|
|
435
|
+
<option value={option.value}>{option.label}</option>
|
|
504
436
|
{/each}
|
|
505
437
|
</Select>
|
|
506
|
-
{#if
|
|
438
|
+
{#if turnTakenBy !== undefined}
|
|
507
439
|
<span class="wf-interface__inline wf-interface__inline--warning">
|
|
508
|
-
{m().workflowInterface.
|
|
509
|
-
<button
|
|
510
|
-
type="button"
|
|
511
|
-
class="wf-interface__quickfix"
|
|
512
|
-
onclick={() => onPatch({ dataType: boundPortType ?? entry.dataType })}
|
|
513
|
-
>
|
|
514
|
-
{m().workflowInterface.useMatchPortType}
|
|
515
|
-
</button>
|
|
440
|
+
{m().workflowInterface.turnTakenInline({ id: turnTakenBy })}
|
|
516
441
|
</span>
|
|
442
|
+
{:else if turnDescription}
|
|
443
|
+
<span class="wf-interface__hint">{turnDescription}</span>
|
|
517
444
|
{/if}
|
|
518
445
|
</label>
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
<div class="wf-interface__row">
|
|
534
|
-
<label class="wf-interface__field">
|
|
535
|
-
<span class="wf-interface__label">{m().workflowInterface.defaultValueLabel}</span>
|
|
536
|
-
<Input
|
|
537
|
-
size="sm"
|
|
538
|
-
type="text"
|
|
539
|
-
value={formatDefaultValue(entry.defaultValue)}
|
|
540
|
-
onchange={(e) => onPatch({ defaultValue: parseDefaultValue(e.currentTarget.value) })}
|
|
541
|
-
/>
|
|
542
|
-
</label>
|
|
543
|
-
{#if isInput}
|
|
544
|
-
<label class="wf-interface__field wf-interface__field--checkbox">
|
|
545
|
-
<input
|
|
546
|
-
type="checkbox"
|
|
547
|
-
checked={entry.required ?? false}
|
|
548
|
-
onchange={(e) => onPatch({ required: e.currentTarget.checked || undefined })}
|
|
446
|
+
{#if entry.turn === 'history'}
|
|
447
|
+
<label class="wf-interface__field">
|
|
448
|
+
<span class="wf-interface__label">{m().workflowInterface.historyLimitLabel}</span>
|
|
449
|
+
<Input
|
|
450
|
+
size="sm"
|
|
451
|
+
type="number"
|
|
452
|
+
min="1"
|
|
453
|
+
step="1"
|
|
454
|
+
value={historyLimitOf(entry) ?? ''}
|
|
455
|
+
placeholder={m().workflowInterface.historyLimitPlaceholder({
|
|
456
|
+
limit: DEFAULT_HISTORY_TURN_LIMIT
|
|
457
|
+
})}
|
|
458
|
+
onchange={(e) => onPatch(historyLimitPatch(entry, e.currentTarget.value))}
|
|
549
459
|
/>
|
|
550
|
-
<span class="wf-interface__label">{m().workflowInterface.requiredLabel}</span>
|
|
551
460
|
</label>
|
|
552
461
|
{/if}
|
|
553
462
|
</div>
|
|
463
|
+
{:else if turnLabel !== undefined}
|
|
464
|
+
<div class="wf-interface__turn-deprecated" role="note">
|
|
465
|
+
<span>
|
|
466
|
+
{m().workflowInterface.turnDeprecated({
|
|
467
|
+
turn: turnLabel,
|
|
468
|
+
limit: entry.turn === 'history' ? historyLimitOf(entry) : undefined
|
|
469
|
+
})}
|
|
470
|
+
{#if turnTakenBy !== undefined}
|
|
471
|
+
{m().workflowInterface.turnTakenInline({ id: turnTakenBy })}
|
|
472
|
+
{/if}
|
|
473
|
+
</span>
|
|
474
|
+
{#if onOpenPlaygroundSettings}
|
|
475
|
+
<button type="button" class="wf-interface__quickfix" onclick={onOpenPlaygroundSettings}>
|
|
476
|
+
{m().workflowInterface.turnOpenPlayground}
|
|
477
|
+
</button>
|
|
478
|
+
{/if}
|
|
479
|
+
</div>
|
|
480
|
+
{/if}
|
|
481
|
+
|
|
482
|
+
{#if boundTarget}
|
|
483
|
+
<div class="wf-interface__pull-row">
|
|
484
|
+
<Button
|
|
485
|
+
variant="ghost"
|
|
486
|
+
size="sm"
|
|
487
|
+
class="wf-interface__pull"
|
|
488
|
+
title={m().workflowInterface.pullFromPortTitle}
|
|
489
|
+
onclick={() => onPatch(pullEntryFieldsFromPort(boundTarget.port))}
|
|
490
|
+
>
|
|
491
|
+
<Icon icon="heroicons:arrow-down-tray" />
|
|
492
|
+
{m().workflowInterface.pullFromPort}
|
|
493
|
+
</Button>
|
|
494
|
+
</div>
|
|
495
|
+
{/if}
|
|
496
|
+
<div class="wf-interface__row">
|
|
497
|
+
<label class="wf-interface__field">
|
|
498
|
+
<span class="wf-interface__label">{m().workflowInterface.nameLabel}</span>
|
|
499
|
+
<Input
|
|
500
|
+
size="sm"
|
|
501
|
+
type="text"
|
|
502
|
+
value={entry.name ?? ''}
|
|
503
|
+
placeholder={m().workflowInterface.namePlaceholder}
|
|
504
|
+
onchange={(e) => onPatch({ name: e.currentTarget.value || undefined })}
|
|
505
|
+
/>
|
|
506
|
+
</label>
|
|
507
|
+
<label class="wf-interface__field">
|
|
508
|
+
<span class="wf-interface__label">{m().workflowInterface.dataTypeLabel}</span>
|
|
509
|
+
<Select
|
|
510
|
+
size="sm"
|
|
511
|
+
invalid={status?.status === 'type-mismatch'}
|
|
512
|
+
value={entry.dataType}
|
|
513
|
+
onchange={(e) => onPatch({ dataType: e.currentTarget.value })}
|
|
514
|
+
>
|
|
515
|
+
{#if !entry.dataType}
|
|
516
|
+
<option value="" disabled selected>
|
|
517
|
+
{m().workflowInterface.dataTypePlaceholder}
|
|
518
|
+
</option>
|
|
519
|
+
{/if}
|
|
520
|
+
{#each dataTypeOptions(entry.dataType) as option (option.id)}
|
|
521
|
+
<option value={option.id}>{option.name}</option>
|
|
522
|
+
{/each}
|
|
523
|
+
</Select>
|
|
524
|
+
{#if status?.status === 'type-mismatch' && boundPortType}
|
|
525
|
+
<span class="wf-interface__inline wf-interface__inline--warning">
|
|
526
|
+
{m().workflowInterface.typeMismatchInline({ portType: boundPortType ?? '' })}
|
|
527
|
+
<button
|
|
528
|
+
type="button"
|
|
529
|
+
class="wf-interface__quickfix"
|
|
530
|
+
onclick={() => onPatch({ dataType: boundPortType ?? entry.dataType })}
|
|
531
|
+
>
|
|
532
|
+
{m().workflowInterface.useMatchPortType}
|
|
533
|
+
</button>
|
|
534
|
+
</span>
|
|
535
|
+
{/if}
|
|
536
|
+
</label>
|
|
537
|
+
</div>
|
|
554
538
|
|
|
539
|
+
<div class="wf-interface__row">
|
|
540
|
+
<label class="wf-interface__field wf-interface__field--wide">
|
|
541
|
+
<span class="wf-interface__label">{m().workflowInterface.descriptionLabel}</span>
|
|
542
|
+
<Input
|
|
543
|
+
size="sm"
|
|
544
|
+
type="text"
|
|
545
|
+
value={entry.description ?? ''}
|
|
546
|
+
onchange={(e) => onPatch({ description: e.currentTarget.value || undefined })}
|
|
547
|
+
/>
|
|
548
|
+
</label>
|
|
549
|
+
</div>
|
|
550
|
+
|
|
551
|
+
<div class="wf-interface__row">
|
|
552
|
+
<label class="wf-interface__field">
|
|
553
|
+
<span class="wf-interface__label">{m().workflowInterface.defaultValueLabel}</span>
|
|
554
|
+
<Input
|
|
555
|
+
size="sm"
|
|
556
|
+
type="text"
|
|
557
|
+
value={formatDefaultValue(entry.defaultValue)}
|
|
558
|
+
onchange={(e) => onPatch({ defaultValue: parseDefaultValue(e.currentTarget.value) })}
|
|
559
|
+
/>
|
|
560
|
+
</label>
|
|
555
561
|
{#if isInput}
|
|
556
|
-
<
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
{
|
|
561
|
-
|
|
562
|
-
<Input
|
|
563
|
-
size="sm"
|
|
564
|
-
type="text"
|
|
565
|
-
value={formatDefaultValue(example)}
|
|
566
|
-
onchange={(e) => patchExample(exampleIndex, e.currentTarget.value)}
|
|
567
|
-
/>
|
|
568
|
-
<IconButton
|
|
569
|
-
size="sm"
|
|
570
|
-
class="wf-interface__example-remove"
|
|
571
|
-
onclick={() => removeExample(exampleIndex)}
|
|
572
|
-
ariaLabel={m().workflowInterface.removeExample}
|
|
573
|
-
>
|
|
574
|
-
<Icon icon="heroicons:x-mark" />
|
|
575
|
-
</IconButton>
|
|
576
|
-
</div>
|
|
577
|
-
{/each}
|
|
578
|
-
<Button
|
|
579
|
-
variant="ghost"
|
|
580
|
-
size="sm"
|
|
581
|
-
class="wf-interface__example-add"
|
|
582
|
-
onclick={addExample}
|
|
583
|
-
>
|
|
584
|
-
<Icon icon="heroicons:plus" />
|
|
585
|
-
{m().workflowInterface.addExample}
|
|
586
|
-
</Button>
|
|
587
|
-
</div>
|
|
562
|
+
<Checkbox
|
|
563
|
+
class="wf-interface__field wf-interface__field--checkbox"
|
|
564
|
+
checked={entry.required ?? false}
|
|
565
|
+
label={m().workflowInterface.requiredLabel}
|
|
566
|
+
onchange={(on) => onPatch({ required: on || undefined })}
|
|
567
|
+
/>
|
|
588
568
|
{/if}
|
|
589
569
|
</div>
|
|
590
|
-
</details>
|
|
591
570
|
|
|
592
|
-
|
|
571
|
+
{#if isInput}
|
|
572
|
+
<div class="wf-interface__examples">
|
|
573
|
+
<span class="wf-interface__label">
|
|
574
|
+
{m().workflowInterface.examplesLabel}
|
|
575
|
+
</span>
|
|
576
|
+
{#each entry.examples ?? [] as example, exampleIndex (exampleIndex)}
|
|
577
|
+
<div class="wf-interface__example-row">
|
|
578
|
+
<Input
|
|
579
|
+
size="sm"
|
|
580
|
+
type="text"
|
|
581
|
+
value={formatDefaultValue(example)}
|
|
582
|
+
onchange={(e) => patchExample(exampleIndex, e.currentTarget.value)}
|
|
583
|
+
/>
|
|
584
|
+
<IconButton
|
|
585
|
+
size="sm"
|
|
586
|
+
class="wf-interface__example-remove"
|
|
587
|
+
onclick={() => removeExample(exampleIndex)}
|
|
588
|
+
ariaLabel={m().workflowInterface.removeExample}
|
|
589
|
+
>
|
|
590
|
+
<Icon icon="heroicons:x-mark" />
|
|
591
|
+
</IconButton>
|
|
592
|
+
</div>
|
|
593
|
+
{/each}
|
|
594
|
+
<Button variant="ghost" size="sm" class="wf-interface__example-add" onclick={addExample}>
|
|
595
|
+
<Icon icon="heroicons:plus" />
|
|
596
|
+
{m().workflowInterface.addExample}
|
|
597
|
+
</Button>
|
|
598
|
+
</div>
|
|
599
|
+
{/if}
|
|
600
|
+
</div>
|
|
601
|
+
</div>
|
|
602
|
+
|
|
603
|
+
<!-- Every non-ok resolveInterface status renders in words somewhere in this
|
|
593
604
|
card — the obligation that makes this surface canonical. `ok` says
|
|
594
|
-
nothing: neutral is the good state, and the
|
|
605
|
+
nothing: neutral is the good state, and the row's error colour already
|
|
595
606
|
marks the bad ones. Type-mismatch and already-connected render inline
|
|
596
607
|
next to their own field; the rest are explained here. -->
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
</div>
|
|
615
|
-
|
|
616
|
-
<IconButton
|
|
617
|
-
size="sm"
|
|
618
|
-
class="wf-interface__remove"
|
|
619
|
-
onclick={onRemove}
|
|
620
|
-
ariaLabel={m().workflowInterface.removeEntry({ id: entry.id })}
|
|
621
|
-
>
|
|
622
|
-
<Icon icon="heroicons:trash" />
|
|
623
|
-
</IconButton>
|
|
608
|
+
{#if status && FOOTER_STATUSES.has(status.status)}
|
|
609
|
+
<p class="wf-interface__status wf-interface__status--{status.status}">
|
|
610
|
+
{describeInterfaceEntryStatus(status)}
|
|
611
|
+
</p>
|
|
612
|
+
{/if}
|
|
613
|
+
{#each footerIssues as issue (issue.code)}
|
|
614
|
+
<p class="wf-interface__status wf-interface__status--{issue.severity}">
|
|
615
|
+
{issue.message}
|
|
616
|
+
</p>
|
|
617
|
+
{/each}
|
|
618
|
+
|
|
619
|
+
{#if entry.meta && Object.keys(entry.meta).length > 0}
|
|
620
|
+
<details class="wf-interface__meta">
|
|
621
|
+
<summary>{m().workflowInterface.metaDisclosure}</summary>
|
|
622
|
+
<pre>{JSON.stringify(entry.meta, null, 2)}</pre>
|
|
623
|
+
</details>
|
|
624
|
+
{/if}
|
|
624
625
|
</li>
|
|
625
626
|
|
|
626
627
|
<style>
|
|
627
628
|
/*
|
|
628
|
-
One interface entry
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
declares a colour that isn't a design token.
|
|
629
|
+
One interface entry: a flat row. No card, no border, no shadow: rows are
|
|
630
|
+
separated by space, and a tint on hover/focus says which one you are on.
|
|
631
|
+
The secondary fields open underneath it, indented, still without a box.
|
|
632
|
+
Nothing here declares a colour that isn't a design token.
|
|
633
633
|
*/
|
|
634
634
|
.wf-interface__entry {
|
|
635
|
-
display: flex;
|
|
636
|
-
align-items: flex-start;
|
|
637
|
-
gap: var(--fd-space-sm);
|
|
638
|
-
padding: var(--fd-space-sm) var(--fd-space-sm) var(--fd-space-sm) var(--fd-space-xs);
|
|
639
|
-
background-color: var(--fd-card);
|
|
640
|
-
border: 1px solid var(--fd-border);
|
|
641
|
-
border-radius: var(--fd-radius-lg);
|
|
642
|
-
box-shadow: var(--fd-shadow-sm);
|
|
643
|
-
transition:
|
|
644
|
-
border-color var(--fd-transition-fast),
|
|
645
|
-
box-shadow var(--fd-transition-fast);
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
.wf-interface__entry:hover {
|
|
649
|
-
border-color: var(--fd-border-strong);
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
.wf-interface__entry:focus-within {
|
|
653
|
-
border-color: var(--fd-primary);
|
|
654
|
-
box-shadow: 0 0 0 var(--fd-ring-width) var(--fd-primary-muted);
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
.wf-interface__entry--error {
|
|
658
|
-
border-color: color-mix(in srgb, var(--fd-error) 45%, var(--fd-border));
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
/* The card's spine: health dot on top, reorder chevrons below. */
|
|
662
|
-
.wf-interface__entry-side {
|
|
663
635
|
display: flex;
|
|
664
636
|
flex-direction: column;
|
|
665
|
-
align-items: center;
|
|
666
637
|
gap: var(--fd-space-2xs);
|
|
667
|
-
|
|
668
|
-
padding-top: 0.375rem;
|
|
638
|
+
padding: var(--fd-space-3xs) 0;
|
|
669
639
|
}
|
|
670
640
|
|
|
671
|
-
.wf-
|
|
672
|
-
display: flex;
|
|
673
|
-
flex-direction: column;
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
.wf-interface__reorder button {
|
|
641
|
+
.wf-interface__line {
|
|
677
642
|
display: flex;
|
|
678
643
|
align-items: center;
|
|
679
|
-
justify-content: center;
|
|
680
|
-
width: 1.25rem;
|
|
681
|
-
height: 1rem;
|
|
682
|
-
padding: 0;
|
|
683
|
-
border: none;
|
|
684
|
-
border-radius: var(--fd-radius-sm);
|
|
685
|
-
background: none;
|
|
686
|
-
color: var(--fd-muted-foreground);
|
|
687
|
-
font-size: 0.875rem;
|
|
688
|
-
cursor: pointer;
|
|
689
|
-
transition:
|
|
690
|
-
color var(--fd-transition-fast),
|
|
691
|
-
background-color var(--fd-transition-fast);
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
.wf-interface__reorder button:hover:not(:disabled) {
|
|
695
|
-
color: var(--fd-foreground);
|
|
696
|
-
background-color: var(--fd-subtle);
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
.wf-interface__reorder button:disabled {
|
|
700
|
-
opacity: 0.3;
|
|
701
|
-
cursor: default;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
.wf-interface__fields {
|
|
705
|
-
flex: 1;
|
|
706
|
-
min-width: 0;
|
|
707
|
-
display: flex;
|
|
708
|
-
flex-direction: column;
|
|
709
|
-
gap: var(--fd-space-sm);
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
.wf-interface__row {
|
|
713
|
-
display: flex;
|
|
714
|
-
flex-wrap: wrap;
|
|
715
|
-
gap: var(--fd-space-sm);
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
.wf-interface__field {
|
|
719
|
-
display: flex;
|
|
720
|
-
flex-direction: column;
|
|
721
644
|
gap: var(--fd-space-2xs);
|
|
722
|
-
flex: 1 1 8rem;
|
|
723
645
|
min-width: 0;
|
|
646
|
+
min-height: var(--fd-control-md);
|
|
647
|
+
padding-right: var(--fd-space-3xs);
|
|
648
|
+
border-radius: var(--fd-control-radius);
|
|
649
|
+
transition: background-color var(--fd-transition-fast);
|
|
724
650
|
}
|
|
725
651
|
|
|
726
|
-
.wf-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
.wf-interface__field--binding {
|
|
731
|
-
flex: 2 1 12rem;
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
.wf-interface__field--wide {
|
|
735
|
-
flex: 1 1 100%;
|
|
652
|
+
.wf-interface__line:hover,
|
|
653
|
+
.wf-interface__line:focus-within {
|
|
654
|
+
background-color: var(--fd-muted);
|
|
736
655
|
}
|
|
737
656
|
|
|
738
|
-
.
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
min-height: 2rem;
|
|
657
|
+
/* The id: mono, typed into in place. Looks like text until you reach for it. */
|
|
658
|
+
/* Sized to the id (capped), so a short id leaves its room to the bound port. */
|
|
659
|
+
.wf-interface__line :global(.wf-interface__tag) {
|
|
660
|
+
--fd-iface-tag-height: var(--fd-control-md);
|
|
661
|
+
--fd-iface-tag-id-size: var(--fd-text-xs);
|
|
662
|
+
min-width: 0;
|
|
745
663
|
}
|
|
746
664
|
|
|
747
|
-
.wf-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
665
|
+
.wf-interface__id {
|
|
666
|
+
flex: 0 1 auto;
|
|
667
|
+
field-sizing: content;
|
|
668
|
+
min-width: 4ch;
|
|
669
|
+
max-width: 7.5rem;
|
|
670
|
+
box-sizing: border-box;
|
|
671
|
+
height: 100%;
|
|
672
|
+
padding: 0;
|
|
673
|
+
border: 0;
|
|
674
|
+
background-color: transparent;
|
|
675
|
+
color: var(--fd-foreground);
|
|
676
|
+
font-family: var(--fd-font-mono);
|
|
677
|
+
font-size: var(--fd-text-xs);
|
|
678
|
+
font-weight: 500;
|
|
679
|
+
text-overflow: ellipsis;
|
|
753
680
|
}
|
|
754
681
|
|
|
755
|
-
/*
|
|
756
|
-
.wf-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
682
|
+
/* Screen readers get the "Bound port:" the row no longer shows. */
|
|
683
|
+
.wf-interface__sr {
|
|
684
|
+
position: absolute;
|
|
685
|
+
width: 1px;
|
|
686
|
+
height: 1px;
|
|
687
|
+
overflow: hidden;
|
|
688
|
+
clip-path: inset(50%);
|
|
689
|
+
white-space: nowrap;
|
|
762
690
|
}
|
|
763
691
|
|
|
764
|
-
.wf-
|
|
765
|
-
|
|
692
|
+
.wf-interface__line :global(.wf-interface__menu) {
|
|
693
|
+
flex: none;
|
|
694
|
+
margin-left: auto;
|
|
766
695
|
}
|
|
767
696
|
|
|
768
|
-
/* The bound port, said back the way the canvas says it
|
|
697
|
+
/* The bound port, said back the way the canvas says it: a flat button. */
|
|
769
698
|
.wf-interface__binding {
|
|
699
|
+
position: relative;
|
|
770
700
|
display: flex;
|
|
771
701
|
align-items: center;
|
|
772
702
|
gap: var(--fd-space-xs);
|
|
773
|
-
|
|
774
|
-
min-
|
|
775
|
-
|
|
776
|
-
|
|
703
|
+
flex: 1;
|
|
704
|
+
min-width: 0;
|
|
705
|
+
height: var(--fd-control-md);
|
|
706
|
+
padding: 0 var(--fd-space-xs);
|
|
707
|
+
border: 1px solid transparent;
|
|
777
708
|
border-radius: var(--fd-control-radius);
|
|
778
|
-
background-color:
|
|
709
|
+
background-color: transparent;
|
|
779
710
|
color: var(--fd-foreground);
|
|
780
711
|
font: inherit;
|
|
781
712
|
font-size: var(--fd-text-xs);
|
|
@@ -783,18 +714,18 @@
|
|
|
783
714
|
cursor: pointer;
|
|
784
715
|
transition:
|
|
785
716
|
border-color var(--fd-transition-fast),
|
|
786
|
-
|
|
717
|
+
background-color var(--fd-transition-fast);
|
|
787
718
|
}
|
|
788
719
|
|
|
789
720
|
.wf-interface__binding:hover {
|
|
790
|
-
border-color: var(--fd-border
|
|
721
|
+
border-color: var(--fd-border);
|
|
791
722
|
}
|
|
792
723
|
|
|
793
724
|
.wf-interface__binding:focus-visible,
|
|
794
725
|
.wf-interface__binding--open {
|
|
795
726
|
outline: none;
|
|
796
|
-
border-color: var(--fd-
|
|
797
|
-
|
|
727
|
+
border-color: var(--fd-border-strong);
|
|
728
|
+
background-color: var(--fd-background);
|
|
798
729
|
}
|
|
799
730
|
|
|
800
731
|
.wf-interface__binding--invalid {
|
|
@@ -804,11 +735,11 @@
|
|
|
804
735
|
.wf-interface__binding-path {
|
|
805
736
|
display: inline-flex;
|
|
806
737
|
align-items: center;
|
|
807
|
-
|
|
808
|
-
gap: 0.125rem;
|
|
738
|
+
gap: var(--fd-space-3xs);
|
|
809
739
|
flex: 1;
|
|
810
740
|
min-width: 0;
|
|
811
|
-
|
|
741
|
+
overflow: hidden;
|
|
742
|
+
white-space: nowrap;
|
|
812
743
|
}
|
|
813
744
|
|
|
814
745
|
.wf-interface__binding-path :global(svg) {
|
|
@@ -816,11 +747,34 @@
|
|
|
816
747
|
color: var(--fd-muted-foreground);
|
|
817
748
|
}
|
|
818
749
|
|
|
819
|
-
.wf-interface__binding
|
|
750
|
+
.wf-interface__binding > :global(.flowdrop-badge--outline) {
|
|
820
751
|
flex: none;
|
|
821
752
|
}
|
|
822
753
|
|
|
754
|
+
/* Same row anatomy as the inspector's Ports tab: lane dot · node › port · mono lane name. */
|
|
755
|
+
.wf-interface__binding-dot {
|
|
756
|
+
flex: none;
|
|
757
|
+
width: 0.5rem;
|
|
758
|
+
height: 0.5rem;
|
|
759
|
+
border-radius: var(--fd-radius-full);
|
|
760
|
+
background-color: var(--wf-binding-dot);
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.wf-interface__binding-type {
|
|
764
|
+
flex: none;
|
|
765
|
+
max-width: 12ch;
|
|
766
|
+
overflow: hidden;
|
|
767
|
+
text-overflow: ellipsis;
|
|
768
|
+
white-space: nowrap;
|
|
769
|
+
font-family: var(--fd-font-mono);
|
|
770
|
+
font-size: var(--fd-text-xs);
|
|
771
|
+
color: var(--fd-muted-foreground);
|
|
772
|
+
}
|
|
773
|
+
|
|
823
774
|
.wf-interface__binding-node {
|
|
775
|
+
min-width: 3ch;
|
|
776
|
+
overflow: hidden;
|
|
777
|
+
text-overflow: ellipsis;
|
|
824
778
|
color: var(--fd-muted-foreground);
|
|
825
779
|
}
|
|
826
780
|
|
|
@@ -838,21 +792,12 @@
|
|
|
838
792
|
color: var(--fd-muted-foreground);
|
|
839
793
|
}
|
|
840
794
|
|
|
841
|
-
.wf-interface__binding :global(.wf-interface__binding-caret) {
|
|
842
|
-
flex-shrink: 0;
|
|
843
|
-
margin-left: auto;
|
|
844
|
-
color: var(--fd-muted-foreground);
|
|
845
|
-
}
|
|
846
|
-
|
|
847
795
|
/* The unfolded picker: the shared listbox plus its own unbind/cancel row. */
|
|
848
796
|
.wf-interface__picker {
|
|
849
797
|
display: flex;
|
|
850
798
|
flex-direction: column;
|
|
851
799
|
gap: var(--fd-space-xs);
|
|
852
|
-
padding: var(--fd-space-xs);
|
|
853
|
-
border: 1px solid color-mix(in srgb, var(--fd-primary) 45%, var(--fd-border));
|
|
854
|
-
border-radius: var(--fd-radius-md);
|
|
855
|
-
background-color: color-mix(in srgb, var(--fd-primary) 3%, var(--fd-card));
|
|
800
|
+
padding: var(--fd-space-xs) 0;
|
|
856
801
|
}
|
|
857
802
|
|
|
858
803
|
.wf-interface__picker-actions {
|
|
@@ -874,12 +819,46 @@
|
|
|
874
819
|
color: var(--fd-primary);
|
|
875
820
|
}
|
|
876
821
|
|
|
822
|
+
.wf-interface__row {
|
|
823
|
+
display: flex;
|
|
824
|
+
flex-wrap: wrap;
|
|
825
|
+
gap: var(--fd-space-sm);
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
.wf-interface__field {
|
|
829
|
+
display: flex;
|
|
830
|
+
flex-direction: column;
|
|
831
|
+
gap: var(--fd-space-3xs);
|
|
832
|
+
flex: 1 1 8rem;
|
|
833
|
+
min-width: 0;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.wf-interface__field--wide {
|
|
837
|
+
flex: 1 1 100%;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
.wf-interface__more :global(.wf-interface__field--checkbox) {
|
|
841
|
+
flex: 0 0 auto;
|
|
842
|
+
align-self: flex-end;
|
|
843
|
+
min-height: var(--fd-control-md);
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
/* Same voice as the settings form's field labels. */
|
|
847
|
+
.wf-interface__label {
|
|
848
|
+
font-size: var(--fd-field-label-size);
|
|
849
|
+
font-weight: 600;
|
|
850
|
+
line-height: 1.4;
|
|
851
|
+
letter-spacing: -0.01em;
|
|
852
|
+
color: var(--fd-foreground);
|
|
853
|
+
}
|
|
854
|
+
|
|
877
855
|
/* Field-anchored feedback: one short line under the field it belongs to. */
|
|
878
856
|
.wf-interface__inline {
|
|
879
857
|
display: inline-flex;
|
|
880
858
|
flex-wrap: wrap;
|
|
881
859
|
align-items: baseline;
|
|
882
860
|
gap: var(--fd-space-xs);
|
|
861
|
+
padding-left: var(--fd-space-xs);
|
|
883
862
|
font-size: var(--fd-text-xs);
|
|
884
863
|
line-height: 1.4;
|
|
885
864
|
}
|
|
@@ -890,14 +869,13 @@
|
|
|
890
869
|
color: var(--fd-muted-foreground);
|
|
891
870
|
}
|
|
892
871
|
|
|
893
|
-
/* The entry's chat turn, said at rest
|
|
872
|
+
/* The entry's chat turn, said at rest at the end of its row. */
|
|
894
873
|
.wf-interface__turn-chip {
|
|
895
|
-
|
|
874
|
+
flex: none;
|
|
896
875
|
padding: 0 var(--fd-space-xs);
|
|
897
876
|
border: 1px solid var(--fd-border);
|
|
898
877
|
border-radius: var(--fd-radius-full);
|
|
899
|
-
|
|
900
|
-
color: var(--fd-foreground);
|
|
878
|
+
color: var(--fd-muted-foreground);
|
|
901
879
|
font-size: var(--fd-text-2xs);
|
|
902
880
|
font-weight: 600;
|
|
903
881
|
line-height: 1.5;
|
|
@@ -945,52 +923,19 @@
|
|
|
945
923
|
background-color: color-mix(in srgb, currentColor 12%, transparent);
|
|
946
924
|
}
|
|
947
925
|
|
|
948
|
-
/* The secondary fields
|
|
949
|
-
|
|
950
|
-
.wf-interface__more {
|
|
951
|
-
font-size: var(--fd-text-xs);
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
.wf-interface__more > summary {
|
|
955
|
-
display: inline-flex;
|
|
956
|
-
align-items: center;
|
|
957
|
-
gap: 0.125rem;
|
|
958
|
-
list-style: none;
|
|
959
|
-
padding: 0.125rem var(--fd-space-xs) 0.125rem 0.125rem;
|
|
960
|
-
border-radius: var(--fd-radius-sm);
|
|
961
|
-
color: var(--fd-muted-foreground);
|
|
962
|
-
font-weight: 500;
|
|
963
|
-
cursor: pointer;
|
|
964
|
-
user-select: none;
|
|
965
|
-
transition:
|
|
966
|
-
color var(--fd-transition-fast),
|
|
967
|
-
background-color var(--fd-transition-fast);
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
.wf-interface__more > summary::-webkit-details-marker {
|
|
926
|
+
/* The secondary fields, under the row and indented to the id: space, not a box. */
|
|
927
|
+
.wf-interface__more[hidden] {
|
|
971
928
|
display: none;
|
|
972
929
|
}
|
|
973
930
|
|
|
974
|
-
.wf-interface__more
|
|
975
|
-
|
|
976
|
-
background-color: var(--fd-subtle);
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
.wf-interface__more > summary :global(svg) {
|
|
980
|
-
transition: transform var(--fd-transition-fast);
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
.wf-interface__more[open] > summary :global(svg) {
|
|
984
|
-
transform: rotate(90deg);
|
|
931
|
+
.wf-interface__more {
|
|
932
|
+
padding: var(--fd-space-xs) var(--fd-space-xs) var(--fd-space-sm);
|
|
985
933
|
}
|
|
986
934
|
|
|
987
935
|
.wf-interface__more-body {
|
|
988
936
|
display: flex;
|
|
989
937
|
flex-direction: column;
|
|
990
|
-
gap: var(--fd-space-
|
|
991
|
-
margin-top: var(--fd-space-sm);
|
|
992
|
-
padding-top: var(--fd-space-sm);
|
|
993
|
-
border-top: 1px dashed var(--fd-border-muted);
|
|
938
|
+
gap: var(--fd-space-md);
|
|
994
939
|
}
|
|
995
940
|
|
|
996
941
|
.wf-interface__examples {
|
|
@@ -1010,8 +955,6 @@
|
|
|
1010
955
|
}
|
|
1011
956
|
|
|
1012
957
|
.wf-interface__example-row :global(.wf-interface__example-remove) {
|
|
1013
|
-
width: 1.75rem;
|
|
1014
|
-
height: 1.75rem;
|
|
1015
958
|
flex-shrink: 0;
|
|
1016
959
|
}
|
|
1017
960
|
|
|
@@ -1021,7 +964,6 @@
|
|
|
1021
964
|
|
|
1022
965
|
.wf-interface__examples :global(.wf-interface__example-add) {
|
|
1023
966
|
align-self: flex-start;
|
|
1024
|
-
min-height: 1.75rem;
|
|
1025
967
|
padding-inline: var(--fd-space-xs);
|
|
1026
968
|
color: var(--fd-muted-foreground);
|
|
1027
969
|
}
|
|
@@ -1030,34 +972,34 @@
|
|
|
1030
972
|
color: var(--fd-foreground);
|
|
1031
973
|
}
|
|
1032
974
|
|
|
1033
|
-
/* Status
|
|
975
|
+
/* Status lines: one muted 12px line under the row, aligned with the id text,
|
|
976
|
+
cut off with an ellipsis (the full text is the tooltip). Only a real error
|
|
977
|
+
takes the error colour; a draft that is merely unfinished stays quiet. */
|
|
1034
978
|
.wf-interface__status {
|
|
1035
979
|
margin: 0;
|
|
1036
|
-
padding:
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
980
|
+
padding-left: calc(var(--fd-space-xs) + 1px);
|
|
981
|
+
overflow: hidden;
|
|
982
|
+
text-overflow: ellipsis;
|
|
983
|
+
white-space: nowrap;
|
|
1040
984
|
font-size: var(--fd-text-xs);
|
|
1041
985
|
line-height: 1.5;
|
|
1042
|
-
color: var(--fd-foreground);
|
|
986
|
+
color: var(--fd-muted-foreground);
|
|
1043
987
|
}
|
|
1044
988
|
|
|
1045
989
|
.wf-interface__status--error,
|
|
1046
990
|
.wf-interface__status--dangling,
|
|
1047
991
|
.wf-interface__status--hidden,
|
|
1048
992
|
.wf-interface__status--over-bound {
|
|
1049
|
-
|
|
1050
|
-
background-color: var(--fd-error-muted);
|
|
993
|
+
color: var(--fd-error);
|
|
1051
994
|
}
|
|
1052
995
|
|
|
1053
996
|
.wf-interface__status--warning,
|
|
1054
|
-
.wf-interface__status--unbound,
|
|
1055
997
|
.wf-interface__status--type-mismatch {
|
|
1056
|
-
|
|
1057
|
-
background-color: var(--fd-warning-muted);
|
|
998
|
+
color: var(--fd-warning);
|
|
1058
999
|
}
|
|
1059
1000
|
|
|
1060
1001
|
.wf-interface__meta {
|
|
1002
|
+
padding-left: var(--fd-space-xs);
|
|
1061
1003
|
font-size: var(--fd-text-xs);
|
|
1062
1004
|
color: var(--fd-muted-foreground);
|
|
1063
1005
|
}
|
|
@@ -1074,7 +1016,6 @@
|
|
|
1074
1016
|
.wf-interface__meta pre {
|
|
1075
1017
|
margin: var(--fd-space-xs) 0 0;
|
|
1076
1018
|
padding: var(--fd-space-xs);
|
|
1077
|
-
border: 1px solid var(--fd-border-muted);
|
|
1078
1019
|
border-radius: var(--fd-radius-sm);
|
|
1079
1020
|
background-color: var(--fd-muted);
|
|
1080
1021
|
color: var(--fd-foreground);
|
|
@@ -1083,16 +1024,4 @@
|
|
|
1083
1024
|
line-height: 1.5;
|
|
1084
1025
|
overflow-x: auto;
|
|
1085
1026
|
}
|
|
1086
|
-
|
|
1087
|
-
.wf-interface__entry :global(.wf-interface__remove) {
|
|
1088
|
-
flex-shrink: 0;
|
|
1089
|
-
width: 1.75rem;
|
|
1090
|
-
height: 1.75rem;
|
|
1091
|
-
margin-top: 0.125rem;
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
.wf-interface__entry :global(.wf-interface__remove:hover) {
|
|
1095
|
-
color: var(--fd-error);
|
|
1096
|
-
background-color: var(--fd-error-muted);
|
|
1097
|
-
}
|
|
1098
1027
|
</style>
|