next-chessground 0.8.0 → 0.8.1

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 CHANGED
@@ -6686,6 +6686,9 @@ const cgProps = props => {
6686
6686
  cgProps.movable = {
6687
6687
  free: false
6688
6688
  };
6689
+ cgProps.drawable = {
6690
+ enabled: false
6691
+ };
6689
6692
  }
6690
6693
 
6691
6694
  if (props.readOnly) {
@@ -6693,6 +6696,9 @@ const cgProps = props => {
6693
6696
  cgProps.movable = {
6694
6697
  free: false
6695
6698
  };
6699
+ cgProps.drawable = {
6700
+ enabled: false
6701
+ };
6696
6702
  cgProps.coordinates = false;
6697
6703
  } // normalize orientation for Chessground
6698
6704
 
@@ -6719,6 +6725,10 @@ const cgProps = props => {
6719
6725
  cgProps.onMove = () => {};
6720
6726
  }
6721
6727
 
6728
+ if (props.shapes) {
6729
+ cgProps.shapes = props.shapes;
6730
+ }
6731
+
6722
6732
  return cgProps;
6723
6733
  };
6724
6734
 
package/dist/index.js CHANGED
@@ -6695,6 +6695,9 @@ const cgProps = props => {
6695
6695
  cgProps.movable = {
6696
6696
  free: false
6697
6697
  };
6698
+ cgProps.drawable = {
6699
+ enabled: false
6700
+ };
6698
6701
  }
6699
6702
 
6700
6703
  if (props.readOnly) {
@@ -6702,6 +6705,9 @@ const cgProps = props => {
6702
6705
  cgProps.movable = {
6703
6706
  free: false
6704
6707
  };
6708
+ cgProps.drawable = {
6709
+ enabled: false
6710
+ };
6705
6711
  cgProps.coordinates = false;
6706
6712
  } // normalize orientation for Chessground
6707
6713
 
@@ -6728,6 +6734,10 @@ const cgProps = props => {
6728
6734
  cgProps.onMove = () => {};
6729
6735
  }
6730
6736
 
6737
+ if (props.shapes) {
6738
+ cgProps.shapes = props.shapes;
6739
+ }
6740
+
6731
6741
  return cgProps;
6732
6742
  };
6733
6743
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-chessground",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "React and Next wrapper for Chessground with chessboard and pieces out of the box",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",