@particle-academy/fancy-flow 0.73.0 → 0.74.1

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/dist/index.d.cts CHANGED
@@ -13,7 +13,7 @@ import { WorkflowSchema, WorkflowMetadata } from './schema/index.cjs';
13
13
  export { ImportIssue, ImportOptions, ImportResult, WORKFLOW_SCHEMA_URL, WORKFLOW_SCHEMA_VERSION, WorkflowSchemaEdge, WorkflowSchemaNode, exportWorkflow, importWorkflow, migrateSchema, workflowToBlob } from './schema/index.cjs';
14
14
  import { AutoLayoutOptions } from './layout/index.cjs';
15
15
  export { AutoLayoutDirection } from './layout/index.cjs';
16
- export { F as FlowNodeStatus, a as FlowViewer, b as FlowViewerClassNames, c as FlowViewerProps } from './FlowViewer-CoAJ3o52.cjs';
16
+ export { F as FlowNodeStatus, a as FlowViewer, b as FlowViewerClassNames, c as FlowViewerProps } from './FlowViewer-Ak8kbY0e.cjs';
17
17
  import { FlowRunFeedEntry } from './runtime/index.cjs';
18
18
  export { HistoryController, UseFlowHistoryReturn, UseFlowRunOptions, UseFlowRunReturn, UseFlowStateReturn, applyOutputsToNodes, applyStatusesToNodes, createHistory, useFlowHistory, useFlowRun, useFlowState } from './runtime/index.cjs';
19
19
  export { R as RunOptions, a as RunResult, r as runFlow } from './run-flow-pW0PllaZ.cjs';
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ import { WorkflowSchema, WorkflowMetadata } from './schema/index.js';
13
13
  export { ImportIssue, ImportOptions, ImportResult, WORKFLOW_SCHEMA_URL, WORKFLOW_SCHEMA_VERSION, WorkflowSchemaEdge, WorkflowSchemaNode, exportWorkflow, importWorkflow, migrateSchema, workflowToBlob } from './schema/index.js';
14
14
  import { AutoLayoutOptions } from './layout/index.js';
15
15
  export { AutoLayoutDirection } from './layout/index.js';
16
- export { F as FlowNodeStatus, a as FlowViewer, b as FlowViewerClassNames, c as FlowViewerProps } from './FlowViewer-BCc_BvuD.js';
16
+ export { F as FlowNodeStatus, a as FlowViewer, b as FlowViewerClassNames, c as FlowViewerProps } from './FlowViewer-BAV29Zpi.js';
17
17
  import { FlowRunFeedEntry } from './runtime/index.js';
18
18
  export { HistoryController, UseFlowHistoryReturn, UseFlowRunOptions, UseFlowRunReturn, UseFlowStateReturn, applyOutputsToNodes, applyStatusesToNodes, createHistory, useFlowHistory, useFlowRun, useFlowState } from './runtime/index.js';
19
19
  export { R as RunOptions, a as RunResult, r as runFlow } from './run-flow-BLP9rXfO.js';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { removeNodes, removeEdges, cloneSubgraph, alignNodes, distributeNodes, reconnectEdge, assignToLane, removeFromLane, duplicateNode, setEdgeLabel, FlowCanvas } from './chunk-LYYQO7EY.js';
2
- export { ActionNode, DecisionNode, FlowCanvas, FlowViewer, NodeShell, OutputNode, SubgraphNode, TriggerNode, alignNodes, cloneSubgraph, defaultNodeTypes, distributeNodes, reconnectEdge } from './chunk-LYYQO7EY.js';
1
+ import { removeNodes, removeEdges, cloneSubgraph, alignNodes, distributeNodes, reconnectEdge, assignToLane, removeFromLane, duplicateNode, setEdgeLabel, FlowCanvas } from './chunk-2GU3V2ZD.js';
2
+ export { ActionNode, DecisionNode, FlowCanvas, FlowViewer, NodeShell, OutputNode, SubgraphNode, TriggerNode, alignNodes, cloneSubgraph, defaultNodeTypes, distributeNodes, reconnectEdge } from './chunk-2GU3V2ZD.js';
3
3
  import { useFlowState, useFlowRun, useFlowHistory, applyOutputsToNodes, applyStatusesToNodes } from './chunk-GQ5LEA7Q.js';
4
4
  export { applyOutputsToNodes, applyStatusesToNodes, createHistory, useFlowHistory, useFlowRun, useFlowState } from './chunk-GQ5LEA7Q.js';
5
5
  export { runCohort } from './chunk-K7KO3UJ3.js';
package/dist/screens.cjs CHANGED
@@ -11972,14 +11972,15 @@ function useResolvedColorMode(explicit) {
11972
11972
  }, [pinned]);
11973
11973
  return pinned ?? resolved;
11974
11974
  }
11975
- function preventScrollWhileZooming(event) {
11976
- if (event.shiftKey) event.preventDefault();
11975
+ function keepBareWheelFromZooming(event) {
11976
+ if (!event.shiftKey) event.stopPropagation();
11977
11977
  }
11978
11978
  function wheelZoomProps(zoomOnWheel) {
11979
- return zoomOnWheel ? { zoomActivationKeyCode: null, preventScrolling: true } : {
11979
+ return zoomOnWheel ? { zoomOnScroll: true, zoomActivationKeyCode: null, preventScrolling: true } : {
11980
+ zoomOnScroll: false,
11980
11981
  zoomActivationKeyCode: "Shift",
11981
- preventScrolling: false,
11982
- onWheelCapture: preventScrollWhileZooming
11982
+ preventScrolling: true,
11983
+ onWheelCapture: keepBareWheelFromZooming
11983
11984
  };
11984
11985
  }
11985
11986
  var DEFAULT_FIT_VIEW = { padding: 0.2 };
@@ -12260,6 +12261,7 @@ function FlowViewer({
12260
12261
  height = 480,
12261
12262
  showMinimap = false,
12262
12263
  showControls = true,
12264
+ zoomOnWheel = false,
12263
12265
  statuses,
12264
12266
  selectedNodeId = null,
12265
12267
  onSelectNode,
@@ -12367,7 +12369,7 @@ function FlowViewer({
12367
12369
  selectionKeyCode: null,
12368
12370
  multiSelectionKeyCode: null,
12369
12371
  connectOnClick: false,
12370
- zoomOnScroll: false,
12372
+ zoomOnWheel,
12371
12373
  onNodeClick: onSelectNode ? (_, node) => onSelectNode(node) : void 0,
12372
12374
  fitView: true
12373
12375
  }