@d34dman/flowdrop 0.0.5 → 0.0.6

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.
@@ -26,7 +26,7 @@ async function ensureApiConfiguration() {
26
26
  return;
27
27
  }
28
28
  }
29
- catch (error) {
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
- const savedWorkflow = await workflowApi.saveWorkflow(finalWorkflow);
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-ignore - Adding to window for external access
160
+ // @ts-expect-error - Adding to window for external access
161
161
  window.flowdropGlobalSave = globalSaveWorkflow;
162
- // @ts-ignore - Adding to window for external access
162
+ // @ts-expect-error - Adding to window for external access
163
163
  window.flowdropGlobalExport = globalExportWorkflow;
164
164
  }
165
165
  }
@@ -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, nodes = [], endpointConfig, portConfig, height = '100vh', width = '100%', showNavbar = false, disableSidebar, lockWorkflow, readOnly, nodeStatuses, pipelineId, navbarTitle, navbarActions } = options;
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 { workflow, nodes = [], endpointConfig, portConfig } = options;
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",
5
+ "version": "0.0.6",
6
6
  "scripts": {
7
7
  "dev": "vite dev",
8
8
  "build": "vite build && npm run prepack",