@flowdrop/flowdrop 2.11.0 → 2.12.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 +223 -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 +966 -226
- package/dist/components/App.svelte.d.ts +26 -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 +75 -0
- package/dist/components/playground/DockedPlayground.svelte.d.ts +24 -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 +3 -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 +38 -5
- package/dist/svelte-app.js +14 -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 +66 -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
|
@@ -11,9 +11,18 @@
|
|
|
11
11
|
import Icon from '@iconify/svelte';
|
|
12
12
|
import LogoWordmark from './LogoWordmark.svelte';
|
|
13
13
|
import SettingsModal from './SettingsModal.svelte';
|
|
14
|
+
import Menu from './primitives/Menu.svelte';
|
|
15
|
+
import Button from './primitives/Button.svelte';
|
|
14
16
|
import type { SettingsCategory } from '../types/settings.js';
|
|
15
|
-
import type { NavbarAction } from '../types/navbar.js';
|
|
17
|
+
import type { NavbarAction, NavbarBranding } from '../types/navbar.js';
|
|
16
18
|
import { m } from '../messages/index.js';
|
|
19
|
+
import {
|
|
20
|
+
getTheme,
|
|
21
|
+
getResolvedTheme,
|
|
22
|
+
getHostColorScheme,
|
|
23
|
+
setTheme
|
|
24
|
+
} from '../stores/settingsStore.svelte.js';
|
|
25
|
+
import { appearanceChoices } from '../utils/appearance.js';
|
|
17
26
|
|
|
18
27
|
interface BreadcrumbItem {
|
|
19
28
|
label: string;
|
|
@@ -40,6 +49,25 @@
|
|
|
40
49
|
showSettingsResetButton?: boolean;
|
|
41
50
|
/** Custom content rendered in the trailing (right) region, before the settings gear */
|
|
42
51
|
end?: Snippet;
|
|
52
|
+
/** White-label logo and name; replaces the FlowDrop wordmark when it carries a logo */
|
|
53
|
+
branding?: NavbarBranding;
|
|
54
|
+
/**
|
|
55
|
+
* Shows the ghost "Workflow" button before the primary actions and runs this
|
|
56
|
+
* when it is pressed. Without it the button is not rendered.
|
|
57
|
+
*/
|
|
58
|
+
onWorkflowSettings?: () => void;
|
|
59
|
+
/** The workflow-settings panel is open: the Workflow button reads as pressed. */
|
|
60
|
+
workflowSettingsOpen?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Binds Ctrl/Cmd+S to the first action (Save) and shows the shortcut beside
|
|
63
|
+
* it in the menu. Off by default: a host page may have its own Save shortcut.
|
|
64
|
+
*/
|
|
65
|
+
saveShortcut?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Drawn in the action row before the Save button: the Problems indicator.
|
|
68
|
+
* Renders nothing of its own, so an empty snippet leaves no gap.
|
|
69
|
+
*/
|
|
70
|
+
status?: Snippet;
|
|
43
71
|
}
|
|
44
72
|
|
|
45
73
|
let {
|
|
@@ -51,22 +79,65 @@
|
|
|
51
79
|
settingsCategories,
|
|
52
80
|
showSettingsSyncButton,
|
|
53
81
|
showSettingsResetButton,
|
|
54
|
-
end
|
|
82
|
+
end,
|
|
83
|
+
branding,
|
|
84
|
+
onWorkflowSettings,
|
|
85
|
+
workflowSettingsOpen = false,
|
|
86
|
+
saveShortcut = false,
|
|
87
|
+
status
|
|
55
88
|
}: Props = $props();
|
|
56
89
|
|
|
57
|
-
// Dropdown state
|
|
58
|
-
let isDropdownOpen = $state(false);
|
|
59
|
-
|
|
60
90
|
// Settings modal state
|
|
61
91
|
let isSettingsOpen = $state(false);
|
|
92
|
+
let gearMenuOpen = $state(false);
|
|
93
|
+
|
|
94
|
+
// Appearance: the colour-scheme choices (the host's, Light, Dark; or Light,
|
|
95
|
+
// Dark, System) and a hint saying what the preference resolves to right now.
|
|
96
|
+
const appearance = $derived(m().navigation.appearance);
|
|
97
|
+
const hostScheme = $derived(getHostColorScheme());
|
|
98
|
+
const appearanceOptions = $derived(appearanceChoices(hostScheme, appearance));
|
|
99
|
+
const currentTheme = $derived(getTheme());
|
|
100
|
+
const schemeName = (resolved: 'light' | 'dark') =>
|
|
101
|
+
resolved === 'dark' ? appearance.dark : appearance.light;
|
|
102
|
+
const appearanceHint = $derived(
|
|
103
|
+
hostScheme
|
|
104
|
+
? appearance.hostHint({ label: hostScheme.label, scheme: schemeName(hostScheme.resolved) })
|
|
105
|
+
: currentTheme === 'auto'
|
|
106
|
+
? appearance.systemHint({ scheme: schemeName(getResolvedTheme()) })
|
|
107
|
+
: ''
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
// Left / Right move between the three choices (Up / Down already do, as the
|
|
111
|
+
// Menu walks its items in order).
|
|
112
|
+
function onAppearanceKeydown(event: KeyboardEvent): void {
|
|
113
|
+
if (event.key !== 'ArrowLeft' && event.key !== 'ArrowRight') return;
|
|
114
|
+
const group = event.currentTarget as HTMLElement;
|
|
115
|
+
const items = Array.from(group.querySelectorAll<HTMLElement>('[role="menuitemradio"]'));
|
|
116
|
+
const at = items.indexOf(document.activeElement as HTMLElement);
|
|
117
|
+
if (at < 0) return;
|
|
118
|
+
event.preventDefault();
|
|
119
|
+
const step = event.key === 'ArrowRight' ? 1 : -1;
|
|
120
|
+
items[(at + step + items.length) % items.length]?.focus();
|
|
121
|
+
}
|
|
62
122
|
|
|
63
123
|
// Hoist the navigation branch — six reads in the template.
|
|
64
124
|
const nav = $derived(m().navigation);
|
|
65
125
|
|
|
126
|
+
// Accessible name of the logo: alt text, else the branded name, else the app name.
|
|
127
|
+
const logoName = $derived(branding?.logoAlt ?? branding?.name ?? nav.appName);
|
|
128
|
+
|
|
129
|
+
// Navigation actions (`navigation: true`: dashboard, back to workflows) live
|
|
130
|
+
// in the wordmark menu, not in the Save menu. When the wordmark is already a
|
|
131
|
+
// link (`branding.href`) they stay with the other actions, as before.
|
|
132
|
+
const navigationActions = $derived(
|
|
133
|
+
branding?.href ? [] : primaryActions.filter((a) => a.navigation)
|
|
134
|
+
);
|
|
135
|
+
const taskActions = $derived(primaryActions.filter((a) => !navigationActions.includes(a)));
|
|
136
|
+
|
|
66
137
|
// Flyout structure: actions after the first split into ungrouped (rendered
|
|
67
138
|
// flat at the top) and groups (rendered as labeled sections). Group order
|
|
68
139
|
// follows first occurrence in the source array.
|
|
69
|
-
const dropdownActions = $derived(
|
|
140
|
+
const dropdownActions = $derived(taskActions.slice(1));
|
|
70
141
|
const ungroupedActions = $derived(dropdownActions.filter((a) => !a.group));
|
|
71
142
|
const groupedActions = $derived.by(() => {
|
|
72
143
|
const groups = new Map<string, NavbarAction[]>();
|
|
@@ -82,30 +153,118 @@
|
|
|
82
153
|
return Array.from(groups, ([label, items]) => ({ label, items }));
|
|
83
154
|
});
|
|
84
155
|
|
|
85
|
-
//
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
156
|
+
// The shortcut's hint, in the platform's words.
|
|
157
|
+
const isMac = typeof navigator !== 'undefined' && /Mac|iPhone|iPad/.test(navigator.platform);
|
|
158
|
+
const saveHint = $derived(saveShortcut ? (isMac ? '⌘S' : 'Ctrl+S') : undefined);
|
|
159
|
+
const settingsHint = isMac ? '⌘,' : 'Ctrl+,';
|
|
160
|
+
|
|
161
|
+
$effect(() => {
|
|
162
|
+
if (!saveShortcut) return;
|
|
163
|
+
function onKeydown(event: KeyboardEvent): void {
|
|
164
|
+
// A host that binds the shortcut itself (fddo's editor.js does, on document) has
|
|
165
|
+
// already handled it and called preventDefault; saving again would save twice.
|
|
166
|
+
if (event.defaultPrevented) return;
|
|
167
|
+
if (!(event.metaKey || event.ctrlKey) || event.altKey || event.key.toLowerCase() !== 's') {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
const save = taskActions[0];
|
|
171
|
+
if (!save?.onclick) return;
|
|
172
|
+
event.preventDefault();
|
|
173
|
+
save.onclick(event);
|
|
90
174
|
}
|
|
91
|
-
|
|
175
|
+
window.addEventListener('keydown', onKeydown);
|
|
176
|
+
return () => window.removeEventListener('keydown', onKeydown);
|
|
177
|
+
});
|
|
92
178
|
|
|
93
|
-
//
|
|
179
|
+
// Cmd/Ctrl+, opens the full settings dialog, as in most desktop apps.
|
|
94
180
|
$effect(() => {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
181
|
+
if (!showSettings) return;
|
|
182
|
+
function onKeydown(event: KeyboardEvent): void {
|
|
183
|
+
if (event.defaultPrevented) return;
|
|
184
|
+
if (!(event.metaKey || event.ctrlKey) || event.altKey || event.shiftKey) return;
|
|
185
|
+
if (event.key !== ',') return;
|
|
186
|
+
event.preventDefault();
|
|
187
|
+
isSettingsOpen = true;
|
|
188
|
+
}
|
|
189
|
+
window.addEventListener('keydown', onKeydown);
|
|
190
|
+
return () => window.removeEventListener('keydown', onKeydown);
|
|
99
191
|
});
|
|
192
|
+
|
|
193
|
+
// Icons on every item of a menu or on none: a half-iconed list reads as noise.
|
|
194
|
+
const saveMenuIcons = $derived(dropdownActions.length > 0 && taskActions.every((a) => a.icon));
|
|
195
|
+
const navMenuIcons = $derived(
|
|
196
|
+
navigationActions.length > 0 && navigationActions.every((a) => a.icon)
|
|
197
|
+
);
|
|
100
198
|
</script>
|
|
101
199
|
|
|
200
|
+
{#snippet menuLink(action: NavbarAction, close: () => void, icons: boolean, hint?: string)}
|
|
201
|
+
<a
|
|
202
|
+
href={action.href}
|
|
203
|
+
role="menuitem"
|
|
204
|
+
class="flowdrop-navbar__dropdown-item"
|
|
205
|
+
onclick={(e) => {
|
|
206
|
+
action.onclick?.(e);
|
|
207
|
+
close();
|
|
208
|
+
}}
|
|
209
|
+
target={action.external ? '_blank' : undefined}
|
|
210
|
+
rel={action.external ? 'noopener noreferrer' : undefined}
|
|
211
|
+
>
|
|
212
|
+
{#if icons && action.icon}
|
|
213
|
+
<Icon icon={action.icon} class="flowdrop-navbar__dropdown-icon" aria-hidden="true" />
|
|
214
|
+
{/if}
|
|
215
|
+
<span class="flowdrop-navbar__dropdown-label">{action.label}</span>
|
|
216
|
+
{#if hint}
|
|
217
|
+
<kbd class="flowdrop-navbar__dropdown-hint">{hint}</kbd>
|
|
218
|
+
{/if}
|
|
219
|
+
{#if action.external}
|
|
220
|
+
<Icon icon="mdi:open-in-new" class="flowdrop-navbar__dropdown-external" aria-hidden="true" />
|
|
221
|
+
{/if}
|
|
222
|
+
</a>
|
|
223
|
+
{/snippet}
|
|
224
|
+
|
|
102
225
|
<div class="flowdrop-navbar">
|
|
103
226
|
<div class="flowdrop-navbar__start">
|
|
104
|
-
<!-- Logo
|
|
227
|
+
<!-- Logo: the consumer's branding when set, else the rocket + FlowDrop wordmark -->
|
|
105
228
|
<div class="flowdrop-logo--container">
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
229
|
+
{#snippet logoContent()}
|
|
230
|
+
{#if typeof branding?.logo === 'string'}
|
|
231
|
+
<img class="flowdrop-logo--image" src={branding.logo} alt={logoName} />
|
|
232
|
+
{:else if branding?.logo}
|
|
233
|
+
{@const Logo = branding.logo}
|
|
234
|
+
<span class="flowdrop-logo--header" role="img" aria-label={logoName} title={logoName}>
|
|
235
|
+
<Logo />
|
|
236
|
+
</span>
|
|
237
|
+
{:else}
|
|
238
|
+
<span class="flowdrop-logo--header" role="img" aria-label={logoName} title={logoName}>
|
|
239
|
+
<LogoWordmark />
|
|
240
|
+
</span>
|
|
241
|
+
{/if}
|
|
242
|
+
{/snippet}
|
|
243
|
+
{#if branding?.href}
|
|
244
|
+
<a class="flowdrop-logo--link" href={branding.href} title={logoName}>
|
|
245
|
+
{@render logoContent()}
|
|
246
|
+
</a>
|
|
247
|
+
{:else if navigationActions.length > 0}
|
|
248
|
+
<!-- The wordmark opens the places this editor can go: dashboard, workflow list -->
|
|
249
|
+
<Menu
|
|
250
|
+
label={logoName}
|
|
251
|
+
testId="navbar-wordmark-menu"
|
|
252
|
+
triggerClass="flowdrop-logo--menu-trigger"
|
|
253
|
+
minWidth={200}
|
|
254
|
+
>
|
|
255
|
+
{#snippet trigger()}
|
|
256
|
+
{@render logoContent()}
|
|
257
|
+
<Icon icon="mdi:chevron-down" class="flowdrop-logo--menu-chevron" aria-hidden="true" />
|
|
258
|
+
{/snippet}
|
|
259
|
+
{#snippet children({ close })}
|
|
260
|
+
{#each navigationActions as action (action.label)}
|
|
261
|
+
{@render menuLink(action, close, navMenuIcons)}
|
|
262
|
+
{/each}
|
|
263
|
+
{/snippet}
|
|
264
|
+
</Menu>
|
|
265
|
+
{:else}
|
|
266
|
+
{@render logoContent()}
|
|
267
|
+
{/if}
|
|
109
268
|
</div>
|
|
110
269
|
</div>
|
|
111
270
|
|
|
@@ -164,10 +323,24 @@
|
|
|
164
323
|
</div>
|
|
165
324
|
|
|
166
325
|
<div class="flowdrop-navbar__actions">
|
|
167
|
-
{#if
|
|
326
|
+
{#if onWorkflowSettings}
|
|
327
|
+
<Button
|
|
328
|
+
variant="ghost"
|
|
329
|
+
class="flowdrop-navbar__workflow-btn"
|
|
330
|
+
aria-pressed={workflowSettingsOpen}
|
|
331
|
+
data-testid="navbar-workflow-button"
|
|
332
|
+
title={nav.workflowButtonTitle}
|
|
333
|
+
onclick={onWorkflowSettings}
|
|
334
|
+
>
|
|
335
|
+
{#snippet leadingIcon()}<Icon icon="mdi:tune-variant" />{/snippet}
|
|
336
|
+
{nav.workflowButton}
|
|
337
|
+
</Button>
|
|
338
|
+
{/if}
|
|
339
|
+
{@render status?.()}
|
|
340
|
+
{#if taskActions.length > 0}
|
|
168
341
|
<!-- Split mode: all actions as individual side-by-side buttons -->
|
|
169
342
|
<div class="flowdrop-navbar__split-actions">
|
|
170
|
-
{#each
|
|
343
|
+
{#each taskActions as action (action.label)}
|
|
171
344
|
<a
|
|
172
345
|
href={action.href}
|
|
173
346
|
class="flowdrop-navbar__action flowdrop-navbar__action--{action.variant || 'primary'}"
|
|
@@ -185,10 +358,10 @@
|
|
|
185
358
|
{/each}
|
|
186
359
|
</div>
|
|
187
360
|
|
|
188
|
-
<!-- Dropdown mode: first action + chevron
|
|
361
|
+
<!-- Dropdown mode: first action + chevron menu for the rest -->
|
|
189
362
|
<div class="flowdrop-navbar__dropdown-mode">
|
|
190
|
-
{#if
|
|
191
|
-
{@const primaryAction =
|
|
363
|
+
{#if taskActions[0]}
|
|
364
|
+
{@const primaryAction = taskActions[0]}
|
|
192
365
|
<a
|
|
193
366
|
href={primaryAction.href}
|
|
194
367
|
class="flowdrop-navbar__primary-action flowdrop-navbar__action--{primaryAction.variant ||
|
|
@@ -206,69 +379,38 @@
|
|
|
206
379
|
</a>
|
|
207
380
|
{/if}
|
|
208
381
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
<Icon icon="
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
<span>{action.label}</span>
|
|
238
|
-
{#if action.external}
|
|
239
|
-
<Icon icon="mdi:open-in-new" class="w-3 h-3" />
|
|
240
|
-
{/if}
|
|
241
|
-
</a>
|
|
242
|
-
{/each}
|
|
243
|
-
{#each groupedActions as group, groupIndex (group.label)}
|
|
244
|
-
{#if groupIndex > 0 || ungroupedActions.length > 0}
|
|
245
|
-
<div class="flowdrop-navbar__dropdown-divider" role="separator"></div>
|
|
246
|
-
{/if}
|
|
247
|
-
<div class="flowdrop-navbar__dropdown-group-header">{group.label}</div>
|
|
248
|
-
{#each group.items as action (action.label)}
|
|
249
|
-
<a
|
|
250
|
-
href={action.href}
|
|
251
|
-
class="flowdrop-navbar__dropdown-item"
|
|
252
|
-
onclick={(e) => {
|
|
253
|
-
action.onclick?.(e);
|
|
254
|
-
isDropdownOpen = false;
|
|
255
|
-
}}
|
|
256
|
-
target={action.external ? '_blank' : undefined}
|
|
257
|
-
rel={action.external ? 'noopener noreferrer' : undefined}
|
|
258
|
-
>
|
|
259
|
-
{#if action.icon}
|
|
260
|
-
<Icon icon={action.icon} class="w-4 h-4" />
|
|
261
|
-
{/if}
|
|
262
|
-
<span>{action.label}</span>
|
|
263
|
-
{#if action.external}
|
|
264
|
-
<Icon icon="mdi:open-in-new" class="w-3 h-3" />
|
|
265
|
-
{/if}
|
|
266
|
-
</a>
|
|
267
|
-
{/each}
|
|
382
|
+
{#if taskActions.length > 1}
|
|
383
|
+
<Menu
|
|
384
|
+
class="flowdrop-navbar__dropdown"
|
|
385
|
+
triggerClass="flowdrop-navbar__dropdown-trigger"
|
|
386
|
+
label={nav.moreActions}
|
|
387
|
+
align="end"
|
|
388
|
+
minWidth={200}
|
|
389
|
+
>
|
|
390
|
+
{#snippet trigger()}
|
|
391
|
+
<Icon icon="mdi:chevron-down" class="w-4 h-4" />
|
|
392
|
+
{/snippet}
|
|
393
|
+
{#snippet children({ close })}
|
|
394
|
+
<!-- The main button's own action comes first, so the menu reads Save,
|
|
395
|
+
then the rest; rules, not boxes, between the groups. -->
|
|
396
|
+
{@render menuLink(taskActions[0], close, saveMenuIcons, saveHint)}
|
|
397
|
+
{#if ungroupedActions.length > 0}
|
|
398
|
+
<div class="flowdrop-navbar__dropdown-divider" role="separator"></div>
|
|
399
|
+
{/if}
|
|
400
|
+
{#each ungroupedActions as action (action.label)}
|
|
401
|
+
{@render menuLink(action, close, saveMenuIcons)}
|
|
402
|
+
{/each}
|
|
403
|
+
{#each groupedActions as group (group.label)}
|
|
404
|
+
<div class="flowdrop-navbar__dropdown-divider" role="separator"></div>
|
|
405
|
+
<div class="flowdrop-navbar__dropdown-group-header" role="presentation">
|
|
406
|
+
{group.label}
|
|
407
|
+
</div>
|
|
408
|
+
{#each group.items as action (action.label)}
|
|
409
|
+
{@render menuLink(action, close, saveMenuIcons)}
|
|
268
410
|
{/each}
|
|
269
|
-
|
|
270
|
-
{/
|
|
271
|
-
</
|
|
411
|
+
{/each}
|
|
412
|
+
{/snippet}
|
|
413
|
+
</Menu>
|
|
272
414
|
{/if}
|
|
273
415
|
</div>
|
|
274
416
|
{/if}
|
|
@@ -277,14 +419,66 @@
|
|
|
277
419
|
<div class="flowdrop-navbar__end">
|
|
278
420
|
{@render end?.()}
|
|
279
421
|
{#if showSettings}
|
|
280
|
-
<
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
422
|
+
<Menu
|
|
423
|
+
bind:open={gearMenuOpen}
|
|
424
|
+
label={nav.settingsTitle}
|
|
425
|
+
testId="navbar-settings-menu"
|
|
426
|
+
triggerClass="flowdrop-navbar__settings-btn"
|
|
427
|
+
align="end"
|
|
428
|
+
minWidth={240}
|
|
285
429
|
>
|
|
286
|
-
|
|
287
|
-
|
|
430
|
+
{#snippet trigger()}
|
|
431
|
+
<Icon icon="mdi:cog" aria-hidden="true" />
|
|
432
|
+
{/snippet}
|
|
433
|
+
{#snippet children({ close })}
|
|
434
|
+
<div class="flowdrop-navbar__dropdown-group-header" role="presentation">
|
|
435
|
+
{appearance.label}
|
|
436
|
+
</div>
|
|
437
|
+
<!-- Three choices drawn as a segmented switch, each a menu radio so the
|
|
438
|
+
menu's keyboard walk reaches them. -->
|
|
439
|
+
<div
|
|
440
|
+
class="flowdrop-navbar__appearance"
|
|
441
|
+
role="presentation"
|
|
442
|
+
data-testid="navbar-appearance"
|
|
443
|
+
onkeydown={onAppearanceKeydown}
|
|
444
|
+
>
|
|
445
|
+
{#each appearanceOptions as option (option.value)}
|
|
446
|
+
<Button
|
|
447
|
+
variant="ghost"
|
|
448
|
+
size="sm"
|
|
449
|
+
role="menuitemradio"
|
|
450
|
+
aria-checked={currentTheme === option.value}
|
|
451
|
+
class="flowdrop-navbar__appearance-item {currentTheme === option.value
|
|
452
|
+
? 'flowdrop-navbar__appearance-item--selected'
|
|
453
|
+
: ''}"
|
|
454
|
+
data-value={option.value}
|
|
455
|
+
onclick={() => setTheme(option.value)}
|
|
456
|
+
>
|
|
457
|
+
{option.label}
|
|
458
|
+
</Button>
|
|
459
|
+
{/each}
|
|
460
|
+
</div>
|
|
461
|
+
{#if appearanceHint}
|
|
462
|
+
<p class="flowdrop-navbar__appearance-hint" data-testid="navbar-appearance-hint">
|
|
463
|
+
{appearanceHint}
|
|
464
|
+
</p>
|
|
465
|
+
{/if}
|
|
466
|
+
<div class="flowdrop-navbar__dropdown-divider" role="separator"></div>
|
|
467
|
+
<Button
|
|
468
|
+
variant="ghost"
|
|
469
|
+
role="menuitem"
|
|
470
|
+
class="flowdrop-navbar__dropdown-item flowdrop-navbar__dropdown-item--button"
|
|
471
|
+
data-testid="navbar-all-settings"
|
|
472
|
+
onclick={() => {
|
|
473
|
+
close();
|
|
474
|
+
isSettingsOpen = true;
|
|
475
|
+
}}
|
|
476
|
+
>
|
|
477
|
+
<span class="flowdrop-navbar__dropdown-label">{appearance.allSettings}</span>
|
|
478
|
+
<kbd class="flowdrop-navbar__dropdown-hint">{settingsHint}</kbd>
|
|
479
|
+
</Button>
|
|
480
|
+
{/snippet}
|
|
481
|
+
</Menu>
|
|
288
482
|
{/if}
|
|
289
483
|
</div>
|
|
290
484
|
</div>
|
|
@@ -320,20 +514,68 @@
|
|
|
320
514
|
.flowdrop-navbar__start {
|
|
321
515
|
display: flex;
|
|
322
516
|
align-items: center;
|
|
323
|
-
width:
|
|
324
|
-
min-width:
|
|
517
|
+
width: var(--fd-navbar-start-width);
|
|
518
|
+
min-width: var(--fd-navbar-start-width);
|
|
325
519
|
flex-shrink: 0;
|
|
326
520
|
}
|
|
327
521
|
|
|
328
522
|
.flowdrop-logo--container {
|
|
329
523
|
color: var(--fd-foreground);
|
|
524
|
+
max-width: 100%;
|
|
525
|
+
min-width: 0;
|
|
330
526
|
}
|
|
331
527
|
|
|
332
528
|
.flowdrop-logo--header {
|
|
333
529
|
/* Wordmark lockup is 5:1; keep it within the start column. */
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
530
|
+
display: block;
|
|
531
|
+
height: var(--fd-navbar-logo-height);
|
|
532
|
+
width: calc(var(--fd-navbar-logo-height) * 5);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.flowdrop-logo--link {
|
|
536
|
+
display: inline-block;
|
|
537
|
+
max-width: 100%;
|
|
538
|
+
color: inherit;
|
|
539
|
+
text-decoration: none;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/* The wordmark as a menu trigger: hover tint and a chevron that only appears on demand. */
|
|
543
|
+
:global(.flowdrop-logo--menu-trigger) {
|
|
544
|
+
gap: var(--fd-space-2xs);
|
|
545
|
+
margin-left: calc(var(--fd-space-xs) * -1);
|
|
546
|
+
padding: var(--fd-space-2xs) var(--fd-space-xs);
|
|
547
|
+
border-radius: var(--fd-control-radius);
|
|
548
|
+
color: var(--fd-foreground);
|
|
549
|
+
transition: background-color var(--fd-transition-fast);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
:global(.flowdrop-logo--menu-trigger:hover),
|
|
553
|
+
:global(.flowdrop-logo--menu-trigger--open) {
|
|
554
|
+
background-color: var(--fd-muted);
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
:global(.flowdrop-logo--menu-chevron) {
|
|
558
|
+
flex: none;
|
|
559
|
+
width: 0.875rem;
|
|
560
|
+
height: 0.875rem;
|
|
561
|
+
color: var(--fd-muted-foreground);
|
|
562
|
+
opacity: 0;
|
|
563
|
+
transition: opacity var(--fd-transition-fast);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
:global(.flowdrop-logo--menu-trigger:hover .flowdrop-logo--menu-chevron),
|
|
567
|
+
:global(.flowdrop-logo--menu-trigger:focus-visible .flowdrop-logo--menu-chevron),
|
|
568
|
+
:global(.flowdrop-logo--menu-trigger--open .flowdrop-logo--menu-chevron) {
|
|
569
|
+
opacity: 1;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/* Consumer logos are clamped so a wide one cannot push the bar into wrapping. */
|
|
573
|
+
.flowdrop-logo--image {
|
|
574
|
+
display: block;
|
|
575
|
+
max-height: 24px;
|
|
576
|
+
max-width: 100%;
|
|
577
|
+
width: auto;
|
|
578
|
+
object-fit: contain;
|
|
337
579
|
}
|
|
338
580
|
|
|
339
581
|
.flowdrop-navbar__center {
|
|
@@ -344,12 +586,25 @@
|
|
|
344
586
|
padding-left: 1rem;
|
|
345
587
|
}
|
|
346
588
|
|
|
589
|
+
/* Graphite: a 1px x 16px rule between the logo and the workflow name. */
|
|
590
|
+
.flowdrop-navbar__center::before {
|
|
591
|
+
content: '';
|
|
592
|
+
display: var(--fd-navbar-rule-display);
|
|
593
|
+
flex: none;
|
|
594
|
+
width: 1px;
|
|
595
|
+
height: 16px;
|
|
596
|
+
margin-right: var(--fd-space-md);
|
|
597
|
+
background: var(--fd-border-strong);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/* One row: the 48px bar has no room to stack the status chip over the title. */
|
|
347
601
|
.flowdrop-navbar__center-content {
|
|
348
602
|
display: flex;
|
|
349
|
-
flex-direction:
|
|
350
|
-
align-items:
|
|
351
|
-
justify-content:
|
|
352
|
-
gap:
|
|
603
|
+
flex-direction: row;
|
|
604
|
+
align-items: center;
|
|
605
|
+
justify-content: flex-start;
|
|
606
|
+
gap: var(--fd-space-md);
|
|
607
|
+
min-width: 0;
|
|
353
608
|
}
|
|
354
609
|
|
|
355
610
|
.flowdrop-navbar__title-container {
|
|
@@ -367,7 +622,7 @@
|
|
|
367
622
|
|
|
368
623
|
.flowdrop-navbar__title-text {
|
|
369
624
|
margin: 0;
|
|
370
|
-
font-size:
|
|
625
|
+
font-size: var(--fd-navbar-title-size);
|
|
371
626
|
font-weight: 600;
|
|
372
627
|
color: var(--fd-foreground);
|
|
373
628
|
white-space: nowrap;
|
|
@@ -428,7 +683,7 @@
|
|
|
428
683
|
gap: 0.25rem;
|
|
429
684
|
padding: 0.25rem 0.5rem;
|
|
430
685
|
color: var(--fd-foreground);
|
|
431
|
-
font-size: var(--fd-
|
|
686
|
+
font-size: var(--fd-navbar-title-size);
|
|
432
687
|
font-weight: 600;
|
|
433
688
|
}
|
|
434
689
|
|
|
@@ -454,6 +709,7 @@
|
|
|
454
709
|
}
|
|
455
710
|
|
|
456
711
|
.flowdrop-navbar__status-container {
|
|
712
|
+
order: var(--fd-navbar-status-order, 0);
|
|
457
713
|
display: flex;
|
|
458
714
|
justify-content: flex-start;
|
|
459
715
|
align-items: center;
|
|
@@ -464,7 +720,7 @@
|
|
|
464
720
|
align-items: center;
|
|
465
721
|
gap: 0.375rem;
|
|
466
722
|
padding: var(--fd-space-3xs) var(--fd-space-xs);
|
|
467
|
-
background-color: var(--fd-
|
|
723
|
+
background-color: var(--fd-navbar-status-bg);
|
|
468
724
|
border-radius: var(--fd-radius-md);
|
|
469
725
|
font-size: var(--fd-text-xs);
|
|
470
726
|
font-weight: 500;
|
|
@@ -479,7 +735,7 @@
|
|
|
479
735
|
}
|
|
480
736
|
|
|
481
737
|
.flowdrop-navbar__status-text {
|
|
482
|
-
color: var(--fd-
|
|
738
|
+
color: var(--fd-navbar-status-fg);
|
|
483
739
|
font-size: var(--fd-text-xs);
|
|
484
740
|
font-weight: 500;
|
|
485
741
|
}
|
|
@@ -519,114 +775,227 @@
|
|
|
519
775
|
gap: 0.5rem;
|
|
520
776
|
padding: 0.5rem 1rem;
|
|
521
777
|
text-decoration: none;
|
|
522
|
-
border: 1px solid var(--fd-border
|
|
778
|
+
border: 1px solid var(--fd-navbar-action-border);
|
|
523
779
|
border-radius: var(--fd-radius-md) 0 0 var(--fd-radius-md);
|
|
524
780
|
transition: all var(--fd-transition-normal);
|
|
525
781
|
font-weight: 500;
|
|
526
782
|
font-size: var(--fd-text-sm);
|
|
527
|
-
height: var(--fd-
|
|
783
|
+
height: var(--fd-navbar-action-height);
|
|
528
784
|
box-sizing: border-box;
|
|
529
|
-
background-color: var(--fd-
|
|
530
|
-
color: var(--fd-
|
|
785
|
+
background-color: var(--fd-navbar-action-bg);
|
|
786
|
+
color: var(--fd-navbar-action-fg);
|
|
531
787
|
border-right: none;
|
|
532
788
|
}
|
|
533
789
|
|
|
790
|
+
/* No menu to split off (a single action): a whole button, all corners round. */
|
|
791
|
+
.flowdrop-navbar__primary-action:last-child {
|
|
792
|
+
border-right: 1px solid var(--fd-navbar-action-border);
|
|
793
|
+
border-radius: var(--fd-radius-md);
|
|
794
|
+
}
|
|
795
|
+
|
|
534
796
|
.flowdrop-navbar__primary-action:hover {
|
|
535
|
-
background-color: var(--fd-
|
|
536
|
-
color: var(--fd-
|
|
797
|
+
background-color: var(--fd-navbar-action-hover-bg);
|
|
798
|
+
color: var(--fd-navbar-action-fg);
|
|
537
799
|
}
|
|
538
800
|
|
|
539
|
-
.
|
|
540
|
-
|
|
541
|
-
display: flex;
|
|
801
|
+
/* The Menu primitive renders these two inside its own scope, hence :global. */
|
|
802
|
+
:global(.flowdrop-navbar__dropdown) {
|
|
542
803
|
align-items: center;
|
|
543
|
-
height: var(--fd-
|
|
804
|
+
height: var(--fd-navbar-action-height);
|
|
544
805
|
}
|
|
545
806
|
|
|
546
|
-
.flowdrop-navbar__dropdown-trigger {
|
|
547
|
-
display: flex;
|
|
548
|
-
align-items: center;
|
|
807
|
+
:global(.flowdrop-navbar__dropdown-trigger) {
|
|
549
808
|
justify-content: center;
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
809
|
+
gap: 0;
|
|
810
|
+
width: var(--fd-navbar-chevron-width);
|
|
811
|
+
height: var(--fd-navbar-action-height);
|
|
812
|
+
border: 1px solid var(--fd-navbar-action-border);
|
|
553
813
|
border-left: none;
|
|
554
814
|
border-radius: 0 var(--fd-radius-md) var(--fd-radius-md) 0;
|
|
555
|
-
background-color: var(--fd-
|
|
556
|
-
color: var(--fd-
|
|
557
|
-
|
|
815
|
+
background-color: var(--fd-navbar-action-bg);
|
|
816
|
+
color: var(--fd-navbar-action-fg);
|
|
817
|
+
position: relative;
|
|
558
818
|
transition: all var(--fd-transition-normal);
|
|
559
819
|
box-sizing: border-box;
|
|
560
820
|
}
|
|
561
821
|
|
|
562
|
-
|
|
563
|
-
|
|
822
|
+
/* Graphite: the 1px inner divider that makes the split read as one button. */
|
|
823
|
+
:global(.flowdrop-navbar__dropdown-trigger)::before {
|
|
824
|
+
content: '';
|
|
825
|
+
position: absolute;
|
|
826
|
+
inset: 0 auto 0 0;
|
|
827
|
+
width: 1px;
|
|
828
|
+
background: var(--fd-navbar-action-divider);
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
:global(.flowdrop-navbar__dropdown-trigger:hover),
|
|
832
|
+
:global(.flowdrop-navbar__dropdown-trigger[aria-expanded='true']) {
|
|
833
|
+
background-color: var(--fd-navbar-action-hover-bg);
|
|
834
|
+
color: var(--fd-navbar-action-fg);
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/* The menu items, as the Menu primitive draws its own: one row, no rules between them. */
|
|
838
|
+
.flowdrop-navbar__dropdown-item {
|
|
839
|
+
display: flex;
|
|
840
|
+
align-items: center;
|
|
841
|
+
gap: var(--fd-space-xs);
|
|
842
|
+
box-sizing: border-box;
|
|
843
|
+
width: 100%;
|
|
844
|
+
min-height: var(--fd-menu-item-height);
|
|
845
|
+
padding: var(--fd-space-sm);
|
|
846
|
+
border-radius: var(--fd-menu-item-radius);
|
|
564
847
|
color: var(--fd-foreground);
|
|
848
|
+
font-size: var(--fd-text-sm);
|
|
849
|
+
font-weight: 500;
|
|
850
|
+
text-align: left;
|
|
851
|
+
text-decoration: none;
|
|
852
|
+
transition: background-color var(--fd-transition-fast);
|
|
565
853
|
}
|
|
566
854
|
|
|
567
|
-
.flowdrop-navbar__dropdown-
|
|
568
|
-
|
|
855
|
+
.flowdrop-navbar__dropdown-item:hover,
|
|
856
|
+
.flowdrop-navbar__dropdown-item:focus-visible {
|
|
857
|
+
background-color: var(--fd-muted);
|
|
569
858
|
color: var(--fd-foreground);
|
|
859
|
+
outline: none;
|
|
570
860
|
}
|
|
571
861
|
|
|
572
|
-
.flowdrop-navbar__dropdown-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
box-shadow: var(--fd-shadow-lg);
|
|
862
|
+
.flowdrop-navbar__dropdown-item :global(.flowdrop-navbar__dropdown-icon) {
|
|
863
|
+
flex: none;
|
|
864
|
+
width: 1em;
|
|
865
|
+
height: 1em;
|
|
866
|
+
color: var(--fd-muted-foreground);
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
.flowdrop-navbar__dropdown-label {
|
|
870
|
+
flex: 1;
|
|
871
|
+
min-width: 0;
|
|
583
872
|
overflow: hidden;
|
|
873
|
+
text-overflow: ellipsis;
|
|
874
|
+
white-space: nowrap;
|
|
584
875
|
}
|
|
585
876
|
|
|
586
|
-
.flowdrop-navbar__dropdown-item {
|
|
877
|
+
.flowdrop-navbar__dropdown-item :global(.flowdrop-navbar__dropdown-external) {
|
|
878
|
+
flex: none;
|
|
879
|
+
width: 0.75rem;
|
|
880
|
+
height: 0.75rem;
|
|
881
|
+
color: var(--fd-muted-foreground);
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
.flowdrop-navbar__dropdown-hint {
|
|
885
|
+
flex: none;
|
|
886
|
+
margin-left: auto;
|
|
887
|
+
padding-left: var(--fd-space-md);
|
|
888
|
+
color: var(--fd-muted-foreground);
|
|
889
|
+
font-family: inherit;
|
|
890
|
+
font-size: var(--fd-text-xs);
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
/* The same row as a link, on a <button>. */
|
|
894
|
+
:global(.flowdrop-navbar__dropdown-item--button .flowdrop-ui-button__label) {
|
|
587
895
|
display: flex;
|
|
896
|
+
flex: 1;
|
|
588
897
|
align-items: center;
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
898
|
+
min-width: 0;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
:global(.flowdrop-navbar__dropdown-item--button) {
|
|
902
|
+
display: flex;
|
|
903
|
+
justify-content: flex-start;
|
|
904
|
+
gap: var(--fd-space-xs);
|
|
905
|
+
box-sizing: border-box;
|
|
906
|
+
width: 100%;
|
|
907
|
+
height: auto;
|
|
908
|
+
min-height: var(--fd-menu-item-height);
|
|
909
|
+
padding: var(--fd-space-sm);
|
|
910
|
+
border-radius: var(--fd-menu-item-radius);
|
|
593
911
|
font-size: var(--fd-text-sm);
|
|
594
912
|
font-weight: 500;
|
|
595
|
-
transition: background-color var(--fd-transition-normal);
|
|
596
|
-
border: none;
|
|
597
|
-
width: 100%;
|
|
598
913
|
text-align: left;
|
|
599
|
-
background-color: transparent;
|
|
600
914
|
}
|
|
601
915
|
|
|
602
|
-
|
|
916
|
+
/* Appearance: a segmented switch (as the Segmented primitive draws it). */
|
|
917
|
+
.flowdrop-navbar__appearance {
|
|
918
|
+
display: flex;
|
|
919
|
+
gap: var(--fd-space-3xs);
|
|
920
|
+
margin: var(--fd-space-3xs) var(--fd-space-sm) 0;
|
|
921
|
+
padding: var(--fd-space-3xs);
|
|
603
922
|
background-color: var(--fd-muted);
|
|
923
|
+
border: 1px solid var(--fd-border-muted);
|
|
924
|
+
border-radius: var(--fd-control-radius);
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.flowdrop-navbar__appearance :global(.flowdrop-navbar__appearance-item) {
|
|
928
|
+
flex: 1 1 auto;
|
|
929
|
+
min-width: 0;
|
|
930
|
+
height: calc(var(--fd-control-sm) - var(--fd-space-2xs) - 2px);
|
|
931
|
+
padding: 0 var(--fd-space-xs);
|
|
932
|
+
border: 0;
|
|
933
|
+
border-radius: var(--fd-radius-md);
|
|
934
|
+
background: transparent;
|
|
935
|
+
color: var(--fd-muted-foreground);
|
|
936
|
+
font-family: inherit;
|
|
937
|
+
font-size: var(--fd-text-xs);
|
|
938
|
+
font-weight: 500;
|
|
939
|
+
line-height: 1;
|
|
940
|
+
white-space: nowrap;
|
|
941
|
+
overflow: hidden;
|
|
942
|
+
text-overflow: ellipsis;
|
|
943
|
+
cursor: pointer;
|
|
944
|
+
transition:
|
|
945
|
+
background-color var(--fd-transition-fast),
|
|
946
|
+
color var(--fd-transition-fast);
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
.flowdrop-navbar__appearance
|
|
950
|
+
:global(
|
|
951
|
+
.flowdrop-navbar__appearance-item:hover:not(.flowdrop-navbar__appearance-item--selected)
|
|
952
|
+
),
|
|
953
|
+
.flowdrop-navbar__appearance :global(.flowdrop-navbar__appearance-item:focus-visible) {
|
|
604
954
|
color: var(--fd-foreground);
|
|
605
955
|
}
|
|
606
956
|
|
|
607
|
-
.flowdrop-
|
|
608
|
-
|
|
957
|
+
.flowdrop-navbar__appearance :global(.flowdrop-navbar__appearance-item--selected) {
|
|
958
|
+
background-color: var(--fd-background);
|
|
959
|
+
color: var(--fd-foreground);
|
|
960
|
+
box-shadow: var(--fd-shadow-sm);
|
|
609
961
|
}
|
|
610
962
|
|
|
611
|
-
.flowdrop-
|
|
612
|
-
|
|
963
|
+
.flowdrop-navbar__appearance-hint {
|
|
964
|
+
margin: var(--fd-space-xs) var(--fd-space-sm) var(--fd-space-3xs);
|
|
965
|
+
color: var(--fd-muted-foreground);
|
|
966
|
+
font-size: var(--fd-text-xs);
|
|
967
|
+
line-height: 1.4;
|
|
613
968
|
}
|
|
614
969
|
|
|
615
970
|
.flowdrop-navbar__dropdown-divider {
|
|
616
971
|
height: 1px;
|
|
972
|
+
margin: var(--fd-space-xs) 0;
|
|
617
973
|
background-color: var(--fd-border);
|
|
618
|
-
margin: 0.25rem 0;
|
|
619
974
|
}
|
|
620
975
|
|
|
976
|
+
/* Sentence case, small and muted: a label, not a heading. */
|
|
621
977
|
.flowdrop-navbar__dropdown-group-header {
|
|
622
|
-
padding:
|
|
978
|
+
padding: var(--fd-space-xs) var(--fd-space-sm) var(--fd-space-3xs);
|
|
979
|
+
color: var(--fd-muted-foreground);
|
|
623
980
|
font-size: var(--fd-text-xs);
|
|
624
|
-
font-weight:
|
|
625
|
-
|
|
626
|
-
|
|
981
|
+
font-weight: 500;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
/* The ghost Workflow button; pressed while the panel it opens is open. */
|
|
985
|
+
:global(.flowdrop-navbar__workflow-btn) {
|
|
986
|
+
margin-right: var(--fd-space-sm);
|
|
627
987
|
color: var(--fd-muted-foreground);
|
|
628
988
|
}
|
|
629
989
|
|
|
990
|
+
:global(.flowdrop-navbar__workflow-btn:hover),
|
|
991
|
+
:global(.flowdrop-navbar__workflow-btn[aria-pressed='true']) {
|
|
992
|
+
color: var(--fd-foreground);
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
:global(.flowdrop-navbar__workflow-btn[aria-pressed='true']) {
|
|
996
|
+
background-color: var(--fd-muted);
|
|
997
|
+
}
|
|
998
|
+
|
|
630
999
|
.flowdrop-navbar__action {
|
|
631
1000
|
display: flex;
|
|
632
1001
|
align-items: center;
|
|
@@ -702,28 +1071,29 @@
|
|
|
702
1071
|
margin-left: var(--fd-space-md);
|
|
703
1072
|
}
|
|
704
1073
|
|
|
705
|
-
.flowdrop-navbar__settings-btn {
|
|
1074
|
+
:global(.flowdrop-navbar__settings-btn) {
|
|
706
1075
|
display: flex;
|
|
707
1076
|
align-items: center;
|
|
708
1077
|
justify-content: center;
|
|
709
|
-
width:
|
|
710
|
-
height:
|
|
711
|
-
border: 1px solid var(--fd-border);
|
|
1078
|
+
width: 32px;
|
|
1079
|
+
height: 32px;
|
|
1080
|
+
border: 1px solid var(--fd-navbar-icon-border);
|
|
712
1081
|
border-radius: var(--fd-radius-md);
|
|
713
|
-
background-color: var(--fd-
|
|
1082
|
+
background-color: var(--fd-navbar-icon-bg);
|
|
714
1083
|
color: var(--fd-muted-foreground);
|
|
715
1084
|
font-size: 1.25rem;
|
|
716
1085
|
cursor: pointer;
|
|
717
1086
|
transition: all var(--fd-transition-fast);
|
|
718
1087
|
}
|
|
719
1088
|
|
|
720
|
-
.flowdrop-navbar__settings-btn:hover
|
|
1089
|
+
:global(.flowdrop-navbar__settings-btn:hover),
|
|
1090
|
+
:global(.flowdrop-navbar__settings-btn[aria-expanded='true']) {
|
|
721
1091
|
background-color: var(--fd-muted);
|
|
722
1092
|
color: var(--fd-foreground);
|
|
723
|
-
border-color: var(--fd-border-
|
|
1093
|
+
border-color: var(--fd-navbar-icon-border-hover);
|
|
724
1094
|
}
|
|
725
1095
|
|
|
726
|
-
.flowdrop-navbar__settings-btn:active {
|
|
1096
|
+
:global(.flowdrop-navbar__settings-btn:active) {
|
|
727
1097
|
transform: scale(0.95);
|
|
728
1098
|
}
|
|
729
1099
|
|