@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
|
@@ -7,8 +7,6 @@ import { type InterruptWithState } from '../../stores/interruptStore.svelte.js';
|
|
|
7
7
|
interface Props {
|
|
8
8
|
/** The interrupt to display (initial data, used for ID lookup) */
|
|
9
9
|
interrupt: Interrupt | InterruptWithState;
|
|
10
|
-
/** Whether to show the timestamp */
|
|
11
|
-
showTimestamp?: boolean;
|
|
12
10
|
/** Callback to refresh messages after interrupt resolution */
|
|
13
11
|
onResolved?: () => void;
|
|
14
12
|
/**
|
|
@@ -229,9 +229,6 @@
|
|
|
229
229
|
class:review-prompt--resolved={isResolved}
|
|
230
230
|
class:review-prompt--submitting={isSubmitting}
|
|
231
231
|
>
|
|
232
|
-
<!-- Message -->
|
|
233
|
-
<p class="review-prompt__message">{config.message}</p>
|
|
234
|
-
|
|
235
232
|
<!-- Error message -->
|
|
236
233
|
{#if error}
|
|
237
234
|
<div class="review-prompt__error">
|
|
@@ -476,13 +473,6 @@
|
|
|
476
473
|
pointer-events: none;
|
|
477
474
|
}
|
|
478
475
|
|
|
479
|
-
.review-prompt__message {
|
|
480
|
-
margin: 0;
|
|
481
|
-
font-size: var(--fd-review-font-size-message);
|
|
482
|
-
line-height: var(--fd-review-line-height);
|
|
483
|
-
color: var(--fd-foreground);
|
|
484
|
-
}
|
|
485
|
-
|
|
486
476
|
.review-prompt__error {
|
|
487
477
|
display: flex;
|
|
488
478
|
align-items: center;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<script lang="ts">
|
|
11
11
|
import Icon from '@iconify/svelte';
|
|
12
|
+
import Button from '../primitives/Button.svelte';
|
|
12
13
|
import type { TextConfig } from '../../types/interrupt.js';
|
|
13
14
|
import { m } from '../../messages/index.js';
|
|
14
15
|
|
|
@@ -26,21 +27,11 @@
|
|
|
26
27
|
isSubmitting: boolean;
|
|
27
28
|
/** Error message if submission failed */
|
|
28
29
|
error?: string;
|
|
29
|
-
/** Username of the person who resolved the interrupt */
|
|
30
|
-
resolvedByUserName?: string;
|
|
31
30
|
/** Callback when user submits text */
|
|
32
31
|
onSubmit: (value: string) => void;
|
|
33
32
|
}
|
|
34
33
|
|
|
35
|
-
let {
|
|
36
|
-
config,
|
|
37
|
-
isResolved,
|
|
38
|
-
resolvedValue,
|
|
39
|
-
isSubmitting,
|
|
40
|
-
error,
|
|
41
|
-
resolvedByUserName,
|
|
42
|
-
onSubmit
|
|
43
|
-
}: Props = $props();
|
|
34
|
+
let { config, isResolved, resolvedValue, isSubmitting, error, onSubmit }: Props = $props();
|
|
44
35
|
|
|
45
36
|
// Hoist the text branch — placeholder/min/submit reads, including duplicate
|
|
46
37
|
// placeholder in single- vs. multiline branches.
|
|
@@ -100,9 +91,6 @@
|
|
|
100
91
|
class:text-prompt--resolved={isResolved}
|
|
101
92
|
class:text-prompt--submitting={isSubmitting}
|
|
102
93
|
>
|
|
103
|
-
<!-- Message -->
|
|
104
|
-
<p class="text-prompt__message">{config.message}</p>
|
|
105
|
-
|
|
106
94
|
<!-- Error message -->
|
|
107
95
|
{#if error}
|
|
108
96
|
<div class="text-prompt__error">
|
|
@@ -163,31 +151,14 @@
|
|
|
163
151
|
<!-- Submit button -->
|
|
164
152
|
{#if !isResolved}
|
|
165
153
|
<div class="text-prompt__actions">
|
|
166
|
-
<
|
|
167
|
-
|
|
168
|
-
|
|
154
|
+
<Button
|
|
155
|
+
variant="primary"
|
|
156
|
+
loading={isSubmitting}
|
|
169
157
|
onclick={handleSubmit}
|
|
170
158
|
disabled={!isValidInput || isSubmitting}
|
|
171
159
|
>
|
|
172
|
-
{
|
|
173
|
-
|
|
174
|
-
{:else}
|
|
175
|
-
<Icon icon="mdi:send" />
|
|
176
|
-
{/if}
|
|
177
|
-
<span>{t.submit}</span>
|
|
178
|
-
</button>
|
|
179
|
-
</div>
|
|
180
|
-
{/if}
|
|
181
|
-
|
|
182
|
-
<!-- Resolved indicator -->
|
|
183
|
-
{#if isResolved}
|
|
184
|
-
<div class="text-prompt__resolved-badge">
|
|
185
|
-
<Icon icon="mdi:check-circle" />
|
|
186
|
-
<span>
|
|
187
|
-
{resolvedByUserName
|
|
188
|
-
? m().interrupt.responseSubmittedBy({ name: resolvedByUserName })
|
|
189
|
-
: m().interrupt.responseSubmitted}
|
|
190
|
-
</span>
|
|
160
|
+
{t.submit}
|
|
161
|
+
</Button>
|
|
191
162
|
</div>
|
|
192
163
|
{/if}
|
|
193
164
|
</div>
|
|
@@ -197,7 +168,7 @@
|
|
|
197
168
|
.text-prompt {
|
|
198
169
|
display: flex;
|
|
199
170
|
flex-direction: column;
|
|
200
|
-
gap: var(--fd-space-
|
|
171
|
+
gap: var(--fd-space-sm);
|
|
201
172
|
}
|
|
202
173
|
|
|
203
174
|
.text-prompt--resolved {
|
|
@@ -208,13 +179,6 @@
|
|
|
208
179
|
pointer-events: none;
|
|
209
180
|
}
|
|
210
181
|
|
|
211
|
-
.text-prompt__message {
|
|
212
|
-
margin: 0;
|
|
213
|
-
font-size: var(--fd-interrupt-font-message);
|
|
214
|
-
line-height: var(--fd-interrupt-line-height);
|
|
215
|
-
color: var(--fd-foreground);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
182
|
.text-prompt__error {
|
|
219
183
|
display: flex;
|
|
220
184
|
align-items: center;
|
|
@@ -231,21 +195,25 @@
|
|
|
231
195
|
flex-direction: column;
|
|
232
196
|
}
|
|
233
197
|
|
|
198
|
+
/* The Field control: 32 px (a textarea 64 px), 6 px radius, a strong rule, a ring on focus. */
|
|
234
199
|
.text-prompt__input,
|
|
235
200
|
.text-prompt__textarea {
|
|
236
201
|
width: 100%;
|
|
237
|
-
padding: var(--fd-space-md)
|
|
238
|
-
font-size: var(--fd-
|
|
202
|
+
padding: 0 var(--fd-space-md);
|
|
203
|
+
font-size: var(--fd-text-sm);
|
|
239
204
|
font-family: inherit;
|
|
240
|
-
line-height: var(--fd-interrupt-line-height);
|
|
241
205
|
color: var(--fd-foreground);
|
|
242
206
|
background-color: var(--fd-background);
|
|
243
207
|
border: 1px solid var(--fd-border-strong);
|
|
244
|
-
border-radius: var(--fd-radius
|
|
208
|
+
border-radius: var(--fd-control-radius);
|
|
245
209
|
outline: none;
|
|
246
210
|
transition: all var(--fd-transition-fast);
|
|
247
211
|
}
|
|
248
212
|
|
|
213
|
+
.text-prompt__input {
|
|
214
|
+
height: var(--fd-control-lg, 2rem);
|
|
215
|
+
}
|
|
216
|
+
|
|
249
217
|
.text-prompt__input::placeholder,
|
|
250
218
|
.text-prompt__textarea::placeholder {
|
|
251
219
|
color: var(--fd-muted-foreground);
|
|
@@ -253,7 +221,8 @@
|
|
|
253
221
|
|
|
254
222
|
.text-prompt__input:focus,
|
|
255
223
|
.text-prompt__textarea:focus {
|
|
256
|
-
border-color: var(--fd-
|
|
224
|
+
border-color: var(--fd-accent);
|
|
225
|
+
box-shadow: 0 0 0 3px var(--fd-accent-muted);
|
|
257
226
|
}
|
|
258
227
|
|
|
259
228
|
.text-prompt__input:disabled,
|
|
@@ -262,23 +231,17 @@
|
|
|
262
231
|
cursor: not-allowed;
|
|
263
232
|
}
|
|
264
233
|
|
|
265
|
-
/* Resolved state - neutral blue to match other interrupt prompts */
|
|
266
|
-
.text-prompt__input--resolved,
|
|
267
|
-
.text-prompt__textarea--resolved {
|
|
268
|
-
background-color: var(--fd-primary-muted);
|
|
269
|
-
border-color: var(--fd-interrupt-completed-border);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
234
|
.text-prompt__textarea {
|
|
235
|
+
padding: var(--fd-space-xs) var(--fd-space-md);
|
|
236
|
+
line-height: 1.45;
|
|
273
237
|
resize: vertical;
|
|
274
|
-
min-height:
|
|
238
|
+
min-height: 4rem;
|
|
275
239
|
}
|
|
276
240
|
|
|
277
241
|
.text-prompt__char-count {
|
|
278
|
-
font-size: var(--fd-text-
|
|
242
|
+
font-size: var(--fd-text-meta);
|
|
279
243
|
color: var(--fd-muted-foreground);
|
|
280
244
|
text-align: right;
|
|
281
|
-
padding-right: var(--fd-space-3xs);
|
|
282
245
|
}
|
|
283
246
|
|
|
284
247
|
.text-prompt__char-count--warning {
|
|
@@ -287,67 +250,7 @@
|
|
|
287
250
|
|
|
288
251
|
.text-prompt__actions {
|
|
289
252
|
display: flex;
|
|
290
|
-
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.text-prompt__submit {
|
|
294
|
-
display: inline-flex;
|
|
295
|
-
align-items: center;
|
|
296
|
-
justify-content: center;
|
|
253
|
+
justify-content: flex-end;
|
|
297
254
|
gap: var(--fd-space-xs);
|
|
298
|
-
padding: var(--fd-space-sm) var(--fd-space-2xl);
|
|
299
|
-
border-radius: var(--fd-radius-lg);
|
|
300
|
-
font-size: var(--fd-text-sm);
|
|
301
|
-
font-weight: 600;
|
|
302
|
-
font-family: inherit;
|
|
303
|
-
cursor: pointer;
|
|
304
|
-
transition: all var(--fd-transition-normal);
|
|
305
|
-
border: none;
|
|
306
|
-
min-height: var(--fd-interrupt-btn-min-height);
|
|
307
|
-
background: var(--fd-interrupt-btn-primary-bg);
|
|
308
|
-
color: var(--fd-primary-foreground);
|
|
309
|
-
box-shadow: 0 1px 3px var(--fd-interrupt-btn-primary-shadow);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.text-prompt__submit:hover:not(:disabled) {
|
|
313
|
-
background: var(--fd-interrupt-btn-primary-bg-hover);
|
|
314
|
-
box-shadow: 0 4px 12px var(--fd-interrupt-btn-primary-shadow);
|
|
315
|
-
transform: translateY(-1px);
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
.text-prompt__submit:disabled {
|
|
319
|
-
opacity: 0.5;
|
|
320
|
-
cursor: not-allowed;
|
|
321
|
-
transform: none;
|
|
322
|
-
box-shadow: none;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
.text-prompt__spinner {
|
|
326
|
-
width: var(--fd-interrupt-spinner-size);
|
|
327
|
-
height: var(--fd-interrupt-spinner-size);
|
|
328
|
-
border: 2px solid var(--fd-border);
|
|
329
|
-
border-top-color: currentColor;
|
|
330
|
-
border-radius: 50%;
|
|
331
|
-
animation: text-spin 0.6s linear infinite;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
@keyframes text-spin {
|
|
335
|
-
to {
|
|
336
|
-
transform: rotate(360deg);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
/* Resolved badge - neutral blue theme */
|
|
341
|
-
.text-prompt__resolved-badge {
|
|
342
|
-
display: inline-flex;
|
|
343
|
-
align-items: center;
|
|
344
|
-
gap: var(--fd-space-2xs);
|
|
345
|
-
padding: var(--fd-space-2xs) var(--fd-space-md);
|
|
346
|
-
background-color: var(--fd-interrupt-badge-completed-bg);
|
|
347
|
-
border-radius: var(--fd-radius-full);
|
|
348
|
-
color: var(--fd-interrupt-badge-completed-text);
|
|
349
|
-
font-size: var(--fd-text-xs);
|
|
350
|
-
font-weight: 500;
|
|
351
|
-
align-self: flex-start;
|
|
352
255
|
}
|
|
353
256
|
</style>
|
|
@@ -13,8 +13,6 @@ interface Props {
|
|
|
13
13
|
isSubmitting: boolean;
|
|
14
14
|
/** Error message if submission failed */
|
|
15
15
|
error?: string;
|
|
16
|
-
/** Username of the person who resolved the interrupt */
|
|
17
|
-
resolvedByUserName?: string;
|
|
18
16
|
/** Callback when user submits text */
|
|
19
17
|
onSubmit: (value: string) => void;
|
|
20
18
|
}
|
|
@@ -45,6 +45,13 @@
|
|
|
45
45
|
leftSidebarMinWidth?: number;
|
|
46
46
|
/** Maximum width for left sidebar in pixels */
|
|
47
47
|
leftSidebarMaxWidth?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Largest share of the layout width the left sidebar may take (0–1). The
|
|
50
|
+
* effective maximum is the smaller of this and `leftSidebarMaxWidth`.
|
|
51
|
+
*/
|
|
52
|
+
leftSidebarMaxRatio?: number;
|
|
53
|
+
/** Called with the final left sidebar width when a drag or an arrow-key resize ends */
|
|
54
|
+
onLeftSidebarResize?: (width: number) => void;
|
|
48
55
|
/** Minimum width for right sidebar in pixels */
|
|
49
56
|
rightSidebarMinWidth?: number;
|
|
50
57
|
/** Maximum width for right sidebar in pixels */
|
|
@@ -71,6 +78,16 @@
|
|
|
71
78
|
rightSidebar?: import('svelte').Snippet;
|
|
72
79
|
/** Slot for bottom panel content */
|
|
73
80
|
bottomPanel?: import('svelte').Snippet;
|
|
81
|
+
/**
|
|
82
|
+
* A slim strip along the bottom edge of the main area. With a bottom panel
|
|
83
|
+
* open and `bottomStripIsHeader`, it sits on top of the panel as its header
|
|
84
|
+
* (the divider above it resizes the pair); otherwise it is the last row.
|
|
85
|
+
*/
|
|
86
|
+
bottomStrip?: import('svelte').Snippet;
|
|
87
|
+
/** The strip is the open bottom panel's header */
|
|
88
|
+
bottomStripIsHeader?: boolean;
|
|
89
|
+
/** Called with the final bottom panel height when a drag or an arrow-key resize ends */
|
|
90
|
+
onBottomPanelResize?: (height: number) => void;
|
|
74
91
|
/** Slot for footer content */
|
|
75
92
|
footer?: import('svelte').Snippet;
|
|
76
93
|
/** Slot for main content (default slot) */
|
|
@@ -80,7 +97,7 @@
|
|
|
80
97
|
let {
|
|
81
98
|
height = '100vh',
|
|
82
99
|
width = '100%',
|
|
83
|
-
headerHeight =
|
|
100
|
+
headerHeight = 48,
|
|
84
101
|
footerHeight = 48,
|
|
85
102
|
showHeader = true,
|
|
86
103
|
showFooter = false,
|
|
@@ -92,6 +109,8 @@
|
|
|
92
109
|
bottomPanelHeight: initialBottomHeight = 300,
|
|
93
110
|
leftSidebarMinWidth = 200,
|
|
94
111
|
leftSidebarMaxWidth = 500,
|
|
112
|
+
leftSidebarMaxRatio,
|
|
113
|
+
onLeftSidebarResize,
|
|
95
114
|
rightSidebarMinWidth = 200,
|
|
96
115
|
rightSidebarMaxWidth = 500,
|
|
97
116
|
bottomPanelMinHeight = 150,
|
|
@@ -105,6 +124,9 @@
|
|
|
105
124
|
leftSidebar,
|
|
106
125
|
rightSidebar,
|
|
107
126
|
bottomPanel,
|
|
127
|
+
bottomStrip,
|
|
128
|
+
bottomStripIsHeader = false,
|
|
129
|
+
onBottomPanelResize,
|
|
108
130
|
footer,
|
|
109
131
|
children
|
|
110
132
|
}: Props = $props();
|
|
@@ -114,7 +136,23 @@
|
|
|
114
136
|
* Writable derived: recomputes when the prop changes (external control,
|
|
115
137
|
* e.g. collapsed state), while drag/keyboard resizing assigns over it.
|
|
116
138
|
*/
|
|
117
|
-
let
|
|
139
|
+
let leftSidebarWidthRaw = $derived(initialLeftWidth);
|
|
140
|
+
|
|
141
|
+
/** Measured width of the whole layout, for the ratio cap on the left sidebar */
|
|
142
|
+
let layoutWidth = $state(0);
|
|
143
|
+
|
|
144
|
+
/** Left sidebar maximum: the fixed cap, or the layout share when that is smaller */
|
|
145
|
+
const leftMax = $derived(
|
|
146
|
+
leftSidebarMaxRatio && layoutWidth > 0
|
|
147
|
+
? Math.max(
|
|
148
|
+
leftSidebarMinWidth,
|
|
149
|
+
Math.min(leftSidebarMaxWidth, Math.floor(layoutWidth * leftSidebarMaxRatio))
|
|
150
|
+
)
|
|
151
|
+
: leftSidebarMaxWidth
|
|
152
|
+
);
|
|
153
|
+
|
|
154
|
+
/** Left sidebar width as drawn: never past the maximum, even after the window shrank */
|
|
155
|
+
const leftSidebarWidth = $derived(Math.min(leftSidebarWidthRaw, leftMax));
|
|
118
156
|
|
|
119
157
|
/** Current width of the right sidebar */
|
|
120
158
|
// svelte-ignore state_referenced_locally
|
|
@@ -183,7 +221,7 @@
|
|
|
183
221
|
// Calculate new width from the left edge of the layout
|
|
184
222
|
const newWidth = event.clientX - layoutRect.left;
|
|
185
223
|
// Clamp the width between min and max values
|
|
186
|
-
|
|
224
|
+
leftSidebarWidthRaw = Math.min(Math.max(newWidth, leftSidebarMinWidth), leftMax);
|
|
187
225
|
}
|
|
188
226
|
|
|
189
227
|
if (isDraggingRight) {
|
|
@@ -210,6 +248,8 @@
|
|
|
210
248
|
* Resets dragging state for all dividers
|
|
211
249
|
*/
|
|
212
250
|
function handleMouseUp(): void {
|
|
251
|
+
if (isDraggingBottom) onBottomPanelResize?.(bottomPanelHeightState);
|
|
252
|
+
if (isDraggingLeft) onLeftSidebarResize?.(leftSidebarWidth);
|
|
213
253
|
isDraggingLeft = false;
|
|
214
254
|
isDraggingRight = false;
|
|
215
255
|
isDraggingBottom = false;
|
|
@@ -232,10 +272,12 @@
|
|
|
232
272
|
if (side === 'left') {
|
|
233
273
|
if (event.key === 'ArrowRight') {
|
|
234
274
|
event.preventDefault();
|
|
235
|
-
|
|
275
|
+
leftSidebarWidthRaw = Math.min(leftSidebarWidth + step, leftMax);
|
|
276
|
+
onLeftSidebarResize?.(leftSidebarWidthRaw);
|
|
236
277
|
} else if (event.key === 'ArrowLeft') {
|
|
237
278
|
event.preventDefault();
|
|
238
|
-
|
|
279
|
+
leftSidebarWidthRaw = Math.max(leftSidebarWidth - step, leftSidebarMinWidth);
|
|
280
|
+
onLeftSidebarResize?.(leftSidebarWidthRaw);
|
|
239
281
|
}
|
|
240
282
|
} else if (side === 'right') {
|
|
241
283
|
if (event.key === 'ArrowLeft') {
|
|
@@ -249,9 +291,11 @@
|
|
|
249
291
|
if (event.key === 'ArrowUp') {
|
|
250
292
|
event.preventDefault();
|
|
251
293
|
bottomPanelHeightState = Math.min(bottomPanelHeightState + step, bottomPanelMaxHeight);
|
|
294
|
+
onBottomPanelResize?.(bottomPanelHeightState);
|
|
252
295
|
} else if (event.key === 'ArrowDown') {
|
|
253
296
|
event.preventDefault();
|
|
254
297
|
bottomPanelHeightState = Math.max(bottomPanelHeightState - step, bottomPanelMinHeight);
|
|
298
|
+
onBottomPanelResize?.(bottomPanelHeightState);
|
|
255
299
|
}
|
|
256
300
|
}
|
|
257
301
|
}
|
|
@@ -307,6 +351,7 @@
|
|
|
307
351
|
|
|
308
352
|
<div
|
|
309
353
|
bind:this={layoutRef}
|
|
354
|
+
bind:clientWidth={layoutWidth}
|
|
310
355
|
class="flowdrop-main-layout {customClass}"
|
|
311
356
|
class:flowdrop-main-layout--dragging={isDraggingLeft || isDraggingRight || isDraggingBottom}
|
|
312
357
|
class:flowdrop-main-layout--dragging-vertical={isDraggingBottom}
|
|
@@ -349,12 +394,10 @@
|
|
|
349
394
|
aria-orientation="vertical"
|
|
350
395
|
aria-valuenow={leftSidebarWidth}
|
|
351
396
|
aria-valuemin={leftSidebarMinWidth}
|
|
352
|
-
aria-valuemax={
|
|
397
|
+
aria-valuemax={leftMax}
|
|
353
398
|
aria-label={m().layout.resizeLeftSidebar}
|
|
354
399
|
tabindex="0"
|
|
355
|
-
>
|
|
356
|
-
<div class="flowdrop-main-layout__divider-handle"></div>
|
|
357
|
-
</div>
|
|
400
|
+
></div>
|
|
358
401
|
{/if}
|
|
359
402
|
{/if}
|
|
360
403
|
|
|
@@ -387,11 +430,12 @@
|
|
|
387
430
|
aria-valuemax={bottomPanelMaxHeight}
|
|
388
431
|
aria-label={m().layout.resizeBottomPanel}
|
|
389
432
|
tabindex="0"
|
|
390
|
-
>
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
433
|
+
></div>
|
|
434
|
+
{/if}
|
|
435
|
+
|
|
436
|
+
<!-- Bottom strip as the open panel's header -->
|
|
437
|
+
{#if bottomStrip && bottomStripIsHeader && showBottomPanel && bottomPanel}
|
|
438
|
+
<div class="flowdrop-main-layout__strip">{@render bottomStrip()}</div>
|
|
395
439
|
{/if}
|
|
396
440
|
|
|
397
441
|
<!-- Bottom Panel -->
|
|
@@ -400,6 +444,11 @@
|
|
|
400
444
|
{@render bottomPanel()}
|
|
401
445
|
</aside>
|
|
402
446
|
{/if}
|
|
447
|
+
|
|
448
|
+
<!-- Bottom strip as the last row -->
|
|
449
|
+
{#if bottomStrip && !(bottomStripIsHeader && showBottomPanel && bottomPanel)}
|
|
450
|
+
<div class="flowdrop-main-layout__strip">{@render bottomStrip()}</div>
|
|
451
|
+
{/if}
|
|
403
452
|
</div>
|
|
404
453
|
|
|
405
454
|
<!-- Right Divider (Resizable Handle) -->
|
|
@@ -418,9 +467,7 @@
|
|
|
418
467
|
aria-valuemax={rightSidebarMaxWidth}
|
|
419
468
|
aria-label={m().layout.resizeRightSidebar}
|
|
420
469
|
tabindex="0"
|
|
421
|
-
>
|
|
422
|
-
<div class="flowdrop-main-layout__divider-handle"></div>
|
|
423
|
-
</div>
|
|
470
|
+
></div>
|
|
424
471
|
{/if}
|
|
425
472
|
|
|
426
473
|
<!-- Right Sidebar -->
|
|
@@ -527,13 +574,15 @@
|
|
|
527
574
|
width: var(--layout-left-sidebar-width);
|
|
528
575
|
min-width: var(--layout-left-sidebar-width);
|
|
529
576
|
border-right: 1px solid var(--fd-border);
|
|
530
|
-
box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
|
|
531
577
|
}
|
|
532
578
|
|
|
533
579
|
/* Right Sidebar */
|
|
534
580
|
.flowdrop-main-layout__sidebar--right {
|
|
535
581
|
width: var(--layout-right-sidebar-width);
|
|
536
582
|
min-width: var(--layout-right-sidebar-width);
|
|
583
|
+
/* The rule on the canvas side, like the left sidebar's: the resize divider
|
|
584
|
+
takes no space and the bottom strip's top rule ends against this one. */
|
|
585
|
+
border-left: 1px solid var(--fd-border);
|
|
537
586
|
}
|
|
538
587
|
|
|
539
588
|
/* Main Content Wrapper - Contains main content and optional bottom panel */
|
|
@@ -559,87 +608,59 @@
|
|
|
559
608
|
|
|
560
609
|
/* When bottom panel is shown, main area should shrink */
|
|
561
610
|
.flowdrop-main-layout__main-wrapper--with-bottom .flowdrop-main-layout__main {
|
|
562
|
-
height: calc(100% - var(--layout-bottom-panel-height)
|
|
611
|
+
height: calc(100% - var(--layout-bottom-panel-height));
|
|
563
612
|
}
|
|
564
613
|
|
|
565
|
-
/*
|
|
614
|
+
/*
|
|
615
|
+
* Divider (resize handle). The visible 1px rule is the neighbouring panel's
|
|
616
|
+
* own border; the divider itself takes no space. It carries an 8px invisible
|
|
617
|
+
* hit area and draws a 2px accent line on hover, drag and keyboard focus.
|
|
618
|
+
*/
|
|
566
619
|
.flowdrop-main-layout__divider {
|
|
567
|
-
width:
|
|
620
|
+
width: 0;
|
|
568
621
|
height: 100%;
|
|
569
|
-
display: flex;
|
|
570
|
-
align-items: center;
|
|
571
|
-
justify-content: center;
|
|
572
622
|
cursor: col-resize;
|
|
573
|
-
background-color: var(--fd-background);
|
|
574
623
|
position: relative;
|
|
575
624
|
z-index: 20;
|
|
576
625
|
flex-shrink: 0;
|
|
577
|
-
|
|
578
|
-
border-right: 1px solid var(--fd-border);
|
|
579
|
-
border-left: 1px solid var(--fd-border);
|
|
626
|
+
outline: none;
|
|
580
627
|
}
|
|
581
628
|
|
|
582
|
-
.flowdrop-main-layout__divider
|
|
583
|
-
|
|
584
|
-
|
|
629
|
+
.flowdrop-main-layout__divider::before {
|
|
630
|
+
content: '';
|
|
631
|
+
position: absolute;
|
|
632
|
+
inset: 0 -4px;
|
|
585
633
|
}
|
|
586
634
|
|
|
587
|
-
.flowdrop-main-layout__divider
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
/* Divider Handle (Visual Indicator) */
|
|
596
|
-
.flowdrop-main-layout__divider-handle {
|
|
597
|
-
width: 4px;
|
|
598
|
-
height: 48px;
|
|
599
|
-
background-color: var(--fd-border-strong);
|
|
600
|
-
border-radius: 4px;
|
|
601
|
-
transition:
|
|
602
|
-
background-color 0.2s ease,
|
|
603
|
-
transform 0.2s ease;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
.flowdrop-main-layout__divider:hover .flowdrop-main-layout__divider-handle,
|
|
607
|
-
.flowdrop-main-layout__divider:focus .flowdrop-main-layout__divider-handle {
|
|
608
|
-
background-color: var(--fd-primary);
|
|
609
|
-
transform: scaleY(1.2);
|
|
635
|
+
.flowdrop-main-layout__divider::after {
|
|
636
|
+
content: '';
|
|
637
|
+
position: absolute;
|
|
638
|
+
inset: 0 -1px;
|
|
639
|
+
background: var(--fd-ring);
|
|
640
|
+
opacity: 0;
|
|
641
|
+
transition: opacity var(--fd-transition-fast);
|
|
642
|
+
pointer-events: none;
|
|
610
643
|
}
|
|
611
644
|
|
|
612
|
-
.flowdrop-main-layout__divider
|
|
613
|
-
|
|
614
|
-
|
|
645
|
+
.flowdrop-main-layout__divider:hover::after,
|
|
646
|
+
.flowdrop-main-layout__divider:focus-visible::after,
|
|
647
|
+
.flowdrop-main-layout__divider--active::after {
|
|
648
|
+
opacity: 1;
|
|
615
649
|
}
|
|
616
650
|
|
|
617
651
|
/* Bottom Divider (Horizontal) */
|
|
618
652
|
.flowdrop-main-layout__divider--bottom {
|
|
619
653
|
width: 100%;
|
|
620
|
-
height:
|
|
654
|
+
height: 0;
|
|
621
655
|
cursor: row-resize;
|
|
622
|
-
flex-shrink: 0;
|
|
623
|
-
border-top: 1px solid var(--fd-border);
|
|
624
|
-
border-bottom: 1px solid var(--fd-border);
|
|
625
|
-
border-left: none;
|
|
626
|
-
border-right: none;
|
|
627
656
|
}
|
|
628
657
|
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
width: 48px;
|
|
632
|
-
height: 4px;
|
|
658
|
+
.flowdrop-main-layout__divider--bottom::before {
|
|
659
|
+
inset: -4px 0;
|
|
633
660
|
}
|
|
634
661
|
|
|
635
|
-
.flowdrop-main-layout__divider--bottom
|
|
636
|
-
|
|
637
|
-
transform: scaleX(1.2);
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
.flowdrop-main-layout__divider--bottom.flowdrop-main-layout__divider--active
|
|
641
|
-
.flowdrop-main-layout__divider-handle--horizontal {
|
|
642
|
-
transform: scaleX(1.4);
|
|
662
|
+
.flowdrop-main-layout__divider--bottom::after {
|
|
663
|
+
inset: -1px 0;
|
|
643
664
|
}
|
|
644
665
|
|
|
645
666
|
/* Bottom Panel Styles */
|
|
@@ -680,6 +701,20 @@
|
|
|
680
701
|
background: var(--fd-scrollbar-thumb-hover);
|
|
681
702
|
}
|
|
682
703
|
|
|
704
|
+
/* Bottom strip row */
|
|
705
|
+
.flowdrop-main-layout__strip {
|
|
706
|
+
flex-shrink: 0;
|
|
707
|
+
width: 100%;
|
|
708
|
+
background-color: var(--fd-background);
|
|
709
|
+
border-top: 1px solid var(--fd-border);
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
/* The strip heads the panel: the panel's own top rule would double it */
|
|
713
|
+
.flowdrop-main-layout__strip + .flowdrop-main-layout__panel--bottom {
|
|
714
|
+
border-top: none;
|
|
715
|
+
box-shadow: none;
|
|
716
|
+
}
|
|
717
|
+
|
|
683
718
|
/* Vertical dragging cursor override */
|
|
684
719
|
.flowdrop-main-layout--dragging-vertical {
|
|
685
720
|
cursor: row-resize;
|
|
@@ -30,6 +30,13 @@ interface Props {
|
|
|
30
30
|
leftSidebarMinWidth?: number;
|
|
31
31
|
/** Maximum width for left sidebar in pixels */
|
|
32
32
|
leftSidebarMaxWidth?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Largest share of the layout width the left sidebar may take (0–1). The
|
|
35
|
+
* effective maximum is the smaller of this and `leftSidebarMaxWidth`.
|
|
36
|
+
*/
|
|
37
|
+
leftSidebarMaxRatio?: number;
|
|
38
|
+
/** Called with the final left sidebar width when a drag or an arrow-key resize ends */
|
|
39
|
+
onLeftSidebarResize?: (width: number) => void;
|
|
33
40
|
/** Minimum width for right sidebar in pixels */
|
|
34
41
|
rightSidebarMinWidth?: number;
|
|
35
42
|
/** Maximum width for right sidebar in pixels */
|
|
@@ -56,6 +63,16 @@ interface Props {
|
|
|
56
63
|
rightSidebar?: import('svelte').Snippet;
|
|
57
64
|
/** Slot for bottom panel content */
|
|
58
65
|
bottomPanel?: import('svelte').Snippet;
|
|
66
|
+
/**
|
|
67
|
+
* A slim strip along the bottom edge of the main area. With a bottom panel
|
|
68
|
+
* open and `bottomStripIsHeader`, it sits on top of the panel as its header
|
|
69
|
+
* (the divider above it resizes the pair); otherwise it is the last row.
|
|
70
|
+
*/
|
|
71
|
+
bottomStrip?: import('svelte').Snippet;
|
|
72
|
+
/** The strip is the open bottom panel's header */
|
|
73
|
+
bottomStripIsHeader?: boolean;
|
|
74
|
+
/** Called with the final bottom panel height when a drag or an arrow-key resize ends */
|
|
75
|
+
onBottomPanelResize?: (height: number) => void;
|
|
59
76
|
/** Slot for footer content */
|
|
60
77
|
footer?: import('svelte').Snippet;
|
|
61
78
|
/** Slot for main content (default slot) */
|
|
@@ -305,6 +305,13 @@
|
|
|
305
305
|
user-select: text;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
+
/* Zoom tiers (editor.zoomTiers): the caption's box is sized to its 13px text,
|
|
309
|
+
so outline and glyph draw it unchanged (a label that stays a label); in the
|
|
310
|
+
map tier the text gives way and the caption is a quiet block. */
|
|
311
|
+
:global([data-fd-zoom='map']) .flowdrop-caption-node__text {
|
|
312
|
+
visibility: hidden;
|
|
313
|
+
}
|
|
314
|
+
|
|
308
315
|
.flowdrop-caption-node__text--empty::before {
|
|
309
316
|
content: attr(data-placeholder);
|
|
310
317
|
opacity: 0.55;
|