message: refactor(edges): pass source and target handle ids for click and selection
diff: @@ -55,21 +55,32 @@ export default (EdgeComponent: ComponentType<EdgeProps>) => {
  const onEdgeClick = useCallback(
  (event: React.MouseEvent<SVGGElement, MouseEvent>): void => {
  - if (elementsSelectable) {
  - addSelectedElements({ id, source, target });
  + const edgeElement: Edge = {
  + id,
  + source,
  + target,
  + type,
  + };
  +
  + if (sourceHandleId) {
  + edgeElement.sourceHandle = sourceHandleId;
  }
  - if (onClick) {
  - const edgeElement: Edge = { id, source, target, type };
  + if (targetHandleId) {
  + edgeElement.targetHandle = targetHandleId;
  + }
  if (typeof data !== 'undefined') {
  edgeElement.data = data;
  }
  - onClick(event, edgeElement);
  + if (elementsSelectable) {
  + addSelectedElements(edgeElement);
  }
  +
  + onClick?.(event, edgeElement);
  },
  - [elementsSelectable, id, source, target, type, data, onClick]
  + [elementsSelectable, id, source, target, type, data, sourceHandleId, targetHandleId, onClick]
  );
  const handleEdgeUpdater = useCallback(
  