react-chessboard-ui 2.5.0 → 2.6.0

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.
@@ -2599,6 +2599,7 @@ var useChessBoardInteractive = function useChessBoardInteractive(props) {
2599
2599
  } else {
2600
2600
  var nextMoves = JSChessEngine.getNextMoves(updatedCells, fromPos, linesCheck, boardReversed);
2601
2601
  setPossibleMoves(nextMoves);
2602
+ setClickPossibleMoves(nextMoves);
2602
2603
  }
2603
2604
  }
2604
2605
  setActualState(updatedCells);
@@ -2616,8 +2617,6 @@ var useChessBoardInteractive = function useChessBoardInteractive(props) {
2616
2617
  FEN: FEN
2617
2618
  };
2618
2619
  toggleCurrentColor();
2619
- setClickedFigure(undefined);
2620
- clearClickedPos();
2621
2620
  clearArrows();
2622
2621
  clearMarkedCells();
2623
2622
  return {
@@ -2681,8 +2680,6 @@ var useChessBoardInteractive = function useChessBoardInteractive(props) {
2681
2680
  };
2682
2681
  setNewMove(change);
2683
2682
  setMovesTrail([moveData.from, moveData.to]);
2684
- clearClickedPos();
2685
- clearClickPossibleMoves();
2686
2683
  };
2687
2684
  var handleClickForTargetCell = function handleClickForTargetCell(cellPos, withTransition) {
2688
2685
  if (withTransition === void 0) {