@flowdrop/flowdrop 2.12.0 → 2.14.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 +54 -0
- package/dist/commands/executor.js +58 -8
- package/dist/commands/parser.js +3 -3
- package/dist/commands/types.d.ts +2 -0
- package/dist/components/App.svelte +11 -1
- package/dist/components/App.svelte.d.ts +9 -1
- package/dist/components/Button.svelte +7 -7
- package/dist/components/Button.svelte.d.ts +10 -0
- package/dist/components/CanvasBanner.svelte +19 -6
- package/dist/components/CanvasBanner.svelte.d.ts +15 -3
- package/dist/components/CanvasContextMenu.svelte +9 -9
- package/dist/components/CanvasContextMenu.svelte.d.ts +10 -0
- package/dist/components/CanvasToolbar.svelte +8 -7
- package/dist/components/CanvasToolbar.svelte.d.ts +10 -0
- package/dist/components/CanvasZoomControls.svelte +10 -9
- package/dist/components/CanvasZoomControls.svelte.d.ts +13 -0
- package/dist/components/ConfigForm.svelte +9 -17
- package/dist/components/ConfigForm.svelte.d.ts +10 -0
- package/dist/components/ConfigPanel.svelte +9 -5
- package/dist/components/ConfigPanel.svelte.d.ts +10 -0
- package/dist/components/EditorStatusBar.svelte +6 -5
- package/dist/components/EditorStatusBar.svelte.d.ts +7 -0
- package/dist/components/FlowDropEdge.svelte +15 -12
- package/dist/components/FlowDropEdge.svelte.d.ts +16 -0
- package/dist/components/InterfaceTag.svelte +13 -15
- package/dist/components/InterfaceTag.svelte.d.ts +19 -0
- package/dist/components/LoadingSpinner.svelte +8 -2
- package/dist/components/LoadingSpinner.svelte.d.ts +9 -0
- package/dist/components/Logo.svelte +11 -0
- package/dist/components/Logo.svelte.d.ts +9 -0
- package/dist/components/LogoWordmark.svelte +8 -3
- package/dist/components/LogoWordmark.svelte.d.ts +9 -0
- package/dist/components/LoopbackLanes.svelte +12 -6
- package/dist/components/LoopbackLanes.svelte.d.ts +13 -0
- package/dist/components/MarkdownDisplay.svelte +10 -3
- package/dist/components/MarkdownDisplay.svelte.d.ts +11 -0
- package/dist/components/Navbar.svelte +13 -5
- package/dist/components/Navbar.svelte.d.ts +14 -0
- package/dist/components/NodeInspector.svelte +7 -8
- package/dist/components/NodeInspector.svelte.d.ts +10 -0
- package/dist/components/NodeSidebar.svelte +9 -3
- package/dist/components/NodeSidebar.svelte.d.ts +10 -0
- package/dist/components/NodeStatusOverlay.svelte +30 -19
- package/dist/components/NodeStatusOverlay.svelte.d.ts +19 -0
- package/dist/components/NodeSwapPicker.svelte +1 -1
- package/dist/components/RunBar.svelte +10 -13
- package/dist/components/RunBar.svelte.d.ts +15 -0
- package/dist/components/RunsMenu.svelte +14 -13
- package/dist/components/RunsMenu.svelte.d.ts +15 -0
- package/dist/components/SchemaForm.svelte +10 -13
- package/dist/components/SchemaForm.svelte.d.ts +51 -0
- package/dist/components/SettingsPanel.svelte +5 -5
- package/dist/components/StatusIcon.svelte +14 -3
- package/dist/components/StatusIcon.svelte.d.ts +15 -0
- package/dist/components/StatusLabel.svelte +10 -2
- package/dist/components/StatusLabel.svelte.d.ts +11 -0
- package/dist/components/ThemeToggle.svelte +8 -5
- package/dist/components/ThemeToggle.svelte.d.ts +10 -0
- package/dist/components/UniversalNode.svelte +13 -5
- package/dist/components/UniversalNode.svelte.d.ts +15 -0
- package/dist/components/WorkflowInterfaceEntryCard.svelte +1 -1
- package/dist/components/WorkflowInterfaceEntryComposer.svelte +1 -2
- package/dist/components/ZoomTier.svelte +13 -10
- package/dist/components/ZoomTier.svelte.d.ts +14 -0
- package/dist/components/console/CommandConsole.svelte +9 -3
- package/dist/components/console/CommandConsole.svelte.d.ts +10 -0
- package/dist/components/console/ConsoleAutocomplete.svelte +4 -4
- package/dist/components/console/ConsoleAutocomplete.svelte.d.ts +5 -0
- package/dist/components/console/ConsoleInput.svelte +6 -4
- package/dist/components/console/ConsoleInput.svelte.d.ts +7 -0
- package/dist/components/console/ConsoleOutput.svelte +5 -3
- package/dist/components/console/ConsoleOutput.svelte.d.ts +6 -0
- package/dist/components/console/ConsoleStrip.svelte +9 -5
- package/dist/components/console/ConsoleStrip.svelte.d.ts +10 -0
- package/dist/components/form/FieldFactory.svelte +6 -2
- package/dist/components/form/FieldFactory.svelte.d.ts +46 -0
- package/dist/components/form/FormArray.svelte +9 -16
- package/dist/components/form/FormArray.svelte.d.ts +10 -0
- package/dist/components/form/FormArrayRows.svelte +8 -8
- package/dist/components/form/FormArrayRows.svelte.d.ts +11 -0
- package/dist/components/form/FormAutocomplete.svelte +6 -3
- package/dist/components/form/FormAutocomplete.svelte.d.ts +23 -0
- package/dist/components/form/FormCheckboxGroup.svelte +5 -5
- package/dist/components/form/FormCheckboxGroup.svelte.d.ts +6 -0
- package/dist/components/form/FormCodeEditor.svelte +8 -13
- package/dist/components/form/FormCodeEditor.svelte.d.ts +9 -0
- package/dist/components/form/FormField.svelte +7 -8
- package/dist/components/form/FormField.svelte.d.ts +10 -0
- package/dist/components/form/FormFieldLight.svelte +6 -5
- package/dist/components/form/FormFieldLight.svelte.d.ts +8 -0
- package/dist/components/form/FormFieldWrapper.svelte +8 -8
- package/dist/components/form/FormFieldWrapper.svelte.d.ts +9 -0
- package/dist/components/form/FormFieldset.svelte +6 -12
- package/dist/components/form/FormFieldset.svelte.d.ts +7 -0
- package/dist/components/form/FormMarkdownEditor.svelte +8 -15
- package/dist/components/form/FormMarkdownEditor.svelte.d.ts +9 -0
- package/dist/components/form/FormNumberField.svelte +5 -7
- package/dist/components/form/FormNumberField.svelte.d.ts +6 -0
- package/dist/components/form/FormPorts.svelte +133 -27
- package/dist/components/form/FormPorts.svelte.d.ts +19 -0
- package/dist/components/form/FormRangeField.svelte +5 -9
- package/dist/components/form/FormRangeField.svelte.d.ts +6 -0
- package/dist/components/form/FormSelect.svelte +5 -7
- package/dist/components/form/FormSelect.svelte.d.ts +6 -0
- package/dist/components/form/FormTemplateEditor.svelte +8 -16
- package/dist/components/form/FormTemplateEditor.svelte.d.ts +9 -0
- package/dist/components/form/FormTextField.svelte +5 -7
- package/dist/components/form/FormTextField.svelte.d.ts +6 -0
- package/dist/components/form/FormTextarea.svelte +5 -7
- package/dist/components/form/FormTextarea.svelte.d.ts +6 -0
- package/dist/components/form/FormToggle.svelte +6 -8
- package/dist/components/form/FormToggle.svelte.d.ts +7 -0
- package/dist/components/form/FormUISchemaRenderer.svelte +5 -9
- package/dist/components/form/FormUISchemaRenderer.svelte.d.ts +7 -0
- package/dist/components/interrupt/ChoicePrompt.svelte +6 -6
- package/dist/components/interrupt/ChoicePrompt.svelte.d.ts +7 -0
- package/dist/components/interrupt/ConfirmationPrompt.svelte +6 -5
- package/dist/components/interrupt/ConfirmationPrompt.svelte.d.ts +7 -0
- package/dist/components/interrupt/FormPrompt.svelte +6 -6
- package/dist/components/interrupt/FormPrompt.svelte.d.ts +7 -0
- package/dist/components/interrupt/InterruptBubble.svelte +10 -9
- package/dist/components/interrupt/InterruptBubble.svelte.d.ts +11 -0
- package/dist/components/interrupt/ReviewPrompt.svelte +5 -6
- package/dist/components/interrupt/ReviewPrompt.svelte.d.ts +7 -0
- package/dist/components/interrupt/TextInputPrompt.svelte +6 -6
- package/dist/components/interrupt/TextInputPrompt.svelte.d.ts +7 -0
- package/dist/components/nodes/AtomNode.svelte +31 -6
- package/dist/components/nodes/AtomNode.svelte.d.ts +15 -0
- package/dist/components/nodes/CaptionNode.svelte +50 -7
- package/dist/components/nodes/CaptionNode.svelte.d.ts +13 -0
- package/dist/components/nodes/GatewayNode.svelte +18 -11
- package/dist/components/nodes/GatewayNode.svelte.d.ts +21 -0
- package/dist/components/nodes/IdeaNode.svelte +47 -6
- package/dist/components/nodes/IdeaNode.svelte.d.ts +17 -0
- package/dist/components/nodes/NodeCard.svelte +26 -18
- package/dist/components/nodes/NodeCard.svelte.d.ts +20 -0
- package/dist/components/nodes/NodeConfigButton.svelte +15 -2
- package/dist/components/nodes/NodeConfigButton.svelte.d.ts +11 -0
- package/dist/components/nodes/NodeProblemMark.svelte +15 -10
- package/dist/components/nodes/NodeProblemMark.svelte.d.ts +16 -0
- package/dist/components/nodes/NodeTip.svelte +10 -7
- package/dist/components/nodes/NodeTip.svelte.d.ts +13 -0
- package/dist/components/nodes/NotesNode.svelte +30 -0
- package/dist/components/nodes/NotesNode.svelte.d.ts +14 -0
- package/dist/components/nodes/SimpleNode.svelte +35 -8
- package/dist/components/nodes/SimpleNode.svelte.d.ts +17 -0
- package/dist/components/nodes/SquareNode.svelte +38 -8
- package/dist/components/nodes/SquareNode.svelte.d.ts +17 -0
- package/dist/components/nodes/TerminalNode.svelte +24 -10
- package/dist/components/nodes/TerminalNode.svelte.d.ts +17 -0
- package/dist/components/nodes/ToolNode.svelte +14 -5
- package/dist/components/nodes/ToolNode.svelte.d.ts +15 -0
- package/dist/components/nodes/WorkflowNode.svelte +18 -15
- package/dist/components/nodes/WorkflowNode.svelte.d.ts +21 -0
- package/dist/components/playground/ChatBubble.svelte +4 -3
- package/dist/components/playground/ChatBubble.svelte.d.ts +5 -0
- package/dist/components/playground/ChatInput.svelte +11 -6
- package/dist/components/playground/ChatInput.svelte.d.ts +14 -0
- package/dist/components/playground/ChatPanel.svelte +15 -7
- package/dist/components/playground/ChatPanel.svelte.d.ts +17 -0
- package/dist/components/playground/ControlPanel.svelte +26 -9
- package/dist/components/playground/ControlPanel.svelte.d.ts +29 -0
- package/dist/components/playground/DockedPlayground.svelte +15 -11
- package/dist/components/playground/DockedPlayground.svelte.d.ts +16 -0
- package/dist/components/playground/ExecutionConsole.svelte +10 -5
- package/dist/components/playground/ExecutionConsole.svelte.d.ts +12 -0
- package/dist/components/playground/ExecutionList.svelte +13 -0
- package/dist/components/playground/ExecutionList.svelte.d.ts +11 -0
- package/dist/components/playground/ExecutionLogs.svelte +6 -9
- package/dist/components/playground/ExecutionLogs.svelte.d.ts +7 -0
- package/dist/components/playground/HeaderMenu.svelte +6 -8
- package/dist/components/playground/HeaderMenu.svelte.d.ts +9 -0
- package/dist/components/playground/HierarchyTrail.svelte +6 -6
- package/dist/components/playground/HierarchyTrail.svelte.d.ts +8 -0
- package/dist/components/playground/InputCollector.svelte +6 -5
- package/dist/components/playground/InputCollector.svelte.d.ts +7 -0
- package/dist/components/playground/InputFields.svelte +8 -12
- package/dist/components/playground/InputFields.svelte.d.ts +9 -0
- package/dist/components/playground/InterfaceInputForm.svelte +6 -13
- package/dist/components/playground/InterfaceInputForm.svelte.d.ts +9 -0
- package/dist/components/playground/InterfaceJsonInput.svelte +6 -5
- package/dist/components/playground/InterfaceJsonInput.svelte.d.ts +8 -0
- package/dist/components/playground/LogRow.svelte +4 -5
- package/dist/components/playground/LogRow.svelte.d.ts +6 -0
- package/dist/components/playground/MessageBubble.svelte +13 -7
- package/dist/components/playground/MessageBubble.svelte.d.ts +15 -0
- package/dist/components/playground/MessageCard.svelte +5 -2
- package/dist/components/playground/MessageCard.svelte.d.ts +6 -0
- package/dist/components/playground/MessageMarkdown.svelte +8 -9
- package/dist/components/playground/MessageMarkdown.svelte.d.ts +11 -0
- package/dist/components/playground/MessageNotice.svelte +7 -0
- package/dist/components/playground/MessageNotice.svelte.d.ts +5 -0
- package/dist/components/playground/MessageStream.svelte +8 -6
- package/dist/components/playground/MessageStream.svelte.d.ts +11 -0
- package/dist/components/playground/MessageTagChip.svelte +7 -7
- package/dist/components/playground/MessageTagChip.svelte.d.ts +10 -0
- package/dist/components/playground/MessageTagStrip.svelte +6 -3
- package/dist/components/playground/MessageTagStrip.svelte.d.ts +8 -0
- package/dist/components/playground/OriginBadge.svelte +7 -4
- package/dist/components/playground/OriginBadge.svelte.d.ts +8 -0
- package/dist/components/playground/PipelineKanbanView.svelte +14 -0
- package/dist/components/playground/PipelineKanbanView.svelte.d.ts +12 -0
- package/dist/components/playground/PipelinePanel.svelte +14 -0
- package/dist/components/playground/PipelinePanel.svelte.d.ts +12 -0
- package/dist/components/playground/PipelineTableView.svelte +14 -0
- package/dist/components/playground/PipelineTableView.svelte.d.ts +12 -0
- package/dist/components/playground/Playground.svelte +17 -11
- package/dist/components/playground/Playground.svelte.d.ts +20 -0
- package/dist/components/playground/PlaygroundApp.svelte +24 -10
- package/dist/components/playground/PlaygroundApp.svelte.d.ts +26 -0
- package/dist/components/playground/PlaygroundHeader.svelte +8 -12
- package/dist/components/playground/PlaygroundHeader.svelte.d.ts +11 -0
- package/dist/components/playground/PlaygroundModal.svelte +6 -8
- package/dist/components/playground/PlaygroundModal.svelte.d.ts +7 -0
- package/dist/components/playground/PlaygroundStudio.svelte +9 -0
- package/dist/components/playground/PlaygroundStudio.svelte.d.ts +7 -0
- package/dist/components/playground/PlaygroundSurface.svelte +19 -14
- package/dist/components/playground/PlaygroundSurface.svelte.d.ts +20 -0
- package/dist/components/playground/SessionManager.svelte +6 -5
- package/dist/components/playground/SessionManager.svelte.d.ts +7 -0
- package/dist/components/playground/StepsSummary.svelte +8 -9
- package/dist/components/playground/StepsSummary.svelte.d.ts +10 -0
- package/dist/components/primitives/Button.svelte +15 -7
- package/dist/components/primitives/Button.svelte.d.ts +18 -1
- package/dist/components/primitives/Card.svelte +8 -6
- package/dist/components/primitives/Card.svelte.d.ts +11 -0
- package/dist/components/primitives/Checkbox.svelte +8 -5
- package/dist/components/primitives/Checkbox.svelte.d.ts +11 -0
- package/dist/components/primitives/Chip.svelte +8 -4
- package/dist/components/primitives/Chip.svelte.d.ts +11 -0
- package/dist/components/primitives/Combobox.svelte +27 -18
- package/dist/components/primitives/Combobox.svelte.d.ts +33 -0
- package/dist/components/primitives/Composer.svelte +15 -16
- package/dist/components/primitives/Composer.svelte.d.ts +20 -0
- package/dist/components/primitives/EmptyState.svelte +9 -3
- package/dist/components/primitives/EmptyState.svelte.d.ts +11 -0
- package/dist/components/primitives/Field.svelte +12 -9
- package/dist/components/primitives/Field.svelte.d.ts +16 -0
- package/dist/components/primitives/IconButton.svelte +10 -5
- package/dist/components/primitives/IconButton.svelte.d.ts +13 -0
- package/dist/components/primitives/Menu.svelte +15 -14
- package/dist/components/primitives/Menu.svelte.d.ts +20 -0
- package/dist/components/primitives/Notice.svelte +11 -8
- package/dist/components/primitives/Notice.svelte.d.ts +14 -0
- package/dist/components/primitives/PanelHeader.svelte +10 -7
- package/dist/components/primitives/PanelHeader.svelte.d.ts +13 -0
- package/dist/components/primitives/Segmented.svelte +11 -4
- package/dist/components/primitives/Segmented.svelte.d.ts +14 -0
- package/dist/components/primitives/Select.svelte +13 -16
- package/dist/components/primitives/Select.svelte.d.ts +18 -0
- package/dist/components/primitives/StatusPill.svelte +11 -8
- package/dist/components/primitives/StatusPill.svelte.d.ts +15 -0
- package/dist/components/primitives/Switch.svelte +9 -6
- package/dist/components/primitives/Switch.svelte.d.ts +12 -0
- package/dist/components/primitives/Tabs.svelte +16 -15
- package/dist/components/primitives/Tabs.svelte.d.ts +22 -0
- package/dist/components/primitives/Toolbar.svelte +14 -13
- package/dist/components/primitives/Toolbar.svelte.d.ts +18 -0
- package/dist/components/primitives/ToolbarSeparator.svelte +5 -4
- package/dist/components/primitives/ToolbarSeparator.svelte.d.ts +7 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/editor/index.d.ts +1 -0
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/layout/toWorkflow.d.ts +8 -7
- package/dist/layout/toWorkflow.js +20 -40
- package/dist/messages/defaults.d.ts +24 -0
- package/dist/messages/defaults.js +15 -0
- package/dist/playground/index.d.ts +1 -1
- package/dist/skins/graphite.d.ts +1 -1
- package/dist/skins/graphite.js +1 -1
- package/dist/stores/settingsStore.svelte.js +3 -0
- package/dist/stores/workflowStore.svelte.js +24 -7
- package/dist/styles/base.css +2 -126
- package/dist/styles/tokenAliases.js +1 -0
- package/dist/styles/tokens.css +9 -5
- package/dist/svelte-app.d.ts +10 -1
- package/dist/svelte-app.js +2 -1
- package/dist/themes/classic.d.ts +9 -0
- package/dist/themes/classic.js +16 -0
- package/dist/themes/index.d.ts +7 -2
- package/dist/themes/index.js +20 -10
- package/dist/types/index.d.ts +7 -0
- package/dist/types/playground.d.ts +9 -0
- package/dist/types/settings.d.ts +6 -2
- package/dist/types/theme.d.ts +6 -2
- package/dist/utils/playgroundChat.d.ts +10 -0
- package/dist/utils/playgroundChat.js +25 -0
- package/dist/utils/portExposure.d.ts +24 -1
- package/dist/utils/portExposure.js +46 -13
- package/dist/utils/portUtils.d.ts +5 -1
- package/dist/utils/portUtils.js +15 -4
- package/package.json +2 -1
- package/dist/components/IconButton.svelte +0 -80
- package/dist/components/IconButton.svelte.d.ts +0 -30
- package/dist/themes/default.d.ts +0 -2
- package/dist/themes/default.js +0 -9
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
perpendicular axis of the toolbar, so it is set explicitly here).
|
|
2
|
+
@component
|
|
3
|
+
ToolbarSeparator: a thin divider between groups inside a `Toolbar`.
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
Pass the same `orientation` as the toolbar. The line is drawn across that axis.
|
|
6
|
+
|
|
7
|
+
Not exported from the package; not public API yet.
|
|
7
8
|
-->
|
|
8
9
|
|
|
9
10
|
<script lang="ts">
|
|
@@ -2,6 +2,13 @@ interface Props {
|
|
|
2
2
|
/** Axis of the toolbar this sits in; the line is drawn across it */
|
|
3
3
|
orientation?: 'horizontal' | 'vertical';
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* ToolbarSeparator: a thin divider between groups inside a `Toolbar`.
|
|
7
|
+
*
|
|
8
|
+
* Pass the same `orientation` as the toolbar. The line is drawn across that axis.
|
|
9
|
+
*
|
|
10
|
+
* Not exported from the package; not public API yet.
|
|
11
|
+
*/
|
|
5
12
|
declare const ToolbarSeparator: import("svelte").Component<Props, {}, "">;
|
|
6
13
|
type ToolbarSeparator = ReturnType<typeof ToolbarSeparator>;
|
|
7
14
|
export default ToolbarSeparator;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export { AgentSpecExecutionService } from '../services/agentSpecExecutionService
|
|
|
78
78
|
export type { AgentSpecExecutionHandle } from '../services/agentSpecExecutionService.js';
|
|
79
79
|
export { workflowSchema, WORKFLOW_SCHEMA_VERSION } from '../schemas/index.js';
|
|
80
80
|
export type { FlowDropTheme, FlowDropThemeName, FlowDropThemeConfig, FlowDropDisplayConfig } from '../types/theme.js';
|
|
81
|
-
export { defaultTheme, minimalTheme, resolveTheme } from '../themes/index.js';
|
|
81
|
+
export { classicTheme, defaultTheme, minimalTheme, normalizeThemeName, resolveTheme } from '../themes/index.js';
|
|
82
82
|
export type { FlowDropSkin, FlowDropSkinName, FlowDropSkinTokens } from '../types/skin.js';
|
|
83
83
|
export { slateSkin, defaultSkin } from '../skins/index.js';
|
|
84
84
|
export type { ThemePreference, ResolvedTheme, ColorSchemeOption, HostColorSchemeValue } from '../stores/settingsStore.svelte.js';
|
package/dist/core/index.js
CHANGED
|
@@ -87,7 +87,7 @@ export { AgentSpecExecutionService } from '../services/agentSpecExecutionService
|
|
|
87
87
|
// Workflow JSON Schema
|
|
88
88
|
// ============================================================================
|
|
89
89
|
export { workflowSchema, WORKFLOW_SCHEMA_VERSION } from '../schemas/index.js';
|
|
90
|
-
export { defaultTheme, minimalTheme, resolveTheme } from '../themes/index.js';
|
|
90
|
+
export { classicTheme, defaultTheme, minimalTheme, normalizeThemeName, resolveTheme } from '../themes/index.js';
|
|
91
91
|
export { slateSkin, defaultSkin } from '../skins/index.js';
|
|
92
92
|
export { getTheme as theme, getResolvedTheme as resolvedTheme, setTheme, toggleTheme, cycleTheme, initializeTheme, isThemeInitialized } from '../stores/settingsStore.svelte.js';
|
|
93
93
|
// ============================================================================
|
package/dist/editor/index.d.ts
CHANGED
|
@@ -98,6 +98,7 @@ export type { AuthProvider, StaticAuthConfig, CallbackAuthConfig } from '../type
|
|
|
98
98
|
export type { FlowDropEventHandlers, FlowDropFeatures, WorkflowChangeType } from '../types/events.js';
|
|
99
99
|
export type { EndpointConfig } from '../config/endpoints.js';
|
|
100
100
|
export type { UIAction } from '../commands/types.js';
|
|
101
|
+
export type { EditorPlaygroundConfig } from '../types/playground.js';
|
|
101
102
|
export type { FlowDropMountOptions, MountedFlowDropApp, NavbarAction, NavbarBranding } from '../svelte-app.js';
|
|
102
103
|
export type { ContextMenuActions, ContextMenuContext, ContextMenuEntry, ContextMenuOptions, ContextMenuTarget } from './contextMenu.js';
|
|
103
104
|
export type { NodeComponentProps, NodeComponentRegistration, FlowDropPluginConfig, PluginNodeDefinition } from '../registry/index.js';
|
package/dist/layout/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export type { LayoutPrimitive, LayoutStrategy, LayoutProposal, LayoutChanges, Be
|
|
|
13
13
|
export { inspect } from './inspect.js';
|
|
14
14
|
export { sweep, formatSweep } from './sweep.js';
|
|
15
15
|
export type { SweepPhase, SweepResult } from './sweep.js';
|
|
16
|
-
export { applyProposalToNodes, applySweepToNodes,
|
|
16
|
+
export { applyProposalToNodes, applySweepToNodes, portsConfigForOrder } from './toWorkflow.js';
|
|
17
17
|
export type { NodeLayoutUpdate } from './toWorkflow.js';
|
|
18
18
|
export { loopbackLanes } from './geometry.js';
|
|
19
19
|
export type { LoopbackLane } from './geometry.js';
|
package/dist/layout/index.js
CHANGED
|
@@ -9,6 +9,6 @@ export { fromWorkflow } from './fromWorkflow.js';
|
|
|
9
9
|
export { propose, beautify, columnRanks, columnGrid, formatProposal, formatBeautify, STRATEGY_ORDER } from './primitives.js';
|
|
10
10
|
export { inspect } from './inspect.js';
|
|
11
11
|
export { sweep, formatSweep } from './sweep.js';
|
|
12
|
-
export { applyProposalToNodes, applySweepToNodes,
|
|
12
|
+
export { applyProposalToNodes, applySweepToNodes, portsConfigForOrder } from './toWorkflow.js';
|
|
13
13
|
export { loopbackLanes } from './geometry.js';
|
|
14
14
|
export { lanePath } from './lanePath.js';
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The executor dispatches the result: a new `position`, and for a port reorder the node's whole
|
|
5
5
|
* next `data.config` with `ports` rebuilt so the stored order matches the new handle order (D6).
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* a direction that ends up in default order with no exposure
|
|
9
|
-
* ports are always written last.
|
|
6
|
+
* Hidden ports, and entries for ports the node does not have, keep their places; only the visible
|
|
7
|
+
* ports trade places, among the slots the visible ports already held. The write itself is the
|
|
8
|
+
* Ports tab's (`buildPortsConfig`), so a direction that ends up in default order with no exposure
|
|
9
|
+
* override stores nothing. Reserved ports are always written last.
|
|
10
10
|
*
|
|
11
11
|
* @module layout/toWorkflow
|
|
12
12
|
*/
|
|
@@ -25,10 +25,11 @@ export interface NodeLayoutUpdate {
|
|
|
25
25
|
}
|
|
26
26
|
type Direction = 'inputs' | 'outputs';
|
|
27
27
|
/**
|
|
28
|
-
* The `ports` config after the visible ports of one direction take the order `to`.
|
|
29
|
-
*
|
|
28
|
+
* The `ports` config after the visible ports of one direction take the order `to`. The visible
|
|
29
|
+
* ports trade places among the slots they already held; hidden ports keep theirs. Written by
|
|
30
|
+
* `buildPortsConfig`, like every other `ports` edit; `undefined` when nothing needs storing.
|
|
30
31
|
*/
|
|
31
|
-
export declare function
|
|
32
|
+
export declare function portsConfigForOrder(node: WorkflowNode, direction: Direction, to: readonly string[]): PortsConfig | undefined;
|
|
32
33
|
/**
|
|
33
34
|
* The updates for the accepted proposals, one per node touched, in node order of first use.
|
|
34
35
|
* Refused proposals are skipped. Several proposals for one node apply in sequence.
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The executor dispatches the result: a new `position`, and for a port reorder the node's whole
|
|
5
5
|
* next `data.config` with `ports` rebuilt so the stored order matches the new handle order (D6).
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* a direction that ends up in default order with no exposure
|
|
9
|
-
* ports are always written last.
|
|
6
|
+
* Hidden ports, and entries for ports the node does not have, keep their places; only the visible
|
|
7
|
+
* ports trade places, among the slots the visible ports already held. The write itself is the
|
|
8
|
+
* Ports tab's (`buildPortsConfig`), so a direction that ends up in default order with no exposure
|
|
9
|
+
* override stores nothing. Reserved ports are always written last.
|
|
10
10
|
*
|
|
11
11
|
* @module layout/toWorkflow
|
|
12
12
|
*/
|
|
13
13
|
import { dynamicPortToNodePort } from '../types/index.js';
|
|
14
|
-
import {
|
|
14
|
+
import { buildPortsConfig, isPortExposed, isReservedPort, orderPortsFor } from '../utils/portUtils.js';
|
|
15
15
|
/** Every port of a direction the node has (hidden ones too), as the card builds them. */
|
|
16
16
|
function allPorts(node, direction) {
|
|
17
17
|
const metadata = node.data?.metadata;
|
|
@@ -24,48 +24,28 @@ function allPorts(node, direction) {
|
|
|
24
24
|
];
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
* The `ports` config after the visible ports of one direction take the order `to`.
|
|
28
|
-
*
|
|
27
|
+
* The `ports` config after the visible ports of one direction take the order `to`. The visible
|
|
28
|
+
* ports trade places among the slots they already held; hidden ports keep theirs. Written by
|
|
29
|
+
* `buildPortsConfig`, like every other `ports` edit; `undefined` when nothing needs storing.
|
|
29
30
|
*/
|
|
30
|
-
export function
|
|
31
|
-
const stored = node.data?.config?.ports
|
|
32
|
-
const entries = stored[direction];
|
|
31
|
+
export function portsConfigForOrder(node, direction, to) {
|
|
32
|
+
const stored = node.data?.config?.ports;
|
|
33
|
+
const entries = stored?.[direction];
|
|
33
34
|
const ports = allPorts(node, direction);
|
|
34
|
-
const
|
|
35
|
-
const current = orderPortsFor(ports, entries).map((p) => p.id);
|
|
35
|
+
const current = orderPortsFor(ports, entries);
|
|
36
36
|
// The visible ports hold slots in the current order; `to` refills them. Hidden ports stay put.
|
|
37
|
+
const byId = new Map(ports.map((p) => [p.id, p]));
|
|
37
38
|
const wanted = new Set(to);
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
const order = [
|
|
41
|
-
slots.forEach((slot, i) => {
|
|
42
|
-
order[slot] = refill[i];
|
|
43
|
-
});
|
|
39
|
+
const refill = to.flatMap((id) => byId.get(id) ?? []);
|
|
40
|
+
let next = 0;
|
|
41
|
+
const order = current.map((p) => (wanted.has(p.id) ? (refill[next++] ?? p) : p));
|
|
44
42
|
// Reserved ports (trigger, tool, error, loop_back) are written last, the way the card shows
|
|
45
43
|
// them, whatever slot an older stored order gave them (Q3).
|
|
46
|
-
const reserved = new Set(ports.filter(isReservedPort).map((p) => p.id));
|
|
47
44
|
const tidy = [
|
|
48
|
-
...order.filter((
|
|
49
|
-
...order.filter((
|
|
45
|
+
...order.filter((p) => !isReservedPort(p)),
|
|
46
|
+
...order.filter((p) => isReservedPort(p))
|
|
50
47
|
];
|
|
51
|
-
|
|
52
|
-
const next = tidy.map((id) => ({ ...(byId.get(id) ?? { id }) }));
|
|
53
|
-
// Entries for ports the node no longer has stay as they were.
|
|
54
|
-
for (const entry of entries ?? [])
|
|
55
|
-
if (!known.has(entry.id))
|
|
56
|
-
next.push({ ...entry });
|
|
57
|
-
const defaultOrder = byDefaultOrder(ports).map((p) => p.id);
|
|
58
|
-
const keep = next.some((e, i) => e.id !== defaultOrder[i]) || next.some((e) => e.exposed !== undefined);
|
|
59
|
-
const result = { ...stored };
|
|
60
|
-
if (keep)
|
|
61
|
-
result[direction] = next;
|
|
62
|
-
else
|
|
63
|
-
delete result[direction];
|
|
64
|
-
for (const key of ['inputs', 'outputs']) {
|
|
65
|
-
if (result[key]?.length === 0)
|
|
66
|
-
delete result[key];
|
|
67
|
-
}
|
|
68
|
-
return Object.keys(result).length === 0 ? undefined : result;
|
|
48
|
+
return buildPortsConfig(stored, direction, tidy, ports, (p) => isPortExposed(p, entries));
|
|
69
49
|
}
|
|
70
50
|
/**
|
|
71
51
|
* The updates for the accepted proposals, one per node touched, in node order of first use.
|
|
@@ -92,7 +72,7 @@ export function applyProposalToNodes(nodes, proposals) {
|
|
|
92
72
|
const change = proposal.changes.ports?.[direction];
|
|
93
73
|
if (!change)
|
|
94
74
|
continue;
|
|
95
|
-
const ports =
|
|
75
|
+
const ports = portsConfigForOrder(next, direction, change.to);
|
|
96
76
|
const config = { ...(next.data?.config ?? {}) };
|
|
97
77
|
if (ports)
|
|
98
78
|
config.ports = ports;
|
|
@@ -28,6 +28,30 @@ export declare const defaultMessages: {
|
|
|
28
28
|
readonly no: "No";
|
|
29
29
|
};
|
|
30
30
|
readonly form: {
|
|
31
|
+
readonly ports: {
|
|
32
|
+
readonly hide: ({ port }: {
|
|
33
|
+
port: string;
|
|
34
|
+
}) => string;
|
|
35
|
+
readonly show: ({ port }: {
|
|
36
|
+
port: string;
|
|
37
|
+
}) => string;
|
|
38
|
+
readonly shown: "Shown on the canvas";
|
|
39
|
+
readonly hidden: "Hidden from the canvas";
|
|
40
|
+
readonly locked: ({ port }: {
|
|
41
|
+
port: string;
|
|
42
|
+
}) => string;
|
|
43
|
+
readonly lockedHint: "Always shown. The node type decides this port.";
|
|
44
|
+
readonly wired: ({ port }: {
|
|
45
|
+
port: string;
|
|
46
|
+
}) => string;
|
|
47
|
+
readonly wiredHint: ({ n }: {
|
|
48
|
+
n: number;
|
|
49
|
+
}) => string;
|
|
50
|
+
readonly published: ({ port }: {
|
|
51
|
+
port: string;
|
|
52
|
+
}) => string;
|
|
53
|
+
readonly publishedHint: "On the workflow interface. Remove it from the interface to hide it.";
|
|
54
|
+
};
|
|
31
55
|
readonly array: {
|
|
32
56
|
readonly itemLabel: ({ n }: {
|
|
33
57
|
n: number;
|
|
@@ -28,6 +28,21 @@ export const defaultMessages = {
|
|
|
28
28
|
no: 'No'
|
|
29
29
|
},
|
|
30
30
|
form: {
|
|
31
|
+
// The Ports tab: Show/Hide per port.
|
|
32
|
+
ports: {
|
|
33
|
+
hide: ({ port }) => `Hide port ${port}`,
|
|
34
|
+
show: ({ port }) => `Show port ${port}`,
|
|
35
|
+
shown: 'Shown on the canvas',
|
|
36
|
+
hidden: 'Hidden from the canvas',
|
|
37
|
+
locked: ({ port }) => `${port} is always shown`,
|
|
38
|
+
lockedHint: 'Always shown. The node type decides this port.',
|
|
39
|
+
wired: ({ port }) => `${port} is connected and can't be hidden`,
|
|
40
|
+
wiredHint: ({ n }) => n === 1
|
|
41
|
+
? 'Connected (1). Remove its connection on the canvas to hide it.'
|
|
42
|
+
: `Connected (${n}). Remove its connections on the canvas to hide it.`,
|
|
43
|
+
published: ({ port }) => `${port} is on the workflow interface and can't be hidden`,
|
|
44
|
+
publishedHint: 'On the workflow interface. Remove it from the interface to hide it.'
|
|
45
|
+
},
|
|
31
46
|
array: {
|
|
32
47
|
// Item-level controls — `n` is the 1-based item position the user sees.
|
|
33
48
|
itemLabel: ({ n }) => `Item ${n}`,
|
|
@@ -167,7 +167,7 @@ export type { NodeStatusScope } from '../stores/playgroundStore.svelte.js';
|
|
|
167
167
|
* mode builds on.
|
|
168
168
|
*/
|
|
169
169
|
export { RunController, type RunControllerOptions, type RunControllerDeps } from '../stores/runController.svelte.js';
|
|
170
|
-
export type { PlaygroundSession, PlaygroundMessage, PlaygroundInputField, PlaygroundMessageRequest, PlaygroundTurnResult, PlaygroundTurnResponse, PlaygroundMessagesResult, PlaygroundConfig, PlaygroundMode, PlaygroundSessionStatus, PlaygroundMessageRole, PlaygroundMessageLevel, PlaygroundMessageMetadata, PlaygroundMessageDisplay, ResolvedMessageDisplay, PlaygroundMessageOrigin, PlaygroundApiResponse, PlaygroundSessionsResponse, PlaygroundSessionResponse, PlaygroundMessageResponse, PlaygroundMessagesApiResponse, PlaygroundExecution, SessionRun, SessionRunsResult, SessionRunsResponse, SessionThirdPartySettings, VersionDivider, VersionDividerAnchor } from '../types/playground.js';
|
|
170
|
+
export type { PlaygroundSession, PlaygroundMessage, PlaygroundInputField, PlaygroundMessageRequest, PlaygroundTurnResult, PlaygroundTurnResponse, PlaygroundMessagesResult, PlaygroundConfig, EditorPlaygroundConfig, PlaygroundMode, PlaygroundSessionStatus, PlaygroundMessageRole, PlaygroundMessageLevel, PlaygroundMessageMetadata, PlaygroundMessageDisplay, ResolvedMessageDisplay, PlaygroundMessageOrigin, PlaygroundApiResponse, PlaygroundSessionsResponse, PlaygroundSessionResponse, PlaygroundMessageResponse, PlaygroundMessagesApiResponse, PlaygroundExecution, SessionRun, SessionRunsResult, SessionRunsResponse, SessionThirdPartySettings, VersionDivider, VersionDividerAnchor } from '../types/playground.js';
|
|
171
171
|
export { resolvePlaygroundInputMode, interfaceFormEntries, interfaceFormSchema, collectInterfaceInputs, playgroundChatIssues, type InterfaceInputsResult, type PlaygroundInputMode, type PlaygroundChatIssue, type PlaygroundChatInputKey } from '../utils/workflowInterface.js';
|
|
172
172
|
export { resolvePlaygroundChat, type ResolvedPlaygroundChat } from '../utils/playgroundChat.js';
|
|
173
173
|
export { PLAYGROUND_SESSION_MARK, isPlaygroundSession, playgroundSessionsOf, isRunStale, versionDividersFromRuns } from '../utils/sessionRuns.js';
|
package/dist/skins/graphite.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type { FlowDropSkin } from '../types/skin.js';
|
|
|
12
12
|
*
|
|
13
13
|
* This is not the flowdrop.io or Factorial brand kit. Every token a colour
|
|
14
14
|
* role needs is set here in both modes, so nothing falls back to the blue
|
|
15
|
-
* of the
|
|
15
|
+
* of the Classic theme.
|
|
16
16
|
*
|
|
17
17
|
* The font is named, not loaded: import `@flowdrop/flowdrop/styles/fonts/inter.css`
|
|
18
18
|
* (or serve the same @font-face) to get Inter; without it the stack falls
|
package/dist/skins/graphite.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* This is not the flowdrop.io or Factorial brand kit. Every token a colour
|
|
13
13
|
* role needs is set here in both modes, so nothing falls back to the blue
|
|
14
|
-
* of the
|
|
14
|
+
* of the Classic theme.
|
|
15
15
|
*
|
|
16
16
|
* The font is named, not loaded: import `@flowdrop/flowdrop/styles/fonts/inter.css`
|
|
17
17
|
* (or serve the same @font-face) to get Inter; without it the stack falls
|
|
@@ -13,6 +13,7 @@ import { untrack } from 'svelte';
|
|
|
13
13
|
import { DEFAULT_SETTINGS, SETTINGS_STORAGE_KEY, normalizeGridSize, normalizeLayoutGap } from '../types/settings.js';
|
|
14
14
|
import { DEFAULT_LAYOUT_GAP_X, DEFAULT_LAYOUT_GAP_Y } from '../layout/types.js';
|
|
15
15
|
import { logger } from '../utils/logger.js';
|
|
16
|
+
import { normalizeThemeName } from '../themes/index.js';
|
|
16
17
|
// =========================================================================
|
|
17
18
|
// Internal State
|
|
18
19
|
// =========================================================================
|
|
@@ -114,6 +115,8 @@ function deepMergeSettings(target, source) {
|
|
|
114
115
|
result.ui.sheetWidths = { ...target.ui.sheetWidths, ...source.ui.sheetWidths };
|
|
115
116
|
}
|
|
116
117
|
}
|
|
118
|
+
// A theme saved under its old name ('default', until 2.14) loads as 'classic'.
|
|
119
|
+
result.ui.theme = normalizeThemeName(result.ui.theme);
|
|
117
120
|
// Merge behavior settings
|
|
118
121
|
if (source.behavior) {
|
|
119
122
|
result.behavior = { ...result.behavior, ...source.behavior };
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import { DEFAULT_WORKFLOW_FORMAT } from '../types/index.js';
|
|
14
14
|
import { WORKFLOW_SCHEMA_VERSION } from '../schemas/index.js';
|
|
15
15
|
import { interfaceBoundHandles, rewriteInterfaceBindings } from '../utils/workflowInterface.js';
|
|
16
|
-
import { followInterfaceInputEdit, rewritePlaygroundReplies, withoutInterfaceTurns } from '../utils/playgroundChat.js';
|
|
16
|
+
import { followInterfaceInputEdit, rewritePlaygroundReplies, withoutInterfaceTurns, withoutRepliesOnNodes } from '../utils/playgroundChat.js';
|
|
17
17
|
/**
|
|
18
18
|
* Safely build updated workflow metadata, providing defaults for required fields.
|
|
19
19
|
*
|
|
@@ -394,6 +394,22 @@ export class WorkflowStore {
|
|
|
394
394
|
this.#history.push(workflowToPush, { description });
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
+
/**
|
|
398
|
+
* The workflow with Playground replies on nodes it lost since the current one
|
|
399
|
+
* dropped, so every way of removing a node (canvas, console, clear) keeps the
|
|
400
|
+
* replies pointing at live nodes. Cheap when nothing is stored: node moves
|
|
401
|
+
* call this on every drag.
|
|
402
|
+
*/
|
|
403
|
+
#withoutRepliesOnRemovedNodes(next) {
|
|
404
|
+
const previous = this.#workflow;
|
|
405
|
+
if (!previous || previous.nodes === next.nodes)
|
|
406
|
+
return next;
|
|
407
|
+
if (!next.playground?.chat?.replies?.length)
|
|
408
|
+
return next;
|
|
409
|
+
const kept = new Set(next.nodes.map((node) => node.id));
|
|
410
|
+
const removed = new Set(previous.nodes.map((node) => node.id).filter((id) => !kept.has(id)));
|
|
411
|
+
return withoutRepliesOnNodes(next, removed);
|
|
412
|
+
}
|
|
397
413
|
// -----------------------------------------------------------------------
|
|
398
414
|
// Mutation actions
|
|
399
415
|
// -----------------------------------------------------------------------
|
|
@@ -422,7 +438,7 @@ export class WorkflowStore {
|
|
|
422
438
|
* for every small change. History is pushed by specific actions or drag handlers.
|
|
423
439
|
*/
|
|
424
440
|
updateWorkflow(workflow) {
|
|
425
|
-
this.#workflow = workflow;
|
|
441
|
+
this.#workflow = this.#withoutRepliesOnRemovedNodes(workflow);
|
|
426
442
|
this.#bumpVersion();
|
|
427
443
|
this.#notifyWorkflowChange('metadata');
|
|
428
444
|
}
|
|
@@ -452,14 +468,14 @@ export class WorkflowStore {
|
|
|
452
468
|
}
|
|
453
469
|
// Generate unique version identifier
|
|
454
470
|
const versionId = `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
455
|
-
this.#workflow = {
|
|
471
|
+
this.#workflow = this.#withoutRepliesOnRemovedNodes({
|
|
456
472
|
...this.#workflow,
|
|
457
473
|
nodes,
|
|
458
474
|
metadata: buildMetadata(this.#workflow.metadata, {
|
|
459
475
|
versionId,
|
|
460
476
|
updateNumber: (this.#workflow.metadata?.updateNumber ?? 0) + 1
|
|
461
477
|
})
|
|
462
|
-
};
|
|
478
|
+
});
|
|
463
479
|
this.#bumpVersion();
|
|
464
480
|
this.#notifyWorkflowChange('node_move');
|
|
465
481
|
}
|
|
@@ -518,12 +534,12 @@ export class WorkflowStore {
|
|
|
518
534
|
removeNode(nodeId) {
|
|
519
535
|
if (!this.#workflow)
|
|
520
536
|
return;
|
|
521
|
-
this.#workflow = {
|
|
537
|
+
this.#workflow = this.#withoutRepliesOnRemovedNodes({
|
|
522
538
|
...this.#workflow,
|
|
523
539
|
nodes: this.#workflow.nodes.filter((node) => node.id !== nodeId),
|
|
524
540
|
edges: this.#workflow.edges.filter((edge) => edge.source !== nodeId && edge.target !== nodeId),
|
|
525
541
|
metadata: buildMetadata(this.#workflow.metadata)
|
|
526
|
-
};
|
|
542
|
+
});
|
|
527
543
|
this.#pushToHistory('Delete node');
|
|
528
544
|
this.#bumpVersion();
|
|
529
545
|
this.#notifyWorkflowChange('node_remove');
|
|
@@ -675,7 +691,7 @@ export class WorkflowStore {
|
|
|
675
691
|
batchUpdate(updates) {
|
|
676
692
|
if (!this.#workflow)
|
|
677
693
|
return;
|
|
678
|
-
|
|
694
|
+
const next = {
|
|
679
695
|
...this.#workflow,
|
|
680
696
|
...(updates.nodes && { nodes: updates.nodes }),
|
|
681
697
|
...(updates.edges && { edges: updates.edges }),
|
|
@@ -692,6 +708,7 @@ export class WorkflowStore {
|
|
|
692
708
|
...('playground' in updates && { playground: updates.playground }),
|
|
693
709
|
metadata: buildMetadata(this.#workflow.metadata, updates.metadata ?? undefined)
|
|
694
710
|
};
|
|
711
|
+
this.#workflow = updates.nodes ? this.#withoutRepliesOnRemovedNodes(next) : next;
|
|
695
712
|
this.#pushToHistory('Batch update');
|
|
696
713
|
this.#bumpVersion();
|
|
697
714
|
this.#notifyWorkflowChange('metadata');
|
package/dist/styles/base.css
CHANGED
|
@@ -399,8 +399,8 @@
|
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
.flowdrop-btn--sm {
|
|
402
|
-
/*
|
|
403
|
-
line without callers overriding either. */
|
|
402
|
+
/* The 28px control height (--fd-size-icon-btn), so a small button and an
|
|
403
|
+
icon button sit on one line without callers overriding either. */
|
|
404
404
|
padding: 0 var(--fd-space-md);
|
|
405
405
|
font-size: var(--fd-text-xs);
|
|
406
406
|
min-height: var(--fd-size-icon-btn);
|
|
@@ -412,130 +412,6 @@
|
|
|
412
412
|
min-height: var(--fd-space-6xl);
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
-
/* ───────────────────────────────────────────────────────────────────────────
|
|
416
|
-
Icon buttons — square, icon-only. The typed primitive IconButton.svelte
|
|
417
|
-
routes here (the same way Button.svelte routes through .flowdrop-btn). It
|
|
418
|
-
composes onto .flowdrop-btn, then overrides geometry to a fixed square and
|
|
419
|
-
layers a tint variant. Corners follow --fd-control-radius so the Drafter
|
|
420
|
-
theme gets crisp icon buttons alongside its form controls.
|
|
421
|
-
|
|
422
|
-
Sizes: md (default) is 32px with a 16px glyph — the dominant size across the
|
|
423
|
-
library (form-array actions, modal closes, toolbars). sm maps to the
|
|
424
|
-
canonical --fd-size-icon-btn token (28px); lg is 36px (canvas-scale). */
|
|
425
|
-
.flowdrop-btn--icon {
|
|
426
|
-
width: 2rem;
|
|
427
|
-
height: 2rem;
|
|
428
|
-
min-height: 0;
|
|
429
|
-
padding: 0;
|
|
430
|
-
border-radius: var(--fd-control-radius);
|
|
431
|
-
color: var(--fd-muted-foreground);
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
.flowdrop-btn--icon svg {
|
|
435
|
-
width: 1rem;
|
|
436
|
-
height: 1rem;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
.flowdrop-btn--icon.flowdrop-btn--sm {
|
|
440
|
-
width: var(--fd-size-icon-btn);
|
|
441
|
-
height: var(--fd-size-icon-btn);
|
|
442
|
-
padding: 0;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
.flowdrop-btn--icon.flowdrop-btn--sm svg {
|
|
446
|
-
width: 0.875rem;
|
|
447
|
-
height: 0.875rem;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
.flowdrop-btn--icon.flowdrop-btn--lg {
|
|
451
|
-
width: 2.25rem;
|
|
452
|
-
height: 2.25rem;
|
|
453
|
-
padding: 0;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
.flowdrop-btn--icon.flowdrop-btn--lg svg {
|
|
457
|
-
width: 1.125rem;
|
|
458
|
-
height: 1.125rem;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
/* Ghost (default for icon buttons) — transparent until hover. */
|
|
462
|
-
.flowdrop-btn--icon.flowdrop-btn--ghost:hover:not(:disabled) {
|
|
463
|
-
background-color: var(--fd-button-ghost-hover);
|
|
464
|
-
color: var(--fd-foreground);
|
|
465
|
-
border-color: transparent;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
/* Default — flat --fd-background surface with a resting border. */
|
|
469
|
-
.flowdrop-btn--icon-default {
|
|
470
|
-
background-color: var(--fd-background);
|
|
471
|
-
border-color: var(--fd-border);
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
.flowdrop-btn--icon-default:hover:not(:disabled) {
|
|
475
|
-
background-color: var(--fd-muted);
|
|
476
|
-
color: var(--fd-foreground);
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
/* Tinted semantic variants — muted fill + semantic border/text, solid on press.
|
|
480
|
-
Unlike the solid text-button --primary, the icon flavour stays a quiet tint
|
|
481
|
-
so a row of action buttons reads as a group, not a wall of colour. */
|
|
482
|
-
.flowdrop-btn--icon-primary {
|
|
483
|
-
background-color: var(--fd-primary-muted);
|
|
484
|
-
border-color: var(--fd-primary);
|
|
485
|
-
color: var(--fd-primary-hover);
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
.flowdrop-btn--icon-primary:hover:not(:disabled) {
|
|
489
|
-
border-color: var(--fd-primary-hover);
|
|
490
|
-
color: var(--fd-primary-hover);
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
.flowdrop-btn--icon-primary:active:not(:disabled) {
|
|
494
|
-
background-color: var(--fd-primary);
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
.flowdrop-btn--icon-danger {
|
|
498
|
-
background-color: var(--fd-error-muted);
|
|
499
|
-
border-color: var(--fd-error);
|
|
500
|
-
color: var(--fd-error);
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
.flowdrop-btn--icon-danger:hover:not(:disabled) {
|
|
504
|
-
border-color: var(--fd-error-hover);
|
|
505
|
-
color: var(--fd-error-hover);
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
.flowdrop-btn--icon-danger:active:not(:disabled) {
|
|
509
|
-
background-color: var(--fd-error);
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
.flowdrop-btn--icon-success {
|
|
513
|
-
background-color: var(--fd-success-muted);
|
|
514
|
-
border-color: var(--fd-success);
|
|
515
|
-
color: var(--fd-success);
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
.flowdrop-btn--icon-success:hover:not(:disabled) {
|
|
519
|
-
border-color: var(--fd-success-hover);
|
|
520
|
-
color: var(--fd-success-hover);
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
.flowdrop-btn--icon-success:active:not(:disabled) {
|
|
524
|
-
background-color: var(--fd-success);
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
/* Active / toggled state (e.g. a pressed canvas control) — primary tint. */
|
|
528
|
-
.flowdrop-btn--icon.is-active {
|
|
529
|
-
color: var(--fd-primary);
|
|
530
|
-
background-color: var(--fd-primary-muted);
|
|
531
|
-
border-color: var(--fd-primary);
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
.flowdrop-btn--icon:disabled {
|
|
535
|
-
opacity: 0.35;
|
|
536
|
-
cursor: not-allowed;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
415
|
/* ───────────────────────────────────────────────────────────────────────────
|
|
540
416
|
Form controls — THE single source of truth for input/select/textarea look.
|
|
541
417
|
|
|
@@ -108,6 +108,7 @@ export const LIGHT_ALIASES = {
|
|
|
108
108
|
'node-config-btn-hover-bg': 'var(--fd-muted)',
|
|
109
109
|
'node-config-btn-hover-border': 'var(--fd-border-strong)',
|
|
110
110
|
'node-config-btn-radius': 'var(--fd-radius-sm)',
|
|
111
|
+
'node-config-btn-slot': 'calc(var(--fd-space-xs) + var(--fd-node-config-btn-size) + 4px)',
|
|
111
112
|
'node-desc-rule': 'var(--fd-border-muted)',
|
|
112
113
|
'node-group-rule': 'var(--fd-border-muted)',
|
|
113
114
|
'node-header-bg': 'var(--fd-header)',
|
package/dist/styles/tokens.css
CHANGED
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
--fd-scrollbar-size: 10px; /* @internal scrollbar width in the editor */
|
|
356
356
|
|
|
357
357
|
/* ----- FORM CONTROL, BUTTON, MENU, SHEET AND MODAL KNOBS -----
|
|
358
|
-
Defaults reproduce the
|
|
358
|
+
Defaults reproduce the Classic theme; Graphite sets its own (skins/graphite.ts). */
|
|
359
359
|
--fd-field-height: auto; /* @internal input/select height; auto = padding + line */
|
|
360
360
|
--fd-field-height-sm: auto; /* @internal small input/select height */
|
|
361
361
|
--fd-field-padding: 0.625rem 0.875rem; /* @internal input/select padding */
|
|
@@ -563,7 +563,7 @@
|
|
|
563
563
|
--fd-navbar-height: 48px; /* @internal — controlled programmatically */
|
|
564
564
|
--fd-toolbar-height: 40px; /* @internal — controlled programmatically */
|
|
565
565
|
|
|
566
|
-
/* ----- NAVBAR (defaults reproduce the
|
|
566
|
+
/* ----- NAVBAR (defaults reproduce the Classic look; Graphite sets quiet values) ----- */
|
|
567
567
|
--fd-navbar-start-width: 240px; /* @internal width of the logo column */
|
|
568
568
|
--fd-navbar-logo-height: 24px; /* @internal wordmark lockup height */
|
|
569
569
|
--fd-navbar-rule-display: none; /* @internal 1px x 16px rule between logo and workflow name */
|
|
@@ -702,9 +702,9 @@
|
|
|
702
702
|
--fd-node-title-weight: 500; /* @internal */
|
|
703
703
|
--fd-node-title-clamp: 2; /* @internal title lines before an ellipsis */
|
|
704
704
|
|
|
705
|
-
/* ----- NODE CARD
|
|
705
|
+
/* ----- NODE CARD (category wash header, icon tile, half-pill ports) -----
|
|
706
706
|
Geometry (60px header, 20/40px grid, 280/320 width) is fixed in utils/nodeGeometry.ts and is
|
|
707
|
-
not a token: only the look is. Defaults are the
|
|
707
|
+
not a token: only the look is. Defaults are the Classic theme's look; Graphite sets its own. */
|
|
708
708
|
--fd-node-header-wash: 8%; /* @internal how much of the category colour the header surface takes */
|
|
709
709
|
--fd-node-header-pad-x: 16px; /* @internal header and description-band side padding */
|
|
710
710
|
--fd-node-tile-size: 32px; /* @internal solid icon tile edge */
|
|
@@ -748,6 +748,10 @@
|
|
|
748
748
|
--fd-node-halo-mix: 28%; /* @internal port colour in the halo, the rest transparent */
|
|
749
749
|
--fd-node-halo-breath: 1.8s; /* @internal one breath in (or out) of a port ready to receive */
|
|
750
750
|
--fd-node-drag-dull-opacity: 0.35; /* @internal a port that does not take the dragged type */
|
|
751
|
+
--fd-node-config-btn-size: 24px; /* @internal the gear's width and height */
|
|
752
|
+
--fd-node-config-btn-slot: calc(
|
|
753
|
+
var(--fd-space-xs) + var(--fd-node-config-btn-size) + 4px
|
|
754
|
+
); /* @internal room a node keeps for the gear at its top-right: offset, gear and a gap */
|
|
751
755
|
--fd-node-config-btn-bg: var(--fd-backdrop); /* @internal the gear on a hovered card */
|
|
752
756
|
--fd-node-config-btn-border: var(--fd-border); /* @internal */
|
|
753
757
|
--fd-node-config-btn-radius: var(--fd-radius-sm); /* @internal */
|
|
@@ -914,7 +918,7 @@
|
|
|
914
918
|
--fd-node-border: #4a4a52;
|
|
915
919
|
--fd-node-border-hover: #5a5a62;
|
|
916
920
|
|
|
917
|
-
/* ----- NODE CARD
|
|
921
|
+
/* ----- NODE CARD (dark) ----- */
|
|
918
922
|
--fd-node-header-wash: 16%;
|
|
919
923
|
--fd-node-tile-shadow: 0 1px 2px rgb(0 0 0 / 0.4);
|
|
920
924
|
--fd-node-pin-open: #7d8594;
|
package/dist/svelte-app.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
import type { Workflow, NodeMetadata, PortConfig, CategoryDefinition } from './types/index.js';
|
|
10
10
|
import type { EndpointConfig } from './config/endpoints.js';
|
|
11
11
|
import type { AuthProvider } from './types/auth.js';
|
|
12
|
+
import type { EditorPlaygroundConfig } from './types/playground.js';
|
|
12
13
|
import type { FlowDropEventHandlers, FlowDropFeatures } from './types/events.js';
|
|
13
14
|
import type { FlowDropTheme, FlowDropThemeName } from './types/theme.js';
|
|
14
15
|
import type { WorkflowFormatAdapter } from './registry/workflowFormatRegistry.js';
|
|
@@ -81,6 +82,14 @@ export interface FlowDropMountOptions {
|
|
|
81
82
|
* its URL in step. Not called for the initial value.
|
|
82
83
|
*/
|
|
83
84
|
onEditorModeChange?: (mode: 'edit' | 'test') => void;
|
|
85
|
+
/**
|
|
86
|
+
* How Test mode's Playground follows a run: `pollingInterval` (ms, default
|
|
87
|
+
* 1500) and `shouldStopPolling` (default: stop on `idle` only, on purpose,
|
|
88
|
+
* since an async server may still emit messages). A backend that leaves a
|
|
89
|
+
* session `completed` or `failed` after a turn passes its own
|
|
90
|
+
* `shouldStopPolling` here. Unset, nothing changes.
|
|
91
|
+
*/
|
|
92
|
+
playground?: EditorPlaygroundConfig;
|
|
84
93
|
/** Pipeline ID for status display */
|
|
85
94
|
pipelineId?: string;
|
|
86
95
|
/** Custom navbar title */
|
|
@@ -145,7 +154,7 @@ export interface FlowDropMountOptions {
|
|
|
145
154
|
* is left untouched. Omit to offer every registered format.
|
|
146
155
|
*/
|
|
147
156
|
workflowFormats?: string[];
|
|
148
|
-
/** Visual theme — named built-in ('
|
|
157
|
+
/** Visual theme — named built-in ('graphite' | 'classic' | 'minimal' | 'drafter') or custom theme object */
|
|
149
158
|
theme?: FlowDropTheme | FlowDropThemeName;
|
|
150
159
|
/** Which settings tabs to show in the modal (defaults to all) */
|
|
151
160
|
settingsCategories?: SettingsCategory[];
|