@industry-theme/principal-view-panels 0.1.10 → 0.1.11

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.
@@ -54127,6 +54127,14 @@ const PrincipalViewGraphPanel = ({
54127
54127
  ] })
54128
54128
  ] });
54129
54129
  };
54130
+ function handleToCanvasSide(handle) {
54131
+ if (!handle) return void 0;
54132
+ const side = handle.replace(/-out$/, "");
54133
+ if (side === "top" || side === "right" || side === "bottom" || side === "left") {
54134
+ return side;
54135
+ }
54136
+ return void 0;
54137
+ }
54130
54138
  function applyChangesToCanvas(canvas, changes) {
54131
54139
  var _a, _b;
54132
54140
  const updatedCanvas = JSON.parse(JSON.stringify(canvas));
@@ -54178,8 +54186,9 @@ function applyChangesToCanvas(canvas, changes) {
54178
54186
  id: edgeId,
54179
54187
  fromNode: from,
54180
54188
  toNode: to2,
54181
- fromSide: sourceHandle,
54182
- toSide: targetHandle,
54189
+ // Convert React Flow handle IDs back to canvas side format
54190
+ fromSide: handleToCanvasSide(sourceHandle),
54191
+ toSide: handleToCanvasSide(targetHandle),
54183
54192
  pv: { edgeType: type2 }
54184
54193
  });
54185
54194
  }