@particle-academy/fancy-flow 0.74.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.js CHANGED
@@ -1,5 +1,5 @@
1
- import { removeNodes, removeEdges, cloneSubgraph, alignNodes, distributeNodes, reconnectEdge, assignToLane, removeFromLane, duplicateNode, setEdgeLabel, FlowCanvas } from './chunk-XV5L4JQH.js';
2
- export { ActionNode, DecisionNode, FlowCanvas, FlowViewer, NodeShell, OutputNode, SubgraphNode, TriggerNode, alignNodes, cloneSubgraph, defaultNodeTypes, distributeNodes, reconnectEdge } from './chunk-XV5L4JQH.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 };