react-chessboard-ui 1.7.3 → 1.7.4

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.
@@ -2042,7 +2042,8 @@ var ChessBoardCellsLayout = function ChessBoardCellsLayout(_ref) {
2042
2042
  var _ref$size = _ref.size,
2043
2043
  size = _ref$size === void 0 ? BASE_BOARD_SIZE : _ref$size,
2044
2044
  boardConfig = _ref.boardConfig,
2045
- movesTrail = _ref.movesTrail;
2045
+ movesTrail = _ref.movesTrail,
2046
+ moveHighlight = _ref.moveHighlight;
2046
2047
  return React.createElement("div", null, getFilledArrayBySize(size).map(function (_, j) {
2047
2048
  return React.createElement("div", {
2048
2049
  className: styles.row,
@@ -2057,6 +2058,8 @@ var ChessBoardCellsLayout = function ChessBoardCellsLayout(_ref) {
2057
2058
  key: "cells-layout-" + i
2058
2059
  }, movesTrail && (movesTrail[0][0] === i && movesTrail[0][1] === j || movesTrail[1][0] === i && movesTrail[1][1] === j) && React.createElement("div", {
2059
2060
  className: styles.movesTrail
2061
+ }), moveHighlight && (moveHighlight[0][0] === i && moveHighlight[0][1] === j || moveHighlight[1][0] === i && moveHighlight[1][1] === j) && React.createElement("div", {
2062
+ className: styles.movesTrail
2060
2063
  }));
2061
2064
  }));
2062
2065
  }));
@@ -2984,7 +2987,8 @@ var ChessBoard = function ChessBoard(props) {
2984
2987
  reversed = props.reversed,
2985
2988
  config = props.config,
2986
2989
  playerColor = props.playerColor,
2987
- viewOnly = props.viewOnly;
2990
+ viewOnly = props.viewOnly,
2991
+ moveHighlight = props.moveHighlight;
2988
2992
  var _useChessBoardInterac = useChessBoardInteractive({
2989
2993
  onChange: onChange,
2990
2994
  onEndGame: onEndGame,
@@ -3053,7 +3057,8 @@ var ChessBoard = function ChessBoard(props) {
3053
3057
  className: styles.chessBoard
3054
3058
  }, React.createElement(ChessBoardCellsLayout, {
3055
3059
  boardConfig: boardConfig,
3056
- movesTrail: boardConfig.showMovesTrail && movesTrail
3060
+ movesTrail: boardConfig.showMovesTrail && movesTrail,
3061
+ moveHighlight: moveHighlight
3057
3062
  }), React.createElement(ChessBoardFiguresLayout, {
3058
3063
  initialState: initialState,
3059
3064
  change: newMove,