@d34dman/flowdrop 0.0.5 → 0.0.7
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 +107 -104
- package/dist/api/client.js +17 -17
- package/dist/components/App.svelte +72 -66
- package/dist/components/App.svelte.d.ts +1 -0
- package/dist/components/Navbar.svelte +1 -11
- package/dist/components/NodeSidebar.svelte +2 -1
- package/dist/components/NodeStatusOverlay.svelte +0 -1
- package/dist/components/NodeStatusOverlay.svelte.d.ts +0 -1
- package/dist/components/PipelineStatus.svelte +1 -38
- package/dist/components/SimpleNode.svelte +0 -7
- package/dist/components/SquareNode.svelte +0 -7
- package/dist/components/UniversalNode.svelte +0 -8
- package/dist/components/WorkflowEditor.svelte +63 -456
- package/dist/components/WorkflowNode.svelte +1 -8
- package/dist/helpers/workflowEditorHelper.d.ts +87 -0
- package/dist/helpers/workflowEditorHelper.js +365 -0
- package/dist/index.d.ts +31 -1
- package/dist/index.js +30 -1
- package/dist/mocks/app-navigation.d.ts +4 -4
- package/dist/mocks/app-navigation.js +4 -4
- package/dist/services/api.js +13 -18
- package/dist/services/globalSave.js +4 -4
- package/dist/svelte-app.js +2 -3
- package/package.json +5 -1
|
@@ -26,7 +26,7 @@ async function ensureApiConfiguration() {
|
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
catch
|
|
29
|
+
catch {
|
|
30
30
|
// Could not check existing API configuration, initializing
|
|
31
31
|
}
|
|
32
32
|
// API configuration is not initialized, so let's initialize it
|
|
@@ -96,7 +96,7 @@ export async function globalSaveWorkflow() {
|
|
|
96
96
|
updatedAt: new Date().toISOString()
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
|
-
|
|
99
|
+
await workflowApi.saveWorkflow(finalWorkflow);
|
|
100
100
|
// Dismiss loading toast and show success toast
|
|
101
101
|
if (loadingToast)
|
|
102
102
|
dismissToast(loadingToast);
|
|
@@ -157,9 +157,9 @@ export async function globalExportWorkflow() {
|
|
|
157
157
|
*/
|
|
158
158
|
export function initializeGlobalSave() {
|
|
159
159
|
if (typeof window !== 'undefined') {
|
|
160
|
-
// @ts-
|
|
160
|
+
// @ts-expect-error - Adding to window for external access
|
|
161
161
|
window.flowdropGlobalSave = globalSaveWorkflow;
|
|
162
|
-
// @ts-
|
|
162
|
+
// @ts-expect-error - Adding to window for external access
|
|
163
163
|
window.flowdropGlobalExport = globalExportWorkflow;
|
|
164
164
|
}
|
|
165
165
|
}
|
package/dist/svelte-app.js
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
import { mount } from 'svelte';
|
|
7
7
|
import WorkflowEditor from './components/WorkflowEditor.svelte';
|
|
8
8
|
import App from './components/App.svelte';
|
|
9
|
-
import { createEndpointConfig } from './config/endpoints.js';
|
|
10
9
|
import { initializePortCompatibility } from './utils/connections.js';
|
|
11
10
|
import { DEFAULT_PORT_CONFIG } from './config/defaultPortConfig.js';
|
|
12
11
|
import { fetchPortConfig } from './services/portConfigApi.js';
|
|
@@ -17,7 +16,7 @@ import { fetchPortConfig } from './services/portConfigApi.js';
|
|
|
17
16
|
* @param options - Configuration options for the app
|
|
18
17
|
*/
|
|
19
18
|
export async function mountFlowDropApp(container, options = {}) {
|
|
20
|
-
const { workflow,
|
|
19
|
+
const { workflow, endpointConfig, portConfig, height = '100vh', width = '100%', showNavbar = false, disableSidebar, lockWorkflow, readOnly, nodeStatuses, pipelineId, navbarTitle, navbarActions } = options;
|
|
21
20
|
// Create endpoint configuration
|
|
22
21
|
let config;
|
|
23
22
|
if (endpointConfig) {
|
|
@@ -94,7 +93,7 @@ export async function mountFlowDropApp(container, options = {}) {
|
|
|
94
93
|
* Simpler alternative to mountFlowDropApp - only mounts the editor without navbar
|
|
95
94
|
*/
|
|
96
95
|
export async function mountWorkflowEditor(container, options = {}) {
|
|
97
|
-
const {
|
|
96
|
+
const { nodes = [], endpointConfig, portConfig } = options;
|
|
98
97
|
// Create endpoint configuration
|
|
99
98
|
let config;
|
|
100
99
|
if (endpointConfig) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@d34dman/flowdrop",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.7",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite dev",
|
|
8
8
|
"build": "vite build && npm run prepack",
|
|
@@ -83,6 +83,10 @@
|
|
|
83
83
|
"@sveltejs/kit": "^2.0.0",
|
|
84
84
|
"svelte": "^5.0.0"
|
|
85
85
|
},
|
|
86
|
+
"repository": {
|
|
87
|
+
"type": "git",
|
|
88
|
+
"url": "git+https://github.com/d34dman/flowdrop.git"
|
|
89
|
+
},
|
|
86
90
|
"devDependencies": {
|
|
87
91
|
"@chromatic-com/storybook": "^4.0.1",
|
|
88
92
|
"@eslint/compat": "^1.2.5",
|