@flowdrop/flowdrop 1.0.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/LICENSE +21 -0
- package/README.md +252 -0
- package/dist/adapters/WorkflowAdapter.d.ts +167 -0
- package/dist/adapters/WorkflowAdapter.js +368 -0
- package/dist/adapters/agentspec/AgentSpecAdapter.d.ts +96 -0
- package/dist/adapters/agentspec/AgentSpecAdapter.js +626 -0
- package/dist/adapters/agentspec/agentAdapter.d.ts +59 -0
- package/dist/adapters/agentspec/agentAdapter.js +91 -0
- package/dist/adapters/agentspec/autoLayout.d.ts +34 -0
- package/dist/adapters/agentspec/autoLayout.js +127 -0
- package/dist/adapters/agentspec/componentTypeDefaults.d.ts +73 -0
- package/dist/adapters/agentspec/componentTypeDefaults.js +238 -0
- package/dist/adapters/agentspec/defaultNodeTypes.d.ts +53 -0
- package/dist/adapters/agentspec/defaultNodeTypes.js +561 -0
- package/dist/adapters/agentspec/index.d.ts +37 -0
- package/dist/adapters/agentspec/index.js +39 -0
- package/dist/adapters/agentspec/validator.d.ts +34 -0
- package/dist/adapters/agentspec/validator.js +169 -0
- package/dist/api/enhanced-client.d.ts +183 -0
- package/dist/api/enhanced-client.js +430 -0
- package/dist/components/App.svelte +981 -0
- package/dist/components/App.svelte.d.ts +54 -0
- package/dist/components/CanvasBanner.stories.svelte +29 -0
- package/dist/components/CanvasBanner.stories.svelte.d.ts +27 -0
- package/dist/components/CanvasBanner.svelte +57 -0
- package/dist/components/CanvasBanner.svelte.d.ts +8 -0
- package/dist/components/ConfigForm.svelte +1138 -0
- package/dist/components/ConfigForm.svelte.d.ts +44 -0
- package/dist/components/ConfigModal.svelte +188 -0
- package/dist/components/ConfigModal.svelte.d.ts +13 -0
- package/dist/components/ConfigPanel.stories.svelte +47 -0
- package/dist/components/ConfigPanel.stories.svelte.d.ts +27 -0
- package/dist/components/ConfigPanel.svelte +182 -0
- package/dist/components/ConfigPanel.svelte.d.ts +32 -0
- package/dist/components/ConnectionLine.svelte +32 -0
- package/dist/components/ConnectionLine.svelte.d.ts +3 -0
- package/dist/components/EdgeRefresher.svelte +41 -0
- package/dist/components/EdgeRefresher.svelte.d.ts +9 -0
- package/dist/components/FlowDropZone.svelte +83 -0
- package/dist/components/FlowDropZone.svelte.d.ts +13 -0
- package/dist/components/LoadingSpinner.stories.svelte +30 -0
- package/dist/components/LoadingSpinner.stories.svelte.d.ts +27 -0
- package/dist/components/LoadingSpinner.svelte +36 -0
- package/dist/components/LoadingSpinner.svelte.d.ts +8 -0
- package/dist/components/Logo.stories.svelte +22 -0
- package/dist/components/Logo.stories.svelte.d.ts +27 -0
- package/dist/components/Logo.svelte +102 -0
- package/dist/components/Logo.svelte.d.ts +26 -0
- package/dist/components/LogsSidebar.svelte +563 -0
- package/dist/components/LogsSidebar.svelte.d.ts +17 -0
- package/dist/components/MarkdownDisplay.stories.svelte +36 -0
- package/dist/components/MarkdownDisplay.stories.svelte.d.ts +27 -0
- package/dist/components/MarkdownDisplay.svelte +29 -0
- package/dist/components/MarkdownDisplay.svelte.d.ts +7 -0
- package/dist/components/Navbar.stories.svelte +53 -0
- package/dist/components/Navbar.stories.svelte.d.ts +27 -0
- package/dist/components/Navbar.svelte +726 -0
- package/dist/components/Navbar.svelte.d.ts +29 -0
- package/dist/components/NodeSidebar.svelte +762 -0
- package/dist/components/NodeSidebar.svelte.d.ts +9 -0
- package/dist/components/NodeStatusOverlay.stories.svelte +85 -0
- package/dist/components/NodeStatusOverlay.stories.svelte.d.ts +27 -0
- package/dist/components/NodeStatusOverlay.svelte +327 -0
- package/dist/components/NodeStatusOverlay.svelte.d.ts +11 -0
- package/dist/components/PipelineStatus.svelte +314 -0
- package/dist/components/PipelineStatus.svelte.d.ts +20 -0
- package/dist/components/PortCoordinateTracker.svelte +58 -0
- package/dist/components/PortCoordinateTracker.svelte.d.ts +12 -0
- package/dist/components/ReadOnlyDetails.svelte +170 -0
- package/dist/components/ReadOnlyDetails.svelte.d.ts +25 -0
- package/dist/components/SchemaForm.stories.svelte +116 -0
- package/dist/components/SchemaForm.stories.svelte.d.ts +27 -0
- package/dist/components/SchemaForm.svelte +536 -0
- package/dist/components/SchemaForm.svelte.d.ts +83 -0
- package/dist/components/SettingsModal.svelte +279 -0
- package/dist/components/SettingsModal.svelte.d.ts +23 -0
- package/dist/components/SettingsPanel.svelte +638 -0
- package/dist/components/SettingsPanel.svelte.d.ts +21 -0
- package/dist/components/StatusIcon.stories.svelte +60 -0
- package/dist/components/StatusIcon.stories.svelte.d.ts +27 -0
- package/dist/components/StatusIcon.svelte +119 -0
- package/dist/components/StatusIcon.svelte.d.ts +10 -0
- package/dist/components/StatusLabel.stories.svelte +17 -0
- package/dist/components/StatusLabel.stories.svelte.d.ts +27 -0
- package/dist/components/StatusLabel.svelte +33 -0
- package/dist/components/StatusLabel.svelte.d.ts +7 -0
- package/dist/components/ThemeToggle.stories.svelte +25 -0
- package/dist/components/ThemeToggle.stories.svelte.d.ts +27 -0
- package/dist/components/ThemeToggle.svelte +185 -0
- package/dist/components/ThemeToggle.svelte.d.ts +14 -0
- package/dist/components/UniversalNode.svelte +155 -0
- package/dist/components/UniversalNode.svelte.d.ts +15 -0
- package/dist/components/WorkflowEditor.svelte +1035 -0
- package/dist/components/WorkflowEditor.svelte.d.ts +23 -0
- package/dist/components/form/FormArray.svelte +1049 -0
- package/dist/components/form/FormArray.svelte.d.ts +22 -0
- package/dist/components/form/FormAutocomplete.svelte +1009 -0
- package/dist/components/form/FormAutocomplete.svelte.d.ts +25 -0
- package/dist/components/form/FormCheckboxGroup.stories.svelte +28 -0
- package/dist/components/form/FormCheckboxGroup.stories.svelte.d.ts +27 -0
- package/dist/components/form/FormCheckboxGroup.svelte +155 -0
- package/dist/components/form/FormCheckboxGroup.svelte.d.ts +17 -0
- package/dist/components/form/FormCodeEditor.svelte +458 -0
- package/dist/components/form/FormCodeEditor.svelte.d.ts +25 -0
- package/dist/components/form/FormField.svelte +417 -0
- package/dist/components/form/FormField.svelte.d.ts +29 -0
- package/dist/components/form/FormFieldLight.svelte +425 -0
- package/dist/components/form/FormFieldLight.svelte.d.ts +18 -0
- package/dist/components/form/FormFieldWrapper.stories.svelte +53 -0
- package/dist/components/form/FormFieldWrapper.stories.svelte.d.ts +27 -0
- package/dist/components/form/FormFieldWrapper.svelte +125 -0
- package/dist/components/form/FormFieldWrapper.svelte.d.ts +18 -0
- package/dist/components/form/FormFieldset.svelte +142 -0
- package/dist/components/form/FormFieldset.svelte.d.ts +11 -0
- package/dist/components/form/FormMarkdownEditor.svelte +752 -0
- package/dist/components/form/FormMarkdownEditor.svelte.d.ts +33 -0
- package/dist/components/form/FormNumberField.stories.svelte +36 -0
- package/dist/components/form/FormNumberField.stories.svelte.d.ts +27 -0
- package/dist/components/form/FormNumberField.svelte +112 -0
- package/dist/components/form/FormNumberField.svelte.d.ts +25 -0
- package/dist/components/form/FormRangeField.stories.svelte +31 -0
- package/dist/components/form/FormRangeField.stories.svelte.d.ts +27 -0
- package/dist/components/form/FormRangeField.svelte +246 -0
- package/dist/components/form/FormRangeField.svelte.d.ts +23 -0
- package/dist/components/form/FormSelect.stories.svelte +50 -0
- package/dist/components/form/FormSelect.stories.svelte.d.ts +27 -0
- package/dist/components/form/FormSelect.svelte +129 -0
- package/dist/components/form/FormSelect.svelte.d.ts +20 -0
- package/dist/components/form/FormTemplateEditor.svelte +825 -0
- package/dist/components/form/FormTemplateEditor.svelte.d.ts +41 -0
- package/dist/components/form/FormTextField.stories.svelte +30 -0
- package/dist/components/form/FormTextField.stories.svelte.d.ts +27 -0
- package/dist/components/form/FormTextField.svelte +91 -0
- package/dist/components/form/FormTextField.svelte.d.ts +19 -0
- package/dist/components/form/FormTextarea.stories.svelte +34 -0
- package/dist/components/form/FormTextarea.stories.svelte.d.ts +27 -0
- package/dist/components/form/FormTextarea.svelte +97 -0
- package/dist/components/form/FormTextarea.svelte.d.ts +21 -0
- package/dist/components/form/FormToggle.stories.svelte +30 -0
- package/dist/components/form/FormToggle.stories.svelte.d.ts +27 -0
- package/dist/components/form/FormToggle.svelte +126 -0
- package/dist/components/form/FormToggle.svelte.d.ts +19 -0
- package/dist/components/form/FormUISchemaRenderer.svelte +136 -0
- package/dist/components/form/FormUISchemaRenderer.svelte.d.ts +32 -0
- package/dist/components/form/index.d.ts +50 -0
- package/dist/components/form/index.js +54 -0
- package/dist/components/form/templateAutocomplete.d.ts +29 -0
- package/dist/components/form/templateAutocomplete.js +254 -0
- package/dist/components/form/types.d.ts +485 -0
- package/dist/components/form/types.js +73 -0
- package/dist/components/interrupt/ChoicePrompt.stories.svelte +52 -0
- package/dist/components/interrupt/ChoicePrompt.stories.svelte.d.ts +27 -0
- package/dist/components/interrupt/ChoicePrompt.svelte +401 -0
- package/dist/components/interrupt/ChoicePrompt.svelte.d.ts +23 -0
- package/dist/components/interrupt/ConfirmationPrompt.stories.svelte +71 -0
- package/dist/components/interrupt/ConfirmationPrompt.stories.svelte.d.ts +27 -0
- package/dist/components/interrupt/ConfirmationPrompt.svelte +292 -0
- package/dist/components/interrupt/ConfirmationPrompt.svelte.d.ts +25 -0
- package/dist/components/interrupt/FormPrompt.svelte +236 -0
- package/dist/components/interrupt/FormPrompt.svelte.d.ts +23 -0
- package/dist/components/interrupt/InterruptBubble.svelte +601 -0
- package/dist/components/interrupt/InterruptBubble.svelte.d.ts +16 -0
- package/dist/components/interrupt/ReviewPrompt.stories.svelte +67 -0
- package/dist/components/interrupt/ReviewPrompt.stories.svelte.d.ts +27 -0
- package/dist/components/interrupt/ReviewPrompt.svelte +861 -0
- package/dist/components/interrupt/ReviewPrompt.svelte.d.ts +23 -0
- package/dist/components/interrupt/TextInputPrompt.stories.svelte +47 -0
- package/dist/components/interrupt/TextInputPrompt.stories.svelte.d.ts +27 -0
- package/dist/components/interrupt/TextInputPrompt.svelte +346 -0
- package/dist/components/interrupt/TextInputPrompt.svelte.d.ts +23 -0
- package/dist/components/interrupt/index.d.ts +13 -0
- package/dist/components/interrupt/index.js +15 -0
- package/dist/components/layouts/MainLayout.svelte +718 -0
- package/dist/components/layouts/MainLayout.svelte.d.ts +62 -0
- package/dist/components/nodes/GatewayNode.stories.svelte +108 -0
- package/dist/components/nodes/GatewayNode.stories.svelte.d.ts +26 -0
- package/dist/components/nodes/GatewayNode.svelte +591 -0
- package/dist/components/nodes/GatewayNode.svelte.d.ts +15 -0
- package/dist/components/nodes/IdeaNode.stories.svelte +52 -0
- package/dist/components/nodes/IdeaNode.stories.svelte.d.ts +26 -0
- package/dist/components/nodes/IdeaNode.svelte +455 -0
- package/dist/components/nodes/IdeaNode.svelte.d.ts +24 -0
- package/dist/components/nodes/NotesNode.stories.svelte +76 -0
- package/dist/components/nodes/NotesNode.stories.svelte.d.ts +26 -0
- package/dist/components/nodes/NotesNode.svelte +378 -0
- package/dist/components/nodes/NotesNode.svelte.d.ts +24 -0
- package/dist/components/nodes/SimpleNode.stories.svelte +159 -0
- package/dist/components/nodes/SimpleNode.stories.svelte.d.ts +26 -0
- package/dist/components/nodes/SimpleNode.svelte +451 -0
- package/dist/components/nodes/SimpleNode.svelte.d.ts +25 -0
- package/dist/components/nodes/SquareNode.stories.svelte +82 -0
- package/dist/components/nodes/SquareNode.stories.svelte.d.ts +26 -0
- package/dist/components/nodes/SquareNode.svelte +407 -0
- package/dist/components/nodes/SquareNode.svelte.d.ts +25 -0
- package/dist/components/nodes/TerminalNode.stories.svelte +25 -0
- package/dist/components/nodes/TerminalNode.stories.svelte.d.ts +26 -0
- package/dist/components/nodes/TerminalNode.svelte +690 -0
- package/dist/components/nodes/TerminalNode.svelte.d.ts +25 -0
- package/dist/components/nodes/ToolNode.stories.svelte +189 -0
- package/dist/components/nodes/ToolNode.stories.svelte.d.ts +26 -0
- package/dist/components/nodes/ToolNode.svelte +471 -0
- package/dist/components/nodes/ToolNode.svelte.d.ts +36 -0
- package/dist/components/nodes/WorkflowNode.stories.svelte +55 -0
- package/dist/components/nodes/WorkflowNode.stories.svelte.d.ts +26 -0
- package/dist/components/nodes/WorkflowNode.svelte +571 -0
- package/dist/components/nodes/WorkflowNode.svelte.d.ts +15 -0
- package/dist/components/playground/ChatPanel.svelte +905 -0
- package/dist/components/playground/ChatPanel.svelte.d.ts +46 -0
- package/dist/components/playground/ExecutionLogs.svelte +488 -0
- package/dist/components/playground/ExecutionLogs.svelte.d.ts +14 -0
- package/dist/components/playground/InputCollector.svelte +444 -0
- package/dist/components/playground/InputCollector.svelte.d.ts +16 -0
- package/dist/components/playground/MessageBubble.stories.svelte +62 -0
- package/dist/components/playground/MessageBubble.stories.svelte.d.ts +27 -0
- package/dist/components/playground/MessageBubble.svelte +633 -0
- package/dist/components/playground/MessageBubble.svelte.d.ts +24 -0
- package/dist/components/playground/Playground.svelte +1075 -0
- package/dist/components/playground/Playground.svelte.d.ts +25 -0
- package/dist/components/playground/PlaygroundModal.svelte +220 -0
- package/dist/components/playground/PlaygroundModal.svelte.d.ts +25 -0
- package/dist/components/playground/SessionManager.svelte +538 -0
- package/dist/components/playground/SessionManager.svelte.d.ts +20 -0
- package/dist/config/agentSpecEndpoints.d.ts +70 -0
- package/dist/config/agentSpecEndpoints.js +65 -0
- package/dist/config/constants.d.ts +43 -0
- package/dist/config/constants.js +31 -0
- package/dist/config/defaultCategories.d.ts +7 -0
- package/dist/config/defaultCategories.js +126 -0
- package/dist/config/defaultPortConfig.d.ts +6 -0
- package/dist/config/defaultPortConfig.js +201 -0
- package/dist/config/endpoints.d.ts +160 -0
- package/dist/config/endpoints.js +146 -0
- package/dist/config/runtimeConfig.d.ts +47 -0
- package/dist/config/runtimeConfig.js +80 -0
- package/dist/core/index.d.ts +75 -0
- package/dist/core/index.js +92 -0
- package/dist/display/index.d.ts +29 -0
- package/dist/display/index.js +36 -0
- package/dist/editor/index.d.ts +95 -0
- package/dist/editor/index.js +138 -0
- package/dist/form/code.d.ts +101 -0
- package/dist/form/code.js +168 -0
- package/dist/form/fieldRegistry.d.ts +169 -0
- package/dist/form/fieldRegistry.js +152 -0
- package/dist/form/full.d.ts +56 -0
- package/dist/form/full.js +80 -0
- package/dist/form/index.d.ts +77 -0
- package/dist/form/index.js +91 -0
- package/dist/form/markdown.d.ts +69 -0
- package/dist/form/markdown.js +103 -0
- package/dist/helpers/nodeLayoutHelper.d.ts +14 -0
- package/dist/helpers/nodeLayoutHelper.js +19 -0
- package/dist/helpers/proximityConnect.d.ts +94 -0
- package/dist/helpers/proximityConnect.js +314 -0
- package/dist/helpers/workflowEditorHelper.d.ts +183 -0
- package/dist/helpers/workflowEditorHelper.js +595 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +64 -0
- package/dist/mocks/app-environment.d.ts +8 -0
- package/dist/mocks/app-environment.js +16 -0
- package/dist/mocks/app-forms.d.ts +2 -0
- package/dist/mocks/app-forms.js +22 -0
- package/dist/mocks/app-navigation.d.ts +5 -0
- package/dist/mocks/app-navigation.js +36 -0
- package/dist/mocks/app-stores.d.ts +14 -0
- package/dist/mocks/app-stores.js +26 -0
- package/dist/playground/index.d.ts +131 -0
- package/dist/playground/index.js +172 -0
- package/dist/playground/mount.d.ts +203 -0
- package/dist/playground/mount.js +235 -0
- package/dist/registry/BaseRegistry.d.ts +92 -0
- package/dist/registry/BaseRegistry.js +124 -0
- package/dist/registry/builtinFormats.d.ts +23 -0
- package/dist/registry/builtinFormats.js +70 -0
- package/dist/registry/builtinNodes.d.ts +77 -0
- package/dist/registry/builtinNodes.js +211 -0
- package/dist/registry/index.d.ts +8 -0
- package/dist/registry/index.js +12 -0
- package/dist/registry/nodeComponentRegistry.d.ts +276 -0
- package/dist/registry/nodeComponentRegistry.js +262 -0
- package/dist/registry/plugin.d.ts +215 -0
- package/dist/registry/plugin.js +249 -0
- package/dist/registry/workflowFormatRegistry.d.ts +122 -0
- package/dist/registry/workflowFormatRegistry.js +96 -0
- package/dist/schema/index.d.ts +23 -0
- package/dist/schema/index.js +23 -0
- package/dist/schemas/v1/workflow.schema.json +1078 -0
- package/dist/services/agentSpecExecutionService.d.ts +106 -0
- package/dist/services/agentSpecExecutionService.js +334 -0
- package/dist/services/api.d.ts +115 -0
- package/dist/services/api.js +214 -0
- package/dist/services/apiVariableService.d.ts +114 -0
- package/dist/services/apiVariableService.js +338 -0
- package/dist/services/autoSaveService.d.ts +112 -0
- package/dist/services/autoSaveService.js +227 -0
- package/dist/services/categoriesApi.d.ts +14 -0
- package/dist/services/categoriesApi.js +49 -0
- package/dist/services/draftStorage.d.ts +171 -0
- package/dist/services/draftStorage.js +299 -0
- package/dist/services/dynamicSchemaService.d.ts +108 -0
- package/dist/services/dynamicSchemaService.js +444 -0
- package/dist/services/globalSave.d.ts +69 -0
- package/dist/services/globalSave.js +248 -0
- package/dist/services/historyService.d.ts +208 -0
- package/dist/services/historyService.js +321 -0
- package/dist/services/interruptService.d.ts +133 -0
- package/dist/services/interruptService.js +280 -0
- package/dist/services/nodeExecutionService.d.ts +63 -0
- package/dist/services/nodeExecutionService.js +266 -0
- package/dist/services/playgroundService.d.ts +130 -0
- package/dist/services/playgroundService.js +321 -0
- package/dist/services/portConfigApi.d.ts +14 -0
- package/dist/services/portConfigApi.js +54 -0
- package/dist/services/settingsService.d.ts +92 -0
- package/dist/services/settingsService.js +196 -0
- package/dist/services/toastService.d.ts +156 -0
- package/dist/services/toastService.js +265 -0
- package/dist/services/variableService.d.ts +141 -0
- package/dist/services/variableService.js +463 -0
- package/dist/services/workflowStorage.d.ts +37 -0
- package/dist/services/workflowStorage.js +116 -0
- package/dist/settings/index.d.ts +25 -0
- package/dist/settings/index.js +33 -0
- package/dist/stores/categoriesStore.svelte.d.ts +32 -0
- package/dist/stores/categoriesStore.svelte.js +77 -0
- package/dist/stores/editorStateMachine.svelte.d.ts +42 -0
- package/dist/stores/editorStateMachine.svelte.js +132 -0
- package/dist/stores/historyStore.svelte.d.ts +136 -0
- package/dist/stores/historyStore.svelte.js +207 -0
- package/dist/stores/interruptStore.svelte.d.ts +179 -0
- package/dist/stores/interruptStore.svelte.js +346 -0
- package/dist/stores/playgroundStore.svelte.d.ts +230 -0
- package/dist/stores/playgroundStore.svelte.js +515 -0
- package/dist/stores/portCoordinateStore.svelte.d.ts +66 -0
- package/dist/stores/portCoordinateStore.svelte.js +186 -0
- package/dist/stores/settingsStore.svelte.d.ts +158 -0
- package/dist/stores/settingsStore.svelte.js +544 -0
- package/dist/stores/workflowStore.svelte.d.ts +260 -0
- package/dist/stores/workflowStore.svelte.js +649 -0
- package/dist/stories/CanvasDecorator.svelte +49 -0
- package/dist/stories/CanvasDecorator.svelte.d.ts +8 -0
- package/dist/stories/NodeDecorator.svelte +73 -0
- package/dist/stories/NodeDecorator.svelte.d.ts +8 -0
- package/dist/stories/utils.d.ts +93 -0
- package/dist/stories/utils.js +122 -0
- package/dist/styles/base.css +1300 -0
- package/dist/styles/toast.css +35 -0
- package/dist/styles/tokens.css +475 -0
- package/dist/svelte-app.d.ts +150 -0
- package/dist/svelte-app.js +295 -0
- package/dist/types/agentspec.d.ts +318 -0
- package/dist/types/agentspec.js +48 -0
- package/dist/types/auth.d.ts +263 -0
- package/dist/types/auth.js +229 -0
- package/dist/types/config.d.ts +151 -0
- package/dist/types/config.js +7 -0
- package/dist/types/events.d.ts +190 -0
- package/dist/types/events.js +30 -0
- package/dist/types/index.d.ts +1234 -0
- package/dist/types/index.js +27 -0
- package/dist/types/interrupt.d.ts +390 -0
- package/dist/types/interrupt.js +145 -0
- package/dist/types/interruptState.d.ts +211 -0
- package/dist/types/interruptState.js +308 -0
- package/dist/types/playground.d.ts +351 -0
- package/dist/types/playground.js +95 -0
- package/dist/types/settings.d.ts +189 -0
- package/dist/types/settings.js +97 -0
- package/dist/types/uischema.d.ts +144 -0
- package/dist/types/uischema.js +51 -0
- package/dist/utils/colors.d.ts +288 -0
- package/dist/utils/colors.js +548 -0
- package/dist/utils/config.d.ts +37 -0
- package/dist/utils/config.js +226 -0
- package/dist/utils/connections.d.ts +125 -0
- package/dist/utils/connections.js +414 -0
- package/dist/utils/errors.d.ts +28 -0
- package/dist/utils/errors.js +44 -0
- package/dist/utils/fetchWithAuth.d.ts +25 -0
- package/dist/utils/fetchWithAuth.js +34 -0
- package/dist/utils/handleIds.d.ts +35 -0
- package/dist/utils/handleIds.js +58 -0
- package/dist/utils/handlePositioning.d.ts +31 -0
- package/dist/utils/handlePositioning.js +35 -0
- package/dist/utils/icons.d.ts +106 -0
- package/dist/utils/icons.js +157 -0
- package/dist/utils/logger.d.ts +47 -0
- package/dist/utils/logger.js +72 -0
- package/dist/utils/nodeStatus.d.ts +53 -0
- package/dist/utils/nodeStatus.js +183 -0
- package/dist/utils/nodeTypes.d.ts +117 -0
- package/dist/utils/nodeTypes.js +244 -0
- package/dist/utils/nodeWrapper.d.ts +39 -0
- package/dist/utils/nodeWrapper.js +62 -0
- package/dist/utils/performanceUtils.d.ts +30 -0
- package/dist/utils/performanceUtils.js +108 -0
- package/dist/utils/sanitize.d.ts +19 -0
- package/dist/utils/sanitize.js +31 -0
- package/dist/utils/uischema.d.ts +52 -0
- package/dist/utils/uischema.js +88 -0
- package/dist/utils/validation.d.ts +29 -0
- package/dist/utils/validation.js +39 -0
- package/package.json +292 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReviewConfig, ReviewResolution } from '../../types/interrupt.js';
|
|
2
|
+
/**
|
|
3
|
+
* Component props
|
|
4
|
+
*/
|
|
5
|
+
interface Props {
|
|
6
|
+
/** Review configuration from the interrupt */
|
|
7
|
+
config: ReviewConfig;
|
|
8
|
+
/** Whether this interrupt has been resolved */
|
|
9
|
+
isResolved: boolean;
|
|
10
|
+
/** The resolved value if resolved */
|
|
11
|
+
resolvedValue?: ReviewResolution;
|
|
12
|
+
/** Whether the form is currently submitting */
|
|
13
|
+
isSubmitting: boolean;
|
|
14
|
+
/** Error message if submission failed */
|
|
15
|
+
error?: string;
|
|
16
|
+
/** Username of the person who resolved the interrupt */
|
|
17
|
+
resolvedByUserName?: string;
|
|
18
|
+
/** Callback when user submits review */
|
|
19
|
+
onSubmit: (value: ReviewResolution) => void;
|
|
20
|
+
}
|
|
21
|
+
declare const ReviewPrompt: import("svelte").Component<Props, {}, "">;
|
|
22
|
+
type ReviewPrompt = ReturnType<typeof ReviewPrompt>;
|
|
23
|
+
export default ReviewPrompt;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<script module>
|
|
2
|
+
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
+
import TextInputPrompt from './TextInputPrompt.svelte';
|
|
4
|
+
import { fn } from 'storybook/test';
|
|
5
|
+
import { createTextConfig } from '../../stories/utils.js';
|
|
6
|
+
|
|
7
|
+
const { Story } = defineMeta({
|
|
8
|
+
title: 'Interrupt/TextInputPrompt',
|
|
9
|
+
component: TextInputPrompt,
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
args: {
|
|
12
|
+
config: createTextConfig(),
|
|
13
|
+
isResolved: false,
|
|
14
|
+
isSubmitting: false,
|
|
15
|
+
onSubmit: fn()
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<Story name="Default" />
|
|
21
|
+
|
|
22
|
+
<Story
|
|
23
|
+
name="Multiline"
|
|
24
|
+
args={{
|
|
25
|
+
config: createTextConfig({
|
|
26
|
+
message: 'Describe the issue in detail:',
|
|
27
|
+
multiline: true,
|
|
28
|
+
placeholder: 'Type your description...'
|
|
29
|
+
})
|
|
30
|
+
}}
|
|
31
|
+
/>
|
|
32
|
+
|
|
33
|
+
<Story
|
|
34
|
+
name="With Constraints"
|
|
35
|
+
args={{
|
|
36
|
+
config: createTextConfig({ message: 'Enter a short summary:', minLength: 10, maxLength: 100 })
|
|
37
|
+
}}
|
|
38
|
+
/>
|
|
39
|
+
|
|
40
|
+
<Story
|
|
41
|
+
name="Resolved"
|
|
42
|
+
args={{
|
|
43
|
+
isResolved: true,
|
|
44
|
+
resolvedValue: 'The workflow completed successfully with all checks passed.',
|
|
45
|
+
resolvedByUserName: 'Charlie'
|
|
46
|
+
}}
|
|
47
|
+
/>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default TextInputPrompt;
|
|
2
|
+
type TextInputPrompt = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const TextInputPrompt: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
import TextInputPrompt from './TextInputPrompt.svelte';
|
|
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
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
17
|
+
$$bindings?: Bindings;
|
|
18
|
+
} & Exports;
|
|
19
|
+
(internal: unknown, props: {
|
|
20
|
+
$$events?: Events;
|
|
21
|
+
$$slots?: Slots;
|
|
22
|
+
}): Exports & {
|
|
23
|
+
$set?: any;
|
|
24
|
+
$on?: any;
|
|
25
|
+
};
|
|
26
|
+
z_$$bindings?: Bindings;
|
|
27
|
+
}
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
TextInputPrompt Component
|
|
3
|
+
|
|
4
|
+
Renders a text input prompt for text-type interrupts.
|
|
5
|
+
Supports single-line input and multiline textarea.
|
|
6
|
+
Shows the entered text when resolved.
|
|
7
|
+
Styled with BEM syntax.
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
<script lang="ts">
|
|
11
|
+
import Icon from '@iconify/svelte';
|
|
12
|
+
import type { TextConfig } from '../../types/interrupt.js';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Component props
|
|
16
|
+
*/
|
|
17
|
+
interface Props {
|
|
18
|
+
/** Text configuration from the interrupt */
|
|
19
|
+
config: TextConfig;
|
|
20
|
+
/** Whether this interrupt has been resolved */
|
|
21
|
+
isResolved: boolean;
|
|
22
|
+
/** The resolved value if resolved */
|
|
23
|
+
resolvedValue?: string;
|
|
24
|
+
/** Whether the form is currently submitting */
|
|
25
|
+
isSubmitting: boolean;
|
|
26
|
+
/** Error message if submission failed */
|
|
27
|
+
error?: string;
|
|
28
|
+
/** Username of the person who resolved the interrupt */
|
|
29
|
+
resolvedByUserName?: string;
|
|
30
|
+
/** Callback when user submits text */
|
|
31
|
+
onSubmit: (value: string) => void;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
let {
|
|
35
|
+
config,
|
|
36
|
+
isResolved,
|
|
37
|
+
resolvedValue,
|
|
38
|
+
isSubmitting,
|
|
39
|
+
error,
|
|
40
|
+
resolvedByUserName,
|
|
41
|
+
onSubmit
|
|
42
|
+
}: Props = $props();
|
|
43
|
+
|
|
44
|
+
/** Local state for input value */
|
|
45
|
+
// svelte-ignore state_referenced_locally — initial default, user edits the input
|
|
46
|
+
let inputValue = $state(config.defaultValue ?? '');
|
|
47
|
+
|
|
48
|
+
/** Display value - either resolved or current input */
|
|
49
|
+
const displayValue = $derived(isResolved ? (resolvedValue ?? '') : inputValue);
|
|
50
|
+
|
|
51
|
+
/** Whether the input is multiline */
|
|
52
|
+
const isMultiline = $derived(config.multiline ?? false);
|
|
53
|
+
|
|
54
|
+
/** Character count */
|
|
55
|
+
const charCount = $derived(inputValue.length);
|
|
56
|
+
|
|
57
|
+
/** Check if input is valid */
|
|
58
|
+
const isValidInput = $derived(
|
|
59
|
+
inputValue.length > 0 &&
|
|
60
|
+
(config.minLength === undefined || inputValue.length >= config.minLength) &&
|
|
61
|
+
(config.maxLength === undefined || inputValue.length <= config.maxLength)
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Handle input change
|
|
66
|
+
*/
|
|
67
|
+
function handleInput(event: Event): void {
|
|
68
|
+
if (isResolved || isSubmitting) return;
|
|
69
|
+
const target = event.target as HTMLInputElement | HTMLTextAreaElement;
|
|
70
|
+
inputValue = target.value;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Handle form submission
|
|
75
|
+
*/
|
|
76
|
+
function handleSubmit(): void {
|
|
77
|
+
if (!isValidInput || isResolved || isSubmitting) return;
|
|
78
|
+
onSubmit(inputValue);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Handle Enter key for single-line input
|
|
83
|
+
*/
|
|
84
|
+
function handleKeyDown(event: KeyboardEvent): void {
|
|
85
|
+
if (event.key === 'Enter' && !isMultiline && !event.shiftKey) {
|
|
86
|
+
event.preventDefault();
|
|
87
|
+
handleSubmit();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
</script>
|
|
91
|
+
|
|
92
|
+
<div
|
|
93
|
+
class="text-prompt"
|
|
94
|
+
class:text-prompt--resolved={isResolved}
|
|
95
|
+
class:text-prompt--submitting={isSubmitting}
|
|
96
|
+
>
|
|
97
|
+
<!-- Message -->
|
|
98
|
+
<p class="text-prompt__message">{config.message}</p>
|
|
99
|
+
|
|
100
|
+
<!-- Error message -->
|
|
101
|
+
{#if error}
|
|
102
|
+
<div class="text-prompt__error">
|
|
103
|
+
<Icon icon="mdi:alert-circle" />
|
|
104
|
+
<span>{error}</span>
|
|
105
|
+
</div>
|
|
106
|
+
{/if}
|
|
107
|
+
|
|
108
|
+
<!-- Input field -->
|
|
109
|
+
<div class="text-prompt__input-wrapper">
|
|
110
|
+
{#if isMultiline}
|
|
111
|
+
<textarea
|
|
112
|
+
class="text-prompt__textarea"
|
|
113
|
+
class:text-prompt__textarea--resolved={isResolved}
|
|
114
|
+
value={displayValue}
|
|
115
|
+
placeholder={config.placeholder ?? 'Enter your response...'}
|
|
116
|
+
disabled={isResolved || isSubmitting}
|
|
117
|
+
oninput={handleInput}
|
|
118
|
+
onkeydown={handleKeyDown}
|
|
119
|
+
rows={4}
|
|
120
|
+
minlength={config.minLength}
|
|
121
|
+
maxlength={config.maxLength}
|
|
122
|
+
></textarea>
|
|
123
|
+
{:else}
|
|
124
|
+
<input
|
|
125
|
+
type="text"
|
|
126
|
+
class="text-prompt__input"
|
|
127
|
+
class:text-prompt__input--resolved={isResolved}
|
|
128
|
+
value={displayValue}
|
|
129
|
+
placeholder={config.placeholder ?? 'Enter your response...'}
|
|
130
|
+
disabled={isResolved || isSubmitting}
|
|
131
|
+
oninput={handleInput}
|
|
132
|
+
onkeydown={handleKeyDown}
|
|
133
|
+
minlength={config.minLength}
|
|
134
|
+
maxlength={config.maxLength}
|
|
135
|
+
/>
|
|
136
|
+
{/if}
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
<!-- Character count -->
|
|
140
|
+
{#if !isResolved && (config.minLength !== undefined || config.maxLength !== undefined)}
|
|
141
|
+
<div class="text-prompt__char-count">
|
|
142
|
+
<span
|
|
143
|
+
class:text-prompt__char-count--warning={config.maxLength !== undefined &&
|
|
144
|
+
charCount > config.maxLength * 0.9}
|
|
145
|
+
>
|
|
146
|
+
{charCount}
|
|
147
|
+
{#if config.maxLength !== undefined}
|
|
148
|
+
/ {config.maxLength}
|
|
149
|
+
{/if}
|
|
150
|
+
{#if config.minLength !== undefined}
|
|
151
|
+
(min: {config.minLength})
|
|
152
|
+
{/if}
|
|
153
|
+
</span>
|
|
154
|
+
</div>
|
|
155
|
+
{/if}
|
|
156
|
+
|
|
157
|
+
<!-- Submit button -->
|
|
158
|
+
{#if !isResolved}
|
|
159
|
+
<div class="text-prompt__actions">
|
|
160
|
+
<button
|
|
161
|
+
type="button"
|
|
162
|
+
class="text-prompt__submit"
|
|
163
|
+
onclick={handleSubmit}
|
|
164
|
+
disabled={!isValidInput || isSubmitting}
|
|
165
|
+
>
|
|
166
|
+
{#if isSubmitting}
|
|
167
|
+
<span class="text-prompt__spinner"></span>
|
|
168
|
+
{:else}
|
|
169
|
+
<Icon icon="mdi:send" />
|
|
170
|
+
{/if}
|
|
171
|
+
<span>Submit</span>
|
|
172
|
+
</button>
|
|
173
|
+
</div>
|
|
174
|
+
{/if}
|
|
175
|
+
|
|
176
|
+
<!-- Resolved indicator -->
|
|
177
|
+
{#if isResolved}
|
|
178
|
+
<div class="text-prompt__resolved-badge">
|
|
179
|
+
<Icon icon="mdi:check-circle" />
|
|
180
|
+
<span>
|
|
181
|
+
{resolvedByUserName ? `Response submitted by ${resolvedByUserName}` : 'Response submitted'}
|
|
182
|
+
</span>
|
|
183
|
+
</div>
|
|
184
|
+
{/if}
|
|
185
|
+
</div>
|
|
186
|
+
|
|
187
|
+
<style>
|
|
188
|
+
/* Uses design tokens from base.css/tokens.css */
|
|
189
|
+
.text-prompt {
|
|
190
|
+
display: flex;
|
|
191
|
+
flex-direction: column;
|
|
192
|
+
gap: var(--fd-space-md);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.text-prompt--resolved {
|
|
196
|
+
opacity: 0.85;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.text-prompt--submitting {
|
|
200
|
+
pointer-events: none;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.text-prompt__message {
|
|
204
|
+
margin: 0;
|
|
205
|
+
font-size: var(--fd-interrupt-font-message);
|
|
206
|
+
line-height: var(--fd-interrupt-line-height);
|
|
207
|
+
color: var(--fd-foreground);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.text-prompt__error {
|
|
211
|
+
display: flex;
|
|
212
|
+
align-items: center;
|
|
213
|
+
gap: var(--fd-space-2xs);
|
|
214
|
+
padding: var(--fd-space-xs) var(--fd-space-md);
|
|
215
|
+
background-color: var(--fd-error-muted);
|
|
216
|
+
border-radius: var(--fd-radius-md);
|
|
217
|
+
color: var(--fd-error);
|
|
218
|
+
font-size: var(--fd-interrupt-font-error);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.text-prompt__input-wrapper {
|
|
222
|
+
display: flex;
|
|
223
|
+
flex-direction: column;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.text-prompt__input,
|
|
227
|
+
.text-prompt__textarea {
|
|
228
|
+
width: 100%;
|
|
229
|
+
padding: var(--fd-space-md) var(--fd-space-xl);
|
|
230
|
+
font-size: var(--fd-interrupt-font-message);
|
|
231
|
+
font-family: inherit;
|
|
232
|
+
line-height: var(--fd-interrupt-line-height);
|
|
233
|
+
color: var(--fd-foreground);
|
|
234
|
+
background-color: var(--fd-background);
|
|
235
|
+
border: 1px solid var(--fd-border-strong);
|
|
236
|
+
border-radius: var(--fd-radius-lg);
|
|
237
|
+
outline: none;
|
|
238
|
+
transition: all var(--fd-transition-fast);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.text-prompt__input::placeholder,
|
|
242
|
+
.text-prompt__textarea::placeholder {
|
|
243
|
+
color: var(--fd-muted-foreground);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.text-prompt__input:focus,
|
|
247
|
+
.text-prompt__textarea:focus {
|
|
248
|
+
border-color: var(--fd-interrupt-completed-border);
|
|
249
|
+
box-shadow: 0 0 0 3px var(--fd-interrupt-completed-shadow);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.text-prompt__input:disabled,
|
|
253
|
+
.text-prompt__textarea:disabled {
|
|
254
|
+
background-color: var(--fd-muted);
|
|
255
|
+
cursor: not-allowed;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/* Resolved state - neutral blue to match other interrupt prompts */
|
|
259
|
+
.text-prompt__input--resolved,
|
|
260
|
+
.text-prompt__textarea--resolved {
|
|
261
|
+
background-color: var(--fd-primary-muted);
|
|
262
|
+
border-color: var(--fd-interrupt-completed-border);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.text-prompt__textarea {
|
|
266
|
+
resize: vertical;
|
|
267
|
+
min-height: 100px;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.text-prompt__char-count {
|
|
271
|
+
font-size: var(--fd-text-xs);
|
|
272
|
+
color: var(--fd-muted-foreground);
|
|
273
|
+
text-align: right;
|
|
274
|
+
padding-right: var(--fd-space-3xs);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.text-prompt__char-count--warning {
|
|
278
|
+
color: var(--fd-warning);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.text-prompt__actions {
|
|
282
|
+
display: flex;
|
|
283
|
+
gap: var(--fd-space-md);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.text-prompt__submit {
|
|
287
|
+
display: inline-flex;
|
|
288
|
+
align-items: center;
|
|
289
|
+
justify-content: center;
|
|
290
|
+
gap: var(--fd-space-xs);
|
|
291
|
+
padding: var(--fd-space-sm) var(--fd-space-2xl);
|
|
292
|
+
border-radius: var(--fd-radius-lg);
|
|
293
|
+
font-size: var(--fd-text-sm);
|
|
294
|
+
font-weight: 600;
|
|
295
|
+
font-family: inherit;
|
|
296
|
+
cursor: pointer;
|
|
297
|
+
transition: all var(--fd-transition-normal);
|
|
298
|
+
border: none;
|
|
299
|
+
min-height: var(--fd-interrupt-btn-min-height);
|
|
300
|
+
background: var(--fd-interrupt-btn-primary-bg);
|
|
301
|
+
color: var(--fd-primary-foreground);
|
|
302
|
+
box-shadow: 0 1px 3px var(--fd-interrupt-btn-primary-shadow);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.text-prompt__submit:hover:not(:disabled) {
|
|
306
|
+
background: var(--fd-interrupt-btn-primary-bg-hover);
|
|
307
|
+
box-shadow: 0 4px 12px var(--fd-interrupt-btn-primary-shadow);
|
|
308
|
+
transform: translateY(-1px);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.text-prompt__submit:disabled {
|
|
312
|
+
opacity: 0.5;
|
|
313
|
+
cursor: not-allowed;
|
|
314
|
+
transform: none;
|
|
315
|
+
box-shadow: none;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.text-prompt__spinner {
|
|
319
|
+
width: var(--fd-interrupt-spinner-size);
|
|
320
|
+
height: var(--fd-interrupt-spinner-size);
|
|
321
|
+
border: 2px solid var(--fd-border);
|
|
322
|
+
border-top-color: currentColor;
|
|
323
|
+
border-radius: 50%;
|
|
324
|
+
animation: text-spin 0.6s linear infinite;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
@keyframes text-spin {
|
|
328
|
+
to {
|
|
329
|
+
transform: rotate(360deg);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/* Resolved badge - neutral blue theme */
|
|
334
|
+
.text-prompt__resolved-badge {
|
|
335
|
+
display: inline-flex;
|
|
336
|
+
align-items: center;
|
|
337
|
+
gap: var(--fd-space-2xs);
|
|
338
|
+
padding: var(--fd-space-2xs) var(--fd-space-md);
|
|
339
|
+
background-color: var(--fd-interrupt-badge-completed-bg);
|
|
340
|
+
border-radius: var(--fd-radius-full);
|
|
341
|
+
color: var(--fd-interrupt-badge-completed-text);
|
|
342
|
+
font-size: var(--fd-text-xs);
|
|
343
|
+
font-weight: 500;
|
|
344
|
+
align-self: flex-start;
|
|
345
|
+
}
|
|
346
|
+
</style>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TextConfig } from '../../types/interrupt.js';
|
|
2
|
+
/**
|
|
3
|
+
* Component props
|
|
4
|
+
*/
|
|
5
|
+
interface Props {
|
|
6
|
+
/** Text configuration from the interrupt */
|
|
7
|
+
config: TextConfig;
|
|
8
|
+
/** Whether this interrupt has been resolved */
|
|
9
|
+
isResolved: boolean;
|
|
10
|
+
/** The resolved value if resolved */
|
|
11
|
+
resolvedValue?: string;
|
|
12
|
+
/** Whether the form is currently submitting */
|
|
13
|
+
isSubmitting: boolean;
|
|
14
|
+
/** Error message if submission failed */
|
|
15
|
+
error?: string;
|
|
16
|
+
/** Username of the person who resolved the interrupt */
|
|
17
|
+
resolvedByUserName?: string;
|
|
18
|
+
/** Callback when user submits text */
|
|
19
|
+
onSubmit: (value: string) => void;
|
|
20
|
+
}
|
|
21
|
+
declare const TextInputPrompt: import("svelte").Component<Props, {}, "">;
|
|
22
|
+
type TextInputPrompt = ReturnType<typeof TextInputPrompt>;
|
|
23
|
+
export default TextInputPrompt;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interrupt Components
|
|
3
|
+
*
|
|
4
|
+
* UI components for Human-in-the-Loop (HITL) interrupt handling
|
|
5
|
+
* in the FlowDrop playground.
|
|
6
|
+
*
|
|
7
|
+
* @module components/interrupt
|
|
8
|
+
*/
|
|
9
|
+
export { default as InterruptBubble } from './InterruptBubble.svelte';
|
|
10
|
+
export { default as ConfirmationPrompt } from './ConfirmationPrompt.svelte';
|
|
11
|
+
export { default as ChoicePrompt } from './ChoicePrompt.svelte';
|
|
12
|
+
export { default as TextInputPrompt } from './TextInputPrompt.svelte';
|
|
13
|
+
export { default as FormPrompt } from './FormPrompt.svelte';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interrupt Components
|
|
3
|
+
*
|
|
4
|
+
* UI components for Human-in-the-Loop (HITL) interrupt handling
|
|
5
|
+
* in the FlowDrop playground.
|
|
6
|
+
*
|
|
7
|
+
* @module components/interrupt
|
|
8
|
+
*/
|
|
9
|
+
// Main container component
|
|
10
|
+
export { default as InterruptBubble } from './InterruptBubble.svelte';
|
|
11
|
+
// Prompt components
|
|
12
|
+
export { default as ConfirmationPrompt } from './ConfirmationPrompt.svelte';
|
|
13
|
+
export { default as ChoicePrompt } from './ChoicePrompt.svelte';
|
|
14
|
+
export { default as TextInputPrompt } from './TextInputPrompt.svelte';
|
|
15
|
+
export { default as FormPrompt } from './FormPrompt.svelte';
|