@flowdrop/flowdrop 2.10.1 → 2.11.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 +162 -0
- package/dist/components/App.svelte +112 -29
- package/dist/components/ConfigForm.svelte +5 -5
- package/dist/components/ConfigModal.svelte +2 -2
- package/dist/components/ConfigModal.svelte.d.ts +1 -1
- package/dist/components/ConnectionLine.svelte +1 -1
- package/dist/components/LogsSidebar.svelte +15 -12
- package/dist/components/MarkdownDisplay.svelte +1 -1
- package/dist/components/PipelineStatus.svelte +5 -18
- package/dist/components/SchemaForm.svelte +1 -1
- package/dist/components/SettingsModal.svelte +1 -1
- package/dist/components/SettingsPanel.svelte +1 -1
- package/dist/components/WorkflowEditor.svelte +63 -37
- package/dist/components/WorkflowInterfaceEditor.svelte +43 -8
- package/dist/components/WorkflowInterfaceEditor.svelte.d.ts +12 -1
- package/dist/components/WorkflowInterfaceEntryCard.svelte +117 -44
- package/dist/components/WorkflowInterfaceEntryCard.svelte.d.ts +14 -1
- package/dist/components/WorkflowPlaygroundSettings.svelte +551 -0
- package/dist/components/WorkflowPlaygroundSettings.svelte.d.ts +20 -0
- package/dist/components/chat/AIChatPanel.svelte +1 -1
- package/dist/components/form/index.d.ts +2 -2
- package/dist/components/form/index.js +2 -2
- package/dist/components/nodes/ToolNode.svelte +1 -1
- package/dist/components/playground/ControlPanel.svelte +30 -0
- package/dist/components/playground/ControlPanel.svelte.d.ts +5 -0
- package/dist/components/playground/Playground.svelte +94 -42
- package/dist/components/playground/PlaygroundApp.svelte +1 -1
- package/dist/components/playground/PlaygroundModal.svelte +1 -1
- package/dist/components/playground/PlaygroundStudio.svelte +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/helpers/workflowEditorHelper.d.ts +12 -0
- package/dist/helpers/workflowEditorHelper.js +31 -0
- package/dist/messages/defaults.d.ts +53 -0
- package/dist/messages/defaults.js +48 -2
- package/dist/openapi/v1/openapi.yaml +113 -5
- package/dist/playground/index.d.ts +3 -1
- package/dist/playground/index.js +2 -1
- package/dist/playground/mount.d.ts +6 -10
- package/dist/playground/mount.js +43 -24
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/v1/workflow.schema.json +140 -2
- package/dist/services/globalSave.js +11 -1
- package/dist/services/playgroundService.d.ts +6 -1
- package/dist/services/playgroundService.js +5 -0
- package/dist/skins/default.d.ts +1 -1
- package/dist/skins/drafter.d.ts +1 -1
- package/dist/skins/index.d.ts +4 -4
- package/dist/skins/index.js +3 -3
- package/dist/skins/slate.d.ts +1 -1
- package/dist/stores/instanceContainer.svelte.d.ts +15 -0
- package/dist/stores/instanceContainer.svelte.js +11 -1
- package/dist/stores/playgroundStore.svelte.d.ts +8 -0
- package/dist/stores/playgroundStore.svelte.js +18 -4
- package/dist/stores/workflowStore.svelte.d.ts +4 -1
- package/dist/stores/workflowStore.svelte.js +8 -1
- package/dist/styles/base.css +14 -3
- package/dist/styles/tokenAliases.d.ts +13 -0
- package/dist/styles/tokenAliases.js +89 -0
- package/dist/themes/scopedSkinCss.d.ts +30 -0
- package/dist/themes/scopedSkinCss.js +95 -0
- package/dist/types/index.d.ts +86 -4
- package/dist/types/index.js +15 -3
- package/dist/types/skin.d.ts +2 -2
- package/dist/utils/playgroundChat.d.ts +121 -0
- package/dist/utils/playgroundChat.js +275 -0
- package/dist/utils/portal.d.ts +8 -0
- package/dist/utils/portal.js +15 -0
- package/dist/utils/workflowInterface.d.ts +88 -20
- package/dist/utils/workflowInterface.js +179 -18
- package/dist/webmcp/WebMCPConfirm.svelte +68 -18
- package/dist/webmcp/gate.d.ts +6 -0
- package/dist/webmcp/gate.js +4 -0
- package/dist/webmcp/runtime.js +2 -1
- package/package.json +7 -6
- package/dist/components/Button.stories.svelte +0 -65
- package/dist/components/Button.stories.svelte.d.ts +0 -19
- package/dist/components/CanvasBanner.stories.svelte +0 -30
- package/dist/components/CanvasBanner.stories.svelte.d.ts +0 -27
- package/dist/components/CanvasContextMenu.stories.svelte +0 -63
- package/dist/components/CanvasContextMenu.stories.svelte.d.ts +0 -19
- package/dist/components/ConfigPanel.stories.svelte +0 -47
- package/dist/components/ConfigPanel.stories.svelte.d.ts +0 -27
- package/dist/components/EditorStatusBar.stories.svelte +0 -44
- package/dist/components/EditorStatusBar.stories.svelte.d.ts +0 -27
- package/dist/components/FlowDropEdge.stories.svelte +0 -197
- package/dist/components/FlowDropEdge.stories.svelte.d.ts +0 -26
- package/dist/components/LoadingSpinner.stories.svelte +0 -30
- package/dist/components/LoadingSpinner.stories.svelte.d.ts +0 -27
- package/dist/components/Logo.stories.svelte +0 -22
- package/dist/components/Logo.stories.svelte.d.ts +0 -27
- package/dist/components/MarkdownDisplay.stories.svelte +0 -38
- package/dist/components/MarkdownDisplay.stories.svelte.d.ts +0 -27
- package/dist/components/Navbar.stories.svelte +0 -58
- package/dist/components/Navbar.stories.svelte.d.ts +0 -27
- package/dist/components/NodeStatusOverlay.stories.svelte +0 -85
- package/dist/components/NodeStatusOverlay.stories.svelte.d.ts +0 -27
- package/dist/components/SchemaForm.stories.svelte +0 -122
- package/dist/components/SchemaForm.stories.svelte.d.ts +0 -27
- package/dist/components/StatusIcon.stories.svelte +0 -60
- package/dist/components/StatusIcon.stories.svelte.d.ts +0 -27
- package/dist/components/StatusLabel.stories.svelte +0 -17
- package/dist/components/StatusLabel.stories.svelte.d.ts +0 -27
- package/dist/components/ThemeToggle.stories.svelte +0 -25
- package/dist/components/ThemeToggle.stories.svelte.d.ts +0 -27
- package/dist/components/console/CommandConsole.stories.svelte +0 -111
- package/dist/components/console/CommandConsole.stories.svelte.d.ts +0 -27
- package/dist/components/form/FormCheckboxGroup.stories.svelte +0 -28
- package/dist/components/form/FormCheckboxGroup.stories.svelte.d.ts +0 -27
- package/dist/components/form/FormFieldWrapper.stories.svelte +0 -53
- package/dist/components/form/FormFieldWrapper.stories.svelte.d.ts +0 -27
- package/dist/components/form/FormNumberField.stories.svelte +0 -36
- package/dist/components/form/FormNumberField.stories.svelte.d.ts +0 -27
- package/dist/components/form/FormRangeField.stories.svelte +0 -31
- package/dist/components/form/FormRangeField.stories.svelte.d.ts +0 -27
- package/dist/components/form/FormSelect.stories.svelte +0 -50
- package/dist/components/form/FormSelect.stories.svelte.d.ts +0 -27
- package/dist/components/form/FormTextField.stories.svelte +0 -30
- package/dist/components/form/FormTextField.stories.svelte.d.ts +0 -27
- package/dist/components/form/FormTextarea.stories.svelte +0 -34
- package/dist/components/form/FormTextarea.stories.svelte.d.ts +0 -27
- package/dist/components/form/FormToggle.stories.svelte +0 -30
- package/dist/components/form/FormToggle.stories.svelte.d.ts +0 -27
- package/dist/components/interrupt/ChoicePrompt.stories.svelte +0 -68
- package/dist/components/interrupt/ChoicePrompt.stories.svelte.d.ts +0 -27
- package/dist/components/interrupt/ConfirmationPrompt.stories.svelte +0 -71
- package/dist/components/interrupt/ConfirmationPrompt.stories.svelte.d.ts +0 -27
- package/dist/components/interrupt/ReviewPrompt.stories.svelte +0 -77
- package/dist/components/interrupt/ReviewPrompt.stories.svelte.d.ts +0 -27
- package/dist/components/interrupt/TextInputPrompt.stories.svelte +0 -51
- package/dist/components/interrupt/TextInputPrompt.stories.svelte.d.ts +0 -27
- package/dist/components/nodes/CaptionNode.stories.svelte +0 -65
- package/dist/components/nodes/CaptionNode.stories.svelte.d.ts +0 -18
- package/dist/components/nodes/GatewayNode.stories.svelte +0 -108
- package/dist/components/nodes/GatewayNode.stories.svelte.d.ts +0 -26
- package/dist/components/nodes/IdeaNode.stories.svelte +0 -52
- package/dist/components/nodes/IdeaNode.stories.svelte.d.ts +0 -26
- package/dist/components/nodes/NotesNode.stories.svelte +0 -76
- package/dist/components/nodes/NotesNode.stories.svelte.d.ts +0 -26
- package/dist/components/nodes/SimpleNode.stories.svelte +0 -223
- package/dist/components/nodes/SimpleNode.stories.svelte.d.ts +0 -26
- package/dist/components/nodes/SquareNode.stories.svelte +0 -127
- package/dist/components/nodes/SquareNode.stories.svelte.d.ts +0 -26
- package/dist/components/nodes/TerminalNode.stories.svelte +0 -25
- package/dist/components/nodes/TerminalNode.stories.svelte.d.ts +0 -26
- package/dist/components/nodes/ToolNode.stories.svelte +0 -189
- package/dist/components/nodes/ToolNode.stories.svelte.d.ts +0 -26
- package/dist/components/nodes/WorkflowNode.stories.svelte +0 -188
- package/dist/components/nodes/WorkflowNode.stories.svelte.d.ts +0 -26
- package/dist/components/playground/MessageBubble.stories.svelte +0 -151
- package/dist/components/playground/MessageBubble.stories.svelte.d.ts +0 -27
- package/dist/mocks/app-environment.d.ts +0 -8
- package/dist/mocks/app-environment.js +0 -16
- package/dist/mocks/app-forms.d.ts +0 -6
- package/dist/mocks/app-forms.js +0 -29
- package/dist/mocks/app-navigation.d.ts +0 -5
- package/dist/mocks/app-navigation.js +0 -36
- package/dist/mocks/app-stores.d.ts +0 -14
- package/dist/mocks/app-stores.js +0 -26
- package/dist/stories/CanvasDecorator.svelte +0 -49
- package/dist/stories/CanvasDecorator.svelte.d.ts +0 -8
- package/dist/stories/EdgeDecorator.svelte +0 -125
- package/dist/stories/EdgeDecorator.svelte.d.ts +0 -17
- package/dist/stories/NodeDecorator.svelte +0 -75
- package/dist/stories/NodeDecorator.svelte.d.ts +0 -8
- package/dist/stories/WebMCPFakeAgent.svelte +0 -229
- package/dist/stories/WebMCPFakeAgent.svelte.d.ts +0 -10
- package/dist/stories/utils.d.ts +0 -93
- package/dist/stories/utils.js +0 -156
- package/dist/webmcp/WebMCP.stories.svelte +0 -101
- package/dist/webmcp/WebMCP.stories.svelte.d.ts +0 -18
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export default Navbar;
|
|
2
|
-
type Navbar = SvelteComponent<{
|
|
3
|
-
[x: string]: never;
|
|
4
|
-
}, {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
}, {}> & {
|
|
7
|
-
$$bindings?: string | undefined;
|
|
8
|
-
};
|
|
9
|
-
declare const Navbar: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
-
[x: string]: never;
|
|
11
|
-
}, {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
}, {}, {}, string>;
|
|
14
|
-
import Navbar from './Navbar.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
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import NodeStatusOverlay from './NodeStatusOverlay.svelte';
|
|
4
|
-
|
|
5
|
-
const { Story } = defineMeta({
|
|
6
|
-
title: 'Editor/NodeStatusOverlay',
|
|
7
|
-
tags: ['autodocs'],
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: 'centered'
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<Story name="Idle (with history)">
|
|
15
|
-
<div
|
|
16
|
-
style="position: relative; width: 220px; height: 100px; margin-top: 60px; border: 1px solid var(--fd-border, #e5e7eb); border-radius: 8px; background: var(--fd-card, white);"
|
|
17
|
-
>
|
|
18
|
-
<NodeStatusOverlay
|
|
19
|
-
executionInfo={{
|
|
20
|
-
status: 'idle',
|
|
21
|
-
executionCount: 3,
|
|
22
|
-
isExecuting: false,
|
|
23
|
-
lastExecuted: new Date().toISOString()
|
|
24
|
-
}}
|
|
25
|
-
showDetails
|
|
26
|
-
/>
|
|
27
|
-
<div style="padding: 1rem; text-align: center; color: var(--fd-text, #374151);">
|
|
28
|
-
Node Content
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</Story>
|
|
32
|
-
|
|
33
|
-
<Story name="Running">
|
|
34
|
-
<div
|
|
35
|
-
style="position: relative; width: 220px; height: 100px; margin-top: 60px; border: 1px solid var(--fd-border, #e5e7eb); border-radius: 8px; background: var(--fd-card, white);"
|
|
36
|
-
>
|
|
37
|
-
<NodeStatusOverlay
|
|
38
|
-
executionInfo={{
|
|
39
|
-
status: 'running',
|
|
40
|
-
executionCount: 1,
|
|
41
|
-
isExecuting: true
|
|
42
|
-
}}
|
|
43
|
-
/>
|
|
44
|
-
<div style="padding: 1rem; text-align: center; color: var(--fd-text, #374151);">
|
|
45
|
-
Processing...
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</Story>
|
|
49
|
-
|
|
50
|
-
<Story name="Completed">
|
|
51
|
-
<div
|
|
52
|
-
style="position: relative; width: 220px; height: 100px; margin-top: 60px; border: 1px solid var(--fd-border, #e5e7eb); border-radius: 8px; background: var(--fd-card, white);"
|
|
53
|
-
>
|
|
54
|
-
<NodeStatusOverlay
|
|
55
|
-
executionInfo={{
|
|
56
|
-
status: 'completed',
|
|
57
|
-
executionCount: 5,
|
|
58
|
-
isExecuting: false,
|
|
59
|
-
lastExecuted: new Date().toISOString(),
|
|
60
|
-
lastExecutionDuration: 1250
|
|
61
|
-
}}
|
|
62
|
-
showDetails
|
|
63
|
-
/>
|
|
64
|
-
<div style="padding: 1rem; text-align: center; color: var(--fd-text, #374151);">Done!</div>
|
|
65
|
-
</div>
|
|
66
|
-
</Story>
|
|
67
|
-
|
|
68
|
-
<Story name="Failed">
|
|
69
|
-
<div
|
|
70
|
-
style="position: relative; width: 220px; height: 100px; margin-top: 60px; border: 1px solid var(--fd-border, #e5e7eb); border-radius: 8px; background: var(--fd-card, white);"
|
|
71
|
-
>
|
|
72
|
-
<NodeStatusOverlay
|
|
73
|
-
executionInfo={{
|
|
74
|
-
status: 'failed',
|
|
75
|
-
executionCount: 2,
|
|
76
|
-
isExecuting: false,
|
|
77
|
-
lastError: 'Connection timeout',
|
|
78
|
-
lastExecuted: new Date().toISOString(),
|
|
79
|
-
lastExecutionDuration: 30000
|
|
80
|
-
}}
|
|
81
|
-
showDetails
|
|
82
|
-
/>
|
|
83
|
-
<div style="padding: 1rem; text-align: center; color: var(--fd-text, #374151);">Error</div>
|
|
84
|
-
</div>
|
|
85
|
-
</Story>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export default NodeStatusOverlay;
|
|
2
|
-
type NodeStatusOverlay = SvelteComponent<{
|
|
3
|
-
[x: string]: never;
|
|
4
|
-
}, {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
}, {}> & {
|
|
7
|
-
$$bindings?: string | undefined;
|
|
8
|
-
};
|
|
9
|
-
declare const NodeStatusOverlay: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
-
[x: string]: never;
|
|
11
|
-
}, {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
}, {}, {}, string>;
|
|
14
|
-
import NodeStatusOverlay from './NodeStatusOverlay.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
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import SchemaForm from './SchemaForm.svelte';
|
|
4
|
-
import { fn } from 'storybook/test';
|
|
5
|
-
|
|
6
|
-
const { Story } = defineMeta({
|
|
7
|
-
title: 'Form/SchemaForm',
|
|
8
|
-
component: SchemaForm,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
args: {
|
|
11
|
-
onChange: fn(),
|
|
12
|
-
onSave: fn(),
|
|
13
|
-
onCancel: fn()
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<Story
|
|
19
|
-
name="Simple Form"
|
|
20
|
-
args={{
|
|
21
|
-
schema: {
|
|
22
|
-
type: 'object',
|
|
23
|
-
properties: {
|
|
24
|
-
name: {
|
|
25
|
-
type: 'string',
|
|
26
|
-
title: 'Name',
|
|
27
|
-
description: 'Enter your full name'
|
|
28
|
-
},
|
|
29
|
-
age: { type: 'number', title: 'Age', minimum: 0, maximum: 120 },
|
|
30
|
-
active: { type: 'boolean', title: 'Active', default: true }
|
|
31
|
-
},
|
|
32
|
-
required: ['name']
|
|
33
|
-
},
|
|
34
|
-
values: { name: 'Alice', age: 30, active: true }
|
|
35
|
-
}}
|
|
36
|
-
/>
|
|
37
|
-
|
|
38
|
-
<Story
|
|
39
|
-
name="Select Fields"
|
|
40
|
-
args={{
|
|
41
|
-
schema: {
|
|
42
|
-
type: 'object',
|
|
43
|
-
properties: {
|
|
44
|
-
model: {
|
|
45
|
-
type: 'string',
|
|
46
|
-
title: 'AI Model',
|
|
47
|
-
oneOf: [
|
|
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
|
-
},
|
|
53
|
-
temperature: {
|
|
54
|
-
type: 'number',
|
|
55
|
-
title: 'Temperature',
|
|
56
|
-
format: 'range',
|
|
57
|
-
minimum: 0,
|
|
58
|
-
maximum: 2,
|
|
59
|
-
step: 0.1,
|
|
60
|
-
default: 0.7
|
|
61
|
-
},
|
|
62
|
-
prompt: {
|
|
63
|
-
type: 'string',
|
|
64
|
-
title: 'System Prompt',
|
|
65
|
-
format: 'multiline',
|
|
66
|
-
description: 'The system prompt for the AI model'
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
values: {
|
|
71
|
-
model: 'gpt-4',
|
|
72
|
-
temperature: 0.7,
|
|
73
|
-
prompt: 'You are a helpful assistant.'
|
|
74
|
-
}
|
|
75
|
-
}}
|
|
76
|
-
/>
|
|
77
|
-
|
|
78
|
-
<Story
|
|
79
|
-
name="With Actions"
|
|
80
|
-
args={{
|
|
81
|
-
schema: {
|
|
82
|
-
type: 'object',
|
|
83
|
-
properties: {
|
|
84
|
-
email: { type: 'string', title: 'Email' },
|
|
85
|
-
notifications: { type: 'boolean', title: 'Enable Notifications' }
|
|
86
|
-
},
|
|
87
|
-
required: ['email']
|
|
88
|
-
},
|
|
89
|
-
values: { email: '', notifications: true },
|
|
90
|
-
showActions: true
|
|
91
|
-
}}
|
|
92
|
-
/>
|
|
93
|
-
|
|
94
|
-
<Story
|
|
95
|
-
name="Loading"
|
|
96
|
-
args={{
|
|
97
|
-
schema: {
|
|
98
|
-
type: 'object',
|
|
99
|
-
properties: {
|
|
100
|
-
name: { type: 'string', title: 'Name' }
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
values: { name: 'Test' },
|
|
104
|
-
showActions: true,
|
|
105
|
-
loading: true
|
|
106
|
-
}}
|
|
107
|
-
/>
|
|
108
|
-
|
|
109
|
-
<Story
|
|
110
|
-
name="Disabled"
|
|
111
|
-
args={{
|
|
112
|
-
schema: {
|
|
113
|
-
type: 'object',
|
|
114
|
-
properties: {
|
|
115
|
-
name: { type: 'string', title: 'Name' },
|
|
116
|
-
role: { type: 'string', title: 'Role' }
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
values: { name: 'Admin', role: 'Super User' },
|
|
120
|
-
disabled: true
|
|
121
|
-
}}
|
|
122
|
-
/>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export default SchemaForm;
|
|
2
|
-
type SchemaForm = SvelteComponent<{
|
|
3
|
-
[x: string]: never;
|
|
4
|
-
}, {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
}, {}> & {
|
|
7
|
-
$$bindings?: string | undefined;
|
|
8
|
-
};
|
|
9
|
-
declare const SchemaForm: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
-
[x: string]: never;
|
|
11
|
-
}, {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
}, {}, {}, string>;
|
|
14
|
-
import SchemaForm from './SchemaForm.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
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import StatusIcon from './StatusIcon.svelte';
|
|
4
|
-
|
|
5
|
-
const { Story } = defineMeta({
|
|
6
|
-
title: 'Display/StatusIcon',
|
|
7
|
-
component: StatusIcon,
|
|
8
|
-
tags: ['autodocs'],
|
|
9
|
-
argTypes: {
|
|
10
|
-
status: {
|
|
11
|
-
control: { type: 'select' },
|
|
12
|
-
options: ['idle', 'pending', 'running', 'completed', 'failed', 'cancelled', 'skipped']
|
|
13
|
-
},
|
|
14
|
-
size: {
|
|
15
|
-
control: { type: 'select' },
|
|
16
|
-
options: ['sm', 'md', 'lg', 'xl']
|
|
17
|
-
},
|
|
18
|
-
showBackground: { control: 'boolean' }
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<Story name="Idle" args={{ status: 'idle' }} />
|
|
24
|
-
|
|
25
|
-
<Story name="Running" args={{ status: 'running' }} />
|
|
26
|
-
|
|
27
|
-
<Story name="Completed" args={{ status: 'completed' }} />
|
|
28
|
-
|
|
29
|
-
<Story name="Failed" args={{ status: 'failed' }} />
|
|
30
|
-
|
|
31
|
-
<Story name="With Background" args={{ status: 'completed', showBackground: true }} />
|
|
32
|
-
|
|
33
|
-
<Story name="All Statuses">
|
|
34
|
-
<div style="display: flex; flex-direction: column; gap: 1.5rem;">
|
|
35
|
-
<div>
|
|
36
|
-
<div style="margin-bottom: 0.5rem; font-weight: 600;">Icon Only</div>
|
|
37
|
-
<div style="display: flex; gap: 1rem; align-items: center;">
|
|
38
|
-
<StatusIcon status="idle" />
|
|
39
|
-
<StatusIcon status="pending" />
|
|
40
|
-
<StatusIcon status="running" />
|
|
41
|
-
<StatusIcon status="completed" />
|
|
42
|
-
<StatusIcon status="failed" />
|
|
43
|
-
<StatusIcon status="cancelled" />
|
|
44
|
-
<StatusIcon status="skipped" />
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
<div>
|
|
48
|
-
<div style="margin-bottom: 0.5rem; font-weight: 600;">With Background</div>
|
|
49
|
-
<div style="display: flex; gap: 1rem; align-items: center;">
|
|
50
|
-
<StatusIcon status="idle" showBackground />
|
|
51
|
-
<StatusIcon status="pending" showBackground />
|
|
52
|
-
<StatusIcon status="running" showBackground />
|
|
53
|
-
<StatusIcon status="completed" showBackground />
|
|
54
|
-
<StatusIcon status="failed" showBackground />
|
|
55
|
-
<StatusIcon status="cancelled" showBackground />
|
|
56
|
-
<StatusIcon status="skipped" showBackground />
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
</Story>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export default StatusIcon;
|
|
2
|
-
type StatusIcon = SvelteComponent<{
|
|
3
|
-
[x: string]: never;
|
|
4
|
-
}, {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
}, {}> & {
|
|
7
|
-
$$bindings?: string | undefined;
|
|
8
|
-
};
|
|
9
|
-
declare const StatusIcon: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
-
[x: string]: never;
|
|
11
|
-
}, {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
}, {}, {}, string>;
|
|
14
|
-
import StatusIcon from './StatusIcon.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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import StatusLabel from './StatusLabel.svelte';
|
|
4
|
-
|
|
5
|
-
const { Story } = defineMeta({
|
|
6
|
-
title: 'Display/StatusLabel',
|
|
7
|
-
component: StatusLabel,
|
|
8
|
-
tags: ['autodocs'],
|
|
9
|
-
argTypes: {
|
|
10
|
-
label: { control: 'text' }
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<Story name="Default" args={{ label: 'Ready' }} />
|
|
16
|
-
|
|
17
|
-
<Story name="Long Text" args={{ label: 'Processing workflow execution...' }} />
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export default StatusLabel;
|
|
2
|
-
type StatusLabel = SvelteComponent<{
|
|
3
|
-
[x: string]: never;
|
|
4
|
-
}, {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
}, {}> & {
|
|
7
|
-
$$bindings?: string | undefined;
|
|
8
|
-
};
|
|
9
|
-
declare const StatusLabel: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
-
[x: string]: never;
|
|
11
|
-
}, {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
}, {}, {}, string>;
|
|
14
|
-
import StatusLabel from './StatusLabel.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
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import ThemeToggle from './ThemeToggle.svelte';
|
|
4
|
-
|
|
5
|
-
const { Story } = defineMeta({
|
|
6
|
-
title: 'Display/ThemeToggle',
|
|
7
|
-
component: ThemeToggle,
|
|
8
|
-
tags: ['autodocs'],
|
|
9
|
-
argTypes: {
|
|
10
|
-
size: {
|
|
11
|
-
control: { type: 'select' },
|
|
12
|
-
options: ['sm', 'md', 'lg']
|
|
13
|
-
},
|
|
14
|
-
showLabel: { control: 'boolean' }
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<Story name="Default" />
|
|
20
|
-
|
|
21
|
-
<Story name="Small" args={{ size: 'sm' }} />
|
|
22
|
-
|
|
23
|
-
<Story name="Large" args={{ size: 'lg' }} />
|
|
24
|
-
|
|
25
|
-
<Story name="With Label" args={{ showLabel: true }} />
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export default ThemeToggle;
|
|
2
|
-
type ThemeToggle = SvelteComponent<{
|
|
3
|
-
[x: string]: never;
|
|
4
|
-
}, {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
}, {}> & {
|
|
7
|
-
$$bindings?: string | undefined;
|
|
8
|
-
};
|
|
9
|
-
declare const ThemeToggle: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
-
[x: string]: never;
|
|
11
|
-
}, {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
}, {}, {}, string>;
|
|
14
|
-
import ThemeToggle from './ThemeToggle.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
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import CommandConsole from './CommandConsole.svelte';
|
|
4
|
-
import { fn } from 'storybook/test';
|
|
5
|
-
|
|
6
|
-
const mockNodeTypes = [
|
|
7
|
-
{
|
|
8
|
-
id: 'llm_chat',
|
|
9
|
-
name: 'LLM Chat',
|
|
10
|
-
description: 'Chat completion using an LLM provider',
|
|
11
|
-
category: 'AI',
|
|
12
|
-
version: '1.0.0',
|
|
13
|
-
inputs: [
|
|
14
|
-
{ id: 'prompt', name: 'Prompt', type: 'input', dataType: 'string' },
|
|
15
|
-
{ id: 'context', name: 'Context', type: 'input', dataType: 'string' }
|
|
16
|
-
],
|
|
17
|
-
outputs: [
|
|
18
|
-
{
|
|
19
|
-
id: 'response',
|
|
20
|
-
name: 'Response',
|
|
21
|
-
type: 'output',
|
|
22
|
-
dataType: 'string'
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
configSchema: {
|
|
26
|
-
type: 'object',
|
|
27
|
-
properties: {
|
|
28
|
-
model: { type: 'string', default: 'gpt-4' },
|
|
29
|
-
temperature: { type: 'number', default: 0.7 },
|
|
30
|
-
maxTokens: { type: 'number', default: 1024 }
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
id: 'http_request',
|
|
36
|
-
name: 'HTTP Request',
|
|
37
|
-
description: 'Send HTTP requests to external APIs',
|
|
38
|
-
category: 'Integration',
|
|
39
|
-
version: '1.0.0',
|
|
40
|
-
inputs: [
|
|
41
|
-
{ id: 'url', name: 'URL', type: 'input', dataType: 'string' },
|
|
42
|
-
{ id: 'body', name: 'Body', type: 'input', dataType: 'object' }
|
|
43
|
-
],
|
|
44
|
-
outputs: [
|
|
45
|
-
{
|
|
46
|
-
id: 'response',
|
|
47
|
-
name: 'Response',
|
|
48
|
-
type: 'output',
|
|
49
|
-
dataType: 'object'
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
id: 'status',
|
|
53
|
-
name: 'Status Code',
|
|
54
|
-
type: 'output',
|
|
55
|
-
dataType: 'number'
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
configSchema: {
|
|
59
|
-
type: 'object',
|
|
60
|
-
properties: {
|
|
61
|
-
method: { type: 'string', default: 'GET' },
|
|
62
|
-
headers: { type: 'object', default: {} },
|
|
63
|
-
timeout: { type: 'number', default: 30000 }
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
id: 'text_template',
|
|
69
|
-
name: 'Text Template',
|
|
70
|
-
description: 'Render text templates with variable substitution',
|
|
71
|
-
category: 'Transform',
|
|
72
|
-
version: '1.0.0',
|
|
73
|
-
inputs: [
|
|
74
|
-
{
|
|
75
|
-
id: 'variables',
|
|
76
|
-
name: 'Variables',
|
|
77
|
-
type: 'input',
|
|
78
|
-
dataType: 'object'
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
outputs: [{ id: 'text', name: 'Text', type: 'output', dataType: 'string' }],
|
|
82
|
-
configSchema: {
|
|
83
|
-
type: 'object',
|
|
84
|
-
properties: {
|
|
85
|
-
template: { type: 'string', default: '' },
|
|
86
|
-
delimiter: { type: 'string', default: '{{' }
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
];
|
|
91
|
-
|
|
92
|
-
const { Story } = defineMeta({
|
|
93
|
-
title: 'Editor/CommandConsole',
|
|
94
|
-
component: CommandConsole,
|
|
95
|
-
tags: ['autodocs'],
|
|
96
|
-
parameters: {
|
|
97
|
-
layout: 'padded'
|
|
98
|
-
},
|
|
99
|
-
args: {
|
|
100
|
-
nodeTypes: mockNodeTypes,
|
|
101
|
-
onUIAction: fn()
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
</script>
|
|
105
|
-
|
|
106
|
-
<Story
|
|
107
|
-
name="Default"
|
|
108
|
-
args={{
|
|
109
|
-
nodeTypes: mockNodeTypes
|
|
110
|
-
}}
|
|
111
|
-
/>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export default CommandConsole;
|
|
2
|
-
type CommandConsole = SvelteComponent<{
|
|
3
|
-
[x: string]: never;
|
|
4
|
-
}, {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
}, {}> & {
|
|
7
|
-
$$bindings?: string | undefined;
|
|
8
|
-
};
|
|
9
|
-
declare const CommandConsole: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
-
[x: string]: never;
|
|
11
|
-
}, {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
}, {}, {}, string>;
|
|
14
|
-
import CommandConsole from './CommandConsole.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
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import FormCheckboxGroup from './FormCheckboxGroup.svelte';
|
|
4
|
-
import { fn } from 'storybook/test';
|
|
5
|
-
|
|
6
|
-
const { Story } = defineMeta({
|
|
7
|
-
title: 'Form/FormCheckboxGroup',
|
|
8
|
-
component: FormCheckboxGroup,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
argTypes: {
|
|
11
|
-
disabled: { control: 'boolean' }
|
|
12
|
-
},
|
|
13
|
-
args: {
|
|
14
|
-
id: 'demo-checkbox-group',
|
|
15
|
-
options: ['Email', 'SMS', 'Push Notification', 'Webhook'],
|
|
16
|
-
value: [],
|
|
17
|
-
onChange: fn()
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<Story name="No Selection" args={{ value: [] }} />
|
|
23
|
-
|
|
24
|
-
<Story name="Pre-selected" args={{ value: ['Email', 'Push Notification'] }} />
|
|
25
|
-
|
|
26
|
-
<Story name="All Selected" args={{ value: ['Email', 'SMS', 'Push Notification', 'Webhook'] }} />
|
|
27
|
-
|
|
28
|
-
<Story name="Disabled" args={{ value: ['Email'], disabled: true }} />
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export default FormCheckboxGroup;
|
|
2
|
-
type FormCheckboxGroup = SvelteComponent<{
|
|
3
|
-
[x: string]: never;
|
|
4
|
-
}, {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
}, {}> & {
|
|
7
|
-
$$bindings?: string | undefined;
|
|
8
|
-
};
|
|
9
|
-
declare const FormCheckboxGroup: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
-
[x: string]: never;
|
|
11
|
-
}, {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
}, {}, {}, string>;
|
|
14
|
-
import FormCheckboxGroup from './FormCheckboxGroup.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
|
-
}
|