@flowdrop/flowdrop 1.5.0 → 1.6.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/README.md +46 -47
- package/dist/adapters/WorkflowAdapter.d.ts +1 -1
- package/dist/adapters/WorkflowAdapter.js +26 -26
- package/dist/adapters/agentspec/AgentSpecAdapter.d.ts +2 -2
- package/dist/adapters/agentspec/AgentSpecAdapter.js +122 -133
- package/dist/adapters/agentspec/agentAdapter.d.ts +2 -2
- package/dist/adapters/agentspec/agentAdapter.js +10 -10
- package/dist/adapters/agentspec/autoLayout.d.ts +1 -1
- package/dist/adapters/agentspec/autoLayout.js +7 -9
- package/dist/adapters/agentspec/componentTypeDefaults.d.ts +1 -1
- package/dist/adapters/agentspec/componentTypeDefaults.js +120 -120
- package/dist/adapters/agentspec/defaultNodeTypes.d.ts +2 -2
- package/dist/adapters/agentspec/defaultNodeTypes.js +307 -307
- package/dist/adapters/agentspec/index.d.ts +10 -10
- package/dist/adapters/agentspec/index.js +6 -6
- package/dist/adapters/agentspec/validator.d.ts +2 -2
- package/dist/adapters/agentspec/validator.js +20 -22
- package/dist/api/enhanced-client.d.ts +3 -3
- package/dist/api/enhanced-client.js +72 -73
- package/dist/chat/commandClassifier.js +6 -6
- package/dist/chat/index.d.ts +5 -5
- package/dist/chat/index.js +4 -4
- package/dist/chat/responseParser.d.ts +6 -6
- package/dist/chat/responseParser.js +28 -24
- package/dist/commands/batch.d.ts +1 -1
- package/dist/commands/batch.js +5 -7
- package/dist/commands/executor.d.ts +2 -2
- package/dist/commands/executor.js +320 -231
- package/dist/commands/index.d.ts +6 -6
- package/dist/commands/index.js +5 -5
- package/dist/commands/parser.d.ts +1 -1
- package/dist/commands/parser.js +91 -74
- package/dist/commands/positioner.d.ts +2 -2
- package/dist/commands/positioner.js +1 -1
- package/dist/commands/storeIntegration.svelte.d.ts +2 -2
- package/dist/commands/storeIntegration.svelte.js +5 -5
- package/dist/commands/types.d.ts +42 -42
- package/dist/commands/types.js +2 -2
- package/dist/components/App.svelte +240 -294
- package/dist/components/App.svelte.d.ts +9 -9
- package/dist/components/CanvasBanner.stories.svelte +10 -16
- package/dist/components/CanvasBanner.stories.svelte.d.ts +1 -1
- package/dist/components/CanvasBanner.svelte +2 -2
- package/dist/components/CanvasBanner.svelte.d.ts +1 -1
- package/dist/components/CanvasController.svelte +3 -4
- package/dist/components/ConfigForm.svelte +118 -256
- package/dist/components/ConfigForm.svelte.d.ts +2 -2
- package/dist/components/ConfigMappingRow.svelte +7 -9
- package/dist/components/ConfigMappingRow.svelte.d.ts +1 -1
- package/dist/components/ConfigModal.svelte +3 -3
- package/dist/components/ConfigModal.svelte.d.ts +1 -1
- package/dist/components/ConfigPanel.stories.svelte +19 -19
- package/dist/components/ConfigPanel.stories.svelte.d.ts +1 -1
- package/dist/components/ConfigPanel.svelte +9 -20
- package/dist/components/ConfigPanel.svelte.d.ts +1 -1
- package/dist/components/ConnectionLine.svelte +4 -4
- package/dist/components/EdgeRefresher.svelte +1 -1
- package/dist/components/FlowDropEdge.stories.svelte +110 -110
- package/dist/components/FlowDropEdge.svelte +9 -9
- package/dist/components/FlowDropEdge.svelte.d.ts +1 -1
- package/dist/components/FlowDropZone.svelte +6 -9
- package/dist/components/FlowDropZone.svelte.d.ts +1 -1
- package/dist/components/LoadingSpinner.stories.svelte +13 -13
- package/dist/components/LoadingSpinner.stories.svelte.d.ts +1 -1
- package/dist/components/LoadingSpinner.svelte +3 -3
- package/dist/components/LoadingSpinner.svelte.d.ts +1 -1
- package/dist/components/Logo.stories.svelte +4 -4
- package/dist/components/Logo.stories.svelte.d.ts +1 -1
- package/dist/components/Logo.svelte +3 -9
- package/dist/components/LogsSidebar.svelte +41 -48
- package/dist/components/LogsSidebar.svelte.d.ts +1 -1
- package/dist/components/MarkdownDisplay.stories.svelte +10 -14
- package/dist/components/MarkdownDisplay.stories.svelte.d.ts +1 -1
- package/dist/components/MarkdownDisplay.svelte +4 -6
- package/dist/components/Navbar.stories.svelte +19 -19
- package/dist/components/Navbar.stories.svelte.d.ts +1 -1
- package/dist/components/Navbar.svelte +28 -49
- package/dist/components/Navbar.svelte.d.ts +2 -2
- package/dist/components/NodeSidebar.svelte +42 -88
- package/dist/components/NodeSidebar.svelte.d.ts +1 -1
- package/dist/components/NodeStatusOverlay.stories.svelte +19 -31
- package/dist/components/NodeStatusOverlay.stories.svelte.d.ts +1 -1
- package/dist/components/NodeStatusOverlay.svelte +40 -55
- package/dist/components/NodeStatusOverlay.svelte.d.ts +3 -3
- package/dist/components/NodeSwapPicker.svelte +20 -64
- package/dist/components/NodeSwapPicker.svelte.d.ts +1 -1
- package/dist/components/PipelineStatus.svelte +63 -89
- package/dist/components/PipelineStatus.svelte.d.ts +4 -4
- package/dist/components/PortCoordinateTracker.svelte +5 -7
- package/dist/components/PortCoordinateTracker.svelte.d.ts +1 -1
- package/dist/components/PortMappingRow.svelte +20 -24
- package/dist/components/PortMappingRow.svelte.d.ts +2 -2
- package/dist/components/ReadOnlyDetails.svelte +1 -1
- package/dist/components/SchemaForm.stories.svelte +53 -53
- package/dist/components/SchemaForm.stories.svelte.d.ts +1 -1
- package/dist/components/SchemaForm.svelte +24 -51
- package/dist/components/SchemaForm.svelte.d.ts +2 -2
- package/dist/components/SettingsModal.svelte +6 -9
- package/dist/components/SettingsModal.svelte.d.ts +1 -1
- package/dist/components/SettingsPanel.svelte +138 -158
- package/dist/components/SettingsPanel.svelte.d.ts +1 -1
- package/dist/components/StatusIcon.stories.svelte +16 -29
- package/dist/components/StatusIcon.stories.svelte.d.ts +1 -1
- package/dist/components/StatusIcon.svelte +19 -19
- package/dist/components/StatusIcon.svelte.d.ts +2 -2
- package/dist/components/StatusLabel.stories.svelte +8 -8
- package/dist/components/StatusLabel.stories.svelte.d.ts +1 -1
- package/dist/components/SwapMappingEditor.svelte +35 -56
- package/dist/components/SwapMappingEditor.svelte.d.ts +2 -2
- package/dist/components/ThemeToggle.stories.svelte +10 -10
- package/dist/components/ThemeToggle.stories.svelte.d.ts +1 -1
- package/dist/components/ThemeToggle.svelte +22 -33
- package/dist/components/ThemeToggle.svelte.d.ts +1 -1
- package/dist/components/UniversalNode.svelte +29 -41
- package/dist/components/UniversalNode.svelte.d.ts +3 -3
- package/dist/components/WorkflowEditor.svelte +113 -168
- package/dist/components/WorkflowEditor.svelte.d.ts +4 -4
- package/dist/components/chat/AIChatPanel.svelte +272 -133
- package/dist/components/chat/AIChatPanel.svelte.d.ts +3 -3
- package/dist/components/chat/CommandPreview.svelte +74 -24
- package/dist/components/chat/CommandPreview.svelte.d.ts +1 -1
- package/dist/components/console/CommandConsole.stories.svelte +71 -53
- package/dist/components/console/CommandConsole.stories.svelte.d.ts +1 -1
- package/dist/components/console/CommandConsole.svelte +39 -35
- package/dist/components/console/CommandConsole.svelte.d.ts +2 -2
- package/dist/components/console/ConsoleAutocomplete.svelte +6 -3
- package/dist/components/console/ConsoleInput.svelte +148 -89
- package/dist/components/console/ConsoleInput.svelte.d.ts +1 -1
- package/dist/components/console/ConsoleOutput.svelte +5 -10
- package/dist/components/console/ConsoleOutput.svelte.d.ts +1 -1
- package/dist/components/console/formatters.d.ts +1 -1
- package/dist/components/console/formatters.js +27 -29
- package/dist/components/form/FormArray.svelte +75 -132
- package/dist/components/form/FormArray.svelte.d.ts +1 -1
- package/dist/components/form/FormAutocomplete.svelte +65 -108
- package/dist/components/form/FormAutocomplete.svelte.d.ts +1 -1
- package/dist/components/form/FormCheckboxGroup.stories.svelte +13 -16
- package/dist/components/form/FormCheckboxGroup.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormCheckboxGroup.svelte +2 -2
- package/dist/components/form/FormCodeEditor.svelte +42 -56
- package/dist/components/form/FormField.svelte +79 -90
- package/dist/components/form/FormField.svelte.d.ts +2 -2
- package/dist/components/form/FormFieldLight.svelte +72 -88
- package/dist/components/form/FormFieldLight.svelte.d.ts +1 -1
- package/dist/components/form/FormFieldWrapper.stories.svelte +14 -14
- package/dist/components/form/FormFieldWrapper.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormFieldWrapper.svelte +2 -9
- package/dist/components/form/FormFieldWrapper.svelte.d.ts +1 -1
- package/dist/components/form/FormFieldset.svelte +3 -3
- package/dist/components/form/FormFieldset.svelte.d.ts +2 -2
- package/dist/components/form/FormMarkdownEditor.svelte +123 -156
- package/dist/components/form/FormNumberField.stories.svelte +18 -18
- package/dist/components/form/FormNumberField.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormNumberField.svelte +6 -6
- package/dist/components/form/FormRangeField.stories.svelte +13 -13
- package/dist/components/form/FormRangeField.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormRangeField.svelte +4 -12
- package/dist/components/form/FormSelect.stories.svelte +21 -21
- package/dist/components/form/FormSelect.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormSelect.svelte +5 -5
- package/dist/components/form/FormSelect.svelte.d.ts +1 -1
- package/dist/components/form/FormTemplateEditor.svelte +126 -175
- package/dist/components/form/FormTemplateEditor.svelte.d.ts +1 -1
- package/dist/components/form/FormTextField.stories.svelte +17 -23
- package/dist/components/form/FormTextField.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormTextField.svelte +4 -4
- package/dist/components/form/FormTextarea.stories.svelte +18 -21
- package/dist/components/form/FormTextarea.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormTextarea.svelte +4 -4
- package/dist/components/form/FormToggle.stories.svelte +13 -16
- package/dist/components/form/FormToggle.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormToggle.svelte +3 -3
- package/dist/components/form/FormUISchemaRenderer.svelte +12 -19
- package/dist/components/form/FormUISchemaRenderer.svelte.d.ts +3 -3
- package/dist/components/form/index.d.ts +19 -19
- package/dist/components/form/index.js +18 -18
- package/dist/components/form/templateAutocomplete.d.ts +2 -2
- package/dist/components/form/templateAutocomplete.js +55 -64
- package/dist/components/form/types.d.ts +6 -6
- package/dist/components/form/types.js +4 -9
- package/dist/components/icons/AlertCircleIcon.svelte +1 -6
- package/dist/components/icons/CogIcon.svelte +1 -6
- package/dist/components/interrupt/ChoicePrompt.stories.svelte +27 -27
- package/dist/components/interrupt/ChoicePrompt.stories.svelte.d.ts +1 -1
- package/dist/components/interrupt/ChoicePrompt.svelte +17 -41
- package/dist/components/interrupt/ChoicePrompt.svelte.d.ts +1 -1
- package/dist/components/interrupt/ConfirmationPrompt.stories.svelte +17 -17
- package/dist/components/interrupt/ConfirmationPrompt.stories.svelte.d.ts +1 -1
- package/dist/components/interrupt/ConfirmationPrompt.svelte +10 -16
- package/dist/components/interrupt/ConfirmationPrompt.svelte.d.ts +1 -1
- package/dist/components/interrupt/FormPrompt.svelte +10 -15
- package/dist/components/interrupt/FormPrompt.svelte.d.ts +1 -1
- package/dist/components/interrupt/InterruptBubble.svelte +87 -121
- package/dist/components/interrupt/InterruptBubble.svelte.d.ts +2 -2
- package/dist/components/interrupt/ReviewPrompt.stories.svelte +37 -37
- package/dist/components/interrupt/ReviewPrompt.stories.svelte.d.ts +1 -1
- package/dist/components/interrupt/ReviewPrompt.svelte +55 -75
- package/dist/components/interrupt/ReviewPrompt.svelte.d.ts +1 -1
- package/dist/components/interrupt/TextInputPrompt.stories.svelte +16 -17
- package/dist/components/interrupt/TextInputPrompt.stories.svelte.d.ts +1 -1
- package/dist/components/interrupt/TextInputPrompt.svelte +13 -18
- package/dist/components/interrupt/TextInputPrompt.svelte.d.ts +1 -1
- package/dist/components/interrupt/index.d.ts +6 -6
- package/dist/components/interrupt/index.js +6 -6
- package/dist/components/layouts/MainLayout.svelte +46 -84
- package/dist/components/layouts/MainLayout.svelte.d.ts +6 -6
- package/dist/components/nodes/GatewayNode.stories.svelte +64 -65
- package/dist/components/nodes/GatewayNode.svelte +37 -70
- package/dist/components/nodes/GatewayNode.svelte.d.ts +3 -3
- package/dist/components/nodes/IdeaNode.stories.svelte +25 -26
- package/dist/components/nodes/IdeaNode.svelte +22 -36
- package/dist/components/nodes/IdeaNode.svelte.d.ts +1 -1
- package/dist/components/nodes/NotesNode.stories.svelte +37 -38
- package/dist/components/nodes/NotesNode.svelte +28 -39
- package/dist/components/nodes/NotesNode.svelte.d.ts +1 -1
- package/dist/components/nodes/SimpleNode.stories.svelte +137 -138
- package/dist/components/nodes/SimpleNode.svelte +44 -74
- package/dist/components/nodes/SimpleNode.svelte.d.ts +1 -1
- package/dist/components/nodes/SquareNode.stories.svelte +75 -75
- package/dist/components/nodes/SquareNode.svelte +42 -68
- package/dist/components/nodes/SquareNode.svelte.d.ts +1 -1
- package/dist/components/nodes/TerminalNode.stories.svelte +10 -10
- package/dist/components/nodes/TerminalNode.svelte +74 -112
- package/dist/components/nodes/TerminalNode.svelte.d.ts +1 -1
- package/dist/components/nodes/ToolNode.stories.svelte +115 -116
- package/dist/components/nodes/ToolNode.svelte +31 -64
- package/dist/components/nodes/ToolNode.svelte.d.ts +1 -1
- package/dist/components/nodes/WorkflowNode.stories.svelte +84 -89
- package/dist/components/nodes/WorkflowNode.svelte +50 -103
- package/dist/components/nodes/WorkflowNode.svelte.d.ts +3 -3
- package/dist/components/playground/ChatPanel.svelte +47 -103
- package/dist/components/playground/ExecutionLogs.svelte +45 -68
- package/dist/components/playground/InputCollector.svelte +32 -51
- package/dist/components/playground/MessageBubble.stories.svelte +25 -25
- package/dist/components/playground/MessageBubble.stories.svelte.d.ts +1 -1
- package/dist/components/playground/MessageBubble.svelte +54 -70
- package/dist/components/playground/MessageBubble.svelte.d.ts +1 -1
- package/dist/components/playground/Playground.svelte +60 -91
- package/dist/components/playground/Playground.svelte.d.ts +3 -3
- package/dist/components/playground/PlaygroundModal.svelte +8 -12
- package/dist/components/playground/PlaygroundModal.svelte.d.ts +3 -3
- package/dist/components/playground/SessionManager.svelte +34 -40
- package/dist/components/playground/SessionManager.svelte.d.ts +1 -1
- package/dist/config/agentSpecEndpoints.d.ts +1 -1
- package/dist/config/agentSpecEndpoints.js +20 -20
- package/dist/config/constants.js +2 -2
- package/dist/config/defaultCategories.d.ts +1 -1
- package/dist/config/defaultCategories.js +86 -86
- package/dist/config/defaultPortConfig.d.ts +1 -1
- package/dist/config/defaultPortConfig.js +144 -144
- package/dist/config/endpoints.d.ts +4 -4
- package/dist/config/endpoints.js +68 -68
- package/dist/config/runtimeConfig.d.ts +2 -2
- package/dist/config/runtimeConfig.js +8 -8
- package/dist/core/index.d.ts +68 -68
- package/dist/core/index.js +38 -38
- package/dist/display/index.d.ts +2 -2
- package/dist/display/index.js +2 -2
- package/dist/editor/index.d.ts +64 -64
- package/dist/editor/index.js +54 -54
- package/dist/form/code.d.ts +5 -5
- package/dist/form/code.js +14 -14
- package/dist/form/fieldRegistry.d.ts +3 -3
- package/dist/form/fieldRegistry.js +9 -11
- package/dist/form/full.d.ts +8 -8
- package/dist/form/full.js +9 -9
- package/dist/form/index.d.ts +18 -18
- package/dist/form/index.js +16 -16
- package/dist/form/markdown.d.ts +4 -4
- package/dist/form/markdown.js +8 -8
- package/dist/helpers/proximityConnect.d.ts +3 -3
- package/dist/helpers/proximityConnect.js +32 -34
- package/dist/helpers/workflowEditorHelper.d.ts +6 -6
- package/dist/helpers/workflowEditorHelper.js +64 -68
- package/dist/index.d.ts +6 -6
- package/dist/index.js +6 -6
- package/dist/mocks/app-environment.js +2 -2
- package/dist/mocks/app-forms.js +1 -1
- package/dist/mocks/app-navigation.js +2 -2
- package/dist/mocks/app-stores.js +3 -3
- package/dist/playground/index.d.ts +19 -19
- package/dist/playground/index.js +16 -16
- package/dist/playground/mount.d.ts +3 -3
- package/dist/playground/mount.js +24 -24
- package/dist/registry/builtinFormats.js +13 -13
- package/dist/registry/builtinNodes.d.ts +2 -2
- package/dist/registry/builtinNodes.js +77 -77
- package/dist/registry/index.d.ts +4 -4
- package/dist/registry/index.js +4 -4
- package/dist/registry/nodeComponentRegistry.d.ts +8 -8
- package/dist/registry/nodeComponentRegistry.js +9 -11
- package/dist/registry/plugin.d.ts +2 -2
- package/dist/registry/plugin.js +11 -11
- package/dist/registry/workflowFormatRegistry.d.ts +3 -3
- package/dist/registry/workflowFormatRegistry.js +2 -2
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.js +2 -2
- package/dist/services/agentSpecExecutionService.d.ts +3 -3
- package/dist/services/agentSpecExecutionService.js +55 -56
- package/dist/services/api.d.ts +2 -2
- package/dist/services/api.js +37 -37
- package/dist/services/apiVariableService.d.ts +1 -1
- package/dist/services/apiVariableService.js +34 -41
- package/dist/services/autoSaveService.js +8 -8
- package/dist/services/categoriesApi.d.ts +2 -2
- package/dist/services/categoriesApi.js +8 -8
- package/dist/services/chatService.d.ts +1 -1
- package/dist/services/chatService.js +18 -18
- package/dist/services/draftStorage.d.ts +1 -1
- package/dist/services/draftStorage.js +11 -11
- package/dist/services/dynamicSchemaService.d.ts +1 -1
- package/dist/services/dynamicSchemaService.js +39 -41
- package/dist/services/globalSave.d.ts +2 -2
- package/dist/services/globalSave.js +38 -41
- package/dist/services/historyService.d.ts +1 -1
- package/dist/services/historyService.js +10 -10
- package/dist/services/interruptService.d.ts +1 -1
- package/dist/services/interruptService.js +29 -35
- package/dist/services/nodeExecutionService.d.ts +1 -1
- package/dist/services/nodeExecutionService.js +44 -45
- package/dist/services/playgroundService.d.ts +1 -1
- package/dist/services/playgroundService.js +29 -29
- package/dist/services/portConfigApi.d.ts +2 -2
- package/dist/services/portConfigApi.js +8 -8
- package/dist/services/settingsService.d.ts +2 -2
- package/dist/services/settingsService.js +19 -25
- package/dist/services/toastService.d.ts +4 -4
- package/dist/services/toastService.js +33 -33
- package/dist/services/variableService.d.ts +1 -1
- package/dist/services/variableService.js +36 -36
- package/dist/services/workflowStorage.d.ts +2 -2
- package/dist/services/workflowStorage.js +13 -13
- package/dist/settings/index.d.ts +7 -7
- package/dist/settings/index.js +6 -6
- package/dist/skins/default.d.ts +1 -1
- package/dist/skins/default.js +1 -1
- package/dist/skins/index.d.ts +3 -3
- package/dist/skins/index.js +7 -7
- package/dist/skins/slate.d.ts +1 -1
- package/dist/skins/slate.js +69 -69
- package/dist/stores/categoriesStore.svelte.d.ts +1 -1
- package/dist/stores/categoriesStore.svelte.js +5 -5
- package/dist/stores/editorStateMachine.svelte.d.ts +2 -2
- package/dist/stores/editorStateMachine.svelte.js +34 -34
- package/dist/stores/historyStore.svelte.d.ts +4 -4
- package/dist/stores/historyStore.svelte.js +4 -4
- package/dist/stores/interruptStore.svelte.d.ts +3 -3
- package/dist/stores/interruptStore.svelte.js +21 -21
- package/dist/stores/playgroundStore.svelte.d.ts +2 -2
- package/dist/stores/playgroundStore.svelte.js +18 -21
- package/dist/stores/portCoordinateStore.svelte.d.ts +2 -2
- package/dist/stores/portCoordinateStore.svelte.js +10 -13
- package/dist/stores/settingsStore.svelte.d.ts +2 -2
- package/dist/stores/settingsStore.svelte.js +57 -62
- package/dist/stores/workflowStore.svelte.d.ts +3 -3
- package/dist/stores/workflowStore.svelte.js +46 -47
- package/dist/stories/CanvasDecorator.svelte +7 -10
- package/dist/stories/CanvasDecorator.svelte.d.ts +2 -2
- package/dist/stories/EdgeDecorator.svelte +28 -31
- package/dist/stories/EdgeDecorator.svelte.d.ts +1 -1
- package/dist/stories/NodeDecorator.svelte +14 -20
- package/dist/stories/NodeDecorator.svelte.d.ts +1 -1
- package/dist/stories/utils.d.ts +2 -2
- package/dist/stories/utils.js +89 -93
- package/dist/styles/base.css +16 -50
- package/dist/styles/tokens.css +10 -28
- package/dist/svelte-app.d.ts +10 -10
- package/dist/svelte-app.js +39 -39
- package/dist/themes/default.d.ts +1 -1
- package/dist/themes/default.js +4 -4
- package/dist/themes/index.d.ts +3 -3
- package/dist/themes/index.js +11 -11
- package/dist/themes/minimal.d.ts +1 -1
- package/dist/themes/minimal.js +5 -5
- package/dist/types/agentspec.d.ts +18 -18
- package/dist/types/agentspec.js +2 -2
- package/dist/types/auth.d.ts +1 -1
- package/dist/types/auth.js +6 -6
- package/dist/types/chat.d.ts +2 -2
- package/dist/types/config.d.ts +6 -6
- package/dist/types/events.d.ts +3 -3
- package/dist/types/events.js +2 -2
- package/dist/types/index.d.ts +32 -32
- package/dist/types/index.js +6 -6
- package/dist/types/interrupt.d.ts +6 -6
- package/dist/types/interrupt.js +21 -21
- package/dist/types/interruptState.d.ts +12 -12
- package/dist/types/interruptState.js +66 -66
- package/dist/types/playground.d.ts +7 -7
- package/dist/types/playground.js +14 -14
- package/dist/types/settings.d.ts +7 -5
- package/dist/types/settings.js +19 -24
- package/dist/types/skin.d.ts +1 -1
- package/dist/types/theme.d.ts +2 -2
- package/dist/types/uischema.d.ts +4 -4
- package/dist/types/uischema.js +3 -3
- package/dist/utils/colors.d.ts +1 -1
- package/dist/utils/colors.js +95 -97
- package/dist/utils/config.d.ts +2 -2
- package/dist/utils/config.js +48 -48
- package/dist/utils/connections.d.ts +2 -2
- package/dist/utils/connections.js +15 -15
- package/dist/utils/edgeStyling.d.ts +2 -2
- package/dist/utils/edgeStyling.js +36 -39
- package/dist/utils/errors.js +3 -3
- package/dist/utils/fetchWithAuth.d.ts +1 -1
- package/dist/utils/fetchWithAuth.js +2 -2
- package/dist/utils/handleIds.d.ts +2 -2
- package/dist/utils/handleIds.js +8 -8
- package/dist/utils/handlePositioning.d.ts +1 -1
- package/dist/utils/handlePositioning.js +2 -2
- package/dist/utils/icons.d.ts +1 -1
- package/dist/utils/icons.js +74 -74
- package/dist/utils/logger.d.ts +1 -1
- package/dist/utils/logger.js +7 -7
- package/dist/utils/nodeIds.d.ts +1 -1
- package/dist/utils/nodeIds.js +1 -1
- package/dist/utils/nodeStatus.d.ts +1 -1
- package/dist/utils/nodeStatus.js +48 -48
- package/dist/utils/nodeSwap.d.ts +9 -9
- package/dist/utils/nodeSwap.js +52 -58
- package/dist/utils/nodeTypes.d.ts +1 -1
- package/dist/utils/nodeTypes.js +20 -21
- package/dist/utils/nodeWrapper.d.ts +7 -7
- package/dist/utils/nodeWrapper.js +19 -21
- package/dist/utils/performanceUtils.d.ts +1 -1
- package/dist/utils/performanceUtils.js +1 -2
- package/dist/utils/portUtils.d.ts +2 -2
- package/dist/utils/portUtils.js +1 -1
- package/dist/utils/sanitize.js +1 -1
- package/dist/utils/uischema.d.ts +2 -2
- package/dist/utils/uischema.js +8 -8
- package/dist/utils/validation.js +8 -8
- package/package.json +7 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EnhancedFlowDropApiClient } from
|
|
2
|
-
import type { Workflow } from
|
|
3
|
-
import type { EndpointConfig } from
|
|
1
|
+
import { EnhancedFlowDropApiClient } from '../api/enhanced-client.js';
|
|
2
|
+
import type { Workflow } from '../types/index.js';
|
|
3
|
+
import type { EndpointConfig } from '../config/endpoints.js';
|
|
4
4
|
interface Props {
|
|
5
5
|
pipelineId: string;
|
|
6
6
|
workflow: Workflow;
|
|
@@ -11,7 +11,7 @@ interface Props {
|
|
|
11
11
|
label: string;
|
|
12
12
|
href: string;
|
|
13
13
|
icon?: string;
|
|
14
|
-
variant?:
|
|
14
|
+
variant?: 'primary' | 'secondary' | 'outline';
|
|
15
15
|
onclick?: (event: Event) => void;
|
|
16
16
|
}>) => void;
|
|
17
17
|
}
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
-->
|
|
9
9
|
|
|
10
10
|
<script lang="ts">
|
|
11
|
-
import { useSvelteFlow, type InternalNode } from
|
|
12
|
-
import type { WorkflowNode as WorkflowNodeType } from
|
|
11
|
+
import { useSvelteFlow, type InternalNode } from '@xyflow/svelte';
|
|
12
|
+
import type { WorkflowNode as WorkflowNodeType } from '../types/index.js';
|
|
13
13
|
import {
|
|
14
14
|
rebuildAllPortCoordinates,
|
|
15
|
-
updateNodePortCoordinates
|
|
16
|
-
} from
|
|
15
|
+
updateNodePortCoordinates
|
|
16
|
+
} from '../stores/portCoordinateStore.svelte.js';
|
|
17
17
|
|
|
18
18
|
interface Props {
|
|
19
19
|
/** Node to update coordinates for (e.g., during drag). Set to null when not dragging. */
|
|
@@ -29,9 +29,7 @@
|
|
|
29
29
|
const { getInternalNode } = useSvelteFlow();
|
|
30
30
|
|
|
31
31
|
// Cast the getInternalNode function for our use
|
|
32
|
-
const getInternal = getInternalNode as (
|
|
33
|
-
id: string,
|
|
34
|
-
) => InternalNode | undefined;
|
|
32
|
+
const getInternal = getInternalNode as (id: string) => InternalNode | undefined;
|
|
35
33
|
|
|
36
34
|
/**
|
|
37
35
|
* Rebuild all port coordinates when rebuildTrigger changes.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WorkflowNode as WorkflowNodeType } from
|
|
1
|
+
import type { WorkflowNode as WorkflowNodeType } from '../types/index.js';
|
|
2
2
|
interface Props {
|
|
3
3
|
/** Node to update coordinates for (e.g., during drag). Set to null when not dragging. */
|
|
4
4
|
nodeToUpdate: WorkflowNodeType | null;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
-->
|
|
6
6
|
|
|
7
7
|
<script lang="ts">
|
|
8
|
-
import type { NodePort } from
|
|
9
|
-
import type { EditablePortMapping, MatchQuality } from
|
|
8
|
+
import type { NodePort } from '../types/index.js';
|
|
9
|
+
import type { EditablePortMapping, MatchQuality } from '../utils/nodeSwap.js';
|
|
10
10
|
|
|
11
11
|
interface Props {
|
|
12
12
|
mapping: EditablePortMapping;
|
|
@@ -16,29 +16,28 @@
|
|
|
16
16
|
onReset: () => void;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
const { mapping, availablePorts, usedPortIds, onUpdate, onReset }: Props =
|
|
20
|
-
$props();
|
|
19
|
+
const { mapping, availablePorts, usedPortIds, onUpdate, onReset }: Props = $props();
|
|
21
20
|
|
|
22
21
|
const QUALITY_LABELS: Record<MatchQuality, string> = {
|
|
23
|
-
id:
|
|
24
|
-
name:
|
|
25
|
-
type:
|
|
26
|
-
manual:
|
|
27
|
-
unmapped:
|
|
22
|
+
id: 'ID match',
|
|
23
|
+
name: 'Name match',
|
|
24
|
+
type: 'Type match',
|
|
25
|
+
manual: 'Manual',
|
|
26
|
+
unmapped: 'No match'
|
|
28
27
|
};
|
|
29
28
|
|
|
30
29
|
const QUALITY_CLASSES: Record<MatchQuality, string> = {
|
|
31
|
-
id:
|
|
32
|
-
name:
|
|
33
|
-
type:
|
|
34
|
-
manual:
|
|
35
|
-
unmapped:
|
|
30
|
+
id: 'port-mapping-row__badge--id',
|
|
31
|
+
name: 'port-mapping-row__badge--name',
|
|
32
|
+
type: 'port-mapping-row__badge--type',
|
|
33
|
+
manual: 'port-mapping-row__badge--manual',
|
|
34
|
+
unmapped: 'port-mapping-row__badge--unmapped'
|
|
36
35
|
};
|
|
37
36
|
|
|
38
37
|
function handleChange(event: Event): void {
|
|
39
38
|
const select = event.target as HTMLSelectElement;
|
|
40
39
|
const value = select.value;
|
|
41
|
-
onUpdate(value ===
|
|
40
|
+
onUpdate(value === '__drop__' ? null : value);
|
|
42
41
|
}
|
|
43
42
|
</script>
|
|
44
43
|
|
|
@@ -54,7 +53,7 @@
|
|
|
54
53
|
<select
|
|
55
54
|
class="port-mapping-row__select"
|
|
56
55
|
class:port-mapping-row__select--dropped={!mapping.selectedNewPortId}
|
|
57
|
-
value={mapping.selectedNewPortId ??
|
|
56
|
+
value={mapping.selectedNewPortId ?? '__drop__'}
|
|
58
57
|
onchange={handleChange}
|
|
59
58
|
>
|
|
60
59
|
<option value="__drop__">(Drop connection)</option>
|
|
@@ -63,7 +62,10 @@
|
|
|
63
62
|
value={port.id}
|
|
64
63
|
disabled={usedPortIds.has(port.id) && port.id !== mapping.selectedNewPortId}
|
|
65
64
|
>
|
|
66
|
-
{port.name} ({port.dataType}){usedPortIds.has(port.id) &&
|
|
65
|
+
{port.name} ({port.dataType}){usedPortIds.has(port.id) &&
|
|
66
|
+
port.id !== mapping.selectedNewPortId
|
|
67
|
+
? ' (in use)'
|
|
68
|
+
: ''}
|
|
67
69
|
</option>
|
|
68
70
|
{/each}
|
|
69
71
|
</select>
|
|
@@ -74,13 +76,7 @@
|
|
|
74
76
|
{QUALITY_LABELS[mapping.matchQuality]}
|
|
75
77
|
</span>
|
|
76
78
|
{#if mapping.isOverridden}
|
|
77
|
-
<button
|
|
78
|
-
class="port-mapping-row__reset"
|
|
79
|
-
onclick={onReset}
|
|
80
|
-
type="button"
|
|
81
|
-
>
|
|
82
|
-
reset
|
|
83
|
-
</button>
|
|
79
|
+
<button class="port-mapping-row__reset" onclick={onReset} type="button"> reset </button>
|
|
84
80
|
{/if}
|
|
85
81
|
</div>
|
|
86
82
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { NodePort } from
|
|
2
|
-
import type { EditablePortMapping } from
|
|
1
|
+
import type { NodePort } from '../types/index.js';
|
|
2
|
+
import type { EditablePortMapping } from '../utils/nodeSwap.js';
|
|
3
3
|
interface Props {
|
|
4
4
|
mapping: EditablePortMapping;
|
|
5
5
|
availablePorts: NodePort[];
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
|
|
130
130
|
.readonly-details__id {
|
|
131
131
|
font-size: 0.75rem;
|
|
132
|
-
font-family: ui-monospace, SFMono-Regular,
|
|
132
|
+
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
|
|
133
133
|
color: var(--fd-muted-foreground);
|
|
134
134
|
background-color: var(--fd-subtle);
|
|
135
135
|
padding: 0.125rem 0.375rem;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<script module>
|
|
2
|
-
import { defineMeta } from
|
|
3
|
-
import SchemaForm from
|
|
4
|
-
import { fn } from
|
|
2
|
+
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
+
import SchemaForm from './SchemaForm.svelte';
|
|
4
|
+
import { fn } from 'storybook/test';
|
|
5
5
|
|
|
6
6
|
const { Story } = defineMeta({
|
|
7
|
-
title:
|
|
7
|
+
title: 'Form/SchemaForm',
|
|
8
8
|
component: SchemaForm,
|
|
9
|
-
tags: [
|
|
9
|
+
tags: ['autodocs'],
|
|
10
10
|
args: {
|
|
11
11
|
onChange: fn(),
|
|
12
12
|
onSave: fn(),
|
|
13
|
-
onCancel: fn()
|
|
14
|
-
}
|
|
13
|
+
onCancel: fn()
|
|
14
|
+
}
|
|
15
15
|
});
|
|
16
16
|
</script>
|
|
17
17
|
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
name="Simple Form"
|
|
20
20
|
args={{
|
|
21
21
|
schema: {
|
|
22
|
-
type:
|
|
22
|
+
type: 'object',
|
|
23
23
|
properties: {
|
|
24
24
|
name: {
|
|
25
|
-
type:
|
|
26
|
-
title:
|
|
27
|
-
description:
|
|
25
|
+
type: 'string',
|
|
26
|
+
title: 'Name',
|
|
27
|
+
description: 'Enter your full name'
|
|
28
28
|
},
|
|
29
|
-
age: { type:
|
|
30
|
-
active: { type:
|
|
29
|
+
age: { type: 'number', title: 'Age', minimum: 0, maximum: 120 },
|
|
30
|
+
active: { type: 'boolean', title: 'Active', default: true }
|
|
31
31
|
},
|
|
32
|
-
required: [
|
|
32
|
+
required: ['name']
|
|
33
33
|
},
|
|
34
|
-
values: { name:
|
|
34
|
+
values: { name: 'Alice', age: 30, active: true }
|
|
35
35
|
}}
|
|
36
36
|
/>
|
|
37
37
|
|
|
@@ -39,39 +39,39 @@
|
|
|
39
39
|
name="Select Fields"
|
|
40
40
|
args={{
|
|
41
41
|
schema: {
|
|
42
|
-
type:
|
|
42
|
+
type: 'object',
|
|
43
43
|
properties: {
|
|
44
44
|
model: {
|
|
45
|
-
type:
|
|
46
|
-
title:
|
|
45
|
+
type: 'string',
|
|
46
|
+
title: 'AI Model',
|
|
47
47
|
oneOf: [
|
|
48
|
-
{ const:
|
|
49
|
-
{ const:
|
|
50
|
-
{ const:
|
|
51
|
-
]
|
|
48
|
+
{ const: 'gpt-4', title: 'GPT-4' },
|
|
49
|
+
{ const: 'gpt-3.5', title: 'GPT-3.5 Turbo' },
|
|
50
|
+
{ const: 'claude-3', title: 'Claude 3' }
|
|
51
|
+
]
|
|
52
52
|
},
|
|
53
53
|
temperature: {
|
|
54
|
-
type:
|
|
55
|
-
title:
|
|
56
|
-
format:
|
|
54
|
+
type: 'number',
|
|
55
|
+
title: 'Temperature',
|
|
56
|
+
format: 'range',
|
|
57
57
|
minimum: 0,
|
|
58
58
|
maximum: 2,
|
|
59
59
|
step: 0.1,
|
|
60
|
-
default: 0.7
|
|
60
|
+
default: 0.7
|
|
61
61
|
},
|
|
62
62
|
prompt: {
|
|
63
|
-
type:
|
|
64
|
-
title:
|
|
65
|
-
format:
|
|
66
|
-
description:
|
|
67
|
-
}
|
|
68
|
-
}
|
|
63
|
+
type: 'string',
|
|
64
|
+
title: 'System Prompt',
|
|
65
|
+
format: 'multiline',
|
|
66
|
+
description: 'The system prompt for the AI model'
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
69
|
},
|
|
70
70
|
values: {
|
|
71
|
-
model:
|
|
71
|
+
model: 'gpt-4',
|
|
72
72
|
temperature: 0.7,
|
|
73
|
-
prompt:
|
|
74
|
-
}
|
|
73
|
+
prompt: 'You are a helpful assistant.'
|
|
74
|
+
}
|
|
75
75
|
}}
|
|
76
76
|
/>
|
|
77
77
|
|
|
@@ -79,17 +79,17 @@
|
|
|
79
79
|
name="With Actions"
|
|
80
80
|
args={{
|
|
81
81
|
schema: {
|
|
82
|
-
type:
|
|
82
|
+
type: 'object',
|
|
83
83
|
properties: {
|
|
84
|
-
email: { type:
|
|
85
|
-
notifications: { type:
|
|
84
|
+
email: { type: 'string', title: 'Email' },
|
|
85
|
+
notifications: { type: 'boolean', title: 'Enable Notifications' }
|
|
86
86
|
},
|
|
87
|
-
required: [
|
|
87
|
+
required: ['email']
|
|
88
88
|
},
|
|
89
|
-
values: { email:
|
|
89
|
+
values: { email: '', notifications: true },
|
|
90
90
|
showActions: true,
|
|
91
|
-
saveLabel:
|
|
92
|
-
cancelLabel:
|
|
91
|
+
saveLabel: 'Save Settings',
|
|
92
|
+
cancelLabel: 'Reset'
|
|
93
93
|
}}
|
|
94
94
|
/>
|
|
95
95
|
|
|
@@ -97,14 +97,14 @@
|
|
|
97
97
|
name="Loading"
|
|
98
98
|
args={{
|
|
99
99
|
schema: {
|
|
100
|
-
type:
|
|
100
|
+
type: 'object',
|
|
101
101
|
properties: {
|
|
102
|
-
name: { type:
|
|
103
|
-
}
|
|
102
|
+
name: { type: 'string', title: 'Name' }
|
|
103
|
+
}
|
|
104
104
|
},
|
|
105
|
-
values: { name:
|
|
105
|
+
values: { name: 'Test' },
|
|
106
106
|
showActions: true,
|
|
107
|
-
loading: true
|
|
107
|
+
loading: true
|
|
108
108
|
}}
|
|
109
109
|
/>
|
|
110
110
|
|
|
@@ -112,13 +112,13 @@
|
|
|
112
112
|
name="Disabled"
|
|
113
113
|
args={{
|
|
114
114
|
schema: {
|
|
115
|
-
type:
|
|
115
|
+
type: 'object',
|
|
116
116
|
properties: {
|
|
117
|
-
name: { type:
|
|
118
|
-
role: { type:
|
|
119
|
-
}
|
|
117
|
+
name: { type: 'string', title: 'Name' },
|
|
118
|
+
role: { type: 'string', title: 'Role' }
|
|
119
|
+
}
|
|
120
120
|
},
|
|
121
|
-
values: { name:
|
|
122
|
-
disabled: true
|
|
121
|
+
values: { name: 'Admin', role: 'Super User' },
|
|
122
|
+
disabled: true
|
|
123
123
|
}}
|
|
124
124
|
/>
|
|
@@ -11,7 +11,7 @@ declare const SchemaForm: $$__sveltets_2_IsomorphicComponent<{
|
|
|
11
11
|
}, {
|
|
12
12
|
[evt: string]: CustomEvent<any>;
|
|
13
13
|
}, {}, {}, string>;
|
|
14
|
-
import SchemaForm from
|
|
14
|
+
import SchemaForm from './SchemaForm.svelte';
|
|
15
15
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
16
16
|
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
17
17
|
$$bindings?: Bindings;
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
-->
|
|
55
55
|
|
|
56
56
|
<script lang="ts">
|
|
57
|
-
import { setContext } from
|
|
58
|
-
import Icon from
|
|
59
|
-
import type { ConfigSchema, AuthProvider } from
|
|
60
|
-
import type { UISchemaElement } from
|
|
61
|
-
import { FormField } from
|
|
62
|
-
import FormUISchemaRenderer from
|
|
63
|
-
import type { FieldSchema } from
|
|
57
|
+
import { setContext } from 'svelte';
|
|
58
|
+
import Icon from '@iconify/svelte';
|
|
59
|
+
import type { ConfigSchema, AuthProvider } from '../types/index.js';
|
|
60
|
+
import type { UISchemaElement } from '../types/uischema.js';
|
|
61
|
+
import { FormField } from './form/index.js';
|
|
62
|
+
import FormUISchemaRenderer from './form/FormUISchemaRenderer.svelte';
|
|
63
|
+
import type { FieldSchema } from './form/index.js';
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* Props interface for SchemaForm component
|
|
@@ -160,25 +160,22 @@
|
|
|
160
160
|
values = {},
|
|
161
161
|
onChange,
|
|
162
162
|
showActions = false,
|
|
163
|
-
saveLabel =
|
|
164
|
-
cancelLabel =
|
|
163
|
+
saveLabel = 'Save',
|
|
164
|
+
cancelLabel = 'Cancel',
|
|
165
165
|
onSave,
|
|
166
166
|
onCancel,
|
|
167
167
|
loading = false,
|
|
168
168
|
disabled = false,
|
|
169
|
-
class: className =
|
|
169
|
+
class: className = '',
|
|
170
170
|
authProvider,
|
|
171
|
-
baseUrl =
|
|
171
|
+
baseUrl = ''
|
|
172
172
|
}: Props = $props();
|
|
173
173
|
|
|
174
174
|
// Set context for child components (e.g., FormAutocomplete)
|
|
175
175
|
// Use getter functions to ensure child components always get the current prop value,
|
|
176
176
|
// even if the prop changes after initial mount
|
|
177
|
-
setContext<() => AuthProvider | undefined>(
|
|
178
|
-
|
|
179
|
-
() => authProvider,
|
|
180
|
-
);
|
|
181
|
-
setContext<() => string>("flowdrop:getBaseUrl", () => baseUrl);
|
|
177
|
+
setContext<() => AuthProvider | undefined>('flowdrop:getAuthProvider', () => authProvider);
|
|
178
|
+
setContext<() => string>('flowdrop:getBaseUrl', () => baseUrl);
|
|
182
179
|
|
|
183
180
|
/**
|
|
184
181
|
* Reference to this component's form element
|
|
@@ -200,8 +197,7 @@
|
|
|
200
197
|
Object.entries(schema.properties).forEach(([key, field]) => {
|
|
201
198
|
const fieldConfig = field as Record<string, unknown>;
|
|
202
199
|
// Use provided value if available, otherwise use schema default
|
|
203
|
-
mergedValues[key] =
|
|
204
|
-
values[key] !== undefined ? values[key] : fieldConfig.default;
|
|
200
|
+
mergedValues[key] = values[key] !== undefined ? values[key] : fieldConfig.default;
|
|
205
201
|
});
|
|
206
202
|
formValues = mergedValues;
|
|
207
203
|
}
|
|
@@ -247,29 +243,18 @@
|
|
|
247
243
|
const updatedValues: Record<string, unknown> = { ...formValues };
|
|
248
244
|
|
|
249
245
|
if (formRef) {
|
|
250
|
-
const inputs = formRef.querySelectorAll(
|
|
246
|
+
const inputs = formRef.querySelectorAll('input, select, textarea');
|
|
251
247
|
inputs.forEach((input: Element) => {
|
|
252
|
-
const inputEl = input as
|
|
253
|
-
| HTMLInputElement
|
|
254
|
-
| HTMLSelectElement
|
|
255
|
-
| HTMLTextAreaElement;
|
|
248
|
+
const inputEl = input as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
|
|
256
249
|
if (inputEl.id) {
|
|
257
|
-
if (
|
|
258
|
-
inputEl instanceof HTMLInputElement &&
|
|
259
|
-
inputEl.type === "checkbox"
|
|
260
|
-
) {
|
|
250
|
+
if (inputEl instanceof HTMLInputElement && inputEl.type === 'checkbox') {
|
|
261
251
|
updatedValues[inputEl.id] = inputEl.checked;
|
|
262
252
|
} else if (
|
|
263
253
|
inputEl instanceof HTMLInputElement &&
|
|
264
|
-
(inputEl.type ===
|
|
265
|
-
) {
|
|
266
|
-
updatedValues[inputEl.id] = inputEl.value
|
|
267
|
-
? Number(inputEl.value)
|
|
268
|
-
: inputEl.value;
|
|
269
|
-
} else if (
|
|
270
|
-
inputEl instanceof HTMLInputElement &&
|
|
271
|
-
inputEl.type === "hidden"
|
|
254
|
+
(inputEl.type === 'number' || inputEl.type === 'range')
|
|
272
255
|
) {
|
|
256
|
+
updatedValues[inputEl.id] = inputEl.value ? Number(inputEl.value) : inputEl.value;
|
|
257
|
+
} else if (inputEl instanceof HTMLInputElement && inputEl.type === 'hidden') {
|
|
273
258
|
// Parse hidden field values that might be JSON
|
|
274
259
|
try {
|
|
275
260
|
const parsed = JSON.parse(inputEl.value);
|
|
@@ -289,14 +274,10 @@
|
|
|
289
274
|
if (values && schema?.properties) {
|
|
290
275
|
Object.entries(schema.properties).forEach(
|
|
291
276
|
([key, property]: [string, Record<string, unknown>]) => {
|
|
292
|
-
if (
|
|
293
|
-
property.format === "hidden" &&
|
|
294
|
-
!(key in updatedValues) &&
|
|
295
|
-
key in values
|
|
296
|
-
) {
|
|
277
|
+
if (property.format === 'hidden' && !(key in updatedValues) && key in values) {
|
|
297
278
|
updatedValues[key] = values[key];
|
|
298
279
|
}
|
|
299
|
-
}
|
|
280
|
+
}
|
|
300
281
|
);
|
|
301
282
|
}
|
|
302
283
|
|
|
@@ -479,11 +460,7 @@
|
|
|
479
460
|
}
|
|
480
461
|
|
|
481
462
|
.schema-form__button--primary {
|
|
482
|
-
background: linear-gradient(
|
|
483
|
-
135deg,
|
|
484
|
-
var(--fd-primary) 0%,
|
|
485
|
-
var(--fd-primary-hover) 100%
|
|
486
|
-
);
|
|
463
|
+
background: linear-gradient(135deg, var(--fd-primary) 0%, var(--fd-primary-hover) 100%);
|
|
487
464
|
color: var(--fd-primary-foreground);
|
|
488
465
|
box-shadow:
|
|
489
466
|
0 1px 3px rgba(59, 130, 246, 0.3),
|
|
@@ -491,11 +468,7 @@
|
|
|
491
468
|
}
|
|
492
469
|
|
|
493
470
|
.schema-form__button--primary:hover:not(:disabled) {
|
|
494
|
-
background: linear-gradient(
|
|
495
|
-
135deg,
|
|
496
|
-
var(--fd-primary-hover) 0%,
|
|
497
|
-
var(--fd-primary-hover) 100%
|
|
498
|
-
);
|
|
471
|
+
background: linear-gradient(135deg, var(--fd-primary-hover) 0%, var(--fd-primary-hover) 100%);
|
|
499
472
|
box-shadow:
|
|
500
473
|
0 4px 12px rgba(59, 130, 246, 0.35),
|
|
501
474
|
inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConfigSchema, AuthProvider } from
|
|
2
|
-
import type { UISchemaElement } from
|
|
1
|
+
import type { ConfigSchema, AuthProvider } from '../types/index.js';
|
|
2
|
+
import type { UISchemaElement } from '../types/uischema.js';
|
|
3
3
|
/**
|
|
4
4
|
* Props interface for SchemaForm component
|
|
5
5
|
*/
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
-->
|
|
25
25
|
|
|
26
26
|
<script lang="ts">
|
|
27
|
-
import Icon from
|
|
28
|
-
import SettingsPanel from
|
|
29
|
-
import type { SettingsCategory } from
|
|
27
|
+
import Icon from '@iconify/svelte';
|
|
28
|
+
import SettingsPanel from './SettingsPanel.svelte';
|
|
29
|
+
import type { SettingsCategory } from '../types/settings.js';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Props interface for SettingsModal component
|
|
@@ -43,10 +43,7 @@
|
|
|
43
43
|
/** Callback when modal is closed */
|
|
44
44
|
onClose?: () => void;
|
|
45
45
|
/** Callback when settings change */
|
|
46
|
-
onSettingsChange?: (
|
|
47
|
-
category: SettingsCategory,
|
|
48
|
-
values: Record<string, unknown>,
|
|
49
|
-
) => void;
|
|
46
|
+
onSettingsChange?: (category: SettingsCategory, values: Record<string, unknown>) => void;
|
|
50
47
|
/** Custom CSS class for the modal */
|
|
51
48
|
class?: string;
|
|
52
49
|
}
|
|
@@ -58,7 +55,7 @@
|
|
|
58
55
|
showResetButton = true,
|
|
59
56
|
onClose,
|
|
60
57
|
onSettingsChange,
|
|
61
|
-
class: className =
|
|
58
|
+
class: className = ''
|
|
62
59
|
}: Props = $props();
|
|
63
60
|
|
|
64
61
|
/**
|
|
@@ -103,7 +100,7 @@
|
|
|
103
100
|
* Handle keyboard events
|
|
104
101
|
*/
|
|
105
102
|
function handleKeydown(event: KeyboardEvent): void {
|
|
106
|
-
if (event.key ===
|
|
103
|
+
if (event.key === 'Escape') {
|
|
107
104
|
event.preventDefault();
|
|
108
105
|
closeModal();
|
|
109
106
|
}
|