react-chessboard-ui 1.4.8 → 1.4.9

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.
@@ -2725,11 +2725,14 @@ var useChessBoardInteractive = function useChessBoardInteractive(props) {
2725
2725
  var handleSelectFigurePicker = function handleSelectFigurePicker(figure) {
2726
2726
  var startPos = fromPos[0] > -1 ? fromPos : clickedPos;
2727
2727
  var updatedCells = JSChessEngine.transformPawnToFigure(actualState, startPos, targetPos, figure);
2728
+ var colorFEN = currentColor === 'white' ? 'black' : 'white';
2729
+ var FEN = stateToFEN(updatedCells, colorFEN);
2728
2730
  var moveData = {
2729
2731
  figure: figure,
2730
2732
  from: startPos,
2731
2733
  to: targetPos,
2732
- type: 'transform'
2734
+ type: 'transform',
2735
+ FEN: FEN
2733
2736
  };
2734
2737
  onChange(moveData);
2735
2738
  setActualState(updatedCells);