react-chessboard-ui 1.4.1 → 1.4.3
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2574,7 +2574,6 @@ var useChessBoardInteractive = function useChessBoardInteractive(props) {
|
|
|
2574
2574
|
var handleChangeFromExternal = function handleChangeFromExternal(moveData) {
|
|
2575
2575
|
var _moveFigureByExternal = moveFigureByExternalChange(moveData.from, moveData.to, moveData.figure),
|
|
2576
2576
|
attackedPos = _moveFigureByExternal.attackedPos;
|
|
2577
|
-
onChange(moveData);
|
|
2578
2577
|
setAnimated(true);
|
|
2579
2578
|
var change = {
|
|
2580
2579
|
move: moveData,
|
|
@@ -2943,7 +2942,8 @@ var ChessBoard = function ChessBoard(props) {
|
|
|
2943
2942
|
}, [playerColor]);
|
|
2944
2943
|
React.useEffect(function () {
|
|
2945
2944
|
handleUpdateFEN(FEN);
|
|
2946
|
-
|
|
2945
|
+
if (reversed) reverseChessBoard();
|
|
2946
|
+
}, [FEN, reversed]);
|
|
2947
2947
|
React.useEffect(function () {
|
|
2948
2948
|
if (reversed) reverseChessBoard();
|
|
2949
2949
|
}, [reversed]);
|