next-chessground 1.3.1 → 1.3.2
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.es.js +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -7389,7 +7389,8 @@ const Chessboard = (props, ref) => {
|
|
|
7389
7389
|
const boardRef = useRef();
|
|
7390
7390
|
useImperativeHandle(ref, () => ({
|
|
7391
7391
|
board: boardRef.current?.board,
|
|
7392
|
-
undo: onUndo
|
|
7392
|
+
undo: onUndo,
|
|
7393
|
+
move: onMove
|
|
7393
7394
|
}));
|
|
7394
7395
|
const handleMove = async (from, to) => {
|
|
7395
7396
|
const move = onMove(from, to, promotion);
|
package/dist/index.js
CHANGED
|
@@ -7398,7 +7398,8 @@ const Chessboard = (props, ref) => {
|
|
|
7398
7398
|
const boardRef = React.useRef();
|
|
7399
7399
|
React.useImperativeHandle(ref, () => ({
|
|
7400
7400
|
board: boardRef.current?.board,
|
|
7401
|
-
undo: onUndo
|
|
7401
|
+
undo: onUndo,
|
|
7402
|
+
move: onMove
|
|
7402
7403
|
}));
|
|
7403
7404
|
const handleMove = async (from, to) => {
|
|
7404
7405
|
const move = onMove(from, to, promotion);
|