@alepot55/chessboardjs 1.0.0 → 1.0.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/chessboard.js CHANGED
@@ -1,5 +1,3 @@
1
- import { Chess } from './node_modules/chess.js/dist/esm/chess.js';
2
-
3
1
  const DEFAULT_POSITION_WHITE = 'rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1'
4
2
  const SLOW_ANIMATION = 600;
5
3
  const FAST_ANIMATION = 150;
@@ -14,19 +12,19 @@ class ChessboardConfig {
14
12
  position: 'start',
15
13
  orientation: 'w',
16
14
  mode: 'normal',
17
- draggable: true,
18
- dropOffBoard: 'snapback',
19
- hints: true,
20
- clickable: true,
21
15
  size: 600,
22
16
 
23
17
  // ---------------------- Moves
18
+ draggable: true,
19
+ hints: true,
20
+ clickable: true,
24
21
  movableColors: 'both',
25
22
  moveHighlight: true,
26
23
  moveAnimation: 'ease',
27
24
  moveTime: 'fast',
28
25
 
29
26
  // ---------------------- Snapback
27
+ dropOffBoard: 'snapback',
30
28
  snapbackTime: 'fast',
31
29
  snapbackAnimation: 'ease',
32
30
 
@@ -1,5 +1,3 @@
1
- import { Chess } from './node_modules/chess.js/dist/esm/chess.js';
2
-
3
1
  const DEFAULT_POSITION_WHITE = 'rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1'
4
2
  const SLOW_ANIMATION = 600;
5
3
  const FAST_ANIMATION = 150;
@@ -202,7 +200,7 @@ class ChessboardConfig {
202
200
  }
203
201
  }
204
202
 
205
- export class Chessboard {
203
+ class Chessboard {
206
204
 
207
205
  constructor(config) {
208
206
 
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "dependencies": {
3
- "chess.js": "^1.0.1-beta.8"
3
+ "chess.js": "^1.0.0-beta.8"
4
4
  },
5
5
  "name": "@alepot55/chessboardjs",
6
- "version": "1.0.0",
6
+ "version": "1.0.2",
7
7
  "main": "chessboard.js",
8
8
  "type": "module",
9
9
  "scripts": {