@d34dman/flowdrop 0.0.58 → 0.0.60

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="static/logo.svg" alt="FlowDrop" width="120" />
2
+ <img src="https://raw.githubusercontent.com/flowdrop-io/flowdrop/main/libs/flowdrop/static/logo.svg" alt="FlowDrop" width="120" />
3
3
  </p>
4
4
 
5
5
  <h1 align="center">FlowDrop</h1>
@@ -29,7 +29,7 @@
29
29
  </p>
30
30
 
31
31
  <p align="center">
32
- <img src="static/FlowDrop-Screenshot.jpg" alt="FlowDrop Screenshot" width="800" />
32
+ <img src="https://raw.githubusercontent.com/flowdrop-io/flowdrop/main/libs/flowdrop/static/FlowDrop-Screenshot.jpg" alt="FlowDrop Screenshot" width="800" />
33
33
  </p>
34
34
  <p align="center">
35
35
  <em>Build AI-powered workflows with drag-and-drop simplicity. Connect nodes, configure inputs/outputs, and visualize your entire pipeline.</em>
@@ -90,7 +90,7 @@ FlowDrop ships with 7 beautifully designed node types:
90
90
  | `note` | Markdown documentation blocks |
91
91
 
92
92
  <p align="center">
93
- <img src="static/Node-Types.jpg" alt="FlowDrop Node Types" width="800" />
93
+ <img src="https://raw.githubusercontent.com/flowdrop-io/flowdrop/main/libs/flowdrop/static/Node-Types.jpg" alt="FlowDrop Node Types" width="800" />
94
94
  </p>
95
95
  <p align="center">
96
96
  <em>From simple triggers to complex branching logic, each node type is designed for specific workflow patterns.</em>
@@ -199,6 +199,7 @@ Make it yours with CSS custom properties:
199
199
  ### Docker (Recommended)
200
200
 
201
201
  ```bash
202
+ cd ../../apps/example-client-docker
202
203
  cp env.example .env
203
204
  docker-compose up -d
204
205
  ```
@@ -217,7 +218,7 @@ Runtime configuration means you build once and deploy to staging, production, or
217
218
  | Resource | Description |
218
219
  | ------------------------------------------------------------ | ------------------------ |
219
220
  | [API Documentation](https://flowdrop-io.github.io/flowdrop/) | REST API specification |
220
- | [DOCKER.md](./DOCKER.md) | Docker deployment guide |
221
+ | [Docker Guide](../../apps/example-client-docker/README.md) | Docker deployment guide |
221
222
  | [QUICK_START.md](./QUICK_START.md) | Get running in 5 minutes |
222
223
  | [CHANGELOG.md](./CHANGELOG.md) | Version history |
223
224
 
@@ -6,7 +6,6 @@
6
6
 
7
7
  <script lang="ts">
8
8
  import { onMount, tick } from 'svelte';
9
- import { page } from '$app/stores';
10
9
  import MainLayout from './layouts/MainLayout.svelte';
11
10
  import WorkflowEditor from './WorkflowEditor.svelte';
12
11
  import NodeSidebar from './NodeSidebar.svelte';
@@ -617,7 +616,7 @@
617
616
 
618
617
  await fetchNodeTypes();
619
618
 
620
- // Initialize the workflow store if we have an initial workflow
619
+ // Initialize the workflow store
621
620
  if (initialWorkflow) {
622
621
  workflowActions.initialize(initialWorkflow);
623
622
 
@@ -625,6 +624,22 @@
625
624
  if (eventHandlers?.onWorkflowLoad) {
626
625
  eventHandlers.onWorkflowLoad(initialWorkflow);
627
626
  }
627
+ } else {
628
+ // Initialize with a default empty workflow so the editor is functional
629
+ // (e.g., drag-and-drop requires a non-null workflow in the store)
630
+ const defaultWorkflow: Workflow = {
631
+ id: '',
632
+ name: 'Untitled Workflow',
633
+ nodes: [],
634
+ edges: [],
635
+ metadata: {
636
+ version: '1.0.0',
637
+ format: DEFAULT_WORKFLOW_FORMAT,
638
+ createdAt: new Date().toISOString(),
639
+ updatedAt: new Date().toISOString()
640
+ }
641
+ };
642
+ workflowActions.initialize(defaultWorkflow);
628
643
  }
629
644
  })();
630
645
 
@@ -684,7 +699,7 @@
684
699
 
685
700
  <!-- MainLayout wrapper for workflow editor -->
686
701
  <MainLayout
687
- showHeader={showNavbar && !$page.url.pathname.includes('/edit')}
702
+ showHeader={showNavbar}
688
703
  showLeftSidebar={!disableSidebar}
689
704
  showRightSidebar={showRightPanel}
690
705
  showBottomPanel={false}
@@ -17,7 +17,7 @@
17
17
  *
18
18
  * @module schema
19
19
  */
20
- import workflowSchema from '../../../schemas/v1/workflow.schema.json';
20
+ import workflowSchema from '../schemas/v1/workflow.schema.json';
21
21
  /** Current workflow schema format version */
22
22
  export declare const WORKFLOW_SCHEMA_VERSION = "1.0.0";
23
23
  export { workflowSchema };
@@ -17,7 +17,7 @@
17
17
  *
18
18
  * @module schema
19
19
  */
20
- import workflowSchema from '../../../schemas/v1/workflow.schema.json';
20
+ import workflowSchema from '../schemas/v1/workflow.schema.json';
21
21
  /** Current workflow schema format version */
22
22
  export const WORKFLOW_SCHEMA_VERSION = '1.0.0';
23
23
  export { workflowSchema };